e7de3ad37b8f4758cf07d40cf49342620d61ec96
[gnulib.git] / ChangeLog
1 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2
3         perror: Fix autoconf test.
4         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
5         <stdlib.h> and <string.h>.
6
7 2011-10-14  Bruno Haible  <bruno@clisp.org>
8
9         ffsl: Optimize on 64-bit platforms.
10         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11         unrolling.
12
13 2011-10-13  Bruno Haible  <bruno@clisp.org>
14
15         ffsl: Optimize on 32-bit platforms.
16         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
17         use ffs() without a loop.
18
19         ffsl, ffsll: Optimize for GCC.
20         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
21         * lib/ffsl.c (GCC_BUILTIN): New macro.
22         * lib/ffsll.c (GCC_BUILTIN): Likewise.
23
24 2011-10-13  Bruno Haible  <bruno@clisp.org>
25
26         ffs, bcopy, memset: Support symbol renaming via config.h.
27         * lib/ffs.c: Include <config.h>.
28         * lib/bcopy.c: Likewise.
29         * lib/memset.c: Likewise.
30
31 2011-10-10  Bruno Haible  <bruno@clisp.org>
32
33         atanl: Simplify for platforms where 'long double' == 'double'.
34         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
35         alternative implementation.
36         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38         * modules/atanl (Depends-on): Add atan. Update conditions.
39
40 2011-10-10  Bruno Haible  <bruno@clisp.org>
41
42         acosl: Simplify for platforms where 'long double' == 'double'.
43         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
44         alternative implementation.
45         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47         * modules/acosl (Depends-on): Add acos. Update conditions.
48
49 2011-10-10  Bruno Haible  <bruno@clisp.org>
50
51         asinl: Simplify for platforms where 'long double' == 'double'.
52         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
53         alternative implementation.
54         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
55         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
56         * modules/asinl (Depends-on): Add asin. Update conditions.
57
58 2011-10-10  Bruno Haible  <bruno@clisp.org>
59
60         tanl: Simplify for platforms where 'long double' == 'double'.
61         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
62         implementation.
63         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
64         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
65         * modules/tanl (Depends-on): Add tan. Update conditions.
66         (configure.ac): Don't compile trigl.c if
67         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
68
69 2011-10-10  Bruno Haible  <bruno@clisp.org>
70
71         cosl: Simplify for platforms where 'long double' == 'double'.
72         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
73         implementation.
74         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
75         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
76         * modules/cosl (Depends-on): Add cos. Update conditions.
77         (configure.ac): Don't compile sincosl.c and trigl.c if
78         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
79
80 2011-10-10  Bruno Haible  <bruno@clisp.org>
81
82         sinl: Simplify for platforms where 'long double' == 'double'.
83         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
84         implementation.
85         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
86         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
87         * modules/sinl (Depends-on): Add sin. Update conditions.
88         (configure.ac): Don't compile sincosl.c and trigl.c if
89         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
90
91 2011-10-10  Bruno Haible  <bruno@clisp.org>
92
93         logl: Simplify for platforms where 'long double' == 'double'.
94         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
95         implementation.
96         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
97         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
98         * modules/logl (Depends-on): Add log. Update conditions.
99
100 2011-10-10  Bruno Haible  <bruno@clisp.org>
101
102         expl: Simplify for platforms where 'long double' == 'double'.
103         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
104         implementation.
105         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
106         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
107         * modules/expl (Depends-on): Add exp. Update conditions.
108
109 2011-10-10  Bruno Haible  <bruno@clisp.org>
110
111         sqrtl: Simplify for platforms where 'long double' == 'double'.
112         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
113         alternative implementation.
114         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
115         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
116         * modules/sqrtl (Depends-on): Update conditions.
117
118 2011-10-10  Bruno Haible  <bruno@clisp.org>
119
120         ldexpl: Simplify for platforms where 'long double' == 'double'.
121         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
122         alternative implementation.
123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
124         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
125         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
126
127 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
128
129         ffsll: set correct witness
130         * modules/ffsll (configure.ac): Fix typo.
131
132 2011-10-10  Bruno Haible  <bruno@clisp.org>
133
134         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
135         * lib/printf-frexpl.c: Include <config.h>.
136         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
137         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
138         second time.
139         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
140         gl_LONG_DOUBLE_VS_DOUBLE.
141         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
142         conditions.
143
144 2011-10-10  Bruno Haible  <bruno@clisp.org>
145
146         frexpl: Simplify for platforms where 'long double' == 'double'.
147         * lib/frexpl.c: Include <config.h>.
148         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
149         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
150         time.
151         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
152         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
153         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
154         * modules/frexpl (Depends-on): Add frexp. Update conditions.
155         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
156         conditions.
157
158 2011-10-10  Jim Meyering  <meyering@redhat.com>
159
160         test-renameat: don't leave behind a temporary file
161         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
162           ERROR: files left in build directory after distclean:
163           ./gltests/test-renameat.too
164           make[1]: *** [distcleancheck] Error 1
165         Reported by Tom G. Christensen.
166
167 2011-10-09  Bruno Haible  <bruno@clisp.org>
168
169         rint: Determine RINT_LIBM correctly on AIX 7.
170         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
171         directly, not only through a function pointer. Also accept an optional
172         4th argument with extra code.
173         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
174         rintf() call by gcc when optimizing.
175
176         mathfunc.m4: Refactor.
177         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
178         m4 variable.
179
180 2011-10-09  Bruno Haible  <bruno@clisp.org>
181
182         rintl: Simplify for platforms where 'long double' == 'double'.
183         * lib/rintl.c: Include <config.h>.
184         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
185         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
186         time.
187         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
188         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
189         * modules/rintl (Depends-on): Add rint. Update conditions.
190
191 2011-10-09  Bruno Haible  <bruno@clisp.org>
192
193         roundl: Simplify for platforms where 'long double' == 'double'.
194         * lib/roundl.c: Include <config.h>.
195         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
196         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
197         time.
198         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
199         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
200         * modules/roundl (Depends-on): Add round. Update conditions.
201
202 2011-10-09  Bruno Haible  <bruno@clisp.org>
203
204         truncl: Simplify for platforms where 'long double' == 'double'.
205         * lib/truncl.c: Include <config.h>.
206         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
207         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
208         time.
209         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
210         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
211         * modules/truncl (Depends-on): Add trunc. Update conditions.
212
213 2011-10-09  Bruno Haible  <bruno@clisp.org>
214
215         ceill: Simplify for platforms where 'long double' == 'double'.
216         * lib/ceill.c: Include <config.h>.
217         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
218         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
219         time.
220         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
221         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
222         * modules/ceill (Depends-on): Add ceil. Update conditions.
223
224 2011-10-09  Bruno Haible  <bruno@clisp.org>
225
226         floorl: Simplify for platforms where 'long double' == 'double'.
227         * lib/floorl.c: Include <config.h>.
228         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
229         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
230         time.
231         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
232         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
233         * modules/floorl (Depends-on): Add floor. Update conditions.
234
235 2011-10-09  Bruno Haible  <bruno@clisp.org>
236
237         rint: Fix ordering constraints.
238         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
239         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
240         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
241
242 2011-10-09  Bruno Haible  <bruno@clisp.org>
243
244         copysignl: Simplify for platforms where 'long double' == 'double'.
245         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
246         alternative.
247         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
248         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
249         * modules/copysignl (Depends-on): Add copysign. Update conditions.
250
251 2011-10-09  Bruno Haible  <bruno@clisp.org>
252
253         Tests for module 'rintl'.
254         * modules/rintl-tests: New file.
255         * tests/test-rintl.c: New file.
256
257         New module 'rintl'.
258         * lib/math.in.h (rintl): New declaration.
259         * lib/rintl.c: New file.
260         * m4/rintl.m4: New file.
261         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
263         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
264         * modules/rintl: New file.
265         * tests/test-math-c++.cc: Check the declaration of rintl.
266         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
267         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
268         * doc/posix-functions/rintl.texi: Mention the new module.
269
270 2011-10-09  Bruno Haible  <bruno@clisp.org>
271
272         Tests for module 'rintf'.
273         * modules/rintf-tests: New file.
274         * tests/test-rintf.c: New file.
275
276         New module 'rintf'.
277         * lib/math.in.h (rintf): New declaration.
278         * lib/rintf.c: New file.
279         * m4/rintf.m4: New file.
280         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
282         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
283         * modules/rintf: New file.
284         * tests/test-math-c++.cc: Check the declaration of rintf.
285         * doc/posix-functions/rintf.texi: Mention the new module.
286
287 2011-10-09  Bruno Haible  <bruno@clisp.org>
288
289         rint: Support for MSVC.
290         * lib/math.in.h (rint): New declaration.
291         * lib/rint.c: New file.
292         * m4/rint.m4: New file.
293         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
295         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
296         * modules/rint (Description): Fix.
297         (Files): Add lib/rint.c, m4/rint.m4.
298         (Depends-on): Add math.
299         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
300         gl_MATH_MODULE_INDICATOR.
301         * tests/test-math-c++.cc: Check the declaration of rint.
302         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
303         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
304         * doc/posix-functions/rint.texi: Mention the replacement provided by
305         the module.
306
307         rint tests: More tests.
308         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
309         minus-zero.h, infinity.h, nan.h.
310         (main): Skip the test if the current rounding mode is not standard. Add
311         tests for negative numbers, minus zero, infinity, NaN.
312         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
313         tests/nan.h.
314         (Depends-on): Add isnand-nolibm.
315
316 2011-10-09  Bruno Haible  <bruno@clisp.org>
317
318         Tests for module 'copysignl'.
319         * modules/copysignl-tests: New file.
320         * tests/test-copysignl.c: New file.
321
322         New module 'copysignl'.
323         * lib/math.in.h (copysignl): New declaration.
324         * lib/copysignl.c: New file.
325         * m4/copysignl.m4: New file.
326         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
328         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
329         HAVE_COPYSIGNL.
330         * modules/copysignl: New file.
331         * tests/test-math-c++.cc: Check the declaration of copysignl.
332         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
333         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
334         * doc/posix-functions/copysignl.texi: Mention the new module.
335
336 2011-10-09  Bruno Haible  <bruno@clisp.org>
337
338         Tests for module 'copysignf'.
339         * modules/copysignf-tests: New file.
340         * tests/test-copysignf.c: New file.
341
342         New module 'copysignf'.
343         * lib/math.in.h (copysignf): New declaration.
344         * lib/copysignf.c: New file.
345         * m4/copysignf.m4: New file.
346         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
348         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
349         HAVE_COPYSIGNF.
350         * modules/copysignf: New file.
351         * tests/test-math-c++.cc: Check the declaration of copysignf.
352         * doc/posix-functions/copysignf.texi: Mention the new module.
353
354 2011-10-09  Bruno Haible  <bruno@clisp.org>
355
356         Ensure that HAVE_* variables are set to 1 before they are set to 0.
357         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
358         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
359         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
360         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
361         gl_SIGNAL_H_DEFAULTS.
362
363 2011-10-09  Bruno Haible  <bruno@clisp.org>
364
365         poll: Make macro safer.
366         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
367         ac_cv_header_poll_h is not set.
368
369 2011-10-09  Bruno Haible  <bruno@clisp.org>
370
371         copysign: Provide replacement.
372         * lib/math.in.h (copysign): New declaration.
373         * lib/copysign.c: New file.
374         * m4/copysign.m4: New file.
375         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
377         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
378         HAVE_COPYSIGN.
379         * modules/copysign (Description): Clarify.
380         (Files): Add lib/copysign.c, m4/copysign.m4.
381         (Depends-on): Add math, signbit.
382         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
383         gl_MATH_MODULE_INDICATOR.
384         * tests/test-math-c++.cc: Check the declaration of copysign.
385         * doc/posix-functions/copysign.texi: Mention the effects of the module
386         on Minix and MSVC.
387
388 2011-10-09  Bruno Haible  <bruno@clisp.org>
389
390         isinf: Ensure macro on AIX 5.1.
391         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
392         macro.
393         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
394
395 2011-10-09  Bruno Haible  <bruno@clisp.org>
396
397         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
398         * modules/snprintf-posix-tests (configure.ac): Require
399         gl_LONG_DOUBLE_VS_DOUBLE.
400         * modules/sprintf-posix-tests (configure.ac): Likewise.
401         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
402         * modules/vasprintf-posix-tests (configure.ac): Likewise.
403         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
404         * modules/vsprintf-posix-tests (configure.ac): Likewise.
405         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
406         tests on platforms where 'long double' is the same as 'double'.
407         * tests/test-sprintf-posix.h (test_function): Likewise.
408         * tests/test-vasnprintf-posix.c (test_function): Likewise.
409         * tests/test-vasprintf-posix.c (test_function): Likewise.
410
411         *printf: Fix for platforms where 'long double' == 'double'.
412         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
413         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
414         * modules/dprintf-posix (Files): Add m4/math_h.m4.
415         * modules/fprintf-posix (Files): Likewise.
416         * modules/obstack-printf-posix (Files): Likewise.
417         * modules/snprintf-posix (Files): Likewise.
418         * modules/sprintf-posix (Files): Likewise.
419         * modules/vasnprintf (Files): Likewise.
420         * modules/vasnprintf-posix (Files): Likewise.
421         * modules/vasprintf-posix (Files): Likewise.
422         * modules/vdprintf-posix (Files): Likewise.
423         * modules/vfprintf-posix (Files): Likewise.
424         * modules/vsnprintf-posix (Files): Likewise.
425         * modules/vsprintf-posix (Files): Likewise.
426         * modules/unistdio/u8-vasnprintf (Files): Likewise.
427         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
428         * modules/unistdio/u16-vasnprintf (Files): Likewise.
429         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
430         * modules/unistdio/u32-vasnprintf (Files): Likewise.
431         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
432         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
433
434         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
435         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
436         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
437         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
438         'long double'.
439         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
440
441         isinf: Fix for platforms where 'long double' == 'double'.
442         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
443         Don't blindly assume 80-bit 'long double'.
444
445         isfinite: Fix for platforms where 'long double' == 'double'.
446         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
447         Don't blindly assume 80-bit 'long double'.
448
449         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
450         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
451         * modules/isfinite-tests (configure.ac): Require
452         gl_LONG_DOUBLE_VS_DOUBLE.
453         * modules/isinf-tests (configure.ac): Likewise.
454         * modules/isnan-tests (configure.ac): Likewise.
455         * modules/isnanl-tests (configure.ac): Likewise.
456         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
457         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
458         tests on platforms where 'long double' is the same as 'double'.
459         * tests/test-isinf.c (test_isinfl): Likewise.
460         * tests/test-isnan.c (test_long_double): Likewise.
461         * tests/test-isnanl.h (main): Likewise.
462
463 2011-10-08  Bruno Haible  <bruno@clisp.org>
464
465         Tests for module 'tanhf'.
466         * modules/tanhf-tests: New file.
467         * tests/test-tanhf.c: New file.
468
469         New module 'tanhf'.
470         * lib/math.in.h (tanhf): New declaration.
471         * lib/tanhf.c: New file.
472         * m4/tanhf.m4: New file.
473         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
475         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
476         * modules/tanhf: New file.
477         * tests/test-math-c++.cc: Check the declaration of tanhf.
478         * doc/posix-functions/tanhf.texi: Mention the new module.
479
480         tanh: Use a .m4 file.
481         * m4/tanh.m4: New file.
482         * modules/tanh (Files): Add it.
483         (configure.ac): Just invoke gl_FUNC_TANH.
484
485 2011-10-08  Bruno Haible  <bruno@clisp.org>
486
487         Tests for module 'coshf'.
488         * modules/coshf-tests: New file.
489         * tests/test-coshf.c: New file.
490
491         New module 'coshf'.
492         * lib/math.in.h (coshf): New declaration.
493         * lib/coshf.c: New file.
494         * m4/coshf.m4: New file.
495         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
497         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
498         * modules/coshf: New file.
499         * tests/test-math-c++.cc: Check the declaration of coshf.
500         * doc/posix-functions/coshf.texi: Mention the new module.
501
502         cosh: Use a .m4 file.
503         * m4/cosh.m4: New file.
504         * modules/cosh (Files): Add it.
505         (configure.ac): Just invoke gl_FUNC_COSH.
506
507 2011-10-08  Bruno Haible  <bruno@clisp.org>
508
509         Tests for module 'sinhf'.
510         * modules/sinhf-tests: New file.
511         * tests/test-sinhf.c: New file.
512
513         New module 'sinhf'.
514         * lib/math.in.h (sinhf): New declaration.
515         * lib/sinhf.c: New file.
516         * m4/sinhf.m4: New file.
517         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
519         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
520         * modules/sinhf: New file.
521         * tests/test-math-c++.cc: Check the declaration of sinhf.
522         * doc/posix-functions/sinhf.texi: Mention the new module.
523
524         sinh: Use a .m4 file.
525         * m4/sinh.m4: New file.
526         * modules/sinh (Files): Add it.
527         (configure.ac): Just invoke gl_FUNC_SINH.
528
529 2011-10-08  Bruno Haible  <bruno@clisp.org>
530
531         Tests for module 'atan2f'.
532         * modules/atan2f-tests: New file.
533         * tests/test-atan2f.c: New file.
534
535         New module 'atan2f'.
536         * lib/math.in.h (atan2f): New declaration.
537         * lib/atan2f.c: New file.
538         * m4/atan2f.m4: New file.
539         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
541         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
542         * modules/atan2f: New file.
543         * tests/test-math-c++.cc: Check the declaration of atan2f.
544         * doc/posix-functions/atan2f.texi: Mention the new module.
545
546         atan2: Use a .m4 file.
547         * m4/atan2.m4: New file.
548         * modules/atan2 (Files): Add it.
549         (configure.ac): Just invoke gl_FUNC_ATAN2.
550
551 2011-10-08  Bruno Haible  <bruno@clisp.org>
552
553         Tests for module 'atanf'.
554         * modules/atanf-tests: New file.
555         * tests/test-atanf.c: New file.
556
557         New module 'atanf'.
558         * lib/math.in.h (atanf): New declaration.
559         * lib/atanf.c: New file.
560         * m4/atanf.m4: New file.
561         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
563         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
564         * modules/atanf: New file.
565         * tests/test-math-c++.cc: Check the declaration of atanf.
566         * doc/posix-functions/atanf.texi: Mention the new module.
567
568         atan: Use a .m4 file.
569         * m4/atan.m4: New file.
570         * modules/atan (Files): Add it.
571         (configure.ac): Just invoke gl_FUNC_ATAN.
572
573 2011-10-08  Bruno Haible  <bruno@clisp.org>
574
575         Tests for module 'acosf'.
576         * modules/acosf-tests: New file.
577         * tests/test-acosf.c: New file.
578
579         New module 'acosf'.
580         * lib/math.in.h (acosf): New declaration.
581         * lib/acosf.c: New file.
582         * m4/acosf.m4: New file.
583         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
585         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
586         * modules/acosf: New file.
587         * tests/test-math-c++.cc: Check the declaration of acosf.
588         * doc/posix-functions/acosf.texi: Mention the new module.
589
590         acos: Use a .m4 file.
591         * m4/acos.m4: New file.
592         * modules/acos (Files): Add it.
593         (configure.ac): Just invoke gl_FUNC_ACOS.
594
595 2011-10-08  Bruno Haible  <bruno@clisp.org>
596
597         Tests for module 'asinf'.
598         * modules/asinf-tests: New file.
599         * tests/test-asinf.c: New file.
600
601         New module 'asinf'.
602         * lib/math.in.h (asinf): New declaration.
603         * lib/asinf.c: New file.
604         * m4/asinf.m4: New file.
605         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
607         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
608         * modules/asinf: New file.
609         * tests/test-math-c++.cc: Check the declaration of asinf.
610         * doc/posix-functions/asinf.texi: Mention the new module.
611
612         asin: Use a .m4 file.
613         * m4/asin.m4: New file.
614         * modules/asin (Files): Add it.
615         (configure.ac): Just invoke gl_FUNC_ASIN.
616
617 2011-10-08  Bruno Haible  <bruno@clisp.org>
618
619         Tests for module 'tanf'.
620         * modules/tanf-tests: New file.
621         * tests/test-tanf.c: New file.
622
623         New module 'tanf'.
624         * lib/math.in.h (tanf): New declaration.
625         * lib/tanf.c: New file.
626         * m4/tanf.m4: New file.
627         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
629         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
630         * modules/tanf: New file.
631         * tests/test-math-c++.cc: Check the declaration of tanf.
632         * doc/posix-functions/tanf.texi: Mention the new module.
633
634         tan: Use a .m4 file.
635         * m4/tan.m4: New file.
636         * modules/tan (Files): Add it.
637         (configure.ac): Just invoke gl_FUNC_TAN.
638
639 2011-10-08  Bruno Haible  <bruno@clisp.org>
640
641         Tests for module 'cosf'.
642         * modules/cosf-tests: New file.
643         * tests/test-cosf.c: New file.
644
645         New module 'cosf'.
646         * lib/math.in.h (cosf): New declaration.
647         * lib/cosf.c: New file.
648         * m4/cosf.m4: New file.
649         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
651         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
652         * modules/cosf: New file.
653         * tests/test-math-c++.cc: Check the declaration of cosf.
654         * doc/posix-functions/cosf.texi: Mention the new module.
655
656         cos: Use a .m4 file.
657         * m4/cos.m4: New file.
658         * modules/cos (Files): Add it.
659         (configure.ac): Just invoke gl_FUNC_COS.
660
661 2011-10-08  Bruno Haible  <bruno@clisp.org>
662
663         Tests for module 'sinf'.
664         * modules/sinf-tests: New file.
665         * tests/test-sinf.c: New file.
666
667         New module 'sinf'.
668         * lib/math.in.h (sinf): New declaration.
669         * lib/sinf.c: New file.
670         * m4/sinf.m4: New file.
671         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
673         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
674         * modules/sinf: New file.
675         * tests/test-math-c++.cc: Check the declaration of sinf.
676         * doc/posix-functions/sinf.texi: Mention the new module.
677
678         sin: Use a .m4 file.
679         * m4/sin.m4: New file.
680         * modules/sin (Files): Add it.
681         (configure.ac): Just invoke gl_FUNC_SIN.
682
683 2011-10-08  Bruno Haible  <bruno@clisp.org>
684
685         Tests for module 'powf'.
686         * modules/powf-tests: New file.
687         * tests/test-powf.c: New file.
688
689         New module 'powf'.
690         * lib/math.in.h (powf): New declaration.
691         * lib/powf.c: New file.
692         * m4/powf.m4: New file.
693         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
695         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
696         * modules/powf: New file.
697         * tests/test-math-c++.cc: Check the declaration of powf.
698         * doc/posix-functions/powf.texi: Mention the new module.
699
700         pow: Use a .m4 file.
701         * m4/pow.m4: New file.
702         * modules/pow (Files): Add it.
703         (configure.ac): Just invoke gl_FUNC_POW.
704
705 2011-10-08  Bruno Haible  <bruno@clisp.org>
706
707         Tests for module 'log10f'.
708         * modules/log10f-tests: New file.
709         * tests/test-log10f.c: New file.
710
711         New module 'log10f'.
712         * lib/math.in.h (log10f): New declaration.
713         * lib/log10f.c: New file.
714         * m4/log10f.m4: New file.
715         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
717         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
718         * modules/log10f: New file.
719         * tests/test-math-c++.cc: Check the declaration of log10f.
720         * doc/posix-functions/log10f.texi: Mention the new module.
721
722         log10: Use a .m4 file.
723         * m4/log10.m4: New file.
724         * modules/log10 (Files): Add it.
725         (configure.ac): Just invoke gl_FUNC_LOG10.
726
727 2011-10-08  Bruno Haible  <bruno@clisp.org>
728
729         Tests for module 'logf'.
730         * modules/logf-tests: New file.
731         * tests/test-logf.c: New file.
732
733         New module 'logf'.
734         * lib/math.in.h (logf): New declaration.
735         * lib/logf.c: New file.
736         * m4/logf.m4: New file.
737         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
739         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
740         * modules/logf: New file.
741         * tests/test-math-c++.cc: Check the declaration of logf.
742         * doc/posix-functions/logf.texi: Mention the new module.
743
744         log: Use a .m4 file.
745         * m4/log.m4: New file.
746         * modules/log (Files): Add it.
747         (configure.ac): Just invoke gl_FUNC_LOG.
748
749 2011-10-08  Bruno Haible  <bruno@clisp.org>
750
751         Tests for module 'expf'.
752         * modules/expf-tests: New file.
753         * tests/test-expf.c: New file.
754
755         New module 'expf'.
756         * lib/math.in.h (expf): New declaration.
757         * lib/expf.c: New file.
758         * m4/expf.m4: New file.
759         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
761         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
762         * modules/expf: New file.
763         * tests/test-math-c++.cc: Check the declaration of expf.
764         * doc/posix-functions/expf.texi: Mention the new module.
765
766         exp: Use a .m4 file.
767         * m4/exp.m4: New file.
768         * modules/exp (Files): Add it.
769         (configure.ac): Just invoke gl_FUNC_EXP.
770
771 2011-10-08  Bruno Haible  <bruno@clisp.org>
772
773         Tests for module 'sqrtf'.
774         * modules/sqrtf-tests: New file.
775         * tests/test-sqrtf.c: New file.
776
777         New module 'sqrtf'.
778         * lib/math.in.h (sqrtf): New declaration.
779         * lib/sqrtf.c: New file.
780         * m4/sqrtf.m4: New file.
781         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
783         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
784         * modules/sqrtf: New file.
785         * tests/test-math-c++.cc: Check the declaration of sqrtf.
786         * doc/posix-functions/sqrtf.texi: Mention the new module.
787
788 2011-10-08  Bruno Haible  <bruno@clisp.org>
789
790         Tests: Avoid link failures w.r.t. libintl.
791         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
792         $(LIBINTL).
793         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
794         $(LIBINTL).
795         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
796         against $(LIBINTL).
797         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
798         $(LIBINTL).
799         * modules/openat-tests (Makefile.am): Link test-fchmodat against
800         $(LIBINTL).
801         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
802
803 2011-10-08  Bruno Haible  <bruno@clisp.org>
804
805         pow tests: Defeat compiler optimizations.
806         * tests/test-pow.c (main): Assign arguments to x and y before use.
807
808 2011-10-08  Bruno Haible  <bruno@clisp.org>
809
810         gnulib-tool: Improve last commit.
811         * gnulib-tool (func_modules_transitive_closure): Simplify code.
812         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
813         ignore dependencies that are not among the modules list.
814
815 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
816
817         gnulib-tool: don't follow dependencies to avoided modules
818         This fixes a bug that is related to the previous one.
819         * gnulib-tool (func_modules_transitive_closure)
820         (func_emit_autoconf_snippets):
821         Check whether a dependency is acceptable before using it.
822         (--extract-dependencies): Report an error if --avoid is also used,
823         since this combination of options is not yet supported.
824
825         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
826         Problem reported by Peter Dyballa in
827         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
828         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
829         when echoing "$condition".
830
831 2011-10-07  Bruno Haible  <bruno@clisp.org>
832
833         Fix documentation about math functions on MacOS X.
834         * doc/posix-functions/exp2.texi: Don't say the function is missing on
835         MacOS X 10.5.
836         * doc/posix-functions/fdim.texi: Likewise.
837         * doc/posix-functions/feclearexcept.texi: Likewise.
838         * doc/posix-functions/fegetenv.texi: Likewise.
839         * doc/posix-functions/fegetround.texi: Likewise.
840         * doc/posix-functions/feholdexcept.texi: Likewise.
841         * doc/posix-functions/feraiseexcept.texi: Likewise.
842         * doc/posix-functions/fesetenv.texi: Likewise.
843         * doc/posix-functions/fesetround.texi: Likewise.
844         * doc/posix-functions/fetestexcept.texi: Likewise.
845         * doc/posix-functions/feupdateenv.texi: Likewise.
846         * doc/posix-functions/fmax.texi: Likewise.
847         * doc/posix-functions/fmin.texi: Likewise.
848         * doc/posix-functions/log2.texi: Likewise.
849         * doc/posix-functions/modff.texi: Likewise.
850         * doc/posix-functions/nan.texi: Likewise.
851         * doc/posix-functions/nanf.texi: Likewise.
852         * doc/posix-functions/nextafterf.texi: Likewise.
853         * doc/posix-functions/remquo.texi: Likewise.
854
855 2011-10-07  Bruno Haible  <bruno@clisp.org>
856
857         modff: Drop assumption about library that defines modff.
858         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
859         AC_CHECK_FUNCS.
860         * modules/modff (Files): Add m4/mathfunc.m4.
861
862 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
863
864         raise tests: Avoid a GCC warning.
865         * tests/test-raise.c (handler): Use _Noreturn.
866
867 2011-10-07  Bruno Haible  <bruno@clisp.org>
868
869         Tests for module 'ldexpf'.
870         * modules/ldexpf-tests: New file.
871         * tests/test-ldexpf.c: New file.
872
873         New module 'ldexpf'.
874         * lib/math.in.h (ldexpf): New declaration.
875         * lib/ldexpf.c: New file.
876         * m4/ldexpf.m4: New file.
877         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
879         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
880         * modules/ldexpf: New file.
881         * tests/test-math-c++.cc: Check the declaration of ldexpf.
882         * doc/posix-functions/ldexpf.texi: Mention the new module.
883
884 2011-10-06  Bruno Haible  <bruno@clisp.org>
885
886         frexpf: Work around problems on IRIX and mingw.
887         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
889         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
890         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
891         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
892         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
893         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
894
895 2011-10-06  Bruno Haible  <bruno@clisp.org>
896
897         fabsf: Drop assumption about library that defines fabsf.
898         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
899         AC_CHECK_FUNCS.
900         * modules/fabsf (Files): Add m4/mathfunc.m4.
901
902 2011-10-06  Bruno Haible  <bruno@clisp.org>
903
904         frexpf: Drop assumption about library that defines frexpf.
905         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
906         'int *', 'float *', 'long double *', 'float', 'long double'.
907         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
908         AC_CHECK_FUNCS.
909         * modules/frexpf (Files): Add m4/mathfunc.m4.
910
911         Tests for module 'frexpf'.
912         * modules/frexpf-tests: New file.
913         * tests/test-frexpf.c: New file.
914
915         New module 'frexpf'.
916         * lib/math.in.h (frexpf): New declaration.
917         * lib/frexpf.c: New file.
918         * m4/frexpf.m4: New file.
919         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
921         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
922         * modules/frexpf: New file.
923         * tests/test-math-c++.cc: Check the declaration of frexpf.
924         * doc/posix-functions/frexpf.texi: Mention the new module.
925
926 2011-10-06  Bruno Haible  <bruno@clisp.org>
927
928         math: Sort function declarations of math.in.h.
929         * lib/math.in.h (frexp, logb): Move declarations.
930
931 2011-10-05  Bruno Haible  <bruno@clisp.org>
932
933         Tests for module 'modff'.
934         * modules/modff-tests: New file.
935         * tests/test-modff.c: New file.
936
937         New module 'modff'.
938         * lib/math.in.h (modff): New declaration.
939         * lib/modff.c: New file.
940         * m4/modff.m4: New file.
941         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
943         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
944         * modules/modff: New file.
945         * tests/test-math-c++.cc: Check the declaration of modff.
946         * doc/posix-functions/modff.texi: Mention the new module.
947
948         modf tests: Make test sharper.
949         * tests/test-modf.c (main): Strengthen upper bound.
950
951         modf: Use a .m4 file.
952         * m4/modf.m4: New file.
953         * modules/modf (Files): Add it.
954         (configure.ac): Just invoke gl_FUNC_MODF.
955
956 2011-10-05  Bruno Haible  <bruno@clisp.org>
957
958         Tests for module 'fmodf'.
959         * modules/fmodf-tests: New file.
960         * tests/test-fmodf.c: New file.
961
962         New module 'fmodf'.
963         * lib/math.in.h (fmodf): New declaration.
964         * lib/fmodf.c: New file.
965         * m4/fmodf.m4: New file.
966         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
968         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
969         * modules/fmodf: New file.
970         * tests/test-math-c++.cc: Check the declaration of fmodf.
971         * doc/posix-functions/fmodf.texi: Mention the new module.
972
973         fmod: Use a .m4 file.
974         * m4/fmod.m4: New file.
975         * modules/fmod (Files): Add it.
976         (configure.ac): Just invoke gl_FUNC_FMOD.
977
978 2011-10-05  Bruno Haible  <bruno@clisp.org>
979
980         Tests for module 'fabsf'.
981         * modules/fabsf-tests: New file.
982         * tests/test-fabsf.c: New file.
983
984         New module 'fabsf'.
985         * lib/math.in.h (fabsf): New declaration.
986         * lib/fabsf.c: New file.
987         * m4/fabsf.m4: New file.
988         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
990         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
991         * modules/fabsf: New file.
992         * tests/test-math-c++.cc: Check the declaration of fabsf.
993         * doc/posix-functions/fabsf.texi: Mention the new module.
994
995         fabs: Use a .m4 file.
996         * m4/fabs.m4: New file.
997         * modules/fabs (Files): Add it.
998         (configure.ac): Just invoke gl_FUNC_FABS.
999
1000 2011-10-05  Jim Meyering  <meyering@redhat.com>
1001
1002         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1003         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1004         ls -lL regression introduced in coreutils-8.12, it does so at the
1005         cost of an additional stat call in the common case.  Besides, now
1006         that the kernel change that prompted commit 95f7c57f has been reverted
1007         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1008         we have no use for commit 95f7c57f, "file-has-acl: use
1009         acl_extended_file_nofollow if available".
1010
1011 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1012
1013         file-has-acl: revert unintended change in behavior of ls -L
1014         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1015         derived from...
1016         (file_has_acl): ...code here.  Call it.
1017         This problem was introduced with 2011-07-22 commit 95f7c57f,
1018         "file-has-acl: use acl_extended_file_nofollow if available".
1019         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1020
1021 2011-10-03  Bruno Haible  <bruno@clisp.org>
1022
1023         poll: Avoid link errors on MSVC.
1024         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1025         * modules/poll (Depends-on): Add sockets.
1026         (Link): New section.
1027         * NEWS: Mention the change.
1028         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1029         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1030         $(LIB_POLL) instead of $(LIBSOCKET).
1031
1032 2011-10-03  Bruno Haible  <bruno@clisp.org>
1033
1034         sys_select tests: Fix link error on MSVC 9.
1035         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1036         with $(LIB_SELECT) instead of $(LIBSOCKET).
1037
1038 2011-10-03  Bruno Haible  <bruno@clisp.org>
1039
1040         sys_select: Fix compilation error on mingw.
1041         * lib/sys_select.in.h: On native Windows, include <io.h>.
1042
1043 2011-10-03  Bruno Haible  <bruno@clisp.org>
1044
1045         wmemset: Support for MSVC.
1046         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1047         whether wmemset() exists.
1048
1049 2011-10-03  Bruno Haible  <bruno@clisp.org>
1050
1051         wmemmove: Support for MSVC.
1052         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1053         whether wmemmove() exists.
1054
1055 2011-10-03  Bruno Haible  <bruno@clisp.org>
1056
1057         wmemcpy: Support for MSVC.
1058         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1059         whether wmemcpy() exists.
1060
1061 2011-10-03  Bruno Haible  <bruno@clisp.org>
1062
1063         wmemcmp: Support for MSVC.
1064         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1065         whether wmemcmp() exists.
1066
1067 2011-10-03  Bruno Haible  <bruno@clisp.org>
1068
1069         wmemchr: Support for MSVC.
1070         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1071         whether wmemchr() exists.
1072
1073 2011-10-03  Bruno Haible  <bruno@clisp.org>
1074
1075         glthread/*, strsignal: Support for MSVC.
1076         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1077         including <winsock.h> on MSVC 9.
1078         * lib/glthread/lock.h: Likewise.
1079         * lib/glthread/thread.h: Likewise.
1080         * lib/glthread/tls.h: Likewise.
1081         * lib/glthread/yield.h: Likewise.
1082         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1083         if HAVE_UNISTD_H is false.
1084         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1085
1086 2011-10-03  Bruno Haible  <bruno@clisp.org>
1087
1088         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1089         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1090         Set to 100000.
1091
1092 2011-10-03  Bruno Haible  <bruno@clisp.org>
1093
1094         acl: Fix specification.
1095         * lib/file-has-acl.c (file_has_acl): Fix specification.
1096
1097 2011-10-03  Bruno Haible  <bruno@clisp.org>
1098
1099         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1100         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1101         (compute_curr_prefix, shared_library_fullname,
1102         find_shared_library_fullname, get_shared_library_fullname, relocate):
1103         Use it together with PIC && INSTALLDIR.
1104         Reported by <jojelino@gmail.com>
1105         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1106
1107 2011-10-01  Jim Meyering  <meyering@redhat.com>
1108
1109         maint.mk: adjust a release-related rule not to require use of gzip
1110         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1111         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1112         projects that build only .tar.xz files.  Also fix an erroneous test.
1113
1114         test-linkat: don't leave behind a temporary file
1115         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1116         Otherwise, coreutils' "make distcheck" would fail with this:
1117           Only in /c/cu/tests/torture/coreutils/test/\
1118             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1119           make[2]: *** [my-distcheck] Error 1
1120
1121         float, math: add omitted file
1122         * lib/itold.c: Add file, required for yesterday's float change.
1123
1124 2011-10-01  Bruno Haible  <bruno@clisp.org>
1125
1126         isinf: Fix for OpenBSD/x86.
1127         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1128         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1129         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1130
1131 2011-10-01  Bruno Haible  <bruno@clisp.org>
1132
1133         isfinite: Fix syntax error in configure test.
1134         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1135
1136         isfinite: Fix typo.
1137         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1138         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1139
1140 2011-10-01  Bruno Haible  <bruno@clisp.org>
1141
1142         nonblocking tests: Fix test failure on Linux/IA-64.
1143         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1144         Set to 270000.
1145
1146 2011-10-01  Bruno Haible  <bruno@clisp.org>
1147
1148         mkfifoat tests: Fix a test failure on mingw.
1149         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1150         with error ENOSYS.
1151
1152 2011-09-30  Bruno Haible  <bruno@clisp.org>
1153
1154         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1155         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1156         'long double'. Set REPLACE_ITOLD.
1157         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1158         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1159         * lib/itold.c: New file.
1160         * modules/float (Files): Add lib/itold.c.
1161         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1162         (Makefile.am): Substitute REPLACE_ITOLD.
1163         * modules/math (Depends-on): Add float.
1164         (Makefile.am): Substitute REPLACE_ITOLD.
1165         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1166         * doc/posix-headers/math.texi: Likewise.
1167         * doc/posix-functions/logl.texi: Likewise.
1168
1169 2011-09-30  Bruno Haible  <bruno@clisp.org>
1170
1171         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1172         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1173         Set to 140000.
1174
1175 2011-09-30  Bruno Haible  <bruno@clisp.org>
1176
1177         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1178         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1179         invocation, say "right after AC_PROG_CC_STDC", not "right after
1180         AC_PROG_CC".
1181         Reported by Gary V. Vaughan <gary@gnu.org>.
1182
1183 2011-09-30  Bruno Haible  <bruno@clisp.org>
1184
1185         Centralize C99 requirement.
1186         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1187         * modules/stdarg (configure.ac-early): Invoke it instead of
1188         AC_PROG_CC_STDC.
1189         Reported by Gary V. Vaughan and Paul Eggert.
1190
1191 2011-09-29  Bruno Haible  <bruno@clisp.org>
1192
1193         float: Fix LDBL_MAX value on Linux/PowerPC.
1194         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1195         on Linux/PowerPC.
1196         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1197         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1198         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1199         platform.
1200         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1201
1202 2011-09-29  Bruno Haible  <bruno@clisp.org>
1203
1204         doc: Improve doc about gl_EARLY.
1205         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1206         AC_PROG_CC_STDC invocation.
1207         Reported by Gary V. Vaughan <gary@gnu.org>.
1208
1209 2011-09-28  Bruno Haible  <bruno@clisp.org>
1210
1211         fgetc, fputc, fread, fwrite tests: Fix link error.
1212         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1213         on non-MSVC platforms.
1214         * tests/test-fputc.c (main): Likewise.
1215         * tests/test-fread.c (main): Likewise.
1216         * tests/test-fwrite.c (main): Likewise.
1217         Reported by Jim Meyering.
1218
1219 2011-09-27  Bruno Haible  <bruno@clisp.org>
1220
1221         fputc, fwrite tests: Avoid test failure on MSVC.
1222         * tests/test-fgetc.c: Include msvc-inval.h.
1223         (main): Invoke gl_msvc_inval_ensure_handler.
1224         * tests/test-fputc.c: Include msvc-inval.h.
1225         (main): Invoke gl_msvc_inval_ensure_handler.
1226         * tests/test-fread.c: Include msvc-inval.h.
1227         (main): Invoke gl_msvc_inval_ensure_handler.
1228         * tests/test-fwrite.c: Include msvc-inval.h.
1229         (main): Invoke gl_msvc_inval_ensure_handler.
1230         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1231         * modules/fputc-tests (Depends-on): Likewise.
1232         * modules/fread-tests (Depends-on): Likewise.
1233         * modules/fwrite-tests (Depends-on): Likewise.
1234
1235 2011-09-27  Bruno Haible  <bruno@clisp.org>
1236
1237         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1238         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1239         (raise): Remove older, duplicated declaration.
1240         (_gl_raise_SIGPIPE): New declaration.
1241         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1242         (rpl_raise): Remove function.
1243         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1244         a gnulib-defined SIGPIPE here.
1245         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1246         'sigprocmask' has detected missing signal-blocking and the module
1247         'sigpipe' is enabled.
1248         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1249
1250 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1251
1252         base64-tests: avoid memory leak
1253         * tests/test-base64.c (main): Plug memory leak.
1254
1255         base32: new module
1256         * modules/base32: New module.
1257         * lib/base32.c: New file.
1258         * lib/base32.h: Likewise.
1259         * m4/base32.m4: Likewise.
1260         * modules/base32-tests: New test.
1261         * tests/test-base32.c: Likewise.
1262         * MODULES.html.sh (Misc): Mention it.
1263
1264 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1265
1266         gnulib: use more-standard license notice wording
1267         * gnulib-tool (func_emit_copyright_notice): When emitting a
1268         license notice into a file, use the standard wording as suggested
1269         by the current information for GNU maintainers, except say "file"
1270         rather than "program".  The new wording gives a license version
1271         number, which addresses an issue raised by Glenn Morris in
1272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1273         * m4/onceonly.m4: Use that same wording here, too.
1274
1275         dup2: minor simplification
1276         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1277         as lib/dup2.c no longer uses 'inline'.
1278
1279 2011-09-25  Bruno Haible  <bruno@clisp.org>
1280
1281         strings: Fix compilation error on MSVC.
1282         * lib/strings.in.h: Include <stddef.h> for size_t.
1283
1284 2011-09-25  Bruno Haible  <bruno@clisp.org>
1285
1286         fflush et al.: Document limitation on MSVC.
1287         * doc/posix-functions/fflush.texi: Document possible crash in handling
1288         mode other than DEFAULT_HANDLING.
1289         * doc/posix-functions/fgetc.texi: Likewise.
1290         * doc/posix-functions/fputc.texi: Likewise.
1291         * doc/posix-functions/fread.texi: Likewise.
1292         * doc/posix-functions/fwrite.texi: Likewise.
1293
1294 2011-09-25  Bruno Haible  <bruno@clisp.org>
1295
1296         msvc-inval: Allow three invalid parameter handling modes.
1297         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1298         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1299         macros.
1300         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1301         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1302         SANE_LIBRARY_HANDLING as a no-op.
1303         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1304         <stdlib.h>.
1305         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1306
1307 2011-09-25  Bruno Haible  <bruno@clisp.org>
1308
1309         msvc-inval: Make handler multithread-safe.
1310         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1311         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1312         declarations.
1313         (gl_msvc_inval_current): New declaration.
1314         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1315         Operate on the structure returned by gl_msvc_inval_current().
1316         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1317         Remove varaiables.
1318         (tls_index, tls_initialized): New variables.
1319         (not_per_thread): New variable.
1320         (gl_msvc_inval_current): New function.
1321         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1322         returned by gl_msvc_inval_current().
1323
1324 2011-09-25  Bruno Haible  <bruno@clisp.org>
1325
1326         msvc-inval: Install handler globally.
1327         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1328         !_MSC_VER.
1329         (gl_msvc_invalid_parameter_handler): Remove declaration.
1330         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1331         declarations.
1332         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1333         Install the handler globally, don't uninstall it.
1334         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1335         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1336         currently valid, call RaiseException instead.
1337         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1338         for !_MSC_VER.
1339
1340 2011-09-25  Bruno Haible  <bruno@clisp.org>
1341
1342         strerror_r-posix: Fix for MSVC 9.
1343         * lib/strerror_r.c (local_snprintf): New function.
1344         (snprintf): Define to local_snprintf, not to _snprintf.
1345
1346 2011-09-25  Bruno Haible  <bruno@clisp.org>
1347
1348         ftruncate: Support for MSVC 9.
1349         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1350         (chsize_nothrow): New function.
1351         (chsize): Redefine as a macro.
1352         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1353         * modules/ftruncate (Depends-on): Add msvc-inval.
1354
1355 2011-09-25  Bruno Haible  <bruno@clisp.org>
1356
1357         New module 'fstat'.
1358         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1359         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1360         * lib/fchdir.c (rpl_fstat): Remove function.
1361         * m4/fstat.m4: New file.
1362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1364         declared.
1365         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1366         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1367         * modules/fstat: New file.
1368         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1369         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1370         is set.
1371         * doc/posix-functions/fstat.texi: Mention the new module and the
1372         problem on MSVC.
1373         * NEWS: Mention the change.
1374         * modules/acl (Depends-on): Add fstat.
1375         * modules/chdir-safer (Depends-on): Likewise.
1376         * modules/chown (Depends-on): Likewise.
1377         * modules/copy-file (Depends-on): Likewise.
1378         * modules/fchdir (Depends-on): Likewise.
1379         * modules/fdopendir (Depends-on): Likewise.
1380         * modules/fopen (Depends-on): Likewise.
1381         * modules/fts (Depends-on): Likewise.
1382         * modules/getcwd (Depends-on): Likewise.
1383         * modules/isapipe (Depends-on): Likewise.
1384         * modules/linkat (Depends-on): Likewise.
1385         * modules/lseek (Depends-on): Likewise.
1386         * modules/mkdir-p (Depends-on): Likewise.
1387         * modules/open (Depends-on): Likewise.
1388         * modules/openat (Depends-on): Likewise.
1389         * modules/read-file (Depends-on): Likewise.
1390         * modules/renameat (Depends-on): Likewise.
1391         * modules/utimens (Depends-on): Likewise.
1392
1393 2011-09-25  Bruno Haible  <bruno@clisp.org>
1394
1395         linkat: Fix compilation on MSVC 9.
1396         * lib/linkat.c: Don't include <stdint.h>.
1397
1398 2011-09-25  Bruno Haible  <bruno@clisp.org>
1399
1400         fclose: Support for MSVC 9.
1401         * lib/fclose.c: Include msvc-inval.h.
1402         (fclose_nothrow): New function.
1403         (rpl_fclose): Use it.
1404         * modules/fclose (Depends-on): Add msvc-inval.
1405         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1406
1407 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         dup2: minor simplifications
1410         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1411         that it's a performance win.
1412         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1413         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1414
1415 2011-09-24  Jim Meyering  <meyering@redhat.com>
1416
1417         test-futimens: avoid a warning from gcc -Wshadow
1418         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1419         to avoid a shadowing warning.
1420
1421 2011-09-24  Bruno Haible  <bruno@clisp.org>
1422
1423         fdopen: Support for MSVC 9.
1424         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1425         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1426         * lib/fdopen.c: Include msvc-inval.h.
1427         (fdopen_nothrow): New function.
1428         (rpl_fdopen): Use it.
1429         * modules/fdopen (Depends-on): Add msvc-inval.
1430         * modules/fclose-tests (Depends-on): Add fdopen.
1431         * modules/fflush-tests (Depends-on): Likewise.
1432         * modules/fgetc-tests (Depends-on): Likewise.
1433         * modules/fputc-tests (Depends-on): Likewise.
1434         * modules/fread-tests (Depends-on): Likewise.
1435         * modules/freopen-tests (Depends-on): Likewise.
1436         * modules/fseeko-tests (Depends-on): Likewise.
1437         * modules/ftello-tests (Depends-on): Likewise.
1438         * modules/fwrite-tests  (Depends-on): Likewise.
1439         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1440
1441 2011-09-24  Bruno Haible  <bruno@clisp.org>
1442
1443         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1444         * modules/fgetc-tests (Depends-on): Add unistd.
1445         * modules/fputc-tests (Depends-on): Likewise.
1446         * modules/fread-tests (Depends-on): Likewise.
1447         * modules/fwrite-tests (Depends-on): Likewise.
1448
1449 2011-09-24  Bruno Haible  <bruno@clisp.org>
1450
1451         dup: Simplify autoconf test.
1452         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1453         on gl_MSVC_INVAL's result.
1454
1455 2011-09-24  Bruno Haible  <bruno@clisp.org>
1456
1457         Tests for function fwrite().
1458         * modules/fwrite-tests: New file.
1459         * tests/test-fwrite.c: New file.
1460         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1461
1462         Tests for function fread().
1463         * modules/fread-tests: New file.
1464         * tests/test-fread.c: New file.
1465         * modules/stdio-tests (Depends-on): Add fread-tests.
1466
1467         Activate fputc tests.
1468         * modules/stdio-tests (Depends-on): Add fputc-tests.
1469
1470         Enhance fgetc, fputc tests.
1471         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1472         * tests/test-fputc.c (main): Likewise.
1473
1474 2011-09-24  Bruno Haible  <bruno@clisp.org>
1475
1476         write: Support for MSVC 9.
1477         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1478         is not 1.
1479         * lib/write.c (write_nothrow): New function.
1480         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1481         not 1. Use write_nothrow.
1482         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1483         invalid parameter handler.
1484         (gl_PREREQ_WRITE): New macro.
1485         * modules/write (Depends-on): Add msvc-inval.
1486         (configure.ac): Invoke gl_PREREQ_WRITE.
1487         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1488
1489 2011-09-24  Bruno Haible  <bruno@clisp.org>
1490
1491         read: Fix last commit.
1492         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1493
1494 2011-09-24  Bruno Haible  <bruno@clisp.org>
1495
1496         dup2: Fix last commit.
1497         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1498         (rpl_dup2): Disable fcntl workaround on native Windows.
1499
1500         sigprocmask: Make code safer.
1501         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1502         section that changes macro definitions for this compilation unit.
1503
1504 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1505
1506         dup2: clarify by coalescing Windows-specific material
1507         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1508         "msvc-nothrow.h"' to the Windows-specific section, so that the
1509         Emacs source need not contain these include files.
1510         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1511         Windows-specific fixes into this function rather than just the
1512         nothrow fix, as this shortens and clarifies the code.  Always
1513         define as a function, as that's a bit cleaner than having it be
1514         sometimes a function and sometimes a macro.
1515         (rpl_dup2): Move the Windows-specific stuff out of here and into
1516         ms_windows_dup2.  Don't protect the Haiku-related fix with
1517         "#if !defined __linux__", as the same code also works around
1518         a Linux kernel bug, and it doesn't add any system calls on any
1519         platform.  Add comment about FreeBSD 6.1.
1520
1521         sigprocmask: move #include directive
1522         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1523         Windows-specific section, so that the Emacs source need not
1524         contain msvc-inval.h.
1525
1526 2011-09-23  Bruno Haible  <bruno@clisp.org>
1527
1528         read: Support for MSVC 9.
1529         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1530         is not 1.
1531         * lib/read.c (read_nothrow): New function.
1532         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1533         read_nothrow.
1534         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1535         invalid parameter handler.
1536         (gl_PREREQ_READ): New macro.
1537         * modules/read (Depends-on): Add msvc-inval.
1538         (configure.ac): Invoke gl_PREREQ_READ.
1539         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1540
1541 2011-09-23  Bruno Haible  <bruno@clisp.org>
1542
1543         close: Support for MSVC 9.
1544         * lib/close.c: Include <errno.h>, msvc-inval.h.
1545         (close_nothrow): New function.
1546         (rpl_close): Use it.
1547         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1548         invalid parameter handler.
1549         * modules/close (Depends-on): Add msvc-inval.
1550         * modules/dup2-tests (Depends-on): Add close.
1551         * modules/dup3-tests (Depends-on): Likewise.
1552         * modules/fcntl-tests (Depends-on): Likewise.
1553         * modules/spawn-pipe-tests (Depends-on): Likewise.
1554         * modules/unistd-safer-tests (Depends-on): Likewise.
1555         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1556
1557 2011-09-23  Bruno Haible  <bruno@clisp.org>
1558
1559         New module 'dup'.
1560         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1561         Allow replacement.
1562         * lib/dup.c: New file.
1563         * lib/fchdir.c (rpl_dup): Remove function.
1564         * m4/dup.m4: New file.
1565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1566         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1567         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1568         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1569         * modules/dup: New file.
1570         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1571         'dup' module is in use.
1572         * modules/fdopendir (Depends-on): Add dup.
1573         * modules/fdutimensat-tests (Depends-on): Likewise.
1574         * modules/fts (Depends-on): Likewise.
1575         * modules/futimens-tests (Depends-on): Likewise.
1576         * modules/posix_spawnp-tests (Depends-on): Likewise.
1577         * modules/unistd-safer-tests (Depends-on): Likewise.
1578         * modules/utimens-tests (Depends-on): Likewise.
1579         * doc/posix-functions/dup.texi: Mention the new module and the problem
1580         on MSVC.
1581
1582 2011-09-23  Bruno Haible  <bruno@clisp.org>
1583
1584         getdtablesize: Support for MSVC 9.
1585         * lib/getdtablesize.c: Include msvc-inval.h.
1586         (_setmaxstdio_nothrow): New function.
1587         (_setmaxstdio): Redefine it.
1588         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1589         * modules/getdtablesize (Depends-on): Add msvc-inval.
1590         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1591
1592 2011-09-23  Bruno Haible  <bruno@clisp.org>
1593
1594         signal-h: Rename from signal.
1595         * modules/signal-h: Renamed from modules/signal.
1596         * modules/pthread_sigmask (Depends-on): Update.
1597         * modules/raise (Depends-on): Likewise.
1598         * modules/sigaction (Depends-on): Likewise.
1599         * modules/sigpipe (Depends-on): Likewise.
1600         * modules/sigprocmask (Depends-on): Likewise.
1601         * modules/sys_select (Depends-on): Likewise.
1602         * modules/signal-h-tests: Renamed from modules/signal-tests.
1603         (Files, Depends-on, Makefile.am): Update.
1604         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1605         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1606         (Files, Makefile.am): Update.
1607         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1608         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1609         * modules/signal: New placeholder file.
1610         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1611         * doc/posix-headers/signal.texi: Update.
1612         * NEWS: Mention the change.
1613
1614 2011-09-23  Bruno Haible  <bruno@clisp.org>
1615
1616         sigprocmask: Avoid crashes through signal() on MSVC 9.
1617         * lib/sigprocmask.c: Include msvc-inval.h.
1618         (signal_nothrow): New function.
1619         (signal): Redefine it.
1620         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1621         * modules/sigprocmask (Depends-on): Add msvc-inval.
1622         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1623
1624 2011-09-23  Bruno Haible  <bruno@clisp.org>
1625
1626         Tests for module 'raise'.
1627         * modules/raise-tests: New file.
1628         * tests/test-raise.c: New file.
1629
1630         raise: Support for MSVC.
1631         * lib/signal.in.h (raise): New declaration.
1632         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1633         for native Windows platforms.
1634         * m4/raise.m4: New file.
1635         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1636         HAVE_RAISE, REPLACE_RAISE.
1637         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1638         REPLACE_RAISE.
1639         * modules/raise (Status, Notice): Remove fields.
1640         (Files): Add m4/raise.m4.
1641         (Depends-on): Add signal, msvc-inval.
1642         (configure.ac): Use the common idioms.
1643         (Maintainer): Add me.
1644         * tests/test-signal-c++.cc: Check the signature of raise.
1645         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1646
1647 2011-09-23  Bruno Haible  <bruno@clisp.org>
1648
1649         pipe2: Fix compilation on pre-C99 compilers.
1650         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1651
1652 2011-09-23  Bruno Haible  <bruno@clisp.org>
1653
1654         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1655         * lib/msvc-nothrow.h: New file.
1656         * lib/msvc-nothrow.c: New file.
1657         * m4/msvc-nothrow.m4: New file.
1658         * modules/msvc-nothrow: New file.
1659         * lib/dup2.c: Include msvc-nothrow.h.
1660         (rpl_dup2): No need to protect _get_osfhandle call here.
1661         * lib/accept4.c: Include msvc-nothrow.h.
1662         * lib/error.c: Likewise.
1663         * lib/fcntl.c: Likewise.
1664         * lib/lseek.c: Likewise.
1665         * lib/nonblocking.c: Likewise.
1666         * lib/poll.c: Likewise.
1667         * lib/read.c: Likewise.
1668         * lib/select.c: Likewise.
1669         * lib/sockets.h: Likewise.
1670         * lib/sockets.c: Likewise.
1671         * lib/stdio-read.c: Likewise.
1672         * lib/stdio-write.c: Likewise.
1673         * lib/write.c: Likewise.
1674         * lib/w32sock.h: Likewise.
1675         * lib/w32spawn.h: Likewise.
1676         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1677         * lib/fsync.c: Likewise.
1678         * lib/isapipe.c: Likewise.
1679         * modules/dup2 (Depends-on): Add msvc-nothrow.
1680         * modules/accept4 (Depends-on): Likewise.
1681         * modules/error (Depends-on): Likewise.
1682         * modules/fcntl (Depends-on): Likewise.
1683         * modules/lseek (Depends-on): Likewise.
1684         * modules/nonblocking (Depends-on): Likewise.
1685         * modules/poll (Depends-on): Likewise.
1686         * modules/read (Depends-on): Likewise.
1687         * modules/select (Depends-on): Likewise.
1688         * modules/sockets (Depends-on): Likewise.
1689         * modules/sigpipe (Depends-on): Likewise.
1690         * modules/write (Depends-on): Likewise.
1691         * modules/accept (Depends-on): Likewise.
1692         * modules/bind (Depends-on): Likewise.
1693         * modules/connect (Depends-on): Likewise.
1694         * modules/gethostname (Depends-on): Likewise.
1695         * modules/getpeername (Depends-on): Likewise.
1696         * modules/getsockname (Depends-on): Likewise.
1697         * modules/getsockopt (Depends-on): Likewise.
1698         * modules/ioctl (Depends-on): Likewise.
1699         * modules/listen (Depends-on): Likewise.
1700         * modules/recv (Depends-on): Likewise.
1701         * modules/recvfrom (Depends-on): Likewise.
1702         * modules/send (Depends-on): Likewise.
1703         * modules/sendto (Depends-on): Likewise.
1704         * modules/setsockopt (Depends-on): Likewise.
1705         * modules/shutdown (Depends-on): Likewise.
1706         * modules/socket (Depends-on): Likewise.
1707         * modules/execute (Depends-on): Likewise.
1708         * modules/spawn-pipe (Depends-on): Likewise.
1709         * modules/flock (Depends-on): Likewise.
1710         * modules/fsync (Depends-on): Likewise.
1711         * modules/isapipe (Depends-on): Likewise.
1712         * tests/test-cloexec.c: Include msvc-nothrow.h.
1713         * tests/test-dup-safer.c: Likewise.
1714         * tests/test-dup2.c: Likewise.
1715         * tests/test-dup3.c: Likewise.
1716         * tests/test-fcntl.c: Likewise.
1717         * tests/test-pipe.c: Likewise.
1718         * tests/test-pipe2.c: Likewise.
1719         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1720         * modules/unistd-safer-tests (Depends-on): Likewise.
1721         * modules/dup2-tests (Depends-on): Likewise.
1722         * modules/dup3-tests (Depends-on): Likewise.
1723         * modules/fcntl-tests (Depends-on): Likewise.
1724         * modules/pipe-posix-tests (Depends-on): Likewise.
1725         * modules/pipe2-tests (Depends-on): Likewise.
1726
1727 2011-09-23  Bruno Haible  <bruno@clisp.org>
1728
1729         dup2: Make code more maintainable.
1730         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1731         (rpl_dup2): Use it.
1732         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1733         * modules/dup2 (configure.ac): Invoke it.
1734         Reported by Paul Eggert.
1735
1736 2011-09-23  Bruno Haible  <bruno@clisp.org>
1737
1738         msvc-inval: Fix compilation error.
1739         * lib/msvc-inval.h: Include <excpt.h>.
1740
1741 2011-09-23  Bruno Haible  <bruno@clisp.org>
1742
1743         mkdir: Tweak for MSVC 9.
1744         * lib/sys_stat.in.h: Update comments.
1745         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1746
1747         Tests for module 'chdir'.
1748         * modules/chdir-tests: New file.
1749         * tests/test-chdir.c: New file.
1750
1751         New module 'chdir'.
1752         * modules/chdir: New file.
1753         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1754         (chdir): New declaration.
1755         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1756         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1757         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1758         * tests/test-unistd-c++.cc: Check signature of chdir.
1759         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1760         * modules/chdir-long (Depends-on): Add chdir.
1761         * modules/fchdir (Depends-on): Likewise.
1762         * modules/rename (Depends-on): Likewise.
1763         * modules/savewd (Depends-on): Likewise.
1764
1765         rmdir: Support for mingw, MSVC 9.
1766         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1767         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1768
1769         getcwd: Tweak for MSVC 9.
1770         * lib/unistd.in.h: Update comments.
1771         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1772
1773 2011-09-22  Bruno Haible  <bruno@clisp.org>
1774
1775         strerror_r-posix: Avoid a link error on MSVC.
1776         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1777         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1778
1779 2011-09-22  Bruno Haible  <bruno@clisp.org>
1780
1781         select: Avoid link errors on MSVC.
1782         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1783         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1784         * modules/pselect (Link): Likewise.
1785         * NEWS: Mention the change.
1786         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1787         test-select-stdin against $(LIB_SELECT).
1788         * modules/pselect-tests (Makefile.am): Link test-pselect against
1789         $(LIB_SELECT).
1790
1791 2011-09-22  Bruno Haible  <bruno@clisp.org>
1792
1793         select: Avoid compilation error on MSVC.
1794         * lib/select.c: Don't include <stdbool.h>.
1795
1796 2011-09-21  Bruno Haible  <bruno@clisp.org>
1797
1798         Consolidate all uses of PATH_MAX in *.m4 files.
1799         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1800         macros.
1801         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1802         and gl_PATHMAX_SNIPPET.
1803         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1804         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1805         * modules/chdir-long (Files): Add m4/pathmax.m4.
1806         * modules/getcwd (Files): Likewise.
1807
1808 2011-09-21  Bruno Haible  <bruno@clisp.org>
1809
1810         ftruncate: Un-deprecate, concentrate on Win32 support.
1811         * modules/ftruncate (Status, Notice): Remove sections.
1812         (Depends-on): Add largefile.
1813         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1814         non-mingw platforms.
1815         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1816         include <io.h>.
1817         * modules/perror-tests (Depends-on): Add ftruncate.
1818         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1819         'ftruncate' module.
1820
1821 2011-09-21  Bruno Haible  <bruno@clisp.org>
1822
1823         Add dependencies to new dirent related modules.
1824         * modules/opendir (Depends-on): Add closedir.
1825         * modules/getcwd (Depends-on): Add opendir, closedir.
1826         * modules/dirent-safer-tests (Depends-on): Likewise.
1827         * modules/fdopendir-tests (Depends-on): Likewise.
1828         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1829         * modules/renameat-tests (Depends-on): Likewise.
1830
1831 2011-09-21  Bruno Haible  <bruno@clisp.org>
1832
1833         opendir: Avoid compilation error on mingw.
1834         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1835         * modules/opendir (Depends-on): Add unistd.
1836
1837 2011-09-21  Bruno Haible  <bruno@clisp.org>
1838
1839         ftruncate tests: Avoid a test failure on mingw.
1840         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1841
1842 2011-09-21  Bruno Haible  <bruno@clisp.org>
1843
1844         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1845         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1846         native Windows.
1847
1848 2011-09-21  Bruno Haible  <bruno@clisp.org>
1849
1850         New module 'fdopen'.
1851         * lib/stdio.in.h (fdopen): New declaration.
1852         * lib/fdopen.c: New file.
1853         * m4/fdopen.m4: New file.
1854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1855         REPLACE_FDOPEN.
1856         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1857         REPLACE_FDOPEN.
1858         * modules/fdopen: New file.
1859         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1860         * tests/test-stdio-c++.cc: Check signature of fdopen.
1861         * doc/posix-functions/fdopen.texi: Mention the new module.
1862
1863 2011-09-21  Bruno Haible  <bruno@clisp.org>
1864
1865         unlockpt tests: Avoid test failure on NetBSD 5.1.
1866         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1867         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1868
1869 2011-09-21  Bruno Haible  <bruno@clisp.org>
1870
1871         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1872         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1873         * tests/test-getlogin_r.c (main): Likewise.
1874
1875 2011-09-20  Bruno Haible  <bruno@clisp.org>
1876
1877         time tests: Don't require pid_t.
1878         * doc/posix-headers/time.texi: Revert last change.
1879         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
1880         * tests/test-time.c: Comment out the check for pid_t.
1881
1882 2011-09-20  Bruno Haible  <bruno@clisp.org>
1883
1884         fsync tests: Avoid a test failure on mingw.
1885         * tests/test-fsync.c (main): Allow a failure with EIO.
1886
1887 2011-09-20  Bruno Haible  <bruno@clisp.org>
1888
1889         euidaccess: Update comments.
1890         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
1891
1892 2011-09-20  Bruno Haible  <bruno@clisp.org>
1893
1894         Ensure EBADF returns for socket functions on mingw.
1895         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
1896         descriptor is invalid.
1897         * lib/bind.c (rpl_bind): Likewise.
1898         * lib/connect.c (rpl_connect): Likewise.
1899         * lib/getpeername.c (rpl_getpeername): Likewise.
1900         * lib/getsockname.c (rpl_getsockname): Likewise.
1901         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1902         * lib/listen.c (rpl_listen): Likewise.
1903         * lib/recv.c (rpl_recv): Likewise.
1904         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1905         * lib/send.c (rpl_send): Likewise.
1906         * lib/sendto.c (rpl_sendto): Likewise.
1907         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1908         * lib/shutdown.c (rpl_shutdown): Likewise.
1909
1910 2011-09-20  Bruno Haible  <bruno@clisp.org>
1911
1912         select tests: EBADF tests.
1913         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1914         test_bad_fd): New functions.
1915         (test_function): Invoke also test_bad_fd.
1916
1917 2011-09-20  Bruno Haible  <bruno@clisp.org>
1918
1919         Tests for module 'posix_spawn_file_actions_addopen.
1920         * modules/posix_spawn_file_actions_addopen-tests: New file.
1921         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1922
1923         Tests for module 'posix_spawn_file_actions_adddup2'.
1924         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1925         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1926
1927         Tests for module 'posix_spawn_file_actions_addclose'.
1928         * modules/posix_spawn_file_actions_addclose-tests: New file.
1929         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1930
1931 2011-09-20  Bruno Haible  <bruno@clisp.org>
1932
1933         Tests for module 'unlockpt'.
1934         * modules/unlockpt-tests: New file.
1935         * tests/test-unlockpt.c: New file.
1936         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1937
1938         Tests for module 'grantpt'.
1939         * modules/grantpt-tests: New file.
1940         * tests/test-grantpt.c: New file.
1941         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1942
1943 2011-09-20  Bruno Haible  <bruno@clisp.org>
1944
1945         freopen tests: EBADF tests.
1946         * tests/test-freopen.c: Include errno.h, unistd.h.
1947         (main): Add tests for EBADF, commented out for the moment.
1948
1949         fclose tests: EBADF tests.
1950         * tests/test-fclose.c (main): Add tests for EBADF.
1951
1952         fflush tests: EBADF tests.
1953         * tests/test-fflush.c: Include errno.h, macros.h.
1954         (main): Add tests for EBADF.
1955
1956         ftello tests: EBADF tests.
1957         * tests/test-ftello4.sh: New file.
1958         * tests/test-ftello4.c: New file.
1959         * modules/ftello-tests (Files): Add them.
1960         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1961
1962         fseeko tests: EBADF tests.
1963         * tests/test-fseeko4.sh: New file.
1964         * tests/test-fseeko4.c: New file.
1965         * modules/fseeko-tests (Files): Add them.
1966         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1967
1968         Tests for function fputc().
1969         * modules/fputc-tests: New file.
1970         * tests/test-fputc.c: New file.
1971         * modules/stdio-tests (Depends-on): Add fputc-tests.
1972
1973         Tests for function fgetc().
1974         * modules/fgetc-tests: New file.
1975         * tests/test-fgetc.c: New file.
1976         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1977
1978         Tests for function fdopen().
1979         * modules/fdopen-tests: New file.
1980         * tests/test-fdopen.c: New file.
1981         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1982
1983         Tests for module 'vdprintf'.
1984         * modules/vdprintf-tests: New file.
1985         * tests/test-vdprintf.c: New file.
1986
1987         Tests for module 'dprintf'.
1988         * modules/dprintf-tests: New file.
1989         * tests/test-dprintf.c: New file.
1990
1991 2011-09-20  Bruno Haible  <bruno@clisp.org>
1992
1993         Tests for module 'ioctl'.
1994         * modules/ioctl-tests: New file.
1995         * tests/test-ioctl.c: New file.
1996
1997 2011-09-20  Bruno Haible  <bruno@clisp.org>
1998
1999         fcntl tests: EBADF tests.
2000         * tests/test-fcntl.c (main): Add more tests for EBADF.
2001
2002 2011-09-20  Bruno Haible  <bruno@clisp.org>
2003
2004         utimensat tests: EBADF tests.
2005         * tests/test-utimensat.c (main): Add tests for EBADF.
2006
2007         renameat tests: EBADF tests.
2008         * tests/test-renameat.c (main): Add tests for EBADF.
2009
2010         mkfifoat tests: EBADF tests.
2011         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2012
2013         readlinkat tests: EBADF tests.
2014         * tests/test-readlinkat.c (main): Add tests for EBADF.
2015
2016         symlinkat tests: EBADF tests.
2017         * tests/test-symlinkat.c (main): Add tests for EBADF.
2018
2019         linkat tests: EBADF tests.
2020         * tests/test-linkat.c (main): Add tests for EBADF.
2021
2022         Tests for module 'faccessat'.
2023         * modules/faccessat-tests: New file.
2024         * tests/test-faccessat.c: New file.
2025
2026         fdopendir tests: EBADF tests.
2027         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2028
2029         openat tests: EBADF tests.
2030         * tests/test-fchownat.c (main): Add tests for EBADF.
2031         * tests/test-fstatat.c (main): Likewise.
2032         * tests/test-mkdirat.c (main): Likewise.
2033         * tests/test-openat.c (main): Likewise.
2034         * tests/test-unlinkat.c (main): Likewise.
2035         * tests/test-fchmodat.c: New file.
2036         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2037         (Makefile.am): Also run 'test-fchmodat'.
2038
2039 2011-09-20  Bruno Haible  <bruno@clisp.org>
2040
2041         utimens, futimens, fdutimensat tests: EBADF tests.
2042         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2043
2044         Tests for function fstat().
2045         * modules/fstat-tests: New file.
2046         * tests/test-fstat.c: New file.
2047         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2048
2049 2011-09-20  Bruno Haible  <bruno@clisp.org>
2050
2051         test-ttyname_r tests: EBADF tests.
2052         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2053
2054         Tests for module 'isatty'.
2055         * modules/isatty-tests: New file.
2056         * tests/test-isatty.c: New file.
2057
2058         Tests for module 'write'.
2059         * modules/write-tests: New file.
2060         * tests/test-write.c: New file.
2061
2062         Tests for module 'read'.
2063         * modules/read-tests: New file.
2064         * tests/test-read.c: New file.
2065
2066         pwrite tests: EBADF tests.
2067         * tests/test-pwrite.c (main): Add tests for EBADF.
2068
2069         pread tests: EBADF tests.
2070         * tests/test-pread.c (main): Add tests for EBADF.
2071
2072         lseek tests: EBADF tests.
2073         * tests/test-lseek.c (main): Add more tests for EBADF.
2074
2075         Tests for module 'ftruncate'.
2076         * modules/ftruncate-tests: New file.
2077         * tests/test-ftruncate.sh: New file.
2078         * tests/test-ftruncate.c: New file.
2079
2080         fsync tests: EBADF tests.
2081         * tests/test-fsync.c (main): Add more tests for EBADF.
2082
2083         fdatasync tests: EBADF tests.
2084         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2085
2086         Tests for module 'fchown'.
2087         * modules/fchown-tests: New file.
2088         * tests/test-fchown.c: New file.
2089
2090         Tests for module 'fchmod'.
2091         * modules/fchmod-tests: New file.
2092         * tests/test-fchmod.c: New file.
2093
2094         fchdir tests: EBADF tests.
2095         * tests/test-fchdir.c (main): Add more tests for EBADF.
2096
2097         dup2 tests: EBADF tests.
2098         * tests/test-dup2.c (main): Add more tests for EBADF.
2099
2100         Tests for module 'dup'.
2101         * modules/dup-tests: New file.
2102         * tests/test-dup.c: New file.
2103
2104         Tests for module 'close'.
2105         * modules/close-tests: New file.
2106         * tests/test-close.c: New file.
2107
2108 2011-09-20  Bruno Haible  <bruno@clisp.org>
2109
2110         Tests for module 'shutdown'.
2111         * modules/shutdown-tests: New file.
2112         * tests/test-shutdown.c: New file.
2113
2114         Tests for module 'setsockopt'.
2115         * modules/setsockopt-tests: New file.
2116         * tests/test-setsockopt.c: New file.
2117
2118         Tests for module 'sendto'.
2119         * modules/sendto-tests: New file.
2120         * tests/test-sendto.c: New file.
2121
2122         Tests for module 'send'.
2123         * modules/send-tests: New file.
2124         * tests/test-send.c: New file.
2125
2126         Tests for module 'recvfrom'.
2127         * modules/recvfrom-tests: New file.
2128         * tests/test-recvfrom.c: New file.
2129
2130         Tests for module 'recv'.
2131         * modules/recv-tests: New file.
2132         * tests/test-recv.c: New file.
2133
2134         Tests for module 'listen'.
2135         * modules/listen-tests: New file.
2136         * tests/test-listen.c: New file.
2137
2138         Tests for module 'getsockopt'.
2139         * modules/getsockopt-tests: New file.
2140         * tests/test-getsockopt.c: New file.
2141
2142         Tests for module 'getsockname'.
2143         * modules/getsockname-tests: New file.
2144         * tests/test-getsockname.c: New file.
2145
2146         Tests for module 'getpeername'.
2147         * modules/getpeername-tests: New file.
2148         * tests/test-getpeername.c: New file.
2149
2150         Tests for module 'connect'.
2151         * modules/connect-tests: New file.
2152         * tests/test-connect.c: New file.
2153
2154         Tests for module 'bind'.
2155         * modules/bind-tests: New file.
2156         * tests/test-bind.c: New file.
2157
2158         accept4 tests: Fix for native Windows.
2159         * tests/test-accept4.c: Include sockets.h.
2160         (main): Invoke gl_sockets_startup.
2161         * modules/accept4-tests (Depends-on): Add sockets.
2162
2163         accept tests: Fix for native Windows.
2164         * tests/test-accept.c: Include sockets.h.
2165         (main): Invoke gl_sockets_startup.
2166         * modules/accept-tests (Depends-on): Add sockets.
2167
2168 2011-09-19  Bruno Haible  <bruno@clisp.org>
2169
2170         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2171         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2172         do...while(0).
2173         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2174         Suggested by Paul Eggert.
2175
2176 2011-09-19  Bruno Haible  <bruno@clisp.org>
2177
2178         sched: Ensure pid_t is defined.
2179         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2180         not define pid_t.
2181         * lib/sched.in.h: Include <sys/types.h>.
2182         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2184
2185 2011-09-19  Bruno Haible  <bruno@clisp.org>
2186
2187         msvc-inval: Ensure the entire expansion is a single statement.
2188         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2189         of braces.
2190
2191 2011-09-19  Jim Meyering  <meyering@redhat.com>
2192
2193         tests: use printf, not echo in init.sh's warn_ function
2194         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2195         misbehave when given strings containing a backslash or starting
2196         with e.g., -n.  James Youngman suggested setting IFS.
2197
2198 2011-09-19  Eric Blake  <eblake@redhat.com>
2199
2200         futimens: enhance test
2201         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2202         closed non-negative fd.
2203
2204         date: accept 'hence' as opposite of 'ago'
2205         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2206         * tests/test-parse-datetime.c (main): Enhance test.
2207         Suggested by Jesse Wilson.
2208
2209 2011-09-19  Jim Meyering  <meyering@redhat.com>
2210
2211         getcwd: don't fail in a deep directory on a system without openat
2212         Before this change, getcwd would fail when called from a directory
2213         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2214         the non-openat implementation used "..", "../..", "../../..", etc.
2215         to access ancestor directories.  With too many, that string would
2216         be longer than PATH_MAX.
2217         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2218         using gnulib's openat replacement.
2219         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2220         we're using the replacement function.
2221
2222 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2223
2224         maint.mk: avoid warnings from perl about missing files
2225         * top/maint.mk (def_sym_regex): Ignore files listed in
2226         $(gl_other_headers_) that do not exist, say because a project
2227         does not use a corresponding module.
2228
2229 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2230
2231         stat: use pathmax.h only if needed
2232         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2233         This is better for Emacs, which does not have a mingw port and
2234         therefore can avoid the pathmax module.
2235
2236         utimens: remove dependency on dup2
2237         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2238         to work around the Linux kernel bug.
2239         * modules/utimens (Depends-on): Remove dup2.
2240
2241 2011-09-18  Bruno Haible  <bruno@clisp.org>
2242
2243         inet_ntop, inet_pton: Look for it also in libresolv.
2244         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2245         libnsl, search for it in libresolv.
2246         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2247         Needed on Solaris 7.
2248
2249 2011-09-18  Bruno Haible  <bruno@clisp.org>
2250
2251         accept, accept4 tests: Avoid link error on Solaris.
2252         * modules/accept-tests (Makefile.am): Link test-accept against
2253         $(LIBSOCKET).
2254         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2255         $(LIBSOCKET).
2256
2257         accept4: Avoid link error on Solaris.
2258         * modules/accept4 (Link): New section.
2259
2260         socket functions: Avoid link errors on Solaris.
2261         * modules/accept (Depends-on): Add socketlib.
2262         (Link): New section.
2263         * modules/bind (Depends-on): Add socketlib.
2264         (Link): New section.
2265         * modules/connect (Depends-on): Add socketlib.
2266         (Link): New section.
2267         * modules/getpeername (Depends-on): Add socketlib.
2268         (Link): New section.
2269         * modules/getsockname (Depends-on): Add socketlib.
2270         (Link): New section.
2271         * modules/getsockopt (Depends-on): Add socketlib.
2272         (Link): New section.
2273         * modules/listen (Depends-on): Add socketlib.
2274         (Link): New section.
2275         * modules/recv (Depends-on): Add socketlib.
2276         (Link): New section.
2277         * modules/recvfrom (Depends-on): Add socketlib.
2278         (Link): New section.
2279         * modules/send (Depends-on): Add socketlib.
2280         (Link): New section.
2281         * modules/sendto (Depends-on): Add socketlib.
2282         (Link): New section.
2283         * modules/setsockopt (Depends-on): Add socketlib.
2284         (Link): New section.
2285         * modules/shutdown (Depends-on): Add socketlib.
2286         (Link): New section.
2287         * modules/socket (Depends-on): Add socketlib.
2288         (Link): New section.
2289
2290 2011-09-18  Bruno Haible  <bruno@clisp.org>
2291
2292         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2293         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2294         than 5 seconds.
2295         * modules/ptsname-tests (configure.ac): Test for alarm.
2296
2297 2011-09-18  Bruno Haible  <bruno@clisp.org>
2298
2299         posix_spawn_file_actions_add*: Fix module dependencies.
2300         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2301         posix_spawn_file_actions_init.
2302         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2303         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2304
2305 2011-09-18  Bruno Haible  <bruno@clisp.org>
2306
2307         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2308         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2309         * tests/test-renameat.c (main): Likewise.
2310
2311 2011-09-18  Bruno Haible  <bruno@clisp.org>
2312
2313         Tests for module 'accept4'.
2314         * modules/accept4-tests: New file.
2315         * tests/test-accept4.c: New file.
2316
2317 2011-09-18  Bruno Haible  <bruno@clisp.org>
2318
2319         Tests for module 'accept'.
2320         * modules/accept-tests: New file.
2321         * tests/test-accept.c: New file.
2322
2323 2011-09-18  Bruno Haible  <bruno@clisp.org>
2324
2325         dup2: Support for MSVC.
2326         * lib/dup2.c: Include msvc-inval.h.
2327         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2328         _get_osfhandle calls.
2329         * modules/dup2 (Depends-on): Add msvc-inval.
2330         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2331
2332         New module 'msvc-inval'.
2333         * lib/msvc-inval.h: New file.
2334         * lib/msvc-inval.c: New file.
2335         * m4/msvc-inval.m4: New file.
2336         * modules/msvc-inval: New file.
2337
2338 2011-09-17  Bruno Haible  <bruno@clisp.org>
2339
2340         Tests for module 'pclose'.
2341         * modules/pclose-tests: New file.
2342
2343         New module 'pclose'.
2344         * lib/stdio.in.h (pclose): New declaration.
2345         * lib/pclose.c: New file.
2346         * m4/pclose.m4: New file.
2347         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2348         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2349         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2350         * modules/pclose: New file.
2351         * modules/popen-tests (Depends-on): Add pclose.
2352         * modules/popen-safer-tests (Depends-on): Likewise.
2353         * doc/posix-functions/pclose.texi: Mention the new module.
2354
2355 2011-09-17  Bruno Haible  <bruno@clisp.org>
2356
2357         popen: Support for MSVC.
2358         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2359         * lib/popen.c (popen): Provide alternate definition for native Windows.
2360         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2362         * modules/popen (Depends-on, configure.ac): Update condition.
2363         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2364         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2365         fixed.
2366
2367 2011-09-17  Bruno Haible  <bruno@clisp.org>
2368
2369         isnanl, isnand, isnanf: Work around MSVC bug.
2370         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2371
2372 2011-09-17  Bruno Haible  <bruno@clisp.org>
2373
2374         sys_socket tests: Fix recent mistake.
2375         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2376
2377 2011-09-17  Bruno Haible  <bruno@clisp.org>
2378
2379         putenv: Support for MSVC.
2380         * modules/putenv (Depends-on): Add environ.
2381         * lib/putenv.c (environ): Disable declaration.
2382         * lib/unistd.in.h: Update comment.
2383
2384 2011-09-17  Bruno Haible  <bruno@clisp.org>
2385
2386         math: Avoid macro redefinition warnings on MSVC.
2387         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2388         Undefine before redefining.
2389
2390 2011-09-17  Bruno Haible  <bruno@clisp.org>
2391
2392         doc: Mention functions which are declared as macros.
2393         * doc/posix-functions/*[fl].texi: Mention that some functions are
2394         defined as macros with arguments only.
2395
2396 2011-09-17  Bruno Haible  <bruno@clisp.org>
2397
2398         Add dependencies to new dirent related modules.
2399         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2400         * modules/fts (Depends-on): Likewise.
2401         * modules/glob (Depends-on): Likewise.
2402         * modules/savedir (Depends-on): Likewise.
2403         * modules/scandir (Depends-on): Likewise.
2404         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2405         * modules/fdopendir (Depends-on): Add opendir.
2406
2407 2011-09-17  Bruno Haible  <bruno@clisp.org>
2408
2409         inet_pton: Support for MSVC on Windows Vista or newer.
2410         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2411         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2412         HAVE_DECL_INET_PTON is defined.
2413         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2414         On platforms with <winsock2.h>, test whether inet_pton is declared in
2415         <ws2tcpip.h>. If so, arrange to replace it.
2416         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2417         REPLACE_INET_PTON.
2418         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2419         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2420         (Depends-on, configure.ac): Update condition.
2421         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2422
2423 2011-09-17  Bruno Haible  <bruno@clisp.org>
2424
2425         inet_ntop: Support for MSVC on Windows Vista or newer.
2426         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2427         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2428         HAVE_DECL_INET_NTOP is defined.
2429         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2430         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2431         <ws2tcpip.h>. If so, arrange to replace it.
2432         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2433         REPLACE_INET_NTOP.
2434         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2435         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2436         (Depends-on, configure.ac): Update condition.
2437         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2438
2439 2011-09-16  Eric Blake  <eblake@redhat.com>
2440
2441         test-fsync: yet another enhancement
2442         * tests/test-fsync.c (main): Also test behavior on read-only text
2443         file.
2444
2445 2011-09-16  Bruno Haible  <bruno@clisp.org>
2446
2447         Enhance fsync, fdatasync tests.
2448         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2449         * tests/test-fdatasync.c (main): Likewise.
2450
2451 2011-09-16  Bruno Haible  <bruno@clisp.org>
2452
2453         Support for MSVC compiler: Ensure mode_t gets defined.
2454         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2456         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2457         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2458         * tests/test-fcntl-h.c: Check that mode_t is defined.
2459         * tests/test-sys_stat.c: Likewise.
2460         * tests/test-sys_types.c: Likewise.
2461         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2462         * doc/posix-headers/sys_stat.texi: Likewise.
2463         * doc/posix-headers/sys_types.texi: Likewise.
2464
2465 2011-09-16  Bruno Haible  <bruno@clisp.org>
2466
2467         sys_stat: Support for MSVC.
2468         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2469         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2470         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2471         MSVC.
2472
2473 2011-09-16  Bruno Haible  <bruno@clisp.org>
2474
2475         Support for MSVC compiler: Ensure off_t gets defined.
2476         * lib/unistd.in.h: Include <sys/types.h>.
2477         * tests/test-fcntl-h.c: Check that off_t is defined.
2478         * tests/test-sys_stat.c: Likewise.
2479         * tests/test-sys_types.c: Likewise.
2480
2481 2011-09-16  Eric Blake  <eblake@redhat.com>
2482
2483         fdatasync: port to Solaris
2484         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2485         * modules/fdatasync (Link): Document it.
2486         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2487
2488         fdatasync: port to MacOS X 10.7
2489         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2490         declared.
2491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2492         * modules/unistd (Makefile.am): Substitute it.
2493         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2494         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2495
2496         fdatasync: minor improvements
2497         * modules/fdatasync (Depends-on): Add condition for fsync.
2498         * lib/fdatasync.c (fdatasync): Add comment.
2499         * tests/test-unistd-c++.cc: Test fdatasync.
2500
2501         unistd: update refs to newer POSIX
2502         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2503         Suggested by Bruno Haible.
2504
2505         fdatasync: new module
2506         * modules/fsync (Description): Document difference to fdatasync.
2507         * modules/fdatasync: New module.
2508         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2509         * lib/fdatasync.c (fdatasync): Likewise.
2510         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2511         defaults.
2512         * modules/unistd (Makefile.am): Set witnesses.
2513         * lib/unistd.in.h (fdatasync): Declare.
2514         * MODULES.html.sh: Document it.
2515         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2516         * modules/fdatasync-tests: New test.
2517         * tests/test-fdatasync.c: Likewise.
2518
2519 2011-09-16  Eric Blake  <eblake@redhat.com>
2520
2521         test-fsync: enhance tests
2522         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2523         * tests/test-fsync.c (main): Enhance test.
2524
2525 2011-09-15  Bruno Haible  <bruno@clisp.org>
2526
2527         Support for MSVC compiler: Ensure ssize_t gets defined.
2528         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2529         * doc/posix-headers/stdio.texi: Likewise.
2530         * modules/stdio (Depends-on): Add ssize_t.
2531         * modules/sys_socket (Depends-on): Likewise.
2532         * modules/sys_types (Depends-on): Likewise.
2533         * modules/sys_uio (Depends-on): Likewise.
2534         * modules/unistd (Depends-on): Likewise.
2535         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2536         * tests/test-sys_types.c: Check that ssize_t is defined.
2537
2538 2011-09-14  Bruno Haible  <bruno@clisp.org>
2539
2540         Avoid using #, the m4 comment starter character, near brackets.
2541         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2542         delimiter character in sed expressions.
2543         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2544         Suggested by Eric Blake.
2545
2546         Properly quote AC_CHECK_DECLS' 4th argument.
2547         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2548         argument.
2549         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2550         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2551         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2552         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2553         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2554         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2556         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2557         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2558         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2559         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2560         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2561         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2562         * m4/isinf.m4 (gl_ISINF): Likewise.
2563         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2564         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2565         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2566         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2568         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2569         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2570         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2571         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2572         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2573         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2574         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2576         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2578         Reported by Eric Blake.
2579
2580         Properly quote AC_CHECK_DECL's 4th argument.
2581         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2582         argument.
2583         * m4/argp.m4 (gl_ARGP): Likewise.
2584         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2585         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2586         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2587         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2588         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2589         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2591         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2592         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2593         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2594         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2595         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2596         Reported by Eric Blake.
2597
2598 2011-09-14  Eric Blake  <eblake@redhat.com>
2599
2600         opendir: avoid compile warning
2601         * lib/opendir.c (includes): Always include errno.h.
2602         Reported by Tatsuro MATSUOKA.
2603
2604 2011-09-14  Jim Meyering  <meyering@redhat.com>
2605
2606         maint.mk: sc_tight_scope: propagate failure from sub-make
2607         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2608         Reported by Martin von Gagern.
2609
2610 2011-09-13  Bruno Haible  <bruno@clisp.org>
2611
2612         tempname: Support for MSVC.
2613         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2614         MSVC.
2615         * modules/tempname (Depends-on): Add fcntl-h.
2616
2617 2011-09-13  Bruno Haible  <bruno@clisp.org>
2618
2619         sys_time: Support for MSVC.
2620         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2621         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2622         include <winsock2.h>.
2623         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2624         function declarations that collide with POSIX.
2625         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2626         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2627
2628 2011-09-13  Bruno Haible  <bruno@clisp.org>
2629
2630         stat: Support for MSVC.
2631         * lib/stat.c: Include pathmax.h.
2632         * modules/stat (Depends-on): Add pathmax.
2633
2634         pathmax: Support for native Windows.
2635         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2636
2637 2011-09-12  Bruno Haible  <bruno@clisp.org>
2638
2639         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2640         * lib/dirent.in.h (struct dirent): New type.
2641         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2642         DT_WHT): New macros.
2643         (DIR): New type.
2644         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2645         (readdir, rewinddir): New declarations.
2646         * lib/dirent-private.h: New file.
2647         * lib/opendir.c: New file.
2648         * lib/readdir.c: New file.
2649         * lib/rewinddir.c: New file.
2650         * lib/closedir.c: New file.
2651         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2652         * m4/opendir.m4: New file.
2653         * m4/readdir.m4: New file.
2654         * m4/rewinddir.m4: New file.
2655         * m4/closedir.m4: New file.
2656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2657         REPLACE_CLOSEDIR here.
2658         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2659         readdir, rewinddir are declared.
2660         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2661         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2662         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2663         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2664         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2665         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2666         * modules/opendir: New file.
2667         * modules/readdir: New file.
2668         * modules/rewinddir: New file.
2669         * modules/closedir: New file.
2670         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2671         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2672         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2673         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2674         * NEWS: Mention the 'fchdir' change.
2675
2676 2011-09-11  Bruno Haible  <bruno@clisp.org>
2677
2678         asm-underscore.m4: Support for MSVC.
2679         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2680         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2681
2682 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2683
2684         Doc about crypt functions.
2685         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2686         needing for _GNU_SOURCE to get crypt.
2687         * doc/posix-functions/encrypt.texi: Likewise.
2688         * doc/posix-functions/setkey.texi: Likewise.
2689
2690 2011-09-11  Bruno Haible  <bruno@clisp.org>
2691
2692         doc: Update regarding MSVC 9.
2693         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2694         tested".
2695         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2696         * doc/posix-headers/*.texi: Likewise.
2697         * doc/pastposix-functions/*.texi: Likewise.
2698         * doc/glibc-functions/*.texi: Likewise.
2699         * doc/glibc-headers/*.texi: Likewise.
2700
2701 2011-09-11  Bruno Haible  <bruno@clisp.org>
2702
2703         unistd et al.: Don't assume <unistd.h> exists.
2704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2705         does not exist.
2706         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2707         exist. But include <stdlib.h>.
2708         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2709         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2710         symlink() does not exist.
2711         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2712         include <io.h> instead.
2713         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2714         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2715         include <direct.h> instead.
2716         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2717         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2718         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2719         <io.h> instead.
2720         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2721         correctly if the system does not have hard links.
2722         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2723         <direct.h> instead.
2724         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2725         it when looking for function declarations.
2726         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2727         <direct.h> and <io.h> instead.
2728         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2729
2730 2011-09-11  Bruno Haible  <bruno@clisp.org>
2731
2732         strcase: Support for MSVC.
2733         * modules/strcase (Status, Notice): Remove obsoletion mark.
2734         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2735         * doc/posix-functions/strncasecmp.texi: Likewise.
2736
2737         strings: Don't assume <strings.h> exists.
2738         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2739         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2740         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2741         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2742
2743 2011-09-11  Bruno Haible  <bruno@clisp.org>
2744
2745         dirent: Don't assume <dirent.h> exists.
2746         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2747         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2748         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2749         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2750
2751 2011-09-11  Bruno Haible  <bruno@clisp.org>
2752
2753         Fix wint_t on MSVC.
2754         * lib/wchar.in.h (wint_t): On MSVC, override it.
2755         * lib/wctype.in.h (wint_t): Likewise.
2756         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2757         MSVC.
2758         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2759         * doc/posix-headers/wctype.texi: Likewise.
2760
2761 2011-09-11  Bruno Haible  <bruno@clisp.org>
2762
2763         sys_types: Fix typo.
2764         * lib/sys_types.in.h: Fix typo in comment.
2765         Reported by Paul Eggert.
2766
2767         Support for MSVC compiler: Ensure size_t gets defined.
2768         * modules/strings (Depends-on): Add 'sys_types'.
2769         * modules/sys_uio (Depends-on): Likewise.
2770         * lib/sys_uio.in.h: Update comment.
2771
2772         C++ tests for module 'sys_types'.
2773         * modules/sys_types-c++-tests: New file.
2774         * tests/test-sys_types-c++.cc: New file.
2775
2776         Tests for module 'sys_types'.
2777         * modules/sys_types-tests: New file.
2778         * tests/test-sys_types.c: New file.
2779
2780         New module 'sys_types'.
2781         * lib/sys_types.in.h: New file.
2782         * m4/sys_types_h.m4: New file.
2783         * modules/sys_types: New file.
2784         * doc/posix-headers/sys_types.texi: Mention the new module and the
2785         size_t problem on MSVC 9.
2786
2787 2011-09-11  Bruno Haible  <bruno@clisp.org>
2788
2789         Support for MSVC compiler: Avoid division by a literal 0.
2790         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2791         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2792         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2793         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2794         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2795         * tests/infinity.h: New file.
2796         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2797         on MSVC.
2798         * tests/test-ceilf1.c: Include infinity.h.
2799         (main): Use Infinityf.
2800         * tests/test-ceil1.c: Include infinity.h.
2801         (main): Use Infinityd.
2802         * tests/test-ceill.c: Include infinity.h.
2803         (main): Use Infinityl.
2804         * tests/test-dprintf-posix.c: Include infinity.h.
2805         (test_function): Use Infinityd.
2806         * tests/test-floorf1.c: Include infinity.h.
2807         (main): Use Infinityf.
2808         * tests/test-floor1.c: Include infinity.h.
2809         (main): Use Infinityd.
2810         * tests/test-floorl.c: Include infinity.h.
2811         (main): Use Infinityl.
2812         * tests/test-fprintf-posix.c: Include infinity.h.
2813         (test_function): Use Infinityd.
2814         * tests/test-frexp.c: Include infinity.h.
2815         (main): Use Infinityd.
2816         * tests/test-frexpl.c: Include infinity.h.
2817         (main): Use Infinityl.
2818         * tests/test-isfinite.c: Include infinity.h.
2819         (test_isfinitef): Use Infinityf.
2820         (test_isfinited): Use Infinityd.
2821         (test_isfinitel): Use Infinityl.
2822         * tests/test-isinf.c: Include infinity.h.
2823         (test_isinff): Use Infinityf.
2824         (test_isinfd): Use Infinityd.
2825         (test_isinfl): Use Infinityl.
2826         * tests/test-isnan.c: Include infinity.h.
2827         (test_float): Use Infinityf.
2828         (test_double): Use Infinityd.
2829         (test_long_double): Use Infinityl.
2830         * tests/test-isnanf.h: Include infinity.h.
2831         (main): Use Infinityf.
2832         * tests/test-isnand.h: Include infinity.h.
2833         (main): Use Infinityd.
2834         * tests/test-isnanl.h: Include infinity.h.
2835         (main): Use Infinityl.
2836         * tests/test-ldexpl.c: Include infinity.h.
2837         (main): Use Infinityl.
2838         * tests/test-printf-posix.h: Include infinity.h.
2839         (test_function): Use Infinityd.
2840         * tests/test-roundf1.c: Include infinity.h.
2841         (main): Use Infinityf.
2842         * tests/test-round1.c: Include infinity.h.
2843         (main): Use Infinityd.
2844         * tests/test-roundl.c: Include infinity.h.
2845         (main): Use Infinityl.
2846         * tests/test-signbit.c: Include infinity.h.
2847         (test_signbitf): Use Infinityf.
2848         (test_signbitd): Use Infinityd.
2849         (test_signbitl): Use Infinityl.
2850         * tests/test-snprintf-posix.h: Include infinity.h.
2851         (test_function): Use Infinityd, Infinityl.
2852         * tests/test-sprintf-posix.h: Include infinity.h.
2853         (test_function): Use Infinityd, Infinityl.
2854         * tests/test-truncf1.c: Include infinity.h.
2855         (main): Use Infinityf.
2856         * tests/test-trunc1.c: Include infinity.h.
2857         (main): Use Infinityd.
2858         * tests/test-truncl.c: Include infinity.h.
2859         (main): Use Infinityl.
2860         * tests/test-vasnprintf-posix.c: Include infinity.h.
2861         (test_function): Use Infinityd, Infinityl.
2862         * tests/test-vasprintf-posix.c: Include infinity.h.
2863         (test_function): Use Infinityd, Infinityl.
2864         * modules/ceilf-tests (Files): Add tests/infinity.h.
2865         * modules/ceil-tests (Files): Likewise.
2866         * modules/ceill-tests (Files): Likewise.
2867         * modules/dprintf-posix-tests (Files): Likewise.
2868         * modules/floorf-tests (Files): Likewise.
2869         * modules/floor-tests (Files): Likewise.
2870         * modules/floorl-tests (Files): Likewise.
2871         * modules/fprintf-posix-tests (Files): Likewise.
2872         * modules/frexp-tests (Files): Likewise.
2873         * modules/frexp-nolibm-tests (Files): Likewise.
2874         * modules/frexpl-tests (Files): Likewise.
2875         * modules/frexpl-nolibm-tests (Files): Likewise.
2876         * modules/isfinite-tests (Files): Likewise.
2877         * modules/isinf-tests (Files): Likewise.
2878         * modules/isnan-tests (Files): Likewise.
2879         * modules/isnanf-tests (Files): Likewise.
2880         * modules/isnanf-nolibm-tests (Files): Likewise.
2881         * modules/isnand-tests (Files): Likewise.
2882         * modules/isnand-nolibm-tests (Files): Likewise.
2883         * modules/isnanl-tests (Files): Likewise.
2884         * modules/isnanl-nolibm-tests (Files): Likewise.
2885         * modules/ldexpl-tests (Files): Likewise.
2886         * modules/printf-posix-tests (Files): Likewise.
2887         * modules/roundf-tests (Files): Likewise.
2888         * modules/round-tests (Files): Likewise.
2889         * modules/roundl-tests (Files): Likewise.
2890         * modules/signbit-tests (Files): Likewise.
2891         * modules/snprintf-posix-tests (Files): Likewise.
2892         * modules/sprintf-posix-tests (Files): Likewise.
2893         * modules/truncf-tests (Files): Likewise.
2894         * modules/trunc-tests (Files): Likewise.
2895         * modules/truncl-tests (Files): Likewise.
2896         * modules/vasnprintf-posix-tests (Files): Likewise.
2897         * modules/vasprintf-posix-tests (Files): Likewise.
2898         * modules/vdprintf-posix-tests (Files): Likewise.
2899         * modules/vfprintf-posix-tests (Files): Likewise.
2900         * modules/vprintf-posix-tests (Files): Likewise.
2901         * modules/vsnprintf-posix-tests (Files): Likewise.
2902         * modules/vsprintf-posix-tests (Files): Likewise.
2903         * modules/xprintf-posix-tests (Files): Likewise.
2904
2905 2011-09-11  Bruno Haible  <bruno@clisp.org>
2906
2907         Ensure pid_t gets defined.
2908         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
2909         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2910         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2911         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2913         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2914         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2915         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2916         * tests/test-fcntl-h.c: Check that pid_t is defined.
2917         * tests/test-sched.c: Likewise.
2918         * tests/test-termios.c: Likewise.
2919         * tests/test-time.c: Likewise.
2920         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2921         * doc/posix-headers/signal.texi: Likewise.
2922         * doc/posix-headers/sys_types.texi: Likewise.
2923         * doc/posix-headers/time.texi: Likewise.
2924
2925 2011-09-11  Bruno Haible  <bruno@clisp.org>
2926
2927         acl: Fix compilation on Solaris 10 (older version).
2928         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2929         of ACE_EVERYONE.
2930         * lib/set-mode-acl.c (qset_acl): Likewise.
2931         Reported by Christian Jullien <eligis@orange.fr>.
2932
2933 2011-09-10  Bruno Haible  <bruno@clisp.org>
2934
2935         iconv, unsetenv: Add support for MSVC compiler.
2936         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2937         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2938
2939 2011-09-10  Bruno Haible  <bruno@clisp.org>
2940
2941         *printf: Add support for MSVC compiler.
2942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2943         handles the exception caused by the %n directive. When cross-compiling,
2944         guess no on native Windows.
2945         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2946         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2947         emulate it through vsnprintf.
2948         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2949         * doc/posix-functions/dprintf.texi: Update documentation regarding
2950         MSVC 9.
2951         * doc/posix-functions/fprintf.texi: Likewise.
2952         * doc/posix-functions/printf.texi: Likewise.
2953         * doc/posix-functions/snprintf.texi: Likewise.
2954         * doc/posix-functions/sprintf.texi: Likewise.
2955         * doc/posix-functions/swprintf.texi: Likewise.
2956         * doc/posix-functions/vdprintf.texi: Likewise.
2957         * doc/posix-functions/vfprintf.texi: Likewise.
2958         * doc/posix-functions/vprintf.texi: Likewise.
2959         * doc/posix-functions/vsnprintf.texi: Likewise.
2960         * doc/posix-functions/vsprintf.texi: Likewise.
2961         * doc/glibc-functions/asprintf.texi: Likewise.
2962         * doc/glibc-functions/obstack_printf.texi: Likewise.
2963         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2964         * doc/glibc-functions/vasprintf.texi: Likewise.
2965
2966 2011-09-10  Bruno Haible  <bruno@clisp.org>
2967
2968         nocrash: Add support for native Windows.
2969         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2970
2971 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2972             Bruno Haible  <bruno@clisp.org>
2973
2974         absolute-header, include-next: Add support for MSVC compiler.
2975         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2976         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2977         directory separator in #line directives.
2978         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2979         recognize also backslash as directory separator in #line directives.
2980
2981 2011-09-08  Jim Meyering  <meyering@redhat.com>
2982
2983         maint.mk: mark the post-release commit log with "maint: " prefix
2984         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2985         one-line commit-log summary.
2986
2987 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2988             Bruno Haible  <bruno@clisp.org>
2989
2990         Doc about crypt functions.
2991         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2992         systems.
2993         * doc/posix-functions/encrypt.texi: Likewise.
2994         * doc/posix-functions/setkey.texi: Likewise.
2995
2996 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2997
2998         * lib/gc.h: Fix copyright header.
2999
3000 2011-09-07  Bruno Haible  <bruno@clisp.org>
3001
3002         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3003         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3004         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3005
3006 2011-09-07  Bruno Haible  <bruno@clisp.org>
3007
3008         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3009         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3010         * lib/freopen.c: Likewise.
3011         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3012         * lib/lstat.c: Likewise.
3013         * lib/stat.c: Likewise.
3014         * lib/open.c: Use different syntax for include of <fcntl.h>.
3015         * lib/openat.c: Include fcntl.h again, explicitly.
3016
3017 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3018
3019         parse-datetime: document the newly accepted format
3020         * doc/parse-datetime.texi (Combined date and time of day items):
3021         New section.
3022
3023 2011-09-06  Bruno Haible  <bruno@clisp.org>
3024
3025         acl: Fix a test failure on newer Solaris 10 with ZFS.
3026         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3027         ENOSYS as no ACL.
3028         Reported by Jim Meyering.
3029
3030 2011-09-06  Bruno Haible  <bruno@clisp.org>
3031
3032         acl: Update for AIX >= 5.3 with NFS.
3033         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3034         ENOSYS as no ACL.
3035
3036         acl: Fix a test failure on AIX >= 5.3 with NFS.
3037         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3038         as no ACL.
3039
3040 2011-09-06  Bruno Haible  <bruno@clisp.org>
3041
3042         acl: Fix a test failure on IRIX 6.5 with NFS.
3043         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3044         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3045         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3046         * lib/copy-acl.c (qcopy_acl): Likewise.
3047
3048 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3049
3050         openat: port to AIX 7.1 with large files
3051         AIX 7.1 does a "#define openat open64at" if large files are in use,
3052         so we can't simply #undef openat.  Use the orig_openat trick (similar
3053         to orig_open in lib/open.c) to work around the problem.  Problem
3054         reported by Kevin Brott for GNU tar, in the thread containing
3055         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3056         * lib/openat.c (__need_system_fcntl_h): Define first.
3057         Include <fcntl.h> and <sys/types.h> before undefining.
3058         (orig_openat) [HAVE_OPENAT]: New inline function.
3059         (openat) [HAVE_OPENAT]: Do not undef.
3060         (rpl_openat): Use orig_openat, not openat.
3061
3062 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3063             Bruno Haible  <bruno@clisp.org>
3064
3065         acl: Avoid errors on NonStop Kernel.
3066         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3067         ENOTSUP errors.
3068
3069 2011-09-05  Bruno Haible  <bruno@clisp.org>
3070
3071         acl: Clean up Solaris code.
3072         * lib/acl-internal.h: Remove no-op #if.
3073         * lib/file-has-acl.c: Likewise.
3074         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3075         * lib/copy-acl.c (qcopy_acl): Likewise.
3076
3077 2011-09-05  Bruno Haible  <bruno@clisp.org>
3078
3079         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3080         binaries built on the original Solaris 10.
3081         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3082         trivial.
3083
3084 2011-09-05  Bruno Haible  <bruno@clisp.org>
3085
3086         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3087         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3088         10.
3089         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3090         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3091         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3092         instead of acl_get, facl_get, acl_set, facl_set.
3093
3094 2011-09-05  Bruno Haible  <bruno@clisp.org>
3095
3096         copy-file: Try unit tests on more file systems.
3097         * tests/test-copy-file-1.sh: New file.
3098         * tests/test-copy-file-2.sh: New file.
3099         * modules/copy-file-tests (Files): Add them.
3100         (Makefile.am): Add them to TESTS.
3101
3102         acl: Try unit tests on more file systems.
3103         * tests/test-file-has-acl-1.sh: New file.
3104         * tests/test-file-has-acl-2.sh: New file.
3105         * tests/test-set-mode-acl-1.sh: New file.
3106         * tests/test-set-mode-acl-2.sh: New file.
3107         * tests/test-copy-acl-1.sh: New file.
3108         * tests/test-copy-acl-2.sh: New file.
3109         * modules/acl-tests (Files): Add them.
3110         (Makefile.am): Add them to TESTS.
3111
3112 2011-09-04  Bruno Haible  <bruno@clisp.org>
3113
3114         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3115         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3116         10.
3117         (OLD_ALLOW, OLD_DENY): New macros.
3118         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3119         ACE_ACCESS_ALLOWED_ACE_TYPE.
3120         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3121         ACE_ACCESS_DENIED_ACE_TYPE.
3122         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3123         (NEW_ACE_EXECUTE): Fix value.
3124         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3125         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3126         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3127         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3128         NEW_ACE_SYNCHRONIZE): New macros.
3129         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3130         instead of acl_fromtext, acl_set, facl_set.
3131         Fixes a coreutils/tests/cp/perm failure.
3132
3133 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3134
3135         openat: test for fstatat (..., 0) bug
3136         Further testing with tar suggests that fstatat (..., 0)
3137         does not work in general, on AIX 7.1; see
3138         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3139         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3140         replacement fstatat (which is what older AIX releases were using
3141         anyway).
3142         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3143         use is now changed to orig_fstatat.  This was probably the right
3144         thing to do anyway.
3145         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3146         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3147         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3148         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3149         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3150         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3151         if the bug is found.
3152
3153         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3154         This tests for another fstatat bug on AIX 7.1:
3155         fstatat (AT_FDCWD, ..., 0) does not work.  See
3156         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3157         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3158         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3159         (rpl_fstatat): Adjust so that it works around either (or both)
3160         bugs if present.
3161         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3162
3163 2011-09-03  Karl Berry  <karl@gnu.org>
3164
3165         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3166         in index entries.
3167
3168 2011-09-02  Bruno Haible  <bruno@clisp.org>
3169
3170         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3171         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3172         values of AR, ARFLAGS, RANLIB.
3173         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3174
3175 2011-09-02  Bruno Haible  <bruno@clisp.org>
3176
3177         Find 'ar' program that fits with --host argument.
3178         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3179
3180 2011-09-02  Bruno Haible  <bruno@clisp.org>
3181
3182         tests: init.sh: Support any non-GNU diff.
3183         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3184         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3185         Solaris 8.
3186
3187 2011-09-02  Bruno Haible  <bruno@clisp.org>
3188
3189         tests: init.sh: work also with any non-GNU diff that supports -u
3190         * tests/init.sh: Relax check for diff -u support.
3191         Rather than checking for GNU diff via --version, simply check
3192         for support for -u itself.  Useful at least on OpenBSD 4.9,
3193         AIX 7.1, IRIX 6.5, and Solaris 10.
3194
3195 2011-09-01  Bruno Haible  <bruno@clisp.org>
3196
3197         strtoimax, strtoumax: Document problem on HP-UX 11.
3198         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3199         * doc/posix-functions/strtoumax.texi: Likewise.
3200
3201 2011-09-01  Bruno Haible  <bruno@clisp.org>
3202
3203         strtoumax: Avoid link error on OSF/1 with DTK cc.
3204         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3205         defined as a function.
3206         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3207         strtoumax is defined, not whether it is declared.
3208
3209 2011-09-01  Bruno Haible  <bruno@clisp.org>
3210
3211         strtoimax: Avoid link error on OSF/1 with DTK cc.
3212         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3213         defined as a function.
3214         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3215         strtoimax is defined, not whether it is declared.
3216
3217 2011-09-01  Bruno Haible  <bruno@clisp.org>
3218
3219         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3220         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3221         as a function.
3222         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3223         whether it is declared.
3224
3225 2011-09-01  Bruno Haible  <bruno@clisp.org>
3226
3227         imaxabs: Avoid link error on OSF/1 with DTK cc.
3228         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3229         as a function.
3230         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3231         whether it is declared.
3232
3233 2011-09-01  Bruno Haible  <bruno@clisp.org>
3234
3235         Tests for module 'strtoumax'.
3236         * modules/strtoumax-tests: New file.
3237         * tests/test-strtoumax.c: New file.
3238
3239         Tests for module 'strtoimax'.
3240         * modules/strtoimax-tests: New file.
3241         * tests/test-strtoimax.c: New file.
3242
3243         Tests for module 'imaxdiv'.
3244         * modules/imaxdiv-tests: New file.
3245         * tests/test-imaxdiv.c: New file.
3246
3247         Tests for module 'imaxabs'.
3248         * modules/imaxabs-tests: New file.
3249         * tests/test-imaxabs.c: New file.
3250
3251 2011-09-01  Bruno Haible  <bruno@clisp.org>
3252
3253         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3254         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3255         pthread_create.
3256
3257 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3258
3259         openat: work around AIX 7.1 fstatat issue
3260         This should fix the problem that was not properly fixed
3261         in the previous change, dated 2011-08-30.
3262         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3263         __need_system_stat_h defined.
3264         (orig_fstatat) [HAVE_FSTATAT]: New function.
3265         (rpl_fstatat): Go back to the old way of doing things,
3266         except call orig_fstatat instead of fstatat.
3267         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3268         Remove unnecessary check whether fstatat fills in st_size etc.
3269
3270 2011-09-01  Bruno Haible  <bruno@clisp.org>
3271
3272         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3273         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3274         just include the system's header.
3275
3276 2011-08-31  Jim Meyering  <meyering@redhat.com>
3277
3278         tests: avoid spurious assertion failure in test-float.c on ppc64
3279         * tests/test-float.c (test_long_double): Comment out an assertion,
3280         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3281         with gcc-4.4.4.
3282
3283         maint: indent with spaces, not TABs
3284         I need to get in the habit of running gnulib's "make check".
3285         Both of these would have been caught.
3286         * m4/largefile.m4: Indent with spaces, not TABs.
3287         * lib/parse-datetime.y (iso_8601_time): Likewise.
3288         Spotted by Pádraig Brady.
3289
3290         test-parse-datetime.c: accommodate a relatively strict gcc warning
3291         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3292         to avoid a warning from gcc's -Werror=missing-declarations.
3293         Insert a few spaces-before-funcall-parenthesis.
3294
3295 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3296
3297         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3298         The parser now accepts ISO 8601 date-time strings with "T" as the
3299         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3300         with a space between the date and time strings.  Now it also parses
3301         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3302         variants like "2004-02-29T16:21:42.333-07:00"
3303         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3304         of day representation using the 'T' separator character.
3305         * doc/parse-datetime.texi (General date syntax): replace use of
3306         deprecated --iso-8601 option with --rfc-3339 in example of date
3307         command output formats that can be parsed.
3308         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3309         lib/parse-datetime.y.
3310         (gmt_offset): New function.
3311         (main): Add additional test cases to validate ISO8601 extended
3312         date and time of day parsing.
3313
3314 2011-08-31  Bruno Haible  <bruno@clisp.org>
3315
3316         freopen: Documentation.
3317         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3318         name.
3319         Reported by Claudio Bley <claudio.bley@gmail.com>.
3320
3321 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3322
3323         freopen: Don't crash if the filename argument is NULL.
3324         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3325         NULL.
3326
3327 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3328
3329         openat: work around AIX 7.1 fstatat bug
3330         Problem reported by Kevin Brott for GNU tar, in the thread containing
3331         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3332         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3333         FSTATAT_ST_SIZE_ETC_BROKEN.
3334         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3335         rpl_fstatat.
3336         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3337         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3338         AC_CHECK_FUNCS_ONCE for fstatat.
3339         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3340         fchmodat, mkdirat, openat and unlinkat.
3341
3342 2011-08-30  Bruno Haible  <bruno@clisp.org>
3343
3344         Avoid endless recursions if config.h includes some header files.
3345         * lib/fopen.c (__need_FILE): Define already before including config.h.
3346         * lib/freopen.c (__need_FILE): Likewise.
3347         * lib/open.c (__need_system_fcntl_h): Likewise.
3348         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3349         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3350         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3351
3352 2011-08-25  Karl Berry  <karl@gnu.org>
3353
3354         * config/srclist.txt (ylwrap): new try.
3355         * build-aux/ylwrap: new file.
3356
3357 2011-08-23  Bruno Haible  <bruno@clisp.org>
3358
3359         tmpdir: Use a good default directory on native Windows.
3360         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3361         (P_tmpdir): Default to _P_tmpdir on native Windows.
3362         (path_search): On native Windows, try the value returned by GetTempPath
3363         before trying P_tmpdir.
3364         * modules/tmpdir (Depends-on): Add pathmax.
3365         Suggested by John Darrington <john@darrington.wattle.id.au>.
3366
3367 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3368
3369         doc: fix typo in README-release
3370         * top/README-release: Capitalize first word of a sentence.
3371
3372 2011-08-19  Jim Meyering  <meyering@redhat.com>
3373
3374         fts: do not exhaust memory when processing million-entry directories
3375         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3376         directory would require about 256*N bytes of memory.  Thus, it was
3377         easy to construct a directory too large to be processed by any of
3378         those tools.  With this change, fts' maximum memory utilization is
3379         now limited to around 30MB.
3380         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3381         (fts_read): When we've processed the final entry (i.e., when
3382         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3383         using the parent entry to read any remaining entries.  Dispatch
3384         depending on what fts_build returns:
3385         - NULL+stop, aka failure: stop
3386         - NULL otherwise: move up in the dir hierarchy
3387         - non-NULL: handle this new entry
3388         (fts_build): Declare and use new local, continue_readdir.
3389         Prepare to be called from fts_read, when the entries
3390         from a partially-read directory have just been exhausted.
3391         In that case, we'll skip the opendir and instead use the parent's
3392         fts_dirp and derive dir_fd from that.
3393         Finally, in the readdir loop, if we read max_entries entries,
3394         exit the loop ensuring *not* to call closedir.  This is required
3395         so that fts_dirp can be reused on a subsequent call.
3396         Prompted by Ben England's report of memory exhaustion in find
3397         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3398
3399         maint: fts: move decl of `dp' down into while loop; split a long line
3400         * lib/fts.c (fts_build): No semantic change.
3401
3402         fts: add/use new struct member, fts_dirp
3403         We are about to use this to manage any directory with
3404         too many entries to read all of them into memory at once.
3405         To do that, we'll need to save the DIR* pointer in each
3406         affected FTSENT struct.
3407         * lib/fts_.h: Include <dirent.h>.
3408         (struct FTSENT) [fts_dirp]: New member.
3409         * lib/fts.c (closedir_and_clear): Define.
3410         Use it in place of closedir so that we are sure to
3411         clear the new fts_dirp member when done with it.
3412         (fts_alloc): Initialize the new member.
3413         (fts_lfree): Free, if needed.
3414
3415         maint: fts: give __opendir2 a new parameter and rename
3416         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3417         than surreptitiously using sole caller's "dir_fd".
3418         (fts_opendir): Rename from __opendir2.
3419
3420         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3421         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3422
3423         maint: fts.c: correct off-by-one indentation
3424         * lib/fts.c (fts_build): Correct indentation, change style
3425         of a couple of block comments, and bracing style.
3426
3427         maint: fts.c: move __opendir2 #define "up" out of function body
3428         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3429
3430         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3431         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3432         out for a long time and besides was useful only on BSD systems.
3433
3434 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3435
3436         regex: port to Stratus OpenVOS
3437         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3438         define to empty, rather than attempting nonportable optimizations.
3439         Problem reported by Paul Green in:
3440         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3441         and fix suggested by Eric Blake in:
3442         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3443
3444 2011-08-17  Eric Blake  <eblake@redhat.com>
3445
3446         getcwd: fix test failures on mingw
3447         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3448         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3449         test if long directory cannot be created, and allow mingw errno.
3450
3451         getcwd-lgpl: fix m4 to match relaxed test for BSD
3452         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3453         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3454         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3455         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3456         signature problem.
3457
3458         getcwd: fix compilation on mingw64
3459         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3460         getcwd.
3461         Reported by Marc-André Lureau.
3462
3463         pipe2: silence compiler warning
3464         * lib/pipe2.c (pipe2): Hide label if it is not used.
3465
3466 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3467
3468         relocatable-prog: fix link error
3469         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3470         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3471         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3472         into modules/relocatable-lib without noticing that
3473         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3474         also needs to build relocatable.c.
3475
3476 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3477
3478         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3480         shell code: it contained a 'break' that was not in a loop.
3481         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3482         via a shell-language loop; this may have been true in old Autoconf
3483         versions, but it's not true in Autoconf 2.68.  I found this bug
3484         when testing coreutils git on Solaris 8, whose shell complains
3485         about the syntax error.
3486
3487 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3488
3489         * lib/base64.c: Fix comment to reference RFC 4648.
3490         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3491         <gvtulder@gmail.com>.
3492
3493 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3494
3495         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3496
3497         po/Makefile.in.in: fix make -q problem
3498         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3499         rule, since there's no file named 'check-macro-version' and its
3500         use as a file breaks make -q.
3501         (all): Don't depend on check-macro-version.
3502         (CHECK_MACRO_VERSION): New macro.
3503         (stamp-po): Use it.
3504
3505         configmake: fix make -q problem
3506         * modules/configmake (configmake.h): Update configmake.h's time stamp
3507         even if the file does not change.  Otherwise, 'make -q' fails.
3508         Problem reported by Simon Josefsson in
3509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3510
3511 2011-08-11  Jim Meyering  <meyering@redhat.com>
3512
3513         git-version-gen: correct the advice in a comment
3514         * build-aux/git-version-gen: Correct comment.
3515         Don't recommend to list .tarball-version in .gitignore.
3516
3517 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3518
3519         base64: fix off-by-one buffer size bug
3520         Problem and (trivial) fix reported by Gijs van Tulder in
3521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3522         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3523         * tests/test-base64.c (main): Catch the bug.
3524
3525 2011-08-10  Eric Blake  <eblake@redhat.com>
3526
3527         closein: correct comments
3528         * lib/closein.c (close_stdin): Improve comments.
3529
3530 2011-08-09  Bruno Haible  <bruno@clisp.org>
3531
3532         More tests for 'fseeko'.
3533         * tests/test-fseeko3.c: New file, from Eric Blake.
3534         * tests/test-fseeko3.sh: New file.
3535         * modules/fseeko-tests (Files): Add them.
3536         (TESTS): Add test-fseeko3.sh.
3537         (check_PROGRAMS): Add test-fseeko3.
3538
3539 2011-08-09  Eric Blake  <eblake@redhat.com>
3540
3541         fseeko: remove unneeded hack
3542         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3543
3544         fseeko: fix bug on glibc
3545         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3546         Reported by John W. Eaton.
3547
3548 2011-08-08  Bruno Haible  <bruno@clisp.org>
3549
3550         unictype/base: Fix interoperability with preinstalled libunistring.
3551         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3552         Reported by Simon Josefsson.
3553
3554 2011-08-08  Bruno Haible  <bruno@clisp.org>
3555
3556         iswblank: Detect declaration correctly.
3557         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3558         AC_CHECK_DECLS invocation.
3559
3560 2011-08-08  Bruno Haible  <bruno@clisp.org>
3561
3562         tcgetsid: Detect declaration correctly.
3563         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3564         AC_CHECK_DECLS invocation.
3565         Reported by Simon Josefsson.
3566
3567 2011-08-08  Eric Blake  <eblake@redhat.com>
3568
3569         largefile: fix typo that regressed large file support
3570         * modules/largefile (configure.ac-early): Fix section name.
3571
3572 2011-08-06  Karl Berry  <karl@gnu.org>
3573
3574         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3575         a separate module.
3576
3577 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3578
3579         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3580         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3581         get prototype for free.
3582
3583 2011-08-04  Bruno Haible  <bruno@clisp.org>
3584
3585         Tests for module 'pathmax'.
3586         * modules/pathmax-tests: New file.
3587         * tests/test-pathmax.c: New file.
3588
3589         canonicalize-lgpl: Support larger filenames on the Hurd.
3590         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3591         Reported by Paul Eggert.
3592
3593         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3594         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3595         * lib/chdir-long.h: Include pathmax.h.
3596         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3597         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3598         (PATH_MAX): Remove code that is done by pathmax.h.
3599         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3600         * lib/tmpfile.c: Add a comment.
3601         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3602         * modules/chdir-long (Depends-on): Add pathmax.
3603         * modules/getcwd (Depends-on): Add pathmax.
3604         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3605         is not defined.
3606         * doc/posix-headers/limits.texi: Mention the pathmax module.
3607         * NEWS: Mention the change.
3608
3609 2011-08-02  Bruno Haible  <bruno@clisp.org>
3610
3611         pthread_sigmask: Actually use results of gl_THREADLIB.
3612         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3613         gl_THREADLIB, not gl_[]THREADLIB.
3614         Reported by Eric Blake.
3615
3616 2011-08-02  Jim Meyering  <meyering@redhat.com>
3617
3618         maint.mk: relax the default _gl_TS_function_match regexp
3619         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3620         space between function name and "(" in an "extern" declaration.
3621         That would fail to match a decl with no space there: extern void foo();
3622
3623 2011-07-31  Iain Nicol  <iain@thenicols.net>
3624
3625         git-version-gen: document that EXTRA_DIST must include .version
3626         * build-aux/git-version-gen: In the how-to-use comment, document
3627         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3628         will fail when run from an unpacked distribution tarball.
3629
3630 2011-08-01  Bruno Haible  <bruno@clisp.org>
3631
3632         wctype-h: Fix last change.
3633         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3634         REPLACE_TOWLOWER to 0.
3635         Reported by Sam Steingold <sds@gnu.org>.
3636
3637 2011-07-31  Bruno Haible  <bruno@clisp.org>
3638
3639         frexpl: Update autoconf test.
3640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3641         according to changes of 2011-06-20.
3642
3643 2011-07-31  Bruno Haible  <bruno@clisp.org>
3644
3645         sys_utsname: Add support for Minix.
3646         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3647         <sys/utsname.h>.
3648         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3649         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3650
3651 2011-07-31  Bruno Haible  <bruno@clisp.org>
3652
3653         strings: Add support for Minix.
3654         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3655         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3656         * doc/posix-headers/strings.texi: Document the Minix problem.
3657
3658 2011-07-31  Bruno Haible  <bruno@clisp.org>
3659
3660         wctype-h: Add support for Minix.
3661         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3662         REPLACE_TOWLOWER.
3663         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3664         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3665         REPLACE_ISWCNTRL.
3666
3667 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3668
3669         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3670         This is a performance improvement for 64-bit hosts: it causes the
3671         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3672
3673 2011-07-31  Bruno Haible  <bruno@clisp.org>
3674
3675         stdioext: Add support for Minix.
3676         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3677         * lib/fpurge.c (fpurge): Likewise.
3678         * lib/freadahead.c (freadahead): Likewise.
3679         * lib/freadable.c (freadable): Likewise.
3680         * lib/freading.c (freading): Likewise.
3681         * lib/freadptr.c (freadptr): Likewise.
3682         * lib/freadseek.c (freadptrinc): Likewise.
3683         * lib/fseeko.c (rpl_fseeko): Likewise.
3684         * lib/fseterr.c (fseterr): Likewise.
3685         * lib/fwritable.c (fwritable): Likewise.
3686         * lib/fwriting.c (fwriting): Likewise.
3687         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3688         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3689
3690 2011-07-31  Bruno Haible  <bruno@clisp.org>
3691
3692         errno: Port to Minix.
3693         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3694         ECONNABORTED are defined.
3695         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3696         GNULIB_defined_ECONNABORTED): New macros.
3697         * lib/strerror-override.h (strerror_override): Test also
3698         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3699         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3700         ECONNABORTED.
3701         * doc/posix-headers/errno.texi: Mention the Minix problem.
3702
3703 2011-07-31  Bruno Haible  <bruno@clisp.org>
3704
3705         Work around declaration collisions on Minix.
3706         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3707         defined, set REPLACE_MBSINIT.
3708         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3709         defined, set REPLACE_MBRTOWC.
3710         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3711         set REPLACE_MBRLEN.
3712         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3713         defined, set REPLACE_MBSRTOWCS.
3714         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3715         defined, set REPLACE_WCRTOMB.
3716         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3717         defined, set REPLACE_WCSRTOMBS.
3718
3719 2011-07-31  Bruno Haible  <bruno@clisp.org>
3720
3721         Add support for Minix with ACK compiler.
3722         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3723         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3724         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3725
3726 2011-07-31  Bruno Haible  <bruno@clisp.org>
3727
3728         Documentation about Minix.
3729         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3730         * doc/glibc-headers/*.texi: Likewise.
3731         * doc/posix-functions/*.texi: Likewise.
3732         * doc/glibc-functions/*.texi: Likewise.
3733
3734 2011-07-31  Bruno Haible  <bruno@clisp.org>
3735
3736         snippet/warn-on-use: Fix indentation.
3737         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3738
3739 2011-07-25  Jim Meyering  <meyering@redhat.com>
3740
3741         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3742         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3743         commands.
3744
3745 2011-07-27  Jim Meyering  <meyering@redhat.com>
3746
3747         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3748         * top/maint.mk (gl_extract_significant_defines_): Now that
3749         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3750         gnulib/lib/signal.in.h, and now that we recommend to
3751         define-if-undefined those two symbols in application code,
3752         we must filter them out of the "significant" list.
3753         This avoids a "make syntax-check" failure in coreutils.
3754
3755 2011-07-26  Eric Blake  <eblake@redhat.com>
3756
3757         warnings: add comments about previous patch
3758         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3759         * m4/include_next.m4: Likewise.
3760         * m4/warn-on-use.m4: Likewise.
3761         * m4/warnings.m4: Likewise, and simplify use.
3762         Suggested by Stefano Lattarini.
3763
3764         include-next, warnings: support older autoconf
3765         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3766         AS_VAR_PUSHDEF in a way that works with older autoconf.
3767         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3768         Reported by Daniel P. Berrange.
3769
3770 2011-07-25  Bruno Haible  <bruno@clisp.org>
3771
3772         fseek, ftell: Fix doc.
3773         * doc/posix-functions/fseek.texi: Reword statement about
3774         AC_SYS_LARGEFILE.
3775         * doc/posix-functions/ftell.texi: Likewise.
3776
3777 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3778             Bruno Haible  <bruno@clisp.org>
3779
3780         Add dependencies to the 'largefile' module.
3781         * modules/fopen (Depends-on): Add 'largefile'.
3782         * modules/freopen (Depends-on): Likewise.
3783         * modules/fseeko (Depends-on): Likewise.
3784         * modules/ftello (Depends-on): Likewise.
3785         * modules/glob (Depends-on): Likewise.
3786         * modules/lseek (Depends-on): Likewise.
3787         * modules/lstat (Depends-on): Likewise.
3788         * modules/mkostemp (Depends-on): Likewise.
3789         * modules/mkostemps (Depends-on): Likewise.
3790         * modules/mkstemp (Depends-on): Likewise.
3791         * modules/mkstemps (Depends-on): Likewise.
3792         * modules/open (Depends-on): Likewise.
3793         * modules/openat (Depends-on): Likewise.
3794         * modules/pread (Depends-on): Likewise.
3795         * modules/pwrite (Depends-on): Likewise.
3796         * modules/scandir (Depends-on): Likewise.
3797         * modules/stat (Depends-on): Likewise.
3798         * modules/tmpfile (Depends-on): Likewise.
3799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3800         since the containing module now depends on the largefile module.
3801         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3802         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3803         off_t is fixed by gnulib.
3804         * doc/posix-functions/freopen.texi: Likewise.
3805         * doc/posix-functions/fseeko.texi: Likewise.
3806         * doc/posix-functions/fstatat.texi: Likewise.
3807         * doc/posix-functions/ftello.texi: Likewise.
3808         * doc/posix-functions/glob.texi: Likewise.
3809         * doc/posix-functions/lseek.texi: Likewise.
3810         * doc/posix-functions/lstat.texi: Likewise.
3811         * doc/posix-functions/mkstemp.texi: Likewise.
3812         * doc/posix-functions/open.texi: Likewise.
3813         * doc/posix-functions/openat.texi: Likewise.
3814         * doc/posix-functions/pread.texi: Likewise.
3815         * doc/posix-functions/pwrite.texi: Likewise.
3816         * doc/posix-functions/scandir.texi: Likewise.
3817         * doc/posix-functions/stat.texi: Likewise.
3818         * doc/posix-functions/tmpfile.texi: Likewise.
3819         * doc/glibc-functions/mkostemp.texi: Likewise.
3820         * doc/glibc-functions/mkostemps.texi: Likewise.
3821         * doc/glibc-functions/mkstemps.texi: Likewise.
3822
3823 2011-07-25  Bruno Haible  <bruno@clisp.org>
3824
3825         fcntl: Move AC_LIBOBJ invocation to module description.
3826         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3827         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3828
3829         fcntl: Remove call-in from fchdir.m4.
3830         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3831         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3832
3833         dup3: Remove potential call-in from fchdir.m4.
3834         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3836
3837         dup2: Move AC_LIBOBJ invocation to module description.
3838         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3839         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3840         Don't invoke AC_LIBOBJ.
3841         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3842
3843         dup2: Remove call-in from fchdir.m4.
3844         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3846
3847         fclose: Move AC_LIBOBJ invocation to module description.
3848         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3849         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3850         to 1.
3851         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3852
3853         fclose: Remove call-in from close.m4.
3854         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3855         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3856
3857         close: Move AC_LIBOBJ invocation to module description.
3858         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3859         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3860         1.
3861         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3862
3863         close: Remove call-in from fchdir.m4.
3864         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3866
3867         open: Move AC_LIBOBJ invocation to module description.
3868         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3869         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3870         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3871
3872         open: Remove call-in from fchdir.m4.
3873         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
3874         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
3875
3876         fchdir: Start to remove gl_REPLACE_* idiom.
3877         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
3878         (gl_FUNC_FCHDIR): Invoke it.
3879
3880 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3881
3882         * lib/ftell.c (ftell): Comment out cast.
3883
3884         close: use gl_REPLACE_FCLOSE only if defined
3885         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
3886         is defined.  The close module doesn't depend on the fclose module
3887         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
3888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
3889         I reproduced the problem with "./gnulib-tool --test close sys_socket".
3890
3891 2011-07-24  Jim Meyering  <meyering@redhat.com>
3892
3893         test-select.h: avoid warning when using gcc's -Wmissing-declarations
3894         * tests/test-select.h (test_function): Declare as "static".
3895
3896 2011-07-24  Bruno Haible  <bruno@clisp.org>
3897
3898         doc: Mention the effects of AC_SYS_LARGEFILE.
3899         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
3900         on this function.
3901         * doc/posix-functions/aio_error.texi: Likewise.
3902         * doc/posix-functions/aio_fsync.texi: Likewise.
3903         * doc/posix-functions/aio_read.texi: Likewise.
3904         * doc/posix-functions/aio_return.texi: Likewise.
3905         * doc/posix-functions/aio_suspend.texi: Likewise.
3906         * doc/posix-functions/aio_write.texi: Likewise.
3907         * doc/posix-functions/fgetpos.texi: Likewise.
3908         * doc/posix-functions/fopen.texi: Likewise.
3909         * doc/posix-functions/freopen.texi: Likewise.
3910         * doc/posix-functions/fsetpos.texi: Likewise.
3911         * doc/posix-functions/fstatvfs.texi: Likewise.
3912         * doc/posix-functions/ftruncate.texi: Likewise.
3913         * doc/posix-functions/ftw.texi: Likewise.
3914         * doc/posix-functions/getrlimit.texi: Likewise.
3915         * doc/posix-functions/glob.texi: Likewise.
3916         * doc/posix-functions/lio_listio.texi: Likewise.
3917         * doc/posix-functions/lockf.texi: Likewise.
3918         * doc/posix-functions/mkstemp.texi: Likewise.
3919         * doc/posix-functions/mmap.texi: Likewise.
3920         * doc/posix-functions/nftw.texi: Likewise.
3921         * doc/posix-functions/openat.texi: Likewise.
3922         * doc/posix-functions/opendir.texi: Likewise.
3923         * doc/posix-functions/posix_fadvise.texi: Likewise.
3924         * doc/posix-functions/posix_fallocate.texi: Likewise.
3925         * doc/posix-functions/pread.texi: Likewise.
3926         * doc/posix-functions/pwrite.texi: Likewise.
3927         * doc/posix-functions/readdir.texi: Likewise.
3928         * doc/posix-functions/readdir_r.texi: Likewise.
3929         * doc/posix-functions/rewinddir.texi: Likewise.
3930         * doc/posix-functions/scandir.texi: Likewise.
3931         * doc/posix-functions/seekdir.texi: Likewise.
3932         * doc/posix-functions/setrlimit.texi: Likewise.
3933         * doc/posix-functions/statvfs.texi: Likewise.
3934         * doc/posix-functions/telldir.texi: Likewise.
3935         * doc/posix-functions/tmpfile.texi: Likewise.
3936         * doc/posix-functions/truncate.texi: Likewise.
3937         * doc/glibc-functions/fallocate.texi: Likewise.
3938         * doc/glibc-functions/fstatfs.texi: Likewise.
3939         * doc/glibc-functions/fts_children.texi: Likewise.
3940         * doc/glibc-functions/fts_read.texi: Likewise.
3941         * doc/glibc-functions/getdirentries.texi: Likewise.
3942         * doc/glibc-functions/mkostemp.texi: Likewise.
3943         * doc/glibc-functions/mkostemps.texi: Likewise.
3944         * doc/glibc-functions/mkstemps.texi: Likewise.
3945         * doc/glibc-functions/preadv.texi: Likewise.
3946         * doc/glibc-functions/pwritev.texi: Likewise.
3947         * doc/glibc-functions/sendfile.texi: Likewise.
3948         * doc/glibc-functions/statfs.texi: Likewise.
3949
3950 2011-07-24  Bruno Haible  <bruno@clisp.org>
3951
3952         doc: Fix typo.
3953         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3954
3955 2011-07-24  Bruno Haible  <bruno@clisp.org>
3956
3957         doc: Mention fsusage.
3958         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3959
3960 2011-07-24  Bruno Haible  <bruno@clisp.org>
3961
3962         doc: Mention new glibc headers and functions.
3963         * doc/glibc-headers/gshadow.texi: New file.
3964         * doc/glibc-functions/endsgent.texi: New file.
3965         * doc/glibc-functions/fgetsgent.texi: New file.
3966         * doc/glibc-functions/fgetsgent_r.texi: New file.
3967         * doc/glibc-functions/getsgent.texi: New file.
3968         * doc/glibc-functions/getsgent_r.texi: New file.
3969         * doc/glibc-functions/getsgnam.texi: New file.
3970         * doc/glibc-functions/getsgnam_r.texi: New file.
3971         * doc/glibc-functions/putsgent.texi: New file.
3972         * doc/glibc-functions/setsgent.texi: New file.
3973         * doc/glibc-functions/sgetsgent.texi: New file.
3974         * doc/glibc-functions/sgetsgent_r.texi: New file.
3975         * doc/glibc-functions/malloc_info.texi: New file.
3976         * doc/glibc-functions/preadv.texi: New file.
3977         * doc/glibc-functions/pwritev.texi: New file.
3978         * doc/glibc-functions/register_printf_modifier.texi: New file.
3979         * doc/glibc-functions/register_printf_specifier.texi: New file.
3980         * doc/glibc-functions/register_printf_type.texi: New file.
3981         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3982         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3983         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3984         * doc/glibc-functions/pthread_getname_np.texi: New file.
3985         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3986         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3987         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3988         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3989         * doc/glibc-functions/pthread_setname_np.texi: New file.
3990         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3991         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3992         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3993         * doc/glibc-functions/qsort_r.texi: New file.
3994         * doc/glibc-functions/quick_exit.texi: New file.
3995         * doc/glibc-functions/syncfs.texi: New file.
3996         * doc/gnulib.texi: Include them.
3997         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3998         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3999         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4000         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4001         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4002         * doc/glibc-functions/execvpe.texi: Likewise.
4003
4004 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4005
4006         ftell: don't include <unistd.h>
4007         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4008         guaranteed to define off_t, and the ftell module depends on the
4009         stdio module.
4010
4011         ftell: do not assume wraparound signed arithmetic
4012         * lib/ftell.c: Include <limits.h>.
4013         (ftell): Don't assume wraparound signed arithmetic.
4014
4015 2011-07-24  Bruno Haible  <bruno@clisp.org>
4016
4017         close: No longer depend on module 'fclose'.
4018         * modules/close (Depends-on): Remove fclose.
4019         * NEWS: Mention the change.
4020         Suggested by Sam Steingold <sds@gnu.org>.
4021
4022 2011-07-24  Bruno Haible  <bruno@clisp.org>
4023
4024         fsusage: Enable large volume support on AIX >= 5.2.
4025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4026         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4027         instead of STAT_STATVFS.
4028         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4029
4030         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4032         f_blocks field only on MacOS X.
4033
4034         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4036         * modules/fsusage (Depends-on): Add largefile.
4037
4038 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4039
4040         * README: Modernize discussion of signed integers.
4041         Assuming overflow wraparound is no longer safe.
4042         Mention ones' complement and signed magnitude.
4043
4044 2011-07-22  Bruno Haible  <bruno@clisp.org>
4045
4046         select tests, pselect tests: Refactor.
4047         * tests/test-select.h: New file, extracted from tests/test-select.c.
4048         (select_fn): New type.
4049         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4050         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4051         test_pipe): Add my_select argument.
4052         (test_function): Renamed from main. Add my_select argument.
4053         * tests/test-select.c: Move most code to tests/test-select.h. Include
4054         test-select.h.
4055         * modules/select-tests (Files): Add tests/test-select.h.
4056         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4057         (my_select, main): New functions.
4058         * modules/pselect-tests (Files): Add tests/test-select.h,
4059         tests/macros.h, tests/signature.h.
4060         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4061         (configure.ac): Check for <sys/wait.h>.
4062
4063 2011-07-22  Bruno Haible  <bruno@clisp.org>
4064
4065         sys_select tests: Check the signature of FD_*.
4066         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4067         signature tests from here...
4068         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4069         here.
4070         * modules/sys_select-tests (Files): Add tests/signature.h.
4071
4072 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4073
4074         largefile: new module, replacing large-inode
4075         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4076         * MODULES.html.sh: Add largefile, remove large-inode.
4077         * modules/largefile, m4/largefile.m4: New files.
4078         * modules/large-inode, m4/large-inode.m4: Remove.
4079
4080         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4081         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4082         implementations that use only 32 bits to count blocks.
4083         On typical hosts with 1024-byte blocks, this fails with file
4084         systems as small as 4 TiB.  Problem reported by Herb Wartens
4085         <http://debbugs.gnu.org/9140> and this should also fix a similar
4086         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4087
4088         large-inode: New module
4089         * MODULES.html.sh: Add it.
4090         * modules/large-inode, m4/large-inode.m4: New files.
4091
4092         extensions: Enable extensions on MacOS X 10.5 and later.
4093         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4094
4095 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4096
4097         file-has-acl: use acl_extended_file_nofollow if available
4098         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4099         (acl_extended_file): New macro.
4100         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4101         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4102
4103 2011-07-21  Bruno Haible  <bruno@clisp.org>
4104
4105         Declare system functions in a way that works with C++.
4106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4107         declare fdopendir as extern "C".
4108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4109         declare frexpl as extern "C".
4110         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4111         declare gai_strerror as extern "C".
4112         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4113         programs, declare gai_strerror as extern "C".
4114         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4115         declare getlogin_r as extern "C".
4116         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4117         as extern "C".
4118         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4119         declare ldexpl as extern "C".
4120         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4121         as extern "C".
4122         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4123         program, declare getmntinfo as extern "C".
4124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4125         stpncpy as extern "C".
4126         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4127         program, declare __xpg_strerror_r as extern "C".
4128         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4129         strndup as extern "C".
4130         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4131         declare memset and bzero as extern "C".
4132         Reported by Sam Steingold <sds@gnu.org>.
4133
4134 2011-07-12  Jim Meyering  <meyering@redhat.com>
4135
4136         maint.mk: prohibit inclusion of "verify.h" without use
4137         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4138
4139 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4140
4141         timer-time: A new module to check for timer_settime()
4142         * m4/timer_time.m4: Check for the posix function.
4143         * modules/timer-time: Add the new module.
4144         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4145         Mention it.
4146
4147 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4148             Bruno Haible  <bruno@clisp.org>
4149
4150         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4151         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4152         not defined, assume POSIX threads and look for pthread_sigmask in
4153         $LIBS, without changing $CPPFLAGS.
4154
4155 2011-07-19  Bruno Haible  <bruno@clisp.org>
4156
4157         strstr: Update cross-compilation guess.
4158         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4159         CPUs, guess no, in view of glibc
4160         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4161         Suggested by Eric Blake. Reported by Reuben Thomas.
4162
4163 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4164
4165         getopt-gnu: suppress core dumps from detection code
4166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4167         to suppress core dumps that may well occur on glibc systems.
4168         * modules/getopt-gnu: Depend on nocrash.
4169
4170 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4171
4172         pthread_sigmask: ensure usleep is declared
4173         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4174         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4175
4176 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4177
4178         doc: Document NonStop portability issues.
4179         * doc/posix-functions/sigaction.texi (sigaction):
4180         * doc/posix-headers/signal.texi (signal.h):
4181         Document NonStop.  See Joachim Schmitz in
4182         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4183
4184 2011-07-15  Bruno Haible  <bruno@clisp.org>
4185
4186         ffsl, ffsll: Avoid unportable behaviour.
4187         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4188
4189 2011-07-15  Bruno Haible  <bruno@clisp.org>
4190
4191         ffs: More tests.
4192         * tests/test-ffs.c (NBITS): New macro.
4193         (main): Add more tests.
4194         * tests/test-ffsl.c (NBITS): New macro.
4195         (main): Add more tests.
4196         * tests/test-ffsll.c (NBITS): New macro.
4197         (main): Add more tests.
4198
4199 2011-07-15  Eric Blake  <eblake@redhat.com>
4200
4201         ffsl, ffsll: new modules
4202         * modules/ffsl: New file.
4203         * modules/ffsll: Likewise.
4204         * m4/ffsl.m4: Likewise.
4205         * m4/ffsll.m4: Likewise.
4206         * lib/ffsl.c: Likewise.
4207         * lib/ffsl.h: Likewise.
4208         * lib/ffsll.c: Likewise.
4209         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4210         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4211         * modules/string (Makefile.am): Substitute witnesses.
4212         * lib/strings.in.h (ffsl, ffsll): Declare.
4213         * modules/ffsl-tests: New test file.
4214         * modules/ffsll-tests: Likewise.
4215         * tests/test-ffsl.c: Likewise.
4216         * tests/test-ffsll.c: Likewise.
4217         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4218         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4219         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4220
4221         ffs: fix m4 prerequisite
4222         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4223
4224         ffs: avoid undefined behavior
4225         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4226         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4227         Reported by Bruno Haible.
4228
4229 2011-07-12  Bruno Haible  <bruno@clisp.org>
4230
4231         pthread_sigmask: Rely on module 'threadlib'.
4232         * modules/pthread_sigmask (Depends-on): Add threadlib.
4233         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4234         is defined.
4235
4236 2011-07-12  Bruno Haible  <bruno@clisp.org>
4237
4238         regex: Depend on module 'strcase'.
4239         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4240
4241 2011-07-12  Jim Meyering  <meyering@redhat.com>
4242
4243         warn-on-use: fix typo in file name
4244         * modules/snippet/warn-on-use (Files): Correct file name:
4245         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4246
4247 2011-07-12  Bruno Haible  <bruno@clisp.org>
4248
4249         strings: Document module.
4250         * doc/posix-headers/strings.texi: Mention module 'strings'.
4251
4252 2011-07-12  Bruno Haible  <bruno@clisp.org>
4253
4254         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4255         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4256         (Files, Makefile.am): Update.
4257         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4258         * modules/stdlib (Depends-on): Update.
4259
4260 2011-07-12  Bruno Haible  <bruno@clisp.org>
4261
4262         * NEWS: Mention the changes.
4263
4264         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4265         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4266         (Files, Makefile.am): Update.
4267         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4268         * modules/arpa_inet (Depends-on): Update.
4269         * modules/ctype (Depends-on): Update.
4270         * modules/dirent (Depends-on): Update.
4271         * modules/fcntl-h (Depends-on): Update.
4272         * modules/glob (Depends-on): Update.
4273         * modules/iconv-h (Depends-on): Update.
4274         * modules/inttypes-incomplete (Depends-on): Update.
4275         * modules/langinfo (Depends-on): Update.
4276         * modules/locale (Depends-on): Update.
4277         * modules/math (Depends-on): Update.
4278         * modules/netdb (Depends-on): Update.
4279         * modules/poll-h (Depends-on): Update.
4280         * modules/pty (Depends-on): Update.
4281         * modules/search (Depends-on): Update.
4282         * modules/signal (Depends-on): Update.
4283         * modules/spawn (Depends-on): Update.
4284         * modules/stdio (Depends-on): Update.
4285         * modules/stdlib (Depends-on): Update.
4286         * modules/string (Depends-on): Update.
4287         * modules/strings (Depends-on): Update.
4288         * modules/sys_file (Depends-on): Update.
4289         * modules/sys_ioctl (Depends-on): Update.
4290         * modules/sys_select (Depends-on): Update.
4291         * modules/sys_socket (Depends-on): Update.
4292         * modules/sys_stat (Depends-on): Update.
4293         * modules/sys_time (Depends-on): Update.
4294         * modules/sys_times (Depends-on): Update.
4295         * modules/sys_utsname (Depends-on): Update.
4296         * modules/sys_wait (Depends-on): Update.
4297         * modules/termios (Depends-on): Update.
4298         * modules/time (Depends-on): Update.
4299         * modules/unistd (Depends-on): Update.
4300         * modules/wchar (Depends-on): Update.
4301         * modules/wctype-h (Depends-on): Update.
4302         * MODULES.html.sh (Support for building libraries and executables):
4303         Update.
4304
4305         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4306         * modules/snippet/unused-parameter: Renamed from
4307         modules/unused-parameter.
4308         (Files, Makefile.am): Update.
4309         * build-aux/snippet/unused-parameter.h: Renamed from
4310         build-aux/unused-parameter.h.
4311         * modules/selinux-h (Depends-on): Update.
4312         * modules/unistr/base (Depends-on): Update.
4313         * MODULES.html.sh (Core language properties): Update.
4314
4315         Rename module 'link-warning' to 'snippet/link-warning'.
4316         * modules/snippet/link-warning: Renamed from modules/link-warning.
4317         (Files, Makefile.am): Update.
4318         * build-aux/snippet/link-warning.h: Renamed from
4319         build-aux/link-warning.h.
4320         * MODULES.html.sh (Support for building libraries and executables):
4321         Update.
4322
4323         Rename module 'c++defs' to 'snippet/c++defs'.
4324         * modules/snippet/c++defs: Renamed from modules/c++defs.
4325         (Files, Makefile.am): Update.
4326         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4327         * modules/arpa_inet (Depends-on): Update.
4328         * modules/ctype (Depends-on): Update.
4329         * modules/dirent (Depends-on): Update.
4330         * modules/fcntl-h (Depends-on): Update.
4331         * modules/glob (Depends-on): Update.
4332         * modules/iconv-h (Depends-on): Update.
4333         * modules/langinfo (Depends-on): Update.
4334         * modules/locale (Depends-on): Update.
4335         * modules/math (Depends-on): Update.
4336         * modules/netdb (Depends-on): Update.
4337         * modules/poll-h (Depends-on): Update.
4338         * modules/pty (Depends-on): Update.
4339         * modules/search (Depends-on): Update.
4340         * modules/signal (Depends-on): Update.
4341         * modules/spawn (Depends-on): Update.
4342         * modules/stdio (Depends-on): Update.
4343         * modules/stdlib (Depends-on): Update.
4344         * modules/string (Depends-on): Update.
4345         * modules/strings (Depends-on): Update.
4346         * modules/sys_ioctl (Depends-on): Update.
4347         * modules/sys_select (Depends-on): Update.
4348         * modules/sys_socket (Depends-on): Update.
4349         * modules/sys_stat (Depends-on): Update.
4350         * modules/sys_time (Depends-on): Update.
4351         * modules/sys_wait (Depends-on): Update.
4352         * modules/termios (Depends-on): Update.
4353         * modules/time (Depends-on): Update.
4354         * modules/unistd (Depends-on): Update.
4355         * modules/wchar (Depends-on): Update.
4356         * modules/wctype-h (Depends-on): Update.
4357
4358         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4359         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4360         (Files, Makefile.am): Update.
4361         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4362         * modules/argv-iter (Depends-on): Update.
4363         * modules/arpa_inet (Depends-on): Update.
4364         * modules/dirent (Depends-on): Update.
4365         * modules/fcntl-h (Depends-on): Update.
4366         * modules/fnmatch (Depends-on): Update.
4367         * modules/getopt-posix (Depends-on): Update.
4368         * modules/glob (Depends-on): Update.
4369         * modules/iconv-h (Depends-on): Update.
4370         * modules/inttypes-incomplete (Depends-on): Update.
4371         * modules/locale (Depends-on): Update.
4372         * modules/math (Depends-on): Update.
4373         * modules/netdb (Depends-on): Update.
4374         * modules/search (Depends-on): Update.
4375         * modules/signal (Depends-on): Update.
4376         * modules/spawn (Depends-on): Update.
4377         * modules/stdio (Depends-on): Update.
4378         * modules/stdlib (Depends-on): Update.
4379         * modules/string (Depends-on): Update.
4380         * modules/strings (Depends-on): Update.
4381         * modules/sys_socket (Depends-on): Update.
4382         * modules/sys_stat (Depends-on): Update.
4383         * modules/sys_time (Depends-on): Update.
4384         * modules/sys_times (Depends-on): Update.
4385         * modules/sys_utsname (Depends-on): Update.
4386         * modules/time (Depends-on): Update.
4387         * modules/unistd (Depends-on): Update.
4388         * modules/wchar (Depends-on): Update.
4389         * MODULES.html.sh (Support for building libraries and executables):
4390         Update.
4391
4392 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4393
4394         Improvements on _Noreturn and related modules.
4395
4396         modules/_Exit-tests: test _Noreturn too
4397         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4398         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4399         (main): Use them.
4400
4401         stdnoreturn, stdnoreturn-tests: remove modules
4402         They're not needed here and a bit premature for use elsewhere.  See
4403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4404         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4405         * tests/test-stdnoreturn.c: Remove files.
4406         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4407         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4408         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4409         and using noreturn.
4410         * modules/openat, modules/sigpipe-die, modules/xalloc:
4411         * modules/xmemdup0, modules/xstrtol:
4412         Remove dependency on stdnoreturn.
4413
4414         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4415         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4416         Reparenthesize to avoid GCC warning.
4417         Support Microsoft's syntax.
4418         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4419
4420         _Noreturn-tests: remove module
4421         * modules/_Noreturn-tests: Remove.
4422         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4423         * tests/test-_Noreturn.c: Remove.
4424         * tests/test-stdnoreturn.c: Merge from the old
4425         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4426
4427 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4428
4429         _Noreturn, stdnoreturn, and related modules.
4430
4431         * top/maint.mk: Adjust to new noreturn support.
4432         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4433         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4434
4435         xalloc: use stdnoreturn.h
4436         * lib/xalloc.h: Include <stdnoreturn.h>.
4437         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4438         * modules/xalloc (Depends-on): Add stdnoreturn.
4439
4440         xstrtol: use stdnoreturn.h
4441         * lib/xstrtol.h: Include <stdnoreturn.h>.
4442         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4443         * modules/xstrtol (Depends-on): Add stdnoreturn.
4444
4445         xmemdup0: use stdnoreturn.h
4446         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4447         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4448         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4449
4450         sigpipe-die: use stdnoreturn.h
4451         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4452         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4453         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4454
4455         openat: use stdnoreturn.h
4456         * lib/openat.h: Include <stdnoreturn.h>.
4457         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4458         * modules/openat (Depends-on): Add stdnoreturn.
4459
4460         * lib/openat-die.c (openat_save_fail): Modernize comment.
4461
4462         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4463
4464         * lib/glthread/thread.h: Modernize comment.
4465
4466         obstack: use _Noreturn
4467         * lib/obstack.c (__attribute__): Remove macro.
4468         (print_and_abort): Use _Noreturn.
4469
4470         c-stack: use _Noreturn
4471         * lib/c-stack.c (die, overflow_handler, segv_handler):
4472         Use _Noreturn rather than __attribute__((noreturn)).
4473
4474         argmatch-tests, exclude_tests: use _Noreturn
4475         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4476         Remove.
4477         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4478
4479         stdlib: use _Noreturn
4480         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4481         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4482         * modules/stdlib (Depends-on): Add _Noreturn.
4483         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4484
4485         stdnoreturn-tests: new module
4486         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4487
4488         stdnoreturn: new module
4489         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4490         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4491
4492         _Noreturn-tests: new module
4493         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4494
4495         _Noreturn: new module
4496         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4497         New section, mentioning it.
4498         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4499
4500         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4501
4502 2011-07-11  Eric Blake  <eblake@redhat.com>
4503
4504         ffs: new module
4505         * modules/ffs: New file.
4506         * m4/ffs.m4: Likewise.
4507         * lib/ffs.c: Likewise.
4508         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4509         * modules/strings (Makefile.am): Substitute witness.
4510         (Depends-on): Add c++defs.
4511         * lib/strings.in.h (ffs): Declare.
4512         * modules/ffs-tests: New test file.
4513         * tests/test-ffs.c: Test new module.
4514         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4515         * doc/posix-functions/ffs.texi (ffs): Likewise.
4516
4517         regex: avoid compiler warning
4518         * lib/regex.c (includes): Include <strings.h>, for use of
4519         strcasecmp in regcomp.c.
4520         Reported by Joachim Schmitz.
4521
4522 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         stdint: respect system's intmax_t if INTMAX_MAX
4525         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4526         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4527         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4528         long but int64_t is long long, and where we will clash with the
4529         system intmax_t if we override it.  See
4530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4531         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4532         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4533         similarly for UINTMAX_C.
4534
4535 2011-07-08  Bruno Haible  <bruno@clisp.org>
4536
4537         pthread_sigmask tests: Avoid a compiler warning.
4538         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4539         non-zero.
4540
4541         sigprocmask tests: A better way to avoid a compiler warning.
4542         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4543         (main): Complain if system() returns non-zero.
4544         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4545
4546 2011-07-08  Bruno Haible  <bruno@clisp.org>
4547
4548         pthread_sigmask: Work around IRIX bug.
4549         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4550         bug.
4551         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4552         there may be unblocked pending signals.
4553         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4554
4555 2011-07-08  Bruno Haible  <bruno@clisp.org>
4556
4557         pthread_sigmask: Work around Cygwin bug.
4558         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4559         bug.
4560         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4561         the system's pthread_sigmask function.
4562         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4563
4564 2011-07-08  Bruno Haible  <bruno@clisp.org>
4565
4566         pthread_sigmask: Work around bug in single-threaded implementation.
4567         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4568         FreeBSD, HP-UX, Solaris bug.
4569         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4570         * lib/pthread_sigmask.c: Include <stddef.h>.
4571         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4572         the system's pthread_sigmask function.
4573         * modules/pthread_sigmask (configure.ac): Invoke
4574         gl_PREREQ_PTHREAD_SIGMASK.
4575         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4576         HP-UX, Solaris.
4577
4578 2011-07-08  Eric Blake  <eblake@redhat.com>
4579
4580         test-sigprocmask: avoid compiler warning
4581         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4582         * tests/test-sigprocmask.c (main): Use it to silence warning.
4583         Reported by Jim Meyering.
4584
4585         test-snprintf: avoid compiler warning
4586         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4587         * tests/test-vsnprintf.c (main): Likewise.
4588         Reported by Jim Meyering.
4589
4590 2011-07-08  Bruno Haible  <bruno@clisp.org>
4591
4592         Tests for module 'pthread_sigmask'.
4593         * modules/pthread_sigmask-tests: New file.
4594         * tests/test-pthread_sigmask1.c: New file, based on
4595         tests/test-sigprocmask.c.
4596         * tests/test-pthread_sigmask2.c: New file.
4597
4598 2011-07-08  Jim Meyering  <meyering@redhat.com>
4599
4600         test-getopt.h: avoid warning about an unused variable
4601         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4602
4603 2011-07-07  Jim Meyering  <meyering@redhat.com>
4604
4605         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4606         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4607         now that it no longer contains leading TABs.
4608         Remove unused "url=FIXME" statement.
4609
4610 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4611
4612         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4613         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4614         When gl_THREADLIB is not in use, assume that the POSIX sematics
4615         are desired.  This is better for Emacs, which uses POSIX semantics
4616         on GNUish and/or POSIXish platforms, and does not use threads at
4617         all otherwise.
4618
4619         pthread_sigmask: fix typo when testing for libraries
4620         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4621         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4622
4623 2011-07-08  Eric Blake  <eblake@redhat.com>
4624
4625         fts: introduce FTS_NOATIME
4626         * lib/fts_.h (FTS_NOATIME): New bit flag.
4627         (FTS_OPTIONMASK): Adjust.
4628         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4629         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4630
4631 2011-07-08  Bruno Haible  <bruno@clisp.org>
4632
4633         Tests for module 'thread'.
4634         * modules/thread-tests: New file.
4635         * tests/test-thread_self.c: New file.
4636         * tests/test-thread_create.cc: New file.
4637
4638 2011-07-08  Bruno Haible  <bruno@clisp.org>
4639
4640         thread: Avoid gcc warnings when using gl_thread_self().
4641         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4642         'void *'.
4643         (gl_thread_self_pointer): Update.
4644
4645 2011-07-07  Bruno Haible  <bruno@clisp.org>
4646
4647         signal-c++-tests: Check declaration of pthread_sigmask.
4648         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4649         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4650         $(LIB_PTHREAD_SIGMASK).
4651
4652 2011-07-07  Bruno Haible  <bruno@clisp.org>
4653
4654         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4655         * lib/signal.in.h (pthread_sigmask): Override if
4656         REPLACE_PTHREAD_SIGMASK is 1.
4657         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4658         REPLACE_PTHREAD_SIGMASK.
4659         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4660         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4661         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4662         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4663         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4664
4665 2011-07-07  Bruno Haible  <bruno@clisp.org>
4666
4667         pthread_sigmask: Ensure declaration in <signal.h>.
4668         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4669         include <pthread.h>.
4670         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4671         problem.
4672
4673 2011-07-07  Bruno Haible  <bruno@clisp.org>
4674
4675         pthread_sigmask: Document the module.
4676         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4677
4678 2011-07-07  Bruno Haible  <bruno@clisp.org>
4679
4680         pthread_sigmask: Follow gnulib conventions.
4681         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4682         gl_PTHREAD_SIGMASK.
4683         * modules/pthread_sigmask (configure.ac): Update.
4684
4685 2011-07-07  Bruno Haible  <bruno@clisp.org>
4686
4687         pthread_sigmask: Make declaration C++ safe.
4688         * lib/signal.in.h: In two special conditions, just do an #include_next.
4689         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4690         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4691         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4692         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4693         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4694         not REPLACE_PTHREAD_MASK.
4695         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4696         not REPLACE_PTHREAD_MASK.
4697         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4698
4699 2011-07-07  Bruno Haible  <bruno@clisp.org>
4700
4701         pthread_sigmask: Fix return value.
4702         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4703         * lib/pthread_sigmask.c: New file.
4704         * modules/pthread_sigmask (Files): Add it.
4705         (configure.ac): Invoke AC_LIBOBJ.
4706
4707 2011-07-07  Eric Blake  <eblake@redhat.com>
4708
4709         getopt: more portable argv creation
4710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4711         const, use char arrays rather than strings.
4712         Suggested by Paul Eggert.
4713
4714 2011-07-07  Bruno Haible  <bruno@clisp.org>
4715
4716         Tests for module 'sigprocmask'.
4717         * modules/sigprocmask-tests: New file.
4718         * tests/test-sigprocmask.c: New file.
4719
4720 2011-07-07  Bruno Haible  <bruno@clisp.org>
4721
4722         float tests: Tweak.
4723         * tests/test-float.c (main): Tweak skip message.
4724
4725 2011-07-07  Eric Blake  <eblake@redhat.com>
4726
4727         getopt: avoid compiler warning during configure
4728         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4729         assigning string literals to non-const pointer.
4730
4731         getopt-gnu: avoid crash in glibc getopt
4732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4733         * tests/test-getopt.h (test_getopt): Enhance test.
4734         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4735         * doc/posix-functions/getopt.texi (getopt): Document it.
4736         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4737         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4738         Likewise.
4739
4740 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4741
4742         getopt: handle W; without long options in getopt [BZ #12922]
4743         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4744         but no long options are defined, just return 'W'.
4745
4746 2011-07-07  Bruno Haible  <bruno@clisp.org>
4747
4748         Avoid literal tabs.
4749         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4750         variable containing a tab instead of a literal tab.
4751         Reported by Jim Meyering.
4752
4753 2011-07-07  Bruno Haible  <bruno@clisp.org>
4754
4755         Comments.
4756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4757
4758 2011-07-06  Bruno Haible  <bruno@clisp.org>
4759
4760         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4761         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4762         <winsock2.h>.
4763         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4764         lib/sys_socket.in.h.
4765         (close, gethostname): Hide declarations from <winsock2.h>.
4766         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4767         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4768         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4769         (select): Don't override if gnulib's <sys/select.h> was already
4770         included.
4771         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4772         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4773         setsockopt, shutdown, select): Tweak indentation.
4774
4775 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4776
4777         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4778         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4779         in an application that does not use the sys_select module.
4780
4781 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4782
4783         poll: do not return 0 on timeout=-1
4784         * lib/poll.c: Loop with yield if no events occured
4785
4786 2011-07-06  Eric Blake  <eblake@redhat.com>
4787
4788         pthread_sigmask: always replace when not using pthread
4789         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4790         replacement when using some threading other than pthread.  Fix
4791         logic bug.
4792
4793 2011-07-06  Bruno Haible  <bruno@clisp.org>
4794
4795         Comments.
4796         * m4/printf.m4: Update comments about mingw.
4797
4798 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4799
4800         sys_select: define sigset_t more portably
4801         * lib/sys_select.in.h: Always include <sys/types.h>, since
4802         we now need sigset_t and mingw defines it there.
4803         Include <signal.h> before split inclusion guard, to avoid
4804         mishaps on Solaris, whose <signal.h> eventually includes us.
4805         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4806         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4807         which come from ...
4808         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4809         gl_CHECK_TYPE_SIGSET_T.
4810         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4811         does the real work.
4812         * modules/sys_select (Depends-on): Add 'signal'.
4813
4814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4815         Suggested by Bruno Haible.
4816
4817         pselect: Use pthread_sigmask, not sigprocmask.
4818         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4819         multithreaded apps better than sigprocmask does.
4820         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4821         sigprocmask directly.
4822
4823 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4824
4825         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4826         Don't #undef,  since we don't need any underlying pselect.
4827         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4828         (Depends-on): Add select.
4829         (Link): Add $(LIBSOCKET).
4830         These changes suggested by Bruno Haible.
4831
4832         pselect: document better
4833         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4834         * doc/posix-functions/pselect.texi (pselect): Document new module.
4835
4836         pthread_sigmask: new module
4837         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4838         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4839         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4840         This is done only as a macro; I don't know how well that'll
4841         work for C++.  Move <sys/types.h> include before the include_next,
4842         to avoid mishap on Solaris.
4843         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4844         * modules/signal (Makefile.am): Substitute the check's results.
4845         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4846
4847         test-pselect: new module
4848         * modules/pselect-tests, tests/test-pselect.c: New files.
4849         * tests/test-select.c, tests/test-sys_select-c++.cc:
4850         If TEST_PSELECT is defined, test pselect instead of testing select.
4851
4852         * tests/test-sys_select.c (sigset_t): Test for it, too.
4853         Suggested by Bruno Haible.
4854
4855 2011-07-05  Eric Blake  <eblake@redhat.com>
4856
4857         snprintf: guarantee %1$d, for libintl
4858         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4859         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4860         * doc/posix-functions/snprintf.texi (snprintf): Update.
4861         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4862         * tests/test-snprintf.c (main): Enhance test.
4863         * tests/test-vsnprintf.c (main): Likewise.
4864
4865 2011-07-05  Jim Meyering  <meyering@redhat.com>
4866
4867         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4868         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4869         per Bruno's request, to accommodate this idiom (no space after "#")
4870         even when the function is inside an #if block:
4871         char *
4872         gets (char *s)
4873         #undef gets
4874         {
4875           ...
4876         }
4877
4878 2011-07-04  Jim Meyering  <meyering@redhat.com>
4879
4880         maint: indent with spaces, not TABs, and add a rule to check this
4881         * tests/test-userspec.c: Indent with spaces, not TABs.
4882         * tests/test-argp.c: Likewise.
4883         * tests/test-c-stack2.sh: Likewise.
4884         * tests/test-parse-duration.sh: Likewise
4885         * m4/strtod.m4: Likewise.
4886         * m4/alloca.m4: Likewise.
4887         * m4/pselect.m4: Likewise.
4888         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
4889
4890 2011-07-03  Jim Meyering  <meyering@redhat.com>
4891
4892         maint.mk: correct omissions in prohibit_argmatch_without_use check
4893         This rule would mistakenly report that argmatch.h is included without
4894         use even when both the argmatch and invalid_arg macro were used.
4895         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
4896         of argmatch and invalid_arg.
4897
4898 2011-07-03  Bruno Haible  <bruno@clisp.org>
4899
4900         Comments about EINTR.
4901         * lib/safe-read.h: Explain the purpose of this module.
4902         * lib/safe-write.h: Likewise.
4903         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
4904         module.
4905         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
4906         module.
4907         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4908
4909 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4910
4911         xnanosleep: Rewrite to use new dtotimespec module.
4912         It has the conversion code that used to be in xnanosleep.
4913         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4914         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4915         (TIME_T_MAX): Remove.
4916         (xnanosleep): Rewrite in terms of dtotimespec.
4917         * modules/xnanosleep (Depends-on): Add dtotimespec.
4918         Remove intprops, stdbool.
4919
4920         timespec-add, timespec-sub: new modules
4921         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4922         * lib/timespec-add.c, lib/timespec-sub.c:
4923         * modules/timespec-add, modules/timespec-sub: New files.
4924
4925         dtotimespec: new module
4926         * lib/timespec.h (dtotimespec): New decl.
4927         * lib/dtotimespec.c, modules/dtotimespec: New files.
4928
4929         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4930
4931         pselect: new module
4932         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4933         (pselect): New decls.
4934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4935         since the standard pselect decl uses 'restrict'.
4936         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4937         HAVE_PSELECT, REPLACE_PSELECT.
4938         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4939         HAVE_PSELECT, REPLACE_PSELECT.
4940         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4941
4942         sys_select: don't depend on sys_socket
4943         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4945         This fix works on GNU and GNU-like platforms, but has not been tested
4946         on native Windows.
4947         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4948         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4949         gl_HEADER_SYS_SOCKET.
4950         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4951         gl_PREREQ_SYS_H_WINSOCK2.
4952
4953 2011-06-29  Eric Blake  <eblake@redhat.com>
4954
4955         pipe2: fix C89 compile problem
4956         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4957         Reported by Bruno Haible.
4958
4959         pipe, pipe2: don't corrupt fd on error
4960         * lib/pipe.c (pipe): Leave fd unchanged on error.
4961         * lib/pipe2.c (pipe2): Likewise.
4962         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4963         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4964
4965 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4966
4967         mmap-anon: do not use regular expressions inadvertently
4968         * m4/mmap-anon.m4: Remove trailing period from strings sought
4969         in the output.
4970
4971 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4972
4973         nanosleep: fix integer overflow problem
4974         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4975         arithmetic wraps around on overflow.
4976
4977         nanosleep: simplify carrying
4978         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4979         first call to the underyling nanosleep, not for the last one.
4980         This doesn't fix any bugs, but it simplifies the computation of
4981         the remaining delay.  Found while auditing integer overflow issues.
4982
4983         dup2: remove test for existence of fcntl
4984         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4985         "#if HAVE_FCNTL", in the configure-time test program.
4986         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4987         and therefore speeds up "configure" a bit.  Found while
4988         adding the dup2 module to Emacs.
4989
4990 2011-06-24  Eric Blake  <eblake@redhat.com>
4991
4992         maint.mk: enhance useless header checks
4993         * top/maint.mk (_sc_header_without_use): Check both include
4994         styles.
4995         (sc_prohibit_assert_without_use)
4996         (sc_prohibit_close_stream_without_use)
4997         (sc_prohibit_getopt_without_use)
4998         (sc_prohibit_quotearg_without_use)
4999         (sc_prohibit_quote_without_use)
5000         (sc_prohibit_long_options_without_use)
5001         (sc_prohibit_inttostr_without_use)
5002         (sc_prohibit_ignore_value_without_use)
5003         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5004         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5005         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5006         (sc_prohibit_hash_pjw_without_use)
5007         (sc_prohibit_safe_read_without_use)
5008         (sc_prohibit_argmatch_without_use)
5009         (sc_prohibit_canonicalize_without_use)
5010         (sc_prohibit_root_dev_ino_without_use)
5011         (sc_prohibit_openat_without_use)
5012         (sc_prohibit_c_ctype_without_use)
5013         (sc_prohibit_signal_without_use)
5014         (sc_prohibit_stdio--_without_use)
5015         (sc_prohibit_stdio-safer_without_use)
5016         (sc_prohibit_strings_without_use)
5017         (sc_prohibit_intprops_without_use)
5018         (sc_prohibit_stddef_without_use)
5019         (sc_prohibit_xfreopen_without_use): Update clients.
5020
5021 2011-06-24  Jim Meyering  <meyering@redhat.com>
5022
5023         syntax-check: keep one maint.mk rule in sync with its header
5024         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5025         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5026         I prefer to avoid temporary files here, so use <(...), but that
5027         is not supported by /bin/sh, so...
5028         (SHELL): Define to /bin/bash.
5029
5030 2011-06-24  Eric Blake  <eblake@redhat.com>
5031
5032         maint.mk: update sc_prohibit_intprops_without_use
5033         * top/maint.mk (_intprops_names): Match recent changes.
5034
5035 2011-06-24  Bruno Haible  <bruno@clisp.org>
5036
5037         strerror-override: No-op tweak.
5038         * lib/strerror-override.h (strerror_override): Reorder conditions,
5039         for consistency with lib/strerror-override.c.
5040
5041 2011-06-23  Eric Blake  <eblake@redhat.com>
5042
5043         maint.mk: test further PATH_MAX issues
5044         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5045         (sc_prohibit_path_max_allocation): ...and also test alloca.
5046         Suggested by Jim Meyering.
5047
5048 2011-06-22  Eric Blake  <eblake@redhat.com>
5049
5050         maint.mk: add syntax-check to avoid char[PATH_MAX]
5051         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5052
5053         stat: be robust to PATH_MAX definition
5054         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5055         * modules/stat (Depends-on): Add verify.
5056
5057         link: work around IRIX bug
5058         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5059         * lib/link.c (rpl_link): Work around it.
5060         * tests/test-link.h (test_link): Enhance test.
5061         * doc/posix-functions/link.texi (link): Document the bug.
5062
5063         getopt: silence clang warning
5064         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5065         dereference.
5066         Reported by Gustavo Martin Domato.
5067
5068 2011-06-22  Jim Meyering  <meyering@redhat.com>
5069
5070         bootstrap: do not insert a blank line into each .gitignore file
5071         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5072
5073 2011-06-21  Eric Blake  <eblake@redhat.com>
5074
5075         perror: test for output mismatch
5076         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5077         perror on IRIX.
5078
5079         strerror_r: fix OpenBSD behavior on out-of-range
5080         * lib/strerror_r.c (strerror_r): Always use maximal string.
5081         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5082
5083         strerror_r: fix OpenBSD behavior on 0
5084         * lib/strerror-override.c (strerror_override): Also override 0
5085         when needed.
5086         * lib/strerror-override.h (strerror_override): Likewise.
5087         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5088         earlier.
5089         * lib/strerror_r.c (strerror_r): Likewise.
5090         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5091         behavior...
5092         (gl_FUNC_STRERROR_0): ...into new macro.
5093         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5094         is overridden.
5095         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5096         * modules/strerror-override (Files): Add strerror.m4.
5097         (configure.ac): Also provide override for 0 when needed.
5098         * doc/posix-functions/strerror.texi (strerror): Document this.
5099         * doc/posix-functions/perror.texi (perror): Likewise.
5100
5101         perror: adjust array size
5102         * modules/perror (Depends-on): Add strerror-override.
5103         * lib/perror.c (perror): Use it to avoid magic number.
5104
5105         strerror-override: reduce size
5106         * lib/strerror-override.c (strerror_override): Use fewer lines.
5107
5108 2011-06-20  Bruno Haible  <bruno@clisp.org>
5109
5110         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5111         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5112
5113 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5114
5115         alloca: port to compilers that can optimize like GCC 4.6.0
5116         * lib/alloca.c (find_stack_direction): New signature, taken from
5117         Autoconf git.  This works with GCC 4.6.0.  This code should never
5118         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5119         be used with other compilers that optimize as well as GCC 4.6.0 does.
5120         (alloca): Adjust to new signature.
5121         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5122         New macro, which patches Autoconf in a similar way.
5123
5124         c-stack: stop worrying about stack direction
5125         * lib/c-stack.c (find_stack_direction): Remove.
5126         (segv_handler): Don't worry about stack direction growth, as it's
5127         too much of a pain to configure this correctly, given how compilers
5128         are optimizing-away our stack-growth detection code.  Instead, assume
5129         that any access to just before or just after the stack is OK.
5130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5131         Don't require AC_FUNC_ALLOCA; no longer needed.
5132
5133 2011-06-20  Eric Blake  <eblake@redhat.com>
5134
5135         test-stat: don't allocate PATH_MAX bytes
5136         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5137         PATH_MAX-sized buffer.
5138         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5139         * modules/stat-tests (Depends-on): Likewise.
5140         * tests/test-fstatat.c (includes): Drop pathmax.h.
5141         * tests/test-stat.c (includes): Likewise.
5142         Reported by Bruno Haible.
5143
5144 2011-06-20  Bruno Haible  <bruno@clisp.org>
5145
5146         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5147         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5148         * lib/float.c: New file.
5149         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5150         REPLACE_FLOAT_LDBL.
5151         * modules/float (Files): Add lib/float.c.
5152         (configure.ac): Invoke AC_LIBOBJ.
5153         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5154
5155 2011-06-20  Bruno Haible  <bruno@clisp.org>
5156
5157         Tests for module 'float'.
5158         * modules/float-tests: New file.
5159         * tests/test-float.c: New file.
5160
5161 2011-06-19  Bruno Haible  <bruno@clisp.org>
5162
5163         isinf: Coding style.
5164         * lib/isinf.c: Use GNU coding style.
5165
5166 2011-06-19  Bruno Haible  <bruno@clisp.org>
5167
5168         linkat test: Avoid test failure on AIX 7.1.
5169         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5170         * tests/test-link.h (test_link): Likewise.
5171
5172 2011-06-19  Bruno Haible  <bruno@clisp.org>
5173
5174         pread test: Avoid test failure on OpenBSD 4.9.
5175         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5176
5177 2011-06-19  Bruno Haible  <bruno@clisp.org>
5178
5179         sprintf-posix: Fix test failure on AIX 7.1.
5180         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5181         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5182         on AIX.
5183         * doc/posix-functions/fprintf.texi: Likewise.
5184         * doc/posix-functions/printf.texi: Likewise.
5185         * doc/posix-functions/snprintf.texi: Likewise.
5186         * doc/posix-functions/sprintf.texi: Likewise.
5187         * doc/posix-functions/vdprintf.texi: Likewise.
5188         * doc/posix-functions/vfprintf.texi: Likewise.
5189         * doc/posix-functions/vprintf.texi: Likewise.
5190         * doc/posix-functions/vsnprintf.texi: Likewise.
5191         * doc/posix-functions/vsprintf.texi: Likewise.
5192
5193 2011-06-19  Bruno Haible  <bruno@clisp.org>
5194
5195         roundl-ieee: Fix test failure on AIX 7.1.
5196         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5197         * doc/posix-functions/roundl.texi: Mention problem with negative
5198         arguments.
5199
5200 2011-06-19  Bruno Haible  <bruno@clisp.org>
5201
5202         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5203         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5204         * doc/posix-functions/round.texi: Mention problem with negative
5205         arguments.
5206         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5207
5208 2011-06-19  Bruno Haible  <bruno@clisp.org>
5209
5210         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5211         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5212         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5213         * doc/posix-functions/roundf.texi: Mention problem with negative
5214         arguments.
5215         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5216
5217 2011-06-19  Bruno Haible  <bruno@clisp.org>
5218
5219         ceilf-ieee: Work around bug on MacOS X 10.5.
5220         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5221
5222         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5223         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5224         IEEE compliant, avoid compiler optimizations.
5225         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5226         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5227         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5228         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5229         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5230         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5231         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5232         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5233         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5235
5236 2011-06-19  Bruno Haible  <bruno@clisp.org>
5237
5238         ceilf-ieee: Work around bug on AIX 7.1.
5239         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5240         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5241
5242 2011-06-19  Bruno Haible  <bruno@clisp.org>
5243
5244         ceil-ieee: Work around bug on AIX 7.1.
5245         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5246         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5247
5248 2011-06-18  Bruno Haible  <bruno@clisp.org>
5249
5250         fsync test: Avoid test failure on MacOS X and AIX.
5251         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5252         EINVAL.
5253
5254 2011-06-18  Bruno Haible  <bruno@clisp.org>
5255
5256         openat, fdopendir tests: Fix link errors.
5257         * modules/openat-tests (Depends-on): Add progname.
5258         * modules/fdopendir-tests (Depends-on): Likewise.
5259         * tests/test-fchownat.c: Include progname.h.
5260         (main): Call set_program_name.
5261         * tests/test-fstatat.c: Include progname.h.
5262         (main): Call set_program_name.
5263         * tests/test-mkdirat.c: Include progname.h.
5264         (main): Call set_program_name.
5265         * tests/test-openat.c: Include progname.h.
5266         (main): Call set_program_name.
5267         * tests/test-unlinkat.c: Include progname.h.
5268         (main): Call set_program_name.
5269         * tests/test-fdopendir.c: Include progname.h.
5270         (main): Call set_program_name.
5271
5272 2011-06-18  Bruno Haible  <bruno@clisp.org>
5273
5274         Doc update.
5275         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5276         HP-UX.
5277         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5278
5279 2011-06-18  Bruno Haible  <bruno@clisp.org>
5280
5281         getcwd tests: Avoid compilation error on HP-UX 11.31.
5282         * modules/getcwd-tests (Depends-on): Add pathmax.
5283         * tests/test-getcwd.c: Include pathmax.h.
5284
5285 2011-06-18  Bruno Haible  <bruno@clisp.org>
5286
5287         isfinite, isinf: Fix link error on AIX 6 and 7.
5288         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5289         needed, also test the macro with a 'float' argument.
5290         * m4/isinf.m4 (gl_ISINF): Likewise.
5291
5292 2011-06-18  Bruno Haible  <bruno@clisp.org>
5293
5294         getloadavg: Don't clobber LIBS. Regression from previous commit.
5295         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5296         AC_CHECK_LIB from here...
5297         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5298         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5299         gl_func_getloadavg_done.
5300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5301
5302 2011-06-18  Bruno Haible  <bruno@clisp.org>
5303
5304         clean-temp: Improve documentation.
5305         * lib/clean-temp.h: Explain better how to use this module.
5306         Reported by John Darrington <john@darrington.wattle.id.au>.
5307
5308 2011-06-17  Bruno Haible  <bruno@clisp.org>
5309
5310         pread, pwrite: Avoid cc warning on AIX.
5311         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5312         (pwrite): Likewise.
5313
5314 2011-06-17  Bruno Haible  <bruno@clisp.org>
5315
5316         spawn-pipe tests: Fix link error.
5317         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5319
5320 2011-06-17  Bruno Haible  <bruno@clisp.org>
5321
5322         Tests: Remove unnecessary dependency.
5323         * modules/canonicalize-tests (Depends-on): Remove progname.
5324         * modules/chown-tests (Depends-on): Likewise.
5325         * modules/dirname-tests (Depends-on): Likewise.
5326         * modules/fdopendir-tests (Depends-on): Likewise.
5327         * modules/fdutimensat-tests (Depends-on): Likewise.
5328         * modules/hash-tests (Depends-on): Likewise.
5329         * modules/lchown-tests (Depends-on): Likewise.
5330         * modules/linkat-tests (Depends-on): Likewise.
5331         * modules/renameat-tests (Depends-on): Likewise.
5332         * modules/spawn-pipe-tests (Depends-on): Likewise.
5333         * modules/utimensat-tests (Depends-on): Likewise.
5334
5335 2011-06-17  Bruno Haible  <bruno@clisp.org>
5336
5337         spawn-pipe tests: Fix link error.
5338         * tests/test-spawn-pipe-child.c: Undefine fflush.
5339
5340 2011-06-17  Bruno Haible  <bruno@clisp.org>
5341
5342         Fix tests link errors.
5343         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5344         * modules/chown-tests (Makefile.am): Don't link test-chown with
5345         LIBINTL.
5346         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5347         LIBINTL.
5348         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5349         LIBINTL.
5350         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5351         LIBINTL.
5352
5353 2011-06-16  Bruno Haible  <bruno@clisp.org>
5354
5355         crypto/gc-sha1: Fix recent regression.
5356         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5357         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5358
5359         crypto/gc-md5: Fix recent regression.
5360         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5361
5362         crypto/gc-md4: Fix recent regression.
5363         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5364         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5365
5366         crypto/gc-arctwo: Fix recent regression.
5367         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5368         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5369
5370         crypto/gc-rijndael: Fix recent regression.
5371         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5372         (configure.ac): Invoke AC_LIBOBJ here.
5373         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5374         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5375
5376         crypto/gc-hmac-sha1: Fix recent regression.
5377         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5378         (configure.ac): Invoke AC_LIBOBJ here.
5379         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5380         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5381
5382         crypto/gc-hmac-md5: Fix recent regression.
5383         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5384         (configure.ac): Invoke AC_LIBOBJ here.
5385         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5387
5388         crypto/gc-des: Fix recent regression.
5389         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5390         (configure.ac): Invoke AC_LIBOBJ here.
5391         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5393
5394         crypto/gc-arcfour: Fix recent regression.
5395         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5396         (configure.ac): Invoke AC_LIBOBJ here.
5397         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5399
5400 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5401
5402         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5403         After the 2011-05-21 change, this macro requires
5404         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5405         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5406
5407 2011-06-16  Bruno Haible  <bruno@clisp.org>
5408
5409         fprintftime: Move AC_LIBOBJ invocations to module description.
5410         * m4/fprintftime.m4: Remove file.
5411         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5412         (configure.ac): Remove gl_FPRINTFTIME call.
5413         (Makefile.am): Augment lib_SOURCES.
5414         Reported by Jim Meyering.
5415
5416 2011-06-16  Bruno Haible  <bruno@clisp.org>
5417
5418         tmpfile-safer: Finish 2011-05-23 commit.
5419         * m4/stdio-safer.m4: Really remove file.
5420         Reported by Jim Meyering.
5421
5422 2011-06-16  Bruno Haible  <bruno@clisp.org>
5423
5424         syntax-check: Fix typo.
5425         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5426         printf-posix.m4.
5427         Reported by Jim Meyering.
5428
5429 2011-06-13  Jim Meyering  <meyering@redhat.com>
5430
5431         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5432         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5433
5434 2011-05-23  Bruno Haible  <bruno@clisp.org>
5435
5436         yesno: Move AC_LIBOBJ invocations to module description.
5437         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5438         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5439
5440 2011-05-23  Bruno Haible  <bruno@clisp.org>
5441
5442         xstrtol: Move AC_LIBOBJ invocations to module description.
5443         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5444         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5445
5446 2011-05-23  Bruno Haible  <bruno@clisp.org>
5447
5448         xstrtold: Move AC_LIBOBJ invocations to module description.
5449         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5450         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5451
5452 2011-05-23  Bruno Haible  <bruno@clisp.org>
5453
5454         xstrtod: Move AC_LIBOBJ invocations to module description.
5455         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5456         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5457
5458 2011-05-23  Bruno Haible  <bruno@clisp.org>
5459
5460         xnanosleep: Move AC_LIBOBJ invocations to module description.
5461         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5462         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5463
5464 2011-05-23  Bruno Haible  <bruno@clisp.org>
5465
5466         xgetcwd: Move AC_LIBOBJ invocations to module description.
5467         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5468         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5469
5470 2011-05-23  Bruno Haible  <bruno@clisp.org>
5471
5472         xalloc: Move AC_LIBOBJ invocations to module description.
5473         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5474         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5475
5476 2011-05-23  Bruno Haible  <bruno@clisp.org>
5477
5478         write-any-file: Move AC_LIBOBJ invocations to module description.
5479         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5480         invocation.
5481         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5482
5483 2011-05-23  Bruno Haible  <bruno@clisp.org>
5484
5485         utimens: Move AC_LIBOBJ invocations to module description.
5486         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5487         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5488
5489 2011-05-23  Bruno Haible  <bruno@clisp.org>
5490
5491         utimecmp: Move AC_LIBOBJ invocations to module description.
5492         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5493         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5494
5495 2011-05-23  Bruno Haible  <bruno@clisp.org>
5496
5497         userspec: Move AC_LIBOBJ invocations to module description.
5498         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5499         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5500
5501 2011-05-23  Bruno Haible  <bruno@clisp.org>
5502
5503         unlinkdir: Move AC_LIBOBJ invocations to module description.
5504         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5505         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5506
5507 2011-05-23  Bruno Haible  <bruno@clisp.org>
5508
5509         unistd-safer: Move AC_LIBOBJ invocations to module description.
5510         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5511         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5512
5513 2011-05-23  Bruno Haible  <bruno@clisp.org>
5514
5515         tempname: Move AC_LIBOBJ invocations to module description.
5516         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5517         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5518
5519 2011-05-23  Bruno Haible  <bruno@clisp.org>
5520
5521         strftime: Move AC_LIBOBJ invocations to module description.
5522         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5523         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5524
5525 2011-05-23  Bruno Haible  <bruno@clisp.org>
5526
5527         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5528         * m4/stdlib-safer.m4: Remove file.
5529         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5530         (configure.ac): Remove gl_STDLIB_SAFER call.
5531         (Makefile.am): Augment lib_SOURCES.
5532
5533 2011-05-23  Bruno Haible  <bruno@clisp.org>
5534
5535         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5536         * m4/stdio-safer.m4: Remove file.
5537         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5538         (configure.ac): Remove gl_TMPFILE_SAFER call.
5539         (Makefile.am): Augment lib_SOURCES.
5540
5541 2011-05-23  Bruno Haible  <bruno@clisp.org>
5542
5543         popen-safer: Move AC_LIBOBJ invocations to module description.
5544         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5545         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5546         (configure.ac): Remove gl_POPEN_SAFER call.
5547         (Makefile.am): Augment lib_SOURCES.
5548
5549 2011-05-23  Bruno Haible  <bruno@clisp.org>
5550
5551         freopen-safer: Move AC_LIBOBJ invocations to module description.
5552         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5553         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5554         (configure.ac): Remove gl_FREOPEN_SAFER call.
5555         (Makefile.am): Augment lib_SOURCES.
5556
5557 2011-05-23  Bruno Haible  <bruno@clisp.org>
5558
5559         fopen-safer: Move AC_LIBOBJ invocations to module description.
5560         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5561         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5562         (configure.ac): Remove gl_FOPEN_SAFER call.
5563         (Makefile.am): Augment lib_SOURCES.
5564
5565 2011-05-23  Bruno Haible  <bruno@clisp.org>
5566
5567         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5568         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5569         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5570
5571 2011-05-23  Bruno Haible  <bruno@clisp.org>
5572
5573         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5574         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5575         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5576
5577 2011-05-23  Bruno Haible  <bruno@clisp.org>
5578
5579         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5580         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5581         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5582
5583 2011-05-23  Bruno Haible  <bruno@clisp.org>
5584
5585         settime: Move AC_LIBOBJ invocations to module description.
5586         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5587         * modules/settime (Makefile.am): Augment lib_SOURCES.
5588
5589 2011-05-23  Bruno Haible  <bruno@clisp.org>
5590
5591         savedir: Move AC_LIBOBJ invocations to module description.
5592         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5593         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5594
5595 2011-05-23  Bruno Haible  <bruno@clisp.org>
5596
5597         save-cwd: Move AC_LIBOBJ invocations to module description.
5598         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5599         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5600
5601 2011-05-23  Bruno Haible  <bruno@clisp.org>
5602
5603         same: Move AC_LIBOBJ invocations to module description.
5604         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5605         * modules/same (Makefile.am): Augment lib_SOURCES.
5606
5607 2011-05-23  Bruno Haible  <bruno@clisp.org>
5608
5609         safe-write: Move AC_LIBOBJ invocations to module description.
5610         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5611         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5612         instead of gl_SAFE_WRITE.
5613         (Makefile.am): Augment lib_SOURCES.
5614
5615 2011-05-23  Bruno Haible  <bruno@clisp.org>
5616
5617         safe-read: Move AC_LIBOBJ invocations to module description.
5618         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5619         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5620         of gl_SAFE_READ.
5621         (Makefile.am): Augment lib_SOURCES.
5622
5623 2011-05-23  Bruno Haible  <bruno@clisp.org>
5624
5625         safe-alloc: Move AC_LIBOBJ invocations to module description.
5626         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5627         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5628
5629 2011-05-23  Bruno Haible  <bruno@clisp.org>
5630
5631         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5632         * m4/rijndael.m4: Remove file.
5633         * modules/crypto/rijndael (Files): Remove it.
5634         (configure.ac): Remove gl_RIJNDAEL call.
5635         (Makefile.am): Augment lib_SOURCES.
5636
5637 2011-05-23  Bruno Haible  <bruno@clisp.org>
5638
5639         readtokens: Move AC_LIBOBJ invocations to module description.
5640         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5641         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5642
5643 2011-05-23  Bruno Haible  <bruno@clisp.org>
5644
5645         read-file: Move AC_LIBOBJ invocations to module description.
5646         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5647         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5648         of gl_FUNC_READ_FILE.
5649         (Makefile.am): Augment lib_SOURCES.
5650
5651 2011-05-23  Bruno Haible  <bruno@clisp.org>
5652
5653         quotearg: Move AC_LIBOBJ invocations to module description.
5654         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5655         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5656
5657 2011-05-23  Bruno Haible  <bruno@clisp.org>
5658
5659         quote: Move AC_LIBOBJ invocations to module description.
5660         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5661         * modules/quote (Makefile.am): Augment lib_SOURCES.
5662
5663 2011-05-23  Bruno Haible  <bruno@clisp.org>
5664
5665         posixver: Move AC_LIBOBJ invocations to module description.
5666         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5667         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5668
5669 2011-05-23  Bruno Haible  <bruno@clisp.org>
5670
5671         posixtm: Move AC_LIBOBJ invocations to module description.
5672         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5673         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5674
5675 2011-05-23  Bruno Haible  <bruno@clisp.org>
5676
5677         physmem: Move AC_LIBOBJ invocations to module description.
5678         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5679         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5680
5681 2011-05-23  Bruno Haible  <bruno@clisp.org>
5682
5683         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5684         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5685         invocation.
5686         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5687
5688 2011-05-23  Bruno Haible  <bruno@clisp.org>
5689
5690         mpsort: Move AC_LIBOBJ invocations to module description.
5691         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5692         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5693
5694 2011-05-23  Bruno Haible  <bruno@clisp.org>
5695
5696         modechange: Move AC_LIBOBJ invocations to module description.
5697         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5698         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5699
5700 2011-05-23  Bruno Haible  <bruno@clisp.org>
5701
5702         mkdir-p: Move AC_LIBOBJ invocations to module description.
5703         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5704         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5705
5706 2011-05-23  Bruno Haible  <bruno@clisp.org>
5707
5708         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5709         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5710         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5711
5712 2011-05-23  Bruno Haible  <bruno@clisp.org>
5713
5714         mgetgroups: Move AC_LIBOBJ invocations to module description.
5715         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5716         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5717
5718 2011-05-23  Bruno Haible  <bruno@clisp.org>
5719
5720         memxor: Move AC_LIBOBJ invocations to module description.
5721         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5722         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5723
5724 2011-05-23  Bruno Haible  <bruno@clisp.org>
5725
5726         memcoll: Move AC_LIBOBJ invocations to module description.
5727         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5728         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5729
5730 2011-05-23  Bruno Haible  <bruno@clisp.org>
5731
5732         memcasecmp: Move AC_LIBOBJ invocations to module description.
5733         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5734         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5735
5736 2011-05-23  Bruno Haible  <bruno@clisp.org>
5737
5738         crypto/md5: Move AC_LIBOBJ invocations to module description.
5739         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5740         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5741
5742 2011-05-23  Bruno Haible  <bruno@clisp.org>
5743
5744         crypto/md4: Move AC_LIBOBJ invocations to module description.
5745         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5746         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5747
5748 2011-05-23  Bruno Haible  <bruno@clisp.org>
5749
5750         crypto/md2: Move AC_LIBOBJ invocations to module description.
5751         * m4/md2.m4: Remove file.
5752         * modules/crypto/md2 (Files): Remove it.
5753         (configure.ac): Remove gl_MD2 call.
5754         (Makefile.am): Augment lib_SOURCES.
5755
5756 2011-05-23  Bruno Haible  <bruno@clisp.org>
5757
5758         long-options: Move AC_LIBOBJ invocations to module description.
5759         * m4/long-options.m4: Remove file.
5760         * modules/long-options (Files): Remove it.
5761         (configure.ac): Remove gl_LONG_OPTIONS call.
5762         (Makefile.am): Augment lib_SOURCES.
5763
5764 2011-05-23  Bruno Haible  <bruno@clisp.org>
5765
5766         i-ring: Move AC_LIBOBJ invocations to module description.
5767         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5768         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5769
5770 2011-05-23  Bruno Haible  <bruno@clisp.org>
5771
5772         idcache: Move AC_LIBOBJ invocations to module description.
5773         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5774         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5775
5776 2011-05-23  Bruno Haible  <bruno@clisp.org>
5777
5778         human: Move AC_LIBOBJ invocations to module description.
5779         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5780         * modules/human (Makefile.am): Augment lib_SOURCES.
5781
5782 2011-05-23  Bruno Haible  <bruno@clisp.org>
5783
5784         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5785         * m4/hmac-sha1.m4: Remove file.
5786         * modules/crypto/hmac-sha1 (Files): Remove it.
5787         (configure.ac): Remove gl_HMAC_SHA1 call.
5788         (Makefile.am): Augment lib_SOURCES.
5789
5790 2011-05-23  Bruno Haible  <bruno@clisp.org>
5791
5792         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5793         * m4/hmac-md5.m4: Remove file.
5794         * modules/crypto/hmac-md5 (Files): Remove it.
5795         (configure.ac): Remove gl_HMAC_MD5 call.
5796         (Makefile.am): Augment lib_SOURCES.
5797
5798 2011-05-23  Bruno Haible  <bruno@clisp.org>
5799
5800         hash: Move AC_LIBOBJ invocations to module description.
5801         * m4/hash.m4: Remove file.
5802         * modules/hash (Files): Remove it.
5803         (configure.ac): Remove gl_HASH call.
5804         (Makefile.am): Augment lib_SOURCES.
5805
5806 2011-05-23  Bruno Haible  <bruno@clisp.org>
5807
5808         hard-locale: Move AC_LIBOBJ invocations to module description.
5809         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5810         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5811
5812 2011-05-23  Bruno Haible  <bruno@clisp.org>
5813
5814         getugroups: Move AC_LIBOBJ invocations to module description.
5815         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5816         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5817
5818 2011-05-23  Bruno Haible  <bruno@clisp.org>
5819
5820         gettime: Move AC_LIBOBJ invocations to module description.
5821         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5822         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5823
5824 2011-05-23  Bruno Haible  <bruno@clisp.org>
5825
5826         getndelim2: Move AC_LIBOBJ invocations to module description.
5827         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5828         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5829
5830 2011-05-23  Bruno Haible  <bruno@clisp.org>
5831
5832         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5833         * m4/gc-pbkdf2-sha1.m4: Remove file.
5834         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5835         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5836         (Makefile.am): Augment lib_SOURCES.
5837
5838 2011-05-23  Bruno Haible  <bruno@clisp.org>
5839
5840         fts: Move AC_LIBOBJ invocations to module description.
5841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5842         * modules/fts (configure.ac): ... to here.
5843
5844 2011-05-23  Bruno Haible  <bruno@clisp.org>
5845
5846         file-type: Move AC_LIBOBJ invocations to module description.
5847         * m4/file-type.m4: Remove file.
5848         * modules/file-type (Files): Remove it.
5849         (configure.ac): Remove gl_FILE_TYPE call.
5850         (Makefile.am): Augment lib_SOURCES.
5851
5852 2011-05-23  Bruno Haible  <bruno@clisp.org>
5853
5854         filenamecat*: Respect rules for use of AC_LIBOBJ.
5855         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5856         Remove AC_LIBOBJ invocation.
5857         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5858         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5859
5860 2011-05-23  Bruno Haible  <bruno@clisp.org>
5861
5862         filemode: Move AC_LIBOBJ invocations to module description.
5863         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5864         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5865
5866 2011-05-23  Bruno Haible  <bruno@clisp.org>
5867
5868         openat-safer: Move AC_LIBOBJ invocations to module description.
5869         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5870         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5871
5872 2011-05-23  Bruno Haible  <bruno@clisp.org>
5873
5874         fcntl-safer: Move AC_LIBOBJ invocations to module description.
5875         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
5876         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
5877
5878 2011-05-23  Bruno Haible  <bruno@clisp.org>
5879
5880         exclude: Move AC_LIBOBJ invocations to module description.
5881         * m4/exclude.m4: Remove file.
5882         * modules/exclude (Files): Remove it.
5883         (configure.ac): Remove gl_EXCLUDE call.
5884         (Makefile.am): Augment lib_SOURCES.
5885
5886 2011-05-23  Bruno Haible  <bruno@clisp.org>
5887
5888         dirname*: Respect rules for use of AC_LIBOBJ.
5889         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
5890         invocations.
5891         * modules/dirname (Makefile.am): Augment lib_SOURCES.
5892         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
5893
5894 2011-05-23  Bruno Haible  <bruno@clisp.org>
5895
5896         dirent-safer: Move AC_LIBOBJ invocations to module description.
5897         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
5898         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
5899
5900 2011-05-23  Bruno Haible  <bruno@clisp.org>
5901
5902         crypto/des: Move AC_LIBOBJ invocations to module description.
5903         * m4/des.m4: Remove file.
5904         * modules/crypto/des (Files): Remove it.
5905         (configure.ac): Remove gl_DES call.
5906         (Makefile.am): Augment lib_SOURCES.
5907
5908 2011-05-23  Bruno Haible  <bruno@clisp.org>
5909
5910         cycle-check: Move AC_LIBOBJ invocations to module description.
5911         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5912         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5913
5914 2011-05-23  Bruno Haible  <bruno@clisp.org>
5915
5916         c-strtold: Move AC_LIBOBJ invocations to module description.
5917         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5918         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5919
5920 2011-05-23  Bruno Haible  <bruno@clisp.org>
5921
5922         c-strtod: Move AC_LIBOBJ invocations to module description.
5923         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5924         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5925
5926 2011-05-23  Bruno Haible  <bruno@clisp.org>
5927
5928         crc: Move AC_LIBOBJ invocations to module description.
5929         * m4/crc.m4: Remove file.
5930         * modules/crc (Files): Remove it.
5931         (configure.ac): Remove gl_CRC call.
5932         (Makefile.am): Augment lib_SOURCES.
5933
5934 2011-05-23  Bruno Haible  <bruno@clisp.org>
5935
5936         close-stream: Move AC_LIBOBJ invocations to module description.
5937         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5938         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5939
5940 2011-05-23  Bruno Haible  <bruno@clisp.org>
5941
5942         closeout: Move AC_LIBOBJ invocations to module description.
5943         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5944         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5945
5946 2011-05-23  Bruno Haible  <bruno@clisp.org>
5947
5948         closein: Move AC_LIBOBJ invocations to module description.
5949         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5950         * modules/closein (Makefile.am): Augment lib_SOURCES.
5951
5952 2011-05-23  Bruno Haible  <bruno@clisp.org>
5953
5954         cloexec: Move AC_LIBOBJ invocations to module description.
5955         * m4/cloexec.m4: Remove file.
5956         * modules/cloexec (Files): Remove it.
5957         (configure.ac): Remove gl_CLOEXEC call.
5958         (Makefile.am): Augment lib_SOURCES.
5959
5960 2011-05-23  Bruno Haible  <bruno@clisp.org>
5961
5962         check-version: Move AC_LIBOBJ invocations to module description.
5963         * m4/check-version.m4: Remove file.
5964         * modules/check-version (Files): Remove it.
5965         (configure.ac): Remove gl_CHECK_VERSION call.
5966         (Makefile.am): Augment lib_SOURCES.
5967
5968 2011-05-23  Bruno Haible  <bruno@clisp.org>
5969
5970         chdir-safer: Move AC_LIBOBJ invocations to module description.
5971         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5972         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5973
5974 2011-05-23  Bruno Haible  <bruno@clisp.org>
5975
5976         canonicalize: Move AC_LIBOBJ invocations to module description.
5977         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5978         AC_LIBOBJ invocation.
5979         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5980
5981 2011-05-23  Bruno Haible  <bruno@clisp.org>
5982
5983         canon-host: Move AC_LIBOBJ invocations to module description.
5984         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5985         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5986         instead of gl_CANON_HOST.
5987         (Makefile.am): Augment lib_SOURCES.
5988
5989 2011-05-23  Bruno Haible  <bruno@clisp.org>
5990
5991         backupfile: Move AC_LIBOBJ invocations to module description.
5992         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5993         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5994
5995 2011-05-23  Bruno Haible  <bruno@clisp.org>
5996
5997         argmatch: Move AC_LIBOBJ invocations to module description.
5998         * m4/argmatch.m4: Remove file.
5999         * modules/argmatch (Files): Remove it.
6000         (configure.ac): Remove gl_ARGMATCH call.
6001         (Makefile.am): Augment lib_SOURCES.
6002
6003 2011-05-23  Bruno Haible  <bruno@clisp.org>
6004
6005         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6006         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6007         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6008
6009 2011-05-23  Bruno Haible  <bruno@clisp.org>
6010
6011         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6012         * m4/arcfour.m4: Remove file.
6013         * modules/crypto/arcfour (Files): Remove it.
6014         (configure.ac): Remove gl_ARCFOUR call.
6015         (Makefile.am): Augment lib_SOURCES.
6016
6017 2011-05-22  Bruno Haible  <bruno@clisp.org>
6018
6019         write: Move AC_LIBOBJ invocations to module description.
6020         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6021         * modules/write (configure.ac): ... to here.
6022
6023 2011-05-22  Bruno Haible  <bruno@clisp.org>
6024
6025         wmemset: Move AC_LIBOBJ invocations to module description.
6026         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6027         here...
6028         * modules/wmemset (configure.ac): ... to here.
6029
6030 2011-05-22  Bruno Haible  <bruno@clisp.org>
6031
6032         wmemmove: Move AC_LIBOBJ invocations to module description.
6033         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6034         here...
6035         * modules/wmemmove (configure.ac): ... to here.
6036
6037 2011-05-22  Bruno Haible  <bruno@clisp.org>
6038
6039         wmemcpy: Move AC_LIBOBJ invocations to module description.
6040         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6041         here...
6042         * modules/wmemcpy (configure.ac): ... to here.
6043
6044 2011-05-22  Bruno Haible  <bruno@clisp.org>
6045
6046         wmemcmp: Move AC_LIBOBJ invocations to module description.
6047         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6048         here...
6049         * modules/wmemcmp (configure.ac): ... to here.
6050
6051 2011-05-22  Bruno Haible  <bruno@clisp.org>
6052
6053         wmemchr: Move AC_LIBOBJ invocations to module description.
6054         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6055         here...
6056         * modules/wmemchr (configure.ac): ... to here.
6057
6058 2011-05-22  Bruno Haible  <bruno@clisp.org>
6059
6060         wcswidth: Move AC_LIBOBJ invocations to module description.
6061         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6062         here...
6063         * modules/wcswidth (configure.ac): ... to here.
6064
6065 2011-05-22  Bruno Haible  <bruno@clisp.org>
6066
6067         wcwidth: Respect rules for use of AC_LIBOBJ.
6068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6069         invocation from here...
6070         * modules/wcwidth (configure.ac): ... to here.
6071         (Depends-on): Update conditions.
6072
6073 2011-05-22  Bruno Haible  <bruno@clisp.org>
6074
6075         wctype: Move AC_LIBOBJ invocations to module description.
6076         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6077         invocation from here...
6078         * modules/wctype (configure.ac): ... to here.
6079         (Depends-on): Update conditions.
6080
6081 2011-05-22  Bruno Haible  <bruno@clisp.org>
6082
6083         wctrans: Move AC_LIBOBJ invocations to module description.
6084         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6085         invocation from here...
6086         * modules/wctrans (configure.ac): ... to here.
6087
6088 2011-05-22  Bruno Haible  <bruno@clisp.org>
6089
6090         wctomb: Move AC_LIBOBJ invocations to module description.
6091         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6092         invocations from here...
6093         * modules/wctomb (configure.ac): ... to here.
6094
6095 2011-05-22  Bruno Haible  <bruno@clisp.org>
6096
6097         wctob: Move AC_LIBOBJ invocations to module description.
6098         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6099         gl_PREREQ_WCTOB invocations from here...
6100         * modules/wctob (configure.ac): ... to here.
6101         (Depends-on): Update conditions.
6102
6103 2011-05-22  Bruno Haible  <bruno@clisp.org>
6104
6105         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6106         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6107         here...
6108         * modules/wcsxfrm (configure.ac): ... to here.
6109
6110 2011-05-22  Bruno Haible  <bruno@clisp.org>
6111
6112         wcstok: Move AC_LIBOBJ invocations to module description.
6113         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6114         * modules/wcstok (configure.ac): ... to here.
6115
6116 2011-05-22  Bruno Haible  <bruno@clisp.org>
6117
6118         wcsstr: Move AC_LIBOBJ invocations to module description.
6119         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6120         * modules/wcsstr (configure.ac): ... to here.
6121
6122 2011-05-22  Bruno Haible  <bruno@clisp.org>
6123
6124         wcsspn: Move AC_LIBOBJ invocations to module description.
6125         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6126         * modules/wcsspn (configure.ac): ... to here.
6127
6128 2011-05-22  Bruno Haible  <bruno@clisp.org>
6129
6130         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6131         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6132         gl_PREREQ_WCSRTOMBS invocations from here...
6133         * modules/wcsrtombs (configure.ac): ... to here.
6134
6135 2011-05-22  Bruno Haible  <bruno@clisp.org>
6136
6137         wcsrchr: Move AC_LIBOBJ invocations to module description.
6138         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6139         here...
6140         * modules/wcsrchr (configure.ac): ... to here.
6141
6142 2011-05-22  Bruno Haible  <bruno@clisp.org>
6143
6144         wcspbrk: Move AC_LIBOBJ invocations to module description.
6145         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6146         here...
6147         * modules/wcspbrk (configure.ac): ... to here.
6148
6149 2011-05-22  Bruno Haible  <bruno@clisp.org>
6150
6151         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6152         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6153         gl_PREREQ_WCSNRTOMBS invocations from here...
6154         * modules/wcsnrtombs (configure.ac): ... to here.
6155
6156 2011-05-22  Bruno Haible  <bruno@clisp.org>
6157
6158         wcsnlen: Move AC_LIBOBJ invocations to module description.
6159         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6160         here...
6161         * modules/wcsnlen (configure.ac): ... to here.
6162
6163 2011-05-22  Bruno Haible  <bruno@clisp.org>
6164
6165         wcsncpy: Move AC_LIBOBJ invocations to module description.
6166         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6167         here...
6168         * modules/wcsncpy (configure.ac): ... to here.
6169
6170 2011-05-22  Bruno Haible  <bruno@clisp.org>
6171
6172         wcsncmp: Move AC_LIBOBJ invocations to module description.
6173         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6174         here...
6175         * modules/wcsncmp (configure.ac): ... to here.
6176
6177 2011-05-22  Bruno Haible  <bruno@clisp.org>
6178
6179         wcsncat: Move AC_LIBOBJ invocations to module description.
6180         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6181         here...
6182         * modules/wcsncat (configure.ac): ... to here.
6183
6184 2011-05-22  Bruno Haible  <bruno@clisp.org>
6185
6186         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6187         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6188         from here...
6189         * modules/wcsncasecmp (configure.ac): ... to here.
6190
6191 2011-05-22  Bruno Haible  <bruno@clisp.org>
6192
6193         wcslen: Move AC_LIBOBJ invocations to module description.
6194         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6195         * modules/wcslen (configure.ac): ... to here.
6196
6197 2011-05-22  Bruno Haible  <bruno@clisp.org>
6198
6199         wcsdup: Move AC_LIBOBJ invocations to module description.
6200         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6201         * modules/wcsdup (configure.ac): ... to here.
6202
6203 2011-05-22  Bruno Haible  <bruno@clisp.org>
6204
6205         wcscspn: Move AC_LIBOBJ invocations to module description.
6206         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6207         here...
6208         * modules/wcscspn (configure.ac): ... to here.
6209
6210 2011-05-22  Bruno Haible  <bruno@clisp.org>
6211
6212         wcscpy: Move AC_LIBOBJ invocations to module description.
6213         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6214         * modules/wcscpy (configure.ac): ... to here.
6215
6216 2011-05-22  Bruno Haible  <bruno@clisp.org>
6217
6218         wcscoll: Move AC_LIBOBJ invocations to module description.
6219         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6220         here...
6221         * modules/wcscoll (configure.ac): ... to here.
6222
6223 2011-05-22  Bruno Haible  <bruno@clisp.org>
6224
6225         wcscmp: Move AC_LIBOBJ invocations to module description.
6226         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6227         * modules/wcscmp (configure.ac): ... to here.
6228
6229 2011-05-22  Bruno Haible  <bruno@clisp.org>
6230
6231         wcschr: Move AC_LIBOBJ invocations to module description.
6232         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6233         * modules/wcschr (configure.ac): ... to here.
6234
6235 2011-05-22  Bruno Haible  <bruno@clisp.org>
6236
6237         wcscat: Move AC_LIBOBJ invocations to module description.
6238         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6239         * modules/wcscat (configure.ac): ... to here.
6240
6241 2011-05-22  Bruno Haible  <bruno@clisp.org>
6242
6243         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6244         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6245         here...
6246         * modules/wcscasecmp (configure.ac): ... to here.
6247
6248 2011-05-22  Bruno Haible  <bruno@clisp.org>
6249
6250         wcrtomb: Move AC_LIBOBJ invocations to module description.
6251         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6252         invocations from here...
6253         * modules/wcrtomb (configure.ac): ... to here.
6254
6255 2011-05-22  Bruno Haible  <bruno@clisp.org>
6256
6257         wcpncpy: Move AC_LIBOBJ invocations to module description.
6258         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6259         here...
6260         * modules/wcpncpy (configure.ac): ... to here.
6261
6262 2011-05-22  Bruno Haible  <bruno@clisp.org>
6263
6264         wcpcpy: Move AC_LIBOBJ invocations to module description.
6265         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6266         * modules/wcpcpy (configure.ac): ... to here.
6267
6268 2011-05-22  Bruno Haible  <bruno@clisp.org>
6269
6270         waitpid: Move AC_LIBOBJ invocations to module description.
6271         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6272         invocation from here...
6273         * modules/waitpid (configure.ac): ... to here.
6274
6275 2011-05-22  Bruno Haible  <bruno@clisp.org>
6276
6277         utimensat: Move AC_LIBOBJ invocations to module description.
6278         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6279         here...
6280         * modules/utimensat (configure.ac): ... to here.
6281
6282 2011-05-22  Bruno Haible  <bruno@clisp.org>
6283
6284         usleep: Move AC_LIBOBJ invocations to module description.
6285         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6286         here...
6287         * modules/usleep (configure.ac): ... to here.
6288
6289 2011-05-22  Bruno Haible  <bruno@clisp.org>
6290
6291         unlockpt: Move AC_LIBOBJ invocations to module description.
6292         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6293         gl_PREREQ_UNLOCKPT invocations from here...
6294         * modules/unlockpt (configure.ac): ... to here.
6295
6296 2011-05-22  Bruno Haible  <bruno@clisp.org>
6297
6298         unlink: Respect rules for use of AC_LIBOBJ.
6299         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6300         * modules/unlink (configure.ac): ... to here.
6301
6302 2011-05-22  Bruno Haible  <bruno@clisp.org>
6303
6304         uname: Move AC_LIBOBJ invocations to module description.
6305         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6306         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6307         here...
6308         * modules/uname (configure.ac): ... to here.
6309
6310 2011-05-22  Bruno Haible  <bruno@clisp.org>
6311
6312         ttyname_r: Move AC_LIBOBJ invocations to module description.
6313         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6314         gl_PREREQ_TTYNAME_R invocations from here...
6315         * modules/ttyname_r (configure.ac): ... to here.
6316
6317 2011-05-22  Bruno Haible  <bruno@clisp.org>
6318
6319         tsearch: Move AC_LIBOBJ invocations to module description.
6320         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6321         invocations from here...
6322         * modules/tsearch (configure.ac): ... to here.
6323
6324 2011-05-22  Bruno Haible  <bruno@clisp.org>
6325
6326         towctrans: Move AC_LIBOBJ invocations to module description.
6327         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6328         AC_LIBOBJ invocation from here...
6329         * modules/towctrans (configure.ac): ... to here.
6330
6331 2011-05-22  Bruno Haible  <bruno@clisp.org>
6332
6333         tmpfile: Move AC_LIBOBJ invocations to module description.
6334         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6335         invocations from here...
6336         * modules/tmpfile (configure.ac): ... to here.
6337
6338 2011-05-22  Bruno Haible  <bruno@clisp.org>
6339
6340         times: Move AC_LIBOBJ invocations to module description.
6341         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6342         * modules/times (configure.ac): ... to here.
6343
6344 2011-05-22  Bruno Haible  <bruno@clisp.org>
6345
6346         time_r: Move AC_LIBOBJ invocations to module description.
6347         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6348         invocations from here...
6349         * modules/time_r (configure.ac): ... to here.
6350
6351 2011-05-22  Bruno Haible  <bruno@clisp.org>
6352
6353         timegm: Move AC_LIBOBJ invocations to module description.
6354         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6355         invocations from here...
6356         * modules/timegm (configure.ac): ... to here.
6357
6358 2011-05-22  Bruno Haible  <bruno@clisp.org>
6359
6360         tcgetsid: Move AC_LIBOBJ invocations to module description.
6361         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6362         and gl_PREREQ_TCGETSID invocations from here...
6363         * modules/tcgetsid (configure.ac): ... to here.
6364         (Depends-on): Update conditions.
6365
6366 2011-05-22  Bruno Haible  <bruno@clisp.org>
6367
6368         symlinkat: Move AC_LIBOBJ invocations to module description.
6369         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6370         here...
6371         * modules/symlinkat (configure.ac): ... to here.
6372
6373 2011-05-22  Bruno Haible  <bruno@clisp.org>
6374
6375         symlink: Move AC_LIBOBJ invocations to module description.
6376         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6377         here...
6378         * modules/symlink (configure.ac): ... to here.
6379
6380 2011-05-22  Bruno Haible  <bruno@clisp.org>
6381
6382         strverscmp: Move AC_LIBOBJ invocations to module description.
6383         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6385         from here...
6386         * modules/strverscmp (configure.ac): ... to here.
6387
6388 2011-05-22  Bruno Haible  <bruno@clisp.org>
6389
6390         strtok_r: Move AC_LIBOBJ invocations to module description.
6391         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6392         and gl_PREREQ_STRTOK_R invocations from here...
6393         * modules/strtok_r (configure.ac): ... to here.
6394         (Depends-on): Update conditions.
6395
6396 2011-05-22  Bruno Haible  <bruno@clisp.org>
6397
6398         strtoumax: Move AC_LIBOBJ invocations to module description.
6399         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6401         from here...
6402         * modules/strtoumax (configure.ac): ... to here.
6403
6404 2011-05-22  Bruno Haible  <bruno@clisp.org>
6405
6406         strtoimax: Move AC_LIBOBJ invocations to module description.
6407         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6409         from here...
6410         * modules/strtoimax (configure.ac): ... to here.
6411
6412 2011-05-22  Bruno Haible  <bruno@clisp.org>
6413
6414         strtoull: Move AC_LIBOBJ invocations to module description.
6415         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6416         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6417         from here...
6418         * modules/strtoull (configure.ac): ... to here.
6419
6420 2011-05-22  Bruno Haible  <bruno@clisp.org>
6421
6422         strtoll: Move AC_LIBOBJ invocations to module description.
6423         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6424         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6425         here...
6426         * modules/strtoll (configure.ac): ... to here.
6427
6428 2011-05-22  Bruno Haible  <bruno@clisp.org>
6429
6430         strtoul: Move AC_LIBOBJ invocations to module description.
6431         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6432         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6433         * modules/strtoul (configure.ac): ... to here.
6434
6435 2011-05-22  Bruno Haible  <bruno@clisp.org>
6436
6437         strtol: Move AC_LIBOBJ invocations to module description.
6438         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6439         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6440         * modules/strtol (configure.ac): ... to here.
6441
6442 2011-05-22  Bruno Haible  <bruno@clisp.org>
6443
6444         strtod: Move AC_LIBOBJ invocations to module description.
6445         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6446         invocations from here...
6447         * modules/strtod (configure.ac): ... to here.
6448
6449 2011-05-22  Bruno Haible  <bruno@clisp.org>
6450
6451         strstr*: Move AC_LIBOBJ invocations to module description.
6452         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6453         invocations from here...
6454         * modules/strstr-simple (configure.ac): ... to here.
6455         * modules/strstr (configure.ac): ... and here.
6456
6457 2011-05-22  Bruno Haible  <bruno@clisp.org>
6458
6459         strsignal: Move AC_LIBOBJ invocations to module description.
6460         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6461         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6462         * modules/strsignal (configure.ac): ... to here.
6463         (Depends-on): Update conditions.
6464
6465 2011-05-22  Bruno Haible  <bruno@clisp.org>
6466
6467         strsep: Move AC_LIBOBJ invocations to module description.
6468         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6469         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6470         here...
6471         * modules/strsep (configure.ac): ... to here.
6472
6473 2011-05-22  Bruno Haible  <bruno@clisp.org>
6474
6475         strptime: Move AC_LIBOBJ invocations to module description.
6476         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6477         gl_PREREQ_STRPTIME invocations from here...
6478         * modules/strptime (configure.ac): ... to here.
6479
6480 2011-05-22  Bruno Haible  <bruno@clisp.org>
6481
6482         strpbrk: Move AC_LIBOBJ invocations to module description.
6483         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6485         here...
6486         * modules/strpbrk (configure.ac): ... to here.
6487
6488 2011-05-22  Bruno Haible  <bruno@clisp.org>
6489
6490         strnlen: Move AC_LIBOBJ invocations to module description.
6491         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6492         invocations from here...
6493         * modules/strnlen (configure.ac): ... to here.
6494
6495 2011-05-22  Bruno Haible  <bruno@clisp.org>
6496
6497         strndup: Move AC_LIBOBJ invocations to module description.
6498         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6499         invocations from here...
6500         * modules/strndup (configure.ac): ... to here.
6501         (Depends-on): Update conditions.
6502
6503 2011-05-22  Bruno Haible  <bruno@clisp.org>
6504
6505         strncat: Move AC_LIBOBJ invocations to module description.
6506         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6507         invocations from here...
6508         * modules/strncat (configure.ac): ... to here.
6509
6510 2011-05-22  Bruno Haible  <bruno@clisp.org>
6511
6512         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6513         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6514         invocations from here...
6515         * modules/strdup (configure.ac): ... to here.
6516         * modules/strdup-posix (configure.ac): ... and here.
6517
6518 2011-05-22  Bruno Haible  <bruno@clisp.org>
6519
6520         strcspn: Move AC_LIBOBJ invocations to module description.
6521         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6523         here...
6524         * modules/strcspn (configure.ac): ... to here.
6525
6526 2011-05-22  Bruno Haible  <bruno@clisp.org>
6527
6528         strchrnul: Move AC_LIBOBJ invocations to module description.
6529         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6530         gl_PREREQ_STRCHRNUL invocations from here...
6531         * modules/strchrnul (configure.ac): ... to here.
6532
6533 2011-05-22  Bruno Haible  <bruno@clisp.org>
6534
6535         strcasestr*: Move AC_LIBOBJ invocations to module description.
6536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6537         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6538         * modules/strcasestr-simple (configure.ac): ... to here.
6539         * modules/strcasestr (configure.ac): ... and here.
6540
6541 2011-05-22  Bruno Haible  <bruno@clisp.org>
6542
6543         strcase: Move AC_LIBOBJ invocations to module description.
6544         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6545         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6546         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6547         gl_PREREQ_STRNCASECMP invocations from here...
6548         * modules/strcase (configure.ac): ... to here.
6549
6550 2011-05-22  Bruno Haible  <bruno@clisp.org>
6551
6552         stpncpy: Move AC_LIBOBJ invocations to module description.
6553         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6554         here...
6555         * modules/stpncpy (configure.ac): ... to here.
6556
6557 2011-05-22  Bruno Haible  <bruno@clisp.org>
6558
6559         stpcpy: Move AC_LIBOBJ invocations to module description.
6560         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6561         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6562         here...
6563         * modules/stpcpy (configure.ac): ... to here.
6564
6565 2011-05-21  Bruno Haible  <bruno@clisp.org>
6566
6567         stat: Move AC_LIBOBJ invocations to module description.
6568         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6569         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6570         here...
6571         * modules/stat (configure.ac): ... to here.
6572
6573 2011-05-21  Bruno Haible  <bruno@clisp.org>
6574
6575         sleep: Move AC_LIBOBJ invocations to module description.
6576         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6577         * modules/sleep (configure.ac): ... to here.
6578
6579 2011-05-21  Bruno Haible  <bruno@clisp.org>
6580
6581         signbit: Move AC_LIBOBJ invocations to module description.
6582         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6583         * modules/signbit (configure.ac): ... to here.
6584
6585 2011-05-21  Bruno Haible  <bruno@clisp.org>
6586
6587         sigprocmask: Move AC_LIBOBJ invocations to module description.
6588         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6589         gl_PREREQ_SIGPROMASK invocations from here...
6590         * modules/sigprocmask (configure.ac): ... to here.
6591
6592 2011-05-21  Bruno Haible  <bruno@clisp.org>
6593
6594         sigaction: Move AC_LIBOBJ invocations to module description.
6595         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6596         gl_PREREQ_SIGACTION invocations from here...
6597         * modules/sigaction (configure.ac): ... to here.
6598
6599 2011-05-21  Bruno Haible  <bruno@clisp.org>
6600
6601         sig2str: Move AC_LIBOBJ invocations to module description.
6602         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6604         here...
6605         * modules/sig2str (configure.ac): ... to here.
6606
6607 2011-05-21  Bruno Haible  <bruno@clisp.org>
6608
6609         setlocale: Move AC_LIBOBJ invocations to module description.
6610         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6611         gl_PREREQ_SETLOCALE invocations from here...
6612         * modules/setlocale (configure.ac): ... to here.
6613
6614 2011-05-21  Bruno Haible  <bruno@clisp.org>
6615
6616         unsetenv: Move AC_LIBOBJ invocations to module description.
6617         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6618         and gl_PREREQ_UNSETENV invocations from here...
6619         * modules/unsetenv (configure.ac): ... to here.
6620         (Depends-on): Update.
6621
6622 2011-05-21  Bruno Haible  <bruno@clisp.org>
6623
6624         setenv: Move AC_LIBOBJ invocations to module description.
6625         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6626         here...
6627         * modules/setenv (configure.ac): ... to here.
6628
6629 2011-05-21  Bruno Haible  <bruno@clisp.org>
6630
6631         selinux-h: Move AC_LIBOBJ invocations to module description.
6632         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6633         AC_LIBOBJ invocation from here...
6634         * modules/selinux-h (configure.ac): ... to here.
6635
6636 2011-05-21  Bruno Haible  <bruno@clisp.org>
6637
6638         select: Respect rules for use of AC_LIBOBJ.
6639         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6640         here...
6641         * modules/select (configure.ac): ... to here.
6642
6643 2011-05-21  Bruno Haible  <bruno@clisp.org>
6644
6645         scandir: Move AC_LIBOBJ invocations to module description.
6646         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6647         invocations from here...
6648         * modules/scandir (configure.ac): ... to here.
6649
6650 2011-05-21  Bruno Haible  <bruno@clisp.org>
6651
6652         rpmatch: Move AC_LIBOBJ invocations to module description.
6653         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6654         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6655         here...
6656         * modules/rpmatch (configure.ac): ... to here.
6657
6658 2011-05-21  Bruno Haible  <bruno@clisp.org>
6659
6660         rmdir: Respect rules for use of AC_LIBOBJ.
6661         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6662         * modules/rmdir (configure.ac): ... to here.
6663
6664 2011-05-21  Bruno Haible  <bruno@clisp.org>
6665
6666         renameat: Move AC_LIBOBJ invocations to module description.
6667         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6668         here...
6669         * modules/renameat (configure.ac): ... to here.
6670
6671 2011-05-21  Bruno Haible  <bruno@clisp.org>
6672
6673         rename: Respect rules for use of AC_LIBOBJ.
6674         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6675         here...
6676         * modules/rename (configure.ac): ... to here.
6677
6678 2011-05-21  Bruno Haible  <bruno@clisp.org>
6679
6680         remove: Move AC_LIBOBJ invocations to module description.
6681         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6682         here...
6683         * modules/remove (configure.ac): ... to here.
6684
6685 2011-05-21  Bruno Haible  <bruno@clisp.org>
6686
6687         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6688         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6689         macro.
6690         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6691         * modules/relocatable-lib (configure.ac): ... to here.
6692         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6693         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6694
6695 2011-05-21  Bruno Haible  <bruno@clisp.org>
6696
6697         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6698         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6699         here...
6700         * modules/relocatable-prog (configure.ac): ... to here.
6701
6702 2011-05-21  Bruno Haible  <bruno@clisp.org>
6703
6704         regex: Move AC_LIBOBJ invocations to module description.
6705         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6706         invocations from here...
6707         * modules/regex (configure.ac): ... to here.
6708
6709 2011-05-21  Bruno Haible  <bruno@clisp.org>
6710
6711         realloc-*: Move AC_LIBOBJ invocations to module description.
6712         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6713         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6714         AC_LIBOBJ invocations from here...
6715         * modules/realloc-gnu (configure.ac): ... to here.
6716         * modules/realloc-posix (configure.ac): ... and here.
6717
6718 2011-05-21  Bruno Haible  <bruno@clisp.org>
6719
6720         readutmp: Move AC_LIBOBJ invocations to module description.
6721         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6722         * modules/readutmp (configure.ac): ... to here.
6723
6724 2011-05-21  Bruno Haible  <bruno@clisp.org>
6725
6726         readlinkat: Move AC_LIBOBJ invocations to module description.
6727         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6728         here...
6729         * modules/readlinkat (configure.ac): ... to here.
6730
6731 2011-05-21  Bruno Haible  <bruno@clisp.org>
6732
6733         readlink: Move AC_LIBOBJ invocations to module description.
6734         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6735         gl_PREREQ_READLINK invocations from here...
6736         * modules/readlink (configure.ac): ... to here.
6737
6738 2011-05-21  Bruno Haible  <bruno@clisp.org>
6739
6740         readline: Move AC_LIBOBJ invocations to module description.
6741         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6742         gl_PREREQ_READLINE invocations from here...
6743         * modules/readline (configure.ac): ... to here.
6744
6745 2011-05-21  Bruno Haible  <bruno@clisp.org>
6746
6747         read: Move AC_LIBOBJ invocations to module description.
6748         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6749         * modules/read (configure.ac): ... to here.
6750
6751 2011-05-21  Bruno Haible  <bruno@clisp.org>
6752
6753         rawmemchr: Move AC_LIBOBJ invocations to module description.
6754         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6756         from here...
6757         * modules/rawmemchr (configure.ac): ... to here.
6758
6759 2011-05-21  Bruno Haible  <bruno@clisp.org>
6760
6761         random_r: Move AC_LIBOBJ invocations to module description.
6762         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6763         gl_PREREQ_RANDOM_R invocations from here...
6764         * modules/random_r (configure.ac): ... to here.
6765
6766 2011-05-21  Bruno Haible  <bruno@clisp.org>
6767
6768         pwrite: Move AC_LIBOBJ invocations to module description.
6769         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6770         * modules/pwrite (configure.ac): ... to here.
6771
6772 2011-05-21  Bruno Haible  <bruno@clisp.org>
6773
6774         putenv: Move AC_LIBOBJ invocations to module description.
6775         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6776         * modules/putenv (configure.ac): ... to here.
6777
6778 2011-05-21  Bruno Haible  <bruno@clisp.org>
6779
6780         login_tty: Move AC_LIBOBJ invocations to module description.
6781         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6782         * modules/login_tty (configure.ac): ... to here.
6783
6784 2011-05-21  Bruno Haible  <bruno@clisp.org>
6785
6786         openpty: Move AC_LIBOBJ invocations to module description.
6787         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6788         * modules/openpty (configure.ac): ... to here.
6789
6790 2011-05-21  Bruno Haible  <bruno@clisp.org>
6791
6792         forkpty: Move AC_LIBOBJ invocations to module description.
6793         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6794         * modules/forkpty (configure.ac): ... to here.
6795
6796 2011-05-21  Bruno Haible  <bruno@clisp.org>
6797
6798         ptsname: Move AC_LIBOBJ invocations to module description.
6799         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6800         invocations from here...
6801         * modules/ptsname (configure.ac): ... to here.
6802
6803 2011-05-21  Bruno Haible  <bruno@clisp.org>
6804
6805         pread: Move AC_LIBOBJ invocations to module description.
6806         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6807         * modules/pread (configure.ac): ... to here.
6808
6809 2011-05-21  Bruno Haible  <bruno@clisp.org>
6810
6811         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6812         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6813         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6814         * modules/posix_spawn (configure.ac): ... to here.
6815         * modules/posix_spawnp (configure.ac): ... and here.
6816
6817 2011-05-21  Bruno Haible  <bruno@clisp.org>
6818
6819         popen: Move AC_LIBOBJ invocations to module description.
6820         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6821         invocations from here...
6822         * modules/popen (configure.ac): ... to here.
6823
6824 2011-05-21  Bruno Haible  <bruno@clisp.org>
6825
6826         poll: Move AC_LIBOBJ invocations to module description.
6827         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6828         invocations from here...
6829         * modules/poll (configure.ac): ... to here.
6830
6831 2011-05-21  Bruno Haible  <bruno@clisp.org>
6832
6833         pipe-posix: Move AC_LIBOBJ invocations to module description.
6834         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6835         * modules/pipe-posix (configure.ac): ... to here.
6836
6837 2011-05-21  Bruno Haible  <bruno@clisp.org>
6838
6839         openat: Respect rules for use of AC_LIBOBJ.
6840         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6841         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6842         * modules/openat (configure.ac): ... to here.
6843
6844 2011-05-21  Bruno Haible  <bruno@clisp.org>
6845
6846         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6847         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6848         invocation from here...
6849         * modules/obstack-printf (configure.ac): ... to here.
6850         * modules/obstack-printf-posix (configure.ac): ... and here.
6851
6852 2011-05-21  Bruno Haible  <bruno@clisp.org>
6853
6854         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6855         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6856         from here...
6857         * modules/nl_langinfo (configure.ac): ... to here.
6858
6859 2011-05-21  Bruno Haible  <bruno@clisp.org>
6860
6861         nanosleep: Move AC_LIBOBJ invocations to module description.
6862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6863         gl_PREREQ_NANOSLEEP invocations from here...
6864         * modules/nanosleep (configure.ac): ... to here.
6865
6866 2011-05-21  Bruno Haible  <bruno@clisp.org>
6867
6868         mountlist: Move AC_LIBOBJ invocations to module description.
6869         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6870         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6871         * modules/mountlist (configure.ac): ... to here.
6872
6873 2011-05-21  Bruno Haible  <bruno@clisp.org>
6874
6875         mktime: Respect rules for use of AC_LIBOBJ.
6876         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
6877         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
6878         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
6879         (gl_FUNC_MKTIME_INTERNAL): ... and here...
6880         * modules/mktime (configure.ac): ... to here.
6881         * modules/mktime-internal (configure.ac): ... and here.
6882         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
6883
6884 2011-05-21  Bruno Haible  <bruno@clisp.org>
6885
6886         mkstemps: Move AC_LIBOBJ invocations to module description.
6887         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
6888         here...
6889         * modules/mkstemps (configure.ac): ... to here.
6890
6891 2011-05-21  Bruno Haible  <bruno@clisp.org>
6892
6893         mkstemp: Move AC_LIBOBJ invocations to module description.
6894         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
6895         gl_PREREQ_MKSTEMP invocations from here...
6896         * modules/mkstemp (configure.ac): ... to here.
6897
6898 2011-05-21  Bruno Haible  <bruno@clisp.org>
6899
6900         mkostemps: Move AC_LIBOBJ invocations to module description.
6901         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
6902         here...
6903         * modules/mkostemps (configure.ac): ... to here.
6904
6905 2011-05-21  Bruno Haible  <bruno@clisp.org>
6906
6907         mkostemp: Move AC_LIBOBJ invocations to module description.
6908         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
6909         gl_PREREQ_MKOSTEMP invocations from here...
6910         * modules/mkostemp (configure.ac): ... to here.
6911
6912 2011-05-21  Bruno Haible  <bruno@clisp.org>
6913
6914         mknod: Move AC_LIBOBJ invocations to module description.
6915         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6916         * modules/mknod (configure.ac): ... to here.
6917
6918 2011-05-21  Bruno Haible  <bruno@clisp.org>
6919
6920         mkfifoat: Move AC_LIBOBJ invocations to module description.
6921         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6922         here...
6923         * modules/mkfifoat (configure.ac): ... to here.
6924
6925 2011-05-21  Bruno Haible  <bruno@clisp.org>
6926
6927         mkfifo: Respect rules for use of AC_LIBOBJ.
6928         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6929         here...
6930         * modules/mkfifo (configure.ac): ... to here.
6931
6932 2011-05-21  Bruno Haible  <bruno@clisp.org>
6933
6934         mkdtemp: Move AC_LIBOBJ invocations to module description.
6935         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6936         invocations from here...
6937         * modules/mkdtemp (configure.ac): ... to here.
6938
6939 2011-05-21  Bruno Haible  <bruno@clisp.org>
6940
6941         mkdir: Move AC_LIBOBJ invocations to module description.
6942         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6943         * modules/mkdir (configure.ac): ... to here.
6944
6945 2011-05-21  Bruno Haible  <bruno@clisp.org>
6946
6947         memset: Move AC_LIBOBJ invocations to module description.
6948         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6950         here...
6951         * modules/memset (configure.ac): ... to here.
6952
6953 2011-05-21  Bruno Haible  <bruno@clisp.org>
6954
6955         memrchr: Move AC_LIBOBJ invocations to module description.
6956         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6958         here...
6959         * modules/memrchr (configure.ac): ... to here.
6960
6961 2011-05-21  Bruno Haible  <bruno@clisp.org>
6962
6963         mempcpy: Move AC_LIBOBJ invocations to module description.
6964         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6966         here...
6967         * modules/mempcpy (configure.ac): ... to here.
6968
6969 2011-05-21  Bruno Haible  <bruno@clisp.org>
6970
6971         memmove: Move AC_LIBOBJ invocations to module description.
6972         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6973         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6974         here...
6975         * modules/memmove (configure.ac): ... to here.
6976
6977 2011-05-21  Bruno Haible  <bruno@clisp.org>
6978
6979         memmem*: Move AC_LIBOBJ invocations to module description.
6980         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6981         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6982         here...
6983         (gl_FUNC_MEMMEM): ... and here...
6984         * modules/memmem-simple (configure.ac): ... to here.
6985         * modules/memmem (configure.ac): ... and here.
6986
6987 2011-05-21  Bruno Haible  <bruno@clisp.org>
6988
6989         memcpy: Move AC_LIBOBJ invocations to module description.
6990         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6992         here...
6993         * modules/memcpy (configure.ac): ... to here.
6994
6995 2011-05-21  Bruno Haible  <bruno@clisp.org>
6996
6997         memcmp: Simplify autoconf macro.
6998         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6999         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7000         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7001
7002 2011-05-21  Bruno Haible  <bruno@clisp.org>
7003
7004         memcmp: Move AC_LIBOBJ invocations to module description.
7005         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7006         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7007         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7008         * modules/memcmp (configure.ac): ... to here.
7009         (Depends-on): Update conditions.
7010
7011 2011-05-21  Bruno Haible  <bruno@clisp.org>
7012
7013         memchr: Respect rules for use of AC_LIBOBJ.
7014         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7015         invocations from here...
7016         * modules/memchr (configure.ac): ... to here.
7017
7018 2011-05-21  Bruno Haible  <bruno@clisp.org>
7019
7020         mbtowc: Move AC_LIBOBJ invocations to module description.
7021         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7022         invocations from here...
7023         * modules/mbtowc (configure.ac): ... to here.
7024
7025 2011-05-21  Bruno Haible  <bruno@clisp.org>
7026
7027         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7028         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7029         gl_PREREQ_MBSRTOWCS invocations from here...
7030         * modules/mbsrtowcs (configure.ac): ... to here.
7031
7032 2011-05-21  Bruno Haible  <bruno@clisp.org>
7033
7034         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7035         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7036         gl_PREREQ_MBSNRTOWCS invocations from here...
7037         * modules/mbsnrtowcs (configure.ac): ... to here.
7038
7039 2011-05-21  Bruno Haible  <bruno@clisp.org>
7040
7041         mbsinit: Move AC_LIBOBJ invocations to module description.
7042         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7043         invocations from here...
7044         * modules/mbsinit (configure.ac): ... to here.
7045
7046 2011-05-21  Bruno Haible  <bruno@clisp.org>
7047
7048         mbrlen: Move AC_LIBOBJ invocations to module description.
7049         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7050         invocations from here...
7051         * modules/mbrlen (configure.ac): ... to here.
7052
7053 2011-05-21  Bruno Haible  <bruno@clisp.org>
7054
7055         mbrtowc: Respect rules for use of AC_LIBOBJ.
7056         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7057         invocations from here...
7058         * modules/mbrtowc (configure.ac): ... to here.
7059
7060 2011-05-21  Bruno Haible  <bruno@clisp.org>
7061
7062         malloc-*: Move AC_LIBOBJ invocations to module description.
7063         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7064         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7065         AC_LIBOBJ invocations from here...
7066         * modules/malloc-gnu (configure.ac): ... to here.
7067         * modules/malloc-posix (configure.ac): ... and here.
7068
7069 2011-05-21  Bruno Haible  <bruno@clisp.org>
7070
7071         lstat, openat: Respect rules for use of AC_LIBOBJ.
7072         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7073         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7074         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7075         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7076         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7077         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7078         here.
7079         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7080
7081 2011-05-21  Bruno Haible  <bruno@clisp.org>
7082
7083         lseek: Move AC_LIBOBJ invocations to module description.
7084         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7085         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7086         * modules/lseek (configure.ac): ... to here.
7087
7088 2011-05-21  Bruno Haible  <bruno@clisp.org>
7089
7090         linkat: Move AC_LIBOBJ invocations to module description.
7091         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7092         here...
7093         * modules/linkat (configure.ac): ... to here.
7094
7095 2011-05-21  Bruno Haible  <bruno@clisp.org>
7096
7097         link: Respect rules for use of AC_LIBOBJ.
7098         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7099         * modules/link (configure.ac): ... to here.
7100
7101 2011-05-21  Bruno Haible  <bruno@clisp.org>
7102
7103         lchown: Move AC_LIBOBJ invocations to module description.
7104         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7105         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7106         * modules/lchown (configure.ac): ... to here.
7107
7108 2011-05-21  Bruno Haible  <bruno@clisp.org>
7109
7110         iswctype: Move AC_LIBOBJ invocations to module description.
7111         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7112         here...
7113         * modules/iswctype (configure.ac): ... to here.
7114
7115 2011-05-21  Bruno Haible  <bruno@clisp.org>
7116
7117         iswblank: Move AC_LIBOBJ invocations to module description.
7118         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7119         here...
7120         * modules/iswblank (configure.ac): ... to here.
7121
7122 2011-05-21  Bruno Haible  <bruno@clisp.org>
7123
7124         atanl: Move AC_LIBOBJ invocations to module description.
7125         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7126         * modules/atanl (configure.ac): ... to here.
7127
7128 2011-05-21  Bruno Haible  <bruno@clisp.org>
7129
7130         acosl: Move AC_LIBOBJ invocations to module description.
7131         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7132         * modules/acosl (configure.ac): ... to here.
7133
7134 2011-05-21  Bruno Haible  <bruno@clisp.org>
7135
7136         asinl: Respect rules for use of AC_LIBOBJ.
7137         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7138         * modules/asinl (configure.ac): ... to here.
7139
7140 2011-05-21  Bruno Haible  <bruno@clisp.org>
7141
7142         tanl: Move AC_LIBOBJ invocations to module description.
7143         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7144         * modules/tanl (configure.ac): ... to here.
7145
7146 2011-05-21  Bruno Haible  <bruno@clisp.org>
7147
7148         cosl: Move AC_LIBOBJ invocations to module description.
7149         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7150         * modules/cosl (configure.ac): ... to here.
7151
7152 2011-05-21  Bruno Haible  <bruno@clisp.org>
7153
7154         sinl: Move AC_LIBOBJ invocations to module description.
7155         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7156         * modules/sinl (configure.ac): ... to here.
7157
7158 2011-05-21  Bruno Haible  <bruno@clisp.org>
7159
7160         logl: Move AC_LIBOBJ invocations to module description.
7161         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7162         * modules/logl (configure.ac): ... to here.
7163
7164 2011-05-21  Bruno Haible  <bruno@clisp.org>
7165
7166         expl: Move AC_LIBOBJ invocations to module description.
7167         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7168         * modules/expl (configure.ac): ... to here.
7169
7170 2011-05-21  Bruno Haible  <bruno@clisp.org>
7171
7172         roundl: Move AC_LIBOBJ invocations to module description.
7173         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7174         * modules/roundl (configure.ac): ... to here.
7175
7176 2011-05-21  Bruno Haible  <bruno@clisp.org>
7177
7178         round: Move AC_LIBOBJ invocations to module description.
7179         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7180         * modules/round (configure.ac): ... to here.
7181
7182 2011-05-21  Bruno Haible  <bruno@clisp.org>
7183
7184         roundf: Move AC_LIBOBJ invocations to module description.
7185         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7186         * modules/roundf (configure.ac): ... to here.
7187
7188 2011-05-21  Bruno Haible  <bruno@clisp.org>
7189
7190         truncl: Move AC_LIBOBJ invocations to module description.
7191         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7192         * modules/truncl (configure.ac): ... to here.
7193
7194 2011-05-21  Bruno Haible  <bruno@clisp.org>
7195
7196         trunc: Move AC_LIBOBJ invocations to module description.
7197         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7198         * modules/trunc (configure.ac): ... to here.
7199
7200 2011-05-21  Bruno Haible  <bruno@clisp.org>
7201
7202         truncf: Move AC_LIBOBJ invocations to module description.
7203         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7204         * modules/truncf (configure.ac): ... to here.
7205
7206 2011-05-21  Bruno Haible  <bruno@clisp.org>
7207
7208         ceill: Move AC_LIBOBJ invocations to module description.
7209         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7210         * modules/ceill (configure.ac): ... to here.
7211
7212 2011-05-21  Bruno Haible  <bruno@clisp.org>
7213
7214         ceil: Move AC_LIBOBJ invocations to module description.
7215         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7216         * modules/ceil (configure.ac): ... to here.
7217
7218 2011-05-21  Bruno Haible  <bruno@clisp.org>
7219
7220         ceilf: Move AC_LIBOBJ invocations to module description.
7221         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7222         * modules/ceilf (configure.ac): ... to here.
7223
7224 2011-05-21  Bruno Haible  <bruno@clisp.org>
7225
7226         floorl: Respect rules for use of AC_LIBOBJ.
7227         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7228         * modules/floorl (configure.ac): ... to here.
7229
7230 2011-05-21  Bruno Haible  <bruno@clisp.org>
7231
7232         floor: Respect rules for use of AC_LIBOBJ.
7233         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7234         * modules/floor (configure.ac): ... to here.
7235
7236 2011-05-21  Bruno Haible  <bruno@clisp.org>
7237
7238         floorf: Move AC_LIBOBJ invocations to module description.
7239         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7240         * modules/floorf (configure.ac): ... to here.
7241
7242 2011-05-20  Bruno Haible  <bruno@clisp.org>
7243
7244         sqrtl: Respect rules for use of AC_LIBOBJ.
7245         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7246         * modules/sqrtl (configure.ac): ... to here.
7247
7248 2011-05-20  Bruno Haible  <bruno@clisp.org>
7249
7250         ldexpl: Respect rules for use of AC_LIBOBJ.
7251         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7252         * modules/ldexpl (configure.ac): ... to here.
7253
7254 2011-05-20  Bruno Haible  <bruno@clisp.org>
7255
7256         frexpl*: Respect rules for use of AC_LIBOBJ.
7257         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7258         invocation from here...
7259         * modules/frexpl (configure.ac): ... to here.
7260         * modules/frexpl-nolibm (configure.ac): ... and here.
7261
7262 2011-05-20  Bruno Haible  <bruno@clisp.org>
7263
7264         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7265         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7266         invocation from here...
7267         * modules/frexp (configure.ac): ... to here.
7268         * modules/frexp-nolibm (configure.ac): ... and here.
7269
7270 2011-05-20  Bruno Haible  <bruno@clisp.org>
7271
7272         isnan: Respect rules for use of AC_LIBOBJ.
7273         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7274         invocations here.
7275         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7276         REPLACE_ISNAN.
7277         * modules/isnand (configure.ac): Likewise.
7278         * modules/isnanl (configure.ac): Likewise.
7279
7280 2011-05-20  Bruno Haible  <bruno@clisp.org>
7281
7282         isnanl*: Respect rules for use of AC_LIBOBJ.
7283         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7284         invocation from here...
7285         * modules/isnanl (configure.ac): ... to here.
7286         * modules/isnanl-nolibm (configure.ac): ... and here.
7287
7288 2011-05-20  Bruno Haible  <bruno@clisp.org>
7289
7290         isnand*: Move AC_LIBOBJ invocations to module description.
7291         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7292         invocation from here...
7293         * modules/isnand (configure.ac): ... to here.
7294         * modules/isnand-nolibm (configure.ac): ... and here.
7295
7296 2011-05-20  Bruno Haible  <bruno@clisp.org>
7297
7298         isnanf*: Move AC_LIBOBJ invocations to module description.
7299         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7300         invocation from here...
7301         * modules/isnanf (configure.ac): ... to here.
7302         * modules/isnanf-nolibm (configure.ac): ... and here.
7303
7304 2011-05-20  Bruno Haible  <bruno@clisp.org>
7305
7306         isnan*: Separate the AC_LIBOBJ invocations.
7307         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7308         AC_LIBOBJ invocation.
7309         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7310         here.
7311         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7312         AC_LIBOBJ invocation.
7313         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7314         here.
7315         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7316         AC_LIBOBJ invocation.
7317         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7318         here.
7319         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7320
7321 2011-05-08  Bruno Haible  <bruno@clisp.org>
7322
7323         isinf: Move AC_LIBOBJ invocations to module description.
7324         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7325         * modules/isinf (configure.ac): ... to here.
7326
7327 2011-05-08  Bruno Haible  <bruno@clisp.org>
7328
7329         isfinite: Move AC_LIBOBJ invocations to module description.
7330         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7331         * modules/isfinite (configure.ac): ... to here.
7332
7333 2011-05-08  Bruno Haible  <bruno@clisp.org>
7334
7335         isblank: Move AC_LIBOBJ invocations to module description.
7336         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7337         here...
7338         * modules/isblank (configure.ac): ... to here.
7339
7340 2011-05-08  Bruno Haible  <bruno@clisp.org>
7341
7342         isapipe: Move AC_LIBOBJ invocations to module description.
7343         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7344         gl_PREREQ_ISAPIPE invocations from here...
7345         * modules/isapipe (configure.ac): ... to here.
7346         (Depends-on): Update condition.
7347
7348 2011-05-08  Bruno Haible  <bruno@clisp.org>
7349
7350         ioctl: Move AC_LIBOBJ invocations to module description.
7351         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7352         invocations from here...
7353         * modules/ioctl (configure.ac): ... to here.
7354         (Depends-on): Update condition.
7355
7356 2011-05-08  Bruno Haible  <bruno@clisp.org>
7357
7358         imaxdiv: Move AC_LIBOBJ invocations to module description.
7359         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7360         invocations from here...
7361         * modules/imaxdiv (configure.ac): ... to here.
7362
7363 2011-05-08  Bruno Haible  <bruno@clisp.org>
7364
7365         imaxabs: Move AC_LIBOBJ invocations to module description.
7366         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7367         invocations from here...
7368         * modules/imaxabs (configure.ac): ... to here.
7369
7370 2011-05-08  Bruno Haible  <bruno@clisp.org>
7371
7372         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7374         AC_LIBOBJ invocations from here...
7375         * modules/getaddrinfo (configure.ac): ... to here.
7376         (Depends-on): Add conditions.
7377
7378 2011-05-08  Bruno Haible  <bruno@clisp.org>
7379
7380         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7381         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7382         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7383         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7384         (gl_PREREQ_INET_PTON): ... from here.
7385         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7386         gl_PREREQ_INET_PTON here.
7387         (Depends-on): Update condition.
7388
7389 2011-05-08  Bruno Haible  <bruno@clisp.org>
7390
7391         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7392         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7393         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7394         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7395         (gl_PREREQ_INET_NTOP): ... from here.
7396         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7397         gl_PREREQ_INET_NTOP here.
7398         (Depends-on): Update condition.
7399
7400 2011-05-08  Bruno Haible  <bruno@clisp.org>
7401
7402         iconv_open: Move AC_LIBOBJ invocations to module description.
7403         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7404         AC_LIBOBJ invocations from here...
7405         * modules/iconv_open (configure.ac): ... to here.
7406
7407 2011-05-08  Bruno Haible  <bruno@clisp.org>
7408
7409         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7410         If module 'iconv_open' is among the main modules and module
7411         'iconv_open-utf' is among the tests dependencies, then
7412         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7413         return the special iconv_t values. Therefore iconv() and iconv_close()
7414         must support these special iconv_t values, already in lib, not only in
7415         tests.
7416         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7417         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7418         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7419         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7420         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7421         (Depends-on): Add the dependencies of iconv_open-utf.
7422         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7423         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7424         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7425
7426 2011-05-08  Bruno Haible  <bruno@clisp.org>
7427
7428         group-member: Move AC_LIBOBJ invocations to module description.
7429         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7430         gl_PREREQ_GROUP_MEMBER invocations from here...
7431         * modules/group-member (configure.ac): ... to here.
7432
7433 2011-05-08  Bruno Haible  <bruno@clisp.org>
7434
7435         grantpt: Move AC_LIBOBJ invocations to module description.
7436         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7437         invocations from here...
7438         * modules/grantpt (configure.ac): ... to here.
7439
7440 2011-05-08  Bruno Haible  <bruno@clisp.org>
7441
7442         glob: Move AC_LIBOBJ invocations to module description.
7443         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7444         from here...
7445         * modules/glob (configure.ac): ... to here.
7446
7447 2011-05-08  Bruno Haible  <bruno@clisp.org>
7448
7449         getusershell: Move AC_LIBOBJ invocations to module description.
7450         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7451         Move AC_LIBOBJ invocation from here...
7452         * modules/getusershell (configure.ac): ... to here.
7453         (Depends-on): Update condition.
7454
7455 2011-05-08  Bruno Haible  <bruno@clisp.org>
7456
7457         gettimeofday: Move AC_LIBOBJ invocations to module description.
7458         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7459         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7460         gl_PREREQ_GETTIMEOFDAY invocations from here...
7461         * modules/gettimeofday (configure.ac): ... to here.
7462
7463 2011-05-08  Bruno Haible  <bruno@clisp.org>
7464
7465         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7466         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7467         just gl_FUNC_TZSET.
7468         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7469         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7470         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7471         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7472
7473 2011-05-08  Bruno Haible  <bruno@clisp.org>
7474
7475         getsubopt: Move AC_LIBOBJ invocations to module description.
7476         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7477         gl_PREREQ_GETSUBOPT invocations from here...
7478         * modules/getsubopt (configure.ac): ... to here.
7479
7480 2011-05-08  Bruno Haible  <bruno@clisp.org>
7481
7482         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7483         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7484         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7485         * modules/getpass-gnu (configure.ac): ... to here.
7486
7487 2011-05-08  Bruno Haible  <bruno@clisp.org>
7488
7489         getpass: Move AC_LIBOBJ invocations to module description.
7490         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7491         gl_PREREQ_GETPASS invocations from here...
7492         * modules/getpass (configure.ac): ... to here.
7493
7494 2011-05-08  Bruno Haible  <bruno@clisp.org>
7495
7496         getpagesize: Move AC_LIBOBJ invocations to module description.
7497         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7498         from here...
7499         * modules/getpagesize (configure.ac): ... to here.
7500
7501 2011-05-08  Bruno Haible  <bruno@clisp.org>
7502
7503         getopt: Move AC_LIBOBJ invocations to module description.
7504         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7505         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7506         invocations from here...
7507         * modules/getopt-gnu (configure.ac): ... to here.
7508         * modules/getopt-posix (configure.ac): ... and here.
7509         (Depends-on): Update condition.
7510
7511 2011-05-08  Bruno Haible  <bruno@clisp.org>
7512
7513         getopt, argp: Respect rules for use of AC_LIBOBJ.
7514         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7515         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7516         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7517         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7518
7519 2011-05-08  Bruno Haible  <bruno@clisp.org>
7520
7521         getlogin_r: Move AC_LIBOBJ invocations to module description.
7522         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7523         gl_PREREQ_GETLOGIN_R invocations from here...
7524         * modules/getlogin_r (configure.ac): ... to here.
7525
7526 2011-05-08  Bruno Haible  <bruno@clisp.org>
7527
7528         getlogin: Move AC_LIBOBJ invocations to module description.
7529         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7530         here...
7531         * modules/getlogin (configure.ac): ... to here.
7532
7533 2011-05-08  Bruno Haible  <bruno@clisp.org>
7534
7535         getloadavg: Move AC_LIBOBJ invocations to module description.
7536         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7537         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7538         * modules/getloadavg (configure.ac): ... to here.
7539
7540 2011-05-08  Bruno Haible  <bruno@clisp.org>
7541
7542         gethrxtime: Move AC_LIBOBJ invocations to module description.
7543         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7544         LIB_GETHRXTIME from here...
7545         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7546         invocations from here...
7547         * modules/gethrxtime (configure.ac): ... to here.
7548
7549 2011-05-08  Bruno Haible  <bruno@clisp.org>
7550
7551         gethostname: Move AC_LIBOBJ invocations to module description.
7552         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7553         gl_PREREQ_GETHOSTNAME invocations from here...
7554         * modules/gethostname (configure.ac): ... to here.
7555
7556 2011-05-08  Bruno Haible  <bruno@clisp.org>
7557
7558         getgroups: Move AC_LIBOBJ invocations to module description.
7559         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7560         here...
7561         * modules/getgroups (configure.ac): ... to here.
7562
7563 2011-05-08  Bruno Haible  <bruno@clisp.org>
7564
7565         getdtablesize: Move AC_LIBOBJ invocations to module description.
7566         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7567         invocation from here...
7568         * modules/getdtablesize (configure.ac): ... to here.
7569
7570 2011-05-08  Bruno Haible  <bruno@clisp.org>
7571
7572         getdomainname: Move AC_LIBOBJ invocations to module description.
7573         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7574         gl_PREREQ_GETDOMAINNAME invocations from here...
7575         * modules/getdomainname (configure.ac): ... to here.
7576
7577 2011-05-08  Bruno Haible  <bruno@clisp.org>
7578
7579         getline: Move AC_LIBOBJ invocations to module description.
7580         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7581         invocations from here...
7582         * modules/getline (configure.ac): ... to here.
7583
7584 2011-05-08  Bruno Haible  <bruno@clisp.org>
7585
7586         getline: Simplify.
7587         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7588         It's already handled through the module dependency.
7589
7590 2011-05-08  Bruno Haible  <bruno@clisp.org>
7591
7592         getdelim: Move AC_LIBOBJ invocations to module description.
7593         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7594         and gl_PREREQ_GETDELIM invocations from here...
7595         * modules/getdelim (configure.ac): ... to here.
7596         (Depends-on): Fix condition.
7597
7598 2011-05-08  Bruno Haible  <bruno@clisp.org>
7599
7600         getcwd: Move AC_LIBOBJ invocations to module description.
7601         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7602         invocations from here...
7603         * modules/getcwd (configure.ac): ... to here.
7604
7605 2011-05-08  Bruno Haible  <bruno@clisp.org>
7606
7607         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7608         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7609         here...
7610         * modules/getcwd-lgpl (configure.ac): ... to here.
7611
7612 2011-05-07  Bruno Haible  <bruno@clisp.org>
7613
7614         crypto/gc: Move AC_LIBOBJ invocations to module description.
7615         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7616         * modules/crypto/gc (configure.ac): ... to here.
7617
7618 2011-05-07  Bruno Haible  <bruno@clisp.org>
7619
7620         fwriting: Move AC_LIBOBJ invocations to module description.
7621         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7622         here...
7623         * modules/fwriting (configure.ac): ... to here.
7624
7625 2011-05-07  Bruno Haible  <bruno@clisp.org>
7626
7627         fwritable: Move AC_LIBOBJ invocations to module description.
7628         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7629         here...
7630         * modules/fwritable (configure.ac): ... to here.
7631
7632 2011-05-07  Bruno Haible  <bruno@clisp.org>
7633
7634         futimens: Move AC_LIBOBJ invocations to module description.
7635         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7636         here...
7637         * modules/futimens (configure.ac): ... to here.
7638
7639 2011-05-07  Bruno Haible  <bruno@clisp.org>
7640
7641         ftruncate: Move AC_LIBOBJ invocations to module description.
7642         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7643         gl_PREREQ_FTRUNCATE invocations from here...
7644         * modules/ftruncate (configure.ac): ... to here.
7645
7646 2011-05-07  Bruno Haible  <bruno@clisp.org>
7647
7648         fsync: Move AC_LIBOBJ invocations to module description.
7649         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7650         invocations from here...
7651         * modules/fsync (configure.ac): ... to here.
7652
7653 2011-05-07  Bruno Haible  <bruno@clisp.org>
7654
7655         fsusage: Move AC_LIBOBJ invocations to module description.
7656         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7657         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7658         * modules/fsusage (configure.ac): ... to here.
7659
7660 2011-05-07  Bruno Haible  <bruno@clisp.org>
7661
7662         freopen: Move AC_LIBOBJ invocations to module description.
7663         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7664         invocations from here...
7665         * modules/freopen (configure.ac): ... to here.
7666
7667 2011-05-07  Bruno Haible  <bruno@clisp.org>
7668
7669         free: Move AC_LIBOBJ invocations to module description.
7670         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7671         invocations from here...
7672         * modules/free (configure.ac): ... to here.
7673
7674 2011-05-07  Bruno Haible  <bruno@clisp.org>
7675
7676         freadable: Move AC_LIBOBJ invocations to module description.
7677         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7678         here...
7679         * modules/freadable (configure.ac): ... to here.
7680
7681 2011-05-07  Bruno Haible  <bruno@clisp.org>
7682
7683         fpurge: Move AC_LIBOBJ invocations to module description.
7684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7685         invocations from here...
7686         * modules/fpurge (configure.ac): ... to here.
7687
7688 2011-05-07  Bruno Haible  <bruno@clisp.org>
7689
7690         fpending: Move AC_LIBOBJ invocations to module description.
7691         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7692         gl_FUNC_FPENDING.
7693         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7694         invocations from here...
7695         * modules/fpending (configure.ac): ... to here.
7696
7697 2011-05-07  Bruno Haible  <bruno@clisp.org>
7698
7699         fopen: Move AC_LIBOBJ invocations to module description.
7700         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7701         invocations from here...
7702         * modules/fopen (configure.ac): ... to here.
7703
7704 2011-05-07  Bruno Haible  <bruno@clisp.org>
7705
7706         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7707         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7708         gl_FUNC_FNMATCH_POSIX.
7709         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7710         invocations from here...
7711         * modules/fnmatch (configure.ac): ... to here.
7712         * modules/fnmatch-gnu (configure.ac): ... and here.
7713
7714 2011-05-07  Bruno Haible  <bruno@clisp.org>
7715
7716         flock: Move AC_LIBOBJ invocations to module description.
7717         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7718         invocations from here...
7719         * modules/flock (configure.ac): ... to here.
7720
7721 2011-05-07  Bruno Haible  <bruno@clisp.org>
7722
7723         fileblocks: Move AC_LIBOBJ invocations to module description.
7724         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7725         gl_PREREQ_FILEBLOCKS invocations from here...
7726         * modules/fileblocks (configure.ac): ... to here.
7727
7728 2011-05-06  Bruno Haible  <bruno@clisp.org>
7729
7730         fflush: Move AC_LIBOBJ invocations to module description.
7731         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7732         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7733         invocations from here...
7734         * modules/fflush (configure.ac): ... to here.
7735
7736 2011-05-06  Bruno Haible  <bruno@clisp.org>
7737
7738         fdopendir: Move AC_LIBOBJ invocations to module description.
7739         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7740         here...
7741         * modules/fdopendir (configure.ac): ... to here.
7742         (Depends-on): Improve conditions.
7743
7744 2011-05-06  Bruno Haible  <bruno@clisp.org>
7745
7746         _Exit: Move AC_LIBOBJ invocations to module description.
7747         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7748         invocations from here...
7749         * modules/_Exit (configure.ac): ... to here.
7750
7751 2011-05-21  Bruno Haible  <bruno@clisp.org>
7752
7753         euidaccess: Respect rules for use of AC_LIBOBJ.
7754         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7756         from here...
7757         * modules/euidaccess (configure.ac): ... to here.
7758
7759 2011-05-06  Bruno Haible  <bruno@clisp.org>
7760
7761         error: Move AC_LIBOBJ invocations to module description.
7762         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7763         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7764         invocations from here...
7765         * modules/error (configure.ac): ... to here.
7766
7767 2011-05-06  Bruno Haible  <bruno@clisp.org>
7768
7769         duplocale: Move AC_LIBOBJ invocations to module description.
7770         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7771         gl_PREREQ_DUPLOCALE invocations from here...
7772         * modules/duplocale (configure.ac): ... to here.
7773
7774 2011-05-05  Bruno Haible  <bruno@clisp.org>
7775
7776         dirfd: Move AC_LIBOBJ invocations to module description.
7777         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7778         gl_FUNC_DIRFD.
7779         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7780         here...
7781         * modules/dirfd (configure.ac): ... to here.
7782         (Depends-on): Fix condition.
7783
7784 2011-05-05  Bruno Haible  <bruno@clisp.org>
7785
7786         chown: Respect rules for use of AC_LIBOBJ.
7787         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7788         * modules/chown (configure.ac): ... to here.
7789
7790 2011-05-05  Bruno Haible  <bruno@clisp.org>
7791
7792         chdir-long: Move AC_LIBOBJ invocations to module description.
7793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7794         gl_PREREQ_CHDIR_LONG invocations from here...
7795         * modules/chdir-long (configure.ac): ... to here.
7796
7797 2011-05-05  Bruno Haible  <bruno@clisp.org>
7798
7799         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7800         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7801         from here...
7802         * modules/canonicalize-lgpl (configure.ac): ... to here.
7803
7804 2011-05-05  Bruno Haible  <bruno@clisp.org>
7805
7806         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7807         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7808         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7809         REPLACE_CALLOC.
7810         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7811         * modules/calloc-gnu (configure.ac): Likewise.
7812
7813 2011-05-05  Bruno Haible  <bruno@clisp.org>
7814
7815         btowc: Move AC_LIBOBJ invocations to module description.
7816         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7817         invocations from here...
7818         * modules/btowc (configure.ac): ... to here.
7819
7820 2011-05-21  Bruno Haible  <bruno@clisp.org>
7821
7822         atexit: Move AC_LIBOBJ invocations to module description.
7823         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7825         here...
7826         * modules/atexit (configure.ac): ... to here.
7827
7828 2011-05-05  Bruno Haible  <bruno@clisp.org>
7829
7830         atoll: Move AC_LIBOBJ invocations to module description.
7831         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7832         invocations from here...
7833         * modules/atoll (configure.ac): ... to here.
7834
7835 2011-05-05  Bruno Haible  <bruno@clisp.org>
7836
7837         argz: Move AC_LIBOBJ invocations to module description.
7838         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7839         * modules/argz (configure.ac): ... to here.
7840
7841 2011-05-05  Bruno Haible  <bruno@clisp.org>
7842
7843         alphasort: Move AC_LIBOBJ invocations to module description.
7844         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7845         gl_PREREQ_ALPHASORT invocations from here...
7846         * modules/alphasort (configure.ac): ... to here.
7847
7848 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7849
7850         verify: new macro verify_expr; verify_true deprecated
7851         * NEWS: Mention this.
7852         * doc/verify.texi (Compile-time Assertions): Document this.
7853         * lib/verify.h (verify_true): Deprecate.
7854         (verify_expr): New macro.
7855         * tests/test-verify.c (function): Test verify_expr.
7856
7857 2011-06-14  Jim Meyering  <meyering@redhat.com>
7858
7859         init.sh: give more portable redirection-related advice in a comment
7860         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7861         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7862         for lots of discussion.  Stefano Lattarini suggested the solution
7863         of putting "9>&2" after the command.  Reported by Bruno Haible.
7864
7865 2011-06-13  Bruno Haible  <bruno@clisp.org>
7866
7867         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7868         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7869         'none'.
7870
7871 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7872
7873         ftoastr: use strtof only if HAVE_STRTOF
7874         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
7875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
7876         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
7877         * modules/ftoastr (configure.ac): Check for strtof.
7878
7879 2011-06-13  Bruno Haible  <bruno@clisp.org>
7880
7881         gnulib-tool: Addendum to 2011-06-08 commit.
7882         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
7883         and --witness-c-macro have been given, augment AM_CPPFLAGS.
7884
7885 2011-06-13  Bruno Haible  <bruno@clisp.org>
7886
7887         fseeko: Provide a non-inline replacement of fseek().
7888         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
7889         * modules/fseeko (Depends-on): Add fseek.
7890         * modules/fseek (License): Change to LGPLv2+.
7891
7892 2011-06-13  Bruno Haible  <bruno@clisp.org>
7893
7894         ftello: Provide a non-inline replacement of ftell().
7895         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
7896         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
7897         not have ftello() (such as on mingw).
7898         * modules/ftello (Depends-on): Add ftell.
7899         * modules/ftell (License): Change to LGPLv2+.
7900
7901 2011-05-07  Bruno Haible  <bruno@clisp.org>
7902
7903         ftell: Move AC_LIBOBJ invocations to module description.
7904         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
7905         * modules/ftell (configure.ac): ... to here.
7906
7907 2011-05-07  Bruno Haible  <bruno@clisp.org>
7908
7909         ftello: Respect rules for use of AC_LIBOBJ.
7910         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
7911         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7912         here...
7913         * modules/ftello (configure.ac): ... to here.
7914
7915 2011-05-07  Bruno Haible  <bruno@clisp.org>
7916
7917         fseeko: Simplify.
7918         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7919         (gl_FUNC_FSEEKO): Inline it here.
7920
7921 2011-05-07  Bruno Haible  <bruno@clisp.org>
7922
7923         fseek: Move AC_LIBOBJ invocations to module description.
7924         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7925         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7926         * modules/fseek (configure.ac): ... to here.
7927
7928 2011-05-07  Bruno Haible  <bruno@clisp.org>
7929
7930         fseek: Respect rules for use of AC_LIBOBJ.
7931         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7932         here...
7933         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7934
7935 2011-05-07  Bruno Haible  <bruno@clisp.org>
7936
7937         fseeko: Respect rules for use of AC_LIBOBJ.
7938         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7939         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7940         here...
7941         * modules/fseeko (configure.ac): ... to here.
7942
7943 2011-06-13  Bruno Haible  <bruno@clisp.org>
7944
7945         gnulib-tool: Allow comments in the 'Depends-on' section.
7946         * doc/gnulib.texi (Module description): Mention comment syntax in the
7947         Depends-on section.
7948         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7949
7950 2011-06-13  Bruno Haible  <bruno@clisp.org>
7951
7952         file-set.h: guard __attibute__ use, now that it's not always defined
7953         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7954         versions that support it.  This fixes a coreutils build failure with
7955         the vendor cc on HP-UX 11.31.
7956
7957 2011-06-12  Bruno Haible  <bruno@clisp.org>
7958
7959         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7960         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7961         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7962         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7963         (acl, aclsort): New declarations.
7964         (aclv_nontrivial): New declaration.
7965         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7966         (file_has_acl): Read also the second kind of HP-UX ACLs.
7967         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7968         kind of HP-UX ACLs if the first kind fails.
7969         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7970         second kind of HP-UX ACLs.
7971         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7972         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7973         agree.
7974         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7975         hpuxjfs.
7976         Handle hpuxjfs.
7977         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7978         hpuxjfs.
7979         Handle hpuxjfs.
7980         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7981         (func_test_same_acls): Use both lsacl and getacl.
7982         Handle hpuxjfs.
7983         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7984         (func_test_same_acls): Use both lsacl and getacl.
7985         Handle hpuxjfs.
7986
7987 2011-06-12  Bruno Haible  <bruno@clisp.org>
7988
7989         acl: Complete the 2010-08-10 fix.
7990         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7991         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7992         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7993         explicitly.
7994         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7995         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7996
7997 2011-06-12  Bruno Haible  <bruno@clisp.org>
7998
7999         spawn-pipe tests: Comments.
8000         * tests/test-spawn-pipe-child.c (main): Update comment.
8001         Reported by James Youngman <jay@gnu.org>.
8002
8003 2011-06-11  James Youngman  <jay@gnu.org>
8004
8005         New module 'stat-size'.
8006         * modules/stat-size: New module.  Provides macros for accessing
8007         file size information in instances of struct stat.  Depends on the
8008         fileblocks module because it calls st_blocks.
8009         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8010         * doc/gnulib.texi: Include stat-size.texi.
8011         * doc/stat-size.texi: Documentation for this module.
8012         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8013         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8014         AC_STRUCT_ST_BLOCKS.
8015
8016 2011-06-09  Bruno Haible  <bruno@clisp.org>
8017
8018         thread: Support pthreads-win32.
8019         * lib/glthread/thread.h (gl_thread_self): Define differently on
8020         pthreads-win32.
8021         (gl_null_thread): New declaration.
8022         (gl_thread_self_pointer): New macro.
8023         * lib/glthread/thread.c (gl_null_thread): New constant.
8024         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8025         gl_thread_self.
8026         * tests/test-tls.c: Likewise.
8027         Suggested by Paul Eggert. Reported by Eric Blake.
8028
8029 2011-06-09  Bruno Haible  <bruno@clisp.org>
8030
8031         thread: Fix confusion between NULL and 0.
8032         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8033         Reported by Paul Eggert.
8034
8035 2011-06-09  Bruno Haible  <bruno@clisp.org>
8036
8037         spawn-pipe tests: Avoid test failure on HP-UX 11.
8038         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8039         is closed.
8040
8041 2011-06-09  Bruno Haible  <bruno@clisp.org>
8042
8043         acl tests: Fix compilation error on HP-UX 11.
8044         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8045
8046 2011-06-09  Bruno Haible  <bruno@clisp.org>
8047
8048         rmdir: Avoid test failure on HP-UX 10.20.
8049         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8050         EEXIST.
8051
8052 2011-06-08  Eric Blake  <eblake@redhat.com>
8053
8054         perror: fix test on mingw
8055         * modules/perror-tests (Depends-on): Add dup2.
8056
8057         strerror_r-posix: fix on MacOS
8058         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8060         logic bug.
8061         * lib/strerror_r.c (strerror_r): Fix the bug.
8062         * lib/strerror.c (strerror): Likewise.
8063         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8064         problem.
8065         * doc/posix-functions/strerror.texi (strerror): Likewise.
8066         * doc/posix-functions/perror.texi (perror): Likewise.
8067         * tests/test-strerror.c (main): Enhance test.
8068         * tests/test-strerror_r.c (main): Likewise.
8069
8070 2011-06-08  Bruno Haible  <bruno@clisp.org>
8071
8072         gnulib-tool: Better isolation between different gnulib-tool invocations.
8073         * gnulib-tool: New option --witness-c-macro.
8074         (witness_c_macro): New variable.
8075         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8076         AM_CPPFLAGS define it as a C macro.
8077         (func_emit_tests_Makefile_am): Likewise.
8078         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8079         read it from there.
8080         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8081         m4_define, not AC_DEFUN.
8082         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8083         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8084         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8085         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8086         s|...|...|, to substitute the values of the GNULIB_* module indicator
8087         variables.
8088         * modules/dirent (Makefile.am): Likewise.
8089         * modules/fcntl-h (Makefile.am): Likewise.
8090         * modules/iconv-h (Makefile.am): Likewise.
8091         * modules/langinfo (Makefile.am): Likewise.
8092         * modules/locale (Makefile.am): Likewise.
8093         * modules/math (Makefile.am): Likewise.
8094         * modules/netdb (Makefile.am): Likewise.
8095         * modules/poll-h (Makefile.am): Likewise.
8096         * modules/pty (Makefile.am): Likewise.
8097         * modules/search (Makefile.am): Likewise.
8098         * modules/signal (Makefile.am): Likewise.
8099         * modules/spawn (Makefile.am): Likewise.
8100         * modules/stdio (Makefile.am): Likewise.
8101         * modules/stdlib (Makefile.am): Likewise.
8102         * modules/string (Makefile.am): Likewise.
8103         * modules/sys_ioctl (Makefile.am): Likewise.
8104         * modules/sys_select (Makefile.am): Likewise.
8105         * modules/sys_socket (Makefile.am): Likewise.
8106         * modules/sys_stat (Makefile.am): Likewise.
8107         * modules/sys_times (Makefile.am): Likewise.
8108         * modules/sys_utsname (Makefile.am): Likewise.
8109         * modules/sys_wait (Makefile.am): Likewise.
8110         * modules/termios (Makefile.am): Likewise.
8111         * modules/time (Makefile.am): Likewise.
8112         * modules/unistd (Makefile.am): Likewise.
8113         * modules/wchar (Makefile.am): Likewise.
8114
8115 2011-06-08  Eric Blake  <eblake@redhat.com>
8116
8117         strerror: simplify replacement
8118         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8119         * modules/strerror (configure.ac): No prereqs needed here...
8120         * modules/strerror-override (configure.ac): ...but this needs it.
8121         (Files): Add file for needed prereq macro.
8122
8123 2011-06-08  Bruno Haible  <bruno@clisp.org>
8124
8125         strerror_r-posix: Tweaks.
8126         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8127         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8128         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8129         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8130         (gl_FUNC_STRERROR_R): ... to here.
8131         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8132
8133 2011-06-07  Eric Blake  <eblake@redhat.com>
8134
8135         perror: document fixed bugs
8136         * doc/posix-functions/perror.texi (perror): Document recent
8137         patches.
8138
8139 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8140
8141         stat-time: get_stat_birthtime failure is better-defined
8142         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8143         return a timestamp whose tv_sec and tv_nsec values are both -1.
8144         Previously, the spec said only that the tv_nsec value was negative.
8145         This upward-compatible change simplifies GNU tar a bit.
8146
8147 2011-06-07  Eric Blake  <eblake@redhat.com>
8148
8149         strerror_r-posix: work around cygwin 1.7.9
8150         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8151         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8152         bug without replacing strerror_r.
8153         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8154         strerror_r is buggy, but without requiring strerror_r compilation.
8155         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8156
8157         test-perror: relax test to ignore cygwin bug
8158         * tests/test-perror2.c (main): Relax test on requiring detection
8159         of stream errors, and use unbuffered stream.
8160         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8161         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8162         * doc/posix-functions/fputc.texi (fputc): Likewise.
8163         * doc/posix-functions/fputs.texi (fputs): Likewise.
8164         * doc/posix-functions/fputws.texi (fputws): Likewise.
8165         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8166         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8167         * doc/posix-functions/getopt.texi (getopt): Likewise.
8168         * doc/posix-functions/perror.texi (perror): Likewise.
8169         * doc/posix-functions/printf.texi (printf): Likewise.
8170         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8171         * doc/posix-functions/psignal.texi (psignal): Likewise.
8172         * doc/posix-functions/putc.texi (putc): Likewise.
8173         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8174         Likewise.
8175         * doc/posix-functions/putchar.texi (putchar): Likewise.
8176         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8177         Likewise.
8178         * doc/posix-functions/puts.texi (puts): Likewise.
8179         * doc/posix-functions/putwc.texi (putwc): Likewise.
8180         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8181         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8182         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8183         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8184         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8185         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8186         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8187         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8188
8189 2011-05-22  Bruno Haible  <bruno@clisp.org>
8190
8191         strerror: Move AC_LIBOBJ invocations to module description.
8192         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8193         gl_PREREQ_STRERROR invocations from here...
8194         * modules/strerror (configure.ac): ... to here.
8195
8196 2011-05-21  Bruno Haible  <bruno@clisp.org>
8197
8198         perror: Use common idiom.
8199         * modules/perror (configure.ac): Reorder statements.
8200
8201 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8202
8203         tests: fix usage message in 'mktempd_'
8204         * tests/init.sh (mktempd_): In the usage message, use literal
8205         'mktempd_', not '$ME' (which is even undefined), as the name of
8206         the subroutine.
8207
8208 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8209
8210         tests init: new function 'fatal_', for hard errors
8211         Before this patch, the only way offered by tests/init.sh to
8212         properly signal a hard error was the `framework_failure_'
8213         function.  But the error message issued by that function,
8214         as its name would suggest, refers to a set-up failure in the
8215         testsuite, while hard errors can obviously also be due to
8216         other reasons.  The best way to fix this inconsistency is to
8217         introduce a new function with a more general error message.
8218         * tests/init.sh (fatal_): New function.
8219
8220 2011-06-06  Eric Blake  <eblake@redhat.com>
8221
8222         canonicalize-lgpl: use common idiom
8223         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8224         over newer POSIX -Rf.
8225         Reported by Bruno Haible.
8226
8227         canonicalize-lgpl: work around AIX realpath bug
8228         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8229         * doc/posix-functions/realpath.texi (realpath): Document it.
8230         Reported by Bruno Haible.
8231
8232         strerror: work around FreeBSD bug
8233         * lib/strerror.c (strerror): Special case 0.
8234         Reported by Bruno Haible.
8235
8236         strerror-override: avoid bloating errno module
8237         * modules/errno (Files, configure.ac): Move replacement strings...
8238         * modules/strerror-override: ...to new module.
8239         * modules/strerror (Depends-on): Add strerror-override.
8240         * modules/strerror_r-posix (Depends-on): Likewise.
8241         * MODULES.html.sh: Document new module.
8242         Reported by Bruno Haible.
8243
8244 2011-06-06  Bruno Haible  <bruno@clisp.org>
8245
8246         spawn-pipe tests: Rename program.
8247         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8248         * tests/test-spawn-pipe-child.c: Update comment.
8249         * tests/test-spawn-pipe.sh: Update.
8250         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8251
8252         spawn-pipe tests: Link the child program only against libc.
8253         * tests/test-spawn-pipe-child.c: New file, extracted from
8254         tests/test-spawn-pipe.c.
8255         (main): Expect only one argument.
8256         (is_open): New function, copied from tests/test-pipe.c.
8257         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8258         (child_main): Remove function.
8259         (test_pipe): Pass only one argument to the child program.
8260         (main): Remove child process code. Expect the child program's name as
8261         first argument.
8262         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8263         argument.
8264         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8265         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8266         test-spawn-pipe-child against no libraries.
8267
8268 2011-06-06  Bruno Haible  <bruno@clisp.org>
8269
8270         careadlinkat: Avoid mismatch between ssize_t and int.
8271         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8272         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8273
8274 2011-06-06  Jim Meyering  <meyering@redhat.com>
8275
8276         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8277         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8278         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8279
8280 2011-06-05  Bruno Haible  <bruno@clisp.org>
8281
8282         ansi-c++-opt: Interoperability with libtool.
8283         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8284         set the variable to "no", not to ":".
8285         * NEWS: Mention the change.
8286
8287 2011-06-05  Bruno Haible  <bruno@clisp.org>
8288
8289         acl: Fix test failure on AIX 7.
8290         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8291         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8292
8293 2011-06-05  Bruno Haible  <bruno@clisp.org>
8294
8295         pipe-filter-ii: Fix test failure on AIX and IRIX.
8296         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8297         with EAGAIN, retry with a smaller buffer size.
8298
8299 2011-06-05  Bruno Haible  <bruno@clisp.org>
8300
8301         localename: Fix link dependencies.
8302         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8303         * modules/localename-tests (Makefile.am): Link test-localename with
8304         $(LIBTHREAD).
8305
8306 2011-06-05  Bruno Haible  <bruno@clisp.org>
8307
8308         error: Avoid gcc warning.
8309         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8310
8311 2011-06-05  Bruno Haible  <bruno@clisp.org>
8312
8313         unsetenv: Avoid gcc warning.
8314         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8315
8316 2011-06-05  Bruno Haible  <bruno@clisp.org>
8317
8318         setenv: Avoid gcc warning.
8319         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8320
8321 2011-06-05  Bruno Haible  <bruno@clisp.org>
8322
8323         sys_select: Ensure memset is declared also on AIX 7.
8324         * lib/sys_select.in.h: Include <string.h> also on AIX.
8325         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8326         self-contained also on AIX 7.1.
8327
8328 2011-06-04  Jim Meyering  <meyering@redhat.com>
8329
8330         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8331         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8332         function name, "error".
8333         (_gl_translatable_diag_func_re): New configurable variable.
8334
8335 2011-06-04  Bruno Haible  <bruno@clisp.org>
8336
8337         getopt: Avoid gcc warning.
8338         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8339
8340 2011-06-04  Bruno Haible  <bruno@clisp.org>
8341
8342         strerror_r: Fix comments.
8343         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8344         commit.
8345
8346 2011-06-04  Bruno Haible  <bruno@clisp.org>
8347
8348         perror: Fix compilation error.
8349         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8350         Undefine fprintf, not sprintf.
8351         * modules/perror (Depends-on): Remove intprops, verify.
8352
8353 2011-06-04  Bruno Haible  <bruno@clisp.org>
8354
8355         setlocale: Enable replacement on Cygwin 1.5.
8356         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8357         Cygwin 1.5.x.
8358         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8359         LC_CTYPE category also exists on Cygwin 1.5.x.
8360
8361 2011-06-04  Bruno Haible  <bruno@clisp.org>
8362
8363         strerror-override: Don't disable symbol renamings.
8364         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8365         * lib/strerror-override.c: Include config.h.
8366         (strerror_override): Don't undefine.
8367
8368 2011-06-03  Bruno Haible  <bruno@clisp.org>
8369
8370         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8371         * lib/localename.h: Update copyright header.
8372         * lib/localename.c: Likewise.
8373         * lib/relocatable.h: Likewise.
8374         * lib/relocatable.c: Likewise.
8375
8376 2011-06-02  Bruno Haible  <bruno@clisp.org>
8377
8378         doc: Fix a module name.
8379         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8380
8381 2011-06-02  Bruno Haible  <bruno@clisp.org>
8382
8383         pipe2: Remove dependency on 'nonblocking' module.
8384         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8385         O_NONBLOCK is defined by gnulib.
8386         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8387         is zero.
8388         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8389         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8390         defined by gnulib.
8391         (get_nonblocking_flag): New function.
8392         (main): Test O_NONBLOCK flag only if it is nonzero.
8393         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8394
8395 2011-06-03  Jim Meyering  <meyering@redhat.com>
8396
8397         maint: three new prohibit-header-without-use rules
8398         Prohibit use of cloexec.h, posixver.h, same.h without use.
8399         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8400         (sc_prohibit_posixver_without_use): Likewise.
8401         (sc_prohibit_same_without_use): Likewise.
8402
8403 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8404
8405         allocator: 'die' routine is now given requested size
8406         * lib/allocator.h (struct allocator.die): New size arg.
8407         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8408         If the actual problem is an ssize_t limitation, not a size_t or
8409         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8410
8411 2011-06-01  Eric Blake  <eblake@redhat.com>
8412
8413         strerror: drop strerror_r dependency
8414         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8415         * lib/strerror-override.c (strerror_override): ...to new file.
8416         * lib/strerror-override.h: Add prototype.
8417         * lib/strerror-impl.h: Delete.
8418         * lib/strerror.c (strerror): New implementation.
8419         * modules/errno (Files): Add new files.
8420         (configure.ac): Compile new file as appropriate.
8421         * modules/strerror (Files): Drop unused file.
8422         (Depends-on): Drop strerror_r-posix.
8423         * MODULES.html.sh: Document strerror_r-posix.
8424         Requested by Sam Steingold.
8425
8426         perror: call strerror_r directly
8427         * modules/perror (Files): Drop strerror-impl.h.
8428         * lib/perror.c (perror): Use our own stack buffer, rather than
8429         calling a wrapper that uses static storage.
8430         * doc/posix-functions/perror.texi (perror): Document a limitation
8431         of our replacement.
8432
8433         strerror_r: fix includes for FreeBSD
8434         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8435         since we use abort on some platforms.
8436         Reported by Matthias Bolte.
8437
8438 2011-05-31  Bruno Haible  <bruno@clisp.org>
8439
8440         Fix link errors in tests: openat-die uses gettext-h.
8441         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8442         against $(LIBINTL).
8443         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8444         against $(LIBINTL).
8445         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8446         $(LIBINTL).
8447         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8448         against $(LIBINTL).
8449         * modules/linkat-tests (Makefile.am): Link test-linkat against
8450         $(LIBINTL).
8451         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8452         $(LIBINTL).
8453         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8454         against $(LIBINTL).
8455         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8456         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8457         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8458         $(LIBINTL).
8459         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8460         $(LIBINTL).
8461         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8462         $(LIBINTL).
8463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8464
8465 2011-05-31  Bruno Haible  <bruno@clisp.org>
8466
8467         Fix link errors in tests: wait-process uses gettext-h.
8468         * modules/nonblocking-pipe-tests (Makefile.am): Set
8469         test_nonblocking_pipe_main_LDADD.
8470         * modules/nonblocking-socket-tests (Makefile.am): Link
8471         test-nonblocking-socket-main against $(LIBINTL).
8472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8473
8474 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8475
8476         assert-h: work around 'verify' incompatibility
8477         * lib/verify.h: Use @...@ directives, not ifdef.
8478         * modules/assert-h (assert.h): Implement the directives.
8479         (assert.h): Substitute the symbol-prefix more consistently.
8480
8481 2011-05-29  Jim Meyering  <meyering@redhat.com>
8482
8483         trim: remove three superfluous assignments
8484         * lib/trim.c (trim2): Remove three superfluous assignments
8485         and correct brace positioning.
8486
8487 2011-05-29  Bruno Haible  <bruno@clisp.org>
8488
8489         wctype-h: Avoid namespace pollution on Solaris 2.6.
8490         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8491         identifiers.
8492         * doc/posix-headers/wctype.texi: Mention the problem.
8493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8494
8495 2011-05-28  Jim Meyering  <meyering@redhat.com>
8496
8497         parse-datetime.y: accommodate -Wstrict-overflow
8498         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8499         placate -Wstrict-overflow.
8500
8501         trim: avoid a warning from -O2 -Wstrict-overflow
8502         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8503
8504 2011-05-29  Bruno Haible  <bruno@clisp.org>
8505
8506         gnulib-tool: Fix bug in yesterday's commit.
8507         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8508         twice.
8509
8510 2011-05-29  Bruno Haible  <bruno@clisp.org>
8511
8512         Allow multiple gnulib generated include files to be combined.
8513         * gnulib-tool (func_compute_include_guard_prefix): New function.
8514         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8515         ${gl_include_guard_prefix} references.
8516         (func_import, func_create_testdir): Invoke
8517         func_compute_include_guard_prefix.
8518         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8519         * lib/ctype.in.h: Likewise.
8520         * lib/dirent.in.h: Likewise.
8521         * lib/errno.in.h: Likewise.
8522         * lib/fcntl.in.h: Likewise.
8523         * lib/float.in.h: Likewise.
8524         * lib/getopt.in.h: Likewise.
8525         * lib/iconv.in.h: Likewise.
8526         * lib/langinfo.in.h: Likewise.
8527         * lib/locale.in.h: Likewise.
8528         * lib/math.in.h: Likewise.
8529         * lib/netdb.in.h: Likewise.
8530         * lib/netinet_in.in.h: Likewise.
8531         * lib/poll.in.h: Likewise.
8532         * lib/pthread.in.h: Likewise.
8533         * lib/pty.in.h: Likewise.
8534         * lib/sched.in.h: Likewise.
8535         * lib/se-selinux.in.h: Likewise.
8536         * lib/search.in.h: Likewise.
8537         * lib/signal.in.h: Likewise.
8538         * lib/spawn.in.h: Likewise.
8539         * lib/stdarg.in.h: Likewise.
8540         * lib/stddef.in.h: Likewise.
8541         * lib/stdint.in.h: Likewise.
8542         * lib/stdio.in.h: Likewise.
8543         * lib/stdlib.in.h: Likewise.
8544         * lib/string.in.h: Likewise.
8545         * lib/strings.in.h: Likewise.
8546         * lib/sys_file.in.h: Likewise.
8547         * lib/sys_ioctl.in.h: Likewise.
8548         * lib/sys_select.in.h: Likewise.
8549         * lib/sys_socket.in.h: Likewise.
8550         * lib/sys_stat.in.h: Likewise.
8551         * lib/sys_time.in.h: Likewise.
8552         * lib/sys_times.in.h: Likewise.
8553         * lib/sys_uio.in.h: Likewise.
8554         * lib/sys_utsname.in.h: Likewise.
8555         * lib/sys_wait.in.h: Likewise.
8556         * lib/sysexits.in.h: Likewise.
8557         * lib/termios.in.h: Likewise.
8558         * lib/time.in.h: Likewise.
8559         * lib/unistd.in.h: Likewise.
8560         * lib/wchar.in.h: Likewise.
8561         * lib/wctype.in.h: Likewise.
8562         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8563         * modules/ctype (Makefile.am): Likewise.
8564         * modules/dirent (Makefile.am): Likewise.
8565         * modules/errno (Makefile.am): Likewise.
8566         * modules/fcntl-h (Makefile.am): Likewise.
8567         * modules/float (Makefile.am): Likewise.
8568         * modules/getopt-posix (Makefile.am): Likewise.
8569         * modules/iconv-h (Makefile.am): Likewise.
8570         * modules/langinfo (Makefile.am): Likewise.
8571         * modules/locale (Makefile.am): Likewise.
8572         * modules/math (Makefile.am): Likewise.
8573         * modules/netdb (Makefile.am): Likewise.
8574         * modules/netinet_in (Makefile.am): Likewise.
8575         * modules/poll-h (Makefile.am): Likewise.
8576         * modules/pthread (Makefile.am): Likewise.
8577         * modules/pty (Makefile.am): Likewise.
8578         * modules/sched (Makefile.am): Likewise.
8579         * modules/search (Makefile.am): Likewise.
8580         * modules/selinux-h (Makefile.am): Likewise.
8581         * modules/signal (Makefile.am): Likewise.
8582         * modules/spawn (Makefile.am): Likewise.
8583         * modules/stdarg (Makefile.am): Likewise.
8584         * modules/stddef (Makefile.am): Likewise.
8585         * modules/stdint (Makefile.am): Likewise.
8586         * modules/stdio (Makefile.am): Likewise.
8587         * modules/stdlib (Makefile.am): Likewise.
8588         * modules/string (Makefile.am): Likewise.
8589         * modules/strings (Makefile.am): Likewise.
8590         * modules/sys_file (Makefile.am): Likewise.
8591         * modules/sys_ioctl (Makefile.am): Likewise.
8592         * modules/sys_select (Makefile.am): Likewise.
8593         * modules/sys_socket (Makefile.am): Likewise.
8594         * modules/sys_stat (Makefile.am): Likewise.
8595         * modules/sys_time (Makefile.am): Likewise.
8596         * modules/sys_times (Makefile.am): Likewise.
8597         * modules/sys_uio (Makefile.am): Likewise.
8598         * modules/sys_utsname (Makefile.am): Likewise.
8599         * modules/sys_wait (Makefile.am): Likewise.
8600         * modules/sysexits (Makefile.am): Likewise.
8601         * modules/termios (Makefile.am): Likewise.
8602         * modules/time (Makefile.am): Likewise.
8603         * modules/unistd (Makefile.am): Likewise.
8604         * modules/wchar (Makefile.am): Likewise.
8605         * modules/wctype-h (Makefile.am): Likewise.
8606         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8607
8608 2011-05-29  Bruno Haible  <bruno@clisp.org>
8609
8610         assert-h: Allow multiple gnulib generated replacements to coexist.
8611         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8612
8613 2011-05-29  Bruno Haible  <bruno@clisp.org>
8614
8615         argp: Allow coexistence with strerror_r-posix module.
8616         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8617         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8618         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8619         not the glibc signature.
8620
8621 2011-05-28  Bruno Haible  <bruno@clisp.org>
8622
8623         gnulib-tool: Alternative structure of testdirs, similar to --import.
8624         * gnulib-tool: New option --single-configure.
8625         (func_usage): Document it.
8626         (single_configure): New variable.
8627         (func_modules_transitive_closure_separately,
8628         func_modules_transitive_closure_separately,
8629         func_determine_use_libtests, func_modules_add_dummy_separately,
8630         func_modules_to_filelist_separately): New functions, extracted from
8631         func_import.
8632         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8633         (func_import): Use the new functions.
8634         (func_create_testdir): Set final_modules. Handle $single_configure =
8635         true case.
8636
8637 2011-05-28  Bruno Haible  <bruno@clisp.org>
8638
8639         getloadavg: Remove an unreliable safety check.
8640         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8641         getloadavg.c is in place.
8642         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8643         Reported by Sam Steingold <sds@gnu.org>.
8644
8645 2011-05-28  Bruno Haible  <bruno@clisp.org>
8646
8647         doc: Cleanup yet another file produced by texinfo.tex.
8648         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8649
8650 2011-05-28  Bruno Haible  <bruno@clisp.org>
8651
8652         Finish the conditional dependencies mechanism.
8653         * gnulib-tool: New option --no-conditional-dependencies.
8654         (func_usage): Document it. Don't mark --conditional-dependencies as
8655         experimental.
8656         (cond_dependencies): The possible values can now be true, false, empty.
8657         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8658         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8659         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8660
8661 2011-05-28  Bruno Haible  <bruno@clisp.org>
8662
8663         doc: Use a recent texinfo.tex.
8664         * doc/Makefile (tex_opts): New variable.
8665         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8666
8667 2011-05-28  Jim Meyering  <meyering@redhat.com>
8668
8669         intprops.h: adjust comment to match code change
8670         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8671         only once, it *may* have side effects.  Also fix an unrelated typo.
8672         (_GL_INT_SIGNED): Likewise.
8673
8674 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8675
8676         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8677
8678 2011-05-26  Bruno Haible  <bruno@clisp.org>
8679
8680         mbsrchr: Avoid collision with system function on Interix.
8681         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8682         Reported by Markus Duft <mduft@gentoo.org>.
8683
8684 2011-05-15  James Youngman  <jay@gnu.org>
8685
8686         getopt: for ambiguous options, enumerate the possibilities.
8687         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8688         the ambiguous options when an ambiguous prefix is given. This was
8689         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8690         glibc change was
8691         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8692
8693 2011-05-25  Eric Blake  <eblake@redhat.com>
8694
8695         getcwd: work around mingw bug
8696         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8697         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8698         Reported by Matthias Bolte.
8699
8700 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8701
8702         test-intprops: disable -Wtype-limits diagnostics
8703         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8704         diagnostics.  Otherwise, the integer overflow macros generate many
8705         diagnostics.  Reported by Jim Meyering in
8706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8707
8708         intprops: shorten, to pacify gcc -Woverlength-strings
8709         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8710         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8711         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8712         likely to run afoul of C compiler limits for string constant lengths.
8713         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8714
8715 2011-05-24  Eric Blake  <eblake@redhat.com>
8716
8717         docs: document recently fixed glibc printf bug
8718         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8719         * doc/posix-functions/printf.texi (printf): Likewise.
8720         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8721         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8722
8723         closein-tests: convert to init.sh
8724         * modules/closein-tests (Files): Add init.sh
8725         * tests/test-closein.sh Use it.
8726
8727         yesno-tests: convert to init.sh
8728         * modules/yesno-tests (Files): Add init.sh.
8729         * tests/test-yesno.sh: Use it.
8730
8731         atexit-tests: ensure reliable exit status
8732         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8733         Reported by Bruno Haible.
8734
8735 2011-05-24  Bruno Haible  <bruno@clisp.org>
8736
8737         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8738         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8739         gl_PREREQ_STRERROR_R invocations from here...
8740         * modules/strerror_r-posix (configure.ac): ... to here.
8741
8742 2011-05-24  Eric Blake  <eblake@redhat.com>
8743
8744         strerror_r: fix missing header
8745         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8746
8747         strerror_r: fix AIX test failures
8748         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8749         ERANGE failure.
8750
8751         strerror_r: fix Solaris test failures
8752         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8753         failures.
8754         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8755
8756         strerror_r: enforce POSIX recommendations
8757         * lib/strerror_r.c (safe_copy): New helper method.
8758         (strerror_r): Guarantee a non-empty string.
8759         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8760         recent POSIX rulings and to match our strerror guarantees.
8761         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8762
8763 2011-05-24  Jim Meyering  <meyering@redhat.com>
8764
8765         test-perror2.c: avoid warning about unused variable
8766         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8767
8768 2011-05-24  Eric Blake  <eblake@redhat.com>
8769
8770         perror: avoid spurious test failure on HP-UX
8771         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8772
8773         tests: fix logic bug in init.sh
8774         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8775         shell.
8776
8777 2011-05-24  Jim Meyering  <meyering@redhat.com>
8778
8779         utimensat: do not reference an out-of-scope buffer
8780         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8781         declared in an inner scope, yet "times" would be dereferenced outside
8782         the scope in which "ts" was valid.
8783         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8784         of ts[2] "out/up", so that the use of aliased "times" (via
8785         "times = ts;") does not end up referencing an out-of-scope "ts"
8786
8787         opendir-safer.c: don't clobber errno; don't close negative FD
8788         * lib/opendir-safer.c (opendir_safer):
8789         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8790         file descriptor, and more importantly, don't clobber the
8791         offending errno value with EINVAL.  Before, upon failure
8792         of dup_safer, we would pass the negative file descriptor to
8793         fdopendir, which would clobber errno.
8794
8795 2011-05-23  Bruno Haible  <bruno@clisp.org>
8796
8797         idcache: Fix module description.
8798         * modules/idcache (Include): Set to "idcache.h".
8799
8800 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8801
8802         gnulib-tool: fix portability problem with MacOS sed
8803         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8804         before the "}".  Problem reported by Leo in
8805         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8806         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8807         sed_extract_condition1, sed_extract_condition2.
8808
8809 2011-05-23  Bruno Haible  <bruno@clisp.org>
8810
8811         hash: Simplify autoconf macro.
8812         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8813
8814 2011-05-23  Bruno Haible  <bruno@clisp.org>
8815
8816         getugroups: Fix module description.
8817         * modules/getugroups (Include): Set to "getugroups.h".
8818
8819 2011-05-23  Bruno Haible  <bruno@clisp.org>
8820
8821         linkat: Simplify autoconf macro.
8822         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8823
8824 2011-05-23  Bruno Haible  <bruno@clisp.org>
8825             Eric Blake  <eblake@redhat.com>
8826
8827         linkat, renameat: Update dependencies.
8828         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8829         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8830         symlinkat.
8831
8832 2011-05-23  Jim Meyering  <meyering@redhat.com>
8833
8834         maint.mk: more tight_scope improvements
8835         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8836         (_gl_TS_headers): Define only in if-0'd block.
8837         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8838         sometimes we must *not* use it.  Adjust uses accordingly.
8839         (sc_tight_scope): Use much simpler grep-based test to determine
8840         whether we skip this rule.
8841
8842         maint.mk: generalize/improve the tight-scope rule
8843         * top/maint.mk: Emit a warning when the test is skipped.
8844         (_gl_TS_dir): Add $(srcdir)/ prefix.
8845         (_gl_TS_function_match): Simplify, rather than trying
8846         to enumerate common types.  Otherwise, it would fail to match an
8847         "extern unsigned char const *" declaration in idutils.
8848         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8849         a way to support use of that type of macro.
8850         (_gl_TS_var_match): Simplify regexp.
8851         (_gl_TS_obj_files): New configurable variable.
8852         (_gl_TS_headers): Likewise.
8853
8854 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8855
8856         verify: fix bug when gnulib <assert.h> is also included
8857         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8858         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8859         Perhaps there's a better way, but this fixes the immediate problem.
8860         Problem reported by Bruno Haible in
8861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8862
8863 2011-05-22  Bruno Haible  <bruno@clisp.org>
8864
8865         xgetcwd: Simplify autoconf macro.
8866         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8867
8868 2011-05-22  Bruno Haible  <bruno@clisp.org>
8869
8870         New module 'mktime-internal'.
8871         * modules/mktime-internal: New file.
8872         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8873         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
8874         mktime_internal as a C macro if libc has __mktime_internal.
8875         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
8876         conditions.
8877         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
8878
8879 2011-05-22  Bruno Haible  <bruno@clisp.org>
8880
8881         timegm: Correct mktime replacement statements.
8882         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
8883         defining mktime as a C macro. This completes a 2009-07-28 commit.
8884
8885 2011-05-22  Bruno Haible  <bruno@clisp.org>
8886
8887         timegm: Simplify autoconf macro.
8888         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
8889
8890 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8891
8892         clock-time: change to LGPLv2+.
8893         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
8894         BSD-like but we have no mark for that; this is good enough for now.
8895
8896 2011-05-21  Bruno Haible  <bruno@clisp.org>
8897
8898         strerror_r: Fix comments.
8899         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
8900
8901 2011-05-21  Bruno Haible  <bruno@clisp.org>
8902
8903         relocatable-prog-wrapper: Fix possible link error.
8904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
8905         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
8906         (gl_FUNC_SETENV): ... to here.
8907         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
8908         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
8909
8910 2011-05-21  Bruno Haible  <bruno@clisp.org>
8911
8912         relocatable-prog-wrapper: Assume strerror() exists.
8913         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8914         m4/strerror.m4.
8915         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8916         * lib/relocwrapper.c: Remove mention of strerror module.
8917         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8918         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8919         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8920         C macro.
8921
8922 2011-05-21  Bruno Haible  <bruno@clisp.org>
8923
8924         select: Simplify replacement idiom.
8925         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8926         Win32 platforms.
8927         * lib/sys_select.in.h (select): Simplify accordingly.
8928         * modules/select (Depends-on): Likewise.
8929
8930 2011-05-21  Bruno Haible  <bruno@clisp.org>
8931
8932         mkdir-p: Simplify autoconf macro.
8933         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8934         gl_FUNC_LCHOWN.
8935
8936 2011-05-21  Eric Blake  <eblake@redhat.com>
8937
8938         strerror_r: avoid clobbering strerror on cygwin
8939         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8940         fall back instead to sys_errlist.
8941         * modules/strerror (configure.ac): Add witness.
8942         * tests/test-strerror_r.c (main): Enhance test.
8943         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8944         * tests/test-perror2.c (main): Free memory before exit.
8945
8946 2011-05-21  Bruno Haible  <bruno@clisp.org>
8947
8948         mkdtemp: Use gnulib naming conventions.
8949         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8950         * modules/mkdtemp (configure.ac): Update.
8951
8952 2011-05-20  Eric Blake  <eblake@redhat.com>
8953
8954         strerror_r: avoid corrupting errno on Solaris
8955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8956         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8957
8958         strerror_r: avoid compiler warning
8959         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8960
8961         strerror_r: simplify AIX code
8962         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8963
8964         test-perror: avoid spurious failure on FreeBSD
8965         * modules/perror-tests (Depends-on): Add strerror, now that
8966         strerror_r no longer pulls it in.
8967
8968 2011-05-20  Bruno Haible  <bruno@clisp.org>
8969
8970         strerror_r-posix: Remove unused dependencies.
8971         * modules/strerror_r-posix (Depends-on): Remove strerror.
8972         Reported by Eric Blake.
8973
8974 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8975
8976         intprops: remove assumption about A|B representation
8977         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8978         is a valid integer if both A and B are.  Although this is true for
8979         all known practical hosts, the C standard doesn't guarantee it,
8980         and the code need not assume it.  Also, this change may work around
8981         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8983
8984 2011-05-20  Eric Blake  <eblake@redhat.com>
8985
8986         perror: work around FreeBSD bug
8987         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8988         is broken.  Move AC_LIBOBJ...
8989         * modules/perror (configure.ac): Here.
8990         * doc/posix-functions/perror.texi (perror): Document this.
8991         * tests/test-perror2.c (main): Enhance test.
8992
8993         test-perror: check for strerror interactions
8994         * tests/macros.h (STREQ): Add macro.
8995         * modules/perror-tests (Files): Add second test.
8996         * tests/test-perror2.c (main): New file.
8997         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8998
8999         test-perror: rewrite to use init script
9000         * modules/perror-tests (Files): Add init.sh.
9001         * tests/test-perror.sh: Use temporary directory.
9002
9003 2011-05-20  Jim Meyering  <meyering@redhat.com>
9004
9005         maint: replace misused "a" with "an"
9006         * doc/intprops.texi: "a integer"
9007         * doc/regex.texi: "a explanation"
9008         * lib/alignof.h: "a object"
9009         * lib/argmatch.h: "a explanation"
9010         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9011         * lib/stdint.in.h: "a integer"
9012         * lib/userspec.c: "a owner"
9013         * doc/gnulib.texi: Fix "a idea", and reword.
9014
9015 2011-05-19  Jim Meyering  <meyering@redhat.com>
9016
9017         maint: correct misuse of "a" and "an"
9018         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9019         * lib/argp-help.c: "an docum...": s/an/a/
9020         * lib/argp-parse.c: "An vector": s/An/A/
9021         * lib/execute.c: "an native": s/an/a/
9022         * lib/spawn-pipe.c: Likewise.
9023         * lib/gc.h: "an Gc_rc": s/an/a/
9024         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9025         * lib/fts.c: "an stat.st_dev": s/an/a/
9026
9027 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9028
9029         intprops-tests: work around HP-UX 11.23 cc bug with constants
9030         * tests/test-intprops.c (VERIFY): New macro.
9031         (main): Use it, instead of verify, to work around the compiler bug; see
9032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9033
9034         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9035         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9036         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9037         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9038         (_GL_REMAINDER_OVERFLOW): Use it.
9039
9040         intprops-tests: revert unsigned part of previous change
9041         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9042         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9043         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9045
9046 2011-05-19  Bruno Haible  <bruno@clisp.org>
9047
9048         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9049         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9050         strerror_r() returned without filling the buffer.
9051         Reported by Eric Blake.
9052
9053 2011-05-19  Eric Blake  <eblake@redhat.com>
9054
9055         strerror_r: guarantee unchanged errno
9056         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9057         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9058         failure.
9059         * tests/test-strerror_r.c (main): Enhance test.
9060
9061 2011-05-19  Bruno Haible  <bruno@clisp.org>
9062
9063         strerror_r: Reorder #if blocks.
9064         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9065         for consistency with the previous commit.
9066
9067 2011-05-19  Bruno Haible  <bruno@clisp.org>
9068
9069         perror: Avoid clobbering the strerror buffer when possible.
9070         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9071         * lib/strerror.c: Include it.
9072         * modules/strerror (Files): Add lib/strerror-impl.h.
9073         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9074         (my_strerror): New function, defined through lib/strerror-impl.h.
9075         (perror): Use it instead of strerror.
9076         * modules/perror (Files): Add lib/strerror-impl.h.
9077         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9078
9079 2011-05-19  Eric Blake  <eblake@redhat.com>
9080
9081         strerror_r: fix on newer cygwin
9082         * lib/strerror_r.c (strerror_r): Cygwin now has
9083         __xpg_strerror_r, use it.
9084
9085 2011-05-19  Bruno Haible  <bruno@clisp.org>
9086
9087         strerror_r: Avoid clobbering the strerror buffer when possible.
9088         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9089         (sys_nerr, sys_errlist): New declarations.
9090         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9091         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9092         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9093
9094 2011-05-19  Bruno Haible  <bruno@clisp.org>
9095
9096         strerror_r: Fix test failure on mingw.
9097         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9098         EXTEND_STRERROR_R.
9099         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9100         macros from errno.in.h instead.
9101
9102 2011-05-19  Eric Blake  <eblake@redhat.com>
9103
9104         strerror: relax test for Solaris
9105         * tests/test-strerror.c (main): Permit Solaris behavior.
9106         * tests/test-strerror_r.c (main): Likewise.
9107
9108         strerror: enforce POSIX ruling on strerror(0)
9109         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9111         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9112         * doc/posix-functions/strerror.texi (strerror): Document it.
9113         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9114         * tests/test-strerror.c (main): Strengthen test.
9115         * tests/test-strerror_r.c (main): Likewise.
9116
9117 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9118
9119         intprop-tests: port to older and more-pedantic compilers
9120         * modules/intprops-tests (Files): Add tests/macros.h.
9121         * tests/test-intprops.c: Include macros.h.
9122         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9123         it's no longer documented to expand to an integer constant expression.
9124         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9125         argument is floating point, as it's no longer documented to expand
9126         to an integer constant expression in that case.
9127         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9128         compiler bugs reported by Bruno Haible.  See
9129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9130         (U0, U1): New constants, to work around the same bugs.  Also,
9131         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9132
9133         intprops: work around C compiler bugs
9134         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9135         bug in Sun C 5.11 2010/08/13 and other compilers; see
9136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9137
9138         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9139         * doc/intprops.texi (Integer Type Determination): Fix
9140         documentation for TYPE_IS_INTEGER: it returns an constant
9141         expression, not an integer constant expression.  Fix doc for
9142         TYPE_SIGNED: it returns an integer constant expression only if its
9143         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9144         hardly worth documented that way....)
9145
9146 2011-05-18  Bruno Haible  <bruno@clisp.org>
9147
9148         strerror_r: Avoid clobbering the strerror buffer when possible.
9149         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9150         Handle gnulib defined errno values here. When strerror() returns NULL
9151         or an empty string, return EINVAL.
9152         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9153         gnulib defined errno values here.
9154         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9155
9156 2011-05-18  Eric Blake  <eblake@redhat.com>
9157
9158         fnmatch: avoid compiler warning
9159         * lib/fnmatch_loop.c (FCT): Use correct type.
9160         Reported by Matthias Bolte.
9161
9162 2011-05-13  Jim Meyering  <meyering@redhat.com>
9163
9164         maint.mk: three new prohibit_<HDR>_without_use rules
9165         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9166         (sc_prohibit_stdio-safer_without_use): Likewise.
9167         (sc_prohibit_xfreopen_without_use): Likewise.
9168
9169 2011-05-17  Jim Meyering  <meyering@redhat.com>
9170
9171         announce-gen: fail if the NEWS delta is empty
9172         If there's nothing noteworthy in NEWS, then either you forgot
9173         or you shouldn't be releasing.
9174         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9175
9176 2011-05-17  Pádraig Brady <P@draigBrady.com>
9177
9178         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9179         reserved symbols starting with double underscore from the check.
9180
9181 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9182
9183         intprops: add doc
9184         * doc/intprops.texi: New file, documenting intprops.
9185         * doc/gnulib.texi (Particular Modules): Include it.
9186
9187         verify: add doc to gnulib manual and fix example
9188         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9189         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9190         (Compile-time Assertions): Fix example so it can't overflow.
9191
9192 2011-05-17  Jim Meyering  <meyering@redhat.com>
9193
9194         warnings.m4: don't usurp save_CPPFLAGS variable name
9195         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9196
9197         doc: fix typo
9198         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9199
9200 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9201             Bruno Haible  <bruno@clisp.org>
9202
9203         doc: Tweak recent change.
9204         * README (Portability guidelines): Tweak new text.
9205         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9206         Interix 6.1.
9207
9208 2011-05-16  Eric Blake  <eblake@redhat.com>
9209
9210         inttypes: avoid autoconf warning
9211         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9212         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9213
9214 2011-05-16  Sam Steingold <sds@gnu.org>
9215         and Eric Blake  <eblake@redhat.com>
9216
9217         vc-list-files: accept multiple directory operands
9218         * build-aux/vc-list-files: Iterate over all remaining operands.
9219
9220 2011-05-16  Bruno Haible  <bruno@clisp.org>
9221
9222         Fix confusion regarding deprecated modules.
9223         * modules/calloc (Status, Notice): Mark module as deprecated, not
9224         obsolete.
9225         * modules/fnmatch-posix (Status, Notice): Likewise.
9226         * modules/getdate (Status, Notice): Likewise.
9227         * modules/getopt (Status, Notice): Likewise.
9228         * modules/malloc (Status, Notice): Likewise.
9229         * modules/pipe (Status, Notice): Likewise.
9230         * modules/realloc (Status, Notice): Likewise.
9231         * modules/rename-dest-slash (Status, Notice): Likewise.
9232         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9233         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9234         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9235         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9236         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9237
9238 2011-05-16  Bruno Haible  <bruno@clisp.org>
9239
9240         doc: List the target platforms.
9241         * doc/gnulib-intro.texi (Target Platforms): New section.
9242         * doc/gnulib.texi (Introduction): Update menu.
9243         * README (Portability guidelines): Refer to the new section. Update
9244         statement about oldest supported environment. Remove rationale why
9245         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9246         unportable C89 function.
9247         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9248         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9249
9250 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9251
9252         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9253
9254 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9255
9256         intprops-tests: new module
9257         * modules/intprops-tests, tests/test-intprops.c: New files.
9258
9259         intprops: add safe, portable integer overflow checking
9260         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9261         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9262         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9263         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9264         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9265         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9266         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9267         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9268         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9269         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9270         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9271
9272 2011-05-12  James Youngman  <jay@gnu.org>
9273
9274         Add a test for glibc's Bugzilla bug #12378.
9275         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9276         doesn't allow the literal matching of a lone "[" (which is
9277         required by POSIX).
9278         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9279
9280 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9281
9282         Sync glibc change fixing Bugzilla bug #12378.
9283         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9284         beginning and fall back to matching as normal character if the
9285         string ends before the matching ']' is found.  This is what POSIX
9286         requires.
9287
9288 2011-05-13  Eric Blake  <eblake@redhat.com>
9289
9290         getcwd-lgpl: relax test for FreeBSD
9291         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9292         issue.
9293         * tests/test-getcwd-lgpl.c (main): Relax test.
9294         Reported by Matthias Bolte.
9295
9296 2011-05-11  Eric Blake  <eblake@redhat.com>
9297
9298         test-fflush: silence compiler warning
9299         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9300
9301 2011-05-11  Bruno Haible  <bruno@clisp.org>
9302
9303         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9304         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9305         * modules/canonicalize (Depends-on): Add 'nocrash'.
9306         * modules/canonicalize-lgpl (Depends-on): Likewise.
9307         * doc/posix-functions/realpath.texi: Update platforms list.
9308         Reported by Ryan Schmidt <ryandesign@macports.org>.
9309
9310 2011-05-11  Bruno Haible  <bruno@clisp.org>
9311
9312         group-member: Declare function in <unistd.h>.
9313         * lib/unistd.in.h (group_member): New declaration.
9314         * lib/group-member.h: Remove file.
9315         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9316         * tests/test-unistd-c++.cc: Check signature of group_member.
9317         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9318         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9319         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9320         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9321         HAVE_GROUP_MEMBER.
9322         * modules/group-member (Files): Remove lib/group-member.h.
9323         (Depends-on): Add unistd. Specify conditions.
9324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9325         (Include): Change to <unistd.h>.
9326         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9327         HAVE_GROUP_MEMBER.
9328         * NEWS: Mention the change.
9329         * lib/euidaccess.c: Don't include group-member.h.
9330
9331 2011-05-11  Bruno Haible  <bruno@clisp.org>
9332
9333         group-member: Document module.
9334         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9335         module.
9336
9337 2011-05-11  Bruno Haible  <bruno@clisp.org>
9338
9339         fclose: Fix mistake earlier today.
9340         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9341
9342 2011-05-11  Eric Blake  <eblake@redhat.com>
9343
9344         fclose: preserve fflush errors
9345         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9346         Reported by Jim Meyering.
9347
9348         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9349         * build-aux/bootstrap (check_versions): When no specific version
9350         is required, merely check that the app produces an exit status
9351         that indicates its existence.
9352
9353         maint.mk: drop redundant check
9354         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9355         the same but better.
9356
9357 2011-05-11  Bruno Haible  <bruno@clisp.org>
9358
9359         fclose: Fix possible link error.
9360         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9361         unregister_shadow_fd. Improve comments.
9362         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9363         Eric Blake.
9364
9365 2011-05-11  Jim Meyering  <meyering@redhat.com>
9366
9367         maint.mk: improve "can not" detection and generalize rule name
9368         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9369         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9370         Use the same technique as in sc_prohibit_doubled_word, so that
9371         we recognize "can not" also when the words are separated by a newline.
9372         Suggested by Eric Blake.
9373         (perl_filename_lineno_text_): Define.  Factored out of...
9374         (prohibit_doubled_word_): ...here.  Use the new definition.
9375         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9376         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9377         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9378
9379 2011-05-10  Eric Blake  <eblake@redhat.com>
9380
9381         fclose: avoid double close race when possible
9382         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9383         all but WINDOWS_SOCKETS.
9384
9385 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9386
9387         openat: correct new comment
9388         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9389
9390 2011-05-10  Jim Meyering  <meyering@redhat.com>
9391
9392         openat: add comments
9393         * lib/openat-proc.c (openat_proc_name): Add comments,
9394         mostly from Eric Blake.
9395
9396 2011-05-09  Eric Blake  <eblake@redhat.com>
9397
9398         openat: reduce syscalls in first probe of /proc
9399         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9400         be a directory.  Simplify the probe for .. bugs.
9401         * modules/openat (Depends-on): Drop same-inode.
9402         Reported by Bastien ROUCARIES.
9403
9404 2011-05-09  Jim Meyering  <meyering@redhat.com>
9405
9406         maint.mk: change semantics/name of tight_scope variables
9407         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9408         Rename variables to align with semantics that make them more useful.
9409
9410         maint.mk: tweak new rule's name not to impinge
9411         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9412         (sc_tight_scope): Use new rule name rather than $@-0.
9413
9414         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9415         * top/maint.mk (sc_tight_scope): New rule.
9416         (sc_tight_scope-0): New rule, ifdef'd out.
9417         (_gl_TS_dir): Default.
9418         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9419         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9420
9421 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9422
9423         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9424         Haible <bruno@clisp.org>.
9425
9426 2011-05-08  Bruno Haible  <bruno@clisp.org>
9427
9428         Comments.
9429         * m4/isnanf.m4: Add comment.
9430         * m4/isnanl.m4: Likewise.
9431
9432 2011-05-08  Bruno Haible  <bruno@clisp.org>
9433
9434         glob: Remove obsolete macro.
9435         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9436
9437 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9438
9439         intprops: Sun C 5.11 supports __typeof__
9440         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9441         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9442         which is new.
9443         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9444
9445         intprops: switch to usual gnulib indenting and naming
9446         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9447         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9448
9449         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9450
9451 2011-05-08  Jim Meyering  <meyering@redhat.com>
9452
9453         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9454         * top/maint.mk (release-prep): Use make's --no-print-directory
9455         option when generating the announcement.  This eliminates the
9456         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9457         generated announcement template.
9458
9459 2011-05-08  Bruno Haible  <bruno@clisp.org>
9460
9461         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9462         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9463         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9464
9465 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9466
9467         ignore-value, verify: Omit include files from lib_SOURCES.
9468         * modules/ignore-value, modules/verify (Makefile.am):
9469         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9470         that leads Automake to duplicate use of am__objects_... variables
9471         in Makefile.in.  See
9472         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9473
9474 2011-05-07  Bruno Haible  <bruno@clisp.org>
9475
9476         fclose: Simplify autoconf macro.
9477         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9478         defined.
9479
9480 2011-05-07  Bruno Haible  <bruno@clisp.org>
9481
9482         canonicalize-lgpl: Fix autoconf macro ordering bug.
9483         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9484         gl_STDLIB_H_DEFAULTS.
9485
9486 2011-05-06  Eric Blake  <eblake@redhat.com>
9487
9488         maintainer-makefile: make sc_po_check easier to tune
9489         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9490         to probe for strings, such as an alternate location for gnulib.
9491
9492         fclose: guarantee behavior on seekable stdin
9493         * modules/fclose (Depends-on): Add fflush.
9494         * doc/posix-functions/fclose.texi (fclose): Document this.
9495         * tests/test-fclose.c (main): Make test for this unconditional.
9496
9497 2011-05-06  Bruno Haible  <bruno@clisp.org>
9498
9499         fflush, fpurge: Relicense under LGPLv2+.
9500         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9501         * modules/fpurge (License): Likewise.
9502         With permission from Eric Blake and Jim Meyering.
9503         Suggested by Eric Blake.
9504
9505 2011-05-06  Karl Berry  <karl@gnu.org>
9506
9507         * MODULES.html.sh (func_all_modules): remove exit.
9508
9509 2011-05-06  Jim Meyering  <meyering@redhat.com>
9510
9511         maint.mk: use info-gnu@ as the default only for a stable release
9512         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9513         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9514         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9515         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9516
9517 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9518
9519         assert-h: new module, which supports C1X-style static_assert
9520         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9521         * lib/verify.h: Revamp so that this can be copied into assert.h,
9522         while retaining the ability to use it standalone as before.
9523         Rename private identifiers so as not to encroach on the
9524         standard C namespace, since this is now used by assert.h.
9525         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9526         the old verify_true.
9527         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9528         the old verify_true.  Use _GL_VERIFY_TYPE.
9529         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9530         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9531         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9532         defined when this file is copied into the replacement assert.h.
9533         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9534         and _Static_assert is not built in.
9535         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9536         defined, and use the new macros mentioned above.
9537         * doc/posix-headers/assert.texi: Document this.
9538
9539 2011-05-05  Bruno Haible  <bruno@clisp.org>
9540
9541         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9542         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9543         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9544         gl_REPLACE_FCLOSE here.
9545         * modules/fflush (Depends-on): Remove fclose.
9546         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9547         combination with module 'fclose'.
9548
9549 2011-05-05  Bruno Haible  <bruno@clisp.org>
9550
9551         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9552         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9553         gl_FUNC_FFLUSH.
9554         (gl_FUNC_FFLUSH): Use it.
9555         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9556         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9557         gl_REPLACE_FSEEKO here.
9558
9559 2011-05-05  Bruno Haible  <bruno@clisp.org>
9560
9561         tzset: Relicense under LGPL.
9562         * modules/tzset (License): Change to LGPL.
9563         No agreement needed; it's a no-op.
9564
9565         strtoimax, strtoumax: Relicense under LGPL.
9566         * modules/strtoimax (License): Change to LGPL.
9567         * modules/strtoumax (License): Likewise.
9568         With permission from Jim Meyering, Paul Eggert:
9569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9571
9572         getgroups: Relicense under LGPL.
9573         * modules/getgroups (License): Change to LGPL.
9574         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9578
9579         nanosleep: Relicense under LGPL.
9580         * modules/nanosleep (License): Change to LGPL.
9581         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9582         Haible:
9583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9587
9588         futimens: Relicense under LGPL.
9589         * modules/futimens (License): Change to LGPL.
9590         With permission from Eric Blake:
9591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9592
9593         fflush: Relicense under LGPL.
9594         * modules/fflush (License): Change to LGPL.
9595         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9599
9600         tmpfile: Relicense under LGPL.
9601         * modules/tmpfile (License): Change to LGPL.
9602         With permission from Ben Pfaff:
9603         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9604
9605         isfinite: Relicense under LGPL.
9606         * modules/isfinite (License): Change to LGPL.
9607         With permission from Ben Pfaff, Bruno Haible:
9608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9610
9611         acosl..tanl: Relicense under LGPL.
9612         * modules/acosl (License): Change to LGPL.
9613         * modules/asinl (License): Likewise.
9614         * modules/atanl (License): Likewise.
9615         * modules/cosl (License): Likewise.
9616         * modules/expl (License): Likewise.
9617         * modules/logl (License): Likewise.
9618         * modules/sinl (License): Likewise.
9619         * modules/sqrtl (License): Likewise.
9620         * modules/tanl (License): Likewise.
9621         Source code originally from glibc and Paolo Bonzini. Agreements:
9622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9624
9625 2011-05-05  Bruno Haible  <bruno@clisp.org>
9626
9627         signal: Define sighandler_t.
9628         * lib/signal.in.h (sighandler_t): New type.
9629         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9630         whether sighandler_t is defined.
9631         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9632         * modules/signal (Depends-on): Add extensions.
9633         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9634         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9635         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9636
9637 2011-05-05  Eric Blake  <eblake@redhat.com>
9638
9639         maint: remove useless REPLACE_*_H macros
9640         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9641         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9642         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9643         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9644         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9645         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9646         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9647         * m4/btowc.m4: Update callers.
9648         * m4/dirfd.m4: Likewise.
9649         * m4/duplocale.m4: Likewise.
9650         * m4/fchdir.m4: Likewise.
9651         * m4/fdopendir.m4: Likewise.
9652         * m4/inet_ntop.m4: Likewise.
9653         * m4/inet_pton.m4: Likewise.
9654         * m4/ioctl.m4: Likewise.
9655         * m4/mbrlen.m4: Likewise.
9656         * m4/mbrtowc.m4: Likewise.
9657         * m4/mbsinit.m4: Likewise.
9658         * m4/mbsnrtowcs.m4: Likewise.
9659         * m4/mbsrtowcs.m4: Likewise.
9660         * m4/poll.m4: Likewise.
9661         * m4/setlocale.m4: Likewise.
9662         * m4/wcrtomb.m4: Likewise.
9663         * m4/wcsnrtombs.m4: Likewise.
9664         * m4/wcsrtombs.m4: Likewise.
9665         * m4/wctob.m4: Likewise.
9666         * m4/wcwidth.m4: Likewise.
9667         * modules/posix_spawn: Likewise.
9668         * modules/posix_spawn_file_actions_addclose: Likewise.
9669         * modules/posix_spawn_file_actions_adddup2: Likewise.
9670         * modules/posix_spawn_file_actions_addopen: Likewise.
9671         * modules/posix_spawn_file_actions_destroy: Likewise.
9672         * modules/posix_spawn_file_actions_init: Likewise.
9673         * modules/posix_spawnattr_destroy: Likewise.
9674         * modules/posix_spawnattr_getflags: Likewise.
9675         * modules/posix_spawnattr_getpgroup: Likewise.
9676         * modules/posix_spawnattr_getschedparam: Likewise.
9677         * modules/posix_spawnattr_getschedpolicy: Likewise.
9678         * modules/posix_spawnattr_getsigdefault: Likewise.
9679         * modules/posix_spawnattr_getsigmask: Likewise.
9680         * modules/posix_spawnattr_init: Likewise.
9681         * modules/posix_spawnattr_setflags: Likewise.
9682         * modules/posix_spawnattr_setpgroup: Likewise.
9683         * modules/posix_spawnattr_setschedparam: Likewise.
9684         * modules/posix_spawnattr_setschedpolicy: Likewise.
9685         * modules/posix_spawnattr_setsigdefault: Likewise.
9686         * modules/posix_spawnattr_setsigmask: Likewise.
9687         * modules/posix_spawnp: Likewise.
9688
9689 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9690
9691         Add option to do-release-commit-and-tag to specify branch.
9692         * build-aux/do-release-commit-and-tag: Add --branch.
9693
9694 2011-05-03  Bruno Haible  <bruno@clisp.org>
9695
9696         Avoid unnecessary compilation units, through conditional dependencies.
9697         * modules/accept (Depends-on): Add conditions to the dependencies.
9698         * modules/acosl (Depends-on): Likewise.
9699         * modules/argz (Depends-on): Likewise.
9700         * modules/asinl (Depends-on): Likewise.
9701         * modules/atanl (Depends-on): Likewise.
9702         * modules/atoll (Depends-on): Likewise.
9703         * modules/bind (Depends-on): Likewise.
9704         * modules/btowc (Depends-on): Likewise.
9705         * modules/canonicalize-lgpl (Depends-on): Likewise.
9706         * modules/ceil (Depends-on): Likewise.
9707         * modules/ceilf (Depends-on): Likewise.
9708         * modules/ceill (Depends-on): Likewise.
9709         * modules/chdir-long (Depends-on): Likewise.
9710         * modules/chown (Depends-on): Likewise.
9711         * modules/close (Depends-on): Likewise.
9712         * modules/connect (Depends-on): Likewise.
9713         * modules/cosl (Depends-on): Likewise.
9714         * modules/dirfd (Depends-on): Likewise.
9715         * modules/dprintf (Depends-on): Likewise.
9716         * modules/dprintf-posix (Depends-on): Likewise.
9717         * modules/error (Depends-on): Likewise.
9718         * modules/euidaccess (Depends-on): Likewise.
9719         * modules/expl (Depends-on): Likewise.
9720         * modules/faccessat (Depends-on): Likewise.
9721         * modules/fchdir (Depends-on): Likewise.
9722         * modules/fclose (Depends-on): Likewise.
9723         * modules/fcntl (Depends-on): Likewise.
9724         * modules/fdopendir (Depends-on): Likewise.
9725         * modules/fflush (Depends-on): Likewise.
9726         * modules/floor (Depends-on): Likewise.
9727         * modules/floorf (Depends-on): Likewise.
9728         * modules/floorl (Depends-on): Likewise.
9729         * modules/fnmatch (Depends-on): Likewise.
9730         * modules/fopen (Depends-on): Likewise.
9731         * modules/fprintf-posix (Depends-on): Likewise.
9732         * modules/frexp (Depends-on): Likewise.
9733         * modules/frexp-nolibm (Depends-on): Likewise.
9734         * modules/frexpl (Depends-on): Likewise.
9735         * modules/frexpl-nolibm (Depends-on): Likewise.
9736         * modules/fseek (Depends-on): Likewise.
9737         * modules/fsusage (Depends-on): Likewise.
9738         * modules/ftell (Depends-on): Likewise.
9739         * modules/ftello (Depends-on): Likewise.
9740         * modules/futimens (Depends-on): Likewise.
9741         * modules/getcwd (Depends-on): Likewise.
9742         * modules/getcwd-lgpl (Depends-on): Likewise.
9743         * modules/getdelim (Depends-on): Likewise.
9744         * modules/getdomainname (Depends-on): Likewise.
9745         * modules/getgroups (Depends-on): Likewise.
9746         * modules/gethostname (Depends-on): Likewise.
9747         * modules/getline (Depends-on): Likewise.
9748         * modules/getlogin_r (Depends-on): Likewise.
9749         * modules/getopt-posix (Depends-on): Likewise.
9750         * modules/getpeername (Depends-on): Likewise.
9751         * modules/getsockname (Depends-on): Likewise.
9752         * modules/getsockopt (Depends-on): Likewise.
9753         * modules/getsubopt (Depends-on): Likewise.
9754         * modules/getusershell (Depends-on): Likewise.
9755         * modules/glob (Depends-on): Likewise.
9756         * modules/grantpt (Depends-on): Likewise.
9757         * modules/iconv_open (Depends-on): Likewise.
9758         * modules/iconv_open-utf (Depends-on): Likewise.
9759         * modules/inet_ntop (Depends-on): Likewise.
9760         * modules/inet_pton (Depends-on): Likewise.
9761         * modules/ioctl (Depends-on): Likewise.
9762         * modules/isapipe (Depends-on): Likewise.
9763         * modules/isfinite (Depends-on): Likewise.
9764         * modules/isinf (Depends-on): Likewise.
9765         * modules/lchown (Depends-on): Likewise.
9766         * modules/ldexpl (Depends-on): Likewise.
9767         * modules/link (Depends-on): Likewise.
9768         * modules/linkat (Depends-on): Likewise.
9769         * modules/listen (Depends-on): Likewise.
9770         * modules/logl (Depends-on): Likewise.
9771         * modules/lstat (Depends-on): Likewise.
9772         * modules/mbrlen (Depends-on): Likewise.
9773         * modules/mbrtowc (Depends-on): Likewise.
9774         * modules/mbsinit (Depends-on): Likewise.
9775         * modules/mbsnrtowcs (Depends-on): Likewise.
9776         * modules/mbsrtowcs (Depends-on): Likewise.
9777         * modules/mbtowc (Depends-on): Likewise.
9778         * modules/memcmp (Depends-on): Likewise.
9779         * modules/mkdir (Depends-on): Likewise.
9780         * modules/mkdtemp (Depends-on): Likewise.
9781         * modules/mkfifo (Depends-on): Likewise.
9782         * modules/mkfifoat (Depends-on): Likewise.
9783         * modules/mknod (Depends-on): Likewise.
9784         * modules/mkostemp (Depends-on): Likewise.
9785         * modules/mkostemps (Depends-on): Likewise.
9786         * modules/mkstemp (Depends-on): Likewise.
9787         * modules/mkstemps (Depends-on): Likewise.
9788         * modules/mktime (Depends-on): Likewise.
9789         * modules/nanosleep (Depends-on): Likewise.
9790         * modules/open (Depends-on): Likewise.
9791         * modules/openat (Depends-on): Likewise.
9792         * modules/perror (Depends-on): Likewise.
9793         * modules/poll (Depends-on): Likewise.
9794         * modules/popen (Depends-on): Likewise.
9795         * modules/posix_spawn (Depends-on): Likewise.
9796         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9797         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9798         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9799         * modules/posix_spawnp (Depends-on): Likewise.
9800         * modules/pread (Depends-on): Likewise.
9801         * modules/printf-posix (Depends-on): Likewise.
9802         * modules/ptsname (Depends-on): Likewise.
9803         * modules/putenv (Depends-on): Likewise.
9804         * modules/pwrite (Depends-on): Likewise.
9805         * modules/readline (Depends-on): Likewise.
9806         * modules/readlink (Depends-on): Likewise.
9807         * modules/readlinkat (Depends-on): Likewise.
9808         * modules/recv (Depends-on): Likewise.
9809         * modules/recvfrom (Depends-on): Likewise.
9810         * modules/regex (Depends-on): Likewise.
9811         * modules/remove (Depends-on): Likewise.
9812         * modules/rename (Depends-on): Likewise.
9813         * modules/renameat (Depends-on): Likewise.
9814         * modules/rmdir (Depends-on): Likewise.
9815         * modules/round (Depends-on): Likewise.
9816         * modules/roundf (Depends-on): Likewise.
9817         * modules/roundl (Depends-on): Likewise.
9818         * modules/rpmatch (Depends-on): Likewise.
9819         * modules/select (Depends-on): Likewise.
9820         * modules/send (Depends-on): Likewise.
9821         * modules/sendto (Depends-on): Likewise.
9822         * modules/setenv (Depends-on): Likewise.
9823         * modules/setlocale (Depends-on): Likewise.
9824         * modules/setsockopt (Depends-on): Likewise.
9825         * modules/shutdown (Depends-on): Likewise.
9826         * modules/sigaction (Depends-on): Likewise.
9827         * modules/signbit (Depends-on): Likewise.
9828         * modules/sigprocmask (Depends-on): Likewise.
9829         * modules/sinl (Depends-on): Likewise.
9830         * modules/sleep (Depends-on): Likewise.
9831         * modules/snprintf (Depends-on): Likewise.
9832         * modules/snprintf-posix (Depends-on): Likewise.
9833         * modules/socket (Depends-on): Likewise.
9834         * modules/sprintf-posix (Depends-on): Likewise.
9835         * modules/sqrtl (Depends-on): Likewise.
9836         * modules/stat (Depends-on): Likewise.
9837         * modules/strchrnul (Depends-on): Likewise.
9838         * modules/strdup-posix (Depends-on): Likewise.
9839         * modules/strerror (Depends-on): Likewise.
9840         * modules/strerror_r-posix (Depends-on): Likewise.
9841         * modules/strndup (Depends-on): Likewise.
9842         * modules/strnlen (Depends-on): Likewise.
9843         * modules/strptime (Depends-on): Likewise.
9844         * modules/strsep (Depends-on): Likewise.
9845         * modules/strsignal (Depends-on): Likewise.
9846         * modules/strstr-simple (Depends-on): Likewise.
9847         * modules/strtod (Depends-on): Likewise.
9848         * modules/strtoimax (Depends-on): Likewise.
9849         * modules/strtok_r (Depends-on): Likewise.
9850         * modules/strtoumax (Depends-on): Likewise.
9851         * modules/symlink (Depends-on): Likewise.
9852         * modules/symlinkat (Depends-on): Likewise.
9853         * modules/tanl (Depends-on): Likewise.
9854         * modules/tcgetsid (Depends-on): Likewise.
9855         * modules/tmpfile (Depends-on): Likewise.
9856         * modules/trunc (Depends-on): Likewise.
9857         * modules/truncf (Depends-on): Likewise.
9858         * modules/truncl (Depends-on): Likewise.
9859         * modules/uname (Depends-on): Likewise.
9860         * modules/unlink (Depends-on): Likewise.
9861         * modules/unlockpt (Depends-on): Likewise.
9862         * modules/unsetenv (Depends-on): Likewise.
9863         * modules/usleep (Depends-on): Likewise.
9864         * modules/utimensat (Depends-on): Likewise.
9865         * modules/vasprintf (Depends-on): Likewise.
9866         * modules/vdprintf (Depends-on): Likewise.
9867         * modules/vdprintf-posix (Depends-on): Likewise.
9868         * modules/vfprintf-posix (Depends-on): Likewise.
9869         * modules/vprintf-posix (Depends-on): Likewise.
9870         * modules/vsnprintf (Depends-on): Likewise.
9871         * modules/vsnprintf-posix (Depends-on): Likewise.
9872         * modules/vsprintf-posix (Depends-on): Likewise.
9873         * modules/wcrtomb (Depends-on): Likewise.
9874         * modules/wcscasecmp (Depends-on): Likewise.
9875         * modules/wcscspn (Depends-on): Likewise.
9876         * modules/wcsdup (Depends-on): Likewise.
9877         * modules/wcsncasecmp (Depends-on): Likewise.
9878         * modules/wcsnrtombs (Depends-on): Likewise.
9879         * modules/wcspbrk (Depends-on): Likewise.
9880         * modules/wcsrtombs (Depends-on): Likewise.
9881         * modules/wcsspn (Depends-on): Likewise.
9882         * modules/wcsstr (Depends-on): Likewise.
9883         * modules/wcstok (Depends-on): Likewise.
9884         * modules/wcswidth (Depends-on): Likewise.
9885         * modules/wctob (Depends-on): Likewise.
9886         * modules/wctomb (Depends-on): Likewise.
9887         * modules/wctype (Depends-on): Likewise.
9888         * modules/wcwidth (Depends-on): Likewise.
9889         * modules/write (Depends-on): Likewise.
9890
9891 2011-05-03  Bruno Haible  <bruno@clisp.org>
9892
9893         Support for conditional dependencies.
9894         * doc/gnulib.texi (Module description): Document the syntax of
9895         conditional dependencies.
9896         * gnulib-tool: New option --conditional-dependencies.
9897         (func_usage): Document it.
9898         (cond_dependencies): New variable.
9899         (func_get_automake_snippet_conditional,
9900         func_get_automake_snippet_unconditional): New functions, extracted from
9901         func_get_automake_snippet.
9902         (func_get_automake_snippet): Use them.
9903         (sed_first_32_chars): New variable.
9904         (func_module_shellfunc_name): New function.
9905         (func_module_shellvar_name): New function.
9906         (func_module_conditional_name): New function.
9907         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
9908         func_cond_module_condition): New functions.
9909         (func_modules_transitive_closure): Add support for conditional
9910         dependencies.
9911         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9912         conditional automake snippet in an automake conditional.
9913         (func_emit_autoconf_snippets): Emit shell functions that contain the
9914         code for conditional modules.
9915         (func_import, func_create_testdir): Update specification.
9916
9917 2011-05-03  Eric Blake  <eblake@redhat.com>
9918
9919         test-getaddrinfo: report error information
9920         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9921
9922 2011-05-03  Jim Meyering  <meyering@redhat.com>
9923
9924         bootstrap: avoid build failure when $GZIP is set
9925         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9926         program name.  If defined at all, it is supposed to list gzip options.
9927         Reported by Alan Curry in http://debbugs.gnu.org/8609
9928
9929 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9930
9931         readme-release: new module with release instructions
9932         * modules/readme-release: New module.
9933         * top/README-release: New file, from coreutils, grep, diffutils.
9934         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9935
9936 2011-05-02  Eric Blake  <eblake@redhat.com>
9937
9938         fflush: also replace fclose when fixing fflush
9939         * modules/fflush (Depends-on): Add fclose.
9940         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9941         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9942         memstreams with no backing fd.
9943         * doc/posix-functions/fclose.texi (fclose): Document the use of
9944         fflush module to fix the bug.
9945         * tests/test-fclose.c (main): Relax test when fclose is used in
9946         isolation.
9947
9948         fclose: add some tests
9949         * modules/fclose-tests: New test module.
9950         * tests/test-fclose.c: New file.
9951         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9952
9953         fclose: reduced dependencies
9954         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9955         simpler lseek.
9956         * lib/fclose.c (rpl_fclose): Likewise.
9957         Reported by Simon Josefsson.
9958
9959         exit: drop remaining clients
9960         * modules/argmatch (Depends-on): Replace exit with stdlib.
9961         * modules/copy-file (Depends-on): Likewise.
9962         * modules/execute (Depends-on): Likewise.
9963         * modules/exitfail (Depends-on): Likewise.
9964         * modules/obstack (Depends-on): Likewise.
9965         * modules/pagealign_alloc (Depends-on): Likewise.
9966         * modules/pipe-filter-gi (Depends-on): Likewise.
9967         * modules/pipe-filter-ii (Depends-on): Likewise.
9968         * modules/savewd (Depends-on): Likewise.
9969         * modules/spawn-pipe (Depends-on): Likewise.
9970         * modules/wait-process (Depends-on): Likewise.
9971         * modules/xsetenv (Depends-on): Likewise.
9972         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9973         * modules/git-merge-changelog (Depends-on): Likewise.
9974         * modules/long-options (Depends-on): Likewise.
9975         * modules/pt_chown (Depends-on): Likewise.
9976         * modules/sysexits (Depends-on): Likewise.
9977
9978         freading: relax license from LGPLv3+ to LGPLv2+
9979         * modules/freading (License): Relax LGPL version.
9980
9981 2011-05-02  Bruno Haible  <bruno@clisp.org>
9982
9983         fchdir: Remove unused dependencies.
9984         * modules/fchdir (Depends-on): Remove include_next.
9985
9986 2011-05-02  Bruno Haible  <bruno@clisp.org>
9987
9988         gnulib-tool: Refactor.
9989         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9990         from func_emit_autoconf_snippets.
9991         (func_emit_autoconf_snippets): Use it.
9992
9993 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9994
9995         * NEWS: Document removal of 'exit'.
9996         * modules/exit: Remove file.
9997
9998 2011-05-01  Bruno Haible  <bruno@clisp.org>
9999
10000         Update DEPENDENCIES.
10001         * DEPENDENCIES (gettext): Recommend the newest release.
10002         Reported by Simon Josefsson.
10003
10004 2011-05-01  Bruno Haible  <bruno@clisp.org>
10005
10006         gnulib-tool: Reduce code duplication.
10007         * gnulib-tool (func_emit_autoconf_snippets): New function.
10008         (func_import, func_create_testdir): Use it.
10009
10010 2011-04-30  Eric Blake  <eblake@redhat.com>
10011
10012         fclose: don't fail on non-seekable input stream
10013         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10014         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10015         since fflush is allowed to fail in that case.
10016
10017 2011-04-30  Bruno Haible  <bruno@clisp.org>
10018
10019         dup3: cleanup
10020         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10021
10022 2011-04-30  Bruno Haible  <bruno@clisp.org>
10023
10024         netdb: Make it work in C++ mode.
10025         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10026         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10027         module.
10028         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10029         gl_MODULE_INDICATOR_FOR_TESTS.
10030         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10031         * modules/netdb-c++-tests: New file.
10032         * tests/test-netdb-c++.cc: New file.
10033
10034 2011-04-30  Bruno Haible  <bruno@clisp.org>
10035
10036         New modules 'vfscanf', 'vscanf'.
10037         * modules/vfscanf: New file.
10038         * modules/vscanf: New file.
10039         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10040         here.
10041         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10042         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10043
10044 2011-04-30  Bruno Haible  <bruno@clisp.org>
10045
10046         passfd: Add comments.
10047         * lib/passfd.c: Add comments about platforms.
10048
10049 2011-04-30  Bruno Haible  <bruno@clisp.org>
10050
10051         sys_uio: Make <sys/uio.h> self-contained.
10052         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10053         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10054
10055 2011-04-30  Bruno Haible  <bruno@clisp.org>
10056
10057         sys_socket: Ensure 'struct iovec' definition.
10058         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10059         <sys/socket.h>.
10060         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10061
10062 2011-04-30  Bruno Haible  <bruno@clisp.org>
10063
10064         sys_uio: Protect definition of 'struct iovec'.
10065         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10066         it as a C struct.
10067
10068 2011-04-30  Bruno Haible  <bruno@clisp.org>
10069
10070         manywarnings: fix indentation
10071         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10072
10073 2011-04-30  Pádraig Brady <P@draigBrady.com>
10074
10075         manywarnings: add -Wno-missing-field-initializers if needed.
10076         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10077         option if it's needed to allow initialization with { 0, }
10078
10079 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10080
10081         announce-gen: cosmetic improvement
10082         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10083
10084 2011-04-29  Jim Meyering  <meyering@redhat.com>
10085
10086         vc-list-files: indent with spaces, not TABs
10087         * build-aux/vc-list-files: Convert leading TABs to spaces,
10088         to match the style of most other files in gnulib.
10089
10090         announce-gen: indent with spaces, not TABs
10091         * build-aux/announce-gen: Convert all TABs to spaces, to match
10092         the style of most other files in gnulib.
10093
10094 2011-04-29  Eric Blake  <eblake@redhat.com>
10095
10096         quotearg: avoid uninitialized variable use
10097         * lib/quotearg.c (quoting_options_from_style): Initialize
10098         remaining fields, and ensure that custom styles are only used via
10099         quoting_options rather than quoting_style.
10100
10101 2011-04-29  Jim Meyering  <meyering@redhat.com>
10102
10103         maint.mk: remove unused VC-tag variable
10104         * top/maint.mk (VC-tag): Remove unused variable.
10105
10106 2011-04-29  Bruno Haible  <bruno@clisp.org>
10107
10108         netdb: fix gai_strerror replacements
10109         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10110         * modules/netdb: Substitute it.
10111
10112 2011-04-29  Jim Meyering  <meyering@redhat.com>
10113
10114         test-getcwd.c: avoid new set-but-not-used warning
10115         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10116         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10117         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10118         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10119
10120         test-hash.c: avoid a new shadowing warning
10121         * tests/test-hash.c (main): Don't shadow "dup".
10122
10123 2011-04-28  Eric Blake  <eblake@redhat.com>
10124
10125         getaddrinfo: fix gai_strerror signature
10126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10127         and work around mingw with UNICODE defined.
10128         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10129         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10130         * modules/netdb (Makefile.am): Substitute it.
10131         * lib/netdb.in.h (gai_strerror): Declare replacement.
10132         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10133         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10134         the fix.
10135
10136         getsockopt: avoid compiler warning
10137         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10138         Reported by Matthias Bolte.
10139
10140         tests: drop unused link dependency
10141         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10142         * modules/dirent-safer-tests (Makefile.am): Likewise.
10143         * modules/fdopendir-tests (Makefile.am): Likewise.
10144         * modules/mkfifoat-tests (Makefile.am): Likewise.
10145         * modules/openat-safer-tests (Makefile.am): Likewise.
10146         * modules/openat-tests (Makefile.am): Likewise.
10147         * modules/readlinkat-tests (Makefile.am): Likewise.
10148         * modules/symlinkat-tests (Makefile.am): Likewise.
10149         * modules/linkat-tests (Makefile.am): Likewise.
10150         (Depends-on): Switch to filenamecat-lgpl.
10151         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10152         LIBINTL.
10153         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10154         * tests/test-linkat.c (main): Don't require xalloc.
10155
10156         hash, mgetgroups: drop xalloc dependency
10157         * lib/hash.c (includes): Adjust includes.
10158         * lib/mgetgroups.c (includes): Likewise.
10159         (xgetgroups): Move...
10160         * lib/xgetgroups.c: ...to new file.
10161         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10162         * modules/xgetgroups: New file, split from...
10163         * modules/mgetgroups: ...here.
10164         (Depends-on): Add xalloc-oversized.
10165         * modules/hash (Depends-on): Likewise.
10166         * modules/hash-tests (Depends-on): Drop xalloc.
10167         (test_hash_LDADD): Drop unused library.
10168         * tests/test-hash.c (main): Break xalloc dependency.
10169         (includes): Drop unused include.
10170
10171         xalloc-oversized: new module
10172         * modules/xalloc-oversized: New module.
10173         * modules/xalloc (Depends-on): Add it.
10174         * lib/xalloc.h (xalloc_oversized): Move...
10175         * lib/xalloc-oversized.h: ...into new file.
10176
10177         utimecmp: drop dependency on xmalloc
10178         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10179         due to memory pressure.
10180         * modules/utimecmp (Depends-on): Drop xalloc.
10181
10182 2011-04-27  Eric Blake  <eblake@redhat.com>
10183
10184         getcwd: fix mingw bugs
10185         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10186         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10187         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10188
10189 2011-04-27  Bruno Haible  <bruno@clisp.org>
10190
10191         mkstemps: Ensure declaration on MacOS X 10.5.
10192         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10193         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10194         MacOS X.
10195
10196 2011-04-27  Bruno Haible  <bruno@clisp.org>
10197
10198         mkstemp: More documentation.
10199         * doc/posix-functions/mkstemp.texi: Document header file problem on
10200         MacOS X.
10201
10202 2011-04-27  Bruno Haible  <bruno@clisp.org>
10203
10204         mkstemp: Tweak configure message when cross-compiling.
10205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10206         result as a guess.
10207
10208 2011-04-27  Bruno Haible  <bruno@clisp.org>
10209
10210         clean-temp: Clarify what it does.
10211         * lib/clean-temp.h: Add more comments.
10212         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10213         module.
10214         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10215         * doc/glibc-functions/mkstemps.texi: Likewise.
10216         * doc/glibc-functions/mkostemps.texi: Likewise.
10217
10218 2011-04-27  Eric Blake  <eblake@redhat.com>
10219
10220         fchdir: avoid extra chdir and fix test
10221         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10222         getcwd-lgpl.
10223         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10224         have to be canonical.
10225         (canonicalize_file_name): Drop unused macro.
10226         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10227
10228         filenamecat-lgpl: fix licence
10229         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10230         when it was first created.
10231
10232         linkat, renameat: add missing dependency
10233         * modules/linkat (Depends-on): Require getcwd-lgpl.
10234         * modules/renameat (Depends-on): Likewise.
10235
10236         tests: reduce dependencies
10237         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10238         * tests/test-renameat.c (main): Likewise.
10239         * modules/linkat-tests (Depends-on): Relax dependency.
10240         * modules/renameat-tests (Depends-on): Likewise.
10241         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10242         dependency explicit.
10243
10244         save-cwd: reduce default dependency
10245         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10246         * lib/save-cwd.c: Update comments.
10247         * NEWS: Document the semantic change.
10248
10249         getcwd: enhance tests
10250         * tests/test-getcwd-lgpl.c: New file, taken from...
10251         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10252         repeat long path stress tests from m4 probe.
10253         * modules/getcwd-lgpl-tests: New module.
10254         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10255         * m4/getcwd-abort-bug.m4: Update comment.
10256         * m4/getcwd-path-max.m4: Likewise.
10257
10258         getcwd-lgpl: new module
10259         * modules/getcwd-lgpl: New module.
10260         * lib/getcwd-lgpl.c: New file.
10261         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10262         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10263         * modules/getcwd (configure.ac): Set C witness.
10264         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10265
10266         getcwd: tweak comments
10267         * m4/getcwd-abort-bug.m4: Fix comments.
10268         * m4/getcwd-path-max.m4: Likewise.
10269         * m4/getcwd.m4: Likewise.
10270
10271 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10272         and Eric Blake  <eblake@redhat.com>
10273
10274         mkstemp: replace if system version uses wrong permissions
10275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10276         read/write mode bits set in file created by mkstemp.
10277         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10278
10279 2011-04-27  Eric Blake  <eblake@redhat.com>
10280
10281         passfd: avoid compiler warning
10282         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10283         Reported by Laine Stump.
10284
10285 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10286
10287         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10288         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10289
10290 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10291         and Eric Blake  <eblake@redhat.com>
10292
10293         mkstemp: mention clean-temp module
10294         * lib/mkstemp.c: Add comment.
10295         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10296
10297 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10298
10299         inttypes: also provide default values for 32-bit tests
10300         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10301         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10302
10303 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10304
10305         strtoumax: remove dependency on strtoimax
10306         This is like the strtoull change of yesterday.
10307         * modules/strtoumax (Files): Add lib/strtoimax.c.
10308         (Depends-on): Remove strtoimax and add verify.
10309
10310         inttypes-incomplete: new module
10311         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10312         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10313         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10314         of gl_INTTYPES_H.
10315         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10316         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10317         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10318         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10319         * modules/strtoumax, modules/xstrtol (Depends-on):
10320         Depend on inttypes-incomplete, not inttypes.
10321         * modules/inttypes-incomplete: New module, containing the contents
10322         of the old modules/inttypes module, except that the Files: section
10323         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10324         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10325         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10326         (Depends-on): Depend only on inttypes-incomplete.
10327         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10328
10329         inttypes: omit now-redundant strtoimax and strtoumax work
10330         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10331         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10332
10333         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10334         This supports apps that need pointers to strtoimax and strtoumax,
10335         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10336         nonexistent functions.  See
10337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10338         et seq.
10339         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10340         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10341         a macro.
10342         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10343
10344 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10345
10346         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10347
10348 2011-04-25  Bruno Haible  <bruno@clisp.org>
10349
10350         strtol, strtoul: Mark modules as obsolete.
10351         * modules/strtol (Status, Notice): New sections.
10352         * modules/strtoul (Status, Notice): New sections.
10353
10354 2011-04-25  Bruno Haible  <bruno@clisp.org>
10355
10356         strtod: Remove check for strtod, unless supporting old platforms.
10357         * modules/strtod-obsolete: New file.
10358         * m4/strtod-obsolete.m4: New file.
10359         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10360         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10361         * modules/strtod (Depends-on): Add strtod-obsolete.
10362         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10363
10364 2011-04-25  Bruno Haible  <bruno@clisp.org>
10365
10366         strcase: Make module obsolete.
10367         * modules/strcase (Status, Notice): New sections.
10368
10369 2011-04-25  Bruno Haible  <bruno@clisp.org>
10370
10371         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10372         * modules/dup2-obsolete: New file.
10373         * m4/dup2-obsolete.m4: New file.
10374         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10375         gl_FUNC_DUP2_OBSOLETE is not also defined.
10376         * modules/dup2 (Depends-on): Add dup2-obsolete.
10377         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10378
10379 2011-04-25  Bruno Haible  <bruno@clisp.org>
10380
10381         strnlen: Avoid memchr related link error on old obsolete platforms.
10382         * modules/memchr-obsolete: New file.
10383         * m4/memchr-obsolete.m4: New file.
10384         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10385         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10386         * modules/memchr (Depends-on): Add memchr-obsolete.
10387         * modules/strnlen (Depends-on): Likewise.
10388         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10389
10390 2011-04-25  Jim Meyering  <meyering@redhat.com>
10391
10392         maint.mk: makefile_at_at_check extend and clean up
10393         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10394         in addition to */Makefile.am.
10395         Exempt legitimate uses of @VAR@ notation, e.g.,
10396         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10397         Remove obsolete coreutils-specific comment.
10398         Prompted by discussion here:
10399         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10400
10401 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10402
10403         strtoul: remove dependency on strtol
10404         This is so that 'configure' need not check for strtol merely because
10405         the application needs strtoul.
10406         * modules/strtoul (Files): Add lib/strtol.c.
10407         (Depends-on): Remove strtol.
10408
10409         strtoull: remove dependency on strtoul
10410         This is like the strtoll change.
10411         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10412         (Depends-on): Remove strtoul.
10413
10414         strtoll: remove dependency on strtol
10415         This is so that 'configure' need not check for strtol merely because
10416         the application needs strtoll.
10417         * modules/strtoll (Files): Add lib/strtol.c.
10418         (Depends-on): Remove strtol.
10419
10420 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10421
10422         inttypes: Move some configure check to module 'imaxdiv'.
10423         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10424         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10425         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10426
10427 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10428
10429         inttypes: Move some configure check to module 'imaxabs'.
10430         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10431         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10432         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10433
10434 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10435
10436         inttypes: Remove configure tests that are not needed since 2009-12-31.
10437         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10438         gl_cv_header_working_inttypes_h.
10439
10440 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10441
10442         * modules/strnlen (Depends-on): Remove memchr.
10443         The strnlen implementation doesn't need the memchr module's fixes; see
10444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10445
10446         strtol: remove dependency on wchar
10447         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10448         * modules/strtol (Depends-on): Remove wchar.
10449
10450 2011-04-21  Eric Blake  <eblake@redhat.com>
10451
10452         passfd: fix test regression on Linux
10453         * modules/passfd-tests (configure.ac): Correct socketpair check.
10454
10455         passfd: speed up configure and drop unused code
10456         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10457         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10458         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10459         Instead of probing at configure for unix_scm_rights_bsd44_way,
10460         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10461         check to a struct member probe.
10462         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10463         (sendfd, recvfd): Update preprocessor checks.
10464         * modules/passfd (Files): Reflect rename, and drop unused file.
10465         (Depends-on): Drop unused dependency.
10466
10467         passfd: allow compilation on mingw
10468         * modules/sys_socket (Depends-on): Add sys_uio.
10469         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10470         iovec and a minimal struct msghdr.
10471         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10472         * tests/test-sys_socket.c (main): Enhance test.
10473         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10474         guaranteed to provide what we need.
10475         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10476         * modules/passfd-tests (Depends-on): Add sys_wait.
10477         * tests/test-passfd.c (main): Skip test on mingw, for now.
10478         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10479         partial 'struct msghdr' implementation.
10480
10481         sys_uio: new module
10482         * modules/sys_uio: New module.
10483         * modules/sys_uio-tests: Likewise.
10484         * lib/sys_uio.in.h: New file.
10485         * m4/sys_uio_h.m4: Likewise.
10486         * tests/test-sys_uio.c: Likewise.
10487         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10488         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10489
10490 2011-04-20  Jim Meyering  <meyering@redhat.com>
10491
10492         useless-if-before-free: avoid false-positive
10493         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10494         disjunct so that it too requires a terminating ";".  Without that,
10495         this script would identify as useless one statement from gcc that
10496         was not:
10497           if (aligned_ptr)
10498             free (((void **) aligned_ptr) [-1]);
10499
10500 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10501
10502         doc: update users.txt.
10503         * users.txt: Add barcode.
10504
10505 2011-04-19  Bruno Haible  <bruno@clisp.org>
10506
10507         ioctl: Remove link dependency on native Windows.
10508         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10509         (gl_close_fn, gl_ioctl_fn): New types.
10510         (struct fd_hook): Renamed from struct close_hook. Change type of
10511         private_close_fn field. Add private_ioctl_fn field.
10512         (close_hook_fn): Add parameter for primary close method.
10513         (execute_close_hooks, execute_all_close_hooks): Likewise.
10514         (ioctl_hook_fn): New type.
10515         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10516         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10517         argument.
10518         (unregister_fd_hook): Renamed from unregister_close_hook.
10519         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10520         Don't include <unistd.h>.
10521         (close): Remove undef.
10522         (anchor): Update.
10523         (execute_close_hooks): Add argument for primary close method.
10524         (execute_all_close_hooks): Likewise.
10525         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10526         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10527         argument. Allow each argument to be NULL.
10528         (unregister_fd_hook): Renamed from unregister_close_hook.
10529         * lib/close.c (rpl_close): Pass 'close' function pointer to
10530         execute_all_close_hooks.
10531         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10532         (primary_ioctl): New function.
10533         (ioctl): Don't call ioctlsocket here. Instead, call
10534         execute_all_ioctl_hooks.
10535         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10536         close method.
10537         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10538         (fd_sockets_hook): Renamed from close_sockets_hook.
10539         (gl_sockets_startup, gl_sockets_cleanup): Update.
10540         * modules/fd-hook: Renamed from modules/close-hook. Update.
10541         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10542         * modules/sockets (Depends-on): Likewise.
10543         * modules/ioctl (Depends-on): Add fd-hook.
10544         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10545         GNULIB_SOCKET.
10546
10547 2011-04-19  Bruno Haible  <bruno@clisp.org>
10548
10549         Move the support of O_NONBLOCK in open() to the 'open' module.
10550         * modules/nonblocking (Depends-on): Remove 'open'.
10551         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10552         gl_cv_have_open_O_NONBLOCK.
10553         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10554         O_NONBLOCK support.
10555         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10556
10557 2011-04-17  Bruno Haible  <bruno@clisp.org>
10558
10559         pipe2: Simplify code.
10560         * lib/pipe2.c (pipe2): Reduce code duplication.
10561
10562 2011-04-17  Bruno Haible  <bruno@clisp.org>
10563
10564         nonblocking: Add comment.
10565         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10566
10567 2011-04-17  Bruno Haible  <bruno@clisp.org>
10568
10569         nonblocking: Add tests for sockets.
10570         * tests/test-nonblocking-socket.sh: New file.
10571         * tests/test-nonblocking-socket-main.c: New file.
10572         * tests/test-nonblocking-socket-child.c: New file.
10573         * tests/test-nonblocking-socket.h: New file.
10574         * tests/socket-server.h: New file.
10575         * tests/socket-client.h: New file.
10576         * modules/nonblocking-socket-tests: New file.
10577         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10578
10579 2011-04-17  Bruno Haible  <bruno@clisp.org>
10580
10581         nonblocking: Add tests for pipes.
10582         * tests/test-nonblocking-pipe.sh: New file.
10583         * tests/test-nonblocking-pipe-main.c: New file.
10584         * tests/test-nonblocking-pipe-child.c: New file.
10585         * tests/test-nonblocking-pipe.h: New file.
10586         * tests/test-nonblocking-writer.h: New file.
10587         * tests/test-nonblocking-reader.h: New file.
10588         * tests/test-nonblocking-misc.h: New file.
10589         * modules/nonblocking-pipe-tests: New file.
10590         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10591
10592 2011-04-16  Bruno Haible  <bruno@clisp.org>
10593
10594         gettext: Clarify the needed programmer actions.
10595         * modules/gettext (Notice): New field.
10596         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10597
10598 2011-04-16  Bruno Haible  <bruno@clisp.org>
10599
10600         strchrnul: Tweak last commit.
10601         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10602         bug.
10603         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10604         as in _GL_FUNCDECL_SYS.
10605         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10606         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10607
10608 2011-04-15  Eric Blake  <eblake@redhat.com>
10609
10610         strchrnul: work around cygwin bug
10611         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10612         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10614         * modules/string (Makefile.am): Substitute it.
10615         * lib/string.in.h (strchrnul): Use it.
10616
10617 2011-04-15  Bruno Haible  <bruno@clisp.org>
10618
10619         Don't require lib/stdio-write.c when only module 'stdio' is used.
10620         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10621         invocation.
10622         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10623
10624 2011-04-14  Bruno Haible  <bruno@clisp.org>
10625
10626         Support non-blocking pipe I/O in read() on native Windows.
10627         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10628         (read): New declaration.
10629         * lib/read.c: New file.
10630         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10631         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10632         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10633         vscanf): New declarations.
10634         * lib/stdio-read.c: New file.
10635         * m4/read.m4: New file.
10636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10637         REPLACE_READ.
10638         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10639         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10640         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10641         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10642         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10643         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10644         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10645         * modules/read: New file.
10646         * modules/nonblocking (Files): Add lib/stdio-read.c.
10647         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10648         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10649         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10650         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10651         * modules/pread (Depends-on): Add read.
10652         * modules/safe-read (Depends-on): Likewise.
10653         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10654         gets, scanf, vfscanf, vscanf): Verify signatures.
10655         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10656         problem with non-blocking pipes.
10657         * doc/posix-functions/fgetc.texi: Likewise.
10658         * doc/posix-functions/fgets.texi: Likewise.
10659         * doc/posix-functions/fread.texi: Likewise.
10660         * doc/posix-functions/fscanf.texi: Likewise.
10661         * doc/posix-functions/getc.texi: Likewise.
10662         * doc/posix-functions/getchar.texi: Likewise.
10663         * doc/posix-functions/gets.texi: Likewise.
10664         * doc/posix-functions/scanf.texi: Likewise.
10665         * doc/posix-functions/vfscanf.texi: Likewise.
10666         * doc/posix-functions/vscanf.texi: Likewise.
10667
10668 2011-04-14  Bruno Haible  <bruno@clisp.org>
10669
10670         Support non-blocking pipe I/O in write() on native Windows.
10671         * lib/write.c (rpl_write): Split a write request that failed merely
10672         because the byte count was larger than the pipe buffer's size.
10673         * doc/posix-functions/write.texi: Mention the problem with large byte
10674         counts.
10675
10676 2011-04-14  Bruno Haible  <bruno@clisp.org>
10677
10678         wchar: Ensure that wchar_t gets defined on uClibc.
10679         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10680         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10681
10682 2011-04-13  Bruno Haible  <bruno@clisp.org>
10683
10684         safe-write, full-read: Avoid unnecessary compilation units.
10685         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10686         (Depends-on): Remove safe-read. Add ssize_t.
10687         * modules/full-read (Files): Add lib/full-write.c.
10688         (Depends-on): Add full-write.
10689
10690 2011-04-13  Bruno Haible  <bruno@clisp.org>
10691
10692         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10693         * modules/pwrite (Depends-on): Add 'write'.
10694
10695 2011-04-13  Bruno Haible  <bruno@clisp.org>
10696
10697         Support non-blocking pipe I/O in write() on native Windows.
10698         * lib/unistd.in.h (write): Enable replacement also if
10699         GNULIB_UNISTD_H_NONBLOCKING is 1.
10700         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10701         (rpl_write): When failing to write on a non-blocking pipe, change
10702         errno from ENOSPC to EAGAIN.
10703         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10704         putchar, puts, vfprintf, vprintf): Enable replacement also if
10705         GNULIB_STDIO_H_NONBLOCKING is 1.
10706         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10707         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10708         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10709         CALL_WITH_SIGPIPE_EMULATION.
10710         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10711         * m4/nonblocking.m4: New file.
10712         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10713         for non-blocking I/O support.
10714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10715         GNULIB_UNISTD_H_NONBLOCKING.
10716         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10717         required for non-blocking I/O support.
10718         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10719         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10720         lib/stdio-write.c, m4/asm-underscore.m4.
10721         (Depends-on): Add stdio, unistd.
10722         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10723         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10724         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10725         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10726         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10727         problem with non-blocking pipes.
10728         * doc/posix-functions/fputc.texi: Likewise.
10729         * doc/posix-functions/fputs.texi: Likewise.
10730         * doc/posix-functions/fwrite.texi: Likewise.
10731         * doc/posix-functions/printf.texi: Likewise.
10732         * doc/posix-functions/putc.texi: Likewise.
10733         * doc/posix-functions/putchar.texi: Likewise.
10734         * doc/posix-functions/puts.texi: Likewise.
10735         * doc/posix-functions/vfprintf.texi: Likewise.
10736         * doc/posix-functions/vprintf.texi: Likewise.
10737         * doc/posix-functions/write.texi: Likewise.
10738
10739 2011-04-10  Jim Meyering  <meyering@redhat.com>
10740
10741         maint.mk: prohibit doubled words
10742         Detect them also when they're separated by a newline.
10743         There are 3 ways to customize it:
10744           - disable the test on a per file basis, as usual with rules using
10745             $(VC_LIST_EXCEPT)
10746           - replace the default doubled-word-selecting regexp (affects all files)
10747           - ignore a particular file-vs-doubled-word match
10748         I nearly used that last one to ignore the "is is" match in
10749         coreutils' NEWS file, since the text was "ls -is is ..."
10750         To do that, I would have added this line to cfg.mk:
10751           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10752         but it would have ignored any "is is" match in NEWS.
10753         Low probability, but still...
10754         Instead, I changed the text, slightly:
10755           -  ls -is is now consistent with ls -lis in ignoring values returned
10756           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10757         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10758         (prohibit_doubled_word_): Define.
10759         (sc_prohibit_doubled_word): New rule.
10760         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10761
10762 2011-04-10  Jim Meyering  <meyering@redhat.com>
10763
10764         maint: fix doubled-word typo in comment
10765         * m4/gethostname.m4: s/is is/it is/
10766         * m4/getdomainname.m4: Likewise.
10767
10768 2011-04-10  Jim Meyering  <meyering@redhat.com>
10769
10770         maint: remove doubled word: s/it it/it/
10771         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10772
10773 2011-04-10  Jim Meyering  <meyering@redhat.com>
10774
10775         maint.mk: remove useless semicolon and backslash
10776         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10777         semicolon and backslash.
10778
10779 2011-04-10  Bruno Haible  <bruno@clisp.org>
10780
10781         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10782         * modules/stdint-tests (Depends-on): Add wchar.
10783
10784 2011-04-10  Jim Meyering  <meyering@redhat.com>
10785
10786         maint: remove doubled words in comments, e.g., s/a a/a/
10787         * lib/strptime.c (day_of_the_week): s/the the/the/
10788         * tests/test-chown.h (test_chown): s/a a/a/
10789
10790         test-chown.h: correct a cast
10791         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10792         when the destination is a stat.st_gid.
10793
10794 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10795
10796         getaddrinfo: Fix test for sa_len member.
10797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10798         include <sys/types.h> before <sys/socket.h>.
10799
10800 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10801
10802         maint: change "can not" to "cannot"
10803         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10804         boundaries.
10805
10806 2011-04-09  Jim Meyering  <meyering@redhat.com>
10807
10808         maint: change "a a" to "a"
10809         * tests/test-lchown.h (test_lchown): s/a a/a/
10810
10811         maint.mk: prohibit \<the the\>
10812         * top/maint.mk (sc_prohibit_the_the): New rule.
10813
10814         maint: fix "the the" in comment
10815         * lib/count-one-bits.h: s/the the/the/
10816
10817         maint: change "can not" to "cannot"
10818         But do not change the occurrences in maintain.texi or in
10819         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10820         * doc/gnulib-tool.texi: s/can not/cannot/
10821         * doc/posix-functions/accept.texi (accept): Likewise.
10822         * doc/posix-functions/socket.texi (socket): Likewise.
10823         * lib/mbrtowc.c: Likewise.
10824
10825         maint.mk: prohibit use of "can not"
10826         * top/maint.mk (sc_prohibit_can_not): New rule.
10827         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10828
10829 2011-04-09  Bruno Haible  <bruno@clisp.org>
10830
10831         careadlinkat: Guard against misuse of careadlinkatcwd.
10832         * lib/careadlinkat.c: Include <stdlib.h>.
10833         (careadlinkatcwd): Check that the fd argument is as expected.
10834
10835 2011-04-09  Bruno Haible  <bruno@clisp.org>
10836
10837         careadlinkat: Use common coding style.
10838         * lib/careadlinkat.c: Move gnulib includes after system includes.
10839
10840 2011-04-09  Bruno Haible  <bruno@clisp.org>
10841
10842         careadlinkat: Clarify specification.
10843         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10844         (careadlinkatcwd): Add comment.
10845         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10846
10847 2011-04-09  Bruno Haible  <bruno@clisp.org>
10848
10849         areadlinkat: Avoid link error on many platforms.
10850         * modules/areadlinkat (Depends-on): Add areadlink.
10851
10852 2011-04-09  Bruno Haible  <bruno@clisp.org>
10853
10854         allocator, careadlinkat: Fix double-inclusion guard.
10855         * lib/allocator.h: Fix double-inclusion guard.
10856         * lib/careadlinkat.h: Likewise.
10857
10858 2011-04-09  Bruno Haible  <bruno@clisp.org>
10859
10860         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10861         * lib/relocwrapper.c: Update dependencies hierarchy.
10862         * build-aux/install-reloc: Update list of files to be compiled.
10863         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10864         lib/allocator.[hc].
10865
10866 2011-04-08  Eric Blake  <eblake@redhat.com>
10867
10868         strftime: silence gnulib-tool warning
10869         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10870
10871 2011-04-08  Bruno Haible  <bruno@clisp.org>
10872
10873         verify: Fix syntax error with GCC 4.6 in C++ mode.
10874         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
10875         (HAVE_STATIC_ASSERT): New macro.
10876         (verify_true, verify): Use 'static_assert' if it is supported and
10877         '_Static_assert' is not supported.
10878
10879 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10880
10881         allocator: New module.
10882         * modules/allocator, lib/allocator.c: New files.
10883         * lib/allocator.h (stdlib_allocator): New decl.
10884         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
10885         Remove.  Do not include <stdlib.h>.
10886         (careadlinkat): Use stdlib_allocator instead of rolling our own.
10887         * modules/careadlinkat (Files): Remove lib/allocator.h.
10888         (Depends-on): Add allocator.
10889
10890         stdlib: let modules use system malloc, realloc
10891         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
10892         if !_GL_USE_STDLIB_ALLOC.
10893         (malloc, realloc): Limit this change to a smaller scope.
10894
10895         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
10896         (malloc, realloc): Don't #undef; no longer needed.
10897         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10898         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10899         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10900         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10901         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10902         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10903         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10904         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10905
10906         careadlinkat: rename members to avoid problem
10907         * lib/allocator.h (struct allocator): Rename members from
10908         malloc/realloc to allocate/reallocate, to avoid problems if malloc
10909         and realloc are #define'd.  Reported by Eric Blake in
10910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
10911         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10912
10913 2011-04-08  Eric Blake  <eblake@redhat.com>
10914
10915         nonblocking: reduce dependency
10916         * tests/test-nonblocking.c: Only test sockets when in use.
10917         * modules/nonblocking-tests (Depends-on): Drop socket.
10918         (Makefile.am): Link even if sockets are not present.
10919         * modules/pipe2-tests (Makefile.am): Likewise.
10920         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10921
10922         pipe2: fix O_NONBLOCK support on mingw
10923         * modules/pipe2 (Depends-on): Add nonblocking.
10924         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10925         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10926         * tests/test-nonblocking.c (main): Likewise.
10927         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10928
10929         fcntl-h: fix O_ACCMODE on cygwin
10930         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10931         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10932
10933         pipe-filter: drop O_NONBLOCK workarounds
10934         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10935         * modules/pipe-filter-ii (Depends-on): Likewise.
10936         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10937
10938         nonblocking: provide O_NONBLOCK for mingw
10939         * modules/nonblocking (Depends-on): Add open.
10940         (configure.ac): Set new witness macro.
10941         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10942         * modules/fcntl-h (Makefile.am): Substitute it.
10943         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10944         nonblocking module is in use.
10945         * lib/nonblocking.c: Adjust portability test.
10946         * lib/open.c (open): Don't let native open see gnulib flag.
10947         * tests/test-fcntl-h.c (main): Enhance test.
10948         * tests/test-open.h (test_open): Likewise.
10949         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10950
10951         careadlinkat: fix compilation error on mingw
10952         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10953         within struct allocator.
10954
10955 2011-04-06  Eric Blake  <eblake@redhat.com>
10956
10957         binary-io: relicense under LGPLv2+
10958         * modules/binary-io (License): Relax to LGPLv2+.
10959         Requested for libvirt, and required by pipe2.
10960
10961 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10962
10963         verify: use _Static_assert if available
10964         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10965         (verify_true, verify): Use it if available.  This generates better
10966         diagnostics with GCC 4.6.0 and later.
10967
10968 2011-04-05  Bruno Haible  <bruno@clisp.org>
10969
10970         Remove leftover generated .h files after config.status changed.
10971
10972         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10973         GL_GENERATE_ALLOCA_H.
10974         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10975         GL_GENERATE_ALLOCA_H evaluates to false.
10976
10977         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10978         GL_GENERATE_ARGZ_H.
10979         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10980         evaluates to false.
10981
10982         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10983         GL_GENERATE_BYTESWAP_H.
10984         * modules/byteswap (Makefile.am): Remove byteswap.h if
10985         GL_GENERATE_BYTESWAP_H evaluates to false.
10986
10987         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10988         GL_GENERATE_ERRNO_H.
10989         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10990         evaluates to false.
10991
10992         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10993         GL_GENERATE_FLOAT_H.
10994         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10995         evaluates to false.
10996
10997         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10998         GL_GENERATE_FNMATCH_H.
10999         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11000         GL_GENERATE_FNMATCH_H evaluates to false.
11001
11002         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11003         GL_GENERATE_GLOB_H.
11004         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11005         evaluates to false.
11006
11007         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11008         automake conditional GL_GENERATE_ICONV_H.
11009         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11010         evaluates to false.
11011
11012         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11013         GL_GENERATE_NETINET_IN_H.
11014         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11015         GL_GENERATE_NETINET_IN_H evaluates to false.
11016
11017         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11018         conditional GL_GENERATE_PTHREAD_H.
11019         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11020         * modules/pthread (Makefile.am): Remove pthread.h if
11021         GL_GENERATE_PTHREAD_H evaluates to false.
11022
11023         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11024         GL_GENERATE_SCHED_H.
11025         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11026         evaluates to false.
11027
11028         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11029         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11030         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11031         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11032
11033         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11034         GL_GENERATE_STDARG_H.
11035         * modules/stdarg (Makefile.am): Remove stdarg.h if
11036         GL_GENERATE_STDARG_H evaluates to false.
11037
11038         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11039         GL_GENERATE_STDBOOL_H.
11040         * modules/stdbool (Makefile.am): Remove stdbool.h if
11041         GL_GENERATE_STDBOOL_H evaluates to false.
11042
11043         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11044         conditional GL_GENERATE_STDDEF_H.
11045         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11046         * modules/stddef (Makefile.am): Remove stddef.h if
11047         GL_GENERATE_STDDEF_H evaluates to false.
11048
11049         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11050         GL_GENERATE_STDINT_H.
11051         * modules/stdint (Makefile.am): Remove stdint.h if
11052         GL_GENERATE_STDINT_H evaluates to false.
11053
11054         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11055         GL_GENERATE_SYSEXITS_H.
11056         * modules/sysexits (Makefile.am): Remove sysexits.h if
11057         GL_GENERATE_SYSEXITS_H evaluates to false.
11058
11059         Reported by Karl Berry and Ralf Wildenhues.
11060
11061 2011-04-05  Bruno Haible  <bruno@clisp.org>
11062
11063         Ensure to rebuild generated .h files when config.status has changed.
11064         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11065         config.status.
11066         * modules/ctype (Makefile.am): Likewise.
11067         * modules/dirent (Makefile.am): Likewise.
11068         * modules/errno (Makefile.am): Likewise.
11069         * modules/fcntl-h (Makefile.am): Likewise.
11070         * modules/float (Makefile.am): Likewise.
11071         * modules/getopt-posix (Makefile.am): Likewise.
11072         * modules/glob (Makefile.am): Likewise.
11073         * modules/iconv-h (Makefile.am): Likewise.
11074         * modules/inttypes (Makefile.am): Likewise.
11075         * modules/langinfo (Makefile.am): Likewise.
11076         * modules/locale (Makefile.am): Likewise.
11077         * modules/math (Makefile.am): Likewise.
11078         * modules/netdb (Makefile.am): Likewise.
11079         * modules/netinet_in (Makefile.am): Likewise.
11080         * modules/poll-h (Makefile.am): Likewise.
11081         * modules/pthread (Makefile.am): Likewise.
11082         * modules/pty (Makefile.am): Likewise.
11083         * modules/sched (Makefile.am): Likewise.
11084         * modules/search (Makefile.am): Likewise.
11085         * modules/selinux-h (Makefile.am): Likewise.
11086         * modules/signal (Makefile.am): Likewise.
11087         * modules/spawn (Makefile.am): Likewise.
11088         * modules/stdarg (Makefile.am): Likewise.
11089         * modules/stdbool (Makefile.am): Likewise.
11090         * modules/stddef (Makefile.am): Likewise.
11091         * modules/stdint (Makefile.am): Likewise.
11092         * modules/stdio (Makefile.am): Likewise.
11093         * modules/stdlib (Makefile.am): Likewise.
11094         * modules/string (Makefile.am): Likewise.
11095         * modules/strings (Makefile.am): Likewise.
11096         * modules/sys_file (Makefile.am): Likewise.
11097         * modules/sys_ioctl (Makefile.am): Likewise.
11098         * modules/sys_select (Makefile.am): Likewise.
11099         * modules/sys_socket (Makefile.am): Likewise.
11100         * modules/sys_stat (Makefile.am): Likewise.
11101         * modules/sys_time (Makefile.am): Likewise.
11102         * modules/sys_times (Makefile.am): Likewise.
11103         * modules/sys_utsname (Makefile.am): Likewise.
11104         * modules/sys_wait (Makefile.am): Likewise.
11105         * modules/sysexits (Makefile.am): Likewise.
11106         * modules/termios (Makefile.am): Likewise.
11107         * modules/time (Makefile.am): Likewise.
11108         * modules/unistd (Makefile.am): Likewise.
11109         * modules/wchar (Makefile.am): Likewise.
11110         * modules/wctype-h (Makefile.am): Likewise.
11111         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11112
11113 2011-04-05  Bruno Haible  <bruno@clisp.org>
11114
11115         pipe2: Relicense under LGPLv2+.
11116         * modules/pipe2 (License): Change to LGPLv2+.
11117         Requested by Eric Blake, for libvirt.
11118
11119 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11120
11121         bootstrap: compute gnulib_extra_files after updating build_aux
11122         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11123         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11124
11125 2011-04-05  Eric Blake  <eblake@redhat.com>
11126
11127         bootstrap: preserve git whitelist item sorting
11128         * build-aux/bootstrap (sort_patterns): New function.
11129         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11130
11131 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11132
11133         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11134         sc_space_tab check.
11135
11136 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11137
11138         areadlink, areadlinkat: rewrite in terms of careadlinkat
11139         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11140         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11141         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11142         (malloc, realloc): Remove #undefs.
11143         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11144         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11145         readlink, ssize_t, stdint, unistd.
11146         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11147         areadlink, stdint.
11148
11149         careadlinkat: new module
11150         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11151         * modules/careadlinkat: New files, written by me with
11152         a review and feedback from Ben Pfaff in
11153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11154
11155 2011-04-01  Bruno Haible  <bruno@clisp.org>
11156
11157         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11158         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11159         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11160         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11161         Reported by Bruce Korb <bruce.korb@gmail.com>.
11162
11163 2011-04-01  Bruno Haible  <bruno@clisp.org>
11164
11165         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11166         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11167         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11168         * modules/wcpcpy (Depends-on): Add extensions.
11169         * modules/wcpncpy (Depends-on): Likewise.
11170         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11171         systems.
11172         * doc/posix-functions/wcpncpy.texi: Likewise.
11173         * doc/posix-functions/wcwidth.texi: Likewise.
11174
11175 2011-03-31  Eric Blake  <eblake@redhat.com>
11176
11177         nonblocking: fix mingw test failures
11178         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11179         non-blocking flag on regular file.
11180         (get_nonblocking_flag): Set errno on invalid fd.
11181         * tests/test-nonblocking.c (main): Avoid test failure on
11182         directories if fchdir is not active.
11183         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11184
11185 2011-03-31  Bruno Haible  <bruno@clisp.org>
11186
11187         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11188         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11189         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11190         Reported by Simon Josefsson <simon@josefsson.org>.
11191
11192 2011-03-31  Bruno Haible  <bruno@clisp.org>
11193         and Eric Blake  <eblake@redhat.com>
11194
11195         nonblocking: new module
11196         * modules/nonblocking: New module.
11197         * modules/nonblocking-tests: Likewise.
11198         * lib/nonblocking.h: New file.
11199         * lib/nonblocking.c: Likewise.
11200         * tests/test-nonblocking.c: New test.
11201         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11202
11203 2011-03-30  Bruno Haible  <bruno@clisp.org>
11204
11205         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11206         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11207         instead of 'printf' format for GCC >= 4.4.
11208         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11209         (fprintf, printf, vfprintf, vprintf): Declare with
11210         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11211         the system's vfprintf() function.
11212         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11213
11214 2011-03-30  Eric Blake  <eblake@redhat.com>
11215
11216         passfd: fix scoping bug
11217         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11218         before sendmsg/recvmsg.
11219
11220         passfd: standardize coding conventions
11221         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11222         can be learned at compile time.
11223         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11224         ifdefs.
11225         (sendfd, recvfd): Follow gnulib code conventions.
11226
11227         passfd: fix incorrect sendmsg arguments
11228         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11229         incorrect msg_controllen value.
11230         * modules/passfd-tests (Depends-on): Check for alarm.
11231         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11232         Reported by Bastien ROUCARIES.
11233
11234 2011-03-30  Bruno Haible  <bruno@clisp.org>
11235
11236         c-strcasestr: Relicense under LGPLv2+.
11237         * modules/c-strcasestr (License): Change to LGPLv2+.
11238         Requested by Eric Blake, for libvirt.
11239
11240 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11241
11242         * users.txt: Add libidn2.  Fix libtasn1 link.
11243
11244 2011-03-30  Jim Meyering  <meyering@redhat.com>
11245
11246         tests: readlink* ("",... fails with EINVAL on newer kernels
11247         readlink and readlinkat have typically failed with ENOENT for
11248         the invalid, empty file name,  "".  However, with the advent
11249         of linux-2.6.39, they fail with EINVAL.
11250         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11251         when operating on the empty file name.
11252         * tests/test-readlink.h (test_readlink): Likewise.
11253
11254 2011-03-29  Bruno Haible  <bruno@clisp.org>
11255
11256         Relicense some modules under LGPLv2+, for libidn2.
11257         * modules/array-mergesort (License): Change to LGPLv2+.
11258         * modules/c-strcaseeq (License): Likewise.
11259         * modules/striconveh (License): Likewise.
11260         * modules/striconveha (License): Likewise.
11261         * modules/uniconv/base (License): Likewise.
11262         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11263         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11264         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11265         * modules/unictype/base (License): Likewise.
11266         * modules/unictype/bidiclass-of (License): Likewise.
11267         * modules/unictype/category-M (License): Likewise.
11268         * modules/unictype/category-none (License): Likewise.
11269         * modules/unictype/category-of (License): Likewise.
11270         * modules/unictype/category-test (License): Likewise.
11271         * modules/unictype/category-test-withtable (License): Likewise.
11272         * modules/unictype/combining-class (License): Likewise.
11273         * modules/unictype/joiningtype-of (License): Likewise.
11274         * modules/unictype/scripts (License): Likewise.
11275         * modules/uninorm/base (License): Likewise.
11276         * modules/uninorm/canonical-decomposition (License): Likewise.
11277         * modules/uninorm/composition (License): Likewise.
11278         * modules/uninorm/decompose-internal (License): Likewise.
11279         * modules/uninorm/decomposition-table (License): Likewise.
11280         * modules/uninorm/nfc (License): Likewise.
11281         * modules/uninorm/nfd (License): Likewise.
11282         * modules/uninorm/u32-normalize (License): Likewise.
11283         * modules/unistr/base (License): Likewise.
11284         * modules/unistr/u32-cpy (License): Likewise.
11285         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11286         * modules/unistr/u32-to-u8 (License): Likewise.
11287         * modules/unistr/u32-uctomb (License): Likewise.
11288         * modules/unistr/u8-check (License): Likewise.
11289         * modules/unistr/u8-mblen (License): Likewise.
11290         * modules/unistr/u8-mbtouc (License): Likewise.
11291         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11292         * modules/unistr/u8-mbtoucr (License): Likewise.
11293         * modules/unistr/u8-prev (License): Likewise.
11294         * modules/unistr/u8-strlen (License): Likewise.
11295         * modules/unistr/u8-to-u32 (License): Likewise.
11296         * modules/unistr/u8-uctomb (License): Likewise.
11297         * modules/unitypes (License): Likewise.
11298         Requested by Simon Josefsson.
11299
11300 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11301
11302         lib-symbol-visibility: Add a notice.
11303         * modules/lib-symbol-visibility (Notice): New field.
11304
11305 2011-03-29  Bruno Haible  <bruno@clisp.org>
11306
11307         getaddrinfo: Doc fix.
11308         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11309         section "fixed in Gnulib".
11310
11311 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11312
11313         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11314         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11315
11316 2011-03-26  Bruno Haible  <bruno@clisp.org>
11317
11318         unictype/property-byname: Reduce the number of load-time relocations.
11319         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11320         (UC_PROPERTY_INDEX_*): New enumeration values.
11321         (uc_property_byname): Convert an index from the lookup table to an
11322         uc_property_t.
11323         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11324         values.
11325
11326 2011-03-26  Bruno Haible  <bruno@clisp.org>
11327
11328         unictype/property-byname: Allow omitted word separators and aliases.
11329         * lib/unictype/pr_byname.gperf: Add property names without word
11330         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11331         for 'space'.
11332
11333 2011-03-26  Bruno Haible  <bruno@clisp.org>
11334
11335         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11336         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11337         also hyphens to space.
11338         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11339         without spaces.
11340         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11341
11342 2011-03-26  Bruno Haible  <bruno@clisp.org>
11343
11344         unictype/joiningtype-byname: Recognize long names as well.
11345         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11346         a long name.
11347         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11348         unictype/joiningtype_byname.h.
11349         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11350         * lib/unictype/joiningtype_byname.gperf: New file.
11351         * modules/unictype/joiningtype-byname (Files): Add
11352         lib/unictype/joiningtype_byname.gperf.
11353         (Depends-on): Add gperf.
11354         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11355         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11356         long names.
11357
11358         Tests for module 'unictype/joiningtype-longname'.
11359         * modules/unictype/joiningtype-longname-tests: New file.
11360         * tests/unictype/test-joiningtype_longname.c: New file.
11361
11362         New module 'unictype/joiningtype-longname'.
11363         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11364         * lib/unictype/joiningtype_longname.c: New file.
11365         * modules/unictype/joiningtype-longname: New file.
11366         * modules/unictype/joiningtype-all (Depends-on): Add
11367         unictype/joiningtype-longname.
11368
11369 2011-03-26  Bruno Haible  <bruno@clisp.org>
11370
11371         unictype/bidiclass-byname: Recognize long names as well.
11372         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11373         name.
11374         * lib/unictype/bidi_byname.c: Include <string.h>,
11375         unictype/bidi_byname.h.
11376         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11377         * lib/unictype/bidi_byname.gperf: New file.
11378         * modules/unictype/bidiclass-byname (Files): Add
11379         lib/unictype/bidi_byname.gperf.
11380         (Depends-on): Add gperf.
11381         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11382         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11383         long names.
11384
11385         Tests for module 'unictype/bidiclass-longname'.
11386         * modules/unictype/bidiclass-longname-tests: New file.
11387         * tests/unictype/test-bidi_longname.c: New file.
11388
11389         New module 'unictype/bidiclass-longname'.
11390         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11391         * lib/unictype/bidi_longname.c: New file.
11392         * modules/unictype/bidiclass-longname: New file.
11393         * modules/unictype/bidiclass-all (Depends-on): Add
11394         unictype/bidiclass-longname.
11395
11396 2011-03-26  Bruno Haible  <bruno@clisp.org>
11397
11398         unictype/bidi*: Rename modules.
11399         * modules/unictype/bidiclass-all: Renamed from
11400         modules/unictype/bidicategory-all.
11401         * modules/unictype/bidiclass-name: Renamed from
11402         modules/unictype/bidiclass-name.
11403         (Description): Update.
11404         * modules/unictype/bidiclass-name-tests: Renamed from
11405         modules/unictype/bidicategory-name-tests.
11406         * modules/unictype/bidiclass-byname: Renamed from
11407         modules/unictype/bidicategory-byname.
11408         (Description): Update.
11409         * modules/unictype/bidiclass-byname-tests: Renamed from
11410         modules/unictype/bidicategory-byname-tests.
11411         * modules/unictype/bidiclass-of: Renamed from
11412         modules/unictype/bidicategory-of.
11413         (Description): Update.
11414         * modules/unictype/bidiclass-of-tests: Renamed from
11415         modules/unictype/bidicategory-of-tests.
11416         * modules/unictype/bidiclass-test: Renamed from
11417         modules/unictype/bidicategory-test.
11418         (Description): Update.
11419         * modules/unictype/bidiclass-test-tests: Renamed from
11420         modules/unictype/bidicategory-test-tests.
11421         * modules/unictype/bidicategory-all: New file, a simple redirection.
11422         * modules/unictype/bidicategory-name: Likewise.
11423         * modules/unictype/bidicategory-byname: Likewise.
11424         * modules/unictype/bidicategory-of: Likewise.
11425         * modules/unictype/bidicategory-test: Likewise.
11426         * modules/unictype/property-bidi-* (Dependencies): Update.
11427         * lib/unictype/bidi_*.c: Update comment.
11428
11429 2011-03-26  Bruno Haible  <bruno@clisp.org>
11430
11431         unictype/bidi*: Rename functions, part 2.
11432         * modules/unictype/bidicategory-name (configure.ac): Update required
11433         libunistring version.
11434         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11435
11436 2011-03-25  Bruno Haible  <bruno@clisp.org>
11437
11438         New module 'unictype/combining-class-all'.
11439         * modules/unictype/combining-class-all: New file.
11440
11441         Tests for module 'unictype/combining-class-byname'.
11442         * modules/unictype/combining-class-byname-tests: New file.
11443         * tests/unictype/test-combiningclass_byname.c: New file.
11444
11445         New module 'unictype/combining-class-byname'.
11446         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11447         * lib/unictype/combiningclass_byname.c: New file.
11448         * lib/unictype/combiningclass_byname.gperf: New file.
11449         * modules/unictype/combining-class-byname: New file.
11450
11451         Tests for module 'unictype/combining-class-longname'.
11452         * modules/unictype/combining-class-longname-tests: New file.
11453         * tests/unictype/test-combiningclass_longname.c: New file.
11454
11455         New module 'unictype/combining-class-longname'.
11456         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11457         * lib/unictype/combiningclass_longname.c: New file.
11458         * modules/unictype/combining-class-longname: New file.
11459
11460         Tests for module 'unictype/combining-class-name'.
11461         * modules/unictype/combining-class-name-tests: New file.
11462         * tests/unictype/test-combiningclass_name.c: New file.
11463
11464         New module 'unictype/combining-class-name'.
11465         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11466         * lib/unictype/combiningclass_name.c: New file.
11467         * modules/unictype/combining-class-name: New file.
11468
11469 2011-03-25  Bruno Haible  <bruno@clisp.org>
11470
11471         unictype/combining-class: Rename source files.
11472         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11473         of unictype/combining.h.
11474         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11475         Update.
11476         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11477         * modules/unictype/combining-class (Description): Fix.
11478         (Files, Makefile.am): Update.
11479         * tests/unictype/test-combiningclass.c: Renamed from
11480         tests/unictype/test-combining.c.
11481         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11482
11483 2011-03-25  Bruno Haible  <bruno@clisp.org>
11484
11485         unictype: Update list of canonical combining classes.
11486         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11487
11488 2011-03-25  Bruno Haible  <bruno@clisp.org>
11489
11490         unictype/category-byname: Recognize long names as well.
11491         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11492         a long name.
11493         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11494         unictype/categ_byname.h.
11495         (UC_CATEGORY_INDEX_*): New enumeration values.
11496         (uc_general_category_byname): Use uc_general_category_lookup and
11497         convert from index to value.
11498         * lib/unictype/categ_byname.gperf: New file.
11499         * modules/unictype/category-byname (Files): Add
11500         lib/unictype/categ_byname.gperf.
11501         (Depends-on): Add gperf.
11502         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11503         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11504         long names.
11505
11506         Tests for module 'unictype/category-longname'.
11507         * modules/unictype/category-longname-tests: New file.
11508         * tests/unictype/test-categ_longname.c: New file.
11509
11510         New module 'unictype/category-longname'.
11511         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11512         * lib/unictype/categ_longname.c: New file.
11513         * modules/unictype/category-longname: New file.
11514         * modules/unictype/category-all (Depends-on): Add it.
11515
11516 2011-03-25  Bruno Haible  <bruno@clisp.org>
11517
11518         Tests for module 'unictype/category-LC'.
11519         * modules/unictype/category-LC-tests: New file.
11520         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11521
11522         New module 'unictype/category-LC'.
11523         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11524         (UC_CATEGORY_LC): New declaration.
11525         (UC_CASED_LETTER): New macro.
11526         * lib/gen-uni-tables.c (is_category_LC): New function.
11527         (output_categories): Also handle category LC.
11528         (UC_CATEGORY_MASK_LC): New enumeration value.
11529         (general_category_byname): Also handle category LC.
11530         * lib/unictype/categ_LC.c: New file.
11531         * lib/unictype/categ_LC.h: New file, automatically generated.
11532         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11533         category LC.
11534         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11535         * modules/unictype/category-LC: New file.
11536         * modules/unictype/category-byname (Depends-on): Add
11537         unictype/category-LC.
11538         * modules/unictype/category-all (Depends-on): Likewise.
11539
11540 2011-03-25  Eric Blake  <eblake@redhat.com>
11541
11542         xmalloc: revert yesterday's regression
11543         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11544         realloc's underlying behavior (allowing allocation of zero-size
11545         objects, especially if malloc-gnu is also in use).
11546
11547 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11548
11549         maint.mk: add missing version to VC-tag
11550         * top/maint.mk: git tag was missing actual tag name; add it.
11551
11552         valgrind: do leak checking, and exit with code 1 on error (not 0)
11553         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11554         to VALGRIND.
11555
11556 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11557
11558         posix-modules: say what it does.
11559         * posix-modules: Add a line to the --help output saying what it does.
11560
11561 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11562
11563         xmalloc: Do not leak if underlying realloc is C99 compatible.
11564         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11565         This avoids a leak on C99-based systems.  See
11566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11567
11568 2011-03-24  Eric Blake  <eblake@redhat.com>
11569
11570         realloc: document portability problem
11571         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11572         passing 0 size to realloc.
11573
11574 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11575
11576         doc: update users.txt
11577         * users.txt: Add cvsps, tmpwatch
11578
11579 2011-03-23  Matt Rice  <ratmice@gmail.com>
11580
11581         doc: update users.txt
11582         * users.txt: Add gdb.
11583
11584 2011-03-23  Jim Meyering  <meyering@redhat.com>
11585
11586         doc: update users.txt
11587         Looking through matches up to the following URL (there are still
11588         several more pages), I found several projects that use gnulib:
11589         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11590         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11591         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11592
11593 2011-03-22  Bruno Haible  <bruno@clisp.org>
11594
11595         unictype/bidi*: Rename functions.
11596         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11597         uc_bidi_class, uc_is_bidi_class): New declarations.
11598         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11599         uc_bidi_category_byname.
11600         (uc_bidi_category_byname): New function.
11601         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11602         u_bidi_category_name.
11603         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11604         (uc_bidi_category_name): New function.
11605         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11606         uc_bidi_category.
11607         (uc_bidi_category): New function.
11608         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11609         uc_is_bidi_category. Invoke uc_bidi_class.
11610         (uc_is_bidi_category): New function.
11611         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11612         instead of uc_bidi_category_byname.
11613         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11614         instead of uc_bidi_category_name.
11615         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11616         uc_bidi_category.
11617         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11618         instead of uc_is_bidi_category.
11619
11620 2011-03-21  Bruno Haible  <bruno@clisp.org>
11621
11622         New module 'unictype/joininggroup-all'.
11623         * modules/unictype/joininggroup-all: New file.
11624
11625         Tests for module 'unictype/joininggroup-of'.
11626         * modules/unictype/joininggroup-of-tests: New file.
11627         * tests/unictype/test-joininggroup_of.c: New file.
11628         * tests/unictype/test-joininggroup_of.h: New file, automatically
11629         generated by gen-uni-tables.
11630
11631         New module 'unictype/joininggroup-of'.
11632         * modules/unictype/joininggroup-of: New file.
11633         * lib/unictype/joininggroup_of.c: New file.
11634         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11635         gen-uni-tables.
11636
11637         Tests for module 'unictype/joininggroup-byname'.
11638         * modules/unictype/joininggroup-byname-tests: New file.
11639         * tests/unictype/test-joininggroup_byname.c: New file.
11640
11641         New module 'unictype/joininggroup-byname'.
11642         * modules/unictype/joininggroup-byname: New file.
11643         * lib/unictype/joininggroup_byname.c: New file.
11644         * lib/unictype/joininggroup_byname.gperf: New file.
11645
11646         Tests for module 'unictype/joininggroup-name'.
11647         * modules/unictype/joininggroup-name-tests: New file.
11648         * tests/unictype/test-joininggroup_name.c: New file.
11649
11650         New module 'unictype/joininggroup-name'.
11651         * modules/unictype/joininggroup-name: New file.
11652         * lib/unictype/joininggroup_name.c: New file.
11653         * lib/unictype/joininggroup_name.h: New file.
11654
11655         New module 'unictype/joiningtype-all'.
11656         * modules/unictype/joiningtype-all: New file.
11657
11658         Tests for module 'unictype/joiningtype-of'.
11659         * modules/unictype/joiningtype-of-tests: New file.
11660         * tests/unictype/test-joiningtype_of.c: New file.
11661         * tests/unictype/test-joiningtype_of.h: New file, automatically
11662         generated by gen-uni-tables.
11663
11664         New module 'unictype/joiningtype-of'.
11665         * modules/unictype/joiningtype-of: New file.
11666         * lib/unictype/joiningtype_of.c: New file.
11667         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11668         gen-uni-tables.
11669
11670         Tests for module 'unictype/joiningtype-byname'.
11671         * modules/unictype/joiningtype-byname-tests: New file.
11672         * tests/unictype/test-joiningtype_byname.c: New file.
11673
11674         New module 'unictype/joiningtype-byname'.
11675         * modules/unictype/joiningtype-byname: New file.
11676         * lib/unictype/joiningtype_byname.c: New file.
11677
11678         Tests for module 'unictype/joiningtype-name'.
11679         * modules/unictype/joiningtype-name-tests: New file.
11680         * tests/unictype/test-joiningtype_name.c: New file.
11681
11682         New module 'unictype/joiningtype-name'.
11683         * modules/unictype/joiningtype-name: New file.
11684         * lib/unictype/joiningtype_name.c: New file.
11685
11686         unictype: Add support for Arabic shaping properties.
11687         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11688         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11689         declarations.
11690         (UC_JOINING_GROUP_*): New enumeration values.
11691         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11692         declarations.
11693         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11694         (unicode_joining_type): New variable.
11695         (UC_JOINING_GROUP_*): New enumeration values.
11696         (unicode_joining_group): New variable.
11697         (fill_arabicshaping, joining_type_as_c_identifier,
11698         output_joining_type_test, output_joining_type,
11699         joining_group_as_c_identifier, output_joining_group_test,
11700         output_joining_group): New functions.
11701         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11702         fill_arabicshaping and output_joining_type_test, output_joining_type,
11703         output_joining_group_test, output_joining_group.
11704         Reported by Simon Josefsson.
11705
11706 2011-03-21  Jim Meyering  <meyering@redhat.com>
11707
11708         strftime: fix a bug in yesterday's change
11709         * lib/strftime.c (add): Accommodate width's initial value of -1.
11710         Otherwise, nstrftime would copy uninitialized data into
11711         the result buffer.
11712
11713 2011-03-21  Jim Meyering  <meyering@redhat.com>
11714
11715         tests: add strftime-tests module
11716         * tests/test-strftime.c: New file.
11717         * modules/strftime-tests: New module.
11718
11719 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11720
11721         strftime: don't assume a byte count fits in 'int'
11722         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11723         found this problem by static analysis, using gcc -Wstrict-overflow
11724         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11725         on an integer overflow having undefined behavior, but it turns out
11726         that the argument is a size, which might not fit in 'int' anyway,
11727
11728 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11729
11730         stdio: don't require ignore_value around fwrite
11731
11732         This patch works around libc bug 11959
11733         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11734         Without this patch, applications must often write
11735         ignore_value (fwrite (...)) even though the ignore_value is
11736         not helpful here.  It's common to write many objects, using
11737         fwrite/printf/etc., and then use ferror to detect output error.
11738
11739         I considered making this patch optional, but decided against it,
11740         because libc is obviously being inconsistent here: there is no
11741         reason libc should insist that user code must inspect fwrite
11742         return's value without also insisting that it inspect printf's,
11743         putchar's, etc.  If user code wants to have a strict style where
11744         all these functions' values are checked (so that ferror need not
11745         be checked), we could add support for that style in a new gnulib
11746         module, but in the meantime it's better to be consistent and to
11747         support common usage.
11748
11749         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11750         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11751         that we are compiling in checking mode, and if not C++, and
11752         if not already wrapping fwrite for some other reason.
11753         (fwrite): #define to rpl_fwrite if the latter is defined.
11754
11755 2011-03-20  Bruno Haible  <bruno@clisp.org>
11756
11757         verror: Fix compilation error introduced on 2011-02-13.
11758         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11759         instead of __attribute__.
11760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11761
11762 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11763             Bruno Haible  <bruno@clisp.org>
11764
11765         socklen: do not depend on sys_socket
11766         While trying to modify Emacs to use gnulib's socklen module,
11767         I discovered a circular dependency: socklen depends on sys_socket
11768         and vice versa.  Emacs can use socklen, but it does not need
11769         sys_socket because it has its own substitute for sys/socket.h.
11770         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11771         gl_TYPE_SOCKLEN_T.
11772         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11773         gl_PREREQ_SYS_H_SOCKET.
11774         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11775         gl_PREREQ_SYS_H_SOCKET.
11776         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11777         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11778         * modules/socklen (Depends-on): Do not depend on sys_socket.
11779         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11780
11781 2011-03-20  Jim Meyering  <meyering@redhat.com>
11782
11783         maint.mk: sort file names *after* new transformation
11784         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11785         prefix would have led to an unwarranted failure in GNU parted.
11786         Sort after that transformation.
11787
11788 2011-03-19  Jim Meyering  <meyering@redhat.com>
11789
11790         maint.mk: fix po-file syntax-check rule
11791         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11792         Patch by Bruno Haible.
11793
11794 2011-03-19  Bruno Haible  <bruno@clisp.org>
11795
11796         socklen: Update comment.
11797         * m4/socklen.m4: Update comment about platforms.
11798
11799 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11800             Bruno Haible  <bruno@clisp.org>
11801
11802         inet_ntop, inet_pton: Simplify.
11803         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11804         documented to provide socklen_t and we already depend on sys_socket.
11805         * modules/inet_pton (Depends-on): Likewise.
11806         * lib/arpa_inet.in.h: Adjust comment.
11807
11808 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11809             Bruno Haible  <bruno@clisp.org>
11810
11811         netdb: Simplify.
11812         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11813         documented to provide socklen_t and we already depend on sys_socket.
11814         * lib/netdb.in.h: Adjust comment.
11815
11816 2011-03-19  Bruno Haible  <bruno@clisp.org>
11817
11818         sys_socket, netdb: Document problem with socklen_t.
11819         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11820         platforms.
11821         * doc/posix-headers/netdb.texi: Likewise.
11822
11823 2011-03-18  Eric Blake  <eblake@redhat.com>
11824
11825         maint.mk: let po check work in VPATH build
11826         * top/maint.mk (po_file): Allow cfg.mk override.
11827         (sc_po_check): Allow VPATH use.
11828         Reported by Jiri Denemark.
11829
11830 2011-03-16  Jim Meyering  <meyering@redhat.com>
11831
11832         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11833         Before, you would have had to create one .x-sc_ file per rule in order
11834         to exempt offending files.  Now, you may instead use a Make variable --
11835         usually defined in cfg.mk -- whose name identifies the affected rule.
11836         * top/maint.mk (_sc_excl): Define.
11837         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11838         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11839
11840 2011-03-13  Bruno Haible  <bruno@clisp.org>
11841
11842         ignore-value tests: Avoid warnings.
11843         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11844         empty for gcc < 3.4.
11845
11846 2011-03-13  Bruno Haible  <bruno@clisp.org>
11847
11848         passfd: Fix link error on Solaris.
11849         * modules/passfd (Description): Correct.
11850         (Depends-on): Add socketlib.
11851         (Link): New section.
11852         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11853
11854 2011-03-13  Bruno Haible  <bruno@clisp.org>
11855
11856         passfd: Fix link error on AIX 5.2.
11857         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11858
11859 2011-03-13  Bruno Haible  <bruno@clisp.org>
11860
11861         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11862         * lib/sys_socket.in.h: Include <stddef.h>.
11863         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11864         CMSG_FIRSTHDR. Remove unused variable.
11865
11866 2011-03-13  Bruno Haible  <bruno@clisp.org>
11867
11868         passfd: Fix compilation error on OpenBSD.
11869         * lib/passfd.c: Include <sys/uio.h>.
11870
11871 2011-03-13  Bruno Haible  <bruno@clisp.org>
11872
11873         passfd test: Fix warnings.
11874         * tests/test-passfd.c: Include <sys/wait.h>.
11875         (main): Fix typo.
11876
11877 2011-03-13  Bruno Haible  <bruno@clisp.org>
11878
11879         passfd module, part 4, tweaks.
11880         * tests/test-passfd.c: Reorder includes.
11881         (main): Fix perror and printf calls.
11882
11883 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11884
11885         passfd module, part 4.
11886         * modules/passfd-tests: New file.
11887         * tests/test-passfd.c: New file.
11888
11889 2011-03-13  Jim Meyering  <meyering@redhat.com>
11890
11891         Makefile: rely on GNU make; derive syntax-check rule names
11892         Rather than requiring that each sc_ rule be listed as a dependent
11893         of "check", use features of GNU make to derive the list.
11894         * Makefile (syntax-check-rules): Define.
11895         (check): Depend on the new variable, not the hard-coded list.
11896
11897 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
11898             Bruno Haible  <bruno@clisp.org>
11899
11900         passfd module, part 3.
11901         * lib/passfd.h (recvfd): Add a flags argument.
11902         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
11903         (recvfd): Add a flags argument.
11904         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
11905         exists.
11906         * modules/passfd (Depends-on): Add cloexec.
11907         Suggested by Eric Blake.
11908
11909 2011-03-13  Bruno Haible  <bruno@clisp.org>
11910
11911         passfd module, part 2, tweaks.
11912         * modules/passfd (Files): Reorder.
11913         (Depends-on): Remove errno.
11914         (Include): Remove <sys/socket.h>, <sys/un.h>.
11915         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11916         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11917         specification header. Include <sys/socket.h> always. Don't include
11918         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11919         (sendfd): Clarify that it sets errno when it fails.
11920         (recvfd): Fix specification.
11921
11922 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11923
11924         passfd module, part 2.
11925         * modules/passfd: New file.
11926         * lib/passfd.h: New file.
11927         * lib/passfd.c: New file.
11928
11929 2011-03-12  Bruno Haible  <bruno@clisp.org>
11930
11931         wcswidth, mbswidth: Avoid integer overflow.
11932         * lib/wcswidth.c: Include <limits.h>.
11933         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11934         * lib/mbswidth.c: Include <limits.h>.
11935         (mbsnwidth): Avoid 'int' overflow.
11936         Reported by Jim Meyering.
11937
11938 2011-03-12  Bruno Haible  <bruno@clisp.org>
11939
11940         futimens, utimensat: Avoid endless recursion on Solaris 10.
11941         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11942         Solaris.
11943         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11944         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11945
11946 2011-03-11  Jim Meyering  <meyering@redhat.com>
11947
11948         maint.mk: relax a regexp to accommodate other formatting styles
11949         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11950         between "ngettext" and the following "(".
11951
11952 2011-03-11  Pádraig Brady <P@draigBrady.com>
11953
11954         maint.mk: suppress a false positive warning
11955         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11956         diagnostics are marked with ngettext.
11957
11958 2011-03-10  Eric Blake  <eblake@redhat.com>
11959
11960         wchar: add explicit dependencies, for Tru64
11961         * modules/mbmemcasecoll (Depends-on): Add wchar.
11962         * modules/mbtowc (Depends-on): Likewise.
11963         * modules/vasnprintf (Depends-on): Likewise.
11964         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11965         * modules/wctomb (Depends-on): Likewise.
11966         Reported by Peter O'Gorman.
11967
11968 2011-03-08  Bruno Haible  <bruno@clisp.org>
11969
11970         passfd module, part 1, tweaks.
11971         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11972         Improve indentation. Improve AC_MSG_CHECKING messages.
11973         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11974         gl_SOCKET_FAMILIES.
11975
11976 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11977
11978         passfd module, part 1.
11979         * m4/afunix.m4: New file.
11980         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11981         sockets.
11982
11983 2011-03-08  Bruno Haible  <bruno@clisp.org>
11984
11985         regex-quote: New API.
11986         * lib/regex-quote.h: Include <stdbool.h>.
11987         (struct regex_quote_spec): New type.
11988         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11989         New declarations.
11990         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11991         'const struct regex_quote_spec *' argument.
11992         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11993         (pcre_special): New constant.
11994         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11995         New functions.
11996         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11997         'const struct regex_quote_spec *' argument.
11998         * modules/regex-quote (Depends-on): Add stdbool.
11999         * tests/test-regex-quote.c (check): Update for new API. Add test for
12000         anchored results.
12001         * NEWS: Mention the API change.
12002         Reported by Reuben Thomas and Eric Blake.
12003
12004 2011-03-06  Bruno Haible  <bruno@clisp.org>
12005
12006         regex-quote: Fix creation of POSIX extended regular expressions.
12007         * lib/regex-quote.c (ere_special): Add grouping and alternation
12008         operators.
12009
12010 2011-03-05  Bruno Haible  <bruno@clisp.org>
12011
12012         doc: Improve doc regarding autopoint vs. gnulib.
12013         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12014         disable autopoint while running autoreconf.
12015         Suggested by Ralf Wildenhues.
12016
12017 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12018
12019         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12020         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12021
12022 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12023
12024         parse-duration: remove xalloc.h dependency
12025         * lib/parse-duration.c (parse_period): handle NULL return from
12026         strdup instead of calling xstrdup().
12027         * modules/parse-duration: remove "xalloc" dependency
12028
12029 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12030
12031         bootstrap: honor m4_base when running aclocal
12032         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12033
12034 2011-03-02  Jim Meyering  <meyering@redhat.com>
12035
12036         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12037         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12038         on request from Matt Booth.
12039
12040 2011-03-01  Eric Blake  <eblake@redhat.com>
12041
12042         test-link: work on Hurd
12043         * tests/test-link.h (test_link): Hurd rejects linking directories
12044         with EISDIR instead of the POSIX-mandated EPERM.
12045
12046 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12047
12048         stdio: simplify by moving files to printf-posix, sigpipe
12049         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12050         since this symbol is needed only if printf is replaced.
12051         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12052         Require gl_ASM_SYMBOL_PREFIX.
12053         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12054         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12055         (Depends-on): Add 'raise'.
12056         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12057         * modules/stdio (Files): Remove lib/stdio-write.c,
12058         m4/asm-underscore.m4.
12059         (Depends-on): Remove 'raise'.
12060
12061         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12062         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12063         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12064         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12065
12066 2011-02-28  Bruno Haible  <bruno@clisp.org>
12067
12068         localcharset: Assume ANSI C behaviour of free().
12069         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12070         calling free().
12071         Suggested by Simon Josefsson <simon@josefsson.org>.
12072
12073 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12074             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12075             Bruno Haible  <bruno@clisp.org>  (tiny change)
12076
12077         On Cygwin, use /proc file system instead of win32 API.
12078         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12079         Win32 file names.
12080         (DllMain): Simplify by removing Cygwin specific code.
12081         (find_shared_library_fullname): Use Linux specific implementation also
12082         for Cygwin.
12083         (get_shared_library_fullname): Update accordingly.
12084         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12085         Win32 file names.
12086         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12087         Cygwin specific code.
12088
12089 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12090             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12091
12092         Fix OpenMP flag detection for various Fortran compilers.
12093         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12094         OpenMP-conditional compilation construct, to force compile
12095         failure with missing OpenMP flag.
12096         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12097
12098 2011-02-25  Eric Blake  <eblake@redhat.com>
12099
12100         strstr: expand test coverage
12101         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12102         compilation.
12103         * tests/test-memmem.c (main): Duplicate tests.
12104         * tests/test-strcasestr.c (main): Likewise.
12105         * tests/test-c-strcasestr.c (main): Likewise.
12106
12107 2011-02-25  Jim Meyering  <meyering@redhat.com>
12108
12109         maint.mk: detect missing-NL-at-EOF, too
12110         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12111         it also detects when a file lacks a newline at EOF.
12112         (require_exactly_one_NL_at_EOF_): Renamed from
12113         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12114         since people may well have .x-sc_... file names tied to the
12115         existing name.  Suggested by Eric Blake.
12116
12117 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12118
12119         dirname: move m4/dos.m4 functionality into lib/dosname.h
12120
12121         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12122         extracts symbols from it, puts them into config.h; but it's much
12123         easier to use the symbols directly.  filename.h already does this,
12124         but it disagrees with dos.m4 in some respects.  This patch
12125         introduces a different include file dosname.h that packages up
12126         dos.m4, and then later we can work on merging filename.h and
12127         dosname.h.  Applications that need only the easy-to-configure
12128         symbols should consider including dosname.h rather than dirname.h.
12129         * NEWS: Mention incompatible changes.
12130         * m4/dos.m4: Remove.
12131         * lib/dosname.h, modules/dosname: New files.
12132         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12133         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12134         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12135         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12136         Include dosname.h, not dirname.h.
12137         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12138         Include dosname.h, for definitions of symbols like ISSLASH
12139         that used to be in config.h.
12140         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12141         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12142         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12143         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12144         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12145         * modules/rmdir (Files): Likewise.
12146         * modules/stat (Files): Likewise.
12147         * modules/unlink (Files): Likewise.
12148         * modules/dirname-lgpl (Depends-on): Add dosname.
12149         * modules/lstat (Depends-on): Likewise.
12150         * modules/openat (Depends-on): Likewise.
12151         * modules/rmdir (Depends-on): Likewise.
12152         * modules/savewd (Depends-on): Likewise.
12153         * modules/stat (Depends-on): Likewise.
12154         * modules/unlink (Depends-on): Likewise.
12155         * modules/openat (Depends-on): Remove dirname-lgpl.
12156         * modules/savewd (Depends-on): Likewise.
12157         * tests/test-dirname.c: Do not use removed symbols like
12158         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12159         the remaining symbols, e.g., ISSLASH ('\\').
12160
12161 2011-02-25  Eric Blake  <eblake@redhat.com>
12162
12163         strstr: revert patches that introduced bug and pessimization
12164         * lib/str-two-way.h: Add another reference.
12165         (two_way_short_needle, two_way_long_needle): Revert changes from
12166         2011-02-24; they pessimize search speed.
12167         (critical_factorization): Partially revert changes from
12168         2010-06-22; they violate the requirement that the left half of the
12169         needle be smaller than the period of the needle.
12170
12171 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12172
12173         filenamecat: remove unnecessary dependency on dirname-lgpl
12174         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12175         is no direct dependency, just an indirect one via filenamecat-lgpl.
12176
12177         remove: remove unnecessary use of m4/dos.m4
12178         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12179         * modules/remove (FILES): Remove m4/dos.m4.
12180
12181         * lib/openat-proc.c: Don't include dirname.h; not needed.
12182
12183         backupfile: remove unnecessary use of m4/dos.m4
12184         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12185         of its symbols are used by the backupfile code.  backupfile.c does
12186         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12187         for the rare case of programs that want all their backup file
12188         names to live within 8+3 limits, and dos.m4 doesn't address that.
12189         * modules/backupfile (Files): Remove m4/dos.m4.
12190
12191 2011-02-24  Jim Meyering  <meyering@redhat.com>
12192
12193         strstr: fix a bug whereby strstr would mistakenly return NULL
12194         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12195         in period calculation.
12196         (two_way_long_needle): Likewise.
12197         The original problem was reported by Mike Stump in
12198         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12199         Ralf Wildenhues provided the short needle and haystack.
12200         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12201         Add a more involved test to trigger the bug in two_way_long_needle.
12202
12203 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12204
12205         gnulib-tool: remove use of bold display in help screen
12206         * gnulib-tool (func_usage): Do not use bold display anymore in the
12207         help screen.  That was just meant to be a temporary emphasis for a
12208         backward-incompatible change.
12209
12210 2011-02-23  Bruno Haible  <bruno@clisp.org>
12211
12212         Fix misindentation of preprocessor directives.
12213         * lib/argp-namefrob.h: Reindent preprocessor directives.
12214         * lib/getopt_int.h (struct _getopt_data): Likewise.
12215         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12216         * lib/vasnprintf.c (decode_long_double): Likewise.
12217         * tests/test-argmatch.c: Insert blank lines, for clarity.
12218         * tests/test-exclude.c: Likewise.
12219
12220 2011-02-22  Bruno Haible  <bruno@clisp.org>
12221
12222         ioctl: Fix for MacOS X in 64-bit mode.
12223         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12224         value.
12225         Suggested by Eric Blake.
12226         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12227
12228 2011-02-22  Jim Meyering  <meyering@redhat.com>
12229
12230         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12231         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12232         in lib/.
12233
12234 2011-02-22  Eric Blake  <eblake@redhat.com>
12235
12236         maint: avoid any CDPATH issue
12237         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12238
12239         maint: adjust cpp indentation for my modules, as well
12240         * Makefile (sc_cpp_indent_check): Add my name.
12241         * lib/fbufmode.c: Filter through cppi.
12242         * lib/fpurge.c: Likewise.
12243         * lib/freadable.c: Likewise.
12244         * lib/freading.c: Likewise.
12245         * lib/fwritable.c: Likewise.
12246         * lib/fwriting.c: Likewise.
12247         * lib/sigaction.c: Likewise.
12248
12249 2011-02-22  Jim Meyering  <meyering@redhat.com>
12250
12251         maint: adjust cpp indentation to reflect nesting depth
12252         I.e., in a block of code that begins with an unnested "#if",
12253         put one space between the "#" in column 1 and following token.
12254         For example,
12255         -#include <sys/vfs.h>
12256         +# include <sys/vfs.h>
12257         Do this only in .c files that are part of a module I maintain.
12258         * lib/linkat.c: Filter through cppi.
12259         * lib/nanosleep.c: Likewise.
12260         * lib/openat.c: Likewise.
12261         * lib/openat-die.c: Likewise.
12262         * lib/dup3.c: Likewise.
12263         * lib/fchownat.c: Likewise.
12264         * lib/flock.c: Likewise.
12265         * lib/fsync.c: Likewise.
12266         * lib/fts.c: Likewise.
12267         * lib/getpass.c: Likewise.
12268         * lib/gettimeofday.c: Likewise.
12269         * lib/userspec.c: Likewise.
12270         * Makefile (sc_cpp_indent_check): New rule, to check this.
12271
12272 2011-02-22  Bruno Haible  <bruno@clisp.org>
12273
12274         New module 'wctomb'.
12275         * lib/stdlib.in.h (wctomb): New declaration.
12276         * lib/wctomb.c: New file.
12277         * lib/wctomb-impl.h: New file.
12278         * m4/wctomb.m4: New file.
12279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12280         REPLACE_WCTOMB.
12281         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12282         REPLACE_WCTOMB.
12283         * modules/wctomb: New file.
12284         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12285         * doc/posix-functions/wctomb.texi: Mention the new module.
12286         * modules/wctob (Depends-on): Add wctomb.
12287
12288 2011-02-22  Bruno Haible  <bruno@clisp.org>
12289
12290         New module 'mbtowc'.
12291         * lib/stdlib.in.h (mbtowc): New declaration.
12292         * lib/mbtowc.c: New file.
12293         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12294         * m4/mbtowc.m4: New file.
12295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12296         REPLACE_MBTOWC.
12297         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12298         REPLACE_MBTOWC.
12299         * modules/mbtowc: New file.
12300         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12301         * doc/posix-functions/mbtowc.texi: Mention the new module.
12302         * modules/btowc (Depends-on): Add mbtowc.
12303
12304 2011-02-22  Bruno Haible  <bruno@clisp.org>
12305
12306         wcrtomb: Add more tests for native Windows platforms.
12307         * tests/test-wcrtomb-w32-1.sh: New file.
12308         * tests/test-wcrtomb-w32-2.sh: New file.
12309         * tests/test-wcrtomb-w32-3.sh: New file.
12310         * tests/test-wcrtomb-w32-4.sh: New file.
12311         * tests/test-wcrtomb-w32-5.sh: New file.
12312         * tests/test-wcrtomb-w32.c: New file.
12313         * modules/wcrtomb-tests (Files): Add them.
12314         (Makefile.am): Arrange to run these tests.
12315         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12316         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12317
12318 2011-02-20  Bruno Haible  <bruno@clisp.org>
12319
12320         wcrtomb: Enhance test.
12321         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12322
12323 2011-02-20  Bruno Haible  <bruno@clisp.org>
12324
12325         mbrtowc: Tiny optimization.
12326         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12327
12328 2011-02-20  Jim Meyering  <meyering@redhat.com>
12329
12330         test-exclude.c: remove unmatched #endif
12331         * tests/test-exclude.c: Remove stray #endif, left over from
12332         the change of a week ago.
12333
12334 2011-02-19  Jim Meyering  <meyering@redhat.com>
12335
12336         git-version-gen: skip "-dirty" check when appropriate
12337         * build-aux/git-version-gen: Don't run any git commands when the
12338         version string comes from .tarball-version.  Prior to this, we
12339         would run git update-index --refresh even from a just-unpacked
12340         tarball directory, and that could affect a .git/ directory in a
12341         parent of the build directory.  Reported by Mike Frysinger.
12342
12343 2011-02-19  Bruno Haible  <bruno@clisp.org>
12344
12345         unictype/property-byname: Reduce the size of the 'data' segment.
12346         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12347
12348 2011-02-19  Bruno Haible  <bruno@clisp.org>
12349
12350         unictype/scripts: Reduce the size of the 'data' segment.
12351         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12352         '%pic'.
12353         * lib/unictype/scripts_byname.gperf: Regenerated.
12354
12355 2011-02-19  Bruno Haible  <bruno@clisp.org>
12356
12357         stdint: Update documentation.
12358         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12359
12360 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12361
12362         stdint: omit redundant check for wchar.h
12363         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12364         always tests whether wchar.h exists, so remove the now-redundant test.
12365
12366 2011-02-18  Bruno Haible  <bruno@clisp.org>
12367
12368         stdint: Cut dependency to module 'wchar'.
12369         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12370         include the necessary prerequisites.
12371         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12372         * modules/stdint (Depends-on): Remove wchar.
12373         (Makefile.am): Substitute HAVE_WCHAR_H.
12374         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12375
12376 2011-02-18  Eric Blake  <eblake@redhat.com>
12377
12378         longlong: skip, rather than fail, on cross-compilation
12379         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12380         when cross-compiling; regression from 2011-02-16.
12381
12382 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12383
12384         * NEWS: Mention 2011-02-08 change to stdlib.
12385
12386 2011-02-17  Bruno Haible  <bruno@clisp.org>
12387
12388         getloadavg: Add comments about platforms.
12389         * m4/getloadavg.m4: Add comment.
12390         * lib/getloadavg.c: Likewise.
12391
12392 2011-02-17  Bruno Haible  <bruno@clisp.org>
12393
12394         getloadavg: Fix link error on Solaris 2.6.
12395         * modules/getloadavg (Link): New section.
12396         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12397         linking test-getloadavg.
12398         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12399         getloadavg.
12400
12401 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12402
12403         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12404         It was 'int', but this doesn't match the IRIX 6.5 manual.
12405         Suggested by Bruno Haible in
12406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12407
12408 2011-02-17  Bruno Haible  <bruno@clisp.org>
12409
12410         havelib: Fix comments.
12411         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12412         change.
12413
12414 2011-02-17  Bruno Haible  <bruno@clisp.org>
12415
12416         havelib: Update config.rpath.
12417         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12418
12419 2011-02-17  Bruno Haible  <bruno@clisp.org>
12420
12421         getloadavg test: Add some plausibility checks.
12422         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12423         is improbable.
12424
12425 2011-02-16  Eric Blake  <eblake@redhat.com>
12426
12427         maintainer-makefile: make syntax-check a no-op from tarballs
12428         * top/maint.mk (no-vc-detected): New rule.
12429         (local-checks-available): Use it to avoid hanging if someone tries
12430         'make syntax-check' from a tarball.  Also append to any non-syntax
12431         checks already defined in cfg.mk.
12432
12433 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12434
12435         longlong: tune, particularly for common case of c99
12436
12437         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12438         or running anything if c99, or if unsigned long long int does not
12439         work.  In either case, we know the answer without further tests.
12440         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12441         it at most once, and use its results for both long long int and
12442         unsigned long long int.  This is more likely to be efficient in
12443         the common case where the program wants to check for both long
12444         long int and unsigned long long int.
12445         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12446         since the answer is already known.
12447
12448 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12449
12450         getloadavg: set errno
12451         * lib/getloadavg.c: Set errno when returning -1.  If no other
12452         error number looks appropriate, set it to ENOSYS if the getloadavg
12453         looks like it can't possibly ever work, ENOTSUP otherwise.
12454         Suggested by Bruno Haible in
12455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12456
12457         getloadavg: trim unused parts and speed up 'configure'
12458         * NEWS: Document this.
12459         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12460         always compiled if getloadavg is absent.
12461         Move test code to ...
12462         * tests/test-getloadavg.c: New file, containing previous
12463         contents of test from lib/getloadavg.c.  It also contains
12464         suggestions by Bruno Haible in
12465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12466         * modules/getloadavg-tests: New file.
12467         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12468         Do tests in the same order as they're needed for getloadavg.c.
12469         Omit setgid-related tests that generate symbols KMEM_GROUP,
12470         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12471         Do only the tests that are needed to see whether the system has
12472         getloadavg, moving the other tests into ...
12473         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12474         NLIST_NAME_UNION; nobody should be using it.  Do not define
12475         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12476         relevant, as the user of this module shouldn't care how getloadavg
12477         is implemented.
12478
12479         getloadavg: omit unused var
12480         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12481
12482 2011-02-15  Jim Meyering  <meyering@redhat.com>
12483
12484         doc: update users.txt
12485         * users.txt: Update iwhd's URL.
12486
12487 2011-02-13  Bruno Haible  <bruno@clisp.org>
12488
12489         Consistent macro naming for macros that use GCC __attribute__.
12490         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12491         _ATTRIBUTE_NONNULL_.
12492         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12493         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12494         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12495         ATTRIBUTE_DEPRECATED.
12496         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12497         ATTRIBUTE_NORETURN.
12498         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12499         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12500         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12501         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12502         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12503         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12504         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12505         ATTRIBUTE_SENTINEL.
12506         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12507         ATTRIBUTE_RETURN_CHECK.
12508         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12509         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12510         ATTRIBUTE_NORETURN.
12511         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12512         Reported by Paul Eggert.
12513
12514 2011-02-13  Bruno Haible  <bruno@clisp.org>
12515
12516         Don't interfere with a program's definition of __attribute__.
12517         * lib/argp.h (__attribute__): Remove definition.
12518         (_GL_ATTRIBUTE_FORMAT): New macro.
12519         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12520         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12521         (_GL_ATTRIBUTE_FORMAT): New macro.
12522         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12523         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12524         GCC 3 or newer.
12525         * lib/error.h (__attribute__): Remove definition.
12526         (_GL_ATTRIBUTE_FORMAT): New macro.
12527         (error, error_at_line): Use it.
12528         * lib/hash.h (__attribute__): Remove definition.
12529         (ATTRIBUTE_WUR): Update definition. Define always.
12530         * lib/openat.h (__attribute__): Remove definition.
12531         (ATTRIBUTE_NORETURN): Update definition. Define always.
12532         * lib/sigpipe-die.h (__attribute__): Remove definition.
12533         (ATTRIBUTE_NORETURN): Update definition. Define always.
12534         * lib/vasnprintf.h (__attribute__): Remove definition.
12535         (_GL_ATTRIBUTE_FORMAT): New macro.
12536         (asnprintf, vasnprintf): Use it.
12537         * lib/xalloc.h (__attribute__): Remove definition.
12538         (ATTRIBUTE_NORETURN): Update definition. Define always.
12539         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12540         * lib/xmemdup0.h (__attribute__): Remove definition.
12541         (ATTRIBUTE_NORETURN): Update definition. Define always.
12542         * lib/xprintf.h (__attribute__): Remove definition.
12543         (_GL_ATTRIBUTE_FORMAT): New macro.
12544         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12545         * lib/xstrtol.h (__attribute__): Remove definition.
12546         (ATTRIBUTE_NORETURN): Update definition. Define always.
12547         * lib/xvasprintf.h (__attribute__): Remove definition.
12548         (_GL_ATTRIBUTE_FORMAT): New macro.
12549         (xasprintf, xvasprintf): Use it.
12550         * tests/test-argmatch.c (__attribute__): Remove definition.
12551         (ATTRIBUTE_NORETURN): Update definition. Define always.
12552         * tests/test-exclude.c (__attribute__): Remove definition.
12553         (ATTRIBUTE_NORETURN): Update definition. Define always.
12554         Reported by Paul Eggert.
12555
12556 2011-02-13  Bruno Haible  <bruno@clisp.org>
12557
12558         mbrtowc: Add more tests for native Windows platforms.
12559         * tests/test-mbrtowc-w32-1.sh: New file.
12560         * tests/test-mbrtowc-w32-2.sh: New file.
12561         * tests/test-mbrtowc-w32-3.sh: New file.
12562         * tests/test-mbrtowc-w32-4.sh: New file.
12563         * tests/test-mbrtowc-w32-5.sh: New file.
12564         * tests/test-mbrtowc-w32.c: New file.
12565         * modules/mbrtowc-tests (Files): Add them.
12566         (Makefile.am): Arrange to run these tests.
12567         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12568         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12569
12570 2011-02-13  Bruno Haible  <bruno@clisp.org>
12571
12572         mbrtowc: Work around native Windows bug.
12573         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12574         guess when no suitable locale for testing was found.
12575         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12576
12577 2011-02-13  Bruno Haible  <bruno@clisp.org>
12578
12579         mbsinit: Work around mingw bug.
12580         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12581         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12582         Windows.
12583         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12584
12585 2011-02-13  Bruno Haible  <bruno@clisp.org>
12586
12587         mbsinit: Don't crash for a NULL argument.
12588         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12589         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12590
12591 2011-02-13  Bruno Haible  <bruno@clisp.org>
12592
12593         Don't interfere with a program's definition of __attribute__.
12594         * lib/stdio.in.h (__attribute__): Remove definition.
12595         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12596         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12597         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12598         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12599         * lib/string.in.h (__attribute__): Remove definition.
12600         Reported by Paul Eggert.
12601
12602 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12603
12604         stdlib: don't get in the way of non-GCC __attribute__
12605         See thread starting at
12606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12607         Revert previous stdlib change, installing the following instead:
12608         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12609         to get in the way of a non-GCC compiler that supports __attribute__.
12610         (_GL_ATTRIBUTE_RETURN): New macro.
12611         (_Exit): Use it instead of __attribute__.
12612
12613 2011-02-12  Bruno Haible  <bruno@clisp.org>
12614
12615         quotearg test: Avoid test failure on mingw.
12616         * tests/test-quotearg.sh: Convert the locale identifier from native
12617         Windows syntax to Unix syntax.
12618
12619 2011-02-12  Bruno Haible  <bruno@clisp.org>
12620
12621         setlocale: Prefer gnulib's override over libintl's override.
12622         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12623         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12624         GNULIB_defined_setlocale is set.
12625
12626 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12627
12628         stdlib: support non-GCC __attribute__
12629
12630         Fix a serious and tricky problem encountered when attempting to
12631         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12632         5.5, but it crashed due to memory corruption on Solaris 10 with
12633         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12634         bits that are otherwise zero.  This tagging is optional inside
12635         Emacs but is preferred and is used when __attribute__ ((__aligned
12636         (8))) works, as it does with both recent-enough GCC and with Sun C
12637         5.11.  However, Sun C 5.11 is not GCC and does not #define
12638         __GNUC__ and __GNUC_MINOR__.
12639
12640         When I added the getloadavg module to Emacs, it brought in
12641         stdlib.in.h, which contained this fragment:
12642
12643            #ifndef __attribute__
12644            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12645            #  define __attribute__(Spec)   /* empty */
12646            # endif
12647            #endif
12648
12649         When files that include <stdlib.h> were compiled with Sun C 5.11,
12650         the above code disabled __attribute__ ((__aligned (8))), which
12651         caused variables to not be properly aligned, which eventually led
12652         to the pointer corruption mentioned above.  (This was a bit hard
12653         to diagnose, unfortunately.)
12654
12655         Several "#define __attribute__(X) /* empty */" code snippets need
12656         to be eradicated from Gnulib to work with non-GCC compilers that
12657         support __attribute__.  The Autoconf way to do this is to test for
12658         each kind of attribute that we want support for, and selectively
12659         enable that in source code.
12660
12661         Fix this problem just for stdlib.h, by adding a test for the
12662         __noreturn__ attribute, and change stdlib.in.h to use that test
12663         when needed.  This technique can be easily generalized to the
12664         other *.in.h files and attributes, and a similar technique can be
12665         used for *.h and *.c files.  This patch is enough to solve the
12666         problem for Emacs + getloadavg, and I thought I'd publish it for
12667         feedback before undertaking further, similar fixes in other
12668         modules.
12669
12670         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12671         because it's not needed for stdlib.h.  It merely substitutes the
12672         value directly into stdlib.h.  We may well need to #define it, or
12673         similar symbols, for other modules, but it's nice to also have an
12674         option to not #define it for applications like Emacs that do not
12675         need it.
12676
12677         * lib/stdlib.in.h (__attribute__): Do not #define.
12678         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12679         be defined only if the _Exit module is also used.
12680         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12682         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12683         platforms.
12684         * modules/_Exit (Files): Add m4/attribute.m4.
12685         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12686         * m4/attribute.m4: New file.
12687
12688 2011-02-12  Bruno Haible  <bruno@clisp.org>
12689
12690         wcsrtombs: Work around bug on native Windows.
12691         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12692         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12693         instead of len.
12694         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12695
12696 2011-02-12  Bruno Haible  <bruno@clisp.org>
12697
12698         mbsrtowcs: Work around bug on native Windows.
12699         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12700         against mingw bug.
12701         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12702
12703 2011-02-12  Bruno Haible  <bruno@clisp.org>
12704
12705         Avoid setlocale bugs in tests.
12706         * modules/btowc (Dependencies): Add setlocale.
12707         * modules/c-strcase (Dependencies): Likewise.
12708         * modules/mbmemcasecmp (Dependencies): Likewise.
12709         * modules/mbmemcasecoll (Dependencies): Likewise.
12710         * modules/mbrtowc (Dependencies): Likewise.
12711         * modules/mbscasecmp (Dependencies): Likewise.
12712         * modules/mbscasestr (Dependencies): Likewise.
12713         * modules/mbschr (Dependencies): Likewise.
12714         * modules/mbscspn (Dependencies): Likewise.
12715         * modules/mbsinit (Dependencies): Likewise.
12716         * modules/mbsncasecmp (Dependencies): Likewise.
12717         * modules/mbsnrtowcs (Dependencies): Likewise.
12718         * modules/mbspbrk (Dependencies): Likewise.
12719         * modules/mbspcasecmp (Dependencies): Likewise.
12720         * modules/mbsrchr (Dependencies): Likewise.
12721         * modules/mbsrtowcs (Dependencies): Likewise.
12722         * modules/mbsspn (Dependencies): Likewise.
12723         * modules/mbsstr (Dependencies): Likewise.
12724         * modules/nl_langinfo (Dependencies): Likewise.
12725         * modules/quotearg (Dependencies): Likewise.
12726         * modules/unicase/locale-language (Dependencies): Likewise.
12727         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12728         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12729         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12730         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12731         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12732         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12733         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12734         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12735         * modules/vasnprintf-posix (Dependencies): Likewise.
12736         * modules/wcrtomb (Dependencies): Likewise.
12737         * modules/wcsnrtombs (Dependencies): Likewise.
12738         * modules/wcsrtombs (Dependencies): Likewise.
12739
12740 2011-02-12  Bruno Haible  <bruno@clisp.org>
12741
12742         setlocale: Workaround native Windows bug.
12743         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12744         succeeds but sets LC_CTYPE to "C", report a failure.
12745         * tests/test-setlocale2.sh: New file.
12746         * tests/test-setlocale2.c: New file.
12747         * modules/setlocale-tests (Files): Add the new files.
12748         (Makefile.am): Enable test-setlocale2.sh test.
12749         * doc/posix-functions/setlocale.texi: Mention workaround.
12750
12751 2011-02-11  Bruno Haible  <bruno@clisp.org>
12752
12753         Tests for module 'setlocale'.
12754         * modules/setlocale-tests: New file.
12755         * tests/test-setlocale1.sh: New file.
12756         * tests/test-setlocale1.c: New file.
12757
12758         New module 'setlocale'.
12759         * lib/locale.in.h (setlocale): New declaration.
12760         * lib/setlocale.c: New file, based on
12761         gettext/gettext-runtime/intl/setlocale.c.
12762         * m4/setlocale.m4: New file.
12763         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12764         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12765         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12766         REPLACE_SETLOCALE.
12767         * modules/setlocale: New file.
12768         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12769         * doc/posix-functions/setlocale.texi: Mention the new module.
12770
12771 2011-02-11  Bruno Haible  <bruno@clisp.org>
12772
12773         Prepare for locale dependent tests on mingw.
12774         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12775         because it has the wrong locale encoding.
12776         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12777         French_France.1252 instead of "fr".
12778         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12779         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12780         because it has the wrong locale encoding.
12781         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12782         native Windows, try Turkish_Turkey.65001.
12783         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12784         Chinese_China.54936.
12785
12786         Prepare for locale dependent tests on mingw.
12787         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12788         differently.
12789         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12790         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12791         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12792         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12793
12794 2011-02-11  Eric Blake  <eblake@redhat.com>
12795
12796         strptime: avoid compiler warnings
12797         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12798         compiler warnings about dead code.
12799         Reported by Daniel P. Berrange.
12800
12801 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12802
12803         doc: update users.txt
12804         * users.txt: Add rcs.
12805
12806 2011-02-10  John W. Eaton  <jwe@gnu.org>
12807
12808         doc: update users.txt
12809         * users.txt: Add octave.
12810
12811 2011-02-10  Jim Meyering  <meyering@redhat.com>
12812
12813         doc: update users.txt
12814         * users.txt: Add iwhd.
12815
12816 2011-02-09  Bruno Haible  <bruno@clisp.org>
12817
12818         gnulib-tool: Make copyright notice adjustment more robust.
12819         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12820         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12821         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12822         License".
12823         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12824
12825 2011-02-06  Bruno Haible  <bruno@clisp.org>
12826
12827         New module 'towctrans'.
12828         * modules/towctrans: New file.
12829         * lib/wctype.in.h (towctrans): New declaration.
12830         * lib/towctrans.c: New file.
12831         * lib/towctrans-impl.h: New file.
12832         * m4/towctrans.m4: New file.
12833         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12834         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12835         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12836         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12837         * doc/posix-functions/towctrans.texi: Mention the new module.
12838
12839 2011-02-06  Bruno Haible  <bruno@clisp.org>
12840
12841         New module 'wctrans'.
12842         * modules/wctrans: New file.
12843         * lib/wctype.in.h (wctrans): New declaration.
12844         * lib/wctrans.c: New file.
12845         * lib/wctrans-impl.h: New file.
12846         * m4/wctrans.m4: New file.
12847         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12848         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12849         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12850         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12851         * doc/posix-functions/wctrans.texi: Mention the new module.
12852
12853 2011-02-06  Bruno Haible  <bruno@clisp.org>
12854
12855         New module 'iswctype'.
12856         * modules/iswctype: New file.
12857         * lib/wctype.in.h (iswctype): New declaration.
12858         * lib/iswctype.c: New file.
12859         * lib/iswctype-impl.h: New file.
12860         * m4/iswctype.m4: New file.
12861         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12862         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12863         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12864         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12865         * doc/posix-functions/iswctype.texi: Mention the new module and the
12866         HP-UX 11.00 problem.
12867
12868 2011-02-06  Bruno Haible  <bruno@clisp.org>
12869
12870         New module 'wctype'.
12871         * modules/wctype: Change to represent the wctype() substitute.
12872         * lib/wctype.in.h (wctype): New declaration.
12873         * lib/wctype.c: New file.
12874         * lib/wctype-impl.h: New file.
12875         * m4/wctype.m4: New file.
12876         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
12877         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
12878         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
12879         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
12880         * doc/posix-functions/wctype.texi: Mention the new module and the
12881         HP-UX 11.00 problem.
12882
12883 2011-02-06  Bruno Haible  <bruno@clisp.org>
12884
12885         wctype-h: Ensure wctype_t and wctrans_t are defined.
12886         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
12887         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12888         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12889         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
12890         HAVE_WCTRANS_T.
12891         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
12892
12893 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12894
12895         flock: fix license typo
12896
12897         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
12898         omitted.
12899
12900 2011-02-08  Bruno Haible  <bruno@clisp.org>
12901
12902         Split large sed scripts, for HP-UX sed.
12903         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
12904         to avoid HP-UX limit of 99 commands, in the near future.
12905         * modules/stdlib (Makefile.am): Likewise.
12906         * modules/unistd (Makefile.am): Likewise.
12907         * modules/wchar (Makefile.am): Likewise.
12908         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12909         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
12910         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
12911
12912 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12913             Bruno Haible  <bruno@clisp.org>
12914
12915         stdlib: improve random_r modularization
12916         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12917         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12918         you also need the random_r module to get this material right.
12919         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12920         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12921         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12922
12923 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12924
12925         stdlib: don't depend on stdint
12926         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12927         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12928         be independent of whether stdint.h is needed.
12929         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12930         here, instead of ...
12931         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12932         struct random_data should be using the random_r module, not just
12933         the stdlib module (which wouldn't make sense: what package needs
12934         just struct random_data without also needing random_r?).
12935         * modules/stdlib (Depends-on): Remove stdint.
12936
12937         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12938         See the thread rooted at
12939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12940         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12941         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12942         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12943         __VMS)); previously it was always included (via fcntl--.h).
12944         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12945         hand; this is good enough for load averages.  Also, do not use
12946         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12947         flags directly if available and don't bother otherwise.  (Packages
12948         that need the extra reliability should use the modules that define
12949         these flags on older platforms that lack them.)
12950         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12951         fcntl-safer.
12952
12953 2011-02-08  Jim Meyering  <meyering@redhat.com>
12954
12955         di-set.h, ino-map.h: add multiple-inclusion guard
12956         Technically, the guard is required only for ino-map.h, due to its
12957         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12958         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12959         * lib/ino-map.h: Likewise.
12960
12961 2011-02-06  Bruno Haible  <bruno@clisp.org>
12962
12963         iswblank: Ensure declaration on glibc systems.
12964         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12965         * modules/iswblank (Dependencies): Add 'extensions'.
12966         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12967
12968 2011-02-06  Bruno Haible  <bruno@clisp.org>
12969
12970         New module 'iswblank'.
12971         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12972         * modules/iswblank: New file.
12973         * modules/wctype-h (Files): Remove lib/iswblank.c.
12974         (Makefile.am): Substitute GNULIB_ISWBLANK.
12975         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12976         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12977         (gl_WCTYPE_H_DEFAULTS): New macro.
12978         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12979         * modules/iswblank-tests: New file.
12980         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12981         * tests/test-wctype-h.c (main): Remove iswblank tests.
12982         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12983         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12984         of 'wctype-h'.
12985         * NEWS: Mention the change.
12986         * modules/mbchar (Depends-on): Add iswblank.
12987
12988 2011-02-08  Bruno Haible  <bruno@clisp.org>
12989
12990         di-set tests: Refactor.
12991         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12992         unnecessary includes.
12993         (ASSERT): Remove macro.
12994         (main): Make C90 compliant by avoiding variable declaration after
12995         statement.
12996         * modules/di-set-tests (Files): Add tests/macros.h.
12997
12998 2011-02-08  Bruno Haible  <bruno@clisp.org>
12999
13000         ino-map tests: Refactor.
13001         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13002         unnecessary includes.
13003         (ASSERT): Remove macro.
13004         (main): Make C90 compliant by avoiding variable declaration after
13005         statement.
13006         * modules/ino-map-tests (Files): Add tests/macros.h.
13007
13008 2011-02-08  Jim Meyering  <meyering@redhat.com>
13009
13010         di-set: add "const" to a cast
13011         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13012         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13013
13014 2011-02-06  Bruno Haible  <bruno@clisp.org>
13015
13016         Rename module 'wctype' to 'wctype-h'.
13017         * modules/wctype-h: Renamed from modules/wctype.
13018         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13019         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13020         (Files, Depends-on, Makefile.am): Update.
13021         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13022         (Files, Makefile.am): Update.
13023         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13024         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13025         * doc/posix-headers/wctype.texi: Update.
13026         * doc/posix-functions/iswalnum.texi: Update.
13027         * doc/posix-functions/iswalpha.texi: Update.
13028         * doc/posix-functions/iswblank.texi: Update.
13029         * doc/posix-functions/iswcntrl.texi: Update.
13030         * doc/posix-functions/iswdigit.texi: Update.
13031         * doc/posix-functions/iswgraph.texi: Update.
13032         * doc/posix-functions/iswlower.texi: Update.
13033         * doc/posix-functions/iswprint.texi: Update.
13034         * doc/posix-functions/iswpunct.texi: Update.
13035         * doc/posix-functions/iswspace.texi: Update.
13036         * doc/posix-functions/iswupper.texi: Update.
13037         * doc/posix-functions/iswxdigit.texi: Update.
13038         * doc/posix-functions/towlower.texi: Update.
13039         * doc/posix-functions/towupper.texi: Update.
13040         * NEWS: Mention the change.
13041         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13042         * modules/mbchar (Dependencies): Likewise.
13043         * modules/mbswidth (Dependencies): Likewise.
13044         * modules/quotearg (Dependencies): Likewise.
13045         * modules/regex (Dependencies): Likewise.
13046         * modules/wcscasecmp (Dependencies): Likewise.
13047         * modules/wcsncasecmp (Dependencies): Likewise.
13048         * modules/wcwidth (Dependencies): Likewise.
13049
13050 2011-02-06  Bruno Haible  <bruno@clisp.org>
13051
13052         New module 'wcswidth'.
13053         * modules/wcswidth: New file.
13054         * lib/wchar.in.h (wcswidth): New declaration.
13055         * lib/wcswidth.c: New file.
13056         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13057         * m4/wcswidth.m4: New file.
13058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13060         REPLACE_WCSWIDTH.
13061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13062         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13063         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13064         * doc/posix-functions/wcswidth.texi: Mention the new module.
13065
13066 2011-02-06  Bruno Haible  <bruno@clisp.org>
13067
13068         New module 'wcstok'.
13069         * modules/wcstok: New file.
13070         * lib/wchar.in.h (wcstok): New declaration.
13071         * lib/wcstok.c: New file.
13072         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13073         * m4/wcstok.m4: New file.
13074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13077         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13078         * doc/posix-functions/wcstok.texi: Mention the new module.
13079
13080 2011-02-06  Bruno Haible  <bruno@clisp.org>
13081
13082         New module 'wcsstr'.
13083         * modules/wcsstr: New file.
13084         * lib/wchar.in.h (wcsstr): New declaration.
13085         * lib/wcsstr.c: New file.
13086         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13087         * m4/wcsstr.m4: New file.
13088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13091         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13092         * doc/posix-functions/wcsstr.texi: Mention the new module.
13093
13094 2011-02-06  Bruno Haible  <bruno@clisp.org>
13095
13096         New module 'wcspbrk'.
13097         * modules/wcspbrk: New file.
13098         * lib/wchar.in.h (wcspbrk): New declaration.
13099         * lib/wcspbrk.c: New file.
13100         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13101         * m4/wcspbrk.m4: New file.
13102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13105         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13106         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13107
13108 2011-02-06  Bruno Haible  <bruno@clisp.org>
13109
13110         New module 'wcsspn'.
13111         * modules/wcsspn: New file.
13112         * lib/wchar.in.h (wcsspn): New declaration.
13113         * lib/wcsspn.c: New file.
13114         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13115         * m4/wcsspn.m4: New file.
13116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13119         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13120         * doc/posix-functions/wcsspn.texi: Mention the new module.
13121
13122 2011-02-06  Bruno Haible  <bruno@clisp.org>
13123
13124         New module 'wcscspn'.
13125         * modules/wcscspn: New file.
13126         * lib/wchar.in.h (wcscspn): New declaration.
13127         * lib/wcscspn.c: New file.
13128         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13129         * m4/wcscspn.m4: New file.
13130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13132         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13133         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13134         * doc/posix-functions/wcscspn.texi: Mention the new module.
13135
13136 2011-02-06  Bruno Haible  <bruno@clisp.org>
13137
13138         New module 'wcsrchr'.
13139         * modules/wcsrchr: New file.
13140         * lib/wchar.in.h (wcsrchr): New declaration.
13141         * lib/wcsrchr.c: New file.
13142         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13143         * m4/wcsrchr.m4: New file.
13144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13147         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13148         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13149
13150 2011-02-06  Bruno Haible  <bruno@clisp.org>
13151
13152         New module 'wcschr'.
13153         * modules/wcschr: New file.
13154         * lib/wchar.in.h (wcschr): New declaration.
13155         * lib/wcschr.c: New file.
13156         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13157         * m4/wcschr.m4: New file.
13158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13161         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13162         * doc/posix-functions/wcschr.texi: Mention the new module.
13163
13164 2011-02-06  Bruno Haible  <bruno@clisp.org>
13165
13166         New module 'wcsdup'.
13167         * modules/wcsdup: New file.
13168         * lib/wchar.in.h (wcsdup): New declaration.
13169         * lib/wcsdup.c: New file.
13170         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13171         * m4/wcsdup.m4: New file.
13172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13175         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13176         * doc/posix-functions/wcsdup.texi: Mention the new module.
13177
13178 2011-02-06  Bruno Haible  <bruno@clisp.org>
13179
13180         New module 'wcsxfrm'.
13181         * modules/wcsxfrm: New file.
13182         * lib/wchar.in.h (wcsxfrm): New declaration.
13183         * lib/wcsxfrm.c: New file.
13184         * lib/wcsxfrm-impl.h: New file.
13185         * m4/wcsxfrm.m4: New file.
13186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13189         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13190         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13191
13192 2011-02-06  Bruno Haible  <bruno@clisp.org>
13193
13194         New module 'wcscoll'.
13195         * modules/wcscoll: New file.
13196         * lib/wchar.in.h (wcscoll): New declaration.
13197         * lib/wcscoll.c: New file.
13198         * lib/wcscoll-impl.h: New file.
13199         * m4/wcscoll.m4: New file.
13200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13203         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13204         * doc/posix-functions/wcscoll.texi: Mention the new module.
13205
13206 2011-02-06  Bruno Haible  <bruno@clisp.org>
13207
13208         New module 'wcsncasecmp'.
13209         * modules/wcsncasecmp: New file.
13210         * lib/wchar.in.h (wcsncasecmp): New declaration.
13211         * lib/wcsncasecmp.c: New file.
13212         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13213         * m4/wcsncasecmp.m4: New file.
13214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13217         HAVE_WCSNCASECMP.
13218         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13219         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13220
13221 2011-02-06  Bruno Haible  <bruno@clisp.org>
13222
13223         New module 'wcscasecmp'.
13224         * modules/wcscasecmp: New file.
13225         * lib/wchar.in.h (wcscasecmp): New declaration.
13226         * lib/wcscasecmp.c: New file.
13227         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13228         * m4/wcscasecmp.m4: New file.
13229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13231         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13232         HAVE_WCSCASECMP.
13233         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13234         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13235
13236 2011-02-05  Bruno Haible  <bruno@clisp.org>
13237
13238         New module 'wcsncmp'.
13239         * modules/wcsncmp: New file.
13240         * lib/wchar.in.h (wcsncmp): New declaration.
13241         * lib/wcsncmp.c: New file.
13242         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13243         * m4/wcsncmp.m4: New file.
13244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13247         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13248         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13249
13250 2011-02-05  Bruno Haible  <bruno@clisp.org>
13251
13252         New module 'wcscmp'.
13253         * modules/wcscmp: New file.
13254         * lib/wchar.in.h (wcscmp): New declaration.
13255         * lib/wcscmp.c: New file.
13256         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13257         * m4/wcscmp.m4: New file.
13258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13261         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13262         * doc/posix-functions/wcscmp.texi: Mention the new module.
13263
13264 2011-02-05  Bruno Haible  <bruno@clisp.org>
13265
13266         New module 'wcsncat'.
13267         * modules/wcsncat: New file.
13268         * lib/wchar.in.h (wcsncat): New declaration.
13269         * lib/wcsncat.c: New file.
13270         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13271         * m4/wcsncat.m4: New file.
13272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13274         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13275         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13276         * doc/posix-functions/wcsncat.texi: Mention the new module.
13277
13278 2011-02-05  Bruno Haible  <bruno@clisp.org>
13279
13280         New module 'wcscat'.
13281         * modules/wcscat: New file.
13282         * lib/wchar.in.h (wcscat): New declaration.
13283         * lib/wcscat.c: New file.
13284         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13285         * m4/wcscat.m4: New file.
13286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13289         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13290         * doc/posix-functions/wcscat.texi: Mention the new module.
13291
13292 2011-02-05  Bruno Haible  <bruno@clisp.org>
13293
13294         New module 'wcpncpy'.
13295         * modules/wcpncpy: New file.
13296         * lib/wchar.in.h (wcpncpy): New declaration.
13297         * lib/wcpncpy.c: New file.
13298         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13299         * m4/wcpncpy.m4: New file.
13300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13302         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13303         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13304         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13305
13306 2011-02-05  Bruno Haible  <bruno@clisp.org>
13307
13308         New module 'wcsncpy'.
13309         * modules/wcsncpy: New file.
13310         * lib/wchar.in.h (wcsncpy): New declaration.
13311         * lib/wcsncpy.c: New file.
13312         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13313         * m4/wcsncpy.m4: New file.
13314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13317         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13318         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13319
13320 2011-02-05  Bruno Haible  <bruno@clisp.org>
13321
13322         New module 'wcpcpy'.
13323         * modules/wcpcpy: New file.
13324         * lib/wchar.in.h (wcpcpy): New declaration.
13325         * lib/wcpcpy.c: New file.
13326         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13327         * m4/wcpcpy.m4: New file.
13328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13330         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13331         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13332         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13333
13334 2011-02-05  Bruno Haible  <bruno@clisp.org>
13335
13336         New module 'wcscpy'.
13337         * modules/wcscpy: New file.
13338         * lib/wchar.in.h (wcscpy): New declaration.
13339         * lib/wcscpy.c: New file.
13340         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13341         * m4/wcscpy.m4: New file.
13342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13345         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13346         * doc/posix-functions/wcscpy.texi: Mention the new module.
13347
13348 2011-02-05  Bruno Haible  <bruno@clisp.org>
13349
13350         New module 'wcsnlen'.
13351         * modules/wcsnlen: New file.
13352         * lib/wchar.in.h (wcsnlen): New declaration.
13353         * lib/wcsnlen.c: New file.
13354         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13355         * m4/wcsnlen.m4: New file.
13356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13359         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13360         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13361
13362 2011-02-05  Bruno Haible  <bruno@clisp.org>
13363
13364         New module 'wcslen'.
13365         * modules/wcslen: New file.
13366         * lib/wchar.in.h (wcslen): New declaration.
13367         * lib/wcslen.c: New file.
13368         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13369         * m4/wcslen.m4: New file.
13370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13373         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13374         * doc/posix-functions/wcslen.texi: Mention the new module.
13375
13376 2011-02-05  Bruno Haible  <bruno@clisp.org>
13377
13378         New module 'wmemset'.
13379         * modules/wmemset: New file.
13380         * lib/wchar.in.h (wmemset): New declaration.
13381         * lib/wmemset.c: New file.
13382         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13383         * m4/wmemset.m4: New file.
13384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13386         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13387         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13388         * doc/posix-functions/wmemset.texi: Mention the new module.
13389
13390 2011-02-05  Bruno Haible  <bruno@clisp.org>
13391
13392         New module 'wmemmove'.
13393         * modules/wmemmove: New file.
13394         * lib/wchar.in.h (wmemmove): New declaration.
13395         * lib/wmemmove.c: New file.
13396         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13397         * m4/wmemmove.m4: New file.
13398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13400         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13401         HAVE_WMEMMOVE.
13402         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13403         * doc/posix-functions/wmemmove.texi: Mention the new module.
13404
13405 2011-02-05  Bruno Haible  <bruno@clisp.org>
13406
13407         New module 'wmemcpy'.
13408         * modules/wmemcpy: New file.
13409         * lib/wchar.in.h (wmemcpy): New declaration.
13410         * lib/wmemcpy.c: New file.
13411         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13412         * m4/wmemcpy.m4: New file.
13413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13415         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13416         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13417         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13418
13419 2011-02-05  Bruno Haible  <bruno@clisp.org>
13420
13421         New module 'wmemcmp'.
13422         * modules/wmemcmp: New file.
13423         * lib/wchar.in.h (wmemcmp): New declaration.
13424         * lib/wmemcmp.c: New file.
13425         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13426         * m4/wmemcmp.m4: New file.
13427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13429         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13430         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13431         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13432
13433 2011-02-07  Jim Meyering  <meyering@redhat.com>
13434
13435         di-set, ino-map: new modules, from coreutils
13436         * lib/di-set.c: New file.
13437         * lib/di-set.h: Likewise.
13438         * lib/ino-map.c: Likewise.
13439         * lib/ino-map.h: Likewise.
13440         * modules/di-set: Likewise.
13441         * modules/di-set-tests: Likewise.
13442         * modules/ino-map: Likewise.
13443         * modules/ino-map-tests: Likewise.
13444         * tests/test-di-set.c: Likewise.
13445         * tests/test-ino-map.c: Likewise.
13446
13447 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13448
13449         getloadavg: merge minor changes from Emacs
13450
13451         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13452         (getloadavg): Use memset, not bzero.
13453
13454         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13455         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13456         clash (bug#86).
13457
13458 2010-11-14  Bruno Haible  <bruno@clisp.org>
13459
13460         Allow multiple gnulib generated replacements to coexist.
13461         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13462         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13463         * lib/langinfo.in.h (nl_item): Likewise.
13464         * lib/math.in.h (_NaN, NAN): Likewise.
13465         * lib/netdb.in.h (struct addrinfo): Likewise.
13466         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13467         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13468         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13469         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13470         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13471         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13472         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13473         pthread_mutexattr_init, pthread_mutexattr_settype,
13474         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13475         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13476         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13477         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13478         * lib/sched.in.h (struct sched_param): Likewise.
13479         * lib/se-selinux.in.h (security_class_t, security_context_t,
13480         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13481         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13482         lsetfilecon, fsetfilecon, security_check_context,
13483         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13484         Likewise.
13485         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13486         Likewise.
13487         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13488         _gl_function_taking_int_returning_void_t, union sigval,
13489         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13490         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13491         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13492         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13493         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13494         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13495         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13496         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13497         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13498         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13499         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13500         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13501         socklen_t, rpl_fd_isset): Likewise.
13502         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13503         * lib/sys_time.in.h (struct timeval): Likewise.
13504         * lib/sys_times.in.h (struct tms): Likewise.
13505         * lib/sys_utsname.in.h (struct utsname):
13506         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13507         * lib/unistd.in.h (getpagesize): Likewise.
13508         * lib/wchar.in.h (mbstate_t): Likewise.
13509         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13510         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13511         towlower, towupper): Likewise.
13512         Reported by Sam Steingold <sds@gnu.org>.
13513
13514 2011-02-05  Eric Blake  <eblake@redhat.com>
13515
13516         unsetenv: work around Haiku issues
13517         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13518         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13519
13520 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13521
13522         libposix: avoid calling error() within libposix
13523         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13524         is defined.
13525
13526 2011-02-05  Eric Blake  <eblake@redhat.com>
13527
13528         strerror_r-posix: port to cygwin
13529         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13530         implementation.
13531         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13532         * tests/test-strerror_r.c (main): Fix test.
13533         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13534         issue.
13535
13536 2011-02-05  Bruno Haible  <bruno@clisp.org>
13537
13538         New module 'wmemchr'.
13539         * modules/wmemchr: New file.
13540         * lib/wchar.in.h (wmemchr): New declaration.
13541         * lib/wmemchr.c: New file.
13542         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13543         * m4/wmemchr.m4: New file.
13544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13546         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13547         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13548         * doc/posix-functions/wmemchr.texi: Mention the new module.
13549
13550 2011-02-04  Eric Blake  <eblake@redhat.com>
13551
13552         fdopendir: detect FreeBSD bug
13553         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13554         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13555
13556 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13557
13558         stdbool: do not define HAVE_STDBOOL_H
13559         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13560         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13561         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13562         imported from the latest Autoconf git.  It was motivated by Emacs,
13563         which uses gnulib but does not need HAVE_STDBOOL_H.
13564
13565 2011-02-04  Bruno Haible  <bruno@clisp.org>
13566
13567         wcsnrtombs: Prepare for new module wwcsnrtombs.
13568         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13569         * lib/wcsnrtombs.c: Include it.
13570         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13571
13572         wcsrtombs: Prepare for new module wwcsrtombs.
13573         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13574         * lib/wcsrtombs.c: Include it.
13575         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13576
13577         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13578         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13579         * lib/mbsnrtowcs.c: Include it.
13580         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13581
13582         mbsrtowcs: Prepare for new module mbsrtowwcs.
13583         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13584         * lib/mbsrtowcs.c: Include it.
13585         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13586
13587 2011-02-04  Bruno Haible  <bruno@clisp.org>
13588
13589         vasnprintf: Reduce use of malloc for small format strings.
13590         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13591         (arguments): Add room for the first 7 arguments.
13592         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13593         (char_directives, u8_directives, u16_directives, u32_directives): Add
13594         room for the first 7 directives.
13595         * lib/printf-parse.c: Include <string.h>.
13596         (PRINTF_PARSE): Change memory handling code so that it uses the first
13597         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13598         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13599         Reported by Pádraig Brady <P@draigbrady.com>.
13600
13601 2011-01-31  Eric Blake  <eblake@redhat.com>
13602
13603         dup2: work around Haiku bug
13604         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13605         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13606         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13607         * tests/test-dup2.c (main): Enhance test.
13608
13609 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13610
13611         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13612         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13613         declared by eglibc 2.11.2.
13614         * lib/stdio.in.h: Likewise.
13615
13616 2011-01-31  Eric Blake  <eblake@redhat.com>
13617
13618         ignore-value: add missing test dependency
13619         * tests/test-ignore-value.c: Revert previous change; stdio.h
13620         provides off_t.
13621         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13622
13623 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13624
13625         mktime: clarify long_int width checking
13626         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13627         the top level, to make it clearer that the assumption about
13628         long_int width is being checked.  See
13629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13630
13631 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13632
13633         ignore-value: Fix self-test.
13634         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13635
13636 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13637
13638         TYPE_MAXIMUM: avoid theoretically undefined behavior
13639         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13640         negative number, which the C Standard says has undefined behavior.
13641         In practice this is not a problem, but might as well do it by the book.
13642         Reported by Rich Felker and Eric Blake; see
13643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13644         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13645         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13647         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13648         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13649         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13650
13651         mktime: #undef mktime before #defining it
13652         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13653
13654         mktime: systematically normalize tm_isdst comparisons
13655         * lib/mktime.c (isdst_differ): New function.
13656         (__mktime_internal): Use it systematically for all isdst comparisons.
13657         This completes the fix for libc BZ #6723, and removes the need for
13658         normalizing tm_isdst.  See
13659         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13660         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13661
13662         mktime: fix some integer overflow issues and sidestep the rest
13663
13664         This was prompted by a bug report by Benjamin Lindner for MinGW
13665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13666         His bug is due to signed integer overflow (0 - INT_MIN), and I
13667         I scanned through mktime.c looking for other integer overflow
13668         problems, fixing all the bugs I found.
13669
13670         Although the C Standard says the resulting code is still not safe
13671         in the presence of integer overflow, in practice it should be good
13672         enough for all real-world two's-complement implementations, except
13673         for debugging environments that deliberately trap on integer
13674         overflow (e.g., gcc -ftrapv).
13675
13676         * lib/mktime.c (WRAPV): New macro.
13677         (SHR): Also check that long_int and time_t shift right in the
13678         usual way, before using the fast-but-unportable method.
13679         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13680         used.  The code already assumed two's complement, so there's
13681         no need to test for alternatives.  All uses removed.
13682         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13683         the C standard.  Problem reported by Rich Felker in
13684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13685         (twos_complement_arithmetic): Also check long_int and time_t.
13686         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13687         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13688         (__mktime_internal): Avoid integer overflow with unary subtraction
13689         in two instances where -1 - X is an adequate replacement for -X,
13690         since the calculations are approximate.
13691
13692 2011-01-29  Eric Blake  <eblake@redhat.com>
13693
13694         mktime: avoid infinite loop
13695         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13696         type; behavior is still undefined but portable to all known targets.
13697         Reported by Rich Felker.
13698
13699 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13700
13701         rename, unlink, same-inode: Relicense.
13702         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13703         * modules/unlink (License): Likewise.
13704         * modules/same-inode (License): Likewise.
13705
13706 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13707
13708         mktime: avoid problems on NetBSD 5 / i386
13709         * lib/mktime.c (long_int): New type.  This works around a problem
13710         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13711         but time_t is 64 bits, and where I expect the existing code is
13712         wrong in some cases.
13713         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13714         (ydhms_diff): Bring back the compile-time check for wide-enough
13715         year and yday.
13716
13717         mktime: fix misspelling in comment
13718         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13719         This merges all recent glibc changes of importance.
13720
13721 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13722
13723         move-if-change: cope with concurrent mv of identical file.
13724         * build-aux/move-if-change (CMPPROG): Accept environment
13725         variable as an override for `cmp'.
13726         (usage): Document CMPPROG.
13727         Adjust comparison to drop stdout.  Cope with failure of mv if
13728         the target file exists and is identical to the source, for
13729         parallel builds.
13730         Report from H.J. Lu against binutils in PR binutils/12283.
13731
13732 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13733
13734         * users.txt: Mention sharutils.
13735
13736 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13737
13738         * users.txt: Mention OATH Toolkit.
13739
13740 2011-01-27  Bruno Haible  <bruno@clisp.org>
13741
13742         Prepare for supporting FreeBSD 10.
13743         * build-aux/config.libpath: Remove handling of freebsd1*.
13744
13745 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13746
13747         Prepare for supporting FreeBSD 10.
13748         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13749         match FreeBSD 10.0.
13750
13751 2011-01-27  Bruno Haible  <bruno@clisp.org>
13752
13753         vma-iter, get-rusage-as: Add OpenBSD support.
13754         * modules/vma-iter (configure.ac): Test for mquery.
13755         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13756         * lib/vma-iter.c: Include <sys/mman.h>.
13757         (vma_iterate): Add an implementation based on mquery().
13758         * lib/resource-ext.h (get_rusage_as): Update comments.
13759         * lib/get-rusage-as.c: Likewise.
13760         * lib/get-rusage-data.c: Likewise.
13761
13762 2011-01-26  Karl Berry  <karl@gnu.org>
13763
13764         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13765         variables to make it easier to override the makeinfo program used.
13766
13767 2011-01-26  Eric Blake  <eblake@redhat.com>
13768
13769         fcntl: work around Haiku F_DUPFD bugs
13770         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13771         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13772         cloexec bit on duplication.
13773         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13774
13775 2011-01-26  Bruno Haible  <bruno@clisp.org>
13776
13777         Enable memory leak tests on AIX.
13778         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13779         * tests/test-fprintf-posix3.c (main): Likewise.
13780
13781 2011-01-26  Bruno Haible  <bruno@clisp.org>
13782
13783         Tests for module 'get-rusage-data'.
13784         * modules/get-rusage-data-tests: New file.
13785         * tests/test-get-rusage-data.c: New file.
13786
13787         New module 'get-rusage-data'.
13788         * lib/resource-ext.h (get_rusage_data): New declaration.
13789         * lib/get-rusage-data.c: New file.
13790         * modules/get-rusage-data: New file.
13791
13792 2011-01-25  Bruno Haible  <bruno@clisp.org>
13793
13794         get-rusage-as: Allow for easier testing.
13795         * lib/resource-ext.h (get_rusage_as): Add comment.
13796         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13797         (main): New function for interactive testing.
13798
13799 2011-01-25  Bruno Haible  <bruno@clisp.org>
13800
13801         vma-iter: Treat Haiku like BeOS.
13802         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13803         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13804
13805 2011-01-25  Eric Blake  <eblake@redhat.com>
13806
13807         c-stack: fix regression on cygwin when libsigsegv is present
13808         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13809
13810 2011-01-24  Bruno Haible  <bruno@clisp.org>
13811
13812         vma-iter: Avoid empty intervals.
13813         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13814         on an empty interval.
13815
13816 2011-01-24  Jim Meyering  <meyering@redhat.com>
13817
13818         u64: remove unnecessary #include
13819         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13820
13821 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13822
13823         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13824         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13825
13826 2011-01-23  Bruno Haible  <bruno@clisp.org>
13827
13828         New module 'vma-iter'.
13829         * lib/vma-iter.h: New file.
13830         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13831         * modules/vma-iter: New file.
13832         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13833         for get_rusage_as_via_iterator.
13834         (vma_iterate_callback): New function.
13835         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13836         * modules/get-rusage-as (Depends-on): Add vma-iter.
13837
13838 2011-01-23  Bruno Haible  <bruno@clisp.org>
13839
13840         uninorm: Tweak includes.
13841         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13842         Reported by Jim Meyering.
13843
13844 2011-01-23  Bruno Haible  <bruno@clisp.org>
13845
13846         get-rusage-as: Improve on NetBSD.
13847         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13848         /proc, like on FreeBSD.
13849
13850 2011-01-23  Jim Meyering  <meyering@redhat.com>
13851
13852         xreadlink.h: remove unnecessary #include
13853         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13854
13855         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13856         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13857
13858 2011-01-23  Bruno Haible  <bruno@clisp.org>
13859
13860         get-rusage-as: Fix bug.
13861         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13862         original limit when aborting the first loop.
13863
13864 2011-01-23  Bruno Haible  <bruno@clisp.org>
13865
13866         wctype: Ensure valid C syntax.
13867         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13868         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13869
13870 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13871
13872         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
13874         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
13875         as they are needed only for configure's test case.
13876         This removes two unnecessary symbols from config.h.
13877
13878         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
13879         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
13880         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
13881         AC_CHECK_HEADERS_ONCE on a header that we also invoke
13882         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
13883         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
13884         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
13885         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13886         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13887         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13888         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13890         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13891         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13892         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13893         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13894         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13895         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13896
13897 2011-01-21  Eric Blake  <eblake@redhat.com>
13898
13899         maintainer-makefile: work with older git for submodule check
13900         * top/maint.mk (public-submodule-commit): Rewrite to avoid
13901         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
13902         Reported by Matthias Bolte.
13903
13904         bootstrap: minor portability fixes
13905         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
13906         (usage): Omit leading capital and trailing . on help phrases, per
13907         GNU Coding Standards.
13908         (check_versions, top level): Prefix messages with script name.
13909
13910 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
13911
13912         bootstrap: support --no-git option
13913         * build-aux/bootstrap: Add --no-git option, to be used when
13914         --gnulib-srcdir points to the exact desired checkout.
13915
13916 2011-01-21  Eric Blake  <eblake@redhat.com>
13917
13918         strerror_r-posix: work with glibc 2.13
13919         * lib/strerror_r.c (strerror_r): Fix return type.
13920
13921 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13922             Bruno Haible  <bruno@clisp.org>
13923
13924         uN_strstr: New unit tests.
13925         * modules/unistr/u8-strstr-tests: New file.
13926         * modules/unistr/u16-strstr-tests: New file.
13927         * modules/unistr/u32-strstr-tests: New file.
13928         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13929         * tests/unistr/test-u8-strstr.c: New file.
13930         * tests/unistr/test-u16-strstr.c: New file.
13931         * tests/unistr/test-u32-strstr.c: New file.
13932
13933 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13934             Bruno Haible  <bruno@clisp.org>
13935
13936         Make uN_strstr functions O(n) worst-case.
13937         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13938         16-bit and 32-bit unit cases, use the unibyte algorithm from
13939         lib/mbsstr.c.
13940         * lib/unistr/u8-strstr.c: Include <string.h>.
13941         (UNIT_IS_UINT8_T): New macro.
13942         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13943         (U_STRLEN, U_STRNLEN): New macros.
13944         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13945         (U_STRLEN, U_STRNLEN): New macros.
13946         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13947         (configure.ac): Update required libunistring version.
13948         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13949         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13950         malloca.
13951         (configure.ac): Update required libunistring version.
13952         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13953         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13954         malloca.
13955         (configure.ac): Update required libunistring version.
13956
13957 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13958             Bruno Haible  <bruno@clisp.org>
13959
13960         Prepare for faster uN_strstr functions.
13961         * lib/str-kmp.h: Support definable UNITs.
13962         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13963         needle_len argument.
13964         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13965         * lib/mbscasestr.c (mbscasestr): Likewise.
13966
13967 2011-01-21  Pádraig Brady <P@draigBrady.com>
13968
13969         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13970         * tests/test-malloca.c (main): Unset the environment variable
13971         to greatly speed up the test.
13972         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13973         * modules/malloca-tests: Depend on unsetenv.
13974
13975 2011-01-21  Pádraig Brady <P@draigBrady.com>
13976
13977         ignore-value: remove stdint dependency
13978         * lib/ignore-value.h: Remove <stdint.h>
13979         * modules/ignore-value: Remove stdint dependency.
13980
13981 2011-01-21  Jim Meyering  <meyering@redhat.com>
13982
13983         maint.mk: adjust variable name to be consistent with other gl_ vars
13984         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13985         to be lower case.
13986
13987 2011-01-20  Jim Meyering  <meyering@redhat.com>
13988
13989         maint.mk: make "check" depend on public-submodule-commit by default
13990         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13991
13992 2011-01-20  Bruno Haible  <bruno@clisp.org>
13993
13994         mbfile, mbiter: Complete change from 2008-12-21.
13995         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13996         * m4/mbiter.m4 (gl_MBITER): Likewise.
13997
13998 2011-01-20  Jim Meyering  <meyering@redhat.com>
13999
14000         init.sh: insert space between each function name and "()"
14001         * tests/init.sh: Make it a little easier to see that a function's
14002         name is "warn_", and not "warn" when looking at the first part of
14003         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14004
14005 2011-01-20  Jim Meyering  <meyering@redhat.com>
14006
14007         mountlist: clean up code formatting
14008         * lib/mountlist.c (read_file_system_list): Split a long line,
14009         correct bracing style, use NULL in place of "(struct statfs *)0",
14010         don't parenthesize return value, add spaces around "=" and after
14011         ";-in-for-stmt".
14012
14013 2011-01-14  Markus Duft <mduft@gentoo.org>
14014
14015         mountlist: add support for Interix
14016         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14017         Apply statvfs to all entries of /dev/fs.
14018         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14019         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14020
14021 2011-01-20  Jim Meyering  <meyering@redhat.com>
14022
14023         maint.mk: improve the public-submodule-commit rule
14024         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14025         to suppress printing of its commands... unless V=1.
14026         Add git submodule's --quiet option to suppress printing of e.g.,
14027         "Entering gnulib" output.
14028         "cd" into $(srcdir) before running git submodule.
14029
14030 2011-01-20  Bruno Haible  <bruno@clisp.org>
14031
14032         include_next: Fix bug introduced on 2011-01-18.
14033         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14034         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14035         ac_cv_header_... variable if the second argument is not 'check'.
14036         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14037         gl_NEXT_HEADERS_INTERNAL.
14038
14039 2011-01-20  Bruno Haible  <bruno@clisp.org>
14040
14041         Allow the user to avoid the GNULIB_TEST_* macros.
14042         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14043         Suggested by Paul Eggert.
14044
14045 2011-01-14  Jim Meyering  <meyering@redhat.com>
14046
14047         bootstrap: avoid failure when there is no .gitmodules file
14048         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14049         has been assigned to, even when its value is the empty string.
14050         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14051         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14052         Reported by John W. Eaton <jwe@gnu.org>.
14053
14054 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14055
14056         assume <ctype.h>, ..., <time.h> exist
14057         For years gnulib has been assuming the existence of the headers
14058         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14059         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14060         them, since they don't appear to be needed.
14061         * README (Portability guidelines): Document this.
14062         * lib/flock.c: Assume <fcntl.h> exists.
14063         * lib/regex_internal.h: Assume <locale.h> exists.
14064         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14065         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14066         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14067         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14068         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14069         * m4/regex.m4 (gl_REGEX): Likewise.
14070         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14071         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14072         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14073         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14074         * tests/test-argp.c: Likewise.
14075         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14076
14077         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14078         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14079         AA_APPLE_UNIVERSAL_BUILD.  See
14080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14081         * NEWS: Document this.
14082
14083 2011-01-19  Eric Blake  <eblake@redhat.com>
14084
14085         c-stack: assume stack overflow if SA_SIGINFO unsupported
14086         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14087         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14088         sigaction will work.
14089         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14090         behavior match Linux.
14091         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14092
14093         stdbool-tests: accomodate Haiku
14094         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14095
14096         binary-io: fix O_TEXT on Haiku
14097         * modules/binary-io (Depends-on): Add fcntl-h.
14098         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14099         than blindly undefining O_TEXT.
14100         Reported by Scott McCreary.
14101
14102 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14103
14104         include_next: do not check for standard headers like stddef.h
14105
14106         I found this problem when modifying Emacs to use gnulib.
14107         I noticed that it added HAVE_STDDEF_H to config.h, even though
14108         gnulib always assumes <stddef.h> exists as per README and this
14109         symbol is unnecessary.
14110         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14111         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14112         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14113         faster for headers like stddef.h that are known to exist.
14114         (gl_CHECK_NEXT_HEADERS): Use it.
14115         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14116         rather than gl_CHECK_NEXT_HEADERS.
14117         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14118         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14119
14120 2011-01-18  Eric Blake  <eblake@redhat.com>
14121
14122         ansi-c++-opt: skip C++ dependency style if C++ is unused
14123         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14124         tests when we know C++ compilation is not desired.
14125         Reported by Scott McCreary.
14126
14127 2011-01-18  Bruno Haible  <bruno@clisp.org>
14128
14129         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14130         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14131         (main): Perform test also when getrlimit and setrlimit don't exist or
14132         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14133         limiting the address space size using setrlimit, compare the address
14134         space size before and after the the test.
14135         * tests/test-dprintf-posix2.c: Likewise.
14136         * tests/test-fprintf-posix3.sh: Update skip messages.
14137         * tests/test-dprintf-posix2.sh: Likewise.
14138         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14139         * modules/dprintf-posix-tests (Depends-on): Likewise.
14140         Reported by Bruce Korb <bkorb@gnu.org> and
14141         Gary V. Vaughan <gary@gnu.org>.
14142
14143 2011-01-18  Bruno Haible  <bruno@clisp.org>
14144
14145         get-rusage-as: Improvement for Cygwin.
14146         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14147         areas that are merely reserved.
14148
14149 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14150
14151         strftime: remove dependencies on multibyte modules
14152
14153         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14154         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14155         only if __osf__ is defined, and I suspect OSF doesn't need these
14156         other modules.  If my guess is wrong, we'll need to come up with a
14157         variant of strftime that doesn't need the multibyte modules.
14158
14159         I discovered this problem when attempting modify Emacs to use the
14160         strftime module.  With the previous gnulib, this caused Emacs to
14161         need 31 new files, ranging from lib/config.charset to
14162         m4/wint_t.m4.  This was overkill and I expect would be offputting
14163         to the Emacs maintainers.  After this change, only 6 new files are
14164         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14165         stdbool.m4, and tm_gmtoff.m4.
14166
14167         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14168         Suggested by Bruno Haible in
14169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14170         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14171         and do not check for wchar.h.
14172         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14173         (Depends-on): Remove mbrlen, mbsinit, wchar.
14174
14175 2011-01-18  Bruno Haible  <bruno@clisp.org>
14176
14177         Tests for module 'get-rusage-as'.
14178         * modules/get-rusage-as-tests: New file.
14179         * tests/test-get-rusage-as.c: New file.
14180
14181         New module 'get-rusage-as'.
14182         * modules/get-rusage-as: New file.
14183         * lib/resource-ext.h: New file.
14184         * lib/get-rusage-as.c: New file.
14185
14186 2011-01-17  Eric Blake  <eblake@redhat.com>
14187
14188         sigaction: relax license from LGPLv3+ to LGPLv2+
14189         * modules/sigaction (License): Relax to LGPLv2+.
14190
14191 2011-01-14  Bruno Haible  <bruno@clisp.org>
14192
14193         filemode: Make function declarations usable in C++ mode.
14194         * lib/filemode.h: Enclose function declarations in extern "C" block.
14195         Reported by John W. Eaton <jwe@gnu.org>.
14196
14197 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14198
14199         save-cwd: no longer include "xgetcwd.h"
14200         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14201         This avoids a compilation failure in projects that use save-cwd
14202         without also using the xgetcwd module.
14203
14204 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14205
14206         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14207         This is so that a program like Emacs, which needs only dtoastr,
14208         does not have to bother with distributing and compiling ftoastr
14209         and ldtoastr.
14210         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14211         * modules/dtoastr, modules/ldtoastr: New files.
14212         * modules/ftoastr: Now works just for 'float'.
14213         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14214         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14215         dtoastr.c, ldtoastr.c.
14216
14217 2011-01-11  Jim Meyering  <meyering@redhat.com>
14218
14219         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14220         There is no need to work around the lack of the fchdir function,
14221         since gnulib can now provide a replacement when required.
14222         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14223         * modules/save-cwd (Depends-on): Add fchdir.
14224
14225 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         openat, save-cwd: avoid xmalloc
14228
14229         This removes a direct (but undocumented) dependency of openat on
14230         xalloc, along with an indirect dependency via save-cwd.  It also
14231         removes a dependency of save-cwd on xgetcwd, and thereby
14232         indirectly on xalloc.  This change causes the openat substitute
14233         to fall back on save_cwd when memory is tight, and for save_cwd to
14234         fail instead of dying when memory is tight, but that's good enough.
14235         Problem and initial idea for fix reported by Bastien Roucaries in
14236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14237
14238         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14239         xalloc.h (for xmalloc).
14240         (openat_proc_name): Use malloc, not xmalloc.
14241         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14242         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14243
14244         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14245         This avoids heap allocation for file names whose lengths are in
14246         the range 512..1023, with the upper bound increasing to at most
14247         4031 depending on the platform's PATH_MAX.  (We do not want
14248         pathmax.h here as it might supply a non-constant PATH_MAX.)
14249         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14250         Perhaps they should be moved to malloca.h?
14251         (OPENAT_BUFFER_SIZE): Use them.
14252
14253 2011-01-10  Bruno Haible  <bruno@clisp.org>
14254
14255         doc: Update users.txt.
14256         * users.txt: Add recutils.
14257
14258 2011-01-09  Karl Berry  <karl@gnu.org>
14259
14260         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14261
14262         * doc/configmake.texi: New file.
14263         * doc/gnulib.texi: Include it.
14264         * modules/configmake: Move documentation from here.
14265
14266 2011-01-09  Bruno Haible  <bruno@clisp.org>
14267
14268         Update to Unicode 6.0.0.
14269         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14270         (get_lbp): Update for Unicode 6.0.0.
14271         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14272         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14273         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14274         U+11001, U+11038..U+11046. Remove U+06DE.
14275         (uc_width): Fix bounds of planes.
14276         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14277         lib/uniwidth/width.c.
14278         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14279         trailing whitespace removed.
14280         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14281         without comments, but with the original copyright notice.
14282         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14283         * lib/unicase/ignorable.h: Likewise.
14284         * lib/unicase/tocasefold.h: Likewise.
14285         * lib/unicase/tolower.h: Likewise.
14286         * lib/unicase/totitle.h: Likewise.
14287         * lib/unicase/toupper.h: Likewise.
14288         * lib/unictype/bidi_of.h: Likewise.
14289         * lib/unictype/blocks.h: Likewise.
14290         * lib/unictype/categ_C.h: Likewise.
14291         * lib/unictype/categ_Cn.h: Likewise.
14292         * lib/unictype/categ_L.h: Likewise.
14293         * lib/unictype/categ_Ll.h: Likewise.
14294         * lib/unictype/categ_Lm.h: Likewise.
14295         * lib/unictype/categ_Lo.h: Likewise.
14296         * lib/unictype/categ_Lu.h: Likewise.
14297         * lib/unictype/categ_M.h: Likewise.
14298         * lib/unictype/categ_Mc.h: Likewise.
14299         * lib/unictype/categ_Me.h: Likewise.
14300         * lib/unictype/categ_Mn.h: Likewise.
14301         * lib/unictype/categ_N.h: Likewise.
14302         * lib/unictype/categ_Nd.h: Likewise.
14303         * lib/unictype/categ_No.h: Likewise.
14304         * lib/unictype/categ_P.h: Likewise.
14305         * lib/unictype/categ_Po.h: Likewise.
14306         * lib/unictype/categ_S.h: Likewise.
14307         * lib/unictype/categ_Sc.h: Likewise.
14308         * lib/unictype/categ_Sk.h: Likewise.
14309         * lib/unictype/categ_Sm.h: Likewise.
14310         * lib/unictype/categ_So.h: Likewise.
14311         * lib/unictype/categ_of.h: Likewise.
14312         * lib/unictype/combining.h: Likewise.
14313         * lib/unictype/ctype_alnum.h: Likewise.
14314         * lib/unictype/ctype_alpha.h: Likewise.
14315         * lib/unictype/ctype_graph.h: Likewise.
14316         * lib/unictype/ctype_lower.h: Likewise.
14317         * lib/unictype/ctype_print.h: Likewise.
14318         * lib/unictype/ctype_punct.h: Likewise.
14319         * lib/unictype/ctype_upper.h: Likewise.
14320         * lib/unictype/decdigit.h: Likewise.
14321         * lib/unictype/digit.h: Likewise.
14322         * lib/unictype/numeric.h: Likewise.
14323         * lib/unictype/pr_alphabetic.h: Likewise.
14324         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14325         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14326         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14327         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14328         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14329         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14330         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14331         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14332         * lib/unictype/pr_case_ignorable.h: Likewise.
14333         * lib/unictype/pr_cased.h: Likewise.
14334         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14335         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14336         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14337         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14338         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14339         * lib/unictype/pr_combining.h: Likewise.
14340         * lib/unictype/pr_composite.h: Likewise.
14341         * lib/unictype/pr_currency_symbol.h: Likewise.
14342         * lib/unictype/pr_decimal_digit.h: Likewise.
14343         * lib/unictype/pr_deprecated.h: Likewise.
14344         * lib/unictype/pr_format_control.h: Likewise.
14345         * lib/unictype/pr_grapheme_base.h: Likewise.
14346         * lib/unictype/pr_grapheme_extend.h: Likewise.
14347         * lib/unictype/pr_grapheme_link.h: Likewise.
14348         * lib/unictype/pr_id_continue.h: Likewise.
14349         * lib/unictype/pr_id_start.h: Likewise.
14350         * lib/unictype/pr_ideographic.h: Likewise.
14351         * lib/unictype/pr_lowercase.h: Likewise.
14352         * lib/unictype/pr_math.h: Likewise.
14353         * lib/unictype/pr_numeric.h: Likewise.
14354         * lib/unictype/pr_other_alphabetic.h: Likewise.
14355         * lib/unictype/pr_other_id_continue.h: Likewise.
14356         * lib/unictype/pr_other_math.h: Likewise.
14357         * lib/unictype/pr_punctuation.h: Likewise.
14358         * lib/unictype/pr_sentence_terminal.h: Likewise.
14359         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14360         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14361         * lib/unictype/pr_unified_ideograph.h: Likewise.
14362         * lib/unictype/pr_uppercase.h: Likewise.
14363         * lib/unictype/pr_xid_continue.h: Likewise.
14364         * lib/unictype/pr_xid_start.h: Likewise.
14365         * lib/unictype/scripts.h: Likewise.
14366         * lib/unictype/scripts_byname.gperf: Likewise.
14367         * lib/unictype/sy_java_ident.h: Likewise.
14368         * lib/unigbrk/gbrkprop.h: Likewise.
14369         * lib/unilbrk/lbrkprop1.h: Likewise.
14370         * lib/unilbrk/lbrkprop2.h: Likewise.
14371         * lib/uninorm/decomposition-table2.h: Likewise.
14372         * lib/uniwbrk/wbrkprop.h: Likewise.
14373         * tests/unicase/test-cased.c: Likewise.
14374         * tests/unicase/test-ignorable.c: Likewise.
14375         * tests/unicase/test-uc_tolower.c: Likewise.
14376         * tests/unicase/test-uc_totitle.c: Likewise.
14377         * tests/unicase/test-uc_toupper.c: Likewise.
14378         * tests/unictype/test-categ_C.c: Likewise.
14379         * tests/unictype/test-categ_Cn.c: Likewise.
14380         * tests/unictype/test-categ_L.c: Likewise.
14381         * tests/unictype/test-categ_Ll.c: Likewise.
14382         * tests/unictype/test-categ_Lm.c: Likewise.
14383         * tests/unictype/test-categ_Lo.c: Likewise.
14384         * tests/unictype/test-categ_Lu.c: Likewise.
14385         * tests/unictype/test-categ_M.c: Likewise.
14386         * tests/unictype/test-categ_Mc.c: Likewise.
14387         * tests/unictype/test-categ_Me.c: Likewise.
14388         * tests/unictype/test-categ_Mn.c: Likewise.
14389         * tests/unictype/test-categ_N.c: Likewise.
14390         * tests/unictype/test-categ_Nd.c: Likewise.
14391         * tests/unictype/test-categ_No.c: Likewise.
14392         * tests/unictype/test-categ_P.c: Likewise.
14393         * tests/unictype/test-categ_Po.c: Likewise.
14394         * tests/unictype/test-categ_S.c: Likewise.
14395         * tests/unictype/test-categ_Sc.c: Likewise.
14396         * tests/unictype/test-categ_Sk.c: Likewise.
14397         * tests/unictype/test-categ_Sm.c: Likewise.
14398         * tests/unictype/test-categ_So.c: Likewise.
14399         * tests/unictype/test-ctype_alnum.c: Likewise.
14400         * tests/unictype/test-ctype_alpha.c: Likewise.
14401         * tests/unictype/test-ctype_graph.c: Likewise.
14402         * tests/unictype/test-ctype_lower.c: Likewise.
14403         * tests/unictype/test-ctype_print.c: Likewise.
14404         * tests/unictype/test-ctype_punct.c: Likewise.
14405         * tests/unictype/test-ctype_upper.c: Likewise.
14406         * tests/unictype/test-decdigit.h: Likewise.
14407         * tests/unictype/test-digit.h: Likewise.
14408         * tests/unictype/test-numeric.h: Likewise.
14409         * tests/unictype/test-pr_alphabetic.c: Likewise.
14410         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14411         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14412         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14413         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14414         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14415         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14416         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14417         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14418         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14419         * tests/unictype/test-pr_cased.c: Likewise.
14420         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14421         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14422         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14423         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14424         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14425         * tests/unictype/test-pr_combining.c: Likewise.
14426         * tests/unictype/test-pr_composite.c: Likewise.
14427         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14428         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14429         * tests/unictype/test-pr_deprecated.c: Likewise.
14430         * tests/unictype/test-pr_format_control.c: Likewise.
14431         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14432         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14433         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14434         * tests/unictype/test-pr_id_continue.c: Likewise.
14435         * tests/unictype/test-pr_id_start.c: Likewise.
14436         * tests/unictype/test-pr_ideographic.c: Likewise.
14437         * tests/unictype/test-pr_lowercase.c: Likewise.
14438         * tests/unictype/test-pr_math.c: Likewise.
14439         * tests/unictype/test-pr_numeric.c: Likewise.
14440         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14441         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14442         * tests/unictype/test-pr_other_math.c: Likewise.
14443         * tests/unictype/test-pr_punctuation.c: Likewise.
14444         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14445         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14446         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14447         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14448         * tests/unictype/test-pr_uppercase.c: Likewise.
14449         * tests/unictype/test-pr_xid_continue.c: Likewise.
14450         * tests/unictype/test-pr_xid_start.c: Likewise.
14451         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14452         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14453         changes.
14454         * lib/unictype/categ_Cc.h: Likewise.
14455         * lib/unictype/categ_Cf.h: Likewise.
14456         * lib/unictype/categ_Co.h: Likewise.
14457         * lib/unictype/categ_Cs.h: Likewise.
14458         * lib/unictype/categ_Lt.h: Likewise.
14459         * lib/unictype/categ_Nl.h: Likewise.
14460         * lib/unictype/categ_Pc.h: Likewise.
14461         * lib/unictype/categ_Pd.h: Likewise.
14462         * lib/unictype/categ_Pe.h: Likewise.
14463         * lib/unictype/categ_Pf.h: Likewise.
14464         * lib/unictype/categ_Pi.h: Likewise.
14465         * lib/unictype/categ_Ps.h: Likewise.
14466         * lib/unictype/categ_Z.h: Likewise.
14467         * lib/unictype/categ_Zl.h: Likewise.
14468         * lib/unictype/categ_Zp.h: Likewise.
14469         * lib/unictype/categ_Zs.h: Likewise.
14470         * lib/unictype/ctype_blank.h: Likewise.
14471         * lib/unictype/ctype_cntrl.h: Likewise.
14472         * lib/unictype/ctype_digit.h: Likewise.
14473         * lib/unictype/ctype_space.h: Likewise.
14474         * lib/unictype/ctype_xdigit.h: Likewise.
14475         * lib/unictype/mirror.h: Likewise.
14476         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14477         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14478         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14479         * lib/unictype/pr_bidi_control.h: Likewise.
14480         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14481         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14482         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14483         * lib/unictype/pr_bidi_pdf.h: Likewise.
14484         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14485         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14486         * lib/unictype/pr_dash.h: Likewise.
14487         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14488         * lib/unictype/pr_diacritic.h: Likewise.
14489         * lib/unictype/pr_extender.h: Likewise.
14490         * lib/unictype/pr_hex_digit.h: Likewise.
14491         * lib/unictype/pr_hyphen.h: Likewise.
14492         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14493         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14494         * lib/unictype/pr_ignorable_control.h: Likewise.
14495         * lib/unictype/pr_iso_control.h: Likewise.
14496         * lib/unictype/pr_join_control.h: Likewise.
14497         * lib/unictype/pr_left_of_pair.h: Likewise.
14498         * lib/unictype/pr_line_separator.h: Likewise.
14499         * lib/unictype/pr_logical_order_exception.h: Likewise.
14500         * lib/unictype/pr_non_break.h: Likewise.
14501         * lib/unictype/pr_not_a_character.h: Likewise.
14502         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14503         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14504         * lib/unictype/pr_other_id_start.h: Likewise.
14505         * lib/unictype/pr_other_lowercase.h: Likewise.
14506         * lib/unictype/pr_other_uppercase.h: Likewise.
14507         * lib/unictype/pr_paired_punctuation.h: Likewise.
14508         * lib/unictype/pr_paragraph_separator.h: Likewise.
14509         * lib/unictype/pr_pattern_syntax.h: Likewise.
14510         * lib/unictype/pr_pattern_white_space.h: Likewise.
14511         * lib/unictype/pr_private_use.h: Likewise.
14512         * lib/unictype/pr_quotation_mark.h: Likewise.
14513         * lib/unictype/pr_radical.h: Likewise.
14514         * lib/unictype/pr_soft_dotted.h: Likewise.
14515         * lib/unictype/pr_space.h: Likewise.
14516         * lib/unictype/pr_titlecase.h: Likewise.
14517         * lib/unictype/pr_variation_selector.h: Likewise.
14518         * lib/unictype/pr_white_space.h: Likewise.
14519         * lib/unictype/pr_zero_width.h: Likewise.
14520         * lib/unictype/sy_c_ident.h: Likewise.
14521         * lib/unictype/sy_c_whitespace.h: Likewise.
14522         * lib/unictype/sy_java_whitespace.h: Likewise.
14523         * lib/uninorm/composition-table.gperf: Likewise.
14524         * lib/uninorm/decomposition-table1.h: Likewise.
14525         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14526         LB8.
14527         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14528         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14529         * modules/unictype/*: Bump version number of expected libunistring
14530         version.
14531
14532 2011-01-09  Bruno Haible  <bruno@clisp.org>
14533
14534         Update to Unicode 5.2.0.
14535         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14536         trailing whitespace removed.
14537
14538 2011-01-09  Bruno Haible  <bruno@clisp.org>
14539
14540         New Unicode character properties, from Unicode 5.2.0.
14541         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14542         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14543         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14544         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14545         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14546         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14547         uc_is_property_cased, uc_is_property_case_ignorable,
14548         uc_is_property_changes_when_lowercased,
14549         uc_is_property_changes_when_uppercased,
14550         uc_is_property_changes_when_titlecased,
14551         uc_is_property_changes_when_casefolded,
14552         uc_is_property_changes_when_casemapped): New declarations.
14553         * lib/unictype/pr_byname.gperf: Add the new properties.
14554         * modules/unictype/property-byname (Depends-on): Depend on the new
14555         properties modules.
14556         * modules/unictype/property-all (Depends-on): Likewise.
14557         * MODULES.html.sh (Unicode string functions): Add
14558         unictype/property-case-ignorable, unictype/property-cased,
14559         unictype/property-changes-when-casefolded,
14560         unictype/property-changes-when-casemapped,
14561         unictype/property-changes-when-lowercased,
14562         unictype/property-changes-when-titlecased,
14563         unictype/property-changes-when-uppercased.
14564
14565         New module 'unictype/property-changes-when-casemapped'.
14566         * modules/unictype/property-changes-when-casemapped: New file.
14567         * lib/unictype/pr_changes_when_casemapped.c: New file.
14568         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14569         generated by gen-uni-tables.
14570         * modules/unictype/property-changes-when-casemapped-tests: New file.
14571         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14572         automatically generated by gen-uni-tables.
14573
14574         New module 'unictype/property-changes-when-casefolded'.
14575         * modules/unictype/property-changes-when-casefolded: New file.
14576         * lib/unictype/pr_changes_when_casefolded.c: New file.
14577         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14578         generated by gen-uni-tables.
14579         * modules/unictype/property-changes-when-casefolded-tests: New file.
14580         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14581         automatically generated by gen-uni-tables.
14582
14583         New module 'unictype/property-changes-when-titlecased'.
14584         * modules/unictype/property-changes-when-titlecased: New file.
14585         * lib/unictype/pr_changes_when_titlecased.c: New file.
14586         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14587         generated by gen-uni-tables.
14588         * modules/unictype/property-changes-when-titlecased-tests: New file.
14589         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14590         automatically generated by gen-uni-tables.
14591
14592         New module 'unictype/property-changes-when-uppercased'.
14593         * modules/unictype/property-changes-when-uppercased: New file.
14594         * lib/unictype/pr_changes_when_uppercased.c: New file.
14595         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14596         generated by gen-uni-tables.
14597         * modules/unictype/property-changes-when-uppercased-tests: New file.
14598         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14599         automatically generated by gen-uni-tables.
14600
14601         New module 'unictype/property-changes-when-lowercased'.
14602         * modules/unictype/property-changes-when-lowercased: New file.
14603         * lib/unictype/pr_changes_when_lowercased.c: New file.
14604         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14605         generated by gen-uni-tables.
14606         * modules/unictype/property-changes-when-lowercased-tests: New file.
14607         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14608         automatically generated by gen-uni-tables.
14609
14610         New module 'unictype/property-case-ignorable'.
14611         * modules/unictype/property-case-ignorable: New file.
14612         * lib/unictype/pr_case_ignorable.c: New file.
14613         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14614         by gen-uni-tables.
14615         * modules/unictype/property-case-ignorable-tests: New file.
14616         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14617         generated by gen-uni-tables.
14618
14619         New module 'unictype/property-cased'.
14620         * modules/unictype/property-cased: New file.
14621         * lib/unictype/pr_cased.c: New file.
14622         * lib/unictype/pr_cased.h: New file, automatically generated by
14623         gen-uni-tables.
14624         * modules/unictype/property-cased-tests: New file.
14625         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14626         gen-uni-tables.
14627
14628 2011-01-09  Bruno Haible  <bruno@clisp.org>
14629
14630         Update to Unicode 5.2.0.
14631         * lib/gen-uni-tables.c (output_predicate, output_category,
14632         output_combclass, output_bidi_category, output_decimal_digit_test,
14633         output_decimal_digit, output_digit_test, output_digit,
14634         output_numeric_test, output_numeric, output_mirror, output_scripts,
14635         output_scripts_byname, output_blocks, output_ident_category): Fix
14636         comment header.
14637         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14638         get_wbp.
14639         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14640         items.
14641         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14642         Changes_When_Lowercased, Changes_When_Uppercased,
14643         Changes_When_Titlecased, Changes_When_Casefolded,
14644         Changes_When_Casemapped.
14645         (is_property_alphabetic, is_property_default_ignorable_code_point):
14646         Update for Unicode 5.2.0.
14647         (is_property_cased, is_property_case_ignorable,
14648         is_property_changes_when_lowercased,
14649         is_property_changes_when_uppercased,
14650         is_property_changes_when_titlecased,
14651         is_property_changes_when_casefolded,
14652         is_property_changes_when_casemapped): New functions.
14653         (output_properties): Output also the properties cased, case_ignorable,
14654         changes_when_lowercased, changes_when_uppercased,
14655         changes_when_titlecased, changes_when_casefolded,
14656         changes_when_casemapped.
14657         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14658         Unicode TR#11 revision 17 -> 19.
14659         (LBP_CP): New enumeration value.
14660         (LBP_*): Adjust values accordingly.
14661         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14662         TR#14 revision 22 -> 24.
14663         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14664         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14665         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14666         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14667         is_WBP_MIDLETTER.
14668         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14669         the code1 and code2 of each composition rule.
14670         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14671         * lib/unicase/ignorable.h: Likewise.
14672         * lib/unicase/tocasefold.h: Likewise.
14673         * lib/unicase/tolower.h: Likewise.
14674         * lib/unicase/totitle.h: Likewise.
14675         * lib/unicase/toupper.h: Likewise.
14676         * lib/unictype/bidi_of.h: Likewise.
14677         * lib/unictype/blocks.h: Likewise.
14678         * lib/unictype/categ_C.h: Likewise.
14679         * lib/unictype/categ_Cf.h: Likewise.
14680         * lib/unictype/categ_Cn.h: Likewise.
14681         * lib/unictype/categ_L.h: Likewise.
14682         * lib/unictype/categ_Ll.h: Likewise.
14683         * lib/unictype/categ_Lm.h: Likewise.
14684         * lib/unictype/categ_Lo.h: Likewise.
14685         * lib/unictype/categ_Lu.h: Likewise.
14686         * lib/unictype/categ_M.h: Likewise.
14687         * lib/unictype/categ_Mc.h: Likewise.
14688         * lib/unictype/categ_Mn.h: Likewise.
14689         * lib/unictype/categ_N.h: Likewise.
14690         * lib/unictype/categ_Nd.h: Likewise.
14691         * lib/unictype/categ_Nl.h: Likewise.
14692         * lib/unictype/categ_No.h: Likewise.
14693         * lib/unictype/categ_P.h: Likewise.
14694         * lib/unictype/categ_Pd.h: Likewise.
14695         * lib/unictype/categ_Po.h: Likewise.
14696         * lib/unictype/categ_S.h: Likewise.
14697         * lib/unictype/categ_Sc.h: Likewise.
14698         * lib/unictype/categ_So.h: Likewise.
14699         * lib/unictype/categ_of.h: Likewise.
14700         * lib/unictype/combining.h: Likewise.
14701         * lib/unictype/ctype_alnum.h: Likewise.
14702         * lib/unictype/ctype_alpha.h: Likewise.
14703         * lib/unictype/ctype_graph.h: Likewise.
14704         * lib/unictype/ctype_lower.h: Likewise.
14705         * lib/unictype/ctype_print.h: Likewise.
14706         * lib/unictype/ctype_punct.h: Likewise.
14707         * lib/unictype/ctype_upper.h: Likewise.
14708         * lib/unictype/decdigit.h: Likewise.
14709         * lib/unictype/digit.h: Likewise.
14710         * lib/unictype/numeric.h: Likewise.
14711         * lib/unictype/pr_alphabetic.h: Likewise.
14712         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14713         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14714         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14715         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14716         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14717         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14718         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14719         * lib/unictype/pr_combining.h: Likewise.
14720         * lib/unictype/pr_composite.h: Likewise.
14721         * lib/unictype/pr_currency_symbol.h: Likewise.
14722         * lib/unictype/pr_dash.h: Likewise.
14723         * lib/unictype/pr_decimal_digit.h: Likewise.
14724         * lib/unictype/pr_deprecated.h: Likewise.
14725         * lib/unictype/pr_diacritic.h: Likewise.
14726         * lib/unictype/pr_extender.h: Likewise.
14727         * lib/unictype/pr_grapheme_base.h: Likewise.
14728         * lib/unictype/pr_grapheme_extend.h: Likewise.
14729         * lib/unictype/pr_grapheme_link.h: Likewise.
14730         * lib/unictype/pr_id_continue.h: Likewise.
14731         * lib/unictype/pr_id_start.h: Likewise.
14732         * lib/unictype/pr_ideographic.h: Likewise.
14733         * lib/unictype/pr_ignorable_control.h: Likewise.
14734         * lib/unictype/pr_logical_order_exception.h: Likewise.
14735         * lib/unictype/pr_lowercase.h: Likewise.
14736         * lib/unictype/pr_numeric.h: Likewise.
14737         * lib/unictype/pr_other_alphabetic.h: Likewise.
14738         * lib/unictype/pr_punctuation.h: Likewise.
14739         * lib/unictype/pr_sentence_terminal.h: Likewise.
14740         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14741         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14742         * lib/unictype/pr_unified_ideograph.h: Likewise.
14743         * lib/unictype/pr_uppercase.h: Likewise.
14744         * lib/unictype/pr_xid_continue.h: Likewise.
14745         * lib/unictype/pr_xid_start.h: Likewise.
14746         * lib/unictype/pr_zero_width.h: Likewise.
14747         * lib/unictype/scripts.h: Likewise.
14748         * lib/unictype/scripts_byname.gperf: Likewise.
14749         * lib/unictype/sy_java_ident.h: Likewise.
14750         * lib/unigbrk/gbrkprop.h: Likewise.
14751         * lib/unilbrk/lbrkprop1.h: Likewise.
14752         * lib/unilbrk/lbrkprop2.h: Likewise.
14753         * lib/unilbrk/lbrktables.h: Likewise.
14754         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14755         LBP_CP. Implement rule LB30.
14756         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14757         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14758         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14759         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14760         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14761         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14762         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14763         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14764         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14765         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14766         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14767         bits instead of 16 bits in the code1 and code2 of each composition
14768         rule.
14769         (uc_composition): Update for Unicode 5.2.0.
14770         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14771         * lib/uninorm/decomposition-table2.h: Likewise.
14772         * lib/uniwbrk/wbrkprop.h: Likewise.
14773         * tests/unicase/test-cased.c: Likewise.
14774         * tests/unicase/test-ignorable.c: Likewise.
14775         * tests/unicase/test-uc_tolower.c: Likewise.
14776         * tests/unicase/test-uc_totitle.c: Likewise.
14777         * tests/unicase/test-uc_toupper.c: Likewise.
14778         * tests/unictype/test-categ_C.c: Likewise.
14779         * tests/unictype/test-categ_Cf.c: Likewise.
14780         * tests/unictype/test-categ_Cn.c: Likewise.
14781         * tests/unictype/test-categ_L.c: Likewise.
14782         * tests/unictype/test-categ_Ll.c: Likewise.
14783         * tests/unictype/test-categ_Lm.c: Likewise.
14784         * tests/unictype/test-categ_Lo.c: Likewise.
14785         * tests/unictype/test-categ_Lu.c: Likewise.
14786         * tests/unictype/test-categ_M.c: Likewise.
14787         * tests/unictype/test-categ_Mc.c: Likewise.
14788         * tests/unictype/test-categ_Mn.c: Likewise.
14789         * tests/unictype/test-categ_N.c: Likewise.
14790         * tests/unictype/test-categ_Nd.c: Likewise.
14791         * tests/unictype/test-categ_Nl.c: Likewise.
14792         * tests/unictype/test-categ_No.c: Likewise.
14793         * tests/unictype/test-categ_P.c: Likewise.
14794         * tests/unictype/test-categ_Pd.c: Likewise.
14795         * tests/unictype/test-categ_Po.c: Likewise.
14796         * tests/unictype/test-categ_S.c: Likewise.
14797         * tests/unictype/test-categ_Sc.c: Likewise.
14798         * tests/unictype/test-categ_So.c: Likewise.
14799         * tests/unictype/test-ctype_alnum.c: Likewise.
14800         * tests/unictype/test-ctype_alpha.c: Likewise.
14801         * tests/unictype/test-ctype_graph.c: Likewise.
14802         * tests/unictype/test-ctype_lower.c: Likewise.
14803         * tests/unictype/test-ctype_print.c: Likewise.
14804         * tests/unictype/test-ctype_punct.c: Likewise.
14805         * tests/unictype/test-ctype_upper.c: Likewise.
14806         * tests/unictype/test-decdigit.h: Likewise.
14807         * tests/unictype/test-digit.h: Likewise.
14808         * tests/unictype/test-numeric.h: Likewise.
14809         * tests/unictype/test-pr_alphabetic.c: Likewise.
14810         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14811         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14812         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14813         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14814         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14815         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14816         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14817         * tests/unictype/test-pr_combining.c: Likewise.
14818         * tests/unictype/test-pr_composite.c: Likewise.
14819         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14820         * tests/unictype/test-pr_dash.c: Likewise.
14821         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14822         * tests/unictype/test-pr_deprecated.c: Likewise.
14823         * tests/unictype/test-pr_diacritic.c: Likewise.
14824         * tests/unictype/test-pr_extender.c: Likewise.
14825         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14826         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14827         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14828         * tests/unictype/test-pr_id_continue.c: Likewise.
14829         * tests/unictype/test-pr_id_start.c: Likewise.
14830         * tests/unictype/test-pr_ideographic.c: Likewise.
14831         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14832         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14833         * tests/unictype/test-pr_lowercase.c: Likewise.
14834         * tests/unictype/test-pr_numeric.c: Likewise.
14835         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14836         * tests/unictype/test-pr_punctuation.c: Likewise.
14837         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14838         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14839         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14840         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14841         * tests/unictype/test-pr_uppercase.c: Likewise.
14842         * tests/unictype/test-pr_xid_continue.c: Likewise.
14843         * tests/unictype/test-pr_xid_start.c: Likewise.
14844         * tests/unictype/test-pr_zero_width.c: Likewise.
14845         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14846         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14847         changed behaviour: line breaking is now disallowed between a letter
14848         or '=' and '('.
14849         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14850         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14851         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14852         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14853         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14854         lib/uniwidth/width.c.
14855         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14856         without comments, but with the original copyright notice.
14857         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14858         changes.
14859         * lib/unictype/categ_Cc.h: Likewise.
14860         * lib/unictype/categ_Co.h: Likewise.
14861         * lib/unictype/categ_Cs.h: Likewise.
14862         * lib/unictype/categ_Lt.h: Likewise.
14863         * lib/unictype/categ_Me.h: Likewise.
14864         * lib/unictype/categ_Pc.h: Likewise.
14865         * lib/unictype/categ_Pe.h: Likewise.
14866         * lib/unictype/categ_Pf.h: Likewise.
14867         * lib/unictype/categ_Pi.h: Likewise.
14868         * lib/unictype/categ_Ps.h: Likewise.
14869         * lib/unictype/categ_Sk.h: Likewise.
14870         * lib/unictype/categ_Sm.h: Likewise.
14871         * lib/unictype/categ_Z.h: Likewise.
14872         * lib/unictype/categ_Zl.h: Likewise.
14873         * lib/unictype/categ_Zp.h: Likewise.
14874         * lib/unictype/categ_Zs.h: Likewise.
14875         * lib/unictype/ctype_blank.h: Likewise.
14876         * lib/unictype/ctype_cntrl.h: Likewise.
14877         * lib/unictype/ctype_digit.h: Likewise.
14878         * lib/unictype/ctype_space.h: Likewise.
14879         * lib/unictype/ctype_xdigit.h: Likewise.
14880         * lib/unictype/mirror.h: Likewise.
14881         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14882         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14883         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14884         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14885         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14886         * lib/unictype/pr_bidi_control.h: Likewise.
14887         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14888         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14889         * lib/unictype/pr_bidi_pdf.h: Likewise.
14890         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14891         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14892         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14893         * lib/unictype/pr_format_control.h: Likewise.
14894         * lib/unictype/pr_hex_digit.h: Likewise.
14895         * lib/unictype/pr_hyphen.h: Likewise.
14896         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14897         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14898         * lib/unictype/pr_iso_control.h: Likewise.
14899         * lib/unictype/pr_join_control.h: Likewise.
14900         * lib/unictype/pr_left_of_pair.h: Likewise.
14901         * lib/unictype/pr_line_separator.h: Likewise.
14902         * lib/unictype/pr_math.h: Likewise.
14903         * lib/unictype/pr_non_break.h: Likewise.
14904         * lib/unictype/pr_not_a_character.h: Likewise.
14905         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14906         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14907         * lib/unictype/pr_other_id_continue.h: Likewise.
14908         * lib/unictype/pr_other_id_start.h: Likewise.
14909         * lib/unictype/pr_other_lowercase.h: Likewise.
14910         * lib/unictype/pr_other_math.h: Likewise.
14911         * lib/unictype/pr_other_uppercase.h: Likewise.
14912         * lib/unictype/pr_paired_punctuation.h: Likewise.
14913         * lib/unictype/pr_paragraph_separator.h: Likewise.
14914         * lib/unictype/pr_pattern_syntax.h: Likewise.
14915         * lib/unictype/pr_pattern_white_space.h: Likewise.
14916         * lib/unictype/pr_private_use.h: Likewise.
14917         * lib/unictype/pr_quotation_mark.h: Likewise.
14918         * lib/unictype/pr_radical.h: Likewise.
14919         * lib/unictype/pr_soft_dotted.h: Likewise.
14920         * lib/unictype/pr_space.h: Likewise.
14921         * lib/unictype/pr_titlecase.h: Likewise.
14922         * lib/unictype/pr_variation_selector.h: Likewise.
14923         * lib/unictype/pr_white_space.h: Likewise.
14924         * lib/unictype/sy_c_ident.h: Likewise.
14925         * lib/unictype/sy_c_whitespace.h: Likewise.
14926         * lib/unictype/sy_java_whitespace.h: Likewise.
14927         * modules/uni*/*: Bump version number of expected libunistring version.
14928         Reported by Simon Josefsson.
14929
14930 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14931
14932         useless-if-before-free: fix typo in --help and make the internal,
14933         automatic version date update process work once again.
14934         --help output contained a NUL character instead of the
14935         backslash-zero that was intended.  Also, the "must lie within
14936         the first 8 lines" line is on line 9, and hence not getting
14937         automatically updated.
14938         * build-aux/useless-if-before-free: Fix the former by adding a
14939         backslash, and the latter by condensing the three lines of what-it-does
14940         to a single line, leaving one line of slack for the future.
14941
14942 2011-01-09  Bruno Haible  <bruno@clisp.org>
14943
14944         uniwidth/width: Fix width of U+1D173..U+1D17A.
14945         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14946         symbolic_width, output_width_property_test): New functions.
14947         (main): Invoke output_nonspacing_property, output_width_property_test.
14948         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14949         U+1D173..U+1D17A.
14950         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14951         1.
14952         * modules/uniwidth/*: Bump version number of expected libunistring
14953         version.
14954         * modules/unilbrk/*: Likewise.
14955
14956 2011-01-08  Bruno Haible  <bruno@clisp.org>
14957
14958         uninorm tests: Preserve copyright of Unicode data file.
14959         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14960         Mention modifications.
14961
14962 2011-01-08  Bruno Haible  <bruno@clisp.org>
14963
14964         gen-uni-tables: Prepare for Unicode 5.2.0.
14965         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14966         (debug_output_lbp, output_lbp): Update.
14967
14968 2011-01-08  Bruno Haible  <bruno@clisp.org>
14969
14970         unilbrk: Clarify gen-uni-tables.c code.
14971         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14972         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14973         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14974
14975 2011-01-07  Bruno Haible  <bruno@clisp.org>
14976
14977         strtod: Restore errno when successfully parsing Infinity or NaN.
14978         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14979         restore the original errno.
14980
14981 2011-01-07  Bruno Haible  <bruno@clisp.org>
14982
14983         remove test: Avoid failure on HP-UX 11.
14984         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14985
14986 2011-01-07  Bruno Haible  <bruno@clisp.org>
14987
14988         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14989         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14990         error code.
14991
14992 2011-01-07  Pádraig Brady <P@draigBrady.com>
14993
14994         ignore-value: fixup comments, and add Eric Blake
14995         as an author since he rewrote the macros.
14996         * lib/ignore-value.h (ignore_value):  State that
14997         we now support aggregates.  Also specify exactly
14998         when the GCC warn_unused_result feature was added.
14999
15000 2011-01-06  Eric Blake  <eblake@redhat.com>
15001
15002         ignore-value: support aggregate types
15003         * lib/ignore-value.h (ignore_value): Provide separate gcc
15004         definition.
15005         * modules/ignore-value-tests: New test module.
15006         * tests/test-ignore-value.c: New test.
15007
15008         maint.mk: improve sc_prohibit_strcmp regex
15009         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15010         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15011         definition of STRNEQ.
15012
15013         signal: work around Haiku issue with SIGBUS
15014         * lib/siglist.h: Add comment.
15015         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15016         strsignal's favoring of SIGSEGV.
15017         * tests/test-signal.c (main): Avoid test failure.
15018         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15019         Reported by Scott McCreary.
15020
15021         maint.mk: add pre-release check to ensure submodule commits are public
15022         * top/maint.mk (public-submodule-commit): New rule.
15023         (submodule-checks): New variable.
15024         (alpha beta stable): Depend on the variable.
15025
15026 2011-01-05  Pádraig Brady <P@draigBrady.com>
15027         and Jim Meyering  <meyering@redhat.com>
15028
15029         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15030         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15031         (ATTRIBUTE_DEPRECATED): Define.
15032         (_ignore_case): New function.
15033         (ignore_value): New macro, to replace the old function.
15034         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15035         * modules/ignore-value (Depends-on): Add stdint.
15036
15037 2011-01-04  Eric Blake  <eblake@redhat.com>
15038
15039         doc: regenerate INSTALL
15040         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15041         @firstparagraphindent support, now that autoconf dropped it.
15042         (INSTALL_PRELUDE): Reinstate old macro.
15043         * doc/install.texi: Resync from autoconf.
15044         * doc/INSTALL: Reflect recent autoconf update.
15045         * doc/INSTALL.ISO: Likewise.
15046         * doc/INSTALL.UTF-8: Likewise.
15047         Reported by Karl Berry.
15048
15049 2011-01-04  Bruce Korb  <address@hidden>
15050
15051         git-version-gen: avoid a sub-shell
15052         * build-aux/git-version-gen: Redirect stderr in `...` via
15053         "exec 2>...", rather than via an added sub-shell.
15054
15055 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15056
15057         git-version-gen: use (...) rather than sh -c '...'
15058         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15059         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15060
15061 2011-01-03  Jim Meyering  <meyering@redhat.com>
15062
15063         git-version-gen: convert leading TABs to spaces
15064         * build-aux/git-version-gen: Expand leading TABs.
15065
15066         git-version-gen: handle failed "git rev-list"
15067         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15068         from git and proceeding as if it had succeeded but printed no SHA1
15069         checksums, suppress the diagnostic and handle the failure.
15070         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15071
15072         git-version-gen: include command name in one more diagnostic
15073         * build-aux/git-version-gen: When the required .tarball-version file
15074         was missing or unreadable, you might see the diagnostic from "cat",
15075         but no trace of the name of the invoking script.  Now, you still see
15076         the diagnostic from cat, but also get one from "git-version-gen: ".
15077         Inspired by a patch from Bruce Korb.
15078
15079         update-copyright: adjust test to match changed code
15080         * tests/test-update-copyright.sh: Change test's expected output
15081         to match new actual output.
15082
15083 2011-01-02  Bruno Haible  <bruno@clisp.org>
15084
15085         getlogin_r: Avoid test failure on HP-UX 11.
15086         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15087         ERANGE when the second argument is zero.
15088         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15089         portability problem.
15090
15091 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15092
15093         * build-aux/update-copyright: doc Simon's changes
15094
15095 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15096
15097         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15098         environment variable.
15099
15100 2011-01-02  Bruno Haible  <bruno@clisp.org>
15101
15102         unigbrk: Avoid gcc warnings.
15103         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15104         unused variable.
15105         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15106         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15107         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15108         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15109         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15110         Change type of first argument to 'const char *'.
15111         (main): Remove unused variable.
15112         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15113         type of first argument to 'const char *'.
15114         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15115         Likewise.
15116         (main): Change type of variable 's'.
15117         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15118         to 'int'.
15119
15120 2011-01-02  Bruno Haible  <bruno@clisp.org>
15121
15122         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15123         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15124         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15125         bug.
15126         * lib/pwrite.c: Undo 2010-12-31 patch.
15127         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15128
15129 2011-01-02  Bruno Haible  <bruno@clisp.org>
15130
15131         pread: Fix test whether it works.
15132         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15133
15134 2011-01-02  Bruno Haible  <bruno@clisp.org>
15135
15136         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15137         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15138         ends in "6". Don't require a specific month name. Try also the locale
15139         names found on HP-UX 11 and Solaris 7.
15140
15141 2011-01-02  Bruno Haible  <bruno@clisp.org>
15142
15143         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15144         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15145         C linkage.
15146         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15147
15148 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15149
15150         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15151         for consistency, since the "cluster" term is not used elsewhere.
15152         * lib/unigbrk.in.h: Update name.
15153         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15154         * lib/unigbrk/u16-grapheme-next.c: Update name.
15155         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15156         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15157         * lib/unigbrk/u32-grapheme-next.c: Update name.
15158         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15159         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15160         * lib/unigbrk/u8-grapheme-next.c: Update name.
15161         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15162         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15163         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15164         Suggested by Bruno Haible.
15165
15166 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15167
15168         Remove module 'u8-grapheme-len' as too redundant with
15169         'u8-grapheme-next'.
15170         * modules/unigbrk/u8-grapheme-len: Delete file.
15171         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15172         * lib/unigbrk.in.h: Remove prototype for deleted function.
15173         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15174         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15175
15176         Remove module 'u16-grapheme-len' as too redundant with
15177         'u16-grapheme-next'.
15178         * modules/unigbrk/u16-grapheme-len: Delete file.
15179         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15180         * lib/unigbrk.in.h: Remove prototype for deleted function.
15181         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15182         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15183
15184         Remove module 'u32-grapheme-len' as too redundant with
15185         'u32-grapheme-next'.
15186         * modules/unigbrk/u32-grapheme-len: Delete file.
15187         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15188         * lib/unigbrk.in.h: Remove prototype for deleted function.
15189         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15190         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15191
15192         Suggested by Bruno Haible.
15193
15194 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15195
15196         * unigbrk.in.h: Fix typo: "ben" => "been".
15197         Reported by Bruno Haible.
15198
15199 2011-01-01  Jim Meyering  <meyering@redhat.com>
15200
15201         maint: update almost all copyright ranges to include 2011
15202         Run the new "make update-copyright" rule.
15203
15204 2011-01-01  Jim Meyering  <meyering@redhat.com>
15205
15206         maint: update-copyright: exempt doc/INSTALL*
15207         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15208         since they are generated.  Suggested by Bruno Haible.
15209
15210 2011-01-01  Jim Meyering  <meyering@redhat.com>
15211
15212         maint: refine the update-copyright rule
15213         * Makefile (update-copyright): Also exclude any file that includes
15214         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15215         code that merely generates the comment.
15216
15217 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15218
15219         New module 'u8-grapheme-len'.
15220         * modules/unigbrk/u8-grapheme-len: New file.
15221         * modules/unigbrk/u8-grapheme-len-tests: New file.
15222         * lib/unigbrk.in.h: Add prototype for new function.
15223         * lib/unigbrk/u8-grapheme-len.c: New file.
15224         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15225
15226         New module 'u16-grapheme-len'.
15227         * modules/unigbrk/u16-grapheme-len: New file.
15228         * modules/unigbrk/u16-grapheme-len-tests: New file.
15229         * lib/unigbrk.in.h: Add prototype for new function.
15230         * lib/unigbrk/u16-grapheme-len.c: New file.
15231         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15232
15233         New module 'u32-grapheme-len'.
15234         * modules/unigbrk/u32-grapheme-len: New file.
15235         * modules/unigbrk/u32-grapheme-len-tests: New file.
15236         * lib/unigbrk.in.h: Add prototype for new function.
15237         * lib/unigbrk/u32-grapheme-len.c: New file.
15238         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15239
15240         New module 'u8-grapheme-next'.
15241         * modules/unigbrk/u8-grapheme-next: New file.
15242         * modules/unigbrk/u8-grapheme-next-tests: New file.
15243         * lib/unigbrk.in.h: Add prototype for new function.
15244         * lib/unigbrk/u8-grapheme-next.c: New file.
15245         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15246
15247         New module 'u16-grapheme-next'.
15248         * modules/unigbrk/u16-grapheme-next: New file.
15249         * modules/unigbrk/u16-grapheme-next-tests: New file.
15250         * lib/unigbrk.in.h: Add prototype for new function.
15251         * lib/unigbrk/u16-grapheme-next.c: New file.
15252         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15253
15254         New module 'u32-grapheme-next'.
15255         * modules/unigbrk/u32-grapheme-next: New file.
15256         * modules/unigbrk/u32-grapheme-next-tests: New file.
15257         * lib/unigbrk.in.h: Add prototype for new function.
15258         * lib/unigbrk/u32-grapheme-next.c: New file.
15259         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15260
15261         New module 'u8-grapheme-prev'.
15262         * modules/unigbrk/u8-grapheme-prev: New file.
15263         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15264         * lib/unigbrk.in.h: Add prototype for new function.
15265         * lib/unigbrk/u8-grapheme-prev.c: New file.
15266         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15267
15268         New module 'u16-grapheme-prev'.
15269         * modules/unigbrk/u16-grapheme-prev: New file.
15270         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15271         * lib/unigbrk.in.h: Add prototype for new function.
15272         * lib/unigbrk/u16-grapheme-prev.c: New file.
15273         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15274
15275         New module 'u32-grapheme-prev'.
15276         * modules/unigbrk/u32-grapheme-prev: New file.
15277         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15278         * lib/unigbrk.in.h: Add prototype for new function.
15279         * lib/unigbrk/u32-grapheme-prev.c: New file.
15280         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15281
15282         New module 'u8-grapheme-breaks'.
15283         * modules/unigbrk/u8-grapheme-breaks: New file.
15284         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15285         * lib/unigbrk.in.h: Add prototype for new function.
15286         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15287         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15288
15289         New module 'u16-grapheme-breaks'.
15290         * modules/unigbrk/u16-grapheme-breaks: New file.
15291         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15292         * lib/unigbrk.in.h: Add prototype for new function.
15293         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15294         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15295
15296         New module 'u32-grapheme-breaks'.
15297         * modules/unigbrk/u32-grapheme-breaks: New file.
15298         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15299         * lib/unigbrk.in.h: Add prototype for new function.
15300         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15301         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15302
15303         New module 'ulc-grapheme-breaks'.
15304         * modules/unigbrk/ulc-grapheme-breaks: New file.
15305         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15306         * m4/locale-ar.m4: New file.
15307         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15308         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15309         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15310
15311 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15312
15313         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15314         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15315         modified how this file was generated before I initially submitted
15316         the module, but failed to regenerate it.  This meant that several
15317         of the level2 entries were wrong.
15318         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15319         Remove the division-by-2 that is folded into the table now that
15320         gbrkprop.h has been regenerated properly.  Now -1 entries are
15321         handled correctly.
15322
15323         New module 'unigbrk/uc-gbrk-prop-tests'.
15324         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15325         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15326         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15327         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15328
15329 2011-01-01  Bruno Haible  <bruno@clisp.org>
15330
15331         Avoid use of hexadecimal escapes.
15332         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15333         instead of hexadecimal escapes.
15334
15335 2011-01-01  Jim Meyering  <meyering@redhat.com>
15336
15337         maint: new rule to update copyright year ranges
15338         * Makefile (update-copyright): New rule.
15339
15340         maint: indent with TABs in Makefile
15341         * Makefile: Expand leading sequences of spaces to TABs
15342
15343         version-etc: update the copyright year it reports
15344         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15345
15346 2010-12-31  Bruno Haible  <bruno@clisp.org>
15347
15348         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15349         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15350         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15351         zero.
15352
15353 2010-12-31  Bruno Haible  <bruno@clisp.org>
15354
15355         pwrite: Work around HP-UX 11.11 bug.
15356         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15357         works and set REPLACE_PWRITE if not.
15358         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15359         function.
15360         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15361
15362 2010-12-31  Bruno Haible  <bruno@clisp.org>
15363
15364         pread: Work around HP-UX 11 bugs.
15365         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15366         and set REPLACE_PREAD if not.
15367         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15368
15369 2010-12-31  Eric Blake  <eblake@redhat.com>
15370
15371         nl_langinfo: fix YESEXPR on Irix 6.5
15372         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15373         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15374         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15375         it.
15376
15377 2010-12-31  Bruno Haible  <bruno@clisp.org>
15378
15379         iconv: Document HP-UX 11 bug.
15380         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15381
15382 2010-12-31  Bruno Haible  <bruno@clisp.org>
15383
15384         ldexpl: Fix link error on HP-UX 11.
15385         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15386         LDEXPL_LIBM, using $ISNANL_LIBM.
15387
15388 2010-12-31  Eric Blake  <eblake@redhat.com>
15389
15390         ftello: avoid compilation failure with SunStudio c89
15391         * lib/ftello.c (ftello): Use lseek, not llseek.
15392
15393         tests: avoid failing coreutils tests on cygwin
15394         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15395         (create_exe_shims_): Return 0 when skipping.
15396
15397 2010-12-31  Bruno Haible  <bruno@clisp.org>
15398
15399         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15400         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15401
15402 2010-12-31  Bruno Haible  <bruno@clisp.org>
15403
15404         waitpid: Fix link error in C++ mode.
15405         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15406
15407 2010-12-31  Bruno Haible  <bruno@clisp.org>
15408
15409         isnan: Use GCC built-ins when possible.
15410         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15411         __builtin_isnan.
15412         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15413         (isnan): Define using GCC built-ins for GCC >= 4.0.
15414
15415 2010-12-31  Bruno Haible  <bruno@clisp.org>
15416
15417         isnand: Fix mistake.
15418         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15419         __builtin_isnand.
15420
15421 2010-12-31  Bruno Haible  <bruno@clisp.org>
15422
15423         open: Avoid C++ error on HP-UX 11.
15424         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15425
15426 2010-12-31  Bruno Haible  <bruno@clisp.org>
15427
15428         time_r: Add missing declarations on HP-UX 11.
15429         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15430         instead of HAVE_LOCALTIME_R.
15431         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15432         HAVE_LOCALTIME_R always.
15433         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15434         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15435         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15436         HAVE_LOCALTIME_R.
15437         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15438         * doc/posix-functions/localtime_r.texi: Likewise.
15439
15440 2010-12-29  Eric Blake  <eblake@redhat.com>
15441
15442         mountlist: tweak previous commit
15443         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15444         Reported by Paul Eggert.
15445
15446         mountlist: fix local drive detection on cygwin
15447         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15448         that works for cygwin.
15449
15450 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15451
15452         ftoastr, snprintf: ftoastr + snprintf module
15453         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15454         since the snprintf module now should be good enough here.
15455         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15456         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15457         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15458         GNULIB_SNPRINTF only for the test directory, and the latter
15459         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15460         seems to suffice by itself.
15461
15462 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15463
15464         alloca: one step towards thread-safety
15465         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15466         need for a static variable.  All callers changed.  This does not
15467         make the alloca replacement thread-safe, but it's one step.
15468
15469         tests: minor indenting change
15470         * tests/init.sh: Sync from coreutils housekeeping patch
15471         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15472         to keep lines within 80 columns.
15473
15474 2010-12-28  Jim Meyering  <meyering@redhat.com>
15475
15476         regex: don't infloop on persistent failing calloc
15477         * lib/regexec.c (build_trtable): Return failure indication upon
15478         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15479         In glibc, this was fixed for version 2.13:
15480         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15481
15482 2010-12-28  Bruno Haible  <bruno@clisp.org>
15483             Paul Eggert <eggert@cs.ucla.edu>
15484
15485         linkat: Make implementation robust against system behaviour variations.
15486         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15487         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15488         way, and to -2 if it needs a generic runtime test.
15489         * lib/linkat.c (solaris_optimized_link_immediate,
15490         solaris_optimized_link_follow): New functions.
15491         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15492         (check_same_link): Use it.
15493
15494 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15495
15496         New module 'unigbrk/base'.
15497         * modules/unigbrk/base: New file.
15498         * lib/unigbrk.in.h: New file.
15499
15500         New module 'unigbrk/uc-gbrk-prop'.
15501         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15502         * modules/unigbrk/uc-gbrk-prop: New file.
15503         * lib/unigbrk/gbrkprop.h: New file.
15504         * lib/unigbrk/uc-gbrk-prop.c: New file.
15505
15506         New module 'unigbrk/uc-is-grapheme-break'.
15507         * modules/unigbrk/uc-is-grapheme-break: New file.
15508         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15509         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15510         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15511         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15512         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15513
15514         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15515
15516 2010-12-27  Bruno Haible  <bruno@clisp.org>
15517
15518         linkat test: Avoid failure on Solaris 11 2010-11.
15519         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15520
15521 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15522
15523         utimens: work around glibc rounding bug on more platforms
15524         * lib/utimens.c (fdutimens): Work around rounding bug even if
15525         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15527
15528 2010-12-27  Bruno Haible  <bruno@clisp.org>
15529
15530         select tests: Improve comments.
15531         * tests/test-select.c (do_select): Add comments.
15532
15533 2010-12-27  Bruno Haible  <bruno@clisp.org>
15534
15535         select tests: Safer way of handling timeout.
15536         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15537         at every invocation.
15538
15539 2010-12-27  Bruno Haible  <bruno@clisp.org>
15540
15541         select tests: Use 'bool' where appropriate.
15542         * tests/test-select.c (connect_to_socket): Change argument type to
15543         'bool'.
15544
15545 2010-12-27  Bruno Haible  <bruno@clisp.org>
15546
15547         select tests: Use existing modules.
15548         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15549         (configure.ac): Don't test for unistd.h.
15550         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15551         declared in <unistd.h>.
15552
15553 2010-12-27  Bruno Haible  <bruno@clisp.org>
15554
15555         mbrtowc: Work around a Solaris 7 bug.
15556         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15557         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15558         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15559         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15560         MBRTOWC_NULL_ARG1_BUG.
15561         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15562         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15563         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15564         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15565
15566 2010-12-27  Jim Meyering  <meyering@redhat.com>
15567
15568         read-file.c: tweak syntax
15569         * lib/read-file.c (fread_file): Remove space after "*" in function
15570         definitions.
15571
15572 2010-12-27  Bruno Haible  <bruno@clisp.org>
15573
15574         times test: Avoid gcc warnings on OSF/1.
15575         * tests/test-times.c (main): Cast printf arguments from clock_t to
15576         'long int'.
15577
15578 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15579
15580         utimens: work around glibc rounding bug on older Linux kernels
15581         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15582         on Linux with a glibc whose utimes might not work, then work
15583         around a longstanding glibc bug involving rounding rather than
15584         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15586
15587 2010-12-26  Bruno Haible  <bruno@clisp.org>
15588
15589         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15590         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15591         _GL_CXXALIAS_SYS.
15592         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15593
15594 2010-12-26  Bruno Haible  <bruno@clisp.org>
15595
15596         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15597         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15598         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15599         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15600         looking for the declaration.
15601         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15602         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15603         problem.
15604         * doc/posix-functions/inet_pton.texi: Likewise.
15605
15606 2010-12-26  Bruno Haible  <bruno@clisp.org>
15607
15608         arpa_inet: Use the common idioms with C++ support.
15609         * lib/arpa_inet.in.h: Include c++defs.h.
15610         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15611         support.
15612         * modules/arpa_inet (Depends-on): Add c++defs.
15613         (Makefile.am): Substitute the contents of c++defs.h.
15614         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15615         * modules/arpa_inet-c++-tests: New file.
15616         * tests/test-arpa_inet-c++.cc: New file.
15617
15618 2010-12-25  Bruno Haible  <bruno@clisp.org>
15619
15620         Fix more C++ link errors on Solaris 8.
15621         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15622         $(LIB_EACCESS).
15623         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15624         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15625         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15626         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15627         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15628
15629 2010-12-25  Bruno Haible  <bruno@clisp.org>
15630
15631         printf-posix: Fix link error when a non-GCC compiler is used.
15632         * lib/stdio.in.h (printf): When not using GCC, override printf
15633         correctly.
15634         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15635
15636 2010-12-25  Bruno Haible  <bruno@clisp.org>
15637
15638         strerror_r-posix: Update doc.
15639         * doc/posix-functions/strerror_r.texi: Update doc about the return
15640         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15641
15642 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15643
15644         utimens: simplify the logic of the previous change
15645         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15646         This should not affect whether the test succeeds or fails.
15647
15648         utimens: configure better on hosts with NFS clock skew
15649         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15650         uses the clock of the local host.  It might use the clock of the
15651         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15652         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15653
15654 2010-12-25  Bruno Haible  <bruno@clisp.org>
15655
15656         ptsname test: Avoid failure on Solaris.
15657         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15658         open a pseudo-terminal; don't use BSD-style ptys.
15659         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15660
15661 2010-12-25  Bruno Haible  <bruno@clisp.org>
15662
15663         ptsname: Avoid ERANGE failure on some systems.
15664         * lib/ptsname.c (buffer): Increase size.
15665
15666 2010-12-25  Bruno Haible  <bruno@clisp.org>
15667
15668         rename, renameat: Avoid test failures at NFS mounted locations.
15669         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15670         so that subsequent mkdir calls succeed.
15671
15672 2010-12-25  Bruno Haible  <bruno@clisp.org>
15673
15674         iswblank: Fix C++ link error on Solaris 8.
15675         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15676         _GL_FUNCDECL_SYS.
15677
15678 2010-12-25  Bruno Haible  <bruno@clisp.org>
15679
15680         unistd: Fix C++ link error on Solaris 8.
15681         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15682
15683 2010-12-25  Bruno Haible  <bruno@clisp.org>
15684
15685         readlink doc: Mention an old glibc bug.
15686         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15687
15688 2010-12-25  Bruno Haible  <bruno@clisp.org>
15689
15690         fcntl-h: Fix for use of C++ on glibc systems.
15691         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15692         also on glibc systems in C++ mode.
15693         Reported by Gary V. Vaughan <gary@gnu.org>.
15694
15695 2010-12-25  Bruno Haible  <bruno@clisp.org>
15696
15697         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15698         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15699
15700 2010-12-25  Bruno Haible  <bruno@clisp.org>
15701
15702         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15703         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15704         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15705         test whether truncl works according to ISO C 99 with IEC 60559.
15706         * m4/truncl-ieee.m4: New file.
15707         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15708         m4/signbit.m4.
15709         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15710
15711 2010-12-25  Bruno Haible  <bruno@clisp.org>
15712
15713         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15714         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15715         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15716         test whether ceill works according to ISO C 99 with IEC 60559.
15717         * m4/ceill-ieee.m4: New file.
15718         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15719         m4/signbit.m4.
15720         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15721
15722 2010-12-25  Bruno Haible  <bruno@clisp.org>
15723
15724         Ensure all prerequisites of <wchar.h> are included.
15725         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15726         before <wchar.h>.
15727         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15728         gl_MBRLEN_NUL_RETVAL): Likewise.
15729         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15730         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15731         AC_FUNC_MBRTOWC): Likewise.
15732         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15733         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15734         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15735         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15736         Likewise.
15737         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15738         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15739         (gl_WCHAR_H): Improve comments.
15740         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15741
15742 2010-12-25  Bruno Haible  <bruno@clisp.org>
15743
15744         strtok_r: Fix C syntax error in autoconf macro.
15745         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15746         characters in test program.
15747
15748 2010-12-24  Bruno Haible  <bruno@clisp.org>
15749
15750         ceil, trunc, round: Fix gcc warnings.
15751         * lib/ceil.c (MIN): Undefine before redefining.
15752         * lib/trunc.c (MIN): Likewise.
15753         * lib/round.c (MIN): Likewise.
15754         Include <math.h> first.
15755
15756 2010-12-24  Bruno Haible  <bruno@clisp.org>
15757
15758         select tests: Avoid failures on OSF/1 5.1.
15759         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15760         failure of closing the last socket; it may fail with ECONNRESET.
15761
15762 2010-12-24  Eric Blake  <eblake@redhat.com>
15763
15764         stdint: avoid HP-UX 10.20 preprocessor bug
15765         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15766         than #if.
15767         * tests/test-floor2.c (main): Likewise.
15768         Reported by Peter O'Gorman.
15769
15770         pipe: make obsoletion transition easier
15771         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15772         * modules/pipe (Files): Include revived file.
15773         (Include): Drop reference, to mirror getdate's behavior.
15774
15775 2010-12-24  Bruno Haible  <bruno@clisp.org>
15776
15777         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15778         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15779         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15780         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15781
15782 2010-12-24  Bruno Haible  <bruno@clisp.org>
15783
15784         gethostname: Ensure declaration on NonStop Kernel.
15785         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15786         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15787
15788 2010-12-24  Bruno Haible  <bruno@clisp.org>
15789
15790         sys_select: Ensure all necessary types on NonStop Kernel.
15791         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15792         include <sys/time.h>.
15793         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15794         NonStop Kernel.
15795         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15796
15797 2010-12-24  Bruno Haible  <bruno@clisp.org>
15798
15799         sys_select: Remove unneeded include.
15800         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15801         have <sys/select.h>.
15802
15803 2010-12-24  Bruno Haible  <bruno@clisp.org>
15804
15805         gethostname: Provide a fallback for HOST_NAME_MAX.
15806         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15807         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15808         instead.
15809         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15810
15811 2010-12-24  Bruno Haible  <bruno@clisp.org>
15812
15813         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15814         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15815         (SA_RESTART): Likewise.
15816         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15817
15818 2010-12-24  Bruno Haible  <bruno@clisp.org>
15819
15820         signal: Define NSIG.
15821         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15822         * tests/test-signal.c (nsig): New variable.
15823         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15824
15825 2010-12-24  Bruno Haible  <bruno@clisp.org>
15826
15827         rename, renameat: Avoid test failures on OSF/1 5.1.
15828         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15829         alternative error codes.
15830         * tests/test-renameat.c (main): Likewise.
15831
15832 2010-12-24  Bruno Haible  <bruno@clisp.org>
15833
15834         *printf: Detect large precisions bug on Solaris 10/SPARC.
15835         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15836         by Paul Eggert.
15837         * tests/test-snprintf-posix.h (test_function): Add this test code here
15838         too.
15839         * tests/test-sprintf-posix.h (test_function): Likewise.
15840         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15841         * tests/test-vasprintf-posix.c (test_function): Likewise.
15842         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15843         around by gnulib.
15844         * doc/posix-functions/printf.texi: Likewise.
15845         * doc/posix-functions/snprintf.texi: Likewise.
15846         * doc/posix-functions/sprintf.texi: Likewise.
15847         * doc/posix-functions/vfprintf.texi: Likewise.
15848         * doc/posix-functions/vprintf.texi: Likewise.
15849         * doc/posix-functions/vsnprintf.texi: Likewise.
15850         * doc/posix-functions/vsprintf.texi: Likewise.
15851         * doc/posix-functions/dprintf.texi: Undo last commit.
15852         * doc/posix-functions/vdprintf.texi: Likewise.
15853
15854 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         tests: port test-fdutimensat.c to Solaris 8
15857         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15858         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15859         On Solaris 8, it fails with errno == ENOSYS, because there is no
15860         futimens (so it can't use the fd), and there is no lutimens (so it
15861         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15862
15863         vsnprintf: make more consistent with snprintf; doc fixes
15864
15865         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15866         the byte count return problem was promoted from the snprintf-posix
15867         to the snprintf module.
15868         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15869         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15870         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15871         * tests/test-snprintf.c (main): Check the byte count returned.
15872         * tests/test-vsnprintf.c (main): Likewise.
15873
15874 2010-12-23  Eric Blake  <eblake@redhat.com>
15875
15876         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
15877         * modules/sigpipe (License): Relax license.
15878
15879 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15880
15881         doc: document Solaris printf bug with large float precisions
15882         * doc/posix-functions/dprintf.texi (dprintf):
15883         * doc/posix-functions/fprintf.texi (fprintf):
15884         * doc/posix-functions/printf.texi (printf):
15885         * doc/posix-functions/snprintf.texi (snprintf):
15886         * doc/posix-functions/sprintf.texi (sprintf):
15887         * doc/posix-functions/vdprintf.texi (vdprintf):
15888         * doc/posix-functions/vfprintf.texi (vfprintf):
15889         * doc/posix-functions/vprintf.texi (vprintf):
15890         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15891         * doc/posix-functions/vsprintf.texi (vsprintf):
15892         Mention that these functions mishandle large floating point
15893         precisions on Solaris 10.  The same bug is also present in Solaris
15894         8, and I assume earlier.  This causes "cd gnulib-tests; make
15895         check" to fail on Solaris 8 (and I assume, later) when building
15896         the latest coreutils, in test-vasprintf-posix's call to
15897         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
15898         the wide flavors (e.g., wprintf) so this patch just updates the
15899         documentation for the narrow ones.
15900
15901         test-posixtm.c: add two tests
15902         * tests/test-posixtm.c: Add two tests, to highlight the
15903         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
15904         around this bug; this is merely to document it.
15905
15906 2010-12-22  Bruno Haible  <bruno@clisp.org>
15907
15908         getlogin_r: Work around portability problem on OSF/1.
15909         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
15910         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
15911         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15912         test for a truncated result.
15913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15914         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15915         * modules/getlogin_r (Depends-on): Add memchr.
15916         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15917
15918 2010-12-22  Bruno Haible  <bruno@clisp.org>
15919
15920         ptsname: Avoid test failure on OSF/1 5.1.
15921         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15922         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15923         (same_slave): New function.
15924         (main): Use it to compare ptsname's result with the expected file name.
15925
15926 2010-12-22  Bruno Haible  <bruno@clisp.org>
15927
15928         Port extended stdio modules to HP NonStop Kernel.
15929         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15930         macros.
15931         * lib/fbufmode.c: Update comments.
15932         * lib/fflush.c: Likewise.
15933         * lib/fpurge.c: Likewise.
15934         * lib/freadable.c: Likewise.
15935         * lib/freadahead.c: Likewise.
15936         * lib/freading.c: Likewise.
15937         * lib/freadptr.c: Likewise.
15938         * lib/freadseek.c: Likewise.
15939         * lib/fseeko.c: Likewise.
15940         * lib/fseterr.c: Likewise.
15941         * lib/fwritable.c: Likewise.
15942         * lib/fwriting.c: Likewise.
15943         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15944
15945 2010-12-22  Bruno Haible  <bruno@clisp.org>
15946
15947         ttyname_r: Work around bug on OSF/1 5.1.
15948         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15949         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15950         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15951         present.
15952         * lib/ttyname_r.c (ttyname_r): Update comments.
15953
15954 2010-12-22  Bruno Haible  <bruno@clisp.org>
15955
15956         round: Implement result sign according to IEEE 754.
15957         * lib/round.c (MIN, MINUS_ZERO): New macros.
15958         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15959         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15960         * tests/test-round-ieee.c (main): Likewise.
15961         * tests/test-roundl-ieee.c (main): Likewise.
15962
15963         trunc: Implement result sign according to IEEE 754.
15964         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15965         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15966         * tests/test-trunc2.c: Include minus-zero.h.
15967         (MINUS_ZERO): New macro.
15968         (trunc_reference): Keep in sync with lib/trunc.c.
15969         * tests/test-truncf2.c: Include minus-zero.h.
15970         (MINUS_ZERO): New macro.
15971         (truncf_reference): Keep in sync with lib/trunc.c.
15972         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15973         * tests/test-trunc-ieee.c (main): Likewise.
15974         * tests/test-truncl-ieee.c (main): Likewise.
15975
15976         ceil: Implement result sign according to IEEE 754.
15977         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15978         (FUNC): Return -0.0 for -1 < x < 0.
15979         * tests/test-ceil2.c: Include minus-zero.h.
15980         (MINUS_ZERO): New macro.
15981         (ceil_reference): Keep in sync with lib/ceil.c.
15982         * tests/test-ceilf2.c: Include minus-zero.h.
15983         (MINUS_ZERO): New macro.
15984         (ceilf_reference): Keep in sync with lib/ceil.c.
15985         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15986         * tests/test-ceil-ieee.c (main): Likewise.
15987         * tests/test-ceill-ieee.c (main): Likewise.
15988
15989         floor: Implement result sign according to IEEE 754.
15990         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15991         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15992         * tests/test-floorf2.c (floorf_reference): Likewise.
15993         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15994         * tests/test-floor-ieee.c (main): Likewise.
15995         * tests/test-floorl-ieee.c (main): Likewise.
15996
15997 2010-12-22  Bruno Haible  <bruno@clisp.org>
15998
15999         getaddrinfo: Update doc.
16000         * doc/posix-functions/gai_strerror.texi: Return type is also different
16001         on AIX and HP-UX.
16002
16003 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16004
16005         getaddrinfo, inet_ntop: Update doc for Solaris.
16006         * doc/posix-functions/gai_strerror.texi: Return type is also an
16007         issue on Solaris 9 and earlier.
16008         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16009         on Solaris 10 and earlier.
16010
16011 2010-12-21  Bruno Haible  <bruno@clisp.org>
16012
16013         New module 'roundl-ieee'.
16014         * modules/roundl-ieee: New file.
16015         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16016         test whether roundl works according to ISO C 99 with IEC 60559.
16017         * m4/roundl-ieee.m4: New file.
16018         * modules/roundl-ieee-tests: New file.
16019         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16020         * tests/test-roundl.c (main): Remove signbit tests.
16021         * modules/roundl-tests (Depends-on): Remove signbit.
16022         * doc/posix-functions/roundl.texi: Mention the new module.
16023
16024 2010-12-21  Bruno Haible  <bruno@clisp.org>
16025
16026         New module 'truncl-ieee'.
16027         * modules/truncl-ieee: New file.
16028         * modules/truncl-ieee-tests: New file.
16029         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16030         * tests/test-truncl.c (main): Remove signbit tests.
16031         * modules/truncl-tests (Depends-on): Remove signbit.
16032         * doc/posix-functions/truncl.texi: Mention the new module.
16033
16034 2010-12-21  Bruno Haible  <bruno@clisp.org>
16035
16036         New module 'ceill-ieee'.
16037         * modules/ceill-ieee: New file.
16038         * modules/ceill-ieee-tests: New file.
16039         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16040         * tests/test-ceill.c (main): Remove signbit tests.
16041         * modules/ceill-tests (Depends-on): Remove signbit.
16042         * doc/posix-functions/ceill.texi: Mention the new module.
16043
16044 2010-12-21  Bruno Haible  <bruno@clisp.org>
16045
16046         New module 'floorl-ieee'.
16047         * modules/floorl-ieee: New file.
16048         * modules/floorl-ieee-tests: New file.
16049         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16050         * tests/test-floorl.c (main): Remove signbit tests.
16051         * modules/floorl-tests (Depends-on): Remove signbit.
16052         * doc/posix-functions/floorl.texi: Mention the new module.
16053
16054 2010-12-21  Bruno Haible  <bruno@clisp.org>
16055
16056         New module 'round-ieee'.
16057         * modules/round-ieee: New file.
16058         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16059         whether round works according to ISO C 99 with IEC 60559.
16060         * m4/round-ieee.m4: New file.
16061         * modules/round-ieee-tests: New file.
16062         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16063         * tests/test-round1.c (main): Remove signbit tests.
16064         * modules/round-tests (Depends-on): Remove 'signbit'.
16065         * doc/posix-functions/round.texi: Mention the new module.
16066
16067 2010-12-21  Bruno Haible  <bruno@clisp.org>
16068
16069         New module 'trunc-ieee'.
16070         * modules/trunc-ieee: New file.
16071         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16072         whether trunc works according to ISO C 99 with IEC 60559.
16073         * m4/trunc-ieee.m4: New file.
16074         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16076         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16077         * modules/trunc-ieee-tests: New file.
16078         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16079         * tests/test-trunc1.c (main): Remove signbit tests.
16080         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16081         * doc/posix-functions/trunc.texi: Mention the new module.
16082
16083 2010-12-21  Bruno Haible  <bruno@clisp.org>
16084
16085         New module 'ceil-ieee'.
16086         * modules/ceil-ieee: New file.
16087         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16088         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16089         ISO C 99 with IEC 60559.
16090         * m4/ceil-ieee.m4: New file.
16091         * modules/ceil (Files): Add lib/ceil.c.
16092         (Depends-on): Add 'float'.
16093         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16094         * lib/math.in.h (ceil): New declaration.
16095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16096         REPLACE_CEIL.
16097         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16098         * modules/ceil-ieee-tests: New file.
16099         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16100         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16101         * doc/posix-functions/ceil.texi: Mention the new module.
16102
16103 2010-12-21  Bruno Haible  <bruno@clisp.org>
16104
16105         New module 'floor-ieee'.
16106         * modules/floor-ieee: New file.
16107         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16108         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16109         ISO C 99 with IEC 60559.
16110         * m4/floor-ieee.m4: New file.
16111         * modules/floor (Files): Add lib/floor.c.
16112         (Depends-on): Add 'float'.
16113         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16114         * lib/math.in.h (floor): New declaration.
16115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16116         REPLACE_FLOOR.
16117         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16118         * modules/floor-ieee-tests: New file.
16119         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16120         * tests/test-math-c++.cc: Check the signature of 'floor'.
16121         * doc/posix-functions/floor.texi: Mention the new module.
16122
16123 2010-12-21  Bruno Haible  <bruno@clisp.org>
16124
16125         New module 'roundf-ieee'.
16126         * modules/roundf-ieee: New file.
16127         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16128         test whether roundf works according to ISO C 99 with IEC 60559.
16129         * m4/roundf-ieee.m4: New file.
16130         * modules/roundf-ieee-tests: New file.
16131         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16132         * tests/test-roundf1.c (main): Remove signbit tests.
16133         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16134         * doc/posix-functions/roundf.texi: Mention the new module.
16135
16136 2010-12-21  Bruno Haible  <bruno@clisp.org>
16137
16138         New module 'truncf-ieee'.
16139         * modules/truncf-ieee: New file.
16140         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16141         test whether truncf works according to ISO C 99 with IEC 60559.
16142         * m4/truncf-ieee.m4: New file.
16143         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16145         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16146         * modules/truncf-ieee-tests: New file.
16147         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16148         * tests/test-truncf1.c (main): Remove signbit tests.
16149         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16150         * doc/posix-functions/truncf.texi: Mention the new module.
16151
16152 2010-12-21  Bruno Haible  <bruno@clisp.org>
16153
16154         New module 'ceilf-ieee'.
16155         * modules/ceilf-ieee: New file.
16156         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16157         test whether ceilf works according to ISO C 99 with IEC 60559.
16158         * m4/ceilf-ieee.m4: New file.
16159         * modules/ceilf-ieee-tests: New file.
16160         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16161         * tests/test-ceilf1.c (main): Remove signbit tests.
16162         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16163         * doc/posix-functions/ceilf.texi: Mention the new module.
16164
16165 2010-12-21  Bruno Haible  <bruno@clisp.org>
16166
16167         New module 'floorf-ieee'.
16168         * modules/floorf-ieee: New file.
16169         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16170         test whether floorf works according to ISO C 99 with IEC 60559.
16171         * m4/floorf-ieee.m4: New file.
16172         * modules/floorf-ieee-tests: New file.
16173         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16174         * tests/test-floorf1.c (main): Remove signbit tests.
16175         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16176         * doc/posix-functions/floorf.texi: Mention the new module.
16177
16178 2010-12-21  Bruno Haible  <bruno@clisp.org>
16179
16180         Support for minus zero in autoconf macros.
16181         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16182         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16183         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16184         * tests/minus-zero.h: Update comments.
16185
16186 2010-12-21  Bruno Haible  <bruno@clisp.org>
16187
16188         Tests for module 'ceil'.
16189         * modules/ceil-tests: New file.
16190         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16191         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16192
16193 2010-12-21  Bruno Haible  <bruno@clisp.org>
16194
16195         Tests for module 'floor'.
16196         * modules/floor-tests: New file.
16197         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16198         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16199
16200 2010-12-21  Bruno Haible  <bruno@clisp.org>
16201
16202         math: Fix indentation.
16203         * lib/math.in.h (floorf): Fix indentation.
16204
16205 2010-12-21  Bruno Haible  <bruno@clisp.org>
16206
16207         Fix cross-compilation guesses on Solaris.
16208         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16209         not match "solaris2.10".
16210         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16211         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16212         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16213
16214 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16215
16216         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16217         This fixes a problem observed with the latest coreutils snapshot
16218         that caused a test to fail on Solaris 8.  src/csplit.c's call
16219         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16220         earlier, instead of returning the number of bytes that would have
16221         been generated; this causes csplit to incorrectly report memory
16222         exhaustion.
16223         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16224         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16225         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16226         comments to match.
16227         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16228         Fix typo in matching older versions of Solaris: "solaris2.10"
16229         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16230         only for guessing while cross-compiling.
16231         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16232
16233 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16234
16235         ftoastr: fix comment again
16236         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16238         Also, simplify example a bit by using flags = 0.
16239
16240 2010-12-20  Bruno Haible  <bruno@clisp.org>
16241
16242         round*, trunc*: Update documentation regarding glibc.
16243         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16244         * doc/posix-functions/round.texi: Likewise.
16245         * doc/posix-functions/roundl.texi: Likewise.
16246         * doc/posix-functions/truncf.texi: Likewise.
16247         * doc/posix-functions/trunc.texi: Likewise.
16248         * doc/posix-functions/truncl.texi: Likewise.
16249
16250 2010-12-20  Bruno Haible  <bruno@clisp.org>
16251
16252         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16253         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16254         * doc/posix-functions/round.texi: Likewise.
16255         * doc/posix-functions/roundl.texi: Likewise.
16256
16257 2010-12-20  Bruno Haible  <bruno@clisp.org>
16258
16259         ttyname_r: Add missing declaration on HP-UX 11.
16260         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16261         HAVE_TTYNAME_R.
16262         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16263         declared. Set HAVE_TTYNAME_R always.
16264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16265         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16266         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16267         HAVE_TTYNAME_R.
16268         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16269
16270 2010-12-20  Bruno Haible  <bruno@clisp.org>
16271
16272         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16273         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16274         * doc/posix-functions/getlogin_r.texi: Likewise.
16275         * tests/test-getlogin.c: Include <errno.h>.
16276         (main): Avoid test failure on HP-UX 11.11.
16277         * tests/test-getlogin_r.c (main): Likewise.
16278
16279 2010-12-20  Bruno Haible  <bruno@clisp.org>
16280
16281         getlogin_r: Add missing declaration on HP-UX 11.
16282         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16283         declared also when it exists as a function.
16284         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16285
16286 2010-12-20  Bruno Haible  <bruno@clisp.org>
16287
16288         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16289         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16290         through wcrtomb.
16291
16292 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16293
16294         ftoastr: fix comment
16295         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16297
16298 2010-12-19  Bruno Haible  <bruno@clisp.org>
16299
16300         isnan: Ensure it is a macro.
16301         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16302         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16303         Solaris.
16304
16305 2010-12-19  Bruno Haible  <bruno@clisp.org>
16306
16307         ldexpl test: Fix link error on OSF/1 5.1.
16308         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16309
16310 2010-12-19  Bruno Haible  <bruno@clisp.org>
16311
16312         wctype: Make it work in C++ mode on OSF/1 5.1.
16313         * lib/wctype.in.h (iswblank): Declare but not define here.
16314         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16315         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16316         * modules/wctype (Files): Add lib/iswblank.c.
16317
16318 2010-12-19  Bruno Haible  <bruno@clisp.org>
16319
16320         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16321         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16322         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16323
16324 2010-12-19  Bruno Haible  <bruno@clisp.org>
16325
16326         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16328         _POSIX_PII_SOCKET.
16329         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16330         * doc/posix-functions/recvfrom.texi: Likewise.
16331         * doc/posix-functions/send.texi: Likewise.
16332         * doc/posix-functions/sendto.texi: Likewise.
16333
16334 2010-12-19  Bruno Haible  <bruno@clisp.org>
16335
16336         tcgetsid: Add missing declaration on OSF/1 5.1.
16337         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16338         HAVE_TCGETSID.
16339         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16340         Don't set HAVE_TCGETSID.
16341         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16342         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16343         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16344         HAVE_TCGETSID.
16345         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16346
16347 2010-12-19  Bruno Haible  <bruno@clisp.org>
16348
16349         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16350         * lib/stdio.in.h: During the include_next statement, let recursive
16351         includes of this file include only the system header file.
16352
16353 2010-12-19  Bruno Haible  <bruno@clisp.org>
16354
16355         iconv_open: Fix regression from 2010-12-04.
16356         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16357         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16358
16359 2010-12-19  Bruno Haible  <bruno@clisp.org>
16360
16361         stdbool test: Avoid a gcc warning.
16362         * tests/test-stdbool.c (main): Fail if e1 is false.
16363         Reported by Jim Meyering.
16364
16365 2010-12-19  Jim Meyering  <meyering@redhat.com>
16366
16367         setenv: restore to working order
16368         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16369         mistakenly removed.
16370         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16371         HAVE_SETENV.
16372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16373         HAVE_SETENV.
16374
16375 2010-12-19  Bruno Haible  <bruno@clisp.org>
16376
16377         Document some different function declarations on OSF/1 5.1.
16378         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16379         * doc/posix-functions/inet_ntop.texi: Likewise.
16380         * doc/posix-functions/gethostname.texi: Likewise.
16381         * lib/unistd.in.h (gethostname): Update comment.
16382
16383 2010-12-19  Bruno Haible  <bruno@clisp.org>
16384
16385         doc: Mention vasprintf-posix module.
16386         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16387         the 'vasprintf-posix' module.
16388         * doc/glibc-functions/vasprintf.texi: Likewise.
16389
16390 2010-12-19  Bruno Haible  <bruno@clisp.org>
16391
16392         unsetenv: Add missing declaration on OSF/1 5.1.
16393         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16395         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16397         not HAVE_UNSETENV.
16398         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16399         HAVE_UNSETENV.
16400         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16401
16402 2010-12-19  Bruno Haible  <bruno@clisp.org>
16403
16404         setenv: Add missing declaration on OSF/1 5.1.
16405         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16407         declared. Don't set HAVE_SETENV.
16408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16409         not HAVE_SETENV.
16410         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16411         HAVE_SETENV.
16412         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16413
16414 2010-12-19  Bruno Haible  <bruno@clisp.org>
16415
16416         nl_langinfo tests: Avoid gcc warning.
16417         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16418
16419 2010-12-19  Bruno Haible  <bruno@clisp.org>
16420
16421         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16422         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16423         _GL_CXXALIAS_SYS.
16424
16425 2010-12-19  Bruno Haible  <bruno@clisp.org>
16426
16427         stdbool: Relax test.
16428         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16429         address to 'bool' work in static initializer, for compilers other than
16430         GCC.
16431
16432 2010-12-19  Bruno Haible  <bruno@clisp.org>
16433
16434         ftello: Add missing declaration on OSF/1 5.1.
16435         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16436         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16438         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16439         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16440
16441 2010-12-19  Bruno Haible  <bruno@clisp.org>
16442
16443         fseeko: Add missing declaration on OSF/1 5.1.
16444         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16445         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16447         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16448         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16449
16450 2010-12-19  Bruno Haible  <bruno@clisp.org>
16451
16452         fchdir: Add missing declaration on OSF/1 5.1.
16453         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16456         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16457         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16458
16459 2010-12-19  Bruno Haible  <bruno@clisp.org>
16460
16461         relocatable-prog-wrapper: Separate from relocatable-prog.
16462         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16463         uninstall-relocwrapper rule here.
16464         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16465         Reported by Ian Beckwith <ianb@erislabs.net>.
16466
16467 2010-12-19  Bruno Haible  <bruno@clisp.org>
16468
16469         unistr/u8-mbsnlen: Add missing dependency.
16470         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16471         Reported by Ian Beckwith <ianb@erislabs.net>.
16472
16473 2010-12-19  Bruno Haible  <bruno@clisp.org>
16474
16475         iconv: Make it possible again to use this module without 'iconv-h'.
16476         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16477         if it is not defined.
16478         Reported by Ian Beckwith <ianb@erislabs.net>.
16479
16480 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         acl: port to Solaris 8 when copying from tmpfs to ufs
16483         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16484         error number.  Problem observed on Solaris 8 with latest
16485         coreutils, with "mv A B", where A is on a tmpfs file system and B
16486         is on a ufs file system.  This caused coreutils' mv/part-symlink
16487         test to fail.
16488
16489         tests: set fail=0 at start
16490         * tests/init.sh (setup_): Move fail=0 initialization here ...
16491         (mktempd_): ... from here, so that tests can rely on fail being
16492         set to 0 initially.  This fixes a problem in coreutils; see:
16493         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16494
16495 2010-12-18  Bruno Haible  <bruno@clisp.org>
16496
16497         memmem-simple: Stylistic changes.
16498         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16499         Fix preprocessor directive indentation.
16500
16501 2010-12-15  Pádraig Brady <P@draigBrady.com>
16502
16503         memmem, memmem-simple: reorganize and expand empty needle check
16504         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16505         functional checks to memmem-simple so that one has a fully functional
16506         memmem by using just this module.
16507         Restrict the performance only check to the memmem module.
16508         Also expand the empty needle check to ensure the correct
16509         pointer is returned, not just a non NULL pointer.
16510         * doc/glibc-functions/memmem.texi: Rearrange the portability
16511         documentation to correlate with the rearranged checks.
16512         Clarify exactly how the memmem and memmem-simple modules
16513         relate to each other.
16514
16515 2010-12-15  Pádraig Brady <P@draigBrady.com>
16516             Bruno Haible  <bruno@clisp.org>
16517
16518         Improve cross-compilation guesses for uClibc.
16519         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16520         that uClibc does not have the glibc bug.
16521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16522         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16523
16524 2010-12-14  Eric Blake  <eblake@redhat.com>
16525
16526         configmake: provide fallbacks for oldest supported autotools
16527         * m4/configmake.m4: New file.
16528         * modules/configmake (Files): Ship it.
16529         (configure.ac): Use it to guarantee fallbacks.
16530
16531 2010-12-13  Pádraig Brady <P@draigBrady.com>
16532
16533         read-file: Improve handling of large files
16534         * lib/read-file.c (fread_file): Minimize realloc()s
16535         for regular files, and better manage sizes around SIZE_MAX.
16536
16537 2010-12-13  Eric Blake  <eblake@redhat.com>
16538
16539         cloexec, fcntl: relax license
16540         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16541         consent from all contributors.
16542         * modules/fcntl (License): Likewise.
16543
16544 2010-12-10  Bruno Haible  <bruno@clisp.org>
16545
16546         Tests for module 'pipe-posix'.
16547         * modules/pipe-posix-tests: New file.
16548         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16549
16550 2010-12-10  Bruno Haible  <bruno@clisp.org>
16551
16552         pipe-posix: Make it work in C++ mode.
16553         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16554         (pipe): Use common idiom, not a macro definition.
16555         * lib/pipe.c: New file.
16556         * m4/pipe.m4: New file.
16557         * modules/pipe-posix (Description): Enhance.
16558         (Files): Add lib/pipe.c, m4/pipe.m4.
16559         (configure.ac): Invoke gl_FUNC_PIPE.
16560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16561         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16562         * tests/test-unistd-c++.cc: Check the signature of pipe.
16563
16564 2010-12-10  Bruno Haible  <bruno@clisp.org>
16565
16566         Rename module 'pipe' to 'spawn-pipe'.
16567         * modules/spawn-pipe: New file, renamed from modules/pipe.
16568         (Files, configure.ac, Makefile.am): Update.
16569         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16570         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16571         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16572         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16573         "spawn-pipe.h" instead of "pipe.h".
16574         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16575         to gl_SPAWN_PIPE.
16576         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16577         (Files, Makefile.am): Update.
16578         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16579         Update.
16580         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16581         Include "spawn-pipe.h" instead of "pipe.h".
16582         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16583         * lib/javacomp.c: Likewise.
16584         * lib/javaversion.c: Likewise.
16585         * lib/pipe-filter-gi.c: Likewise.
16586         * lib/pipe-filter-ii.c: Likewise.
16587         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16588         * modules/javacomp (Depends-on): Likewise.
16589         * modules/javaversion (Depends-on): Likewise.
16590         * modules/pipe-filter-gi (Depends-on): Likewise.
16591         * modules/pipe-filter-ii (Depends-on): Likewise.
16592         * MODULES.html.sh (Executing programs): Update.
16593         * NEWS: Mention the change.
16594
16595 2010-12-10  Eric Blake  <eblake@redhat.com>
16596
16597         pipe-posix: new module
16598         * modules/pipe-posix: New file.
16599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16600         (gl_UNISTD_H): Check for declaration.
16601         * modules/unistd (Makefile.am): Substitute it.
16602         * lib/unistd.in.h (pipe): Provide it for mingw.
16603         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16604         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16605
16606 2010-12-07  Bruno Haible  <bruno@clisp.org>
16607
16608         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16609         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16610         u8_strcmp_gnu.
16611         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16612
16613 2010-12-06  Bruno Haible  <bruno@clisp.org>
16614
16615         Update internal documentation.
16616         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16617
16618 2010-12-04  Bruno Haible  <bruno@clisp.org>
16619
16620         Put more information about failed tests into the test return codes.
16621         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16622         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16623         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16624         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16625         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16626         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16627         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16628         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16629         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16631         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16632         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16633         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16634         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16635         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16636         returns a bit mask.
16637         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16638         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16639         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16640         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16641         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16642         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16643         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16645         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16647         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16648         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16649         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16650         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16651         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16652         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16653         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16654         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16655         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16656         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16658         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16660         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16661         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16662         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16663         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16664         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16665         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16666         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16667         gl_PRINTF_PRECISION): Likewise.
16668         * m4/regex.m4 (gl_REGEX): Likewise.
16669         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16670         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16671         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16672         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16673         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16674         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16675         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16676         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16677         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16678         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16679         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16680         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16681         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16682         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16683         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16684         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16685         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16686         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16688         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16689         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16690         enumerated value.
16691         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16692
16693 2010-12-04  Bruno Haible  <bruno@clisp.org>
16694
16695         Update for Solaris 11 2010-11.
16696         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16697         Express, released in November 2010.
16698
16699 2010-12-04  Bruno Haible  <bruno@clisp.org>
16700
16701         nproc: Relax license.
16702         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16703         and Paul Eggert.
16704         Requested by Ludovic Courtès <ludo@gnu.org>.
16705
16706 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16707
16708         utimecmp: fine-grained src to nearby coarse-grained dest
16709
16710         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16711         and the source is on a file system with higher-resolution time
16712         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16713         not work, and the time stamps are close together, the algorithm to
16714         determine the exact resolution from the read-back mtime was buggy:
16715         it had a "!=" where it should have had an "==".  This bug has been
16716         in the code ever since it was introduced to gnulib.
16717         Problem reported by Dan Jacobson in
16718         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16719
16720 2010-11-30  Bruno Haible  <bruno@clisp.org>
16721
16722         strerror_r-posix: Fix autoconf test.
16723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16724
16725 2010-11-28  Bruno Haible  <bruno@clisp.org>
16726             Paul Eggert  <eggert@cs.ucla.edu>
16727
16728         Tests for module 'getdomainname'.
16729         * modules/getdomainname-tests: New file.
16730         * tests/test-getdomainname.c: New file, based on
16731         tests/test-gethostname.c.
16732
16733 2010-11-28  Bruno Haible  <bruno@clisp.org>
16734             Paul Eggert  <eggert@cs.ucla.edu>
16735
16736         getdomainname: Use the system function when possible.
16737         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16738         (getdomainname): Replace if needed. Provide the declaration if it is
16739         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16740         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16741         (getdomainname): When the system has getdomainname, call the system
16742         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16743         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16744         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16745         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16746         the function if its second argument is of type 'int' or if it is found
16747         in libnsl.
16748         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16749         <sys/systeminfo.h> and sysinfo().
16750         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16752         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16753         HAVE_GETDOMAINNAME.
16754         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16755         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16756         * doc/glibc-functions/getdomainname.texi: Document the problems with
16757         the getdomainname declaration.
16758
16759 2010-11-28  Bruno Haible  <bruno@clisp.org>
16760
16761         sys_socket: Ensure ss_family field on AIX.
16762         * lib/sys_socket.in.h (ss_family): New macro definition.
16763         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16764         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16765         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16766         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16767         * modules/sys_socket (Makefile.am): Substitute
16768         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16769         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16770
16771 2010-11-27  Bruno Haible  <bruno@clisp.org>
16772
16773         readline: Improve configure output.
16774         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16775         "checking for readline..." result understandable.
16776
16777 2010-11-27  Bruno Haible  <bruno@clisp.org>
16778
16779         *printf-posix: Detect a bug on Solaris 10/x86.
16780         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16781         for floating-point output.
16782         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16783         directive.
16784         * tests/test-snprintf-posix.h (test_function): Likewise.
16785         * tests/test-sprintf-posix.h (test_function): Likewise.
16786         * tests/test-vasprintf-posix.c (test_function): Likewise.
16787         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16788         * doc/posix-functions/printf.texi: Likewise.
16789         * doc/posix-functions/snprintf.texi: Likewise.
16790         * doc/posix-functions/sprintf.texi: Likewise.
16791         * doc/posix-functions/vfprintf.texi: Likewise.
16792         * doc/posix-functions/vprintf.texi: Likewise.
16793         * doc/posix-functions/vsnprintf.texi: Likewise.
16794         * doc/posix-functions/vsprintf.texi: Likewise.
16795         * doc/glibc-functions/obstack_printf.texi: Likewise.
16796         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16797
16798 2010-11-27  Bruno Haible  <bruno@clisp.org>
16799
16800         Fix link error when module libunistring-optional is in use.
16801         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16802         * modules/striconveha-tests (Makefile.am): Likewise.
16803
16804 2010-11-27  Bruno Haible  <bruno@clisp.org>
16805
16806         regex: Mention link dependencies.
16807         * modules/regex (Link): New section.
16808         * modules/rpmatch (Link): Likewise.
16809         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16810
16811 2010-11-27  Bruno Haible  <bruno@clisp.org>
16812
16813         ftoastr: Fix compilation error on Solaris.
16814         * lib/ftoastr.c: Include <config.h>.
16815
16816 2010-11-27  Bruno Haible  <bruno@clisp.org>
16817
16818         getloadavg: Update documentation.
16819         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16820
16821 2010-11-27  Bruno Haible  <bruno@clisp.org>
16822
16823         sys_socket: Fix test whether the functions are declared.
16824         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16825         not <sys/select.h>.
16826
16827 2010-11-27  Bruno Haible  <bruno@clisp.org>
16828
16829         getpass: Make sure to get system declaration on some platforms.
16830         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16831         gl_USE_SYSTEM_EXTENSIONS.
16832         * modules/getpass (Depends-on): Add extensions.
16833
16834 2010-11-26  Bruno Haible  <bruno@clisp.org>
16835
16836         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16837         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16838         'iconv' module is present.
16839         (ICONV_CONST): New macro.
16840         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16841         ICONV_CONST.
16842         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16843         set ICONV_CONST.
16844         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16845         here.
16846         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16847         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16848         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16849         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16850         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16851         present.
16852
16853 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16854
16855         ftoastr: comment fix
16856         * lib/ftoastr.c: "little" -> "little or no" in comment
16857
16858 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16859
16860         stdint: port to GCC 4.3 + OSX + Octave
16861         On this platform, stdint.h is buggy and defines int64_t to long
16862         long int.  The replacement defined it to long int, causing
16863         problems with C++ style name mangling.  Instead, trust the system
16864         definition if INT64_MAX is defined, and likewise for the unsigned
16865         variant.   Problem reported by Jarno Rajahalme in
16866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16867         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16868         and don't mess with int64_t and INT64_MAX in this case.
16869         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16870
16871 2010-11-24  Bruno Haible  <bruno@clisp.org>
16872
16873         doc: Corrections regarding MacOS X 10.4 and 10.5.
16874         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
16875         MacOS X.
16876         Reported by Simon Josefsson.
16877
16878 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
16879
16880         Uninstall ".bin" files installed by relocwrapper.
16881         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
16882         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
16883         unless it is already there.
16884
16885 2010-11-21  Bruno Haible  <bruno@clisp.org>
16886
16887         Update for NetBSD 5.0.
16888         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16889         NetBSD; the test fails on NetBSD 5.0.
16890         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16891         about NetBSD.
16892
16893 2010-11-21  Bruno Haible  <bruno@clisp.org>
16894
16895         Update for HP-UX 11.23 and HP-UX 11.31.
16896         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
16897         HP-UX.
16898
16899 2010-11-21  Bruno Haible  <bruno@clisp.org>
16900
16901         Update for MacOS X 10.5.
16902         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16903         MacOS X; the test fails on MacOS X 10.5.8.
16904         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16905         about MacOS X.
16906
16907 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
16908
16909         bootstrap: add bootstrap_sync option.
16910         See discussion at
16911         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16913         * build-aux/bootstrap: Accept --bootstrap-sync to update
16914         bootstrap if it is not identical to the local gnulib's
16915         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16916         enable this by default.  Accept --no-bootstrap-sync to disable
16917         it.
16918
16919 2010-11-20  Bruno Haible  <bruno@clisp.org>
16920
16921         Ensure that <features.h> is included before __GLIBC__ is tested.
16922         * lib/printf-parse.h: Include <features.h>.
16923         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16924         Reported by Mike Frysinger <vapier@gentoo.org>.
16925
16926         Ensure that <features.h> is included before __GLIBC__ is tested.
16927         * lib/wchar.in.h: Include <features.h>.
16928         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16929         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16930         Reported by Mike Frysinger <vapier@gentoo.org>.
16931
16932         Ensure that <features.h> is included before __GLIBC__ is tested.
16933         * lib/arpa_inet.in.h: Include <features.h>.
16934         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16935         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
16936         Reported by Mike Frysinger <vapier@gentoo.org>.
16937
16938         Ensure that <features.h> is included before __GLIBC__ is tested.
16939         * build-aux/link-warning.h: Include <features.h>.
16940         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16941         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16942         Reported by Mike Frysinger <vapier@gentoo.org>.
16943
16944         Ensure that <features.h> is included before __GLIBC__ is tested.
16945         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16946         Reported by Mike Frysinger <vapier@gentoo.org>.
16947
16948 2010-11-20  Bruno Haible  <bruno@clisp.org>
16949
16950         memmem: Fix autoconf test.
16951         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16952
16953 2010-11-20  Bruno Haible  <bruno@clisp.org>
16954
16955         Port to uClibc.
16956         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16957         * lib/fcntl.in.h: Likewise.
16958         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16959         * lib/mbrtowc.c (mbrtowc): Likewise.
16960         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16961         * lib/strerror_r.c: Likewise.
16962         * lib/unistr/u8-strnlen.c: Likewise.
16963         * lib/vasnprintf.c (decimal_point_char): Likewise.
16964         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16965         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16966         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16967         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16968         * tests/test-sigaction.c (handler, main): Likewise.
16969         * lib/freading.h: Treat uClibc like a non-glibc platform.
16970         * lib/freading.c: Likewise.
16971         * lib/gettext.h: Likewise.
16972         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16973         Likewise.
16974         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16975         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16976         * lib/propername.c (proper_name_utf8): Likewise.
16977         * lib/spawn.in.h: Likewise.
16978         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16979         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16980         mem_cd_iconveh_internal): Likewise.
16981         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16982         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16983         strstr, strcasestr): Likewise.
16984         * lib/unicodeio.c (unicode_to_mb): Likewise.
16985         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16986         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16987         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16988         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16989         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16990         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16991         * lib/unistr/u8-stpncpy.c: Likewise.
16992         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16993         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16994         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16995         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16996         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16997         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16998         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17000         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17001         Likewise.
17002         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17003         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17004         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17005         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17006         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17007         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17008         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17009         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17010         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17011         * tests/test-striconveha.c (main): Likewise.
17012         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17013         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17014         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17015         * doc/posix-functions/getline.texi: Likewise.
17016         Reported by Mike Frysinger <vapier@gentoo.org>.
17017
17018 2010-11-20  Bruno Haible  <bruno@clisp.org>
17019
17020         nproc: Fix condition.
17021         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17022         HAVE_PTHREAD_AFFINITY_NP.
17023
17024 2010-11-20  Bruno Haible  <bruno@clisp.org>
17025
17026         Fix a comment.
17027         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17028
17029 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17030
17031         ftoastr: don't assume snprintf
17032         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17033         Implement a subset of snprintf here, by using sprintf safely.
17034         * modules/ftoastr (Depends-on): Remove snprintf.
17035
17036 2010-11-19  Jim Meyering  <meyering@redhat.com>
17037
17038         test-rename.h: fix compilation failure
17039         * tests/test-rename.h (test_rename): Add omitted "}".
17040
17041 2010-11-17  Jim Meyering  <meyering@redhat.com>
17042
17043         maint.mk: add a URL discussing the no-@acronym policy
17044         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17045
17046 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17047
17048         ftoastr: depend on snprintf, improve comments
17049         * lib/ftoastr.c: Also mention Loitsch's draft.
17050         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17051         needed in the current implementation, but it might simplify
17052         speeding up the code later.
17053         * modules/ftoastr: Depend on snprintf; this improves portability.
17054         Suggested by Bruno Haible in the same email.
17055
17056         ftoastr: port to hosts lacking strtof and strtold
17057         Problem reported by Bruno Haible in
17058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17059         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17060         environment and strtold (and presumably strtof) are not available.
17061         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17062         (configure.ac): Require gl_C99_STRTOLD.
17063
17064 2010-11-18  Bruno Haible  <bruno@clisp.org>
17065
17066         c-strtold: Avoid link error on AIX 7.
17067         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17068         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17069         (gl_C_STRTOLD): Test whether strtold_l exists.
17070         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17071
17072 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17073
17074         intprops: new macro INT_BITS_STRLEN_BOUND
17075         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17076         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17077         not exposed.  Also, it uses a slightly tighter bound than before;
17078         though this makes no practical difference, we might as well be as
17079         tight as we easily can.
17080
17081         ftoastr: new module, for lossless conversion of floats to short strings
17082         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17083         * modules/ftoastr: New files.
17084
17085 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17086
17087         bootstrap: port to Solaris sed
17088         * build-aux/bootstrap (get_version): Port to Solaris sed.
17089         See Ralf Wildenhues's note in
17090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17091
17092 2010-11-14  Jim Meyering  <meyering@redhat.com>
17093
17094         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17095         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17096         and move definition closer to sole use.
17097
17098 2010-11-13  Jim Meyering  <meyering@redhat.com>
17099
17100         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17101         Now we require at least autoconf-2.59, which means the work-around
17102         is no longer needed.
17103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17104         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17105         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17106         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17107         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17108
17109 2010-11-13  Bruno Haible  <bruno@clisp.org>
17110
17111         rename, renameat: Avoid test failures at NFS mounted locations.
17112         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17113         functions.
17114         (test_rename): Use assert_nonexistent.
17115         * tests/test-rename.c: Include <dirent.h>.
17116         * tests/test-renameat.c: Likewise.
17117         Reported by Gary V. Vaughan <gary@gnu.org>.
17118
17119         rename, renameat: Document Linux bug with NFS
17120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17121         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17122         * doc/posix-functions/renameat.texi: Likewise.
17123         Suggested by Eric Blake.
17124
17125 2010-11-13  Bruno Haible  <bruno@clisp.org>
17126
17127         rename test: Add comments.
17128         * tests/test-rename.h (test_rename): Add structure and comments.
17129
17130 2010-11-13  Eric Blake  <eblake@redhat.com>
17131
17132         maintainer-makefile: cover a few more files
17133         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17134         scripts generated within C files, for libvirt.
17135
17136 2010-11-13  Bruno Haible  <bruno@clisp.org>
17137
17138         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17139         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17140         character, return the number of bytes that belong together, not always
17141         1.
17142         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17143         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17144         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17145         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17146         number of bytes of an invalid character.
17147         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17148         (main): Invoke it.
17149         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17150         results.
17151         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17152         malformed byte sequences.
17153         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17154         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17155         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17156         Reported by Ben Pfaff and Paolo Bonzini.
17157
17158 2010-11-13  Bruno Haible  <bruno@clisp.org>
17159
17160         openat: Work around glibc bug with fchownat() and empty file names.
17161         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17162         (gl_FUNC_FCHOWNAT): Invoke it.
17163         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17164         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17165         Reported by Gary V. Vaughan <gary@gnu.org>.
17166
17167 2010-11-13  Bruno Haible  <bruno@clisp.org>
17168
17169         openat: Ensure autoconf macro ordering.
17170         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17171         gl_USE_SYSTEM_EXTENSIONS.
17172         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17173
17174 2010-11-13  Bruno Haible  <bruno@clisp.org>
17175
17176         Update comments.
17177         * lib/unistr/u8-check.c: Update file name in comments.
17178         * lib/unistr/u8-mblen.c: Likewise.
17179         * lib/unistr/u8-prev.c: Likewise.
17180         * lib/unistr/u8-strmblen.c: Likewise.
17181         * lib/unistr/u8-strmbtouc.c: Likewise.
17182
17183 2010-11-13  Jim Meyering  <meyering@redhat.com>
17184
17185         tests: avoid test failure on Solaris 10 due to lack of PATH export
17186         * tests/test-update-copyright.sh: Don't forget to export PATH.
17187
17188         init.sh: ensure that IFS is defined, just in case...
17189         * tests/init.sh (setup_): Ensure that IFS is defined,
17190         so that saving and restoring it works as expected.  This
17191         appears to be useful at least for an old version of dash
17192         from a long time ago (RH 6).  See here for details:
17193         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17194
17195         maint.mk: tighten "test a == b" check
17196         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17197         test to files that contain something like #!/bin/sh.
17198         Without this, coreutils would get two false positives in
17199         the comments of C source files.
17200
17201 2010-11-12  Eric Blake  <eblake@redhat.com>
17202
17203         bootstrap: fix typo in previous attempt
17204         * build-aux/bootstrap (buildreq): Correct the grouping.
17205         Reported by Paul Eggert.
17206
17207         maintainer-makefile: prohibit test x == x
17208         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17209         Based on a report by Matthias Bolte.
17210
17211         bootstrap: allow FreeBSD gzip
17212         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17213         which has no '.' and goes to stderr.
17214         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17215         Reported by Matthias Bolte.
17216
17217         maintainer-makefile: check for i18n setup
17218         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17219         will likely work.
17220
17221 2010-11-12  Bruno Haible  <bruno@clisp.org>
17222
17223         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17224         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17225         * lib/nanosleep.c (nanosleep): Likewise.
17226
17227 2010-11-11  Bruno Haible  <bruno@clisp.org>
17228
17229         fcntl-h: Fix for use of C++ on glibc systems.
17230         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17231         also on glibc systems in C++ mode.
17232         Reported by Gary V. Vaughan <gary@gnu.org>.
17233
17234 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17235
17236         mknod: avoid false failure with dash
17237         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17238
17239 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17240
17241         unlink: Fix "is it should" typo in diagnostic.
17242         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17244
17245 2010-11-11  Bruno Haible  <bruno@clisp.org>
17246
17247         Tests for module 'strerror_r-posix'.
17248         * modules/strerror_r-posix-tests: New file.
17249         * tests/test-strerror_r.c: New file.
17250         * tests/test-string-c++.cc: Check the signature of strerror_r.
17251
17252         New module 'strerror_r-posix'.
17253         * lib/string.in.h (strerror_r): New declaration.
17254         * lib/strerror_r.c: New file.
17255         * m4/strerror_r.m4: New file.
17256         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17257         of strerror_r.
17258         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17259         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17260         * modules/strerror_r-posix: New file.
17261         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17262         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17263         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17264         portability problems.
17265
17266 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17267
17268         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17269         line is also considered for output. Quoted function name in shell
17270         command, so temporary files for functions like MyClass::operator()
17271         are removed correctly without errors.
17272
17273 2010-11-09  Bruno Haible  <bruno@clisp.org>
17274
17275         * doc/posix-functions/strerror.texi: List more failing platforms.
17276
17277         * doc/posix-functions/strerror.texi: Add a comment.
17278
17279 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17280
17281         fdopendir: fix bug on MacOS X when low on file descriptors
17282
17283         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17284         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17285         All callers changed.
17286         (fdopendir): Invoke save_cwd at the top level, not after using
17287         multiple dup() calls to use up file descriptors.  Then retry
17288         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17289         less than the maximum number of open file descriptors, because
17290         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17291         on Mac OS X 10.6.4 for tar 1.24
17292         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17293         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17294         and for tar 1.25
17295         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17296
17297 2010-11-07  Bruno Haible  <bruno@clisp.org>
17298
17299         vasnprintf: Support I flag on glibc systems.
17300         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17301         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17302         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17303         snprintf function.
17304         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17305         glibc systems.
17306         * tests/test-vasnprintf-posix3.c: New file.
17307         * modules/vasnprintf-posix-tests (Files): Add it.
17308         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17309
17310 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17311
17312         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17313         * MODULES.html.sh: For compiler warnings, use name
17314         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17315
17316 2010-11-05  Eric Blake  <eblake@redhat.com>
17317
17318         ceil, floor: avoid spurious failure with icc
17319         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17320         [denormals-as-zero] when optimizing without -mieee-fp option.
17321         * tests/test-floorf2.c (floorf_reference): Likewise.
17322         * tests/test-ceilf1.c (dummy): New function.
17323         (main): Use it to outsmart icc's optimization.
17324         * tests/test-floorf1.c (dummy, main): Likewise.
17325
17326         tests: require working signbit
17327         * modules/ceilf-tests (Depends-on): Add signbit.
17328         * modules/ceill-tests (Depends-on): Likewise.
17329         * modules/floorf-tests (Depends-on): Likewise.
17330         * modules/floorl-tests (Depends-on): Likewise.
17331         * modules/round-tests (Depends-on): Likewise.
17332         * modules/roundf-tests (Depends-on): Likewise.
17333         * modules/roundl-tests (Depends-on): Likewise.
17334         * modules/trunc-tests (Depends-on): Likewise.
17335         * modules/truncf-tests (Depends-on): Likewise.
17336         * modules/truncl-tests (Depends-on): Likewise.
17337
17338         strtod: work around icc bug
17339         * lib/strtod.c (minus_zero): Define to working value.
17340         (strtod): Use it to avoid icc bug.
17341
17342         copysign: enhance tests
17343         * modules/copysign-tests (Files): Add minus-zero.h.
17344         * tests/test-copysign.c (main): Also test zeros.
17345
17346 2010-11-04  Eric Blake  <eblake@redhat.com>
17347
17348         ceil, floor, round, trunc: enhance tests of -0
17349         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17350         * tests/test-ceill.c (main): Likewise.
17351         * tests/test-floorf1.c (main): Likewise.
17352         * tests/test-floorl.c (main): Likewise.
17353         * tests/test-round1.c (main): Likewise.
17354         * tests/test-roundf1.c (main): Likewise.
17355         * tests/test-roundl.c (main): Likewise.
17356         * tests/test-trunc1.c (main): Likewise.
17357         * tests/test-truncf1.c (main): Likewise.
17358         * tests/test-truncl.c (main): Likewise.
17359
17360 2010-11-04  Eric Blake  <eblake@redhat.com>
17361
17362         frexp, tests: work around ICC bug with -zero
17363         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17364         works with more compilers.
17365         * tests/minus-zero.h: New file.
17366         * modules/ceilf-tests (Files): Include it.
17367         * modules/ceill-tests (Files): Likewise.
17368         * modules/floorf-tests (Files): Likewise.
17369         * modules/floorl-tests (Files): Likewise.
17370         * modules/frexp-nolibm-tests (Files): Likewise.
17371         * modules/frexp-tests (Files): Likewise.
17372         * modules/frexpl-nolibm-tests (Files): Likewise.
17373         * modules/frexpl-tests (Files): Likewise.
17374         * modules/isnan-tests (Files): Likewise.
17375         * modules/isnand-nolibm-tests (Files): Likewise.
17376         * modules/isnand-tests (Files): Likewise.
17377         * modules/isnanf-nolibm-tests (Files): Likewise.
17378         * modules/isnanf-tests (Files): Likewise.
17379         * modules/isnanl-nolibm-tests (Files): Likewise.
17380         * modules/isnanl-tests (Files): Likewise.
17381         * modules/round-tests (Files): Likewise.
17382         * modules/roundf-tests (Files): Likewise.
17383         * modules/roundl-tests (Files): Likewise.
17384         * modules/ldexpl-tests (Files): Likewise.
17385         * modules/signbit-tests (Files): Likewise.
17386         * modules/snprintf-posix-tests (Files): Likewise.
17387         * modules/sprintf-posix-tests (Files): Likewise.
17388         * modules/strtod-tests (Files): Likewise.
17389         * modules/trunc-tests (Files): Likewise.
17390         * modules/truncf-tests (Files): Likewise.
17391         * modules/truncl-tests (Files): Likewise.
17392         * modules/vsnprintf-posix-tests (Files): Likewise.
17393         * modules/vsprintf-posix-tests (Files): Likewise.
17394         * modules/vasnprintf-posix-tests (Files): Likewise.
17395         * modules/vasprintf-posix-tests (Files): Likewise.
17396         * tests/test-ceilf1.c (main): Use it.
17397         * tests/test-ceill.c (main): Likewise.
17398         * tests/test-floorf1.c (main): Likewise.
17399         * tests/test-floorl.c (main): Likewise.
17400         * tests/test-frexp.c (main): Likewise.
17401         * tests/test-frexpl.c (main): Likewise.
17402         * tests/test-isnan.c (main): Likewise.
17403         * tests/test-isnand.h (main): Likewise.
17404         * tests/test-isnanf.h (main): Likewise.
17405         * tests/test-isnanl.h (main): Likewise.
17406         * tests/test-ldexpl.c (main): Likewise.
17407         * tests/test-round.c (main): Likewise.
17408         * tests/test-roundf.c (main): Likewise.
17409         * tests/test-roundl.c (main): Likewise.
17410         * tests/test-signbit.c (test_signbitf, test_signbitd)
17411         (test_signbitl): Likewise.
17412         * tests/test-snprintf-posix.h (test_function): Likewise.
17413         * tests/test-sprintf-posix.h (test_function): Likewise.
17414         * tests/test-strtod.c (main): Likewise.
17415         * tests/test-trunc1.c (main): Likewise.
17416         * tests/test-truncf1.c (main): Likewise.
17417         * tests/test-truncl.c (main): Likewise.
17418
17419         isnanl: work around icc bug
17420         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17421
17422 2010-11-03  Eric Blake  <eblake@redhat.com>
17423
17424         tests: fix compiler warnings
17425         * tests/test-getopt.h (test_getopt): Fix condition.
17426         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17427         * tests/test-pipe2.c (main): Likewise.
17428         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17429
17430         utimens: fix broken m4 test
17431         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17432
17433 2010-10-28  Bruno Haible  <bruno@clisp.org>
17434
17435         posix_spawn*, getdtablesize: Relax license.
17436         * modules/posix_spawn (License): Change to LGPLv2+.
17437         * modules/posix_spawnp (License): Likewise.
17438         * modules/posix_spawn-internal (License): Likewise.
17439         * modules/posix_spawnattr_init (License): Likewise.
17440         * modules/posix_spawnattr_getflags (License): Likewise.
17441         * modules/posix_spawnattr_setflags (License): Likewise.
17442         * modules/posix_spawnattr_getpgroup (License): Likewise.
17443         * modules/posix_spawnattr_setpgroup (License): Likewise.
17444         * modules/posix_spawnattr_getschedparam (License): Likewise.
17445         * modules/posix_spawnattr_setschedparam (License): Likewise.
17446         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17447         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17448         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17449         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17450         * modules/posix_spawnattr_getsigmask (License): Likewise.
17451         * modules/posix_spawnattr_setsigmask (License): Likewise.
17452         * modules/posix_spawnattr_destroy (License): Likewise.
17453         * modules/posix_spawn_file_actions_init (License): Likewise.
17454         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17455         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17456         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17457         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17458         * modules/getdtablesize (License): Likewise.
17459         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17460
17461 2010-10-26  Bruno Haible  <bruno@clisp.org>
17462
17463         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17464         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17465         Cygwin and mingw.
17466         Suggested by Eric Blake.
17467
17468 2010-10-26  Bruno Haible  <bruno@clisp.org>
17469
17470         stdio: Work around compilation error due to renameat() on Solaris 10.
17471         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17472         * lib/renameat.c: Don't include <unistd.h> here.
17473         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17474         Reported by Paul Eggert and Eric Blake.
17475
17476 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17477
17478         renameat: port to Solaris 10, which declares renameat in unistd.h
17479
17480         * lib/renameat.c: Include unistd.h before stdio.h, because
17481         Solaris 10 declares renameat in unistd.h.  Problem encountered
17482         when building GNU tar 1.24 on Solaris 10.
17483
17484 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17485
17486         fdopendir: fix C89 compilation
17487         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17488         compilers.
17489
17490 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17491
17492         inttostr: simplify by removing unnecessary redundancy
17493         * lib/anytostr.c: Don't include verify.h.
17494         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17495         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17496         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17497         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17498         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17499         Likewise.
17500         * modules/inttostr (Depends-on): Remove 'verify'.
17501
17502 2010-10-23  Bruno Haible  <bruno@clisp.org>
17503
17504         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17505         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17506         Reported by Eric Blake.
17507
17508 2010-10-23  Bruno Haible  <bruno@clisp.org>
17509
17510         Tests: Fix LOCALE_JA on MirBSD 10.
17511         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17512         to an UTF-8 locale.
17513         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17514         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17515         Reported by Eric Blake.
17516
17517 2010-10-21  Bruno Haible  <bruno@clisp.org>
17518
17519         nl_langinfo test: Avoid test failure on NetBSD 5.
17520         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17521         Reported by Eric Blake.
17522
17523 2010-10-21  Eric Blake  <eblake@redhat.com>
17524
17525         c-stack: work around libsigsegv 2.8 bug
17526         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17527         overflow on at least PowerPC64.
17528
17529 2010-10-17  Bruno Haible  <bruno@clisp.org>
17530
17531         userspec: Drop redundant file.
17532         * modules/userspec (Files): Remove lib/inttostr.h.
17533
17534 2010-10-17  Bruno Haible  <bruno@clisp.org>
17535
17536         nl_langinfo tests: Silence some warnings.
17537         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17538         Reported by Jim Meyering.
17539
17540 2010-10-17  Bruno Haible  <bruno@clisp.org>
17541
17542         Make use of GCC's attribute __alloc_size__.
17543         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17544         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17545         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17546         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17547         __alloc_size__.
17548         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17549         Suggested by Jim Meyering.
17550
17551 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17552
17553         bootstrap: anchor .gitignore entries.
17554         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17555         with...
17556         (insert_vc_ignore): ... this new function, which prepends `/' to
17557         all .gitignore entries before passing them to
17558         insert_sorted_if_absent.
17559
17560 2010-10-16  Bruno Haible  <bruno@clisp.org>
17561
17562         nextafter: Fix configure check.
17563         * modules/nextafter (configure.ac): Correct expected prototype.
17564
17565 2010-10-16  Bruno Haible  <bruno@clisp.org>
17566
17567         termios: Update documentation.
17568         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17569
17570 2010-10-16  Bruno Haible  <bruno@clisp.org>
17571
17572         tests: Make them compile with TinyCC.
17573         * tests/test-strstr.c (main): Remove parentheses around array
17574         initializer.
17575
17576 2010-10-15  Eric Blake  <eblake@redhat.com>
17577
17578         ignore-value: make header idempotent
17579         * lib/ignore-value.h: Add double-inclusion guards.
17580         Reported by Stefan Berger.
17581
17582 2010-10-15  Jim Meyering  <meyering@redhat.com>
17583
17584         GNUmakefile: handle "stable" target, not "major"
17585         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17586         lists in maint.mk and announce-gen.  Without this, "make stable"
17587         would fail to ensure that $(VERSION) is up to date.
17588
17589 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17590
17591         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17592         & co.
17593
17594 2010-10-14  Bruno Haible  <bruno@clisp.org>
17595
17596         vasnprintf: Don't set errno to 0.
17597         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17598         block that sets it to 0.
17599         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17600
17601 2010-10-14  Bruno Haible  <bruno@clisp.org>
17602
17603         socketlib: Fix.
17604         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17605         gl_PREREQ_SYS_H_WINSOCK2.
17606         Reported by Ian Beckwith <ianb@erislabs.net>.
17607
17608 2010-10-13  Jim Meyering  <meyering@redhat.com>
17609
17610         test-select-stdin.c: avoid warn_unused_result warnings
17611         * tests/test-select-stdin.c: Include "macros.h".
17612         ASSERT that read and fflush succeed.
17613
17614 2010-10-13  Jim Meyering  <meyering@redhat.com>
17615
17616         git-version-gen: do require git-VC'd files in cwd
17617         * build-aux/git-version-gen: Reject a git version string
17618         if there are no commits associated with the current directory.
17619         This avoids an unlikely false-positive (unrelated dir whose parent
17620         repository also contains a tag matching v*), as pointed out
17621         by Giuseppe Scrivano in
17622         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17623
17624 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17625
17626         argv-iter: omit nonconforming declaration
17627         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17628         enum arg_iter_err declaration, which doesn't conform to C99.
17629         Solaris 10 cc warns about this.
17630
17631 2010-10-13  Eric Blake  <eblake@redhat.com>
17632
17633         termios: fix compilation on mingw
17634         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17635         (gl_TERMIOS_H): Adjust it on mingw.
17636         * modules/termios (Makefile.am): Substitute new key.
17637         * lib/termios.in.h (includes): Make include_next conditional.
17638         * doc/posix-headers/termios.texi (termios.h): Update
17639         documentation.
17640         Reported by Daniel P. Berrange.
17641
17642 2010-10-13  Jim Meyering  <meyering@redhat.com>
17643
17644         git-version-gen: don't require that .git/ be in the current dir
17645         * build-aux/git-version-gen: Adjust this script so that it works
17646         when run from any working directory beneath the top-level .git/-
17647         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17648         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17649
17650         test-select: avoid warn_unused_result warnings
17651         * tests/test-select.c: Include "macros.h".
17652         ASSERT that each call to read, write, and pipe succeeds.
17653         While not technically required, also check each "close".
17654         * modules/select-tests (Files): Add tests/macros.h.
17655
17656         test-symlinkat: remove declaration of unused local
17657         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17658
17659         test-inttostr: avoid shadowing warnings
17660         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17661         and use malloc rather than the stack for the same reason as
17662         mentioned in the comment justifying the other allocation.
17663
17664 2010-10-11  Bruno Haible  <bruno@clisp.org>
17665
17666         stdlib: Allow multiple gnulib generated replacements to coexist.
17667         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17668         Reported by Sam Steingold <sds@gnu.org>.
17669
17670 2010-10-11  Jim Meyering  <meyering@redhat.com>
17671
17672         fix a documentation typo
17673         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17674
17675 2010-10-11  Eric Blake  <eblake@redhat.com>
17676
17677         futimens: work around Solaris 11 bug
17678         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17679         * tests/test-futimens.h (test_futimens): Enhance, rather than
17680         weaken test.
17681         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17682
17683 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17684
17685         Indentation.
17686         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17687         higher-level operators more to the left.
17688
17689 2010-10-11  Jim Meyering  <meyering@redhat.com>
17690
17691         test-futimens: avoid unwarranted test failure on Solaris 5.11
17692         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17693         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17694         because it tries to dereference the NULL name argument.
17695
17696 2010-10-11  Bruno Haible  <bruno@clisp.org>
17697
17698         Indentation.
17699         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17700         indentation.
17701
17702 2010-10-11  Jim Meyering  <meyering@redhat.com>
17703
17704         spawn.in.h: make indentation consistent with parentheses
17705         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17706         Make indentation consistent with parentheses.
17707
17708 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17709
17710         Fix mismatched parens in previous commit
17711         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17712         parens.
17713
17714 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17715
17716         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17717
17718         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17719         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17720         * lib/malloca.c: Include "verify.h".
17721         (verify1): Remove, replacing with a verify call.
17722         * lib/relocwrapper.c (verify1): Likewise.
17723         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17724         Likewise.
17725         * modules/malloca (Depends-on): Add 'verify'.
17726         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17727         * modules/vasnprintf (Depends-on): Add 'verify'.
17728         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17729         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17730         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17731         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17732         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17733         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17734         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17735
17736         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17737
17738         Formerly the style was sometimes 2*X - 1, because the C standard
17739         was wrongly thought to disallow ?: in integral constant expressions.
17740         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17741         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17742         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17743         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17744         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17745         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17746         verify that time_t cannot be floating.
17747
17748 2010-10-08  Eric Blake  <eblake@redhat.com>
17749
17750         time: enforce recent POSIX ruling that time_t is integral
17751         * lib/time.in.h (__time_t_must_be_integral): Detect any
17752         problematic systems, allowing the rest of gnulib to assume POSIX.
17753
17754 2010-10-08  Jim Meyering  <meyering@redhat.com>
17755
17756         fdopendir: fix a bug on systems lacking openat and /proc support
17757         OpenBSD 4.7 is one such system.  The most noticeable effect was
17758         failure of any application making nontrivial use of fts: rm, du,
17759         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17760           ./rm: traversal failed: `a': Bad file descriptor
17761         Debugging that, you see that even though FD 6 was closed just
17762         prior to the opendir call in fd_clone_opendir, its resulting
17763         dir->dd_fd was 8, rather than the expected value of 6:
17764
17765         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17766         93                close (fd);
17767         (gdb) n
17768         94                dir = fd_clone_opendir (dupfd);
17769         (gdb) n
17770         95                saved_errno = errno;
17771         (gdb) p dir->dd_fd
17772         $11 = 8
17773
17774         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17775         The problem is that on OpenBSD, fd_clone_opendir has to resort
17776         to using the old-style save/restore CWD mechanism, due to its
17777         lack of openat/proc support, and *that* would steal the FD (6)
17778         that opendir was supposed to use.
17779
17780         The fix is to squirrel away the desired FD so that save_cwd uses a
17781         different one, and then free the dest FD right before calling opendir.
17782         That guarantees opendir will use the required file descriptor.
17783
17784         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17785
17786 2010-10-08  Bruno Haible  <bruno@clisp.org>
17787
17788         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17789         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17790
17791 2010-10-08  Bruno Haible  <bruno@clisp.org>
17792
17793         nanosleep: Make replacement POSIX compliant.
17794         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17795         is out of range.
17796         Reported by Jim Meyering.
17797
17798 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17799
17800         bootstrap: add hook for altering gnulib.mk, for Bison
17801         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17802         the Bison bootstrapping process can rewrite file names and variables
17803         in this file before later parts of 'bootstrap' use the file.
17804         Bison wants to include lib/gnulib.mk from the top-level makefile,
17805         so it needs the file names in this file to be relative to the top
17806         level, not relative to lib; plus it needs variable names to be
17807         rewritten.
17808         (slurp): Use the new function.
17809
17810         bootstrap: reformat for readability
17811         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17812
17813 2010-10-08  Eric Blake  <eblake@redhat.com>
17814
17815         docs: update cygwin progress
17816         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17817         1.7.7.
17818         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17819         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17820         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17821         * doc/posix-functions/carg.texi (carg): Likewise.
17822         * doc/posix-functions/cargf.texi (cargf): Likewise.
17823         * doc/posix-functions/casin.texi (casin): Likewise.
17824         * doc/posix-functions/casinf.texi (casinf): Likewise.
17825         * doc/posix-functions/casinh.texi (casinh): Likewise.
17826         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17827         * doc/posix-functions/catan.texi (catan): Likewise.
17828         * doc/posix-functions/catanf.texi (catanf): Likewise.
17829         * doc/posix-functions/catanh.texi (catanh): Likewise.
17830         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17831         * doc/posix-functions/ccos.texi (ccos): Likewise.
17832         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17833         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17834         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17835         * doc/posix-functions/cexp.texi (cexp): Likewise.
17836         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17837         * doc/posix-functions/cimag.texi (cimag): Likewise.
17838         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17839         * doc/posix-functions/clog.texi (clog): Likewise.
17840         * doc/posix-functions/clogf.texi (clogf): Likewise.
17841         * doc/posix-functions/conj.texi (conj): Likewise.
17842         * doc/posix-functions/conjf.texi (conjf): Likewise.
17843         * doc/posix-functions/cpow.texi (cpow): Likewise.
17844         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17845         * doc/posix-functions/cproj.texi (cproj): Likewise.
17846         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17847         * doc/posix-functions/creal.texi (creal): Likewise.
17848         * doc/posix-functions/crealf.texi (crealf): Likewise.
17849         * doc/posix-functions/csin.texi (csin): Likewise.
17850         * doc/posix-functions/csinf.texi (csinf): Likewise.
17851         * doc/posix-functions/csinh.texi (csinh): Likewise.
17852         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17853         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17854         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17855         * doc/posix-functions/ctan.texi (ctan): Likewise.
17856         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17857         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17858         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17859         * doc/posix-headers/complex.texi (complex.h): Likewise.
17860
17861 2010-10-07  Jim Meyering  <meyering@redhat.com>
17862
17863         parse-datetime: avoid compilation failure on OpenBSD 4.7
17864         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17865         This works around a compilation failure on OpenBSD 4.7:
17866         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17867
17868 2010-10-07  Eric Blake  <eblake@redhat.com>
17869
17870         docs: update cygwin progress
17871         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17872         1.7.6.
17873         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17874         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
17875         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
17876         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
17877         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
17878         Likewise.
17879         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
17880         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
17881         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
17882         Likewise.
17883         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
17884         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
17885         Likewise.
17886         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
17887         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
17888         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
17889         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
17890         Likewise.
17891         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
17892         Likewise.
17893         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
17894
17895         docs: update parse-datetime history
17896         * doc/parse-datetime.texi (Authors of parse_datetime): Better
17897         documentation of this function's history and alternatives.
17898
17899         cygwin: use more robust version check
17900         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
17901         exclude an eventual cygwin 1.9.1.
17902         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17903         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17904         (gl_FUNC_STRCASESTR): Likewise.
17905         Reported by Bruno Haible.
17906
17907 2010-10-06  Bruno Haible  <bruno@clisp.org>
17908
17909         string, sys_select: Avoid #including large headers unless necessary.
17910         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
17911         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17912         OSF/1, BeOS, Haiku.
17913         Reported by Jim Meyering.
17914
17915 2010-10-05  Eric Blake  <eblake@redhat.com>
17916
17917         memmem, strstr, strcasestr: fix bug with long periodic needle
17918         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17919         periodic needle having false positive.
17920         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17921         and cygwin 1.7.7.
17922         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17924         (gl_FUNC_STRCASESTR): Likewise.
17925         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17926         * tests/test-memmem.c (main): Expose the bug.
17927         * tests/test-strcasestr.c (main): Likewise.
17928         * tests/test-strstr.c (main): Likewise.
17929         * tests/test-c-strcasestr.c (main): Likewise.
17930         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17931         * doc/posix-functions/strstr.texi (strstr): Likewise.
17932         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17933         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17934
17935 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17936
17937         parse-datetime: do some more renaming
17938         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17939         parse_datetime, not get_date.  Mention the renaming.
17940         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17941         in comments.
17942         * m4/bison.m4: Likewise.
17943
17944 2010-10-05  Eric Blake  <eblake@redhat.com>
17945
17946         parse-datetime: better name than get_date
17947         * NEWS: Reword the deprecation notice.
17948         * modules/get_date: Rename to modules/parse-datetime.
17949         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17950         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17951         * lib/get_date.y: Rename to lib/parse-datetime.y.
17952         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17953         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17954         * doc/getdate.texi: Provide fallback wrapper.
17955         * lib/getdate.h: Move guts, and wrap...
17956         * lib/parse-datetime.h: ...new file.
17957         * lib/parse-datetime.y (get_date): Rename...
17958         (parse_datetime): ...to this.
17959         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17960         (gl_PARSE_DATETIME): ...to this.
17961         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17962         documentation.
17963         * modules/getdate (Files): Provide fallback docs and header.
17964         (Notice, Depends-on): Update references.
17965         * tests/test-parse-datetime.c: Likewise.
17966         * DEPENDENCIES: Likewise.
17967         * MODULES.html.sh (Date and time <time.h>): Likewise.
17968         * doc/parse-datetime.texi (Date input formats)
17969         (Authors of parse_datetime): Likewise.
17970         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17971         (Include): Likewise.
17972         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17973         * gnulib-tool: Likewise.
17974         * m4/bison.m4 (gl_BISON): Likewise.
17975         Suggested by Bruno Haible.
17976
17977 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17978
17979         more ports to Solaris tr, which needs [] around ranges
17980         * gnulib-tool: Solaris tr needs [] around ranges.
17981         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17982         * tests/test-pipe-filter-gi1.c (main): Likewise.
17983         * tests/test-pipe-filter-ii1.c (main): Likewise.
17984
17985 2010-10-05  Eric Blake  <eblake@redhat.com>
17986
17987         bootstrap: fix Solaris regression
17988         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17989         around ranges.
17990         Reported by Pádraig Brady.
17991
17992         bootstrap: work with pkg-config
17993         * build-aux/bootstrap (check_versions): Also transliterate - in
17994         prerequisite name.
17995         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17996         prerequisites that were already found, to avoid confusion.
17997         Reported by Justin Clift.
17998
17999         faccessat: remove unused wrappers
18000         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18001         presence of these wrappers dragged in -lgen on Solaris.
18002         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18003
18004 2010-10-05  Jim Meyering  <meyering@redhat.com>
18005
18006         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18007         * Makefile (sc_pragma_columns): New syntax-check rule.
18008
18009 2010-10-04  Bruno Haible  <bruno@clisp.org>
18010
18011         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18012         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18013         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18014         Reported by Bruce Korb and Eric Blake.
18015
18016 2010-10-04  Bruno Haible  <bruno@clisp.org>
18017
18018         threadlib: Make option --with-libpth-prefix work.
18019         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18020         use $LIBPTH, not just -lpth.
18021
18022 2010-10-04  Bruno Haible  <bruno@clisp.org>
18023
18024         Avoid line length limitation from HP NonStop system header files.
18025         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18026         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18027         * lib/ctype.in.h: Likewise.
18028         * lib/dirent.in.h: Likewise.
18029         * lib/errno.in.h: Likewise.
18030         * lib/fcntl.in.h: Likewise.
18031         * lib/float.in.h: Likewise.
18032         * lib/getopt.in.h: Likewise.
18033         * lib/iconv.in.h: Likewise.
18034         * lib/inttypes.in.h: Likewise.
18035         * lib/langinfo.in.h: Likewise.
18036         * lib/locale.in.h: Likewise.
18037         * lib/math.in.h: Likewise.
18038         * lib/netdb.in.h: Likewise.
18039         * lib/netinet_in.in.h: Likewise.
18040         * lib/poll.in.h: Likewise.
18041         * lib/pthread.in.h: Likewise.
18042         * lib/pty.in.h: Likewise.
18043         * lib/sched.in.h: Likewise.
18044         * lib/se-selinux.in.h: Likewise.
18045         * lib/search.in.h: Likewise.
18046         * lib/signal.in.h: Likewise.
18047         * lib/spawn.in.h: Likewise.
18048         * lib/stdarg.in.h: Likewise.
18049         * lib/stddef.in.h: Likewise.
18050         * lib/stdint.in.h: Likewise.
18051         * lib/stdio.in.h: Likewise.
18052         * lib/stdlib.in.h: Likewise.
18053         * lib/string.in.h: Likewise.
18054         * lib/strings.in.h: Likewise.
18055         * lib/sys_file.in.h: Likewise.
18056         * lib/sys_ioctl.in.h: Likewise.
18057         * lib/sys_select.in.h: Likewise.
18058         * lib/sys_socket.in.h: Likewise.
18059         * lib/sys_stat.in.h: Likewise.
18060         * lib/sys_time.in.h: Likewise.
18061         * lib/sys_times.in.h: Likewise.
18062         * lib/sys_utsname.in.h: Likewise.
18063         * lib/sys_wait.in.h: Likewise.
18064         * lib/sysexits.in.h: Likewise.
18065         * lib/termios.in.h: Likewise.
18066         * lib/time.in.h: Likewise.
18067         * lib/unistd.in.h: Likewise.
18068         * lib/wchar.in.h: Likewise.
18069         * lib/wctype.in.h: Likewise.
18070         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18071         * modules/ctype (Makefile.am): Likewise.
18072         * modules/dirent (Makefile.am): Likewise.
18073         * modules/errno (Makefile.am): Likewise.
18074         * modules/fcntl-h (Makefile.am): Likewise.
18075         * modules/float (Makefile.am): Likewise.
18076         * modules/getopt-posix (Makefile.am): Likewise.
18077         * modules/iconv-h (Makefile.am): Likewise.
18078         * modules/inttypes (Makefile.am): Likewise.
18079         * modules/langinfo (Makefile.am): Likewise.
18080         * modules/locale (Makefile.am): Likewise.
18081         * modules/math (Makefile.am): Likewise.
18082         * modules/netdb (Makefile.am): Likewise.
18083         * modules/netinet_in (Makefile.am): Likewise.
18084         * modules/poll-h (Makefile.am): Likewise.
18085         * modules/pthread (Makefile.am): Likewise.
18086         * modules/pty (Makefile.am): Likewise.
18087         * modules/sched (Makefile.am): Likewise.
18088         * modules/search (Makefile.am): Likewise.
18089         * modules/selinux-h (Makefile.am): Likewise.
18090         * modules/signal (Makefile.am): Likewise.
18091         * modules/spawn (Makefile.am): Likewise.
18092         * modules/stdarg (Makefile.am): Likewise.
18093         * modules/stddef (Makefile.am): Likewise.
18094         * modules/stdint (Makefile.am): Likewise.
18095         * modules/stdio (Makefile.am): Likewise.
18096         * modules/stdlib (Makefile.am): Likewise.
18097         * modules/string (Makefile.am): Likewise.
18098         * modules/strings (Makefile.am): Likewise.
18099         * modules/sys_file (Makefile.am): Likewise.
18100         * modules/sys_ioctl (Makefile.am): Likewise.
18101         * modules/sys_select (Makefile.am): Likewise.
18102         * modules/sys_socket (Makefile.am): Likewise.
18103         * modules/sys_stat (Makefile.am): Likewise.
18104         * modules/sys_time (Makefile.am): Likewise.
18105         * modules/sys_times (Makefile.am): Likewise.
18106         * modules/sys_utsname (Makefile.am): Likewise.
18107         * modules/sys_wait (Makefile.am): Likewise.
18108         * modules/sysexits (Makefile.am): Likewise.
18109         * modules/termios (Makefile.am): Likewise.
18110         * modules/time (Makefile.am): Likewise.
18111         * modules/unistd (Makefile.am): Likewise.
18112         * modules/wchar (Makefile.am): Likewise.
18113         * modules/wctype (Makefile.am): Likewise.
18114
18115 2010-10-04  Bruno Haible  <bruno@clisp.org>
18116
18117         read-file tests: Avoid a test failure on NonStop Kernel.
18118         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18119         a regular file.
18120         Reported by Joachim Schmitz <schmitz@hp.com>.
18121
18122 2010-10-03  Bruno Haible  <bruno@clisp.org>
18123
18124         gnulib-tool: Fixes for --create-testdir with --libtool.
18125         * gnulib-tool (func_get_automake_snippet): Don't augment
18126         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18127         an executable.
18128         (func_create_testdir): Handle module 'alloca' like func_import.
18129         Reported by Bruce Korb <bruce.korb@gmail.com>.
18130
18131 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18132
18133         Avoid some lines longer than 80 characters.
18134         * lib/stdint.in.h: Break long comment lines.
18135         * lib/math.in.h: Likewise.
18136         (_GL_NUM_UINT_WORDS): New macro, for readability.
18137         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18138         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18139         * lib/stdlib.in.h: Likewise.
18140         * lib/spawn.in.h: Likewise.
18141         * lib/sys_socket.in.h: Update an URL.
18142         * lib/sys_stat.in.h: Break long line.
18143
18144 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18145
18146         Improve pmccabe2html.
18147         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18148         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18149         when the sources change. Remove the line in the HTML about "Used
18150         ranges" (which implied that there might be other unused ranges),
18151         rename "Resume" to "Summary" (easier to understand for more users).
18152         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18153         styles, and some unnecessary blank lines.
18154
18155 2010-10-03  Bruno Haible  <bruno@clisp.org>
18156             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18157
18158         acl: Add support for ACLs on NonStop Kernel.
18159         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18160         Check whether the function aclsort() exists.
18161         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18162         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18163         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18164         (acl_nontrivial [HAVE_ACLSORT]: New function.
18165         (file_has_acl): Implement for NonStop Kernel.
18166         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18167         (qset_acl): Implement for NonStop Kernel.
18168         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18169         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18170         (main): Implement for NonStop Kernel.
18171         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18172         Kernel. Handle this flavor.
18173         * tests/test-set-mode-acl.sh: Likewise.
18174         * tests/test-copy-acl.sh: Likewise.
18175         * tests/test-copy-file.sh: Likewise.
18176
18177 2010-10-03  Bruno Haible  <bruno@clisp.org>
18178
18179         Info about ACLs on NonStop Kernel.
18180         * doc/acl-resources.txt: Add info about NonStop Kernel.
18181         References by Joachim Schmitz <schmitz@hp.com>.
18182
18183 2010-10-02  Bruno Haible  <bruno@clisp.org>
18184
18185         Define missing EDQUOT on NonStop Kernel.
18186         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18187         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18189         missing.
18190         * doc/posix-headers/errno.texi: Mention the NSK bug.
18191         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18192         Reported by Joachim Schmitz <schmitz@hp.com>.
18193
18194 2010-10-02  Bruno Haible  <bruno@clisp.org>
18195
18196         Update doc for POSIX:2008.
18197         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18198         Update URL of POSIX specification.
18199
18200 2010-10-02  Bruno Haible  <bruno@clisp.org>
18201
18202         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18203         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18204         from gnulib, not from Automake.
18205
18206 2010-10-02  Bruno Haible  <bruno@clisp.org>
18207
18208         New module 'system-posix'.
18209         * modules/system-posix: New file.
18210         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18211         module is present.
18212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18213         GNULIB_SYSTEM_POSIX.
18214         * modules/stdlib (Depends-on): Remove sys_wait.
18215         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18216         * doc/posix-functions/system.texi: Mention the new module.
18217         * doc/posix-headers/stdlib.texi: Likewise.
18218         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18219         define test_sys_wait_macros to a no-op.
18220         Reported by Sam Steingold <sds@gnu.org>.
18221
18222 2010-09-30  Bruno Haible  <bruno@clisp.org>
18223
18224         More renaming from 'getdate' to 'get_date'.
18225         * doc/get_date.texi: Renamed from doc/getdate.texi.
18226         * modules/get_date (Files): Update.
18227         * MODULES.html.sh (Date and time <time.h>): Update.
18228         * DEPENDENCIES: Update.
18229         * gnulib-tool: Update comment.
18230         * m4/bison.m4 (gl_BISON): Likewise.
18231         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18232
18233 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18234
18235         bootstrap: support ACLOCAL_FLAGS during aclocal
18236         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18237         can add additional -I dir for third-party .m4 files.
18238
18239 2010-09-30  Eric Blake  <eblake@redhat.com>
18240
18241         bootstrap: use glibtoolize on MacOS
18242         * build-aux/bootstrap (check_versions): Convert libtool into
18243         libtoolize.
18244         (tool search): Move libtool check earlier, and look for
18245         glibtoolize for MacOS.
18246         (gnulib_tool_options): Auto-add --libtool when appropriate.
18247         Reported by Justin Clift.
18248
18249         poll: fix typo that broke test on MacOS
18250         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18251         Reported by Justin Clift.
18252
18253         getdate: rename to get_date
18254         Note: getdate.h is not renamed, to minimize client impact.
18255         * modules/getdate: Mark obsolete.  Move old contents...
18256         * modules/get_date: ...to new module name.
18257         * modules/getdate-tests: Move...
18258         * modules/get_date-tests: ...here.
18259         * m4/getdate.m4: Move...
18260         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18261         * lib/getdate.y: Move...
18262         * lib/get_date.y: ...here.
18263         * tests/test-getdate.c: Move...
18264         * tests/test-get_date.c: ...here.
18265         * doc/posix-functions/getdate.texi (getdate): Update name.
18266         * NEWS: Mention the change.
18267
18268 2010-09-29  Bruno Haible  <bruno@clisp.org>
18269
18270         Separate the module 'waitpid' from the module 'sys_wait'.
18271         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18272         present.
18273         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18274         gl_MODULE_INDICATOR_FOR_TESTS.
18275         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18276         * modules/sys_wait (Depends-on): Remove waitpid.
18277         (Makefile.am): Substitute GNULIB_WAITPID.
18278         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18279         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18280         signature only if the 'waitpid' module is present.
18281         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18282         * NEWS: Mention the change.
18283         * modules/grantpt (Depends-on): Add waitpid.
18284         * modules/wait-process (Depends-on): Likewise.
18285
18286 2010-09-29  Bruno Haible  <bruno@clisp.org>
18287
18288         More tests for module 'sys_wait'.
18289         * modules/sys_wait-c++-tests: New file.
18290         * tests/test-sys_wait-c++.cc: New file.
18291         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18292         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18293
18294 2010-09-29  Bruno Haible  <bruno@clisp.org>
18295
18296         New module 'waitpid'.
18297         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18298         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18299         Don't include <process.h>.
18300         (waitpid): Declare only, using modern idiom.
18301         * m4/waitpid.m4: New file.
18302         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18303         * modules/waitpid: New file.
18304         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18305         (Makefile.am): Update.
18306         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18307
18308 2010-09-28  Bruno Haible  <bruno@clisp.org>
18309
18310         poll: Assume ANSI C.
18311         * lib/poll.c (poll): Use an ANSI C declaration.
18312
18313 2010-09-28  Bruno Haible  <bruno@clisp.org>
18314
18315         poll-h: Create poll.h on all platforms.
18316         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18317         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18318         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18319         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18320         (gl_REPLACE_POLL_H): Don't set POLL_H.
18321         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18322         * modules/poll-h (Depends-on): Add include_next.
18323         (Makefile.am): Create poll.h unconditionally. Substitute also
18324         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18325
18326 2010-09-28  Bruno Haible  <bruno@clisp.org>
18327
18328         Tests for module 'poll-h'.
18329         * modules/poll-h-c++-tests: New file.
18330         * tests/test-poll-h-c++.cc: New file.
18331
18332         Tests for module 'poll-h'.
18333         * modules/poll-h-tests: New file.
18334         * tests/test-poll-h.c: New file.
18335
18336 2010-09-28  Bruno Haible  <bruno@clisp.org>
18337
18338         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18339         * modules/poll-h (Depends-on): Add 'extensions'.
18340
18341 2010-09-28  Bruno Haible  <bruno@clisp.org>
18342
18343         New module 'poll-h'.
18344         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18345         (poll): Use modern idiom.
18346         * modules/poll-h: New file.
18347         * modules/poll (Files): Remove lib/poll.in.h.
18348         (Depends-on): Add poll-h.
18349         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18350         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18351         * m4/poll_h.m4: New file.
18352         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18353         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18354         and invoke gl_REPLACE_POLL_H.
18355         * lib/poll.c: Use common idiom.
18356         * tests/test-poll.c: Likewise.
18357         * doc/posix-headers/poll.texi: Mention the poll-h module.
18358         Suggested by Eric Blake.
18359
18360 2010-09-26  Bruno Haible  <bruno@clisp.org>
18361
18362         sys_wait: Implement WSTOPSIG.
18363         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18364         Reported by Simon Josefsson.
18365
18366 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18367
18368         stdlib, sys_wait: Avoid compilation error on mingw.
18369         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18370
18371 2010-09-26  Bruno Haible  <bruno@clisp.org>
18372
18373         stdlib tests: Avoid code duplication.
18374         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18375         * modules/sys_wait-tests (Files): Likewise.
18376         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18377         * tests/test-stdlib.c: Include test-sys_wait.h.
18378         (main): Invoke test_sys_wait_macros.
18379         * tests/test-sys_wait.c: Include test-sys_wait.h.
18380         (main): Invoke test_sys_wait_macros.
18381
18382 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18383
18384         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18385         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18386         sure Windows sockets are working before calling getaddrinfo.
18387         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18388         * doc/gnulib.texi (Windows sockets): Fix typo.
18389
18390 2010-09-25  Bruno Haible  <bruno@clisp.org>
18391
18392         Tests for module 'regex-quote'.
18393         * modules/regex-quote-tests: New file.
18394         * tests/test-regex-quote.c: New file.
18395
18396         New module 'regex-quote'.
18397         * lib/regex-quote.h: New file.
18398         * lib/regex-quote.c: New file.
18399         * modules/regex-quote: New file.
18400         Suggested by Reuben Thomas <rrt@sc3d.org>.
18401
18402 2010-09-24  Bruno Haible  <bruno@clisp.org>
18403
18404         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18405         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18406
18407 2010-09-23  Bruno Haible  <bruno@clisp.org>
18408
18409         setenv: Relax license.
18410         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18411         Blake.
18412         Requested by Eric Blake.
18413
18414 2010-09-22  Bruno Haible  <bruno@clisp.org>
18415
18416         termios: Relax license.
18417         * modules/termios (License): Change to LGPLv2+.
18418         Requested by Eric Blake.
18419
18420 2010-09-22  Bruno Haible  <bruno@clisp.org>
18421
18422         threadlib: Allow the package to change the default to 'no'.
18423         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18424         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18425         Reported by Paul Eggert.
18426
18427 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18428             Bruno Haible  <bruno@clisp.org>
18429
18430         Fix endless loop in mbmemcasecoll.
18431         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18432         byte.
18433         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18434
18435 2010-09-22  Bruno Haible  <bruno@clisp.org>
18436
18437         Tests for module 'memcoll'.
18438         * modules/memcoll-tests: New file.
18439         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18440
18441         memcoll, xmemcoll: Clarify size vs. length.
18442         * modules/memcoll.c (memcoll0): Clarify specification.
18443         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18444         passed to collate_error.
18445
18446 2010-09-22  Bruno Haible  <bruno@clisp.org>
18447
18448         Tests for module 'memcasecmp'.
18449         * modules/memcasecmp-tests: New file.
18450         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18451
18452 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18453
18454         * lib/pthread.in.h: Add split double-inclusion guard, and include
18455         system <pthread.h> if there is one.  Use @@-style as in other
18456         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18457         pthread.h doesn't.
18458         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18459         (pthread_mutexattr_settype, pthread_mutex_trylock):
18460         New static inline functions, if there's no system <pthread.h>.
18461         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18462         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18463         Approximate with mutexes if the system lacks spinlocks, as in
18464         MacOS.
18465         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18466         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18467         @@-style.  Check for spinlocks separately.
18468         (gl_PTHREAD_DEFAULTS): New macro.
18469         * modules/pthread: Redo to use a more typical style for in.h files.
18470
18471 2010-09-21  Eric Blake  <eblake@redhat.com>
18472
18473         net_if: enhance tests
18474         * tests/test-net_if.c (main): Move signature checks earlier.
18475         Print failures to stderr.
18476         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18477         Document the bug that we do not yet fix.
18478
18479 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18480
18481         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18482         about gnulib, not GSS.
18483
18484 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18485
18486         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18487         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18488         for Emacs.
18489         * build-aux/pmccabe2html: Make Makefile.am example code more
18490         cut-and-paste friendly.
18491
18492 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18493
18494         * tests/test-net_if.c: New file.
18495         * modules/net_if-tests: New file.
18496
18497 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18498
18499         pthread: add pthread_spin_destroy
18500         * lib/pthread.in.h (pthread_spin_destroy): New function.
18501
18502 2010-09-19  Bruno Haible  <bruno@clisp.org>
18503
18504         gnulib-tool: Fix --help output.
18505         * gnulib-tool (func_usage): Fix help message.
18506         Reported by Reuben Thomas <rrt@sc3d.org>.
18507
18508 2010-09-18  Jim Meyering  <meyering@redhat.com>
18509
18510         maint.mk: avoid unexpanded \n in two diagnostics
18511         * top/maint.mk (sc_prohibit_always_true_header_tests):
18512         Don't use a literal \n in a halt=... assignment.  It would not be
18513         expanded, and the two \n bytes would appear in the diagnostic output
18514         rather than the desired newline.  Use halt=$$(printf ... instead.
18515         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18516
18517 2010-09-18  Bruno Haible  <bruno@clisp.org>
18518
18519         netinet_in: Doc tweak.
18520         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18521         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18522
18523 2010-09-18  Jim Meyering  <meyering@redhat.com>
18524
18525         init.sh: correct an outdated comment
18526         * tests/init.sh (create_exe_shims_):  s/function/alias/
18527
18528         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18529         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18530         a file named "*.exe" is removed between the glob expansion and the
18531         processing of that oddly named file.
18532
18533 2010-09-17  Eric Blake  <eblake@redhat.com>
18534
18535         mirbsd: add some more support
18536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18537         in BSD family.
18538         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18539         devices as OpenBSD.
18540         * m4/host-os.m4 (mirbsd): Add MirBSD.
18541
18542         tests: fix unportable assumption on sys/wait.h
18543         * tests/test-sys_wait.c (main): Relax test.
18544         * tests/test-stdlib.c (main): Likewise.
18545
18546         init.sh: accomodate directory with no .exes
18547         * tests/init.sh: Accomodate directory containing only scripts.
18548
18549         tests: avoid compiler warning
18550         * tests/test-stdlib.c (main): Use the variable.
18551
18552         fdutimens, fdutimensat: update signature, again
18553         * lib/utimens.h (gl_futimens): Delete, and move signature...
18554         (fdutimens): ...here.
18555         (fdutimensat): Rearrange signature.
18556         (lutimensat): Rename variable for clarity.
18557         * lib/fdutimensat.c (fdutimensat): Update signature.
18558         * lib/utimens.c (fdutimens): Likewise.
18559         (gl_futimens): Delete.
18560         (utimens, lutimens): Update callers.
18561         * lib/futimens.c (futimens): Likewise.
18562         * tests/test-fdutimensat.c: Likewise.
18563         * tests/test-utimens.c: Likewise.
18564         * tests/test-futimens.h: Update comment.
18565         * NEWS: Mention this.
18566         Suggested by Paul Eggert.
18567
18568 2010-09-17  Bruno Haible  <bruno@clisp.org>
18569
18570         Take over the maintenance of some older macros from Autoconf.
18571         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18572         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18573         GNU Autoconf.
18574         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18575         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18576
18577 2010-09-17  Eric Blake  <eblake@redhat.com>
18578
18579         fdutimensat: drop atflag validation
18580         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18581         with valid fd, to close a race scenario where futimens is
18582         unsupported and FILE was replaced by a symlink.
18583         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18584         accordingly.
18585         Suggested by Paul Eggert.
18586
18587 2010-09-16  Bruno Haible  <bruno@clisp.org>
18588
18589         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18590         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18591
18592 2010-09-16  Bruno Haible  <bruno@clisp.org>
18593
18594         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18595         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18596         login_tty exists.
18597         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18598
18599 2010-09-16  Bruno Haible  <bruno@clisp.org>
18600
18601         login_tty: Make the replacement code work on BSD systems.
18602         * lib/login_tty.c: Include <sys/ioctl.h>.
18603         (login_tty): Use ioctl TIOCSCTTY when available.
18604         * modules/login_tty (Depends-on): Add sys_ioctl.
18605         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18606
18607 2010-09-16  Bruno Haible  <bruno@clisp.org>
18608
18609         login_tty: Stricter unit test.
18610         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18611         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18612         and tcgetsid() after login_tty.
18613         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18614
18615 2010-09-16  Bruno Haible  <bruno@clisp.org>
18616
18617         New module 'tcgetsid'.
18618         * lib/tcgetsid.c: New file.
18619         * m4/tcgetsid.m4: New file.
18620         * modules/tcgetsid: New file.
18621         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18622         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18623         GNULIB_TCGETSID, HAVE_TCGETSID.
18624         * lib/termios.in.h: Include <sys/types.h>.
18625         (tcgetsid): New declaration.
18626         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18627         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18628         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18629         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18630
18631 2010-09-16  Bruno Haible  <bruno@clisp.org>
18632
18633         Tests for module 'termios'.
18634         * modules/termios-c++-tests: New file.
18635         * modules/termios-tests: New file.
18636         * tests/test-termios-c++.cc: New file.
18637         * tests/test-termios.c: New file.
18638
18639         New module 'termios'.
18640         * modules/termios: New file.
18641         * lib/termios.in.h: New file.
18642         * m4/termios_h.m4: New file.
18643         * doc/posix-headers/termios.texi: Mention the new module.
18644
18645 2010-09-16  Eric Blake  <eblake@redhat.com>
18646
18647         fdutimensat: add an atflag parameter
18648         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18649         * lib/utimens.h (fdutimensat): Update prototype.
18650         * tests/test-fdutimensat.c: Adjust test to match.
18651         * NEWS: Document the change.
18652         Suggested by Paul Eggert.
18653
18654 2010-09-16  Bruno Haible  <bruno@clisp.org>
18655
18656         Fix typos in comments.
18657         * lib/striconveh.h: Fix typo in comment.
18658         * lib/login_tty.c (login_tty): Likewise.
18659
18660 2010-09-15  Bruno Haible  <bruno@clisp.org>
18661
18662         stdlib: clarify MirBSD WEXITSTATUS bug
18663         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18664         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18665
18666 2010-09-15  Eric Blake  <eblake@redhat.com>
18667
18668         stdlib: work around MirBSD WEXITSTATUS bug
18669         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18670         * modules/stdlib (Depends-on): Add sys_wait.
18671         * tests/test-sys_wait.c (main): Enhance test.
18672         * tests/test-stdlib.c (main): Likewise.
18673         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18674
18675         docs: mention MacOS issue with WEXITSTATUS(constant)
18676         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18677         issue.
18678         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18679
18680         strnlen: add tests
18681         * modules/strnlen-tests: New file.
18682         * tests/test-strnlen.c: Likewise.
18683
18684 2010-09-14  Bruno Haible  <bruno@clisp.org>
18685
18686         unistr/base: Avoid link errors when module 'libunistring' is also used.
18687         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18688         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18689         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18690         Declare also when HAVE_LIBUNISTRING is set.
18691         Reported by Pádraig Brady <P@draigbrady.com>.
18692
18693 2010-09-14  Eric Blake  <eblake@redhat.com>
18694
18695         test-rawmemchr: make more robust
18696         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18697         (Depends-on, configure.ac): Add needed prerequisites to use it.
18698         * modules/memchr-tests (Files, Depends-on, configure.ac):
18699         Likewise, to avoid implicit reliance on memchr module prereqs.
18700         * tests/test-memchr.c (main): Ensure proper masking.
18701         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18702         reads.
18703
18704         memchr: detect glibc Alpha bug
18705         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18706         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18707         Alpha.
18708         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18709         * tests/test-memchr.c (main): Enhance test.
18710         Reported by Nelson H. F. Beebe.
18711
18712 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18713
18714         fts, getcwd, glob: audit for dirfd returning -1
18715         * lib/fts.c (opendir): Remove #define; no longer used.
18716         (opendirat): New arg PDIR_FD.  All callers changed.
18717         (fts_build, _opendir2): Use new opendirat to avoid the need for
18718         dirfd, or for checking whether dirfd returns a negative value.
18719         Don't use opendir; always use openat followed by fdopendir.
18720         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18721         it.
18722         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18723         returns -1 here.
18724         * modules/fts (Depends-on): Remove dirfd.
18725         * modules/getcwd (Depends-on): Likewise.
18726
18727 2010-09-13  Eric Blake  <eblake@redhat.com>
18728
18729         float: fix broken MirBSD header
18730         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18731         * doc/posix-headers/float.texi (float.h): Document it.
18732
18733 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18734
18735         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18736         * lib/fts.c (opendirat): New arg extra_flags.
18737         (__opendir2): Use it to avoid following symlinks when opening
18738         a directory, if symlinks are not supposed to be followed.  See
18739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18740
18741         fdopendir: preserve argument fd before returning
18742         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18743         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18744         (fdopendir): Use them, arranging for FD to be open to the same
18745         directory that it was when it started.  (It might be temporarily
18746         closed while fdopendir is running, so this not thread- or
18747         signal-safe.)  Be careful to do the right thing even when file
18748         descriptors are scarce and dup fails with errno == EMFILE.  See
18749         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18750
18751 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18752
18753         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18754         * NEWS: Document change.
18755         * m4/regex.m4: Disable test for regoff_t size.
18756
18757 2010-09-13  Jim Meyering  <meyering@redhat.com>
18758
18759         fts: don't operate on an invalid file descriptor after failed dup
18760         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18761         negative file descriptor.
18762
18763 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18764
18765         savedir: add streamsavedir, deprecate fdsavedir
18766         * NEWS: Mention deprecation of fdsavedir.
18767         * lib/savedir.c (streamsavedir): New extern function, whose name
18768         ends in "savedir" to be consistent with the others.  This differs
18769         from savedirstream in that it doesn't close its argument.  The
18770         next version of GNU tar will use this instead of fdsavedir, to
18771         avoid some race conditions and conserve file descriptors.
18772         (savedirstream): Reimplement as a wrapper around streamsavedir.
18773         (fdsavedir): Add a comment deprecating this function.  As far as
18774         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18775         * lib/savedir.h (streamsavedir): New decl.
18776         (fdsavedir): Add a comment deprecating this.
18777
18778 2010-09-10  Bruno Haible  <bruno@clisp.org>
18779
18780         langinfo: Fix last commit.
18781         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18782         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18784
18785 2010-09-10  Bruno Haible  <bruno@clisp.org>
18786
18787         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18788         * lib/progreloc.c (O_EXEC): Define fallback.
18789
18790 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18791
18792         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18793         * NEWS: Document recent changes to fcntl-h.
18794         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18795         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18796         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18797         Similarly for O_SEARCH; this last was already true, but not documented.
18798         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18799         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18800         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18801         Likewise.
18802         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18803         is zero, not whether it is defined.
18804         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18805         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18806         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18807
18808 2010-09-10  Bruno Haible  <bruno@clisp.org>
18809
18810         langinfo, nl_langinfo: Fix for IRIX 5.3.
18811         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18812         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18813         HAVE_LANGINFO_YESEXPR.
18814         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18815         HAVE_LANGINFO_YESEXPR.
18816         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18817         HAVE_LANGINFO_T_FMT_AMPM is 0.
18818         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18819         HAVE_LANGINFO_YESEXPR is 0.
18820         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18821         NOEXPR.
18822         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18823         * doc/posix-functions/nl_langinfo.texi: Likewise.
18824         Reported by Eric Blake.
18825
18826 2010-09-10  Bruno Haible  <bruno@clisp.org>
18827
18828         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18829         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18830         on FreeBSD 8.0 and OpenBSD 4.6.
18831         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18832         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18833         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18834         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18835         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18836         ac_includes_default.
18837         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18838
18839 2010-09-09  Eric Blake  <eblake@redhat.com>
18840
18841         strsignal: work around NetBSD bug
18842         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18843         * lib/string.in.h (includes): Likewise.
18844         * doc/posix-functions/strsignal.texi (strsignal): Document the
18845         bug.
18846         Reported by Nelson H. F. Beebe.
18847
18848         gnulib-tool: work with NetBSD /bin/sh
18849         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18850         (func_get_description, func_get_comment, func_get_status)
18851         (func_get_notice, func_get_applicability, func_get_filelist)
18852         (func_get_dependencies, func_get_autoconf_early_snippet)
18853         (func_get_autoconf_snippet, func_get_automake_snippet)
18854         (func_get_include_directive, func_get_link_directive)
18855         (func_get_license, func_get_maintainer, func_import): Avoid
18856         shell syntax errors from parsing syntax extensions.
18857
18858 2010-09-09  Bruno Haible  <bruno@clisp.org>
18859
18860         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18861         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18862         a reliable way to determine whether the 'alias' command works.
18863
18864 2010-09-08  Jim Meyering  <meyering@redhat.com>
18865
18866         init.sh: penalize a set-x-impaired shell; don't disqualify it
18867         * tests/init.sh: Too many shells corrupt application stderr when
18868         you set -x, so we can't afford to disqualify them, since at least
18869         on Irix-6.5, that would disqualify all bourne shells.
18870         Instead, use a two-pass approach.
18871         On the first pass, try to find a shell that meets the stricter
18872         condition that set -x does not corrupt stderr.
18873         If no shell meets the stricter condition, retest each candidate
18874         shell, but without that extra condition.  Finally, when
18875         VERBOSE=yes is requested and set -x might cause trouble, simply
18876         issue a warning and refrain from enabling debug output.
18877
18878 2010-09-08  Eric Blake  <eblake@redhat.com>
18879
18880         unsetenv: fix OpenBSD bug
18881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
18882         * doc/posix-functions/unsetenv.texi (unsetenv): Update
18883         documentation.
18884         Reported by Jim Meyering.
18885
18886         strtod: work around IRIX 6.5 bug
18887         * lib/strtod.c (strtod): Reparse number on shorter string if
18888         exponent parse was invalid.
18889         * tests/test-strtod.c (main): Add check for "0x1p 2".
18890         Reported by Tom G. Christensen.
18891
18892         getopt: optimize previous patch
18893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
18894         empty variable.  Speed up awk script.
18895         Reported by Paolo Bonzini.
18896
18897 2010-09-08  Jim Meyering  <meyering@redhat.com>
18898
18899         test.sh: disqualify shells for which set -x corrupts stderr
18900         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
18901         and OpenBSD 4.7.  They make it so with "set -x", environment settings
18902         appear in stderr output.  For example, this command:
18903             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
18904         prints "P=1" on those two systems:
18905
18906 2010-09-08  Bruno Haible  <bruno@clisp.org>
18907
18908         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18909         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
18910         commands, because some shells ignore redirections when there is an
18911         error in the command lookup.
18912         Reported by Eric Blake.
18913
18914 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18915
18916         * lib/regex.h: Fix a mention of `regex_compile' (should be
18917         `re_compile_pattern').
18918         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18919         (re_set_registers): Correct name of parameter in comment.
18920
18921         * doc/regex.texi: Add documentation for missing syntax flags.
18922         Remove commented-out documentation of defunct syntax option
18923         RE_NO_EMPTY_ALTS.
18924         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18925         Add documentation of re_set_registers.
18926         Document trick to re-use a pattern buffer by setting fastmap manually.
18927         Update documentation of struct re_pattern_buffer per public members.
18928         Uncomment documentation of equivalence class operators and
18929         collating symbol operators, since they are now implemented,
18930         Explain leftmost-longest matching in relation to alternatives.
18931         Tidy documentation of substring matching.
18932         Remove POSIX documentation, which is done better in
18933         glibc, and refer the reader there. Keep BSD API documentation, as
18934         that is not readily available elsewhere.
18935
18936 2010-09-07  Eric Blake  <eblake@redhat.com>
18937
18938         getopt: handle POSIXLY_CORRECT set but not exported
18939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18940         export state of POSIXLY_CORRECT, due to bash set -o posix.
18941         Reported by Dustin J. Mitchell.
18942
18943 2010-09-05  Bruno Haible  <bruno@clisp.org>
18944
18945         gnulib-tool: Highlight the changed options.
18946         * gnulib-tool (func_usage): Display the --import, --add-import,
18947         --remove-import explanations in bold font.
18948
18949 2010-09-06  Karl Berry  <karl@gnu.org>
18950
18951         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18952
18953 2010-09-05  Bruno Haible  <bruno@clisp.org>
18954
18955         uniwidth/width: Update comment.
18956         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18957         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18958
18959 2010-09-05  Bruno Haible  <bruno@clisp.org>
18960
18961         isinf, isnan: Relax license.
18962         * modules/isinf (License): Change from GPL to LGPL, with consent from
18963         Ben Pfaff.
18964         * modules/isnan (License): Likewise.
18965         Requested by Ludovic Courtès.
18966
18967 2010-09-04  Bruno Haible  <bruno@clisp.org>
18968
18969         gnulib-tool: Help migration from --import to --add-import or --update.
18970         * gnulib-tool: Emit a verbose error message when --import is used
18971         without any module name.
18972
18973 2010-09-04  Bruno Haible  <bruno@clisp.org>
18974
18975         Update doc about gnulib-tool.
18976         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18977         'gnulib-tool --update' in more detail.
18978         Reported by Eric Blake.
18979
18980 2010-09-04  Bruno Haible  <bruno@clisp.org>
18981
18982         gnulib-tool: Change --import. New options --add/remove-import.
18983         * gnulib-tool: New options --add-import, --remove-import.
18984         (func_usage): Document them.
18985         (have_associative): Define always.
18986         (func_import): In import mode, don't merge the specified settings with
18987         the cached settings. Implement remove-import mode.
18988         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18989         Explain when to use them versus --import.
18990         (Simple update): Use --add-import instead of --import.
18991         * NEWS: Mention the change.
18992
18993 2010-09-04  Bruno Haible  <bruno@clisp.org>
18994
18995         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18996         separate gnulib.mk.
18997
18998 2010-09-04  Bruno Haible  <bruno@clisp.org>
18999
19000         gnulib-tool: Don't talk about CVS any more.
19001         * gnulib-tool (func_usage, func_import): Write "version control"
19002         instead of CVS.
19003
19004 2010-09-04  Jim Meyering  <meyering@redhat.com>
19005
19006         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19007         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19008         false positives (whose names may be ill-chosen) when searching
19009         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19010         would cause a false-positive.
19011
19012         avoid coreutils "make distcheck" failure
19013         Coreutils tests with an absolute build directory name that contains
19014         a space.  Not quoting this directory name caused a failure.
19015         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19016         * tests/test-vc-list-files-cvs.sh: Likewise.
19017
19018 2010-09-04  Bruno Haible  <bruno@clisp.org>
19019
19020         gnulib-tool: Avoid error when run in a package without Makefile.am.
19021         * gnulib-tool: When collecting the m4dirs in a package that does not
19022         have a Makefile.am, eliminate those directories that contain no
19023         gnulib-cache.m4. Fix expression that counts these directories.
19024
19025 2010-09-04  Bruno Haible  <bruno@clisp.org>
19026
19027         update-copyright test: Improve output when perl is missing or too old.
19028         * tests/test-update-copyright.sh: Move test of Perl version down after
19029         the test whether Perl exists. Provide an explanation relating Perl's
19030         error message to Automake's SKIP: message.
19031
19032 2010-09-04  Bruno Haible  <bruno@clisp.org>
19033
19034         Don't augment PATH in TESTS_ENVIRONMENT.
19035         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19036         set abs_aux_dir instead of augmenting PATH.
19037         * modules/vc-list-files-tests (Makefile.am): Likewise.
19038         * tests/test-update-copyright.sh: Augment PATH here.
19039         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19040         path_prepend_.
19041         * tests/test-vc-list-files-git.sh: Likewise.
19042
19043 2010-09-04  Jim Meyering  <meyering@redhat.com>
19044
19045         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19046         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19047
19048 2010-09-04  Bruno Haible  <bruno@clisp.org>
19049
19050         strdup: Fix compilation error in C++ mode.
19051         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19052         the macro.
19053
19054 2010-09-04  Bruno Haible  <bruno@clisp.org>
19055
19056         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19057         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19058         macro into a function.
19059         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19060
19061 2010-09-04  Bruno Haible  <bruno@clisp.org>
19062
19063         Set PATH_SEPARATOR the same way autoconf does.
19064         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19065         the value of PATH_SEPARATOR the same way autoconf-generated configure
19066         scripts do.
19067         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19068         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19069
19070 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19071
19072         Set PATH_SEPARATOR the same way autoconf does.
19073         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19074         the same way autoconf-generated configure scripts do.
19075         * posix-modules: Likewise.
19076
19077 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19078
19079         hash: fix safe_hasher const typo
19080         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19081         const; otherwise, there is a type error later.
19082
19083 2010-09-02  Jim Meyering  <meyering@redhat.com>
19084
19085         test-update-copyright.sh: require perl 5.8.0
19086         * tests/test-update-copyright.sh: Require 5.8.0,
19087         which Tom G. Christensen has confirmed is adequate,
19088         while 5.6.1 is not.
19089
19090 2010-09-02  Eric Blake  <eblake@redhat.com>
19091
19092         tests: init.sh improvements for re-exec'ing with zsh
19093         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19094         -vx through shell re-exec.
19095         Reported by Tom G. Christensen.
19096
19097         wctype: fix typo in previous commit
19098         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19099         Reported by Ludovic Courtès.
19100
19101 2010-09-02  Jim Meyering  <meyering@redhat.com>
19102
19103         test-update-copyright.sh: skip test if Perl is too old
19104         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19105         Reported by Tom G. Christensen.
19106
19107 2010-09-02  Bruno Haible  <bruno@clisp.org>
19108
19109         wctype: Avoid compilation error on IRIX 6.5.30.
19110         * lib/wctype.in.h (iswblank): Declare with a replacement if
19111         REPLACE_ISWBLANK is set.
19112         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19113         declared. Set REPLACE_ISWBLANK.
19114         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19115         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19116         * doc/posix-headers/wctype.texi: Likewise.
19117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19118
19119 2010-09-01  Bruno Haible  <bruno@clisp.org>
19120
19121         New module 'socketlib'.
19122         * modules/socketlib: New file.
19123         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19124         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19125         * modules/sockets (Depends-on): Add socketlib.
19126         Suggested by Sam Steingold <sds@gnu.org>.
19127
19128 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19129
19130         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19131
19132         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19133         when one needs search access to a directory but not read access.
19134         On systems where it is available, it works in some cases where
19135         O_RDONLY does not, namely on directories that are searchable but
19136         not readable, and which need only to be searchable.  If O_SEARCH
19137         is not available, fall back to the traditional method of using
19138         O_RDONLY.
19139
19140         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19141         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19142         when opening a directory that needs only to be searchable.
19143         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19144         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19145         * lib/openat-proc.c (openat_proc_name): Likewise.
19146         * lib/openat.c (openat_needs_fchdir): Likewise.
19147         * lib/save-cwd.c (save_cwd): Likewise.
19148         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19149
19150 2010-08-28  Bruno Haible  <bruno@clisp.org>
19151
19152         New module 'host-cpu-c-abi'.
19153         * modules/host-cpu-c-abi: New file.
19154         * m4/host-cpu-c-abi.m4: New file, based on part of
19155         clisp/src/m4/general.m4.
19156         Requested by Sam Steingold <sds@gnu.org>.
19157
19158 2010-08-31  Eric Blake  <eblake@redhat.com>
19159         and Jim Meyering  <meyering@redhat.com>
19160
19161         hash: factor, and guard against misbehaving hasher function
19162         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19163         of table->hasher's return value.  Also protect against a hash value
19164         so large that adding it to table->bucket results in a NULL pointer.
19165         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19166         Use it in place of open-coded check-and-abort.
19167
19168 2010-08-30  Bruno Haible  <bruno@clisp.org>
19169
19170         hash: silence spurious clang warning
19171         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19172         Reported by Eric Blake.
19173
19174 2010-08-30  Eric Blake  <eblake@redhat.com>
19175
19176         strstr, memmem, strcasestr: avoid leaked shell message
19177         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19178         FreeBSD.
19179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19180         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19181
19182         tests: silence clang warning
19183         * tests/test-malloca.c (do_allocation): Avoid dead store.
19184
19185 2010-08-29  Bruno Haible  <bruno@clisp.org>
19186
19187         gettext: Fix recent mistake.
19188         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19189
19190 2010-08-29  Bruno Haible  <bruno@clisp.org>
19191
19192         selinux-h: Offer a --without-selinux option.
19193         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19194         --without-selinux was specified, skip all tests and define
19195         HAVE_SELINUX_SELINUX_H to 0.
19196         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19197         set LIB_SELINUX to empty.
19198         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19199         gl_LIBSELINUX. If --without-selinux was specified, replace
19200         selinux/context.h.
19201         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19202
19203 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19204             Bruno Haible  <bruno@clisp.org>
19205
19206         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19207         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19208         of HAVE_REALLOC.
19209         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19210         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19211         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19212         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19213
19214 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19215             Bruno Haible  <bruno@clisp.org>
19216
19217         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19218         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19219         HAVE_CALLOC.
19220         * lib/xmalloc.c: Update accordingly.
19221         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19222         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19223         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19224
19225 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19226             Bruno Haible  <bruno@clisp.org>
19227
19228         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19229         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19230         HAVE_MALLOC.
19231         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19232         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19233         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19234
19235 2010-08-29  Bruno Haible  <bruno@clisp.org>
19236
19237         Update modules list.
19238         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19239         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19240         (String handling <string.h>): Add astrxfrm.
19241         (File system functions): Add readlinkat.
19242
19243 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19244
19245         Tests for module 'realloc-gnu'.
19246         * modules/realloc-gnu-tests: New file.
19247         * tests/test-realloc-gnu.c: New file.
19248
19249         Tests for module 'calloc-gnu'.
19250         * modules/calloc-gnu-tests: New file.
19251         * tests/test-calloc-gnu.c: New file.
19252
19253         Tests for module 'malloc-gnu'.
19254         * modules/malloc-gnu-tests: New file.
19255         * tests/test-malloc-gnu.c: New file.
19256
19257 2010-08-28  Bruno Haible  <bruno@clisp.org>
19258
19259         Rename module 'realloc' -> 'realloc-gnu'.
19260         * modules/realloc-gnu: New file, copied from modules/realloc.
19261         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19262         obsolete.
19263         * modules/mgetgroups (Depends-on): Update.
19264         * doc/posix-functions/realloc.texi: Update.
19265         * NEWS: Mention the change.
19266
19267         Rename module 'calloc' -> 'calloc-gnu'.
19268         * modules/calloc-gnu: New file, copied from modules/calloc.
19269         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19270         obsolete.
19271         * doc/posix-functions/calloc.texi: Update.
19272         * NEWS: Mention the change.
19273
19274         Rename module 'malloc' -> 'malloc-gnu'.
19275         * modules/malloc-gnu: New file, copied from modules/malloc.
19276         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19277         obsolete.
19278         * modules/argp (Depends-on): Update.
19279         * modules/regex (Depends-on): Update.
19280         * doc/posix-functions/malloc.texi: Update.
19281         * NEWS: Mention the change.
19282
19283 2010-08-28  Eric Blake  <eblake@redhat.com>
19284
19285         pread, pwrite: add missing dependency
19286         * modules/pread (Depends-on): Add extensions.
19287         * modules/pwrite (Depends-on): Likewise.
19288
19289 2010-08-28  Bruno Haible  <bruno@clisp.org>
19290
19291         unistr/u*-strchr: Fix tests dependencies.
19292         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19293         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19294         Reported by Ian Beckwith <ianb@erislabs.net>.
19295
19296 2010-08-28  Bruno Haible  <bruno@clisp.org>
19297
19298         read-file: Don't occupy too much unused memory.
19299         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19300
19301 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19302             Eric Blake  <eblake@redhat.com>
19303             Bruno Haible  <bruno@clisp.org>
19304
19305         read-file: Avoid memory reallocations with regular files.
19306         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19307         (fread_file): With regular files, use the remaining length as the
19308         initial buffer size.  Check against overflow.
19309         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19310         sys_stat.
19311
19312 2010-08-28  Bruno Haible  <bruno@clisp.org>
19313
19314         ftello: Relax license.
19315         * modules/ftello (License): Relax to LGPLv2+.
19316         Reported by Eric Blake.
19317
19318 2010-08-28  Bruno Haible  <bruno@clisp.org>
19319
19320         Avoid relocwrapper link errors due to gnulib replacement functions.
19321         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19322         function.
19323         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19324
19325 2010-08-28  Bruno Haible  <bruno@clisp.org>
19326
19327         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19328         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19329         defined.
19330         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19331         Suggested by Eric Blake.
19332
19333 2010-08-28  Bruno Haible  <bruno@clisp.org>
19334
19335         sys_socket, netdb: Ensure socklen_t gets defined.
19336         * modules/sys_socket (Depends-on): Add socklen.
19337         * modules/netdb (Depends-on): Likewise.
19338         * modules/getaddrinfo (Depends-on): Remove socklen.
19339         * modules/getsockopt (Depends-on): Likewise.
19340         * modules/setsockopt (Depends-on): Likewise.
19341         * tests/test-sys_socket.c: Check that socklen_t is defined.
19342         * tests/test-netdb.c: Likewise.
19343         * m4/socklen.m4: Update comments.
19344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19345
19346 2010-08-27  Eric Blake  <eblake@redhat.com>
19347
19348         login_tty: add missing dependency
19349         * modules/login_tty (Depends-on): Add pty.
19350
19351 2010-08-26  Eric Blake  <eblake@redhat.com>
19352
19353         lib-symbol-versions: fix m4 quoting
19354         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19355         format for AC_LINK_IFELSE.
19356
19357         glob: fix compile test
19358         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19359
19360         btowc: fix missing file
19361         * modules/btowc (Files): Also ship locale-fr.m4.
19362
19363         lseek: fix link test
19364         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19365         AC_LINK_IFELSE.
19366
19367         include_next: silence autoconf 2.68 warning
19368         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19369         AC_COMPILE_IFELSE as special.
19370         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19371         autoconf < 2.68.
19372
19373         acl: fix compilation test
19374         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19375         AC_COMPILE_IFELSE.
19376
19377 2010-08-26  Bruno Haible  <bruno@clisp.org>
19378
19379         Modernize AC_TRY_RUN invocations.
19380         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19381         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19382         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19383         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19384         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19385         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19386         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19387         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19388         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19389         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19390         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19391         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19392         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19393         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19394         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19395         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19396         gl_MBRLEN_NUL_RETVAL): Likewise.
19397         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19398         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19399         Likewise.
19400         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19401         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19402         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19403         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19404         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19405         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19406         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19407         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19408         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19409         Likewise.
19410         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19411         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19412         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19413         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19414         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19415         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19416         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19417         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19418         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19420
19421 2010-08-26  Bruno Haible  <bruno@clisp.org>
19422
19423         Modernize AC_TRY_LINK invocations.
19424         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19425         AC_TRY_LINK.
19426         * m4/argp.m4 (gl_ARGP): Likewise.
19427         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19428         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19429         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19430         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19431         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19432         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19433         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19434         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19435         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19436         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19437         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19438         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19439         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19440         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19441         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19442         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19443         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19444         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19445         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19446         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19447         Likewise.
19448         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19449         Likewise.
19450         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19451         Likewise.
19452         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19453         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19454         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19455         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19456         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19457         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19458         * m4/servent.m4 (gl_SERVENT): Likewise.
19459         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19460         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19461         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19462         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19463         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19464         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19465         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19466         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19467         * modules/tsearch-tests (configure.ac): Likewise.
19468
19469 2010-08-26  Bruno Haible  <bruno@clisp.org>
19470
19471         Modernize AC_TRY_COMPILE invocations.
19472         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19473         AC_TRY_COMPILE.
19474         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19475         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19476         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19477         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19478         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19479         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19480         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19481         * m4/lock.m4 (gl_LOCK): Likewise.
19482         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19483         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19484         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19485         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19486         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19487         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19488         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19489         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19490         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19491         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19492         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19493         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19494         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19495         extraneous semicolon.
19496
19497 2010-08-26  Jim Meyering  <meyering@redhat.com>
19498
19499         stat-time: relax license LGPL
19500         * modules/stat-time (License): Change from GPL to LGPL,
19501         with consent from all contributors, for use in libguile.
19502         Requested by Ludovic Courtès.
19503
19504 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19505
19506         poll: return immediately on POLLHUP.
19507         * lib/poll.c (poll): Always set timeout before wait_timeout is
19508         computed.
19509
19510 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19511
19512         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19513         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19514         rmdir ("dir/.//"), unlinkat.
19515
19516 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19517
19518         stdbool: avoid spurious failure with modern xlc
19519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19520
19521 2010-08-24  Bruno Haible  <bruno@clisp.org>
19522
19523         getloadavg: simplify code
19524         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19525         gl_have_func. Update comments.
19526
19527 2010-08-24  Eric Blake  <eblake@redhat.com>
19528
19529         getloadavg: don't define SVR4 on cygwin
19530         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19531         only define SVR4 when -lkvm is required.
19532         Reported by Yaakov Selkowitz.
19533
19534 2010-08-24  Bruno Haible  <bruno@clisp.org>
19535
19536         priv-set: fix comment
19537         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19538
19539 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19540
19541         priv-set: fix comments
19542         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19543         to match code, as suggested by David Bartley in:
19544         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19545
19546 2010-08-23  Eric Blake  <eblake@redhat.com>
19547
19548         stdbool: avoid rejecting clang
19549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19550         * tests/test-stdbool.c: Enable more tests if using the system
19551         <stdbool.h> instead of the gnulib replacement.
19552         (main): Move xlc bug test to a runtime test for all compilers.
19553         Reported by Anders Kaseorg.
19554
19555         argz: fix shell quoting issue
19556         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19557         Reported by Charles Wilson.
19558
19559 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19560             Erik Faye-Lund <kusmabite@gmail.com>
19561
19562         poll, select: handle ERROR_BROKEN_PIPE.
19563         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19564         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19565         * lib/select.c (win32_compute_revents): Do not mark a pipe
19566         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19567
19568 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19569
19570         fts: allow compilation with C++
19571         * lib/fts_.h: Specify extern "C" linkage with C++.
19572
19573 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19574
19575         Fix gnulib-tool sed script de-commentation for AIX sed.
19576         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19577         sed.
19578
19579 2010-08-17  Eric Blake  <eblake@redhat.com>
19580
19581         test-stddef: test for (some) offsetof bugs
19582         * tests/test-stddef.c: Enhance test to ensure correct type of
19583         offsetof.
19584         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19585         that we are not fixing at this time.
19586
19587 2010-08-15  Bruno Haible  <bruno@clisp.org>
19588
19589         stpncpy: Allow stpncpy to be defined as a macro.
19590         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19591         if it's already correctly declared.
19592         * lib/string.in.h (stpncpy): Undefine before redefining.
19593         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19594
19595 2010-08-14  Bruno Haible  <bruno@clisp.org>
19596
19597         Rename module 'memxfrm' to 'amemxfrm'.
19598         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19599         (amemxfrm): Renamed from memxfrm.
19600         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19601         (amemxfrm): Renamed from memxfrm.
19602         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19603         * NEWS: Mention the change.
19604         * MODULES.html.sh (String handling <string.h>): Update.
19605         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19606         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19607         * lib/unicase/u16-casexfrm.c: Likewise.
19608         * lib/unicase/u32-casexfrm.c: Likewise.
19609         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19610         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19611         * lib/uninorm/u16-normxfrm.c: Likewise.
19612         * lib/uninorm/u32-normxfrm.c: Likewise.
19613         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19614         memxfrm.
19615         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19616         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19617         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19618         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19619         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19620         Suggested by Paul Eggert.
19621
19622 2010-08-14  Bruno Haible  <bruno@clisp.org>
19623
19624         Tests for module 'astrxfrm'.
19625         * modules/astrxfrm-tests: New file.
19626         * tests/test-astrxfrm.c: New file.
19627
19628         New module 'astrxfrm'.
19629         * lib/astrxfrm.h: New file.
19630         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19631         * modules/astrxfrm: New file.
19632
19633 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19634
19635         regex: Tweak doc.
19636         * doc/regex.texi (Overview): Don't mention regex.c.
19637         (GNU Regular Expression Compiling): Likewise.
19638         (Match-end-of-line Operator): Mention 'not_eol'.
19639
19640 2010-08-14  Brian Gough  <bjg@gnu.org>
19641             Bruno Haible  <bruno@clisp.org>
19642
19643         git-merge-changelog: add doc relating to use with bzr and hg.
19644         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19645
19646 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19647
19648         pthread: fix pthread.h creation for srcdir != builddir
19649         * modules/pthread (Makefile.am): Fix the rule to work also in a
19650         non-srcdir build.
19651
19652 2010-08-13  Karl Berry  <karl@gnu.org>
19653
19654         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19655         * doc/posix-*/*: force line break before @url of POSIX
19656         specifications.
19657         Suggested by Werner Lemberg.
19658
19659 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19660
19661         strtod: fix const diagnostic
19662         * lib/strtod.c (strtod): Don't assign const char * to char *,
19663         as this elicits a warning from GCC when warnings are enabled.
19664
19665 2010-08-10  Pádraig Brady <P@draigbrady.com>
19666         and Eric Blake  <eblake@redhat.com>
19667
19668         copy-acl: ignore ENOTSUP on HP-UX
19669         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19670         so that it is available for HP-UX.
19671         * lib/copy-acl.c (qcopy_acl): Use it.
19672         Reported by Patrick M. Callahan.
19673
19674 2010-08-10  Eric Blake  <eblake@redhat.com>
19675
19676         open, chown: relax license
19677         * modules/open (License): Change to LGPLv2+, with consent by all
19678         authors, for use in augeas.
19679         * modules/chown (License): Likewise.
19680         * modules/lchown (Likewise): Likewise.
19681         Requested by Adam Stokes.
19682
19683 2010-08-09  Karl Berry  <karl@gnu.org>
19684
19685         * build-aux/ar-lib: new file, import from Automake.
19686         * config/srclist.txt: autocheck for updates.
19687
19688 2010-08-09  Eric Blake  <eblake@redhat.com>
19689
19690         readlinkat: adjust client modules
19691         * modules/areadlinkat (Depends-on): Use readlinkat, not
19692         symlinkat.
19693         * modules/areadlinkat-with-size (Depends-on): Likewise.
19694
19695         mknod: be more vocal about danger of running tests as root
19696         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19697         root, since that is just asking for problems.
19698         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19699
19700         readlinkat: split into its own module
19701         * modules/symlinkat: Split readlinkat...
19702         * modules/readlinkat: ...into separate module.
19703         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19704         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19705         * lib/symlinkat.c (readlinkat): Move...
19706         * lib/readlinkat.c: ...into new file.
19707         * modules/symlinkat-tests: Split readlinkat test...
19708         * modules/readlinkat-tests: ...into separate module.
19709         * tests/test-symlinkat.c: Split...
19710         * tests/test-readlinkat.c: ...into new file.
19711         * NEWS: Document the split.
19712         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19713         * lib/unistd.in.h (readlinkat): Likewise.
19714         Suggested by Bruno Haible.
19715
19716 2010-08-08  Bruno Haible  <bruno@clisp.org>
19717
19718         memxfrm: Speed up.
19719         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19720         that usually only one call to strxfrm is necessary for each string
19721         part.
19722         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19723
19724 2010-08-07  Karl Berry  <karl@gnu.org>
19725
19726         * doc/posix-headers/limits.texi,
19727         * doc/posix-functions/malloc.texi,
19728         * doc/posix-functions/strsignal.texi: missing @item.
19729         * doc/ld-version-script.texi: spurious leading i.
19730         * doc/regex.texi (Interval Operators): no commas inside @var.
19731
19732 2010-08-01  Bruno Haible  <bruno@clisp.org>
19733
19734         Integrate the regex documentation.
19735         * doc/gnulib.texi: Define 'cn' index.
19736         (Regular expressions): New a chapter that includes regex.texi and
19737         regexprops-generic.texi.
19738         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19739         syntax.
19740
19741         Whitespace cleanup.
19742         * doc/regex.texi: Remove trailing spaces.
19743
19744         Add regex documentation.
19745         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19746         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19747         Written by Kathy A. Hargreaves and Karl Berry.
19748
19749 2010-08-01  Bruno Haible  <bruno@clisp.org>
19750
19751         link: Update documentation.
19752         * doc/posix-functions/link.texi: Update regarding Solaris.
19753
19754 2010-07-31  Bruno Haible  <bruno@clisp.org>
19755
19756         Update modules list.
19757         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19758         (String handling <string.h>): Add memcmp2, memxfrm.
19759         (Container data structures): Add xlist, xsublist, xoset.
19760         (Core language properties): Add alignof, unused-parameter.
19761         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19762         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19763         (Unibyte characters <ctype.h>): New section.
19764         (String handling <string.h>): New section.
19765         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19766         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19767         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19768         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19769         tan, tanh, tanl, y0, y1, yn.
19770         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19771         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19772         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19773         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19774         unlockpt, vdprintf, vdprintf-posix.
19775         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19776         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19777         xconcat-filename.
19778         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19779         getdtablesize, pipe2, pipe2-safer.
19780         (Security): New section.
19781         (Networking functions): Add accept4.
19782         (Signal handling): Add sigpipe.
19783         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19784         mbmemcasecoll.
19785         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19786         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19787         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19788         pipe-filter-ii.
19789         (Misc): Add argp-version-etc, login_tty, parse-duration.
19790
19791 2010-07-31  Bruno Haible  <bruno@clisp.org>
19792
19793         Improve doc in MODULES.html.
19794         * modules/linkat (Description): Add the word "function".
19795         * modules/mkfifo (Description): Likewise.
19796         * modules/mknod (Description): Likewise.
19797         * modules/remove (Description): Likewise.
19798         * modules/renameat (Description): Likewise.
19799         * modules/stat (Description): Likewise.
19800         * modules/symlink (Description): Likewise.
19801         * modules/unlink (Description): Likewise.
19802
19803 2010-07-31  Bruno Haible  <bruno@clisp.org>
19804
19805         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19806         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19807         option --enable/disable-c++ instead of --enable/disable-cxx.
19808         * NEWS: Mention the change.
19809
19810 2010-07-31  Bruno Haible  <bruno@clisp.org>
19811
19812         readlink, areadlink: Relax test a bit.
19813         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19814         alternative to ENOTDIR.
19815         * tests/test-areadlink.h (test_areadlink): Likewise.
19816         Reported by Rainer Tammer.
19817
19818 2010-07-31  Bruno Haible  <bruno@clisp.org>
19819
19820         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19821         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19822         character, perform the search using U_STRCHR.
19823         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19824         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19825         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19826         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19827         Suggested by Paolo Bonzini.
19828
19829 2010-07-31  Bruno Haible  <bruno@clisp.org>
19830
19831         unistr/u*-strstr: Fix dependencies.
19832         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19833         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19834         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19835
19836 2010-07-31  Bruno Haible  <bruno@clisp.org>
19837
19838         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19839         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19840         the beginning of the loop.
19841         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19842         cases in 'switch' statement.
19843
19844         unistr/u8-strchr: Fix several bugs.
19845         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19846         the string. When not found, return NULL, not a pointer near the end.
19847
19848         More tests for unistr/u8-strchr.
19849         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19850         that the function does not read past the first occurrence of the byte
19851         being searched.
19852         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19853         * tests/unistr/test-u16-strchr.c (main): New function.
19854         * tests/unistr/test-u32-strchr.c (main): New function.
19855
19856 2010-07-31  Bruno Haible  <bruno@clisp.org>
19857
19858         posix-modules: Ignore backup files of documentation files.
19859         * posix-modules: grep only through files named *.texi.
19860
19861 2010-07-31  Bruno Haible  <bruno@clisp.org>
19862
19863         symlinkat: Fix documentation.
19864         * doc/posix-functions/readlinkat.texi: Fix module name.
19865
19866 2010-07-31  Bruno Haible  <bruno@clisp.org>
19867
19868         fchownat: Replace also when chown has the trailing slash bug.
19869         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19870         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19871         introduced on 2010-04-10.
19872         Reported by Rainer Tammer.
19873
19874 2010-07-31  Bruno Haible  <bruno@clisp.org>
19875
19876         linkat: Work around AIX 7.1 bug.
19877         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
19878         whether linkat handles trailing slash correctly. If not, replace linkat
19879         and define LINKAT_TRAILING_SLASH_BUG.
19880         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
19881         check whether (fd1,file1) points to a directory if file1 or file2 ends
19882         in a slash. Code taken from lib/link.c.
19883         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
19884         Reported by Rainer Tammer.
19885
19886 2010-07-31  Bruno Haible  <bruno@clisp.org>
19887
19888         Correctly determine whether pow is available in libc on AIX 7 with xlc.
19889         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
19890         This disables an xlc optimization that was causing wrong test results.
19891         Reported by Rainer Tammer.
19892
19893 2010-07-31  Bruno Haible  <bruno@clisp.org>
19894
19895         iconv: Work around AIX 6.1..7.1 bug.
19896         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
19897         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
19898         cross-compiling, guess no on all versions of AIX.
19899         Reported by Rainer Tammer.
19900
19901 2010-07-31  Bruno Haible  <bruno@clisp.org>
19902
19903         readlink: Relax test a bit.
19904         * tests/test-readlink.h (test_readlink): Allow different errno value
19905         when readlink is called with a file name that ends in / and refers to
19906         a file.
19907         Suggested by Eric Blake.
19908         Reported by Rainer Tammer.
19909
19910 2010-07-31  Bruno Haible  <bruno@clisp.org>
19911
19912         copysign: Does not require -lm on glibc systems.
19913         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19914         gl_COMMON_DOUBLE_MATHFUNC.
19915         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19916
19917 2010-07-31  Bruno Haible  <bruno@clisp.org>
19918
19919         duplocale: Work around AIX 7.1 bug.
19920         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19921         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19922         * lib/duplocale.c (rpl_duplocale): Update comment.
19923         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19924         Reported by Rainer Tammer.
19925
19926 2010-07-30  Bruno Haible  <bruno@clisp.org>
19927
19928         dirfd: Avoid link error on AIX 7.1.
19929         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19930         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19931         exist, set REPLACE_DIRFD.
19932         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19933         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19934         * doc/posix-functions/dirfd.texi: Update.
19935         Reported by Rainer Tammer.
19936
19937 2010-07-30  Eric Blake  <eblake@redhat.com>
19938
19939         strtod: next round of AIX fixes
19940         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19941         exponent.
19942         * tests/test-strtod.c (main): Enhance tests.
19943         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19944         Reported by Rainer Tammer.
19945
19946         futimens: fix configure check
19947         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19948         Reported by Bruno Haible.
19949
19950 2010-07-30  Bruno Haible  <bruno@clisp.org>
19951
19952         getline: Update regarding AIX.
19953         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19954         Reported by Rainer Tammer.
19955
19956 2010-07-30  Bruno Haible  <bruno@clisp.org>
19957
19958         wcwidth: Drop replacement on AIX 7.
19959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19960         AIX 7.
19961         Reported by Rainer Tammer.
19962
19963 2010-07-30  Bruno Haible  <bruno@clisp.org>
19964
19965         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19966         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19967         a 'char *'.
19968         Reported by Rainer Tammer.
19969
19970 2010-07-30  Bruno Haible  <bruno@clisp.org>
19971
19972         unlink: Update regarding AIX.
19973         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19974         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19975         Reported by Rainer Tammer.
19976
19977 2010-07-30  Bruno Haible  <bruno@clisp.org>
19978
19979         symlink: Update regarding AIX.
19980         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19981         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19982         Reported by Rainer Tammer.
19983
19984 2010-07-30  Bruno Haible  <bruno@clisp.org>
19985
19986         strndup: Update regarding AIX.
19987         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19988         AIX 7.
19989         Reported by Rainer Tammer.
19990
19991 2010-07-30  Bruno Haible  <bruno@clisp.org>
19992
19993         stat: Update regarding AIX.
19994         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19995         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19996         Reported by Rainer Tammer.
19997
19998 2010-07-30  Bruno Haible  <bruno@clisp.org>
19999
20000         truncl: Fix autoconf test.
20001         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20002         whether truncl works.
20003         Reported by Rainer Tammer.
20004
20005 2010-07-30  Bruno Haible  <bruno@clisp.org>
20006
20007         round: Update regarding AIX.
20008         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20009         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20010         Reported by Rainer Tammer.
20011
20012 2010-07-30  Bruno Haible  <bruno@clisp.org>
20013
20014         rename: Update regarding AIX.
20015         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20016         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20017         Reported by Rainer Tammer.
20018
20019 2010-07-30  Bruno Haible  <bruno@clisp.org>
20020
20021         printf.m4: Update regarding AIX.
20022         * m4/printf.m4: Update comments regarding AIX.
20023         Reported by Rainer Tammer.
20024
20025 2010-07-30  Bruno Haible  <bruno@clisp.org>
20026
20027         iconv: Update regarding AIX.
20028         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20029         AIX 7.
20030         Reported by Rainer Tammer.
20031
20032 2010-07-30  Bruno Haible  <bruno@clisp.org>
20033
20034         getopt: Update regarding AIX.
20035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20036         no on AIX.
20037         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20038         Reported by Rainer Tammer.
20039
20040 2010-07-30  Bruno Haible  <bruno@clisp.org>
20041
20042         ldexpl; Update regarding AIX.
20043         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20044         on AIX 7.
20045         Reported by Rainer Tammer.
20046
20047 2010-07-30  Bruno Haible  <bruno@clisp.org>
20048
20049         frexpl: Update regarding AIX.
20050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20051         on AIX 7.
20052         Reported by Rainer Tammer.
20053
20054 2010-07-30  Bruno Haible  <bruno@clisp.org>
20055
20056         open, fopen: Update regarding AIX.
20057         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20058         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20059         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20060         * doc/posix-functions/fopen.texi: Likewise.
20061         Reported by Rainer Tammer.
20062
20063 2010-07-30  Bruno Haible  <bruno@clisp.org>
20064
20065         chown: Update doc regarding AIX.
20066         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20067         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20068         Reported by Rainer Tammer.
20069
20070 2010-07-30  Eric Blake  <eblake@redhat.com>
20071
20072         strtod: fix bug in replacement function on AIX
20073         * lib/strtod.c (strtod): Special case broken "0x" parse in
20074         underlying strtod.
20075         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20076         * doc/posix-functions/strtod.texi (strtod): Likewise.
20077         Reported by Rainer Tammer.
20078
20079 2010-07-30  Bruno Haible  <bruno@clisp.org>
20080
20081         mbrlen: Fix cross-compilation guess for AIX.
20082         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20083         guess. Leftover from 2008-12-22.
20084
20085 2010-07-30  Bruno Haible  <bruno@clisp.org>
20086
20087         mbrtowc: Fix cross-compilation guess for AIX.
20088         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20089         guess. Leftover from 2008-12-21.
20090
20091 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20092
20093         init.sh: work around trap limitation of some shells
20094         * tests/init.sh (setup_): Move exit trap outside of shell function.
20095
20096 2010-07-29  Eric Blake  <eblake@redhat.com>
20097
20098         strtod: aid debugging
20099         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20100         understanding why strtod is rejected.
20101
20102 2010-07-28  Bruno Haible  <bruno@clisp.org>
20103
20104         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20105         * lib/unistr/u8-chr.c: Include <string.h>.
20106         * tests/unistr/test-u8-chr.c: Likewise.
20107         * tests/unistr/test-u16-chr.c: Likewise.
20108         * tests/unistr/test-u32-chr.c: Likewise.
20109         * tests/unistr/test-u8-strchr.c: Likewise.
20110         * tests/unistr/test-u16-strchr.c: Likewise.
20111         * tests/unistr/test-u32-strchr.c: Likewise.
20112         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20113         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20114         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20115         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20116
20117 2010-07-28  Bruno Haible  <bruno@clisp.org>
20118
20119         Use spaces for indentation, not tabs.
20120         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20121
20122 2010-07-27  Bruno Haible  <bruno@clisp.org>
20123
20124         mbspcasecmp: Fix function specification.
20125         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20126         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20127         Reported by Eric Blake <eblake@redhat.com>.
20128
20129 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20130
20131         timespec: use cast and not conditional, as truncation isn't possible
20132         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20133         instead of a conditional.  Comment about the situation in more detail.
20134         This undoes most of the 2009-10-29 patch.
20135
20136 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20137
20138         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20139         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20140         * lib/unistr/u8-strchr.c: Likewise.
20141         * modules/unistr/u8-chr: Depend on memchr.
20142
20143         unistr/u*-strchr: add tests
20144         * modules/unistr/u8-strchr-tests: New file.
20145         * modules/unistr/u16-strchr-tests: New file.
20146         * modules/unistr/u32-strchr-tests: New file.
20147         * tests/unistr/test-strchr.h: New file.
20148         * tests/unistr/test-u8-strchr.c: New file.
20149         * tests/unistr/test-u16-strchr.c: New file.
20150         * tests/unistr/test-u32-strchr.c: New file.
20151
20152         unistr/u*-chr: test multibyte sequences more
20153         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20154         test vector.
20155         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20156         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20157         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20158
20159         unistr/u*-chr: test multibyte sequences
20160         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20161
20162         unistr/u*-chr: prepare for multibyte tests
20163         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20164         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20165         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20166         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20167         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20168         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20169
20170 2010-07-18  Bruno Haible  <bruno@clisp.org>
20171
20172         unistr/u8-strchr: Optimize non-ASCII argument case.
20173         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20174         because the first byte often matches anyway.
20175         Reported by Pádraig Brady <P@draigbrady.com>.
20176
20177 2010-07-15  Karl Berry  <karl@gnu.org>
20178
20179         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20180
20181 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20182
20183         getcwd: on Solaris, work better if ancestors are inaccessible
20184         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20185         buffer and size, try again with a large buffer.  This works better
20186         on Solaris, since its getcwd succeeds even if the path to the root
20187         is inaccessible, and this is helpful in common cases such as .zfs
20188         hidden directories.  Problem reported by J Chapman Flack in
20189         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20190         Use system getcwd if it's declared, not merely if it's partly
20191         working; use the partly-working test only to avoid needless effort
20192         if the system getcwd fails.
20193         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20194         comment that was already obsolete and is now even more obsolete.
20195         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20196         now might call strdup.
20197
20198 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20199
20200         pthread: Add enough so that coreutils/src/sort.c compiles.
20201         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20202         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20203         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20204         Include <sys/types.h>, in case it defines pthread_t.
20205         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20206         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20207         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20208         (pthread_rwlockattr_t, pthread_spinlock_t):
20209         New typedefs, if HAVE_PTHREAD_T is not defined.
20210         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20211         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20212         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20213         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20214         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20215         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20216         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20217         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20218         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20219         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20220         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20221         New macros.
20222         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20223         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20224         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20225         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20226         (pthread_spin_unlock): New dummy functions.
20227         (pthread_create): Return EAGAIN; don't set errno.
20228         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20229         require AC_C_INLINE.
20230         * modules/pthread (Depends-on): Add sched, time.
20231         (pthread.h): Use AM_V_GEN.
20232
20233 2010-07-13  Bruno Haible  <bruno@clisp.org>
20234
20235         striconveh: Don't malloc memory if the result buffer is sufficient.
20236         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20237         buffer if its size is sufficient.
20238         Reported by Ludovic Courtès <ludo@gnu.org>.
20239
20240 2010-07-13  Bruno Haible  <bruno@clisp.org>
20241
20242         strtod: Add safety check.
20243         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20244
20245 2010-07-12  Bruno Haible  <bruno@clisp.org>
20246
20247         Unify tests that set gl_cv_func_ldexpl_no_libm.
20248         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20249         gl_FUNC_LDEXPL.
20250         (gl_FUNC_LDEXPL): Invoke it.
20251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20252
20253 2010-07-12  Bruno Haible  <bruno@clisp.org>
20254
20255         Unify tests that set gl_cv_func_ldexp_no_libm.
20256         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20257         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20258         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20259         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20260         * modules/strtod (Files): Add m4/ldexp.m4.
20261
20262 2010-07-12  Bruno Haible  <bruno@clisp.org>
20263
20264         Unify tests that set gl_cv_func_frexpl_no_libm.
20265         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20266         gl_FUNC_FREXPL_NO_LIBM.
20267         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20268         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20269
20270 2010-07-12  Bruno Haible  <bruno@clisp.org>
20271
20272         Unify tests that set gl_cv_func_frexp_no_libm.
20273         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20274         gl_FUNC_FREXP_NO_LIBM.
20275         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20276         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20277
20278 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20279
20280         memcoll: clarify sizes versus lengths, document better, and tweak perf
20281         * lib/memcoll.c (strcoll_loop, memcoll0):
20282         Improve quality of descriptive comments.  Name variables
20283         consistently as to whether they are lengths (which do not include
20284         terminating null) versus sizes (which do).
20285         * lib/xmemcoll.c (xmemcoll0): Likewise.
20286         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20287         returned when s1size == 0; this is easier to compile and saves
20288         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20289
20290 2010-07-12  Bruno Haible  <bruno@clisp.org>
20291
20292         Tests for module '_Exit'.
20293         * modules/_Exit-tests: New file.
20294         * tests/test-_Exit.sh: New file.
20295         * tests/test-_Exit.c: New file.
20296
20297         New module '_Exit'.
20298         * lib/stdlib.in.h (__attribute__): New macro.
20299         (_Exit): New declaration.
20300         * lib/_Exit.c: New file.
20301         * m4/_Exit.m4: New file.
20302         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20303         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20304         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20305         * modules/_Exit: New file.
20306         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20307         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20308
20309 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20310
20311         strtod: make it more-accurate typically, and don't require libm
20312         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20313         Include limits.h.  Don't include string.h.
20314         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20315         (locale_isspace): New function, so that no casts are needed to
20316         check whether *s is a space.
20317         (ldexp): Provide an unused dummy if not available.
20318         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20319         (strtod): Use them.  This implementation prefers to use the
20320         underlying strtod if available, falling back on our own code
20321         only to fix known bugs.  This is more likely to produce an
20322         accurate result.  Also, it avoids the use of libm functions.
20323         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20324         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20325         was absent, but it caused a test failure with coreutils.
20326         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20327         with libm.
20328         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20329         * modules/strtod-tests (Makefile.am): Likewise.
20330
20331 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20332             Bruno Haible  <bruno@clisp.org>
20333
20334         unistr/u8-strchr: Optimize ASCII argument case.
20335         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20336
20337 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20338
20339         (x)memcoll: minor tweaks
20340         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20341         is after the type that it qualifies.
20342         (memcoll0): Likewise.
20343         * lib/memcoll.h (memcoll0): Likewise.
20344         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20345         * lib/xmemcoll.h (xmemcoll0): Likewise.
20346         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20347         differs from memcoll in that the NUL byte is part of the argument.
20348         Omit the abort-checks, as performance is a real issue here.  Plus,
20349         the checks were wrong anyway (an off-by-one error).  Omit local
20350         variable 'diff', as it's a bit clearer that way.
20351         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20352         no longer needed.
20353
20354 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20355
20356         (x)memcoll: speedup when input is known to be NUL delimited
20357         * lib/memcoll.c: Include stdlib.
20358         (memcoll0): New function.
20359         (strcoll_loop): New function, refactored for use in both memcoll
20360         and memcoll0.
20361         * lib/memcoll.h (memcoll0): Add prototype.
20362         * lib/xmemcoll.c (xmemcoll0): New function.
20363         (collate_error): New function, refactored for use in both xmemcoll
20364         and xmemcoll0.
20365         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20366         * m4/memcoll.m4: add inline invocation.
20367
20368 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20369
20370         * build-aux/bootstrap: Remove any local translations
20371         from the translation project synchronization directory,
20372         so that local only translations are not distributed.
20373
20374 2010-07-04  Bruno Haible  <bruno@clisp.org>
20375
20376         fsusage: Clarify which code applies to which platforms.
20377         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20378         platform.
20379         * lib/fsusage.c (get_fs_usage): Likewise.
20380
20381 2010-07-04  Bruno Haible  <bruno@clisp.org>
20382
20383         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20384         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20385         Reported by Martin Lambers <marlam@marlam.de>.
20386
20387 2010-07-04  Jim Meyering  <meyering@redhat.com>
20388
20389         hash: once again explicitly disallow insertion of NULL
20390         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20391         inserting a NULL pointer cannot work with these functions.
20392         Add a comment with details.
20393         This reverts part of the 2010-07-01 commit, 5bef1a35
20394         "hash: extend module to deal with non-pointer keys".
20395
20396 2010-07-01  Bruno Haible  <bruno@clisp.org>
20397
20398         stdbool: Update doc.
20399         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20400         Info from Christian Weisgerber <naddy@mips.inka.de>.
20401
20402 2010-07-01  Jim Meyering  <meyering@redhat.com>
20403
20404         hash: extend module to deal with non-pointer keys
20405         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20406         but that allows insertion of non-pointer entries.
20407         Do not disallow an ENTRY value of NULL.
20408         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20409         * lib/hash.h (hash_insert0): Declare.
20410
20411 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20412
20413         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20414         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20415         not present (i.e. with autoconf 2.59 and when using gettextize, not
20416         gnulib), require AC_GNU_SOURCE instead.
20417
20418 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20419
20420         idpriv-drop: Fix tests.
20421         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20422         not to the test-idpriv-droptemp program.
20423
20424 2010-06-29  Bruno Haible  <bruno@clisp.org>
20425
20426         string: Fix syntax error with g++ 2.96.
20427         * lib/string.in.h (__pure__): Remove definition.
20428         (_GL_ATTRIBUTE_PURE): New macro.
20429         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20430         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20431         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20432
20433 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20434
20435         unitypes: Fix bug introduced on 2010-05-18.
20436         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20437
20438 2010-06-22  Eric Blake  <eblake@redhat.com>
20439
20440         memmem: slight optimization
20441         * lib/str-two-way.h (critical_factorization): Update comments.
20442         Reduce work during factorization phase.
20443         Reported by Carlos Bueno <carlos@bueno.org>.
20444
20445 2010-06-21  Bruno Haible  <bruno@clisp.org>
20446
20447         Fix HAVE_CALLOC_POSIX misnomer.
20448         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20449         !HAVE_CALLOC_POSIX.
20450         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20451         HAVE_CALLOC_POSIX.
20452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20453         instead of HAVE_CALLOC_POSIX.
20454         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20455         HAVE_CALLOC_POSIX.
20456
20457         Use modern idiom for calloc() replacement.
20458         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20459         AC_FUNC_CALLOC.
20460         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20461         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20462         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20463         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20464         (gl_REPLACE_CALLOC): New macro.
20465
20466 2010-06-21  Bruno Haible  <bruno@clisp.org>
20467
20468         Fix HAVE_REALLOC_POSIX misnomer.
20469         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20470         !HAVE_REALLOC_POSIX.
20471         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20472         HAVE_REALLOC_POSIX.
20473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20474         instead of HAVE_REALLOC_POSIX.
20475         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20476         HAVE_REALLOC_POSIX.
20477
20478         Use modern idiom for realloc() replacement.
20479         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20480         AC_FUNC_REALLOC.
20481         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20482         Autoconf's AC_FUNC_REALLOC.
20483         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20484         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20485         (gl_REPLACE_REALLOC): New macro.
20486         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20487
20488 2010-06-21  Bruno Haible  <bruno@clisp.org>
20489
20490         Fix HAVE_MALLOC_POSIX misnomer.
20491         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20492         !HAVE_MALLOC_POSIX.
20493         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20494         HAVE_MALLOC_POSIX.
20495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20496         instead of HAVE_MALLOC_POSIX.
20497         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20498         HAVE_MALLOC_POSIX.
20499
20500         Use modern idiom for malloc() replacement.
20501         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20502         AC_FUNC_MALLOC.
20503         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20504         Autoconf's AC_FUNC_MALLOC.
20505         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20506         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20507         (gl_REPLACE_MALLOC): New macro.
20508         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20509
20510 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20511
20512         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20513         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20514         This macro takes 3 arguments, not 4.
20515
20516 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20517
20518         ipv6: fix detection under mingw
20519         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20520         in6_addr.
20521
20522 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20523
20524         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20525         that strtod() works when cross-compiling to a glibc version known
20526         to work.
20527
20528 2010-06-15  Bruno Haible  <bruno@clisp.org>
20529
20530         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20531
20532 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20533
20534         select: Correct timeout.
20535         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20536
20537 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20538
20539         git-version-gen: init shell var to avoid env var influence
20540         * build-aux/git-version-gen (v): Init shell var to empty.
20541
20542 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20543
20544         priv-set: Don't assume that priv.h exists merely because getppriv does.
20545         See Jan Andersen's bug report about AIX 5L in
20546         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20547         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20548         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20549         * lib/priv-set.h: Likewise.
20550         * tests/test-priv-set.c: Likewise.
20551
20552 2010-06-13  Bruno Haible  <bruno@clisp.org>
20553
20554         relocatable: Make it easier to test whether to install wrappers.
20555         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20556         RELOCATABLE_VIA_WRAPPER.
20557
20558 2010-06-13  Bruno Haible  <bruno@clisp.org>
20559
20560         gnulib-tool: Display specified modules and dependencies differently.
20561         * gnulib-tool (func_show_module_list): New function.
20562         (func_import, func_create_testdir): Invoke it.
20563         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20564
20565 2010-06-13  Bruno Haible  <bruno@clisp.org>
20566
20567         gnulib-tool: Align code of func_import and func_create_testdir.
20568         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20569         specified_modules.
20570
20571 2010-06-12  Jim Meyering  <meyering@redhat.com>
20572
20573         test-inttostr: avoid spurious failure on Solaris 9
20574         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20575         to accept "%ju".  Reported by Bruno Haible.
20576
20577 2010-06-11  Jim Meyering  <meyering@redhat.com>
20578
20579         test-sys_socket: mark variables as used more readably
20580         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20581         as "used" explicitly via (void) statement casts.  This is more
20582         readable than using them in an artificial return expression.
20583         Suggestion from Bruno Haible.
20584
20585 2010-06-11  Bruno Haible  <bruno@clisp.org>
20586
20587         Avoid some more warnings from "gcc -Wwrite-strings".
20588         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20589         to 'const char *'.
20590         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20591         * tests/test-c-strcasestr.c (main): Likewise.
20592         * tests/test-mbscasestr1.c (main): Likewise.
20593         * tests/test-mbscasestr2.c (main): Likewise.
20594         * tests/test-memmem.c (main): Likewise.
20595         * tests/test-strstr.c (main): Likewise.
20596         * tests/test-strcasestr.c (main): Likewise.
20597
20598 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20599
20600         init.sh: change framework_failure_ to fail with status 99, not 1
20601         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20602         automake's parallel-tests rule that this is an unexpected failure,
20603         even if the test is listed in XFAIL_TESTS.
20604
20605 2010-06-11  Jim Meyering  <meyering@redhat.com>
20606
20607         test-inttostr: avoid warnings about 4-6KB literal strings
20608         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20609         Include "macros.h", for its definition of ASSERT.
20610         (CK): s/assert/ASSERT/
20611         * modules/inttostr-tests (Files): Add macros.h.
20612
20613         init.sh: don't use $ME_ or skip_ before they are defined
20614         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20615         their first uses.  Also hoist their companions: warn_, fail_,
20616         framework_failure_, $stderr_fileno.  Prompted by a patch from
20617         Stefano Lattarini.
20618
20619         test-sys_socket: avoid set-but-not-used warnings from gcc
20620         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20621         avoid warning about set-but-not-used variables.
20622
20623         test-xvasprintf: avoid 'const' discard warnings
20624         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20625         "const" when assigning from literal strings.
20626         (test_xasprintf): Add "void" in function argument list to placate
20627         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20628
20629         tests: avoid compilation warnings in argmatch and exclude tests...
20630         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20631         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20632         Since it always exits, declare with the "noreturn" attribute.
20633         * tests/test-argmatch.c: Likewise.
20634
20635         tests: avoid 'const' discard warnings in mbsstr tests
20636         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20637         * tests/test-mbsstr2.c (main): Likewise.
20638
20639         test-verify: avoid warning from gcc's -Wmissing-declarations
20640         * tests/test-verify.c (function): Declare to be static.
20641
20642         test-inttostr.c: include <string.h> for use of strcmp
20643         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20644
20645         test-linkat: avoid failed assertion on "other" architectures
20646         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20647         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20648         sparc: https://bugs.launchpad.net/bugs/591968
20649
20650 2010-06-11  Jim Meyering  <meyering@redhat.com>
20651
20652         printf.m4: avoid autoconf's "Expanded Before Required" warning
20653         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20654         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20655         autoconf warning.
20656
20657 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20658
20659         Replacement header templates are now named with ".in", not "_".
20660         * doc/gnulib-intro.texi: Correct.
20661
20662 2010-06-10  Jim Meyering  <meyering@redhat.com>
20663
20664         inttostr-tests: depend on snprintf, not snprintf-posix
20665         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20666         snprintf-posix, to avoid this aclocal failure:
20667           missing file gnulib-tests/vasnprintf.c
20668           configure.ac:45: error: expected source file, required through \
20669           AC_LIBSOURCES, not found
20670
20671 2010-06-10  Jim Meyering  <meyering@redhat.com>
20672
20673         inttostr: add a new function, inttostr, and tests
20674         The namesake function was not available.  The existence of the
20675         template file, inttostr.c makes its addition nontrivial.
20676         * lib/anytostr.c: Rename from inttostr.c.
20677         (anytostr): Rename from inttostr.
20678         * lib/inttostr.c: New file.
20679         * modules/inttostr (Files): Add anytostr.c.
20680         (Makefile.am): Set lib_SOURCES instead of ...
20681         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20682         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20683         * lib/offtostr.c: Likewise.
20684         * lib/uinttostr.c: Likewise.
20685         * lib/umaxtostr.c: Likewise.
20686         * modules/inttostr-tests: New file.
20687         * tests/test-inttostr.c: New file.  Test these functions.
20688
20689 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20690             Bruno Haible  <bruno@clisp.org>
20691
20692         Add "Extending Gnulib" chapter to manual.
20693         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20694         chapter.
20695         (Extending Gnulib): New chapter.
20696         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20697         chapter.
20698
20699 2010-06-09  Bruno Haible  <bruno@clisp.org>
20700
20701         Avoid relocwrapper link errors due to gnulib replacement functions.
20702         * lib/areadlink.c: Use the system's malloc, realloc functions.
20703         (areadlink): Set errno to ENOMEM explicitly.
20704         * modules/areadlink (Depends-on): Remove malloc-posix.
20705         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20706
20707 2010-06-09  Bruno Haible  <bruno@clisp.org>
20708
20709         Avoid relocwrapper link errors due to gnulib replacement functions.
20710         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20711         * lib/malloca.c: Likewise.
20712         * lib/relocatable.c: Likewise.
20713         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20714         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20715         * lib/setenv.c: Use the system's malloc, realloc functions.
20716         * lib/strerror.c: Use the system's sprintf function.
20717         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20718
20719 2010-06-04  Bruno Haible  <bruno@clisp.org>
20720
20721         Prefer documented low-level autoconf macro names.
20722         * m4/lib-link.m4: Use m4_translit instead of translit.
20723         * m4/environ.m4: Likewise.
20724         * m4/mathfunc.m4: Likewise.
20725         * m4/onceonly.m4: Likewise.
20726         * m4/stdint.m4: Likewise.
20727         Suggested by Eric Blake.
20728
20729 2010-06-04  Martin Lambers  <marlam@marlam.de>
20730             Bruno Haible  <bruno@clisp.org>
20731
20732         havelib: Allow library names with '+' characters.
20733         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20734         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20735
20736 2010-06-09  Bruno Haible  <bruno@clisp.org>
20737
20738         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20739         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20740         realloc failed.
20741
20742 2010-06-08  Peter Simons  <simons@cryp.to>
20743
20744         maint.mk: make the news-check rule more configurable
20745         * top/maint.mk (news-check-lines-spec): New variable.
20746         (news-check): Use "sed -n 1,10p" in place of "head".
20747
20748 2010-06-07  Jim Meyering  <meyering@redhat.com>
20749
20750         do-release-commit-and-tag: fix typo in --help
20751         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20752
20753         regex: avoid new dead-code warning with gcc-4.6.0
20754         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20755         if-block containing a while-loop.  It's been unused for at least
20756         5 years.
20757
20758 2010-06-05  Bruno Haible  <bruno@clisp.org>
20759
20760         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20761         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20762
20763 2010-06-04  Bruno Haible  <bruno@clisp.org>
20764
20765         Update to GNU gettext 0.18.1.
20766         * modules/gettext (configure.ac): Require gettext infrastructure from
20767         version 0.18.1.
20768
20769 2010-06-03  Bruno Haible  <bruno@clisp.org>
20770
20771         Don't use AC_LIBOBJ with file names in subdirectories.
20772         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20773         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20774         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20775         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20776         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20777         gl_LIBUNISTRING_LIBSOURCE.
20778         (Makefile.am): Augment lib_SOURCES here, conditionally.
20779         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20780
20781 2010-06-03  Bruno Haible  <bruno@clisp.org>
20782
20783         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20784         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20785         expansion does not end with a newline.
20786         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20787         unnecessary newline.
20788
20789 2010-06-03  Bruno Haible  <bruno@clisp.org>
20790
20791         Reduce dependencies.
20792         * tests/test-quotearg.h: New file, extracted from
20793         tests/test-quotearg.c.
20794         * tests/test-quotearg-simple.c: New file, extracted from
20795         tests/test-quotearg.c.
20796         * tests/test-quotearg.c: Don't include <ctype.h>.
20797         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20798         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20799         use_quote_double_quotes, use_quotearg_colon): Moved to
20800         tests/test-quotearg.h.
20801         (results_g, flag_results, custom_quotes, custom_results): Moved
20802         to tests/test-quotearg-simple.c.
20803         (main): Moved the part that does not depend on gettext to
20804         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20805         performed.
20806         * modules/quotearg-simple: New file.
20807         * modules/quotearg-simple-tests: New file.
20808         * modules/quotearg (Depends-on): Add quotearg-simple.
20809         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20810         (Files): Add tests/test-quotearg.h.
20811         Reported by Paolo Bonzini.
20812
20813 2010-06-03  Bruno Haible  <bruno@clisp.org>
20814
20815         Reduce dependencies.
20816         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20817
20818 2010-06-03  Bruno Haible  <bruno@clisp.org>
20819
20820         time: Undefine more broken macros.
20821         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20822         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20823         Reported by Eric Blake.
20824
20825 2010-06-03  Bruno Haible  <bruno@clisp.org>
20826
20827         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20828         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20829         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20830         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20831         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20832         Reported by Ludovic Courtès <ludo@gnu.org>.
20833
20834 2010-06-02  Eric Blake  <eblake@redhat.com>
20835
20836         time: work with mingw + pthreads-win32 library
20837         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20838         if timespec is defined only in pthread.h.
20839         * modules/time (Makefile.am): Substitute it.
20840         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20841         <pthread.h>, when needed.
20842         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20843         from the library.
20844
20845 2010-05-31  Bruno Haible  <bruno@clisp.org>
20846
20847         Avoid expanding two macros in the wrong order.
20848         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20849         gl_LIBUNISTRING if it is defined.
20850         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20851         autoconf >= 2.64.
20852         Reported by Ludovic Courtès <ludo@gnu.org>.
20853
20854 2010-05-27  Jim Meyering  <meyering@redhat.com>
20855
20856         maint.mk: also prohibit "#undef" of always-defined symbols
20857         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20858         Allow more than one space before the symbol name.
20859         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20860         the regexp uses alternation.
20861
20862 2010-05-26  Eric Blake  <eblake@redhat.com>
20863
20864         maint.mk: avoid echo -e
20865         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20866         Convert all uses of echo -* to printf.
20867         Reported by Matthias Bolte.
20868
20869 2010-05-25  Bruno Haible  <bruno@clisp.org>
20870
20871         Update to GNU gettext 0.18, part 2.
20872         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20873         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
20874
20875 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20876
20877         Add missing include in test-pwrite.c.
20878         * tests/test-pwrite.c: Include string.h, for strcmp.
20879
20880 2010-05-24  Bruno Haible  <bruno@clisp.org>
20881
20882         * NEWS: Mention requirement for Automake option 'subdir-objects'.
20883
20884 2010-05-24  Bruno Haible  <bruno@clisp.org>
20885
20886         Don't use conversion with transliteration in u{8,16,32}_strcoll.
20887         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
20888         iconveh_error argument.
20889         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
20890         U_STRCONV_TO_LOCALE.
20891         * lib/unistr/u16-strcoll.c: Likewise.
20892         * lib/unistr/u32-strcoll.c: Likewise.
20893         * modules/unistr/u8-strcoll (Depends-on): Add
20894         uniconv/u8-strconv-to-enc, localcharset. Remove
20895         uniconv/u8-strconv-to-locale.
20896         (configure.ac): Bump version number.
20897         * modules/unistr/u16-strcoll (Depends-on): Add
20898         uniconv/u16-strconv-to-enc, localcharset. Remove
20899         uniconv/u16-strconv-to-locale.
20900         (configure.ac): Bump version number.
20901         * modules/unistr/u32-strcoll (Depends-on): Add
20902         uniconv/u32-strconv-to-enc, localcharset. Remove
20903         uniconv/u32-strconv-to-locale.
20904         (configure.ac): Bump version number.
20905
20906 2010-05-24  Bruno Haible  <bruno@clisp.org>
20907
20908         Avoid a test failure on NetBSD 5.0.
20909         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
20910         an iconv() bug.
20911
20912 2010-05-24  Bruno Haible  <bruno@clisp.org>
20913
20914         Adjust #include directive style.
20915         * modules/regex (Includes): Recommend to write <regex.h>.
20916
20917 2010-05-24  Bruno Haible  <bruno@clisp.org>
20918
20919         regex: Don't require alloca.
20920         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20921         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20922         only inside if (0).
20923
20924 2010-05-23  Jim Meyering  <meyering@redhat.com>
20925
20926         test-renameat.c: include <sys/stat.h>
20927         * tests/test-renameat.c: Include <sys/stat.h>; required for
20928         definition of S_IS* macros.
20929
20930 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20931
20932         Update maintainer documentation for 'relocatable-prog' module.
20933         * doc/relocatable-maint.texi: Update.
20934         Comments by Bruno Haible.
20935
20936 2010-05-23  Bruno Haible  <bruno@clisp.org>
20937
20938         git-merge-changelog: Enable --split-merged-entry by default.
20939         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20940         (usage): Don't mention this option any more.
20941         Reported by Ralf Wildenhues.
20942
20943 2010-05-23  Jim Meyering  <meyering@redhat.com>
20944
20945         test-pwrite: do not leave behind a test file named "out"
20946         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20947         The trivial-looking use of init.sh is really necessary.
20948         It ensures that the temporary file, "out", is created in
20949         a temporary directory, and removed upon termination.
20950         * tests/test-pwrite.sh: Re-add file.
20951         * modules/pwrite-tests: Reference it.
20952
20953 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20954
20955         Fix output redirection buglet in init.sh.
20956         * tests/init.sh: Fix redirection of stderr.
20957
20958 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20959
20960         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20961
20962 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20963
20964         * modules/valgrind-tests: New file.
20965         * m4/valgrind-tests.m4: New file.
20966         * doc/valgrind-tests.texi: New file.
20967         * doc/gnulib.texi (Running self-tests under valgrind): New
20968         section.
20969
20970 2010-05-19  Bruno Haible  <bruno@clisp.org>
20971
20972         Clean up dead code in recent commit.
20973         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20974         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20975         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20976         Suggested by Paolo Bonzini.
20977
20978 2010-05-19  Bruno Haible  <bruno@clisp.org>
20979
20980         Avoid valgrind error reports from libunistring.
20981         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20982         * modules/libunistring (Files): Add it.
20983         * modules/libunistring-optional (Files): Likewise.
20984
20985 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20986             Bruno Haible  <bruno@clisp.org>
20987
20988         New module 'libunistring-optional'.
20989         * modules/libunistring-optional: New file.
20990         * m4/libunistring-base.m4: New file.
20991         * m4/libunistring-optional.m4: New file.
20992         * lib/unicase.in.h: Renamed from lib/unicase.h.
20993         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20994         * lib/unictype.in.h: Renamed from lib/unictype.h.
20995         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20996         * lib/uniname.in.h: Renamed from lib/uniname.h.
20997         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20998         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20999         * lib/unistr.in.h: Renamed from lib/unistr.h.
21000         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21001         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21002         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21003         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21004         gl_LIBUNISTRING. If the library was found, determine the installed
21005         version and set LIBUNISTRING_VERSION.
21006         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21007         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21008         handle a configuration option --with-included-libunistring.
21009         * modules/libunistring (Files): Add m4/absolute-header.m4.
21010         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21011         Add m4/libunistring-base.m4.
21012         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21013         (Makefile.am): Build unicase.h from unicase.in.h.
21014         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21015         Add m4/libunistring-base.m4.
21016         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21017         (Makefile.am): Build uniconv.h from uniconv.in.h.
21018         * modules/unictype/base (Files): Use unictype.in.h instead of
21019         unictype.h. Add m4/libunistring-base.m4.
21020         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21021         (Makefile.am): Build unictype.h from unictype.in.h.
21022         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21023         Add m4/libunistring-base.m4.
21024         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21025         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21026         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21027         Add m4/libunistring-base.m4.
21028         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21029         (Makefile.am): Build uniname.h from uniname.in.h.
21030         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21031         Add m4/libunistring-base.m4.
21032         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21033         (Makefile.am): Build uninorm.h from uninorm.in.h.
21034         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21035         unistdio.h. Add m4/libunistring-base.m4.
21036         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21037         (Makefile.am): Build unistdio.h from unistdio.in.h.
21038         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21039         Add m4/libunistring-base.m4.
21040         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21041         (Makefile.am): Build unistr.h from unistr.in.h.
21042         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21043         Add m4/libunistring-base.m4.
21044         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21045         (Makefile.am): Build unitypes.h from unitypes.in.h.
21046         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21047         Add m4/libunistring-base.m4.
21048         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21049         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21050         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21051         uniwidth.h. Add m4/libunistring-base.m4.
21052         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21053         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21054         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21055         instead of augmenting lib_SOURCES.
21056         * modules/unicase/empty-suffix-context: Likewise.
21057         * modules/unicase/locale-language: Likewise.
21058         * modules/unicase/tolower: Likewise.
21059         * modules/unicase/totitle: Likewise.
21060         * modules/unicase/toupper: Likewise.
21061         * modules/unicase/u8-casecmp: Likewise.
21062         * modules/unicase/u8-casecoll: Likewise.
21063         * modules/unicase/u8-casefold: Likewise.
21064         * modules/unicase/u8-casexfrm: Likewise.
21065         * modules/unicase/u8-ct-casefold: Likewise.
21066         * modules/unicase/u8-ct-tolower: Likewise.
21067         * modules/unicase/u8-ct-totitle: Likewise.
21068         * modules/unicase/u8-ct-toupper: Likewise.
21069         * modules/unicase/u8-is-cased: Likewise.
21070         * modules/unicase/u8-is-casefolded: Likewise.
21071         * modules/unicase/u8-is-lowercase: Likewise.
21072         * modules/unicase/u8-is-titlecase: Likewise.
21073         * modules/unicase/u8-is-uppercase: Likewise.
21074         * modules/unicase/u8-prefix-context: Likewise.
21075         * modules/unicase/u8-suffix-context: Likewise.
21076         * modules/unicase/u8-tolower: Likewise.
21077         * modules/unicase/u8-totitle: Likewise.
21078         * modules/unicase/u8-toupper: Likewise.
21079         * modules/unicase/u16-casecmp: Likewise.
21080         * modules/unicase/u16-casecoll: Likewise.
21081         * modules/unicase/u16-casefold: Likewise.
21082         * modules/unicase/u16-casexfrm: Likewise.
21083         * modules/unicase/u16-ct-casefold: Likewise.
21084         * modules/unicase/u16-ct-tolower: Likewise.
21085         * modules/unicase/u16-ct-totitle: Likewise.
21086         * modules/unicase/u16-ct-toupper: Likewise.
21087         * modules/unicase/u16-is-cased: Likewise.
21088         * modules/unicase/u16-is-casefolded: Likewise.
21089         * modules/unicase/u16-is-lowercase: Likewise.
21090         * modules/unicase/u16-is-titlecase: Likewise.
21091         * modules/unicase/u16-is-uppercase: Likewise.
21092         * modules/unicase/u16-prefix-context: Likewise.
21093         * modules/unicase/u16-suffix-context: Likewise.
21094         * modules/unicase/u16-tolower: Likewise.
21095         * modules/unicase/u16-totitle: Likewise.
21096         * modules/unicase/u16-toupper: Likewise.
21097         * modules/unicase/u32-casecmp: Likewise.
21098         * modules/unicase/u32-casecoll: Likewise.
21099         * modules/unicase/u32-casefold: Likewise.
21100         * modules/unicase/u32-casexfrm: Likewise.
21101         * modules/unicase/u32-ct-casefold: Likewise.
21102         * modules/unicase/u32-ct-tolower: Likewise.
21103         * modules/unicase/u32-ct-totitle: Likewise.
21104         * modules/unicase/u32-ct-toupper: Likewise.
21105         * modules/unicase/u32-is-cased: Likewise.
21106         * modules/unicase/u32-is-casefolded: Likewise.
21107         * modules/unicase/u32-is-lowercase: Likewise.
21108         * modules/unicase/u32-is-titlecase: Likewise.
21109         * modules/unicase/u32-is-uppercase: Likewise.
21110         * modules/unicase/u32-prefix-context: Likewise.
21111         * modules/unicase/u32-suffix-context: Likewise.
21112         * modules/unicase/u32-tolower: Likewise.
21113         * modules/unicase/u32-totitle: Likewise.
21114         * modules/unicase/u32-toupper: Likewise.
21115         * modules/unicase/ulc-casecmp: Likewise.
21116         * modules/unicase/ulc-casecoll: Likewise.
21117         * modules/unicase/ulc-casexfrm: Likewise.
21118         * modules/uniconv/u8-conv-from-enc: Likewise.
21119         * modules/uniconv/u8-conv-to-enc: Likewise.
21120         * modules/uniconv/u8-strconv-from-enc: Likewise.
21121         * modules/uniconv/u8-strconv-from-locale: Likewise.
21122         * modules/uniconv/u8-strconv-to-enc: Likewise.
21123         * modules/uniconv/u8-strconv-to-locale: Likewise.
21124         * modules/uniconv/u16-conv-from-enc: Likewise.
21125         * modules/uniconv/u16-conv-to-enc: Likewise.
21126         * modules/uniconv/u16-strconv-from-enc: Likewise.
21127         * modules/uniconv/u16-strconv-from-locale: Likewise.
21128         * modules/uniconv/u16-strconv-to-enc: Likewise.
21129         * modules/uniconv/u16-strconv-to-locale: Likewise.
21130         * modules/uniconv/u32-conv-from-enc: Likewise.
21131         * modules/uniconv/u32-conv-to-enc: Likewise.
21132         * modules/uniconv/u32-strconv-from-enc: Likewise.
21133         * modules/uniconv/u32-strconv-from-locale: Likewise.
21134         * modules/uniconv/u32-strconv-to-enc: Likewise.
21135         * modules/uniconv/u32-strconv-to-locale: Likewise.
21136         * modules/unictype/bidicategory-byname: Likewise.
21137         * modules/unictype/bidicategory-name: Likewise.
21138         * modules/unictype/bidicategory-of: Likewise.
21139         * modules/unictype/bidicategory-test: Likewise.
21140         * modules/unictype/block-list: Likewise.
21141         * modules/unictype/block-test: Likewise.
21142         * modules/unictype/category-C: Likewise.
21143         * modules/unictype/category-Cc: Likewise.
21144         * modules/unictype/category-Cf: Likewise.
21145         * modules/unictype/category-Cn: Likewise.
21146         * modules/unictype/category-Co: Likewise.
21147         * modules/unictype/category-Cs: Likewise.
21148         * modules/unictype/category-L: Likewise.
21149         * modules/unictype/category-Ll: Likewise.
21150         * modules/unictype/category-Lm: Likewise.
21151         * modules/unictype/category-Lo: Likewise.
21152         * modules/unictype/category-Lt: Likewise.
21153         * modules/unictype/category-Lu: Likewise.
21154         * modules/unictype/category-M: Likewise.
21155         * modules/unictype/category-Mc: Likewise.
21156         * modules/unictype/category-Me: Likewise.
21157         * modules/unictype/category-Mn: Likewise.
21158         * modules/unictype/category-N: Likewise.
21159         * modules/unictype/category-Nd: Likewise.
21160         * modules/unictype/category-Nl: Likewise.
21161         * modules/unictype/category-No: Likewise.
21162         * modules/unictype/category-P: Likewise.
21163         * modules/unictype/category-Pc: Likewise.
21164         * modules/unictype/category-Pd: Likewise.
21165         * modules/unictype/category-Pe: Likewise.
21166         * modules/unictype/category-Pf: Likewise.
21167         * modules/unictype/category-Pi: Likewise.
21168         * modules/unictype/category-Po: Likewise.
21169         * modules/unictype/category-Ps: Likewise.
21170         * modules/unictype/category-S: Likewise.
21171         * modules/unictype/category-Sc: Likewise.
21172         * modules/unictype/category-Sk: Likewise.
21173         * modules/unictype/category-Sm: Likewise.
21174         * modules/unictype/category-So: Likewise.
21175         * modules/unictype/category-Z: Likewise.
21176         * modules/unictype/category-Zl: Likewise.
21177         * modules/unictype/category-Zp: Likewise.
21178         * modules/unictype/category-Zs: Likewise.
21179         * modules/unictype/category-and: Likewise.
21180         * modules/unictype/category-and-not: Likewise.
21181         * modules/unictype/category-byname: Likewise.
21182         * modules/unictype/category-name: Likewise.
21183         * modules/unictype/category-none: Likewise.
21184         * modules/unictype/category-of: Likewise.
21185         * modules/unictype/category-or: Likewise.
21186         * modules/unictype/category-test: Likewise.
21187         * modules/unictype/combining-class: Likewise.
21188         * modules/unictype/ctype-alnum: Likewise.
21189         * modules/unictype/ctype-alpha: Likewise.
21190         * modules/unictype/ctype-blank: Likewise.
21191         * modules/unictype/ctype-cntrl: Likewise.
21192         * modules/unictype/ctype-digit: Likewise.
21193         * modules/unictype/ctype-graph: Likewise.
21194         * modules/unictype/ctype-lower: Likewise.
21195         * modules/unictype/ctype-print: Likewise.
21196         * modules/unictype/ctype-punct: Likewise.
21197         * modules/unictype/ctype-space: Likewise.
21198         * modules/unictype/ctype-upper: Likewise.
21199         * modules/unictype/ctype-xdigit: Likewise.
21200         * modules/unictype/decimal-digit: Likewise.
21201         * modules/unictype/digit: Likewise.
21202         * modules/unictype/mirror: Likewise.
21203         * modules/unictype/numeric: Likewise.
21204         * modules/unictype/property-alphabetic: Likewise.
21205         * modules/unictype/property-ascii-hex-digit: Likewise.
21206         * modules/unictype/property-bidi-arabic-digit: Likewise.
21207         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21208         * modules/unictype/property-bidi-block-separator: Likewise.
21209         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21210         * modules/unictype/property-bidi-common-separator: Likewise.
21211         * modules/unictype/property-bidi-control: Likewise.
21212         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21213         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21214         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21215         * modules/unictype/property-bidi-european-digit: Likewise.
21216         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21217         * modules/unictype/property-bidi-left-to-right: Likewise.
21218         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21219         * modules/unictype/property-bidi-other-neutral: Likewise.
21220         * modules/unictype/property-bidi-pdf: Likewise.
21221         * modules/unictype/property-bidi-segment-separator: Likewise.
21222         * modules/unictype/property-bidi-whitespace: Likewise.
21223         * modules/unictype/property-byname: Likewise.
21224         * modules/unictype/property-combining: Likewise.
21225         * modules/unictype/property-composite: Likewise.
21226         * modules/unictype/property-currency-symbol: Likewise.
21227         * modules/unictype/property-dash: Likewise.
21228         * modules/unictype/property-decimal-digit: Likewise.
21229         * modules/unictype/property-default-ignorable-code-point: Likewise.
21230         * modules/unictype/property-deprecated: Likewise.
21231         * modules/unictype/property-diacritic: Likewise.
21232         * modules/unictype/property-extender: Likewise.
21233         * modules/unictype/property-format-control: Likewise.
21234         * modules/unictype/property-grapheme-base: Likewise.
21235         * modules/unictype/property-grapheme-extend: Likewise.
21236         * modules/unictype/property-grapheme-link: Likewise.
21237         * modules/unictype/property-hex-digit: Likewise.
21238         * modules/unictype/property-hyphen: Likewise.
21239         * modules/unictype/property-id-continue: Likewise.
21240         * modules/unictype/property-id-start: Likewise.
21241         * modules/unictype/property-ideographic: Likewise.
21242         * modules/unictype/property-ids-binary-operator: Likewise.
21243         * modules/unictype/property-ids-trinary-operator: Likewise.
21244         * modules/unictype/property-ignorable-control: Likewise.
21245         * modules/unictype/property-iso-control: Likewise.
21246         * modules/unictype/property-join-control: Likewise.
21247         * modules/unictype/property-left-of-pair: Likewise.
21248         * modules/unictype/property-line-separator: Likewise.
21249         * modules/unictype/property-logical-order-exception: Likewise.
21250         * modules/unictype/property-lowercase: Likewise.
21251         * modules/unictype/property-math: Likewise.
21252         * modules/unictype/property-non-break: Likewise.
21253         * modules/unictype/property-not-a-character: Likewise.
21254         * modules/unictype/property-numeric: Likewise.
21255         * modules/unictype/property-other-alphabetic: Likewise.
21256         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21257         * modules/unictype/property-other-grapheme-extend: Likewise.
21258         * modules/unictype/property-other-id-continue: Likewise.
21259         * modules/unictype/property-other-id-start: Likewise.
21260         * modules/unictype/property-other-lowercase: Likewise.
21261         * modules/unictype/property-other-math: Likewise.
21262         * modules/unictype/property-other-uppercase: Likewise.
21263         * modules/unictype/property-paired-punctuation: Likewise.
21264         * modules/unictype/property-paragraph-separator: Likewise.
21265         * modules/unictype/property-pattern-syntax: Likewise.
21266         * modules/unictype/property-pattern-white-space: Likewise.
21267         * modules/unictype/property-private-use: Likewise.
21268         * modules/unictype/property-punctuation: Likewise.
21269         * modules/unictype/property-quotation-mark: Likewise.
21270         * modules/unictype/property-radical: Likewise.
21271         * modules/unictype/property-sentence-terminal: Likewise.
21272         * modules/unictype/property-soft-dotted: Likewise.
21273         * modules/unictype/property-space: Likewise.
21274         * modules/unictype/property-terminal-punctuation: Likewise.
21275         * modules/unictype/property-test: Likewise.
21276         * modules/unictype/property-titlecase: Likewise.
21277         * modules/unictype/property-unassigned-code-value: Likewise.
21278         * modules/unictype/property-unified-ideograph: Likewise.
21279         * modules/unictype/property-uppercase: Likewise.
21280         * modules/unictype/property-variation-selector: Likewise.
21281         * modules/unictype/property-white-space: Likewise.
21282         * modules/unictype/property-xid-continue: Likewise.
21283         * modules/unictype/property-xid-start: Likewise.
21284         * modules/unictype/property-zero-width: Likewise.
21285         * modules/unictype/scripts: Likewise.
21286         * modules/unictype/syntax-c-ident: Likewise.
21287         * modules/unictype/syntax-c-whitespace: Likewise.
21288         * modules/unictype/syntax-java-ident: Likewise.
21289         * modules/unictype/syntax-java-whitespace: Likewise.
21290         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21291         * modules/unilbrk/u8-width-linebreaks: Likewise.
21292         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21293         * modules/unilbrk/u16-width-linebreaks: Likewise.
21294         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21295         * modules/unilbrk/u32-width-linebreaks: Likewise.
21296         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21297         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21298         * modules/uniname/uniname: Likewise.
21299         * modules/uninorm/canonical-decomposition: Likewise.
21300         * modules/uninorm/composition: Likewise.
21301         * modules/uninorm/decomposing-form: Likewise.
21302         * modules/uninorm/decomposition: Likewise.
21303         * modules/uninorm/filter: Likewise.
21304         * modules/uninorm/nfc: Likewise.
21305         * modules/uninorm/nfd: Likewise.
21306         * modules/uninorm/nfkc: Likewise.
21307         * modules/uninorm/nfkd: Likewise.
21308         * modules/uninorm/u8-normalize: Likewise.
21309         * modules/uninorm/u8-normcmp: Likewise.
21310         * modules/uninorm/u8-normcoll: Likewise.
21311         * modules/uninorm/u8-normxfrm: Likewise.
21312         * modules/uninorm/u16-normalize: Likewise.
21313         * modules/uninorm/u16-normcmp: Likewise.
21314         * modules/uninorm/u16-normcoll: Likewise.
21315         * modules/uninorm/u16-normxfrm: Likewise.
21316         * modules/uninorm/u32-normalize: Likewise.
21317         * modules/uninorm/u32-normcmp: Likewise.
21318         * modules/uninorm/u32-normcoll: Likewise.
21319         * modules/uninorm/u32-normxfrm: Likewise.
21320         * modules/unistdio/u8-asnprintf: Likewise.
21321         * modules/unistdio/u8-asprintf: Likewise.
21322         * modules/unistdio/u8-snprintf: Likewise.
21323         * modules/unistdio/u8-sprintf: Likewise.
21324         * modules/unistdio/u8-u8-asnprintf: Likewise.
21325         * modules/unistdio/u8-u8-asprintf: Likewise.
21326         * modules/unistdio/u8-u8-snprintf: Likewise.
21327         * modules/unistdio/u8-u8-sprintf: Likewise.
21328         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21329         * modules/unistdio/u8-u8-vasprintf: Likewise.
21330         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21331         * modules/unistdio/u8-u8-vsprintf: Likewise.
21332         * modules/unistdio/u8-vasnprintf: Likewise.
21333         * modules/unistdio/u8-vasprintf: Likewise.
21334         * modules/unistdio/u8-vsnprintf: Likewise.
21335         * modules/unistdio/u8-vsprintf: Likewise.
21336         * modules/unistdio/u16-asnprintf: Likewise.
21337         * modules/unistdio/u16-asprintf: Likewise.
21338         * modules/unistdio/u16-snprintf: Likewise.
21339         * modules/unistdio/u16-sprintf: Likewise.
21340         * modules/unistdio/u16-u16-asnprintf: Likewise.
21341         * modules/unistdio/u16-u16-asprintf: Likewise.
21342         * modules/unistdio/u16-u16-snprintf: Likewise.
21343         * modules/unistdio/u16-u16-sprintf: Likewise.
21344         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21345         * modules/unistdio/u16-u16-vasprintf: Likewise.
21346         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21347         * modules/unistdio/u16-u16-vsprintf: Likewise.
21348         * modules/unistdio/u16-vasnprintf: Likewise.
21349         * modules/unistdio/u16-vasprintf: Likewise.
21350         * modules/unistdio/u16-vsnprintf: Likewise.
21351         * modules/unistdio/u16-vsprintf: Likewise.
21352         * modules/unistdio/u32-asnprintf: Likewise.
21353         * modules/unistdio/u32-asprintf: Likewise.
21354         * modules/unistdio/u32-snprintf: Likewise.
21355         * modules/unistdio/u32-sprintf: Likewise.
21356         * modules/unistdio/u32-u32-asnprintf: Likewise.
21357         * modules/unistdio/u32-u32-asprintf: Likewise.
21358         * modules/unistdio/u32-u32-snprintf: Likewise.
21359         * modules/unistdio/u32-u32-sprintf: Likewise.
21360         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21361         * modules/unistdio/u32-u32-vasprintf: Likewise.
21362         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21363         * modules/unistdio/u32-u32-vsprintf: Likewise.
21364         * modules/unistdio/u32-vasnprintf: Likewise.
21365         * modules/unistdio/u32-vasprintf: Likewise.
21366         * modules/unistdio/u32-vsnprintf: Likewise.
21367         * modules/unistdio/u32-vsprintf: Likewise.
21368         * modules/unistdio/ulc-asnprintf: Likewise.
21369         * modules/unistdio/ulc-asprintf: Likewise.
21370         * modules/unistdio/ulc-fprintf: Likewise.
21371         * modules/unistdio/ulc-snprintf: Likewise.
21372         * modules/unistdio/ulc-sprintf: Likewise.
21373         * modules/unistdio/ulc-vasnprintf: Likewise.
21374         * modules/unistdio/ulc-vasprintf: Likewise.
21375         * modules/unistdio/ulc-vfprintf: Likewise.
21376         * modules/unistdio/ulc-vsnprintf: Likewise.
21377         * modules/unistdio/ulc-vsprintf: Likewise.
21378         * modules/unistr/u8-check: Likewise.
21379         * modules/unistr/u8-chr: Likewise.
21380         * modules/unistr/u8-cmp: Likewise.
21381         * modules/unistr/u8-cmp2: Likewise.
21382         * modules/unistr/u8-cpy: Likewise.
21383         * modules/unistr/u8-cpy-alloc: Likewise.
21384         * modules/unistr/u8-endswith: Likewise.
21385         * modules/unistr/u8-mblen: Likewise.
21386         * modules/unistr/u8-mbsnlen: Likewise.
21387         * modules/unistr/u8-mbtouc: Likewise.
21388         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21389         * modules/unistr/u8-mbtoucr: Likewise.
21390         * modules/unistr/u8-move: Likewise.
21391         * modules/unistr/u8-next: Likewise.
21392         * modules/unistr/u8-prev: Likewise.
21393         * modules/unistr/u8-set: Likewise.
21394         * modules/unistr/u8-startswith: Likewise.
21395         * modules/unistr/u8-stpcpy: Likewise.
21396         * modules/unistr/u8-stpncpy: Likewise.
21397         * modules/unistr/u8-strcat: Likewise.
21398         * modules/unistr/u8-strchr: Likewise.
21399         * modules/unistr/u8-strcmp: Likewise.
21400         * modules/unistr/u8-strcoll: Likewise.
21401         * modules/unistr/u8-strcpy: Likewise.
21402         * modules/unistr/u8-strcspn: Likewise.
21403         * modules/unistr/u8-strdup: Likewise.
21404         * modules/unistr/u8-strlen: Likewise.
21405         * modules/unistr/u8-strmblen: Likewise.
21406         * modules/unistr/u8-strmbtouc: Likewise.
21407         * modules/unistr/u8-strncat: Likewise.
21408         * modules/unistr/u8-strncmp: Likewise.
21409         * modules/unistr/u8-strncpy: Likewise.
21410         * modules/unistr/u8-strnlen: Likewise.
21411         * modules/unistr/u8-strpbrk: Likewise.
21412         * modules/unistr/u8-strrchr: Likewise.
21413         * modules/unistr/u8-strspn: Likewise.
21414         * modules/unistr/u8-strstr: Likewise.
21415         * modules/unistr/u8-strtok: Likewise.
21416         * modules/unistr/u8-to-u16: Likewise.
21417         * modules/unistr/u8-to-u32: Likewise.
21418         * modules/unistr/u8-uctomb: Likewise.
21419         * modules/unistr/u16-check: Likewise.
21420         * modules/unistr/u16-chr: Likewise.
21421         * modules/unistr/u16-cmp: Likewise.
21422         * modules/unistr/u16-cmp2: Likewise.
21423         * modules/unistr/u16-cpy: Likewise.
21424         * modules/unistr/u16-cpy-alloc: Likewise.
21425         * modules/unistr/u16-endswith: Likewise.
21426         * modules/unistr/u16-mblen: Likewise.
21427         * modules/unistr/u16-mbsnlen: Likewise.
21428         * modules/unistr/u16-mbtouc: Likewise.
21429         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21430         * modules/unistr/u16-mbtoucr: Likewise.
21431         * modules/unistr/u16-move: Likewise.
21432         * modules/unistr/u16-next: Likewise.
21433         * modules/unistr/u16-prev: Likewise.
21434         * modules/unistr/u16-set: Likewise.
21435         * modules/unistr/u16-startswith: Likewise.
21436         * modules/unistr/u16-stpcpy: Likewise.
21437         * modules/unistr/u16-stpncpy: Likewise.
21438         * modules/unistr/u16-strcat: Likewise.
21439         * modules/unistr/u16-strchr: Likewise.
21440         * modules/unistr/u16-strcmp: Likewise.
21441         * modules/unistr/u16-strcoll: Likewise.
21442         * modules/unistr/u16-strcpy: Likewise.
21443         * modules/unistr/u16-strcspn: Likewise.
21444         * modules/unistr/u16-strdup: Likewise.
21445         * modules/unistr/u16-strlen: Likewise.
21446         * modules/unistr/u16-strmblen: Likewise.
21447         * modules/unistr/u16-strmbtouc: Likewise.
21448         * modules/unistr/u16-strncat: Likewise.
21449         * modules/unistr/u16-strncmp: Likewise.
21450         * modules/unistr/u16-strncpy: Likewise.
21451         * modules/unistr/u16-strnlen: Likewise.
21452         * modules/unistr/u16-strpbrk: Likewise.
21453         * modules/unistr/u16-strrchr: Likewise.
21454         * modules/unistr/u16-strspn: Likewise.
21455         * modules/unistr/u16-strstr: Likewise.
21456         * modules/unistr/u16-strtok: Likewise.
21457         * modules/unistr/u16-to-u32: Likewise.
21458         * modules/unistr/u16-to-u8: Likewise.
21459         * modules/unistr/u16-uctomb: Likewise.
21460         * modules/unistr/u32-check: Likewise.
21461         * modules/unistr/u32-chr: Likewise.
21462         * modules/unistr/u32-cmp: Likewise.
21463         * modules/unistr/u32-cmp2: Likewise.
21464         * modules/unistr/u32-cpy: Likewise.
21465         * modules/unistr/u32-cpy-alloc: Likewise.
21466         * modules/unistr/u32-endswith: Likewise.
21467         * modules/unistr/u32-mblen: Likewise.
21468         * modules/unistr/u32-mbsnlen: Likewise.
21469         * modules/unistr/u32-mbtouc: Likewise.
21470         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21471         * modules/unistr/u32-mbtoucr: Likewise.
21472         * modules/unistr/u32-move: Likewise.
21473         * modules/unistr/u32-next: Likewise.
21474         * modules/unistr/u32-prev: Likewise.
21475         * modules/unistr/u32-set: Likewise.
21476         * modules/unistr/u32-startswith: Likewise.
21477         * modules/unistr/u32-stpcpy: Likewise.
21478         * modules/unistr/u32-stpncpy: Likewise.
21479         * modules/unistr/u32-strcat: Likewise.
21480         * modules/unistr/u32-strchr: Likewise.
21481         * modules/unistr/u32-strcmp: Likewise.
21482         * modules/unistr/u32-strcoll: Likewise.
21483         * modules/unistr/u32-strcpy: Likewise.
21484         * modules/unistr/u32-strcspn: Likewise.
21485         * modules/unistr/u32-strdup: Likewise.
21486         * modules/unistr/u32-strlen: Likewise.
21487         * modules/unistr/u32-strmblen: Likewise.
21488         * modules/unistr/u32-strmbtouc: Likewise.
21489         * modules/unistr/u32-strncat: Likewise.
21490         * modules/unistr/u32-strncmp: Likewise.
21491         * modules/unistr/u32-strncpy: Likewise.
21492         * modules/unistr/u32-strnlen: Likewise.
21493         * modules/unistr/u32-strpbrk: Likewise.
21494         * modules/unistr/u32-strrchr: Likewise.
21495         * modules/unistr/u32-strspn: Likewise.
21496         * modules/unistr/u32-strstr: Likewise.
21497         * modules/unistr/u32-strtok: Likewise.
21498         * modules/unistr/u32-to-u16: Likewise.
21499         * modules/unistr/u32-to-u8: Likewise.
21500         * modules/unistr/u32-uctomb: Likewise.
21501         * modules/uniwbrk/u8-wordbreaks: Likewise.
21502         * modules/uniwbrk/u16-wordbreaks: Likewise.
21503         * modules/uniwbrk/u32-wordbreaks: Likewise.
21504         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21505         * modules/uniwbrk/wordbreak-property: Likewise.
21506         * modules/uniwidth/u8-strwidth: Likewise.
21507         * modules/uniwidth/u8-width: Likewise.
21508         * modules/uniwidth/u16-strwidth: Likewise.
21509         * modules/uniwidth/u16-width: Likewise.
21510         * modules/uniwidth/u32-strwidth: Likewise.
21511         * modules/uniwidth/u32-width: Likewise.
21512         * modules/uniwidth/width: Likewise.
21513         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21514         with $(LIBUNISTRING).
21515         * modules/unicase/ignorable-tests: Likewise.
21516         * modules/unicase/locale-language-tests: Likewise.
21517         * modules/unicase/tolower-tests: Likewise.
21518         * modules/unicase/totitle-tests: Likewise.
21519         * modules/unicase/toupper-tests: Likewise.
21520         * modules/unicase/u8-casecmp-tests: Likewise.
21521         * modules/unicase/u8-casecoll-tests: Likewise.
21522         * modules/unicase/u8-casefold-tests: Likewise.
21523         * modules/unicase/u8-is-cased-tests: Likewise.
21524         * modules/unicase/u8-is-casefolded-tests: Likewise.
21525         * modules/unicase/u8-is-lowercase-tests: Likewise.
21526         * modules/unicase/u8-is-titlecase-tests: Likewise.
21527         * modules/unicase/u8-is-uppercase-tests: Likewise.
21528         * modules/unicase/u8-tolower-tests: Likewise.
21529         * modules/unicase/u8-totitle-tests: Likewise.
21530         * modules/unicase/u8-toupper-tests: Likewise.
21531         * modules/unicase/u16-casecmp-tests: Likewise.
21532         * modules/unicase/u16-casecoll-tests: Likewise.
21533         * modules/unicase/u16-casefold-tests: Likewise.
21534         * modules/unicase/u16-is-cased-tests: Likewise.
21535         * modules/unicase/u16-is-casefolded-tests: Likewise.
21536         * modules/unicase/u16-is-lowercase-tests: Likewise.
21537         * modules/unicase/u16-is-titlecase-tests: Likewise.
21538         * modules/unicase/u16-is-uppercase-tests: Likewise.
21539         * modules/unicase/u16-tolower-tests: Likewise.
21540         * modules/unicase/u16-totitle-tests: Likewise.
21541         * modules/unicase/u16-toupper-tests: Likewise.
21542         * modules/unicase/u32-casecmp-tests: Likewise.
21543         * modules/unicase/u32-casecoll-tests: Likewise.
21544         * modules/unicase/u32-casefold-tests: Likewise.
21545         * modules/unicase/u32-is-cased-tests: Likewise.
21546         * modules/unicase/u32-is-casefolded-tests: Likewise.
21547         * modules/unicase/u32-is-lowercase-tests: Likewise.
21548         * modules/unicase/u32-is-titlecase-tests: Likewise.
21549         * modules/unicase/u32-is-uppercase-tests: Likewise.
21550         * modules/unicase/u32-tolower-tests: Likewise.
21551         * modules/unicase/u32-totitle-tests: Likewise.
21552         * modules/unicase/u32-toupper-tests: Likewise.
21553         * modules/unicase/ulc-casecmp-tests: Likewise.
21554         * modules/unicase/ulc-casecoll-tests: Likewise.
21555         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21556         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21557         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21558         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21559         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21560         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21561         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21562         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21563         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21564         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21565         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21566         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21567         * modules/unictype/bidicategory-byname-tests: Likewise.
21568         * modules/unictype/bidicategory-name-tests: Likewise.
21569         * modules/unictype/bidicategory-of-tests: Likewise.
21570         * modules/unictype/bidicategory-test-tests: Likewise.
21571         * modules/unictype/block-list-tests: Likewise.
21572         * modules/unictype/block-of-tests: Likewise.
21573         * modules/unictype/block-test-tests: Likewise.
21574         * modules/unictype/category-C-tests: Likewise.
21575         * modules/unictype/category-Cc-tests: Likewise.
21576         * modules/unictype/category-Cf-tests: Likewise.
21577         * modules/unictype/category-Cn-tests: Likewise.
21578         * modules/unictype/category-Co-tests: Likewise.
21579         * modules/unictype/category-Cs-tests: Likewise.
21580         * modules/unictype/category-L-tests: Likewise.
21581         * modules/unictype/category-Ll-tests: Likewise.
21582         * modules/unictype/category-Lm-tests: Likewise.
21583         * modules/unictype/category-Lo-tests: Likewise.
21584         * modules/unictype/category-Lt-tests: Likewise.
21585         * modules/unictype/category-Lu-tests: Likewise.
21586         * modules/unictype/category-M-tests: Likewise.
21587         * modules/unictype/category-Mc-tests: Likewise.
21588         * modules/unictype/category-Me-tests: Likewise.
21589         * modules/unictype/category-Mn-tests: Likewise.
21590         * modules/unictype/category-N-tests: Likewise.
21591         * modules/unictype/category-Nd-tests: Likewise.
21592         * modules/unictype/category-Nl-tests: Likewise.
21593         * modules/unictype/category-No-tests: Likewise.
21594         * modules/unictype/category-P-tests: Likewise.
21595         * modules/unictype/category-Pc-tests: Likewise.
21596         * modules/unictype/category-Pd-tests: Likewise.
21597         * modules/unictype/category-Pe-tests: Likewise.
21598         * modules/unictype/category-Pf-tests: Likewise.
21599         * modules/unictype/category-Pi-tests: Likewise.
21600         * modules/unictype/category-Po-tests: Likewise.
21601         * modules/unictype/category-Ps-tests: Likewise.
21602         * modules/unictype/category-S-tests: Likewise.
21603         * modules/unictype/category-Sc-tests: Likewise.
21604         * modules/unictype/category-Sk-tests: Likewise.
21605         * modules/unictype/category-Sm-tests: Likewise.
21606         * modules/unictype/category-So-tests: Likewise.
21607         * modules/unictype/category-Z-tests: Likewise.
21608         * modules/unictype/category-Zl-tests: Likewise.
21609         * modules/unictype/category-Zp-tests: Likewise.
21610         * modules/unictype/category-Zs-tests: Likewise.
21611         * modules/unictype/category-and-not-tests: Likewise.
21612         * modules/unictype/category-and-tests: Likewise.
21613         * modules/unictype/category-byname-tests: Likewise.
21614         * modules/unictype/category-name-tests: Likewise.
21615         * modules/unictype/category-none-tests: Likewise.
21616         * modules/unictype/category-of-tests: Likewise.
21617         * modules/unictype/category-or-tests: Likewise.
21618         * modules/unictype/category-test-withtable-tests: Likewise.
21619         * modules/unictype/combining-class-tests: Likewise.
21620         * modules/unictype/ctype-alnum-tests: Likewise.
21621         * modules/unictype/ctype-alpha-tests: Likewise.
21622         * modules/unictype/ctype-blank-tests: Likewise.
21623         * modules/unictype/ctype-cntrl-tests: Likewise.
21624         * modules/unictype/ctype-digit-tests: Likewise.
21625         * modules/unictype/ctype-graph-tests: Likewise.
21626         * modules/unictype/ctype-lower-tests: Likewise.
21627         * modules/unictype/ctype-print-tests: Likewise.
21628         * modules/unictype/ctype-punct-tests: Likewise.
21629         * modules/unictype/ctype-space-tests: Likewise.
21630         * modules/unictype/ctype-upper-tests: Likewise.
21631         * modules/unictype/ctype-xdigit-tests: Likewise.
21632         * modules/unictype/decimal-digit-tests: Likewise.
21633         * modules/unictype/digit-tests: Likewise.
21634         * modules/unictype/mirror-tests: Likewise.
21635         * modules/unictype/numeric-tests: Likewise.
21636         * modules/unictype/property-alphabetic-tests: Likewise.
21637         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21638         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21639         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21640         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21641         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21642         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21643         * modules/unictype/property-bidi-control-tests: Likewise.
21644         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21645         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21646         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21647         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21648         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21649         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21650         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21651         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21652         * modules/unictype/property-bidi-pdf-tests: Likewise.
21653         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21654         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21655         * modules/unictype/property-byname-tests: Likewise.
21656         * modules/unictype/property-combining-tests: Likewise.
21657         * modules/unictype/property-composite-tests: Likewise.
21658         * modules/unictype/property-currency-symbol-tests: Likewise.
21659         * modules/unictype/property-dash-tests: Likewise.
21660         * modules/unictype/property-decimal-digit-tests: Likewise.
21661         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21662         * modules/unictype/property-deprecated-tests: Likewise.
21663         * modules/unictype/property-diacritic-tests: Likewise.
21664         * modules/unictype/property-extender-tests: Likewise.
21665         * modules/unictype/property-format-control-tests: Likewise.
21666         * modules/unictype/property-grapheme-base-tests: Likewise.
21667         * modules/unictype/property-grapheme-extend-tests: Likewise.
21668         * modules/unictype/property-grapheme-link-tests: Likewise.
21669         * modules/unictype/property-hex-digit-tests: Likewise.
21670         * modules/unictype/property-hyphen-tests: Likewise.
21671         * modules/unictype/property-id-continue-tests: Likewise.
21672         * modules/unictype/property-id-start-tests: Likewise.
21673         * modules/unictype/property-ideographic-tests: Likewise.
21674         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21675         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21676         * modules/unictype/property-ignorable-control-tests: Likewise.
21677         * modules/unictype/property-iso-control-tests: Likewise.
21678         * modules/unictype/property-join-control-tests: Likewise.
21679         * modules/unictype/property-left-of-pair-tests: Likewise.
21680         * modules/unictype/property-line-separator-tests: Likewise.
21681         * modules/unictype/property-logical-order-exception-tests: Likewise.
21682         * modules/unictype/property-lowercase-tests: Likewise.
21683         * modules/unictype/property-math-tests: Likewise.
21684         * modules/unictype/property-non-break-tests: Likewise.
21685         * modules/unictype/property-not-a-character-tests: Likewise.
21686         * modules/unictype/property-numeric-tests: Likewise.
21687         * modules/unictype/property-other-alphabetic-tests: Likewise.
21688         * modules/unictype/property-other-default-ignorable-code-point-tests:
21689         Likewise.
21690         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21691         * modules/unictype/property-other-id-continue-tests: Likewise.
21692         * modules/unictype/property-other-id-start-tests: Likewise.
21693         * modules/unictype/property-other-lowercase-tests: Likewise.
21694         * modules/unictype/property-other-math-tests: Likewise.
21695         * modules/unictype/property-other-uppercase-tests: Likewise.
21696         * modules/unictype/property-paired-punctuation-tests: Likewise.
21697         * modules/unictype/property-paragraph-separator-tests: Likewise.
21698         * modules/unictype/property-pattern-syntax-tests: Likewise.
21699         * modules/unictype/property-pattern-white-space-tests: Likewise.
21700         * modules/unictype/property-private-use-tests: Likewise.
21701         * modules/unictype/property-punctuation-tests: Likewise.
21702         * modules/unictype/property-quotation-mark-tests: Likewise.
21703         * modules/unictype/property-radical-tests: Likewise.
21704         * modules/unictype/property-sentence-terminal-tests: Likewise.
21705         * modules/unictype/property-soft-dotted-tests: Likewise.
21706         * modules/unictype/property-space-tests: Likewise.
21707         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21708         * modules/unictype/property-test-tests: Likewise.
21709         * modules/unictype/property-titlecase-tests: Likewise.
21710         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21711         * modules/unictype/property-unified-ideograph-tests: Likewise.
21712         * modules/unictype/property-uppercase-tests: Likewise.
21713         * modules/unictype/property-variation-selector-tests: Likewise.
21714         * modules/unictype/property-white-space-tests: Likewise.
21715         * modules/unictype/property-xid-continue-tests: Likewise.
21716         * modules/unictype/property-xid-start-tests: Likewise.
21717         * modules/unictype/property-zero-width-tests: Likewise.
21718         * modules/unictype/scripts-tests: Likewise.
21719         * modules/unictype/syntax-c-ident-tests: Likewise.
21720         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21721         * modules/unictype/syntax-java-ident-tests: Likewise.
21722         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21723         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21724         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21725         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21726         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21727         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21728         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21729         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21730         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21731         * modules/uniname/uniname-tests: Likewise.
21732         * modules/uninorm/canonical-decomposition-tests: Likewise.
21733         * modules/uninorm/compat-decomposition-tests: Likewise.
21734         * modules/uninorm/composition-tests: Likewise.
21735         * modules/uninorm/decomposing-form-tests: Likewise.
21736         * modules/uninorm/decomposition-tests: Likewise.
21737         * modules/uninorm/filter-tests: Likewise.
21738         * modules/uninorm/nfc-tests: Likewise.
21739         * modules/uninorm/nfd-tests: Likewise.
21740         * modules/uninorm/nfkc-tests: Likewise.
21741         * modules/uninorm/nfkd-tests: Likewise.
21742         * modules/uninorm/u8-normcmp-tests: Likewise.
21743         * modules/uninorm/u8-normcoll-tests: Likewise.
21744         * modules/uninorm/u16-normcmp-tests: Likewise.
21745         * modules/uninorm/u16-normcoll-tests: Likewise.
21746         * modules/uninorm/u32-normcmp-tests: Likewise.
21747         * modules/uninorm/u32-normcoll-tests: Likewise.
21748         * modules/unistdio/u8-asnprintf-tests: Likewise.
21749         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21750         * modules/unistdio/u8-vasprintf-tests: Likewise.
21751         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21752         * modules/unistdio/u8-vsprintf-tests: Likewise.
21753         * modules/unistdio/u16-asnprintf-tests: Likewise.
21754         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21755         * modules/unistdio/u16-vasprintf-tests: Likewise.
21756         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21757         * modules/unistdio/u16-vsprintf-tests: Likewise.
21758         * modules/unistdio/u32-asnprintf-tests: Likewise.
21759         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21760         * modules/unistdio/u32-vasprintf-tests: Likewise.
21761         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21762         * modules/unistdio/u32-vsprintf-tests: Likewise.
21763         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21764         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21765         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21766         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21767         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21768         * modules/unistr/u8-check-tests: Likewise.
21769         * modules/unistr/u8-chr-tests: Likewise.
21770         * modules/unistr/u8-cmp-tests: Likewise.
21771         * modules/unistr/u8-cmp2-tests: Likewise.
21772         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21773         * modules/unistr/u8-cpy-tests: Likewise.
21774         * modules/unistr/u8-mblen-tests: Likewise.
21775         * modules/unistr/u8-mbsnlen-tests: Likewise.
21776         * modules/unistr/u8-mbtouc-tests: Likewise.
21777         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21778         * modules/unistr/u8-mbtoucr-tests: Likewise.
21779         * modules/unistr/u8-move-tests: Likewise.
21780         * modules/unistr/u8-next-tests: Likewise.
21781         * modules/unistr/u8-prev-tests: Likewise.
21782         * modules/unistr/u8-set-tests: Likewise.
21783         * modules/unistr/u8-stpcpy-tests: Likewise.
21784         * modules/unistr/u8-stpncpy-tests: Likewise.
21785         * modules/unistr/u8-strcat-tests: Likewise.
21786         * modules/unistr/u8-strcmp-tests: Likewise.
21787         * modules/unistr/u8-strcoll-tests: Likewise.
21788         * modules/unistr/u8-strcpy-tests: Likewise.
21789         * modules/unistr/u8-strdup-tests: Likewise.
21790         * modules/unistr/u8-strlen-tests: Likewise.
21791         * modules/unistr/u8-strmblen-tests: Likewise.
21792         * modules/unistr/u8-strmbtouc-tests: Likewise.
21793         * modules/unistr/u8-strncat-tests: Likewise.
21794         * modules/unistr/u8-strncmp-tests: Likewise.
21795         * modules/unistr/u8-strncpy-tests: Likewise.
21796         * modules/unistr/u8-strnlen-tests: Likewise.
21797         * modules/unistr/u8-to-u16-tests: Likewise.
21798         * modules/unistr/u8-to-u32-tests: Likewise.
21799         * modules/unistr/u8-uctomb-tests: Likewise.
21800         * modules/unistr/u16-check-tests: Likewise.
21801         * modules/unistr/u16-chr-tests: Likewise.
21802         * modules/unistr/u16-cmp-tests: Likewise.
21803         * modules/unistr/u16-cmp2-tests: Likewise.
21804         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21805         * modules/unistr/u16-cpy-tests: Likewise.
21806         * modules/unistr/u16-mblen-tests: Likewise.
21807         * modules/unistr/u16-mbsnlen-tests: Likewise.
21808         * modules/unistr/u16-mbtouc-tests: Likewise.
21809         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21810         * modules/unistr/u16-mbtoucr-tests: Likewise.
21811         * modules/unistr/u16-move-tests: Likewise.
21812         * modules/unistr/u16-next-tests: Likewise.
21813         * modules/unistr/u16-prev-tests: Likewise.
21814         * modules/unistr/u16-set-tests: Likewise.
21815         * modules/unistr/u16-stpcpy-tests: Likewise.
21816         * modules/unistr/u16-stpncpy-tests: Likewise.
21817         * modules/unistr/u16-strcat-tests: Likewise.
21818         * modules/unistr/u16-strcmp-tests: Likewise.
21819         * modules/unistr/u16-strcoll-tests: Likewise.
21820         * modules/unistr/u16-strcpy-tests: Likewise.
21821         * modules/unistr/u16-strdup-tests: Likewise.
21822         * modules/unistr/u16-strlen-tests: Likewise.
21823         * modules/unistr/u16-strmblen-tests: Likewise.
21824         * modules/unistr/u16-strmbtouc-tests: Likewise.
21825         * modules/unistr/u16-strncat-tests: Likewise.
21826         * modules/unistr/u16-strncmp-tests: Likewise.
21827         * modules/unistr/u16-strncpy-tests: Likewise.
21828         * modules/unistr/u16-strnlen-tests: Likewise.
21829         * modules/unistr/u16-to-u32-tests: Likewise.
21830         * modules/unistr/u16-to-u8-tests: Likewise.
21831         * modules/unistr/u16-uctomb-tests: Likewise.
21832         * modules/unistr/u32-check-tests: Likewise.
21833         * modules/unistr/u32-chr-tests: Likewise.
21834         * modules/unistr/u32-cmp-tests: Likewise.
21835         * modules/unistr/u32-cmp2-tests: Likewise.
21836         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21837         * modules/unistr/u32-cpy-tests: Likewise.
21838         * modules/unistr/u32-mblen-tests: Likewise.
21839         * modules/unistr/u32-mbsnlen-tests: Likewise.
21840         * modules/unistr/u32-mbtouc-tests: Likewise.
21841         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21842         * modules/unistr/u32-mbtoucr-tests: Likewise.
21843         * modules/unistr/u32-move-tests: Likewise.
21844         * modules/unistr/u32-next-tests: Likewise.
21845         * modules/unistr/u32-prev-tests: Likewise.
21846         * modules/unistr/u32-set-tests: Likewise.
21847         * modules/unistr/u32-stpcpy-tests: Likewise.
21848         * modules/unistr/u32-stpncpy-tests: Likewise.
21849         * modules/unistr/u32-strcat-tests: Likewise.
21850         * modules/unistr/u32-strcmp-tests: Likewise.
21851         * modules/unistr/u32-strcoll-tests: Likewise.
21852         * modules/unistr/u32-strcpy-tests: Likewise.
21853         * modules/unistr/u32-strdup-tests: Likewise.
21854         * modules/unistr/u32-strlen-tests: Likewise.
21855         * modules/unistr/u32-strmblen-tests: Likewise.
21856         * modules/unistr/u32-strmbtouc-tests: Likewise.
21857         * modules/unistr/u32-strncat-tests: Likewise.
21858         * modules/unistr/u32-strncmp-tests: Likewise.
21859         * modules/unistr/u32-strncpy-tests: Likewise.
21860         * modules/unistr/u32-strnlen-tests: Likewise.
21861         * modules/unistr/u32-to-u16-tests: Likewise.
21862         * modules/unistr/u32-to-u8-tests: Likewise.
21863         * modules/unistr/u32-uctomb-tests: Likewise.
21864         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21865         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21866         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21867         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21868         * modules/uniwidth/u8-strwidth-tests: Likewise.
21869         * modules/uniwidth/u8-width-tests: Likewise.
21870         * modules/uniwidth/u16-strwidth-tests: Likewise.
21871         * modules/uniwidth/u16-width-tests: Likewise.
21872         * modules/uniwidth/u32-strwidth-tests: Likewise.
21873         * modules/uniwidth/u32-width-tests: Likewise.
21874         * modules/uniwidth/width-tests: Likewise.
21875
21876 2010-05-18  Richard Jones  <rjones@redhat.com>
21877
21878         doc: users.txt: list hivex
21879         * users.txt: Add hivex.
21880
21881 2010-05-18  Richard Jones  <rjones@redhat.com>
21882
21883         doc: users.txt: list febootstrap
21884         * users.txt: Add febootstrap.
21885
21886 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
21887
21888         bootstrap: fix an error when gnulib is not used as a git submodule
21889         * build-aux/bootstrap (gnulib_path): If its length is zero then
21890         assign "gnulib" to it.
21891         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
21892
21893 2010-05-16  Bruno Haible  <bruno@clisp.org>
21894
21895         Avoid autoconf warnings about AM_ICONV.
21896         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
21897         2.64.
21898
21899 2010-05-16  Bruno Haible  <bruno@clisp.org>
21900
21901         absolute-header: Make the macro usable in more situations.
21902         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
21903         from gl_ABSOLUTE_HEADER.
21904         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
21905
21906 2010-05-16  James Youngman  <jay@gnu.org>
21907
21908         doc: update users.txt
21909         * users.txt: Add CSSC.
21910
21911 2010-05-16  Jim Meyering  <meyering@redhat.com>
21912
21913         init.sh: fix an error in the previous change; add more comments
21914         * tests/init.sh: Compare exit code in loop against 9, not 2.
21915         Patch by Bruno Haible.
21916         Make the two tests more similar by adding an empty "then" clause.
21917         Add comments.
21918
21919         init.sh: avoid unnecessary shell re-exec
21920         * tests/init.sh: Improve the re-exec-required check to first test the
21921         current shell.  If it passes the test, do not search for a shell that
21922         does pass, and do not re-exec.  This test is particularly contorted to
21923         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21924         of $(...) evokes a syntax error and causes immediate shell exit with
21925         status 2.  Bruno Haible reported that the re-exec made it impossible
21926         to single-step through any init.sh-using script.
21927
21928 2010-05-16  Bruno Haible  <bruno@clisp.org>
21929
21930         Fix collision between gnulib's and libintl's printf replacements.
21931         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21932         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21933         (printf): When using GNU C, map the __printf__ function to rpl_printf
21934         via __asm__. When not using GNU C, define rpl_printf instead of
21935         __printf__.
21936         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21937         commit.
21938         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21939         commit.
21940         * m4/asm-underscore.m4: New file.
21941         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21942         * modules/stdio (Files): Add m4/asm-underscore.m4.
21943         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21944         Reported by Ben Pfaff.
21945
21946 2010-05-16  Bruno Haible  <bruno@clisp.org>
21947
21948         verify: Avoid skipping the test on openSUSE 11.0.
21949         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21950
21951 2010-05-13  Bruno Haible  <bruno@clisp.org>
21952
21953         Avoid useless warnings from G++.
21954         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21955         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21956         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21957
21958 2010-05-11  Jim Meyering  <meyering@redhat.com>
21959
21960         maint.mk: tweak preceding change
21961         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21962         regexps tighter by anchoring at EOL, and make the new group "shy"
21963         for slightly decreased overhead.
21964
21965 2010-05-11  Eric Blake  <eblake@redhat.com>
21966
21967         maint.mk: gnulib doesn't guarantee NSIG
21968         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21969
21970 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21971
21972         test-pwrite.c: Remove unused variable declaration.
21973         * tests/test-pwrite.c (main): Remove read_buf declaration.
21974
21975         Remove useless test-pwrite.sh file.
21976         * tests/test-pwrite.sh: Delete file.
21977         * modules/pwrite-tests: Remove references.
21978         Reported by Bruno Haible.
21979
21980 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21981
21982         init.sh: fix a typo
21983         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21984
21985 2010-05-10  Jim Meyering  <meyering@redhat.com>
21986
21987         maint.mk: avoid using a temporary file in the always-defined-macros check
21988         * top/maint.mk (.re-defmac): Remove rule.
21989         (gl_trap_): Remove definition.
21990         (sc_prohibit_always-defined_macros): Rewrite not to create and
21991         depend on a temporary file.  Instead, depend on GNU grep's ability
21992         to read a list of regular expressions from stdin when given "-f -".
21993
21994 2010-05-09  Bruno Haible  <bruno@clisp.org>
21995
21996         Update to GNU gettext 0.18, part 1.
21997         * m4/gettext.m4: Update to GNU gettext 0.18.
21998         * m4/intl.m4: Likewise.
21999         * m4/po.m4: Likewise.
22000         * modules/gettext (Files): Add m4/fcntl-o.m4.
22001         (configure.ac): Require gettext infrastructure from version 0.18.
22002
22003 2010-05-09  Jim Meyering  <meyering@redhat.com>
22004
22005         init.sh: enable MALLOC_PERTURB_
22006         * tests/init.sh: Enable glibc's malloc-perturbing option.
22007
22008         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22009         With my recent change in init.sh from the two-line form:
22010             -#   : ${srcdir=.}
22011             -#   . "$srcdir/init.sh"; path_prepend_ .
22012             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22013         I noticed that using the one-line form would cause this test
22014         to fail with a false-positive, or to stop working altogether,
22015         depending on whether help-version changed or all the tests did.
22016         * top/maint.mk (_hv_regex): Remove this definition.
22017         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22018         (_hv_regex_strong): Use a stronger regex to check for conformance.
22019         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22020         Give a separate diagnostic for lack of conforming use.
22021
22022         maint.mk: prohibit definition of symbols defined by gnulib
22023         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22024         definition of symbols defined by gnulib.
22025
22026 2010-05-09  Bruno Haible  <bruno@clisp.org>
22027
22028         acl: Avoid test failure on Cygwin-hosted mingw.
22029         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22030
22031 2010-05-09  Bruno Haible  <bruno@clisp.org>
22032
22033         error: Use system's fcntl function.
22034         * lib/error.c (fcntl): Undefine.
22035
22036 2010-05-09  Jim Meyering  <meyering@redhat.com>
22037
22038         verify: adjust formatting to be more consistent
22039         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22040         argument-list '('s, and after one comma.
22041
22042 2010-05-09  Bruno Haible  <bruno@clisp.org>
22043
22044         error: More reliable output on mingw.
22045         * lib/error.c: Include <windows.h>.
22046         (is_open): New function.
22047         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22048         defined.
22049
22050 2010-05-09  Bruno Haible  <bruno@clisp.org>
22051
22052         vasnprintf: Fix syntax errors in libintl build on mingw.
22053         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22054         pad_ourselves and prec_ourselves after use.
22055
22056 2010-05-08  Bruno Haible  <bruno@clisp.org>
22057
22058         * lib/config.charset: Update comments for Cygwin 1.7.
22059         * lib/localcharset.c: Likewise.
22060
22061 2010-05-07  Jim Meyering  <meyering@redhat.com>
22062
22063         init.sh: improve comments
22064         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22065         . "${srcdir=.}/init.sh"; path_prepend_ .
22066         Add a note about path_prepend_ and the alternative of using
22067         TESTS_ENVIRONMENT.
22068
22069 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22070
22071         exclude: Unescape hashed patterns in wildcard mode.
22072         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22073         to the hash list.
22074         * tests/test-exclude8.sh: New test case.
22075         * modules/exclude-tests: Add new test.
22076
22077 2010-05-05  Eric Blake  <eblake@redhat.com>
22078
22079         verify: automate tests
22080         * modules/verify-tests: New module.
22081         * tests/test-verify.sh: New file.
22082         * tests/test-verify.c: Guard each negative test with a unique id.
22083         Also avoid warning about unused left hand of comma expressions.
22084
22085 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22086
22087         Further improvements to verify.h, suggested by Eric Blake.
22088         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22089         the GL_* versions, to avoid collision with OpenGL.
22090         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22091         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22092         than testing merely whether it's defined.
22093
22094         Modify verify.h to pacify gcc -Wredundant_decls.
22095         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22096         These use the prefix "GL_" since they're likely to be useful elsewhere.
22097         We may need to break them out into a different .h file.
22098         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22099         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22100         of verify_function__.
22101
22102 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22103
22104         Tests for module pwrite.
22105         * modules/pwrite-tests: New file.
22106         * tests/test-pwrite.sh: New file.
22107         * tests/test-pwrite.c: New file.
22108
22109         New module pwrite.
22110         * lib/unistd.in.h (pwrite): New declaration.
22111         * lib/pwrite.c: New file, from glibc with modifications.
22112         * m4/pwrite.m4: New file.
22113         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22114         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22115         REPLACE_PWRITE.
22116         * modules/pwrite: New file.
22117         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22118         REPLACE_PWRITE.
22119         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22120         * doc/posix-functions/pwrite.texi: Mention the new module.
22121
22122 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22123
22124         pread: Update documentation.
22125         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22126
22127 2010-05-04  Eric Blake  <eblake@redhat.com>
22128
22129         docs: update cygwin progress
22130         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22131         this bug.
22132         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22133         Added in cygwin 1.7.2.
22134         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22135         Likewise.
22136         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22137         Likewise.
22138         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22139         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22140         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22141         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22142         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22143         Mention nproc module.
22144         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22145         bug in cygwin 1.7.5 addition.
22146         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22147         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22148         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22149         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22150         1.7.5.
22151         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22152         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22153         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22154         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22155         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22156         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22157         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22158         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22159         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22160         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22161         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22162         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22163         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22164         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22165         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22166         Likewise.
22167         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22168         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22169         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22170         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22171         Likewise.
22172         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22173         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22174         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22175         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22176         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22177         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22178         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22179         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22180         Likewise.
22181         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22182         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22183         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22184         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22185         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22186         Likewise.
22187         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22188         Likewise.
22189         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22190         Likewise.
22191         * doc/glibc-functions/xdrrec_endofrecord.texi
22192         (xdrrec_endofrecord): Likewise.
22193         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22194         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22195         Likewise.
22196         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22197         Likewise.
22198
22199 2010-05-04  Jim Meyering  <meyering@redhat.com>
22200
22201         gendocs.sh: make its "-s FILE" option more useful
22202         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22203         $PACKAGE to reflect the probably-different basename of "FILE".
22204
22205 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22206
22207         bootstrap: don't ignore download_po_files failure
22208         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22209         failure.
22210
22211 2010-05-03  Jim Meyering  <meyering@redhat.com>
22212
22213         maint.mk: allow to pass options to gendocs.sh
22214         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22215         (gendocs_options_): New overridable variable.
22216
22217         gnu-web-doc-update: don't ignore configure or build failure
22218         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22219
22220         announce-gen: backslash-escape '@'s in --help output
22221         * build-aux/announce-gen: Fix syntax errors.
22222
22223         maint.mk, announce-gen: allow project-specific announcement mail headers
22224         * top/maint.mk (translation_project_): Define default.
22225         (announcement_Cc_, announcement_mail_headers_): Likewise.
22226         (announcement): Invoke announce-gen with new --mail-headers option.
22227         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22228
22229         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22230         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22231         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22232         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22233         line in the "err2" output file when running "make check" in verbose
22234         mode (i.e., with set -x enabled).
22235
22236 2010-05-03  Bruno Haible  <bruno@clisp.org>
22237
22238         wctob: Fix for weird platforms.
22239         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22240         argument value.
22241
22242 2010-05-03  Jim Meyering  <meyering@redhat.com>
22243
22244         maint.mk: prohibit unwarranted use of <strings.h>
22245         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22246         strings.h in a file that does not also use strcasecmp, strncasecmp,
22247         ffs or ffsll.
22248
22249         maint.mk: remove obsolete comments
22250         * top/maint.mk: Remove stale, commented-out rules.
22251
22252 2010-05-02  Bruno Haible  <bruno@clisp.org>
22253
22254         wcwidth: Declare also when it's aliased.
22255         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22256         macro.
22257
22258 2010-05-02  Bruno Haible  <bruno@clisp.org>
22259
22260         Fix regression from 2010-04-25.
22261         * gnulib-tool (func_modules_transitive_closure): Check the status of
22262         all modules, not only of the tests that are of the form foo-tests where
22263         foo is a module.
22264
22265 2010-05-02  Bruno Haible  <bruno@clisp.org>
22266
22267         wctob: Work around nasty Cygwin 1.7.2 bug.
22268         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22269         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22270
22271 2010-05-01  Bruno Haible  <bruno@clisp.org>
22272
22273         fpurge: Sharper test.
22274         * tests/test-fpurge.c (main): Add one more ftell check.
22275         * modules/fpurge-tests (Depends-on): Add ftell.
22276         Suggested by Eric Blake.
22277
22278 2010-05-01  Bruno Haible  <bruno@clisp.org>
22279
22280         ftello: Another test.
22281         * tests/test-ftello3.c: New file.
22282         * modules/ftello-tests (Files): Add it.
22283         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22284         MOSTLYCLEANFILES.
22285
22286         ftell: Another test.
22287         * tests/test-ftell3.c: New file.
22288         * modules/ftell-tests (Files): Add it.
22289         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22290         MOSTLYCLEANFILES.
22291
22292 2010-05-01  Bruno Haible  <bruno@clisp.org>
22293
22294         ftell, ftello: Work around Solaris bug.
22295         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22296         * lib/ftello.c: Include stdio-impl.h.
22297         (ftello): On Solaris, when _IOWRT is set, compute the result without
22298         looking at _IOREAD.
22299         * modules/ftello (Files): Add lib/stdio-impl.h.
22300         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22301         * doc/posix-functions/ftello.texi: Likewise.
22302         Reported by Eric Blake.
22303
22304 2010-05-01  Bruno Haible  <bruno@clisp.org>
22305
22306         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22307         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22308         the _IOWRT flag is also set.
22309
22310 2010-05-01  Bruno Haible  <bruno@clisp.org>
22311
22312         Fix doc about a HP-UX stdio bug.
22313         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22314         * doc/posix-functions/ftello.texi: Likewise.
22315
22316 2010-05-01  Bruno Haible  <bruno@clisp.org>
22317
22318         lseek test: Fix failure on Solaris.
22319         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22320         output.
22321
22322 2010-04-30  Jim Meyering  <meyering@redhat.com>
22323
22324         bootstrap: don't ignore failure to generate po*/Makevars
22325         * build-aux/bootstrap (with_gettext): Don't ignore failure
22326         to create po/Makevars or runtime-po/Makevars.
22327
22328 2010-04-29  Eric Blake  <eblake@redhat.com>
22329
22330         headers: relax license to LGPLv2+
22331         * modules/fcntl-h (License): Relax license.
22332         * modules/getopt-posix (License): Likewise.
22333         * modules/locale (License): Likewise.
22334         * modules/math (License): Likewise.
22335         * modules/pty (License): Likewise.
22336         * modules/sched (License): Likewise.
22337         * modules/search (License): Likewise.
22338         * modules/spawn (License): Likewise.
22339         * modules/stdarg (License): Likewise.
22340         * modules/sysexits (License): Likewise.
22341
22342 2010-04-29  Jim Meyering  <meyering@redhat.com>
22343
22344         inttypes: relax license to LGPLv2+
22345         * modules/inttypes (License): Relax license.
22346
22347 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22348
22349         * top/maint.mk (indent): Run twice to produce idempotent results.
22350
22351 2010-04-28  Bruno Haible  <bruno@clisp.org>
22352
22353         getdate: Generate getdate.c in the source directory.
22354         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22355         MOSTLYCLEANFILES.
22356         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22357
22358 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22359
22360         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22361         is not declared as a const *; avoid warnings in that case.
22362
22363 2010-04-28  Eric Blake  <eblake@redhat.com>
22364
22365         canonicalize-lgpl: avoid compiler warning
22366         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22367         declaration' / 'extraneous semicolon' warning with some compilers.
22368         Reported by Andreas Gruenbacher.
22369
22370 2010-04-28  Jim Meyering  <meyering@redhat.com>
22371
22372         init.sh: ensure a more reliable exit status when exiting via trap
22373         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22374         Inspired by patches from Dmitry V. Levin.
22375         Also trap on signal 3 (SIGQUIT).
22376
22377 2010-04-27  Bruno Haible  <bruno@clisp.org>
22378
22379         Update doc about utimes().
22380         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22381         'utimens' module.
22382         Reported by Andreas Gruenbacher <agruen@suse.de>.
22383
22384 2010-04-27  Eric Blake  <eblake@redhat.com>
22385
22386         full-read, full-write: relax license
22387         * modules/full-read (License): Drop to LGPLv2+.
22388         * modules/full-write (License): Likewise.
22389         * modules/safe-read (License): Likewise.
22390         * modules/safe-write (License): Likewise.
22391
22392         pthread: mention library for linking
22393         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22394
22395 2010-04-27  Jim Meyering  <meyering@redhat.com>
22396
22397         maint.mk: fix a bug introduced in last change
22398         * top/maint.mk (gl_assured_headers_): Now that all names are on
22399         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22400         is not anchored to end of word, it should be adequate.
22401
22402         maint.mk: avoid side-effect in latest syntax-check
22403         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22404         to run commands via $(shell...), and hence to incur cost only when
22405         the new rule is actually run.
22406
22407         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22408         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22409         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22410         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22411         (gl_assured_headers_, az_, AZ_): Define.
22412         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22413
22414 2010-04-26  Jim Meyering  <jim@meyering.net>
22415             Bruno Haible  <bruno@clisp.org>
22416
22417         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22418         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22419         Prompted by an exchange with Gilles Espinasse.
22420
22421 2010-04-26  Jim Meyering  <meyering@redhat.com>
22422
22423         git-version-gen: aesthetic tweak
22424         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22425         so that the command remains on a single line.
22426
22427 2010-04-26  Eric Blake  <eblake@redhat.com>
22428
22429         git-version-gen: allow use on EBCDIC hosts
22430         * build-aux/git-version-gen (dirty): Use literal rather than tying
22431         ourselves to ascii.
22432         Reported by Steve Goetze.
22433
22434 2010-04-25  Bruno Haible  <bruno@clisp.org>
22435
22436         netdb: Add support for GNULIB_POSIXCHECK.
22437         * lib/netdb.in.h: Include warn-on-use.h.
22438         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22439         functions are used when GNULIB_POSIXCHECK is defined and the
22440         getaddrinfo module is not in use.
22441         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22442         freeaddrinfo, gai_strerror, getnameinfo are declared.
22443         * modules/netdb (Depends-on): Add warn-on-use.
22444         (Makefile.am): Include warn-on-use.h in netdb.h.
22445
22446 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22447
22448         build: avoid "make check" failure without .git/ directory
22449         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22450         there is no .git/ directory.
22451
22452 2010-04-25  Bruno Haible  <bruno@clisp.org>
22453
22454         ptsname: Fix misuse of ttyname_r.
22455         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22456         of errno.
22457
22458 2010-04-25  Bruno Haible  <bruno@clisp.org>
22459
22460         ttyname_r: Make it work on Solaris 10.
22461         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22462         if the system function has the POSIX declaration. Test whether the
22463         function fails if the buffer is less than 128 bytes large.
22464         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22465         system's ttyname_r function. Provide a reasonably large buffer.
22466         * modules/ttyname_r (Depends-on): Add extensions.
22467         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22468
22469 2010-04-25  Bruno Haible  <bruno@clisp.org>
22470
22471         Use the 'extensions' module for some more functions on Solaris.
22472         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22473         module.
22474         * doc/posix-functions/ctime_r.texi: Likewise.
22475         * doc/posix-functions/getgrgid_r.texi: Likewise.
22476         * doc/posix-functions/getgrnam_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         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22482         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22483
22484 2010-04-25  Bruno Haible  <bruno@clisp.org>
22485
22486         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22487         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22488         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22489         * lib/ttyname_r.c: Include <limits.h>.
22490         (ttyname_r): Define using the system's ttyname_r function, if it exists
22491         and not on Solaris.
22492         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22493         set.
22494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22495         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22496         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22497         Reported by Simon Josefsson.
22498
22499 2010-04-25  Bruno Haible  <bruno@clisp.org>
22500
22501         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22502         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22503         * doc/posix-functions/ctime_r.texi: Likewise.
22504         * doc/posix-functions/getgrgid_r.texi: Likewise.
22505         * doc/posix-functions/getgrnam_r.texi: Likewise.
22506         * doc/posix-functions/getlogin_r.texi: Likewise.
22507         * doc/posix-functions/getpwnam_r.texi: Likewise.
22508         * doc/posix-functions/getpwuid_r.texi: Likewise.
22509         * doc/posix-functions/readdir_r.texi: Likewise.
22510         * doc/posix-functions/sigwait.texi: Likewise.
22511         * doc/posix-functions/ttyname_r.texi: Likewise.
22512         Reported by Simon Josefsson.
22513
22514 2010-04-25  Bruno Haible  <bruno@clisp.org>
22515
22516         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22517         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22518         also to --create-testdir.
22519         (func_acceptable): Don't consider the status of *-tests modules here.
22520         (func_modules_transitive_closure): Consider it here, before including a
22521         test module.
22522         (func_import, func_create_testdir): Set inc_all_direct_tests,
22523         inc_all_indirect_tests.
22524         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22525         --create-testdir and --create-megatestdir.
22526
22527 2010-04-25  Bruno Haible  <bruno@clisp.org>
22528
22529         gnulib-tool: Add --without-*-tests options.
22530         * gnulib-tool (func_usage): Document the --without-*-tests options.
22531         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22532         excl_unportable_tests): New variables.
22533         Fail if they are specified with --import or --update.
22534         (func_acceptable): Respect the excl_*_tests variables.
22535         (func_import): Set the excl_*_tests variables to empty.
22536
22537 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22538             Bruno Haible  <bruno@clisp.org>
22539
22540         Work around a MacOS X 10.4 bug with openpty.
22541         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22542         * tests/test-openpty.c (main): Close the master side explicitly.
22543
22544 2010-04-25  Bruno Haible  <bruno@clisp.org>
22545
22546         strnlen: Fix a C++ test error on MacOS X and Solaris.
22547         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22548         the function is not declared.
22549         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22550         Simon Josefsson.
22551
22552 2010-04-24  Bruno Haible  <bruno@clisp.org>
22553
22554         Avoid a gcc warning.
22555         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22556         of correct type for %08lx directive.
22557         Reported by Eric Blake.
22558
22559 2010-04-24  Bruno Haible  <bruno@clisp.org>
22560
22561         vasnprintf: Correct errno value in case of out-of-memory.
22562         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22563         or sprintf. Use the errno value from SNPRINTF or sprintf.
22564         Reported by Ian Beckwith <ianb@erislabs.net>.
22565
22566 2010-04-24  Bruno Haible  <bruno@clisp.org>
22567
22568         ansi-c++-opt: Find correct compiler when cross-compiling.
22569         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22570         AC_CHECK_PROGS.
22571         Reported by Simon Josefsson.
22572
22573 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22574
22575         vc-list-files: Add support for subversion
22576         * build-aux/vc-list-files: Use "svn list" to generate the list of
22577         files controlled by subversion.
22578
22579 2010-04-23  Jim Meyering  <meyering@redhat.com>
22580
22581         vc-list-files tests: convert to use init.sh
22582         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22583         path_prepend_.
22584         Use Exit, not exit.
22585         Use skip_ rather than open coding it.
22586         Remove trap set-up and compare definitions.
22587         * tests/test-vc-list-files-git.sh: Likewise.
22588         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22589
22590 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22591
22592         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22593         backup files.
22594
22595 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22596
22597         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22598
22599 2010-04-20  Eric Blake  <eblake@redhat.com>
22600
22601         tests: be robust to ignored SIGPIPE
22602         * tests/test-select-in.sh: Consume all output.
22603         * tests/test-lseek.sh: Check correct exit status, while avoiding
22604         EPIPE.
22605
22606 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22607             Bruno Haible  <bruno@clisp.org>
22608
22609         visibility: Don't use -fvisibility if it leads to a warning.
22610         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22611         yes, don't pretend that visibility works if it leads to a warning.
22612         Reported by Mike Gran <spk121@yahoo.com>.
22613
22614 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22615
22616         * build-aux/bootstrap: Use "git -h" for testing for supported options
22617         instead of "git --help".  The short-form option only shows a summary,
22618         and doesn't layout the full man page.  Grep for the full option name
22619         in the summary, too.
22620
22621 2010-04-19  Bruno Haible  <bruno@clisp.org>
22622
22623         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22624         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22625         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22626         mention of RELOCATABLE_STRIP.
22627         Reported by Sylvain Beucler <beuc@beuc.net>.
22628
22629 2010-04-19  Bruno Haible  <bruno@clisp.org>
22630
22631         * lib/diffseq.h: Fix typo in comment.
22632         Reported by Eric Blake.
22633
22634 2010-04-19  Bruno Haible  <bruno@clisp.org>
22635
22636         ioctl: Move autoconf macro to a .m4 file.
22637         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22638         * modules/ioctl (Files): Add it.
22639         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22640         Reported by Ian Beckwith <ianb@erislabs.net>.
22641
22642 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22643             Bruno Haible  <bruno@clisp.org>
22644
22645         diffseq: Accommodate use-case with abstract arrays.
22646         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22647         is not defined.
22648         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22649         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22650
22651 2010-04-18  Bruno Haible  <bruno@clisp.org>
22652
22653         * doc/posix-headers/stdbool.texi: More precise wording.
22654
22655 2010-04-17  Jim Meyering  <meyering@redhat.com>
22656
22657         maint.mk: use gnu-style indentation in an embedded perl script
22658         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22659         Rename variable: s/two/last_two_bytes/
22660
22661 2010-04-16  Eric Blake  <eblake@redhat.com>
22662
22663         test-stdbool: skip test that fails with Solaris CC
22664         * tests/test-stdbool.c (f): Skip test that causes compilation
22665         error under buggy C++ compiler.
22666         * lib/stdbool.in.h: Document the limitation.
22667         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22668
22669         setenv: allow compilation with C++
22670         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22671         register keyword.
22672
22673         stdint: allow test to pass with C++
22674         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22675
22676         getopt: allow compilation with C++
22677         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22678         struct.
22679         * lib/getopt.c (_getopt_internal_r): Use correct type.
22680         Reported by Dagobert Michelson, via Joel E. Denny.
22681
22682 2010-04-16  Bruno Haible  <bruno@clisp.org>
22683
22684         Override netdb.h always.
22685         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22686         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22687         Reported by Ludovic Courtès <ludo@gnu.org>.
22688
22689 2010-04-15  Bruno Haible  <bruno@clisp.org>
22690
22691         openpty: Fix mistake from 2010-03-21.
22692         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22693         Reported by Simon Josefsson.
22694
22695 2010-04-15  Eric Blake  <eblake@redhat.com>
22696
22697         test-forkpty: fix expected signature
22698         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22699         Reported by Simon Josefsson.
22700
22701 2010-04-15  Jim Meyering  <meyering@redhat.com>
22702
22703         maint.mk: texinfo_suffix_re_: correct the default regexp
22704         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22705
22706         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22707         make it configurable via texinfo_suffix_re_.
22708
22709 2010-04-14  Eric Blake  <eblake@redhat.com>
22710
22711         strtok_r: relax license to LGPLv2+
22712         * modules/strtok_r (License): Relax license.
22713         Reported by Matthias Bolte.
22714
22715 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22716
22717         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22718         version 1.4.4 by default instead of requiring the libgcrypt
22719         version used during build.  This makes it possible to use the
22720         application with older but still binary compatible libgcrypt
22721         versions.
22722
22723 2010-04-13  Eric Blake  <eblake@redhat.com>
22724
22725         getopt-gnu: match recent glibc fixes and posix ruling
22726         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22727         '+' handling, when requesting extensions.
22728         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22729         'W;' handling.
22730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22731         * doc/posix-functions/getopt.texi (getopt): Document this.
22732         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22733         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22734         Likewise.
22735
22736         getopt: merge bug fixes from glibc
22737         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22738         diagnostics.  Honor '+:' correctly.  Reject ';'.
22739
22740         getopt-posix: detect MacOS bug
22741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22742         optind when missing a required argument.
22743         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22744         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22745         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22746         Likewise.
22747
22748         getopt-posix: avoid spurious failure on Solaris
22749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22750         an indicator that setting optind=1 is sufficient for reset.
22751
22752         getopt-posix: avoid spurious failure on FreeBSD
22753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22754         in POSIX mode, since the m4 test uses it.
22755
22756         gnulib-tool: silence warning on BSD sh
22757         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22758
22759 2010-04-13  Jim Meyering  <meyering@redhat.com>
22760
22761         doc: users.txt: GNU patch now uses gnulib
22762         * users.txt: Add patch.
22763
22764 2010-04-12  Jim Meyering  <meyering@redhat.com>
22765
22766         maint.mk: generate more concise timing data for syntax-check rules
22767         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22768         " done" from each line that reports a syntax-check test duration.
22769
22770 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22771
22772         git-version-gen: use "git update-index..." rather than "git status"
22773         * build-aux/git-version-gen: Use git update-index --refresh, not
22774         "git status".  With some versions of git, "git status" would fail
22775         to update the index and result in an unwarranted "-dirty" suffix.
22776
22777 2010-04-11  Jim Meyering  <meyering@redhat.com>
22778
22779         openat: correct formatting (no semantic change)
22780         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22781         Suggested by Bruno Haible.
22782
22783 2010-04-11  Bruno Haible  <bruno@clisp.org>
22784
22785         Stricter declaration checking in testdirs.
22786         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22787         If for_tests is true, augment AM_CPPFLAGS to define
22788         GNULIB_STRICT_CHECKING.
22789         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22790         GNULIB_STRICT_CHECKING is defined, verify that the function is
22791         declared.
22792
22793 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22794             Bruno Haible  <bruno@clisp.org>
22795
22796         libunistring: Improve configure output.
22797         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22798         Don't say "consider installing GNU libunistring" when checking again
22799         with libiconv.
22800
22801 2010-04-11  Bruno Haible  <bruno@clisp.org>
22802
22803         libunistring: Correct value of $LTLIBUNISTRING.
22804         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22805         correct the value of $LTLIBUNISTRING.
22806
22807 2010-04-11  Bruno Haible  <bruno@clisp.org>
22808
22809         havelib: Add static libraries to LIBS in the right order.
22810         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22811         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22812
22813 2010-04-11  Bruno Haible  <bruno@clisp.org>
22814
22815         libunistring: Detect libunistring also when it depends on libiconv.
22816         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22817         the second AC_LIB_HAVE_LINKFLAGS invocation.
22818
22819 2010-04-11  James Youngman  <jay@gnu.org>
22820
22821         close-stream: declare local scalars to be "const"
22822         * lib/close-stream.c (close_stream): Make boolean variables const
22823         to document the fact that we set but do not change them.
22824
22825 2010-04-11  Bruno Haible  <bruno@clisp.org>
22826
22827         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22828
22829 2010-04-11  Jim Meyering  <meyering@redhat.com>
22830
22831         maint.mk: don't include dist-check.mk
22832         * top/maint.mk: Remove bogus include directive.
22833
22834         maint.mk: improve empty-line-at-EOF check
22835         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22836         solution, rather than tail+Perl-based one.  The latter would read
22837         a few kilobytes from the end of each file, and did not handle empty
22838         files properly.
22839
22840         maint.mk: print the elapsed time for each syntax-check rule
22841         * top/maint.mk (sc_m_rules_): Save start time in a file.
22842         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22843         (local-check): Interpose the .z rules
22844
22845 2010-04-11  Jim Meyering  <meyering@redhat.com>
22846
22847         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22848         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22849         empty file with one that ends in an empty line.
22850
22851 2010-04-10  Bruno Haible  <bruno@clisp.org>
22852
22853         mkdir: Make it work on mingw64.
22854         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22855         * lib/mkdir.c: Update comment.
22856         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22857
22858 2010-04-10  Bruno Haible  <bruno@clisp.org>
22859
22860         Don't override improved macro from newer autoconf.
22861         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22862         autoconf >= 2.62.
22863         Reported by Joel E. Denny <jdenny@clemson.edu>.
22864
22865 2010-04-10  Jim Meyering  <meyering@redhat.com>
22866
22867         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22868         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22869
22870         maint.mk: correct a diagnostic
22871         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22872         in diagnostic; now use $prohibit.
22873
22874 2010-04-10  Bruno Haible  <address@hidden>
22875
22876         fchownat: Fix a C++ test error on Solaris 8.
22877         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
22878         the function does not exist.
22879
22880 2010-04-10  Bruno Haible  <bruno@clisp.org>
22881
22882         vasnprintf: Add more tests.
22883         * tests/test-vasnprintf-posix.c: Include <errno.h>.
22884         (test_function): Test converting an invalid wide string.
22885
22886         vasnprintf: Correct handling of unconvertible wide string arguments.
22887         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
22888         VASNPRINTF.
22889         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
22890         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
22891         smaller than the expected maximum need for the directive. Set errno to
22892         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
22893         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
22894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
22895         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
22896         * modules/vasnprintf (Files): Add m4/printf.m4.
22897         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22898
22899 2010-04-10  Bruno Haible  <bruno@clisp.org>
22900
22901         vasnprintf: Fix crash in %ls directive.
22902         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
22903         string is passed as argument to %ls, with no precision and no width.
22904         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22905
22906 2010-04-10  Bruno Haible  <bruno@clisp.org>
22907
22908         vasnprintf: Fix multiple test failures on mingw.
22909         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
22910         _snprintf, or snwprintf, not _snwprintf.
22911
22912 2010-04-10  Bruno Haible  <bruno@clisp.org>
22913
22914         write: Fix a C++ test error on mingw.
22915         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22916
22917 2010-04-10  Bruno Haible  <bruno@clisp.org>
22918
22919         vasnprintf test: Reduce code duplication.
22920         * tests/test-vasnprintf.c (test_function): New function, extracted from
22921         test_vasnprintf.
22922         (test_vasnprintf, test_asnprintf): Invoke it.
22923
22924 2010-04-10  Bruno Haible  <bruno@clisp.org>
22925
22926         strnlen: Fix warning in C++ mode on MacOS X.
22927         * lib/string.in.h (strnlen): Use the modern idiom.
22928         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22929         defining strnlen as a macro already in <config.h>.
22930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22931         REPLACE_STRNLEN.
22932         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22933         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22934
22935 2010-04-08  James Youngman  <jay@gnu.org>
22936
22937         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22938         the example.
22939
22940 2010-04-09  Jim Meyering  <meyering@redhat.com>
22941
22942         maint.mk: print better diagnostic when there is no $(_hv_file)
22943         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22944         announce that when $(_hv_file) (aka help-version) does not exist.
22945
22946         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22947         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22948         not try to interpret its random input bytes.  Jarno Rajahalme reported
22949         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22950         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22951         (mktempd_): Likewise, just in case.
22952
22953         ftruncate: add two years to projected module removal date: 2012
22954         * m4/ftruncate.m4: Adjust comments.
22955
22956         ftruncate: mark module as obsolete; even MinGW provides it, now
22957         * modules/ftruncate (Status): Obsolete.
22958         (Notice): Say that.
22959         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22960         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22961
22962 2010-04-08  Bruno Haible  <bruno@clisp.org>
22963
22964         Fix side effects from tests-related modules.
22965         * modules/dprintf-posix (Comment): New section.
22966         * modules/fprintf-posix (Comment): Likewise.
22967         * modules/obstack-printf-posix (Comment): Likewise.
22968         * modules/printf-posix (Comment): Likewise.
22969         * modules/snprintf-posix (Comment): Likewise.
22970         * modules/sprintf-posix (Comment): Likewise.
22971         * modules/vasnprintf-posix (Comment): Likewise.
22972         * modules/vasprintf-posix (Comment): Likewise.
22973         * modules/vdprintf-posix (Comment): Likewise.
22974         * modules/vfprintf-posix (Comment): Likewise.
22975         * modules/vprintf-posix (Comment): Likewise.
22976         * modules/vsnprintf-posix (Comment): Likewise.
22977         * modules/vsprintf-posix (Comment): Likewise.
22978         * modules/xprintf-posix (Comment): Likewise.
22979         * modules/xvasprintf-posix (Comment): Likewise.
22980         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22981         * modules/floorf-tests (Depends-on): Likewise.
22982         * modules/round-tests (Depends-on): Likewise.
22983         * modules/roundf-tests (Depends-on): Likewise.
22984         * modules/trunc-tests (Depends-on): Likewise.
22985         * modules/truncf-tests (Depends-on): Likewise.
22986         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22987         'fprintf-posix' module is not present.
22988         * tests/test-floorf2.c (check): Likewise.
22989         * tests/test-trunc2.c (check): Likewise.
22990         * tests/test-truncf2.c (check): Likewise.
22991         * tests/test-round2.c (equal): Likewise.
22992         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22993
22994 2010-04-07  Karl Berry  <karl@gnu.org>
22995
22996         * config/srclist.txt,
22997         * config/srclistvars.sh,
22998         * config/srclist-update: doc fixes.
22999
23000 2010-04-07  Jim Meyering  <meyering@redhat.com>
23001
23002         maint.mk: add a PATH crosschecking syntax-check rule
23003         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23004         Useful if you use a test like the one in help-version (coreutils,
23005         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23006         printed by prog --version.
23007
23008 2010-04-06  Bruno Haible  <bruno@clisp.org>
23009
23010         Fix link error on mingw.
23011         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23012         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23013
23014 2010-04-06  Bruno Haible  <bruno@clisp.org>
23015
23016         Assume rmdir exists.
23017         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23018
23019 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23020
23021         doc: update users.txt
23022         * users.txt: Add gcal.
23023
23024 2010-04-06  Jim Meyering  <meyering@redhat.com>
23025
23026         init.sh: simply unset TMPDIR rather than risking env -i
23027         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23028         although it probably works fine on all Unix-based systems, some
23029         systems (Cygwin?) cannot tolerate a totally cleared environment.
23030         Suggestion from Eric Blake.
23031
23032 2010-04-06  Jim Meyering  <meyering@redhat.com>
23033
23034         init.sh: portability fix: use env's POSIX-specified -i option not -u
23035         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23036         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23037
23038 2010-04-05  Bruno Haible  <bruno@clisp.org>
23039
23040         btowc: Work around Cygwin 1.7.2 bug.
23041         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23042         does not map NUL to 0.
23043         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23044
23045 2010-04-05  Bruno Haible  <bruno@clisp.org>
23046
23047         Make the multithread modules work on Cygwin 1.7.2.
23048         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23049         imported symbols can be declared weak, so that it returns "no" on
23050         Cygwin 1.7.2.
23051
23052 2010-04-05  Bruno Haible  <bruno@clisp.org>
23053
23054         Use the module 'strncat'.
23055         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23056
23057         Tests for module 'strncat'.
23058         * modules/strncat-tests: New file.
23059         * tests/test-strncat.c: New file.
23060
23061         New module 'strncat'.
23062         * lib/string.in.h (strncat): New declaration.
23063         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23064         * m4/strncat.m4: New file, based on m4/memchr.m4.
23065         * modules/strncat: New file.
23066         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23067         is declared.
23068         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23069         REPLACE_STRNCAT.
23070         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23071         REPLACE_STRNCAT.
23072         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23073         module.
23074         * tests/test-string-c++.cc: Check signature of strncat.
23075
23076 2010-04-05  Jim Meyering  <meyering@redhat.com>
23077
23078         xstrtoumax-tests: convert to use init.sh
23079         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23080         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23081         Use Exit, not exit.
23082         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23083
23084         xstrtoimax-tests: convert to use init.sh
23085         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23086         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23087         Use Exit, not exit.
23088         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23089
23090 2010-04-05  Bruno Haible  <bruno@clisp.org>
23091
23092         sys_socket: Avoid #define replacements in C++ mode.
23093         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23094         warning to the function if possible, rather than #defining the symbol
23095         to a dysfunctional alias.
23096
23097 2010-04-05  Bruno Haible  <bruno@clisp.org>
23098
23099         fseeko: Fix C++ test error on mingw.
23100         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23101         gl_FUNC_FSEEKO.
23102         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23103         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23104         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23105         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23106
23107 2010-04-05  Bruno Haible  <bruno@clisp.org>
23108
23109         duplocale: Improve test output.
23110         * tests/test-duplocale.c (main): Print reason for skipped test.
23111
23112 2010-04-05  Bruno Haible  <bruno@clisp.org>
23113
23114         Assume rmdir exists.
23115         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23116         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23117
23118 2010-04-05  Bruno Haible  <bruno@clisp.org>
23119
23120         Fix link error on Solaris 8 with cc.
23121         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23122
23123 2010-04-05  Bruno Haible  <bruno@clisp.org>
23124
23125         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23126         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23127
23128 2010-04-05  Bruno Haible  <bruno@clisp.org>
23129
23130         vasprintf: Update documentation.
23131         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23132
23133 2010-04-05  Bruno Haible  <bruno@clisp.org>
23134
23135         ptsname: Improve test.
23136         * tests/test-ptsname.c (main): Also try the various master names of BSD
23137         systems.
23138
23139 2010-04-05  Bruno Haible  <bruno@clisp.org>
23140
23141         memchr: Avoid a possible C++ test error.
23142         * lib/string.in.h (memchr): Provide declaration if function is missing.
23143         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23144         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23146         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23147
23148 2010-04-05  Bruno Haible  <bruno@clisp.org>
23149
23150         strtok_r: Improve idiom.
23151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23152         AC_LIBOBJ is used.
23153
23154 2010-04-05  Bruno Haible  <bruno@clisp.org>
23155
23156         strdup: Improve idiom.
23157         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23158         AC_LIBOBJ is used.
23159         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23160         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23161         when AC_LIBOBJ is used.
23162
23163 2010-04-05  Bruno Haible  <bruno@clisp.org>
23164
23165         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23166         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23167         don't set REPLACE_MBSINIT to 1.
23168         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23169         don't set REPLACE_MBRTOWC to 1.
23170         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23171         exist, don't set REPLACE_MBSRTOWCS to 1.
23172         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23173         exist, don't set REPLACE_MBSNRTOWCS to 1.
23174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23175         don't set REPLACE_WCRTOMB to 1.
23176         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23177         exist, don't set REPLACE_WCSRTOMBS to 1.
23178         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23179         exist, don't set REPLACE_WCSNRTOMBS to 1.
23180
23181 2010-04-05  Bruno Haible  <bruno@clisp.org>
23182
23183         ldexpl: Improve idiom.
23184         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23185         make sure to set HAVE_DECL_LDEXPL to 0.
23186
23187 2010-04-05  Jim Meyering  <meyering@redhat.com>
23188
23189         xstrtol-tests: convert to use init.sh
23190         * modules/xstrtol-tests (Files): Add tests/init.sh.
23191         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23192         Use Exit, not exit.
23193         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23194
23195         atexit-tests: convert to use init.sh
23196         * modules/atexit-tests (Files): Add tests/init.sh.
23197         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23198         Use Exit, not exit.
23199         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23200
23201         init.sh: fix typo
23202         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23203
23204         init.sh: make it easier for a test script to write to the tty, ...
23205         when using automake's parallel-tests mode.
23206         * tests/init.sh (stderr_fileno_): Define overridable variable.
23207         (warn_): New function, to use it.
23208         (fail_, skip_, framework_failure_): Use warn_.
23209
23210 2010-04-04  Bruno Haible  <bruno@clisp.org>
23211
23212         btowc: Avoid warning.
23213         * lib/btowc.c: Include <stdlib.h>.
23214         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23215
23216 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23217             Bruno Haible  <bruno@clisp.org>
23218
23219         wchar: Port to NetBSD 1.5.
23220         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23221         * lib/wctype.in.h (WEOF): Likewise.
23222
23223 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23224             Bruno Haible  <bruno@clisp.org>
23225
23226         Port extended stdio to NetBSD 1.5.
23227         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23228         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23229         older.
23230
23231 2010-04-04  Bruno Haible  <bruno@clisp.org>
23232
23233         string: Remove unused substitution.
23234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23235         HAVE_DECL_STRERROR.
23236         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23237
23238 2010-04-04  Bruno Haible  <bruno@clisp.org>
23239
23240         strtod: Avoid a possible C++ test error.
23241         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23242         set REPLACE_STRTOD.
23243
23244 2010-04-04  Bruno Haible  <bruno@clisp.org>
23245
23246         strerror: Update documentation.
23247         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23248
23249 2010-04-04  Bruno Haible  <bruno@clisp.org>
23250
23251         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23252         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23253         _GL_CXXALIAS_SYS_CAST.
23254
23255 2010-04-04  Bruno Haible  <bruno@clisp.org>
23256
23257         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23258         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23259         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23260         REPLACE_FREXPL to 1.
23261         * doc/posix-functions/frexpl.texi: Update documentation.
23262
23263 2010-04-04  Bruno Haible  <bruno@clisp.org>
23264
23265         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23266         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23267
23268 2010-04-04  Bruno Haible  <bruno@clisp.org>
23269
23270         Implement nanosleep for native Windows.
23271         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23272
23273 2010-04-04  Bruno Haible  <bruno@clisp.org>
23274
23275         math: Fix some C++ test errors on Solaris 8.
23276         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23277
23278 2010-04-04  Bruno Haible  <bruno@clisp.org>
23279
23280         math: Fix some C++ test errors on Cygwin.
23281         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23282         truncl): Provide declaration if the system does not have it.
23283         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23284         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23285         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23286         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23287         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23288         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23289         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23290         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23291         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23292         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23293         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23294         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23295         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23296         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23297         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23298         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23300         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23301         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23302         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23303         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23304         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23305
23306 2010-04-04  Bruno Haible  <bruno@clisp.org>
23307
23308         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23309         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23310         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23311         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23312         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23313         * m4/isinf.m4 (gl_ISINF): Likewise.
23314         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23315
23316 2010-04-04  Bruno Haible  <bruno@clisp.org>
23317
23318         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23320
23321 2010-04-04  Bruno Haible  <bruno@clisp.org>
23322
23323         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23324         * modules/tmpfile (configure.ac): Update.
23325
23326         tmpfile: Fix C++ test error on mingw.
23327         * lib/stdio.in.h (tmpfile): New declaration.
23328         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23329         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23330         * modules/tmpfile (Depends-on): Add stdio.
23331         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23332         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23333         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23334         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23335         REPLACE_TMPFILE.
23336         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23337
23338 2010-04-04  Bruno Haible  <bruno@clisp.org>
23339
23340         ioctl: Fix C++ test error on mingw.
23341         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23342         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23343         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23344
23345 2010-04-03  Bruno Haible  <bruno@clisp.org>
23346
23347         wcwidth: Fix C++ test error on mingw.
23348         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23350         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23351
23352 2010-04-03  Bruno Haible  <bruno@clisp.org>
23353
23354         nanosleep: Fix C++ test error on mingw.
23355         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23356         * lib/time.in.h (nanosleep): Use modern idiom.
23357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23358         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23359         REPLACE_NANOSLEEP to 1.
23360         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23361         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23362
23363 2010-04-03  Bruno Haible  <bruno@clisp.org>
23364
23365         strptime: Fix C++ test error on mingw.
23366         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23367         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23368         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23369         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23370         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23371         not REPLACE_STRPTIME.
23372         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23373         REPLACE_STRPTIME.
23374
23375 2010-04-03  Bruno Haible  <bruno@clisp.org>
23376
23377         timegm: Fix C++ test error on mingw.
23378         * lib/time.in.h (timegm): Use modern idiom.
23379         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23380         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23381         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23382         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23383
23384 2010-04-03  Bruno Haible  <bruno@clisp.org>
23385
23386         timegm: Assume declaration if function exists.
23387         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23388         if it exists. Don't clobber ac_cv_func_timegm.
23389
23390 2010-04-03  Bruno Haible  <bruno@clisp.org>
23391
23392         time_r: Fix C++ test error on mingw.
23393         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23394         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23395         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23396         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23397         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23398
23399 2010-04-03  Bruno Haible  <bruno@clisp.org>
23400
23401         time_r: Minor updates.
23402         * modules/time_r (Description): Mention the provided functions.
23403         * lib/time_r.c: Don't include <string.h>.
23404         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23405         * doc/posix-functions/localtime_r.texi: Likewise.
23406
23407 2010-04-03  Bruno Haible  <bruno@clisp.org>
23408
23409         time: Fix regression introduced on 2010-03-08.
23410         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23411         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23412
23413 2010-04-03  Jim Meyering  <meyering@redhat.com>
23414
23415         maint.mk: don't silently disable project-specific syntax-check rules
23416         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23417         that they need to convert their project-specific syntax-check rules
23418         to use the new _sc_search_regexp.
23419
23420 2010-04-03  Bruno Haible  <bruno@clisp.org>
23421
23422         fchdir: Fix regression introduced on 2010-03-08.
23423         * lib/unistd.in.h (fchdir): Fix declaration.
23424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23426         REPLACE_FCHDIR.
23427         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23428         REPLACE_FCHDIR.
23429
23430 2010-04-03  Bruno Haible  <bruno@clisp.org>
23431
23432         getpagesize: Fix C++ test error on mingw.
23433         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23434         system does not declare the function.
23435         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23436         declared.
23437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23438         HAVE_DECL_GETPAGESIZE.
23439         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23440
23441 2010-04-03  Bruno Haible  <bruno@clisp.org>
23442
23443         stdio: Make C++ tests work on mingw.
23444         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23445         does not declare the function.
23446
23447 2010-04-03  Bruno Haible  <bruno@clisp.org>
23448
23449         ftello: Fix C++ test error on mingw.
23450         * lib/stdio.in.h (ftello): Use modern idiom.
23451         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23452         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23453         is missing and that it needs to be replaced.
23454         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23456         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23457
23458 2010-04-03  Bruno Haible  <bruno@clisp.org>
23459
23460         fseeko: Fix C++ test error on mingw.
23461         * lib/stdio.in.h (fseeko): Use modern idiom.
23462         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23463         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23464         is missing and that it needs to be replaced.
23465         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23467         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23468
23469 2010-04-03  Bruno Haible  <bruno@clisp.org>
23470
23471         mkstemp: Fix C++ test error on mingw.
23472         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23473         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23474         function is missing and that it needs to be replaced.
23475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23476         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23477
23478 2010-04-03  Bruno Haible  <bruno@clisp.org>
23479
23480         stpncpy: Fix C++ test error on mingw.
23481         * lib/string.in.h (stpncpy): Use modern idiom.
23482         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23483         function is missing and that it needs to be replaced.
23484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23485         REPLACE_STPNCPY.
23486         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23487
23488 2010-04-03  Bruno Haible  <bruno@clisp.org>
23489
23490         sys_stat: Fix C++ test error on mingw.
23491         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23492         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23493
23494 2010-04-03  Bruno Haible  <bruno@clisp.org>
23495
23496         pty: Update doc.
23497         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23498
23499 2010-04-03  Bruno Haible  <bruno@clisp.org>
23500
23501         unistd: Fix C++ test error on mingw.
23502         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23503
23504 2010-04-03  Bruno Haible  <bruno@clisp.org>
23505
23506         Update doc regarding mingw.
23507         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23508         * doc/glibc-functions/login_tty.texi: Likewise.
23509         * doc/glibc-functions/forkpty.texi: Likewise.
23510
23511 2010-04-03  Bruno Haible  <bruno@clisp.org>
23512
23513         stdlib: Avoid compilation failure of c-strtold on mingw.
23514         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23515
23516 2010-04-03  Bruno Haible  <bruno@clisp.org>
23517
23518         locale: Make C++ tests work on Cygwin and mingw.
23519         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23520         cannot provide the function.
23521         Reported by Simon Josefsson.
23522
23523 2010-04-03  Bruno Haible  <bruno@clisp.org>
23524
23525         localename: Port to MacOS X 10.6.
23526         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23527         memory layout of the locales in MacOS X 10.6 as well.
23528         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23529
23530 2010-04-02  Bruno Haible  <bruno@clisp.org>
23531
23532         gnulib-tool: Ensure that long-running tests are executed last.
23533         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23534         running tests after the one for the other tests.
23535
23536 2010-04-02  Bruno Haible  <bruno@clisp.org>
23537
23538         gnulib-tool: Ensure the tests in the main directory are executed first.
23539         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23540         start with the current directory.
23541
23542 2010-04-02  Bruno Haible  <bruno@clisp.org>
23543
23544         Tests for module 'havelib', moved here from GNU gettext.
23545         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23546         modifications.
23547         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23548         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23549         with modifications.
23550         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23551         modifications.
23552         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23553         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23554         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23555         with modifications.
23556         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23557         with modifications.
23558         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23559         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23560         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23561         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23562         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23563         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23564         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23565         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23566         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23567         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23568         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23569         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23570         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23571         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23572         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23573         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23574         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23575         with modifications.
23576         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23577         with modifications.
23578         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23579         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23580         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23581         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23582         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23583         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23584         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23585         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23586         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23587         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23588         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23589         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23590         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23591         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23592         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23593         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23594         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23595         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23596         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23597         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23598         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23599         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23600         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23601         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23602         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23603         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23604         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23605         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23606         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23607         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23608         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23609         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23610         * tests/havelib/rpathx/rpathx.c: New file, from
23611         gettext/autoconf-lib-link.
23612         * tests/havelib/rpathx/Makefile.am: New file, from
23613         gettext/autoconf-lib-link.
23614         * tests/havelib/rpathx/configure.ac: New file, from
23615         gettext/autoconf-lib-link with modifications.
23616         * tests/havelib/rpathy/rpathy.c: New file, from
23617         gettext/autoconf-lib-link.
23618         * tests/havelib/rpathy/Makefile.am: New file, from
23619         gettext/autoconf-lib-link.
23620         * tests/havelib/rpathy/configure.ac: New file, from
23621         gettext/autoconf-lib-link with modifications.
23622         * tests/havelib/rpathz/rpathz.c: New file, from
23623         gettext/autoconf-lib-link.
23624         * tests/havelib/rpathz/Makefile.am: New file, from
23625         gettext/autoconf-lib-link.
23626         * tests/havelib/rpathz/configure.ac: New file, from
23627         gettext/autoconf-lib-link with modifications.
23628         * tests/havelib/rpathlx/usex.c: New file, from
23629         gettext/autoconf-lib-link.
23630         * tests/havelib/rpathlx/Makefile.am: New file, from
23631         gettext/autoconf-lib-link.
23632         * tests/havelib/rpathlx/configure.ac: New file, from
23633         gettext/autoconf-lib-link with modifications.
23634         * tests/havelib/rpathly/usey.c: New file, from
23635         gettext/autoconf-lib-link.
23636         * tests/havelib/rpathly/Makefile.am: New file, from
23637         gettext/autoconf-lib-link.
23638         * tests/havelib/rpathly/configure.ac: New file, from
23639         gettext/autoconf-lib-link with modifications.
23640         * tests/havelib/rpathlz/usez.c: New file, from
23641         gettext/autoconf-lib-link.
23642         * tests/havelib/rpathlz/Makefile.am: New file, from
23643         gettext/autoconf-lib-link.
23644         * tests/havelib/rpathlz/configure.ac: New file, from
23645         gettext/autoconf-lib-link with modifications.
23646         * tests/havelib/rpathlyx/usey.c: New file, from
23647         gettext/autoconf-lib-link.
23648         * tests/havelib/rpathlyx/Makefile.am: New file, from
23649         gettext/autoconf-lib-link.
23650         * tests/havelib/rpathlyx/configure.ac: New file, from
23651         gettext/autoconf-lib-link with modifications.
23652         * tests/havelib/rpathlzyx/usez.c: New file, from
23653         gettext/autoconf-lib-link.
23654         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23655         gettext/autoconf-lib-link.
23656         * tests/havelib/rpathlzyx/configure.ac: New file, from
23657         gettext/autoconf-lib-link with modifications.
23658         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23659         with modifications.
23660
23661 2010-04-02  Bruno Haible  <bruno@clisp.org>
23662
23663         gnulib-tool: Create distributed built sources also for the tests.
23664         * gnulib-tool (func_create_testdir): Also generate distributed built
23665         sources in the tests directory.
23666
23667 2010-04-02  Bruno Haible  <bruno@clisp.org>
23668
23669         gnulib-tool: Obey user's environment variables.
23670         * gnulib-tool (func_create_testdir): When creating built sources,
23671         respect the environment variables for autoconf, automake, etc. given by
23672         the user.
23673
23674 2010-04-02  Bruno Haible  <bruno@clisp.org>
23675
23676         gnulib-tool: Provide the value of --m4-base to modules.
23677         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23678         of gl_m4_base.
23679
23680 2010-04-02  Eric Blake  <eblake@redhat.com>
23681
23682         maint.mk: fix some fallout
23683         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23684         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23685
23686 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23687
23688         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23689         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23690         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23691         (sc_cast_of_x_alloc_return_value): Likewise.
23692         (sc_cast_of_alloca_return_value): Likewise.
23693         (sc_space_tab): Likewise.
23694         (sc_prohibit_atoi_atof): Likewise.
23695         (sc_prohibit_magic_number_exit): Likewise.
23696         (sc_error_exit_success): Likewise.
23697         (sc_file_system): Likewise.
23698         (sc_prohibit_have_config_h): Likewise.
23699         (sc_require_config_h): Likewise.
23700         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23701         (sc_obsolete_symbols): Likewise.
23702         (sc_changelog): Likewise.
23703         (sc_program_name): Likewise.
23704         (sc_the_the): Likewise.
23705         (sc_trailing_blank): Likewise.
23706         (sc_two_space_separator_in_usage): Likewise.
23707         (sc_useless_cpp_parens): Likewise.
23708         (sc_GPL_version): Likewise.
23709         (sc_GFDL_version): Likewise.
23710         (sc_texinfo_acronym): Likewise.
23711         (sc_prohibit_cvs_keyword): Likewise.
23712         (sc_prohibit_stat_st_blocks): Likewise.
23713         (sc_prohibit_S_IS_definition): Likewise.
23714         (sc_redundant_const): Likewise.
23715         (sc_makefile_TAB_only_indentation): Likewise.
23716         (sc_m4_quote_check): Likewise.
23717         (sc_makefile_path_separator_check): Likewise.
23718         (sc_copyright_check): Likewise.
23719         (sc_Wundef_boolean): Likewise.
23720         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23721
23722         maint.mk: match 0 or more whitespace-before-function-call '('
23723         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23724         that have zero or two-and-more spaces between the function name
23725         and the open parenthesis.
23726         (sc_error_message_warn_fatal): Likewise.
23727         (sc_error_message_uppercase): Likewise.
23728         (sc_error_message_period): Likewise.
23729
23730 2010-03-31  Eric Blake  <eblake@redhat.com>
23731
23732         maint.mk: check for [ as well as test
23733         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23734         Based on a libvirt report by Matthias Bolte.
23735
23736         gnumakefile: don't squelch _version output
23737         * top/GNUmakefile (_version): Create one-shot dependency rather
23738         than using $(shell) when version must be regenerated.
23739         (_autoreconf): Run verbosely, by default.
23740
23741         sys_time: avoid compiler warnings
23742         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23743         unconditional, fixing regression from 2010-03-29.
23744         Reported by Simon Josefsson.
23745
23746 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23747
23748         maint.mk: s/_header_without_use/_sc_header_without_use/
23749         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23750         (sc_prohibit_assert_without_use): Use the new name.
23751         (sc_prohibit_close_stream_without_use): Likewise.
23752         (sc_prohibit_getopt_without_use): Likewise.
23753         (sc_prohibit_quotearg_without_use): Likewise.
23754         (sc_prohibit_quote_without_use): Likewise.
23755         (sc_prohibit_long_options_without_use): Likewise.
23756         (sc_prohibit_inttostr_without_use): Likewise.
23757         (sc_prohibit_ignore_value_without_use): Likewise.
23758         (sc_prohibit_error_without_use): Likewise.
23759         (sc_prohibit_xalloc_without_use): Likewise.
23760         (sc_prohibit_hash_without_use): Likewise.
23761         (sc_prohibit_hash_pjw_without_use): Likewise.
23762         (sc_prohibit_safe_read_without_use): Likewise.
23763         (sc_prohibit_argmatch_without_use): Likewise.
23764         (sc_prohibit_canonicalize_without_use): Likewise.
23765         (sc_prohibit_root_dev_ino_without_use): Likewise.
23766         (sc_prohibit_openat_without_use): Likewise.
23767         (sc_prohibit_c_ctype_without_use): Likewise.
23768         (sc_prohibit_signal_without_use): Likewise.
23769         (sc_prohibit_intprops_without_use): Likewise.
23770
23771 2010-03-30  Eric Blake  <eblake@redhat.com>
23772
23773         maint: improve module indicators
23774         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23775         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23776         columns, and avoid extra macro expansion.
23777
23778         fdopendir: work around FreeBSD bug
23779         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23780         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23781         * modules/dirent (Makefile.am): Substitute it.
23782         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23783         declaration.
23784         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23785         fix.
23786         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23787
23788 2010-03-29  Bruno Haible  <bruno@clisp.org>
23789
23790         Emit #pragma system_header after the inclusion guard, not before.
23791         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23792         guard that spans the entire file, not before. This enables an
23793         optimization in GCC's preprocessor.
23794         * lib/ctype.in.h: Likewise.
23795         * lib/dirent.in.h: Likewise.
23796         * lib/errno.in.h: Likewise.
23797         * lib/float.in.h: Likewise.
23798         * lib/getopt.in.h: Likewise.
23799         * lib/iconv.in.h: Likewise.
23800         * lib/langinfo.in.h: Likewise.
23801         * lib/locale.in.h: Likewise.
23802         * lib/math.in.h: Likewise.
23803         * lib/netdb.in.h: Likewise.
23804         * lib/netinet_in.in.h: Likewise.
23805         * lib/pty.in.h: Likewise.
23806         * lib/sched.in.h: Likewise.
23807         * lib/se-selinux.in.h: Likewise.
23808         * lib/search.in.h: Likewise.
23809         * lib/spawn.in.h: Likewise.
23810         * lib/stdarg.in.h: Likewise.
23811         * lib/stdint.in.h: Likewise.
23812         * lib/string.in.h: Likewise.
23813         * lib/strings.in.h: Likewise.
23814         * lib/sys_file.in.h: Likewise.
23815         * lib/sys_ioctl.in.h: Likewise.
23816         * lib/sys_time.in.h: Likewise.
23817         * lib/sys_times.in.h: Likewise.
23818         * lib/sys_utsname.in.h: Likewise.
23819         * lib/sys_wait.in.h: Likewise.
23820         * lib/sysexits.in.h: Likewise.
23821         * lib/wctype.in.h: Likewise.
23822
23823 2010-03-28  James Youngman  <jay@gnu.org>
23824
23825         save-cwd: don't leak a file descriptor when the caller execs.
23826         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23827         saved file descriptor.
23828         * modules/save-cwd (Depends-on): Depend on cloexec.
23829
23830 2010-03-29  Bruno Haible  <bruno@clisp.org>
23831
23832         Remove vestiges of fts-lgpl module.
23833         * lib/fts_.h: Assume GNULIB_FTS is 1.
23834         * lib/fts.c: Likewise.
23835         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23836
23837 2010-03-28  Bruno Haible  <bruno@clisp.org>
23838
23839         Fix definition of tests witness macro.
23840         * gnulib-tool (func_import): Fix definition of witness macro.
23841
23842 2010-03-28  Bruno Haible  <bruno@clisp.org>
23843
23844         Fix ioctl's protoype on glibc systems.
23845         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23846         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23847         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23848         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23849         signature. If not, arrange to replace the ioctl function.
23850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23851         REPLACE_IOCTL.
23852         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23853         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23854         Reported by Ludovic Courtès <ludo@gnu.org>.
23855
23856 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23857
23858         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23859         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23860         made it so grep -r --include=GLOB* ... did not work.
23861
23862 2010-03-26  Jim Meyering  <meyering@redhat.com>
23863             Eric Blake  <eblake@redhat.com>
23864
23865         maint.mk: prohibit use of test's -o and -a operators
23866         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23867
23868 2010-03-28  Bruno Haible  <bruno@clisp.org>
23869
23870         Remove unused GNULIB_XYZ macro definitions.
23871         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23872         invocation.
23873
23874 2010-03-28  Bruno Haible  <bruno@clisp.org>
23875
23876         Mark privileged tests modules.
23877         * modules/idpriv-drop-tests (Status): New section.
23878         * modules/idpriv-droptemp-tests (Status): New section.
23879
23880 2010-03-28  Bruno Haible  <bruno@clisp.org>
23881
23882         Split C++ tests into separate tests modules.
23883         * modules/dirent-c++-tests: New file, extracted from
23884         modules/dirent-tests.
23885         * modules/dirent-tests: Depend on it.
23886         * modules/fcntl-h-c++-tests: New file, extracted from
23887         modules/fcntl-h-tests.
23888         * modules/fcntl-h-tests: Depend on it.
23889         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
23890         * modules/glob-tests: Depend on it.
23891         * modules/iconv-h-c++-tests: New file, extracted from
23892         modules/iconv-h-tests.
23893         * modules/iconv-h-tests: Depend on it.
23894         * modules/langinfo-c++-tests: New file, extracted from
23895         modules/langinfo-tests.
23896         * modules/langinfo-tests: Depend on it.
23897         * modules/locale-c++-tests: New file, extracted from
23898         modules/locale-tests.
23899         * modules/locale-tests: Depend on it.
23900         * modules/math-c++-tests: New file, extracted from modules/math-tests.
23901         * modules/math-tests: Depend on it.
23902         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
23903         * modules/pty-tests: Depend on it.
23904         * modules/search-c++-tests: New file, extracted from
23905         modules/search-tests.
23906         * modules/search-tests: Depend on it.
23907         * modules/signal-c++-tests: New file, extracted from
23908         modules/signal-tests.
23909         * modules/signal-tests: Depend on it.
23910         * modules/spawn-c++-tests: New file, extracted from
23911         modules/spawn-tests.
23912         * modules/spawn-tests: Depend on it.
23913         * modules/stdio-c++-tests: New file, extracted from
23914         modules/stdio-tests.
23915         * modules/stdio-tests: Depend on it.
23916         * modules/stdlib-c++-tests: New file, extracted from
23917         modules/stdlib-tests.
23918         * modules/stdlib-tests: Depend on it.
23919         * modules/string-c++-tests: New file, extracted from
23920         modules/string-tests.
23921         * modules/string-tests: Depend on it.
23922         * modules/sys_ioctl-c++-tests: New file, extracted from
23923         modules/sys_ioctl-tests.
23924         * modules/sys_ioctl-tests: Depend on it.
23925         * modules/sys_select-c++-tests: New file, extracted from
23926         modules/sys_select-tests.
23927         * modules/sys_select-tests: Depend on it.
23928         * modules/sys_socket-c++-tests: New file, extracted from
23929         modules/sys_socket-tests.
23930         * modules/sys_socket-tests: Depend on it.
23931         * modules/sys_stat-c++-tests: New file, extracted from
23932         modules/sys_stat-tests.
23933         * modules/sys_stat-tests: Depend on it.
23934         * modules/sys_time-c++-tests: New file, extracted from
23935         modules/sys_time-tests.
23936         * modules/sys_time-tests: Depend on it.
23937         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23938         * modules/time-tests: Depend on it.
23939         * modules/unistd-c++-tests: New file, extracted from
23940         modules/unistd-tests.
23941         * modules/unistd-tests: Depend on it.
23942         * modules/wchar-c++-tests: New file, extracted from
23943         modules/wchar-tests.
23944         * modules/wchar-tests: Depend on it.
23945         * modules/wctype-c++-tests: New file, extracted from
23946         modules/wctype-tests.
23947         * modules/wctype-tests: Depend on it.
23948         Reported by Simon Josefsson.
23949
23950 2010-03-28  Bruno Haible  <bruno@clisp.org>
23951
23952         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23953         * gnulib-tool (func_exists_module): New function, extracted from
23954         func_verify_module.
23955         (func_verify_module): Use it.
23956         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23957         'foo' only if 'foo' exists.
23958         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23959         module.
23960
23961 2010-03-28  Bruno Haible  <bruno@clisp.org>
23962
23963         gnulib-tool: Add support for special categories of tests.
23964         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23965         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23966         (func_usage): Document them.
23967         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23968         inc_unportable_tests, inc_all_tests): New variables.
23969         (func_acceptable): Consider these variables.
23970         (func_modules_transitive_closure): Make it work when the 'Status' field
23971         consists of multiple words.
23972         (func_import): Store and restore the values of inc_cxx_tests,
23973         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23974         inc_all_tests in gnulib-comp.m4.
23975         (func_create_testdir): Set inc_all_tests to true.
23976         * doc/gnulib.texi (Extra tests modules): New section.
23977         Suggested by Jim Meyering.
23978
23979 2010-03-28  Bruno Haible  <bruno@clisp.org>
23980
23981         ansi-c++-opt: Allow turning off the C++ build by default.
23982         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23983         gl_CXX_CHOICE_DEFAULT_NO is defined.
23984         Requested by Eric Blake.
23985
23986 2010-03-28  Bruno Haible  <bruno@clisp.org>
23987
23988         unistd: Avoid #define replacements in C++ mode.
23989         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23990         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23991         setsockopt, shutdown, select): In C++, attach a warning to the function
23992         if possible, rather than #defining the symbol to a dysfunctional alias.
23993         Reported by John W. Eaton <jwe@gnu.org>.
23994
23995 2010-03-28  Bruno Haible  <bruno@clisp.org>
23996
23997         Fix link errors on mingw.
23998         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23999         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24000         $(LIBSOCKET).
24001         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24002         $(LIBSOCKET).
24003
24004 2010-03-28  Bruno Haible  <bruno@clisp.org>
24005             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24006
24007         lib-ignore: Determine different options for different compilers.
24008         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24009         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24010         Add comments.
24011         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24012         * NEWS: Mention the change.
24013
24014 2010-03-27  Bruno Haible  <bruno@clisp.org>
24015
24016         Remove unused GNULIB_XYZ macro definitions.
24017         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24018         * modules/fseek (configure.ac): Likewise.
24019         * modules/ioctl (configure.ac): Likewise.
24020         * modules/open (configure.ac): Likewise.
24021         * modules/stdlib-safer (configure.ac): Likewise.
24022
24023 2010-03-27  Bruno Haible  <bruno@clisp.org>
24024
24025         Add a remark about certain modules.
24026         * modules/malloc (Comment): New section.
24027         * modules/realloc (Comment): Likewise.
24028         * modules/sigpipe (Comment): Likewise.
24029
24030 2010-03-27  Bruno Haible  <bruno@clisp.org>
24031
24032         Resolve conflict between the two kinds of module indicators.
24033         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24034         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24035         * modules/canonicalize (configure.ac): Invoke
24036         gl_MODULE_INDICATOR_FOR_TESTS.
24037         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24038         GNULIB_XYZ.
24039         * tests/test-dirent-c++.cc: Likewise.
24040         * tests/test-dirent-safer.c: Likewise.
24041         * tests/test-dup2.c: Likewise.
24042         * tests/test-fchdir.c: Likewise.
24043         * tests/test-fcntl-h-c++.cc: Likewise.
24044         * tests/test-getopt.c: Likewise.
24045         * tests/test-getopt.h: Likewise.
24046         * tests/test-langinfo-c++.cc: Likewise.
24047         * tests/test-locale-c++.cc: Likewise.
24048         * tests/test-math-c++.cc: Likewise.
24049         * tests/test-pty-c++.cc: Likewise.
24050         * tests/test-search-c++.cc: Likewise.
24051         * tests/test-signal-c++.cc: Likewise.
24052         * tests/test-spawn-c++.cc: Likewise.
24053         * tests/test-stdio-c++.cc: Likewise.
24054         * tests/test-stdlib-c++.cc: Likewise.
24055         * tests/test-string-c++.cc: Likewise.
24056         * tests/test-sys_ioctl-c++.cc: Likewise.
24057         * tests/test-sys_select-c++.cc: Likewise.
24058         * tests/test-sys_socket-c++.cc: Likewise.
24059         * tests/test-sys_stat-c++.cc: Likewise.
24060         * tests/test-sys_time-c++.cc: Likewise.
24061         * tests/test-time-c++.cc: Likewise.
24062         * tests/test-unistd-c++.cc: Likewise.
24063         * tests/test-wchar-c++.cc: Likewise.
24064         * tests/uninorm/test-u8-nfc.c: Likewise.
24065         * tests/uninorm/test-u8-nfd.c: Likewise.
24066         * tests/uninorm/test-u8-nfkc.c: Likewise.
24067         * tests/uninorm/test-u8-nfkd.c: Likewise.
24068         * tests/uninorm/test-u16-nfc.c: Likewise.
24069         * tests/uninorm/test-u16-nfd.c: Likewise.
24070         * tests/uninorm/test-u16-nfkc.c: Likewise.
24071         * tests/uninorm/test-u16-nfkd.c: Likewise.
24072         * tests/uninorm/test-u32-nfc.c: Likewise.
24073         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24074         * tests/uninorm/test-u32-nfd.c: Likewise.
24075         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24076         * tests/uninorm/test-u32-nfkc.c: Likewise.
24077         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24078         * tests/uninorm/test-u32-nfkd.c: Likewise.
24079         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24080         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24081
24082 2010-03-27  Bruno Haible  <bruno@clisp.org>
24083
24084         Distinguish two kinds of module indicators.
24085         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24086         gl_MODULE_INDICATOR.
24087         (gl_MODULE_INDICATOR): New macro.
24088         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24089         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24090         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24091         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24092         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24093         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24094         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24095         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24096         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24097         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24098         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24099         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24101         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24102         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24103         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24104         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24105         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24106         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24107         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24108         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24109         * modules/cloexec (configure.ac): Likewise.
24110         * modules/getopt-gnu (configure.ac): Likewise.
24111         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24112         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24113         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24114         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24115
24116 2010-03-27  Bruno Haible  <bruno@clisp.org>
24117
24118         New module description field 'Comment'.
24119         * gnulib-tool: New option --extract-comment.
24120         (func_usage): Document it.
24121         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24122         (func_get_comment): New function.
24123         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24124
24125 2010-03-27  Bruno Haible  <bruno@clisp.org>
24126
24127         Addendum to 2010-02-07 commit.
24128         * gnulib-tool (func_usage): Document --extract-applicability option.
24129
24130 2010-03-27  Bruno Haible  <bruno@clisp.org>
24131
24132         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24133         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24134         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24135         rather than link errors.
24136
24137 2010-03-27  Bruno Haible  <bruno@clisp.org>
24138
24139         Avoid side effects from tests-related modules on the compilation of lib.
24140         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24141         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24142         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24143         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24144         macro.
24145         (func_import): Define a witness macro. Assign it a value that depends
24146         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24147         tests-related modules.
24148         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24149         Reported by Jim Meyering.
24150
24151 2010-03-27  Bruno Haible  <bruno@clisp.org>
24152
24153         Factorize common .m4 code.
24154         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24155         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24156         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24157         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24158         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24159         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24160         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24161         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24162         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24163         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24164         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24165         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24166         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24167         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24168         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24169         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24170         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24171         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24173         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24174         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24175         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24176         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24177         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24178         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24179         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24180         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24181         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24182         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24183         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24184         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24185         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24186
24187 2010-03-27  Bruno Haible  <bruno@clisp.org>
24188
24189         Fix a compilation error on Cygwin with g++ >= 4.3.
24190         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24191         if it is undefined or if we alias it to chmod.
24192         (lstat): Don't warn about the use of this function if it is undefined
24193         or if we alias it to stat.
24194         Reported by Simon Josefsson.
24195
24196 2010-03-27  Bruno Haible  <bruno@clisp.org>
24197
24198         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24199         * modules/getlogin (configure.ac): Update.
24200
24201         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24202         * modules/getlogin_r (configure.ac): Update.
24203
24204         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24206         * modules/inet_ntop (configure.ac): Update.
24207
24208         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24209         * modules/inet_pton (configure.ac): Update.
24210
24211         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24212         * modules/mbslen (configure.ac): Update.
24213
24214         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24215         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24216         * modules/forkpty (configure.ac): Update.
24217         * modules/openpty (configure.ac): Update.
24218
24219 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24220
24221         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24222         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24223
24224 2010-03-25  Eric Blake  <eblake@redhat.com>
24225
24226         maint: use pragma consistently across replacement headers
24227         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24228         * lib/dirent.in.h (system_header): Likewise.
24229         * lib/errno.in.h (system_header): Likewise.
24230         * lib/float.in.h (system_header): Likewise.
24231         * lib/getopt.in.h (system_header): Likewise.
24232         * lib/iconv.in.h (system_header): Likewise.
24233         * lib/inttypes.in.h (system_header): Likewise.
24234         * lib/langinfo.in.h (system_header): Likewise.
24235         * lib/locale.in.h (system_header): Likewise.
24236         * lib/math.in.h (system_header): Likewise.
24237         * lib/netdb.in.h (system_header): Likewise.
24238         * lib/netinet_in.in.h (system_header): Likewise.
24239         * lib/pty.in.h (system_header): Likewise.
24240         * lib/sched.in.h (system_header): Likewise.
24241         * lib/se-selinux.in.h (system_header): Likewise.
24242         * lib/search.in.h (system_header): Likewise.
24243         * lib/spawn.in.h (system_header): Likewise.
24244         * lib/stdarg.in.h (system_header): Likewise.
24245         * lib/stdint.in.h (system_header): Likewise.
24246         * lib/string.in.h (system_header): Likewise.
24247         * lib/strings.in.h (system_header): Likewise.
24248         * lib/sys_file.in.h (system_header): Likewise.
24249         * lib/sys_ioctl.in.h (system_header): Likewise.
24250         * lib/sys_socket.in.h (system_header): Likewise.
24251         * lib/sys_times.in.h (system_header): Likewise.
24252         * lib/sys_utsname.in.h (system_header): Likewise.
24253         * lib/sys_wait.in.h (system_header): Likewise.
24254         * lib/sysexits.in.h (system_header): Likewise.
24255         * lib/unistd.in.h (system_header): Likewise.
24256         * lib/wctype.in.h (system_header): Likewise.
24257
24258         arpa/inet: fix mingw compilation warning
24259         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24260         Reported by Matthew Bolte.
24261
24262 2010-03-25  Bruno Haible  <bruno@clisp.org>
24263
24264         Avoid collision between gnulib wrapper and libintl wrapper.
24265         * lib/printf.c (printf): Don't define if a printf wrapper is already
24266         defined in intl/printf.c.
24267         Reported by Michel Boaventura <michel@michelboaventura.com>.
24268
24269 2010-03-25  Bruno Haible  <bruno@clisp.org>
24270
24271         Use ANSI C.
24272         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24273
24274 2010-03-25  Bruno Haible  <bruno@clisp.org>
24275
24276         Minor formatting changes.
24277         * lib/acosl.c: Insert space before function argument list.
24278         * lib/argz.c: Likewise.
24279         * lib/asinl.c: Likewise.
24280         * lib/expl.c: Likewise.
24281         * lib/gen-uni-tables.c: Likewise.
24282         * lib/gettext.h: Likewise.
24283         * lib/glthread/lock.h: Likewise.
24284         * lib/tanl.c: Likewise.
24285         * lib/uniname/uniname.c: Likewise.
24286         * tests/test-idpriv-drop.c: Likewise.
24287         * tests/test-idpriv-droptemp.c: Likewise.
24288         * tests/test-lock.c: Likewise.
24289         * tests/test-tls.c: Likewise.
24290         * lib/argp-help.c: Insert space before function-like macro argument
24291         list.
24292         * lib/memcmp.c: Likewise.
24293         * tests/test-base64.c: Likewise.
24294         * lib/localename.c: Insert space before sizeof's argument list.
24295         * lib/safe-alloc.h: Likewise.
24296         * lib/file-set.h: Insert space before macro argument list.
24297         * tests/test-argp.c: Likewise.
24298         * lib/argp-namefrob.h: Insert space before function parameter list.
24299         * lib/getaddrinfo.c: Likewise.
24300         * lib/netdb.in.h: Likewise.
24301         * lib/parse-duration.h: Likewise.
24302         * lib/parse-duration.c: Likewise.
24303         * lib/poll.c: Likewise.
24304         * lib/select.c: Likewise.
24305         * lib/trim.h: Likewise.
24306         * tests/test-usleep.c: Likewise.
24307         * lib/ldexpl.c: Insert space before function parameter list and before
24308         function argument list.
24309         * lib/logl.c: Likewise.
24310         * lib/sqrtl.c: Likewise.
24311         * lib/trim.c: Likewise.
24312         * lib/cosl.c: Use GNU style indentation. Insert space before function
24313         argument list.
24314         * lib/sinl.c: Likewise.
24315         * lib/tsearch.c: Insert space after 'for'.
24316         Reported by Jim Meyering.
24317
24318 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24319
24320         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24321         config header before grepping, as it's not present before
24322         autoreconf/configure are run.  Reported by Simon Josefsson.
24323
24324 2010-03-23  Bruno Haible  <bruno@clisp.org>
24325
24326         pt_chown: Make it work with automake < 1.11.
24327         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24328         Reported by Simon Josefsson.
24329
24330 2010-03-23  Bruno Haible  <bruno@clisp.org>
24331
24332         pt_chown: Don't depend on GPLed modules.
24333         * lib/pt_chown.c: Don't include idpriv.h.
24334         (main): Don't drop privileges.
24335         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24336         Reported by Simon Josefsson.
24337
24338 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24339
24340         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24341         suggestions from karl@freefriends.org (Karl Berry).
24342
24343 2010-03-22  Eric Blake  <eblake@redhat.com>
24344
24345         gethostname: further tweaks
24346         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24347         are overriding gethostname.
24348         Suggested by Bruno Haible.
24349
24350 2010-03-21  Bruno Haible  <bruno@clisp.org>
24351
24352         Fix comments.
24353         * lib/forkpty.c (rpl_forkpty): Fix comment.
24354         * lib/openpty.c (rpl_openpty): Likewise.
24355         Reported by Eric Blake.
24356
24357 2010-03-22  Eric Blake  <eblake@redhat.com>
24358
24359         gethostname: fix build on mingw
24360         * lib/unistd.in.h (includes): Work around fact that mingw
24361         <winsock2.h> re-includes <unistd.h>, by avoiding any
24362         redeclarations if we are being included by <winsock2.h>.
24363         Reported by Matthias Bolte.
24364
24365 2010-03-21  Bruno Haible  <bruno@clisp.org>
24366
24367         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24368         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24369         modifications.
24370         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24371         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24372         provide the replacement.
24373         * modules/forkpty (Depends-on): Add openpty, login_tty.
24374         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24375         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24376         * doc/glibc-functions/forkpty.texi: More supported platforms.
24377         * config/srclist.txt: Add forkpty.c (commented).
24378
24379 2010-03-21  Bruno Haible  <bruno@clisp.org>
24380
24381         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24382         (Makefile.am): Verify that PTY_LIB is defined.
24383
24384         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24385
24386 2010-03-21  Bruno Haible  <bruno@clisp.org>
24387
24388         Tests for module 'login_tty'.
24389         * modules/login_tty-tests: New file.
24390         * tests/test-login_tty.c: New file.
24391
24392         New module 'login_tty'.
24393         * lib/login_tty.c: New file.
24394         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24395         * modules/login_tty: New file.
24396         * doc/glibc-functions/login_tty.texi: Mention the new module.
24397
24398 2010-03-21  Bruno Haible  <bruno@clisp.org>
24399
24400         login_tty: Documentation.
24401         * doc/glibc-functions/login_tty.texi: New file.
24402         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24403
24404 2010-03-21  Bruno Haible  <bruno@clisp.org>
24405
24406         pty: Consistent macro naming.
24407         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24408         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24409         * modules/pty (configure.ac): Update.
24410
24411 2010-03-21  Bruno Haible  <bruno@clisp.org>
24412
24413         Tests for openpty: Make stricter.
24414         * tests/test-openpty.c (main): Add test of canonical processing and
24415         erase.
24416         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24417
24418         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24419         * lib/openpty.c (openpty): New replacement function.
24420         * lib/pty.in.h: Include <termios.h>.
24421         (openpty): Update declaration. Add comments.
24422         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24423         is not declared, arrange to provide the replacement. Check for _getpty
24424         and posix_openpt.
24425         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24426         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24427         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24428         * modules/pty-tests (test_pty_c___LDADD): New variable.
24429         * doc/glibc-functions/openpty.texi: More supported platforms.
24430
24431 2010-03-21  Bruno Haible  <bruno@clisp.org>
24432
24433         setenv: Tweaks.
24434         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24435         the test program.
24436         * doc/posix-functions/setenv.texi: Update platforms list.
24437
24438 2010-03-21  Bruno Haible  <bruno@clisp.org>
24439
24440         New module 'unlockpt'.
24441         * lib/unlockpt.c: New file, from glibc with modifications.
24442         * m4/unlockpt.m4: New file.
24443         * modules/unlockpt: New file.
24444         * lib/stdlib.in.h (unlockpt): New declaration.
24445         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24446         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24447         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24448         HAVE_UNLOCKPT.
24449         * doc/posix-functions/unlockpt.texi: Mention the new module.
24450         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24451         * config/srclist.txt: Add unlockpt.c (commented).
24452
24453 2010-03-21  Jim Meyering  <meyering@redhat.com>
24454
24455         maint.mk: prohibit inclusion of "intprops.h" without use
24456         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24457
24458 2010-03-21  Bruno Haible  <bruno@clisp.org>
24459
24460         New module 'grantpt'.
24461         * lib/grantpt.c: New file, from glibc with modifications.
24462         * m4/grantpt.m4: New file.
24463         * modules/grantpt: New file.
24464         * lib/stdlib.in.h (grantpt): New declaration.
24465         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24466         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24467         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24468         HAVE_GRANTPT.
24469         * doc/posix-functions/grantpt.texi: Mention the new module.
24470         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24471         * config/srclist.txt: Add grantpt.c (commented).
24472
24473 2010-03-21  Bruno Haible  <bruno@clisp.org>
24474
24475         New module 'pt_chown'.
24476         * lib/pt_chown.c: New file, from glibc with modifications.
24477         * lib/pty-private.h: New file, from glibc with modifications.
24478         * modules/pt_chown: New file.
24479         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24480
24481 2010-03-21  Bruno Haible  <bruno@clisp.org>
24482
24483         Tests for module 'ptsname'.
24484         * modules/ptsname-tests: New file.
24485         * tests/test-ptsname.c: New file.
24486
24487         New module 'ptsname'.
24488         * lib/ptsname.c: New file, from glibc with modifications.
24489         * m4/ptsname.m4: New file.
24490         * modules/ptsname: New file.
24491         * lib/stdlib.in.h (ptsname): New declaration.
24492         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24493         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24494         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24495         HAVE_PTSNAME.
24496         * doc/posix-functions/ptsname.texi: Mention the new module.
24497         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24498         * config/srclist.txt: Add ptsname.c (commented).
24499
24500 2010-03-21  Bruno Haible  <bruno@clisp.org>
24501
24502         Tests for module 'ttyname_r'.
24503         * modules/ttyname_r-tests: New file.
24504         * tests/test-ttyname_r.c: New file.
24505
24506         New module 'ttyname_r'.
24507         * lib/ttyname_r.c: New file.
24508         * m4/ttyname_r.m4: New file.
24509         * modules/ttyname_r: New file.
24510         * lib/unistd.in.h (ttyname_r): New declaration.
24511         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24512         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24513         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24514         HAVE_TTYNAME_R.
24515         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24516         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24517
24518 2010-03-20  Bruno Haible  <bruno@clisp.org>
24519
24520         signal: Undefine macro definitions in C++ mode.
24521         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24522         sigfillset): Undefine macro definitions from the system header in C++
24523         mode.
24524         Reported by John W. Eaton <jwe@gnu.org>.
24525
24526 2010-03-20  Bruno Haible  <bruno@clisp.org>
24527
24528         Ensure no #include statements inside extern "C" { ... }.
24529         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24530         contain #include statements.
24531         * lib/time.in.h: Likewise.
24532
24533 2010-03-20  Bruno Haible  <bruno@clisp.org>
24534
24535         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24536         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24537         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24538         Reported by John W. Eaton <jwe@gnu.org>.
24539
24540 2010-03-20  Bruno Haible  <bruno@clisp.org>
24541
24542         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24543         Reported by Jim Meyering.
24544
24545 2010-03-20  Bruno Haible  <bruno@clisp.org>
24546
24547         pipe: Set errno upon failure.
24548         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24549         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24550         errno value in error message.
24551
24552 2010-03-20  Bruno Haible  <bruno@clisp.org>
24553             Jim Meyering  <meyering@redhat.com>
24554
24555         lchown: Avoid "unused variable" warning.
24556         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24557
24558 2010-03-20  Bruno Haible  <bruno@clisp.org>
24559
24560         Work around unlink() bug on MacOS X 10.5.6.
24561         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24562         attempting to unlink a parent directory.
24563         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24564         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24565         activate for the replacement function.
24566         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24567
24568 2010-03-20  Bruno Haible  <bruno@clisp.org>
24569
24570         Fix link errors on Solaris 8.
24571         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24572         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24573
24574 2010-03-19  Jim Meyering  <meyering@redhat.com>
24575
24576         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24577         The _LIBC implementation of build_range_exp correctly honors the
24578         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24579         However, the non-_LIBC implementation would ignore that syntax-bit
24580         flag and return REG_ERANGE unconditionally.
24581         This change makes it honor that flag.
24582         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24583         Make two pointer parameters "const".
24584         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24585         (parse_bracket_exp): Update caller.
24586
24587         regex.m4: correct the reversed range endpoint ([b-a]) test
24588         * m4/regex.m4: When requiring that [b-a] evoke failure,
24589         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24590         test pass once again for x86-based systems.
24591
24592 2010-03-19  Bruno Haible  <bruno@clisp.org>
24593
24594         scandir: Fix link error on Solaris 8.
24595         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24596         macros.
24597
24598 2010-03-19  Bruno Haible  <bruno@clisp.org>
24599
24600         getusershell: Fix documentation.
24601         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24602         module.
24603         * doc/glibc-functions/setusershell.texi: Likewise.
24604
24605         getusershell: Provide declaration, missing on Solaris 9.
24606         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24607         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24608         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24609         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24611         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24612         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24613         HAVE_GETUSERSHELL.
24614         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24615
24616 2010-03-19  Bruno Haible  <bruno@clisp.org>
24617
24618         wctype: Provide iswblank function.
24619         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24620         exists and is fine.
24621         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24622         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24623         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24624         * doc/posix-functions/iswblank.texi: Update.
24625
24626 2010-03-19  Bruno Haible  <bruno@clisp.org>
24627
24628         Tests of module 'pty' in C++ mode.
24629         * modules/pty-tests: New file.
24630         * tests/test-pty-c++.cc: New file.
24631         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24632
24633 2010-03-19  Eric Blake  <eblake@redhat.com>
24634
24635         logb: fix documentation
24636         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24637         1.5 declaration bug.
24638
24639         forkpty, openpty: prefer glibc's const-safe prototype
24640         * lib/forkpty.c (rpl_forkpty): New file.
24641         * lib/openpty.c (rpl_openpty): Likewise.
24642         * modules/forkpty (Files): Distribute it.
24643         * modules/openpty (Files): Likewise.
24644         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24645         check...
24646         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24647         replacement for for non-const BSD signature.
24648         * modules/pty (Makefile.am): Substitute witnesses.
24649         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24650         * tests/test-forkpty.c: Update signature check.
24651         * tests/test-openpty.c: Likewise.
24652         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24653         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24654
24655         forkpty, openpty: split functions into new modules
24656         * modules/pty (Makefile.am): Substitute new witnesses.
24657         (Libraries): Move library detection...
24658         * modules/forkpty: ...into new module.
24659         * modules/openpty: Another new module.
24660         * modules/pty-tests: Rename and split...
24661         * modules/forkpty-tests: ...to this...
24662         * modules/openpty-tests: ...and this.
24663         * tests/test-pty.c: Rename and split...
24664         * tests/test-forkpty.c: ...to this...
24665         * tests/test-openpty.c: ...and this.
24666         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24667         (gl_PTY): Split library searching...
24668         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24669         (gl_FORKPTY, gl_OPENPTY): New macros.
24670         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24671         * NEWS: Mention the split.
24672         * MODULES.html.sh (Misc): Document the modules.
24673         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24674         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24675
24676         pty: improve replacement header
24677         * lib/pty.in.h: New file.
24678         * modules/pty (Files): Ship it.
24679         (Makefile.am): Always build replacement.
24680         * m4/pty.m4: Rename...
24681         * m4/pty_h.m4: ...to this.
24682         (gl_PTY): Modernize setting of witness macros; update check of
24683         forkpty to take proper advantage of cache.
24684         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24685
24686         getopt: avoid compiler warning
24687         * lib/getopt.c (attribute_hidden): Remove unused macro.
24688
24689 2010-03-18  Bruno Haible  <bruno@clisp.org>
24690
24691         Fix link errors on Solaris 8.
24692         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24693         * modules/search-tests (test_search_c___LDADD): Likewise.
24694         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24695         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24696         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24697         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24698         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24699         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24700         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24701
24702 2010-03-18  Bruno Haible  <bruno@clisp.org>
24703
24704         Fix bug introduced on 2010-03-14.
24705         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24706         (gl_SPAWN_H): Require it.
24707         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24708         Reported by Simon Josefsson.
24709
24710 2010-03-18  Bruno Haible  <bruno@clisp.org>
24711
24712         Fix typo introduced on 2009-12-31.
24713         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24714         posix_spawn_file_actions_adddup2.
24715
24716 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24717         and Eric Blake  <eblake@redhat.com>
24718
24719         test-vc-list-files-git: make more robust
24720         * tests/test-vc-list-files-git.sh: Unset problematic environment
24721         variables.  Chain commands together.
24722
24723 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24724
24725         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24726         `AC_CHECK_DECL' invocation.
24727
24728 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24729
24730         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24731         appears before executable statements. Suggested by Petr Sumbera
24732         <Petr.Sumbera@Sun.COM>.
24733
24734 2010-03-14  Bruno Haible  <bruno@clisp.org>
24735
24736         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24737         portability problems. Instead use a simpler test.
24738         (main): Check that invalid arguments are rejected only on Linux.
24739
24740 2010-03-14  Bruno Haible  <bruno@clisp.org>
24741
24742         Fix bug introduced on 2009-12-31.
24743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24744         gl_PREREQ_SYS_H_WINSOCK2 always.
24745         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24746         SYS_SOCKET_H variable.
24747         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24748         Update comments.
24749         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24750         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24751         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24752         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24753         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24754
24755 2010-03-14  Bruno Haible  <bruno@clisp.org>
24756
24757         Fix values returned by sinl, cosl.
24758         * lib/trigl.h: Add specification comments.
24759         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24760         that combines the values from the precomputed table with the values of
24761         the Chebyshev polynomials.
24762
24763 2010-03-14  Bruno Haible  <bruno@clisp.org>
24764
24765         Fix compilation error when modules 'posix_spawn[p]' are not used.
24766         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24767         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24768
24769 2010-03-14  Bruno Haible  <bruno@clisp.org>
24770
24771         Fix compilation error on mingw when module 'time_r' is not used.
24772         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24773         is 1.
24774         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24775         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24776         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24777         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24778
24779 2010-03-14  Bruno Haible  <bruno@clisp.org>
24780
24781         Fix compilation error with Sun C.
24782         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24783         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24784         instead of GCC specific ULONG_LONG_MAX.
24785         * lib/xstrtoll.c: Likewise.
24786         * lib/xstrtoull.c: Likewise.
24787
24788 2010-03-13  Bruno Haible  <bruno@clisp.org>
24789
24790         Allow the user to disable C++ code and tests.
24791         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24792         (gl_PROG_ANSI_CXX): Require it.
24793
24794 2010-03-13  Bruno Haible  <bruno@clisp.org>
24795
24796         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24797         cases.
24798
24799 2010-03-13  Bruno Haible  <bruno@clisp.org>
24800
24801         Test that gnulib does not break the standard C++ headers.
24802         * tests/test-locale-c++2.cc: New file.
24803         * modules/locale-tests (Files): Add it.
24804         (Makefile.am): Compile it for test-locale-c++.
24805         * tests/test-math-c++2.cc: New file.
24806         * modules/math-tests (Files): Add it.
24807         (Makefile.am): Compile it for test-math-c++.
24808         * tests/test-signal-c++2.cc: New file.
24809         * modules/signal-tests (Files): Add it.
24810         (Makefile.am): Compile it for test-signal-c++.
24811         * tests/test-stdio-c++2.cc: New file.
24812         * modules/stdio-tests (Files): Add it.
24813         (Makefile.am): Compile it for test-stdio-c++.
24814         * tests/test-stdlib-c++2.cc: New file.
24815         * modules/stdlib-tests (Files): Add it.
24816         (Makefile.am): Compile it for test-stdlib-c++.
24817         * tests/test-string-c++2.cc: New file.
24818         * modules/string-tests (Files): Add it.
24819         (Makefile.am): Compile it for test-string-c++.
24820         * tests/test-time-c++2.cc: New file.
24821         * modules/time-tests (Files): Add it.
24822         (Makefile.am): Compile it for test-time-c++.
24823         Reported by John W. Eaton <jwe@gnu.org>.
24824
24825 2010-03-13  Bruno Haible  <bruno@clisp.org>
24826
24827         * gnulib-tool (func_usage): Clarify which options are available for
24828         --create-testdir and --create-megatestdir.
24829
24830 2010-03-13  Bruno Haible  <bruno@clisp.org>
24831
24832         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24833         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24834         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24835         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24836         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24837         when appropriate.
24838         Reported by Jim Meyering.
24839
24840 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24841
24842         * gnulib-tool (func_import): Explain origin of code.
24843
24844 2010-03-12  Bruno Haible  <bruno@clisp.org>
24845
24846         Fix problem with automake's definition of CXXLINK.
24847         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24848         Reported by Simon Josefsson and Ludovic Courtès.
24849
24850 2010-03-12  Bruno Haible  <bruno@clisp.org>
24851
24852         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24853         stable releases.
24854
24855 2010-03-11  Bruno Haible  <bruno@clisp.org>
24856
24857         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24858         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24859         whether the system provides one variant or multiple variants of the
24860         function.
24861         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24862         C++ compilers.
24863         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24864         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24865         Reported by Jim Meyering.
24866
24867 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24868
24869         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24870
24871 2010-03-08  Bruno Haible  <bruno@clisp.org>
24872
24873         gnulib-tool: Add support for --libtool in --create-testdir.
24874         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
24875         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
24876
24877 2010-03-08  Eric Blake  <eblake@redhat.com>
24878
24879         gnulib-tool.texi: mention possibility of git submodule
24880         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
24881         submodules.
24882         * doc/.gitignore: Ignore another generated file.
24883
24884 2010-03-08  Karl Berry  <karl@gnu.org>
24885
24886         * doc/gnulib-tool.texi (VCS Issues): Mention third option
24887         of committing gnulib files while skipping others.
24888
24889 2010-03-07  Bruno Haible  <bruno@clisp.org>
24890
24891         Tests of module 'wctype' in C++ mode.
24892         * tests/test-wctype-c++.cc: New file.
24893         * modules/wctype-tests (Files): Add it and tests/signature.h.
24894         (Depends-on): Add ansi-c++-opt.
24895         (Makefile.am): Arrange to compile and run test-wctype-c++.
24896
24897         Tests of module 'wchar' in C++ mode.
24898         * tests/test-wchar-c++.cc: New file.
24899         * modules/wchar-tests (Files): Add it and tests/signature.h.
24900         (Depends-on): Add ansi-c++-opt.
24901         (Makefile.am): Arrange to compile and run test-wchar-c++.
24902         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
24903         gl_MODULE_INDICATOR.
24904
24905         Tests of module 'unistd' in C++ mode.
24906         * tests/test-unistd-c++.cc: New file.
24907         * modules/unistd-tests (Files): Add it and tests/signature.h.
24908         (Depends-on): Add ansi-c++-opt.
24909         (Makefile.am): Arrange to compile and run test-unistd-c++.
24910         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
24911         gl_MODULE_INDICATOR.
24912
24913         Tests of module 'time' in C++ mode.
24914         * tests/test-time-c++.cc: New file.
24915         * modules/time-tests (Files): Add it and tests/signature.h.
24916         (Depends-on): Add ansi-c++-opt.
24917         (Makefile.am): Arrange to compile and run test-time-c++.
24918         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24919
24920         Tests of module 'sys_time' in C++ mode.
24921         * tests/test-sys_time-c++.cc: New file.
24922         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24923         (Depends-on): Add ansi-c++-opt.
24924         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24925         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24926         gl_MODULE_INDICATOR.
24927
24928         Tests of module 'sys_stat' in C++ mode.
24929         * tests/test-sys_stat-c++.cc: New file.
24930         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24931         (Depends-on): Add ansi-c++-opt.
24932         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24933         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24934         gl_MODULE_INDICATOR.
24935
24936         Tests of module 'sys_socket' in C++ mode.
24937         * tests/test-sys_socket-c++.cc: New file.
24938         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24939         (Depends-on): Add ansi-c++-opt.
24940         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24942         gl_MODULE_INDICATOR.
24943
24944         Tests of module 'sys_select' in C++ mode.
24945         * tests/test-sys_select-c++.cc: New file.
24946         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24947         (Depends-on): Add ansi-c++-opt.
24948         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24949         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24950         gl_MODULE_INDICATOR.
24951
24952         Tests of module 'sys_ioctl' in C++ mode.
24953         * tests/test-sys_ioctl-c++.cc: New file.
24954         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24955         (Depends-on): Add ansi-c++-opt.
24956         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24958         gl_MODULE_INDICATOR.
24959
24960         Tests of module 'string' in C++ mode.
24961         * tests/test-string-c++.cc: New file.
24962         * modules/string-tests (Files): Add it and tests/signature.h.
24963         (Depends-on): Add ansi-c++-opt.
24964         (Makefile.am): Arrange to compile and run test-string-c++.
24965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24966         gl_MODULE_INDICATOR.
24967
24968         Tests of module 'stdlib' in C++ mode.
24969         * tests/test-stdlib-c++.cc: New file.
24970         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24971         (Depends-on): Add ansi-c++-opt.
24972         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24973         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24974         gl_MODULE_INDICATOR.
24975
24976         Tests of module 'stdio' in C++ mode.
24977         * tests/test-stdio-c++.cc: New file.
24978         * modules/stdio-tests (Files): Add it and tests/signature.h.
24979         (Depends-on): Add ansi-c++-opt.
24980         (Makefile.am): Arrange to compile and run test-stdio-c++.
24981         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24982         gl_MODULE_INDICATOR.
24983
24984         Tests of module 'spawn' in C++ mode.
24985         * tests/test-spawn-c++.cc: New file.
24986         * modules/spawn-tests (Files): Add it and tests/signature.h.
24987         (Depends-on): Add ansi-c++-opt.
24988         (Makefile.am): Arrange to compile and run test-spawn-c++.
24989         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24990         gl_MODULE_INDICATOR.
24991
24992         Tests of module 'signal' in C++ mode.
24993         * tests/test-signal-c++.cc: New file.
24994         * modules/signal-tests (Files): Add it and tests/signature.h.
24995         (Depends-on): Add ansi-c++-opt.
24996         (Makefile.am): Arrange to compile and run test-signal-c++.
24997         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24998         gl_MODULE_INDICATOR.
24999
25000         Tests of module 'search' in C++ mode.
25001         * tests/test-search-c++.cc: New file.
25002         * modules/search-tests (Files): Add it and tests/signature.h.
25003         (Depends-on): Add ansi-c++-opt.
25004         (Makefile.am): Arrange to compile and run test-search-c++.
25005         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25006         gl_MODULE_INDICATOR.
25007
25008         Tests of module 'math' in C++ mode.
25009         * tests/test-math-c++.cc: New file.
25010         * modules/math-tests (Files): Add it and tests/signature.h.
25011         (Depends-on): Add ansi-c++-opt.
25012         (Makefile.am): Arrange to compile and run test-math-c++.
25013         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25014
25015         Tests of module 'locale' in C++ mode.
25016         * tests/test-locale-c++.cc: New file.
25017         * modules/locale-tests (Files): Add it and tests/signature.h.
25018         (Depends-on): Add ansi-c++-opt.
25019         (Makefile.am): Arrange to compile and run test-locale-c++.
25020         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25021         gl_MODULE_INDICATOR.
25022
25023         Tests of module 'langinfo' in C++ mode.
25024         * tests/test-langinfo-c++.cc: New file.
25025         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25026         (Depends-on): Add ansi-c++-opt.
25027         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25028         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25029         gl_MODULE_INDICATOR.
25030
25031         Tests of module 'iconv-h' in C++ mode.
25032         * tests/test-iconv-h-c++.cc: New file.
25033         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25034         (Depends-on): Add ansi-c++-opt.
25035         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25036
25037         Tests of module 'glob' in C++ mode.
25038         * tests/test-glob-c++.cc: New file.
25039         * modules/glob-tests (Files): Add it.
25040         (Depends-on): Add ansi-c++-opt.
25041         (Makefile.am): Arrange to compile and run test-glob-c++.
25042
25043         Tests of module 'fcntl-h' in C++ mode.
25044         * tests/test-fcntl-h-c++.cc: New file.
25045         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25046         (Depends-on): Add ansi-c++-opt.
25047         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25048         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25049         gl_MODULE_INDICATOR.
25050
25051         Tests of module 'dirent' in C++ mode.
25052         * tests/test-dirent-c++.cc: New file.
25053         * modules/dirent-tests (Files): Add it and tests/signature.h.
25054         (Depends-on): Add ansi-c++-opt.
25055         (Makefile.am): Arrange to compile and run test-dirent-c++.
25056         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25057         gl_MODULE_INDICATOR.
25058
25059         New module 'ansi-c++-opt'.
25060         * modules/ansi-c++-opt: New file.
25061         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25062
25063         Document C++ namespace mode.
25064         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25065
25066         wctype: Avoid #define replacements in C++ mode.
25067         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25068         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25069         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25070         In C++, define a namespaced alias symbol.
25071         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25072         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25073         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25074         rule.
25075
25076         wchar: Avoid #define replacements in C++ mode.
25077         * lib/wchar.in.h: Include c++defs.h.
25078         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25079         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25080         symbol.
25081         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25082         * modules/wchar (Depends-on): Add c++defs.
25083         (Makefile.am): Update wchar.h rule.
25084
25085         unistd: Avoid #define replacements in C++ mode.
25086         * lib/unistd.in.h: Include c++defs.h.
25087         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25088         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25089         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25090         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25091         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25092         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25093         symbol.
25094         (environ): Update.
25095         * modules/unistd (Depends-on): Add c++defs.
25096         (Makefile.am): Update unistd.h rule.
25097
25098         time: Avoid #define replacements in C++ mode.
25099         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25100         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25101         define a namespaced alias symbol.
25102         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25103         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25104         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25105         * modules/time (Depends-on): Add c++defs, warn-on-use.
25106         (Makefile.am): Update time.h rule.
25107         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25108         * modules/nanosleep (configure.ac): Likewise.
25109         * modules/strptime (configure.ac): Likewise.
25110         * modules/timegm (configure.ac): Likewise.
25111
25112         sys_time: Avoid #define replacements in C++ mode.
25113         * lib/sys_time.in.h: Include c++defs.h.
25114         (gettimeofday): In C++, define a namespaced alias symbol.
25115         * modules/sys_time (Depends-on): Add c++defs.
25116         (Makefile.am): Update sys/time.h rule.
25117
25118         sys_stat: Avoid #define replacements in C++ mode.
25119         * lib/sys_stat.in.h: Include c++defs.h.
25120         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25121         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25122         namespaced alias symbol.
25123         In C++, define a namespaced alias symbol.
25124         * modules/sys_stat (Depends-on): Add c++defs.
25125         (Makefile.am): Update sys/stat.h rule.
25126
25127         sys_socket: Avoid #define replacements in C++ mode.
25128         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25129         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25130         definitions also when the system has a <sys/socket.h>.
25131         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25132         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25133         In C++, define a namespaced alias symbol.
25134         * modules/sys_socket (Depends-on): Add c++defs.
25135         (Makefile.am): Update sys/socket.h rule.
25136
25137         sys_select: Avoid #define replacements in C++ mode.
25138         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25139         definitions also when the system has a <sys/select.h>.
25140         (select): In C++, define a namespaced alias symbol.
25141         * modules/sys_select (Depends-on): Add c++defs.
25142         (Makefile.am): Update sys/select.h rule.
25143
25144         sys_ioctl: Avoid #define replacements in C++ mode.
25145         * lib/sys_ioctl.in.h: Include c++defs.h.
25146         (ioctl): In C++, define a namespaced alias symbol.
25147         * modules/sys_ioctl (Depends-on): Add c++defs.
25148         (Makefile.am): Update sys/ioctl.h rule.
25149
25150         string: Avoid #define replacements in C++ mode.
25151         * lib/string.in.h: Include c++defs.h.
25152         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25153         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25154         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25155         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25156         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25157         * modules/string (Depends-on): Add c++defs.
25158         (Makefile.am): Update string.h rule.
25159
25160         stdlib: Avoid #define replacements in C++ mode.
25161         * lib/stdlib.in.h: Include c++defs.h.
25162         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25163         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25164         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25165         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25166         symbol.
25167         * modules/stdlib (Depends-on): Add c++defs.
25168         (Makefile.am): Update stdlib.h rule.
25169
25170         stdio: Avoid #define replacements in C++ mode.
25171         * lib/stdio.in.h: Include c++defs.h.
25172         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25173         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25174         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25175         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25176         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25177         namespaced alias symbol.
25178         * modules/stdio (Depends-on): Add c++defs.
25179         (Makefile.am): Update stdio.h rule.
25180
25181         spawn: Avoid #define replacements in C++ mode.
25182         * lib/spawn.in.h: Include c++defs.h.
25183         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25184         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25185         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25186         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25187         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25188         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25189         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25190         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25191         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25192         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25193         In C++, define a namespaced alias symbol.
25194         * modules/spawn (Depends-on): Add c++defs.
25195         (Makefile.am): Update spawn.h rule.
25196
25197         signal: Avoid #define replacements in C++ mode.
25198         * lib/signal.in.h: Include c++defs.h.
25199         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25200         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25201         namespaced alias symbol.
25202         * modules/signal (Depends-on): Add c++defs.
25203         (Makefile.am): Update signal.h rule.
25204
25205         search: Avoid #define replacements in C++ mode.
25206         * lib/search.in.h: Include c++defs.h.
25207         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25208         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25209         symbol.
25210         * modules/search (Depends-on): Add c++defs.
25211         (Makefile.am): Update search.h rule.
25212
25213         math: Avoid #define replacements in C++ mode.
25214         * lib/math.in.h: Include c++defs.h.
25215         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25216         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25217         trunc, truncl): In C++, define a namespaced alias symbol.
25218         * modules/math (Depends-on): Add c++defs.
25219         (Makefile.am): Update math.h rule.
25220
25221         locale: Avoid #define replacements in C++ mode.
25222         * lib/locale.in.h: Include c++defs.h.
25223         (duplocale): In C++, define a namespaced alias symbol.
25224         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25225         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25226         * modules/locale (Depends-on): Add c++defs.
25227         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25228
25229         langinfo: Avoid #define replacements in C++ mode.
25230         * lib/langinfo.in.h: Include c++defs.h.
25231         (nl_langinfo): In C++, define a namespaced alias symbol.
25232         * modules/langinfo (Depends-on): Add c++defs.
25233         (Makefile.am): Update langinfo.h rule.
25234
25235         iconv-h: Avoid #define replacements in C++ mode.
25236         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25237         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25238         symbol.
25239         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25240         whenever iconv is present.
25241         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25242         (Makefile.am): Update iconv.h rule.
25243
25244         glob: Avoid #define replacements in C++ mode.
25245         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25246         (_gl_glob_errfunc_fn): New type.
25247         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25248         symbol.
25249         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25250         (Makefile.am): Update glob.h rule.
25251
25252         fcntl-h: Avoid #define replacements in C++ mode.
25253         * lib/fcntl.in.h: Include c++defs.h.
25254         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25255         * modules/fcntl-h (Depends-on): Add c++defs.
25256         (Makefile.am): Update fcntl.h rule.
25257
25258         dirent: Avoid #define replacements in C++ mode.
25259         * lib/dirent.in.h: Include c++defs.h.
25260         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25261         namespaced alias symbol.
25262         (dirfd): Update declaration.
25263         * modules/dirent (Depends-on): Add c++defs.
25264         (Makefile.am): Update dirent.h rule.
25265
25266         ctype: Make it usable in C++ code.
25267         * lib/ctype.in.h: Include c++defs.h.
25268         (isblank): Declare as extern "C".
25269         * modules/ctype (Depends-on): Add c++defs.
25270         (Makefile.am): Update ctype.h rule.
25271
25272         New module 'c++defs'.
25273         * modules/c++defs: New file.
25274         * build-aux/c++defs.h: New file.
25275         Reported by John W. Eaton <jwe@gnu.org>.
25276
25277 2010-03-07  Bruno Haible  <bruno@clisp.org>
25278
25279         logb: Provide missing declaration for Cygwin.
25280         * lib/math.in.h (logb): New declaration.
25281         * m4/logb.m4: New file.
25282         * modules/logb (Files): Add m4/logb.m4.
25283         (Depends-on): Add math.
25284         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25285         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25287         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25288         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25289
25290 2010-03-07  Bruno Haible  <bruno@clisp.org>
25291
25292         Fix test-cond link error.
25293         * tests/test-cond.c: Include <stdio.h>.
25294
25295 2010-03-07  Bruno Haible  <bruno@clisp.org>
25296
25297         Fix test-dirent-safer link error.
25298         * modules/dirent-safer-tests (Makefile.am): Define
25299         test_dirent_safer_LDADD.
25300
25301 2010-03-07  Bruno Haible  <bruno@clisp.org>
25302
25303         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25304         among default module list.
25305
25306 2010-03-07  Bruno Haible  <bruno@clisp.org>
25307
25308         Fix link error on platforms with GNU libiconv.
25309         * modules/unistr/u8-strcoll-tests (Makefile): Define
25310         test_u8_strcoll_LDADD.
25311         * modules/unistr/u16-strcoll-tests (Makefile): Define
25312         test_u16_strcoll_LDADD.
25313         * modules/unistr/u32-strcoll-tests (Makefile): Define
25314         test_u32_strcoll_LDADD.
25315
25316 2010-03-07  Bruno Haible  <bruno@clisp.org>
25317
25318         Use POSIX declarations for socket functions.
25319         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25320         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25321         rpl_sendto): Change declaration to match POSIX.
25322         * lib/connect.c (rpl_connect): Likewise.
25323         * lib/accept.c (rpl_accept): Likewise.
25324         * lib/bind.c (rpl_bind): Likewise.
25325         * lib/getpeername.c (rpl_getpeername): Likewise.
25326         * lib/getsockname.c (rpl_getsockname): Likewise.
25327         * lib/recv.c (rpl_recv): Likewise.
25328         * lib/send.c (rpl_send): Likewise.
25329         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25330         * lib/sendto.c (rpl_sendto): Likewise.
25331
25332 2010-03-06  Bruno Haible  <bruno@clisp.org>
25333
25334         Clarify access, euidaccess, faccessat.
25335         * doc/posix-functions/faccessat.texi: Mention security problem under
25336         "Other problems", not "Portability problems".
25337         * doc/posix-functions/access.texi: Likewise. Mention a related security
25338         problem.
25339         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25340         * lib/euidaccess.c: Add comments about platforms.
25341         * lib/unistd.in.h (access, euidaccess): Add warnings.
25342
25343 2010-03-07  Bruno Haible  <bruno@clisp.org>
25344
25345         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25346         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25347         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25348         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25349         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25350         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25351         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25352         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25353         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25354         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25355         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25356         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25357         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25358         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25359         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25360         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25361         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25362         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25363         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25364         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25365         Likewise.
25366         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25367         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25368         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25369         Likewise.
25370         * tests/test-spawn.c (main): Make it work when
25371         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25372
25373 2010-03-07  Bruno Haible  <bruno@clisp.org>
25374
25375         Fix incorrect Makefile.am generation in German locale.
25376         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25377         Execute sed command with character range in C locale.
25378
25379 2010-03-06  Bruno Haible  <bruno@clisp.org>
25380
25381         Tests for module 'iconv-h'.
25382         * modules/iconv-h-tests: New file.
25383         * tests/test-iconv-h.c: New file.
25384
25385         New module 'iconv-h'.
25386         * modules/iconv-h: New file.
25387         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25388         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25389         (configure.ac): Remove gl_ICONV_H.
25390         (Makefile.am): Remove rule for iconv.h.
25391
25392 2010-03-06  Bruno Haible  <bruno@clisp.org>
25393
25394         More consistent naming of *.m4 files.
25395         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25396         * modules/wctype (Files): Update.
25397
25398         More consistent naming of *.m4 files.
25399         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25400         * modules/wchar (Files): Update.
25401
25402 2010-03-06  Jim Meyering  <meyering@redhat.com>
25403
25404         euidaccess: relax license to LGPLv2+
25405         * modules/euidaccess (License): Relax to LGPLv2+.
25406
25407 2010-03-06  Bruno Haible  <bruno@clisp.org>
25408
25409         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25410         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25411         (Makefile.am): Augment lib_SOURCES instead.
25412
25413 2010-03-04  Jim Meyering  <meyering@redhat.com>
25414
25415         utime: remove obsolete module
25416         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25417         unnecessary for years, and has been marked as obsolete for 10 months.
25418         * modules/utime: Remove file.
25419         * lib/utime.c: Remove file.
25420         * m4/utime.m4: Remove file.
25421         * m4/utimes-null.m4: Remove file.
25422         * doc/posix-functions/utime.texi (utime): Remove reference to
25423         the module.  Move the sole "fixed by gnulib" item into the
25424         "problems not fixed by Gnulib" list.
25425         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25426
25427 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25428
25429         * modules/exit (License): Relax license to LGPLv2+.
25430         (Status): Mark as obsolete.
25431         * NEWS: Mention deprecated 'exit' module.
25432         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25433         of now obsolete 'exit'.
25434
25435 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25436
25437         fts-lgpl: remove unused module
25438         * modules/fts-lgpl: Remove.
25439         * MODULES.html.sh (func_all_modules): Adjust.
25440         * check-module (find_included_lib_files): Adjust.
25441         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25442
25443 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25444
25445         copy-acl: enhance Solaris ACL error handling
25446         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25447         * lib/set-mode-acl.c (qset_acl): Likewise.
25448
25449 2010-03-02  Bruno Haible  <bruno@clisp.org>
25450
25451         spawn: Don't override the system defined values on FreeBSD 8.
25452         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25453         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25454         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25455         if HAVE_POSIX_SPAWN is 1.
25456         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25457
25458 2010-03-01  Bruno Haible  <bruno@clisp.org>
25459
25460         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25461         regarding Automake.
25462
25463 2010-02-25  Bruno Haible  <bruno@clisp.org>
25464
25465         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25466         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25467         setting, not afterwards.
25468         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25469
25470 2010-02-24  Eric Blake  <eblake@redhat.com>
25471
25472         bootstrap, git-version-gen: use timestamp
25473         * build-aux/git-version-gen (scriptversion): Force UTC.
25474         * build-aux/bootstrap (scriptversion): New variable.
25475
25476         bootstrap: allow older git
25477         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25478         older than 1.6.4.  Requested by the libvirt project.
25479
25480 2010-02-23  Eric Blake  <eblake@redhat.com>
25481
25482         warn-on-use: work with old autoconf
25483         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25484         AS_VAR semantics of autoconf 2.60.
25485         Reported by Bruno Haible.
25486
25487         bootstrap: improve some comments
25488         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25489         clarification comments.
25490
25491         gettimeofday: provide correct function
25492         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25493         when replacement is declared, otherwise provide gettimeofday.
25494         Reported by Michael Goffioul.
25495
25496 2010-02-23  Jim Meyering  <meyering@redhat.com>
25497
25498         lib-ignore: relax license to "unlimited", not LGPLv2+
25499         * modules/lib-ignore (License): Relax to "unlimited".
25500
25501 2010-02-23  Jim Meyering  <meyering@redhat.com>
25502
25503         lib-ignore: relax license to LGPLv2+
25504         * modules/lib-ignore (License): Relax to LGPLv2+.
25505
25506 2010-02-22  Eric Blake  <eblake@redhat.com>
25507
25508         lseek: avoid bash 3.2 broken pipe bug
25509         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25510         warning from bash 3.2.
25511         Reported by Ben Pfaff, with analysis from Bruno Haible.
25512
25513         bootstrap: support non-FSF copyright holder
25514         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25515         bootstrap.conf override of COPYRIGHT_HOLDER.
25516         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25517
25518         bootstrap: interoperate with gettext 0.14.1
25519         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25520
25521         bootstrap: allow for alternate submodule location
25522         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25523         hardcoding submodule location.
25524         (gnulib_mk): Allow direct use of Makefile.am.
25525
25526         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25527         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25528         rather than reconfiguring where the submodule points.
25529
25530         gettimeofday: restore support for platforms that lack function
25531         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25532         replacement if function is missing.
25533         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25534         * modules/sys_time (Makefile.am): Substitute it.
25535         * lib/sys_time.in.h (gettimeofday): Check it.
25536         Reported by Michael Goffioul.
25537
25538 2010-02-21  Bruno Haible  <bruno@clisp.org>
25539
25540         * lib/stdio.in.h (obstack_printf): Fix typo.
25541
25542 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25543
25544         vc-list-files: use bzr ls's -R option
25545         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25546         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25547
25548 2010-02-21  Jim Meyering  <meyering@redhat.com>
25549
25550         init.sh: fix EXEEXT shims to work also for names like test-prog
25551         * tests/init.sh: Re-exec a better shell, when needed.
25552         If the current shell lacks support for posix $(...), an init.sh-using
25553         test will now try to find a shell that supports that.  If EXEEXT is
25554         nonempty, we also require support for hyphen-in-alias-name and shell
25555         substitutions like ${var#glob}.  Failure to find such a shell results
25556         in a skipped test.
25557
25558 2010-02-21  Bruno Haible  <bruno@clisp.org>
25559
25560         Really work around around "broken pipe" error message from bash 3.2.
25561         * gnulib-tool (func_reset_sigpipe): Remove function.
25562         (echo): In bash 3.2, define to a function that uses printf.
25563         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25564
25565 2010-02-20  Bruno Haible  <bruno@clisp.org>
25566
25567         Restore support for automake 1.9.6 with autoconf 2.61.
25568         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25569         Reported by James Youngman <jay@gnu.org>.
25570
25571 2010-02-20  Bruno Haible  <bruno@clisp.org>
25572
25573         Improve *printf warning condition.
25574         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25575         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25576         and the function is overridden due to SIGPIPE emulation.
25577
25578 2010-02-20  Bruno Haible  <bruno@clisp.org>
25579
25580         * lib/stdio.in.h: Tweak comments.
25581
25582 2010-02-19  Bruno Haible  <bruno@clisp.org>
25583
25584         Make it easier to find modules. New gnulib-tool option '--find'.
25585         * gnulib-tool: New option --find.
25586         (func_usage): Document it.
25587         (func_sanitize_modulelist): New function, extracted from
25588         func_all_modules.
25589         (func_all_modules): Invoke it.
25590         * doc/gnulib-tool.texi (Which modules?): New node.
25591
25592 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25593
25594         * lib/sys_select.in.h: Provide select replacement even if
25595         sys/select.h exists on a system, for Interix.
25596
25597 2010-02-18  Jim Meyering  <meyering@redhat.com>
25598
25599         init.sh: don't use $(...) just yet
25600         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25601         to accommodate e.g., Solaris' /bin/sh.
25602
25603 2010-02-17  Bruno Haible  <bruno@clisp.org>
25604
25605         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25606         Reported by Ludovic Courtès <ludo@gnu.org>.
25607
25608 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25609
25610         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25611         linking with -lintl.
25612
25613 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25614
25615         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25616         if not provided by the system's netdb.h.  Reported by
25617         ludo@gnu.org (Ludovic Courtès).
25618
25619 2010-02-15  Jim Meyering  <meyering@redhat.com>
25620
25621         init.sh: improve portability and efficiency
25622         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25623         "dummy" in a for loop.
25624         Use '!', not '^' to select the complement of a character set used
25625         in a "case" statement.
25626         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25627         Suggestions from Eric Blake.
25628
25629         init.sh: automatically accommodate programs with the .exe suffix
25630         Automatically arrange for an invocation of "prog" to execute the
25631         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25632         may use the simpler "prog", yet still work when built on a system
25633         that requires specifying the added suffix.
25634         Do this by constructing a function named "prog" that invokes
25635         "prog.exe" for each .exe file in selected directories.
25636         * tests/init.sh (find_exe_basenames_): New function.
25637         (create_exe_shim_functions_): New function.
25638         (path_prepend_): Use it.
25639
25640         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25641         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25642         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25643
25644 2010-02-14  Jim Meyering  <meyering@redhat.com>
25645
25646         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25647         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25648         (sc_prohibit_hash_pjw_without_use): New rule.
25649
25650         maint.mk: allow the default upload destination dir to be overridden
25651         * top/maint.mk (upload_dest_dir_): Define with a default that
25652         preserves the status quo.
25653         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25654         Reported by Peter Simons.
25655
25656         maint.mk: prohibit inclusion of "hash.h" without_use
25657         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25658
25659 2010-02-10  Jim Meyering  <meyering@redhat.com>
25660
25661         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25662         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25663
25664 2010-02-09  Eric Blake  <ebb9@byu.net>
25665         and Bruno Haible  <bruno@clisp.org>
25666
25667         obstack-printf-posix: ensure declaration
25668         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25669         extracted from gl_FUNC_OBSTACK_PRINTF.
25670         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25671         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25672         Likewise.
25673         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25674         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25675         0.
25676
25677 2010-02-08  Bruno Haible  <bruno@clisp.org>
25678
25679         gnulib-tool: Fix typo in 2010-02-07 commit.
25680         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25681         Reported by Eric Blake.
25682
25683 2010-02-07  Bruno Haible  <bruno@clisp.org>
25684
25685         gnulib-tool: Fix up caching patches.
25686         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25687         option --no-cache. Use associative arrays when supported by the shell.
25688         (sed_comments): New variable.
25689         (modcache): Renamed from do_cache.
25690         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25691         abbreviate unnecessarily.
25692         (have_associative): New variable.
25693         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25694         way also for ksh and zsh.
25695         (func_init_sed_convert_to_cache_statements): New function, extracted
25696         from func_cache_lookup_module. Add support for associative arrays.
25697         Don't set the c_MODULE_cached variable here. Ignore all lines before
25698         the first field header. Remove only the final newline, not all trailing
25699         newlines. Support empty fields correctly. Limit the use of 'eval' to
25700         assignments.
25701         (func_get_description, func_get_status, func_get_notice,
25702         func_get_applicability, func_get_filelist, func_get_dependencies,
25703         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25704         func_get_automake_snippet, func_get_include_directive,
25705         func_get_link_directive, func_get_license, func_get_maintainer):
25706         Update documentation. List the unoptimized code first. Add support for
25707         associative arrays. Limit the use of 'eval' to assignments.
25708         (func_get_applicability): Undo stylistic pessimisations.
25709         (func_get_automake_snippet, func_get_include_directive): Reduce code
25710         duplication.
25711         (func_modules_transitive_closure, func_modules_add_dummy,
25712         func_modules_notice, func_modules_to_filelist, func_add_file,
25713         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25714         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25715         func_create_testdir, func_create_megatestdir): Update documentation.
25716
25717 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25718
25719         * gnulib-tool (func_cache_lookup_module): Store the module name
25720         belonging to the cache variable; error out if two different
25721         module names map to the same cache variable name.
25722
25723 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25724
25725         gnulib-tool: Make caching optional.
25726         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25727         Update matching short versions of --no-changelog.
25728         (func_usage): Update.
25729         (sed_extract_cache_prog): Renamed from ...
25730         (sed_extract_prog): ... this; revert to old extraction script.
25731         (func_get_description, func_get_status)
25732         (func_get_notice, func_get_applicability, func_get_filelist)
25733         (func_get_dependencies, func_get_autoconf_early_snippet)
25734         (func_get_autoconf_snippet, func_get_automake_snippet)
25735         (func_get_include_directive, func_get_link_directive)
25736         (func_get_license, func_get_maintainer): If $do_cache is false,
25737         use old, non-caching extraction scripts.
25738         Suggestion by Bruno Haible.
25739
25740 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25741
25742         gnulib-tool: cache module metainformation.
25743         * gnulib-tool (sed_extract_prog): Match newline before each
25744         header, and rewrite header to a shell variable suffix.
25745         (func_cache_var, func_cache_lookup_module): New functions,
25746         to turn a module name into a cache variable prefix, and to
25747         look up and cache module metainformation.
25748         (func_get_description, func_get_status)
25749         (func_get_notice, func_get_applicability, func_get_filelist)
25750         (func_get_dependencies, func_get_autoconf_early_snippet)
25751         (func_get_autoconf_snippet, func_get_automake_snippet)
25752         (func_get_include_directive, func_get_link_directive)
25753         (func_get_license, func_get_maintainer): Use
25754         func_cache_lookup_module.
25755
25756 2010-02-07  Bruno Haible  <bruno@clisp.org>
25757
25758         fnctl: Fix missing dependency.
25759         * modules/fcntl (Depends-on): Add getdtablesize.
25760         Reported by John W. Eaton <jwe@gnu.org>.
25761
25762 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25763
25764         Argp: fix recognition of short alias options.
25765
25766         * lib/argp-parse.c (convert_options): Fix improper use of
25767         `|' between character values.
25768         * tests/test-argp.c (group1_option): New alias option
25769         --read (-r).
25770         (group1_parser): Special handling for 'r'.
25771         (test15): New test case.
25772         (test_fun): Add test15.
25773         * tests/test-argp-2.sh: Update expected --help and --usage
25774         outputs.
25775
25776 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25777
25778         * tests/test-argp.c: Fix indentation.
25779
25780 2010-02-04  Eric Blake  <ebb9@byu.net>
25781
25782         gettimeofday: expose type of second argument
25783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25784         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25785         * tests/test-gettimeofday.c: Use it to silence warning.
25786         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25787         the issue.
25788
25789 2010-02-03  Jim Meyering  <meyering@redhat.com>
25790
25791         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25792         * lib/regcomp.c (TYPE_SIGNED): Define.
25793         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25794
25795         regcomp.c: avoid a new -Wshadow warning
25796         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25797
25798 2010-02-01  Jim Meyering  <meyering@redhat.com>
25799
25800         removing useless parentheses in cpp #define directives
25801         For motivation, see commit c0221df4, "define STREQ(a,b)
25802         consistently, removing useless parentheses"
25803         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25804         * lib/mountlist.c (MNT_IGNORE): Likewise.
25805         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25806
25807 2010-02-01  Eric Blake  <ebb9@byu.net>
25808
25809         sys_time: use link-warning
25810         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25811         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25812         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25813         * modules/sys_time (Depends-on): Add warn-on-use.
25814         (Makefile.am): Always build replacement.
25815         (configure.ac): Update substitutions.
25816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25817         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25818         bother with SYS_TIME_H.
25819         * modules/gettimeofday (configure.ac): Declare indicator.
25820         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25821         in use.
25822
25823         closein-tests: silence compiler warning
25824         * tests/test-closein.c (main): Ignore fread result.
25825         * modules/closein-tests (Depends-on): Add ignore-value.
25826
25827         tests: silence warning about system return
25828         * tests/test-areadlink-with-size.c (main): Ignore system result.
25829         * tests/test-areadlink.c (main): Likewise.
25830         * tests/test-areadlinkat-with-size.c (main): Likewise.
25831         * tests/test-areadlinkat.c (main): Likewise.
25832         * tests/test-canonicalize-lgpl.c (main): Likewise.
25833         * tests/test-canonicalize.c (main): Likewise.
25834         * tests/test-chown.c (main): Likewise.
25835         * tests/test-fchownat.c (main): Likewise.
25836         * tests/test-fdutimensat.c (main): Likewise.
25837         * tests/test-fstatat.c (main): Likewise.
25838         * tests/test-futimens.c (main): Likewise.
25839         * tests/test-lchown.c (main): Likewise.
25840         * tests/test-link.c (main): Likewise.
25841         * tests/test-linkat.c (main): Likewise.
25842         * tests/test-lstat.c (main): Likewise.
25843         * tests/test-mkdir.c (main): Likewise.
25844         * tests/test-mkdirat.c (main): Likewise.
25845         * tests/test-mkfifo.c (main): Likewise.
25846         * tests/test-mkfifoat.c (main): Likewise.
25847         * tests/test-mknod.c (main): Likewise.
25848         * tests/test-readlink.c (main): Likewise.
25849         * tests/test-remove.c (main): Likewise.
25850         * tests/test-rename.c (main): Likewise.
25851         * tests/test-renameat.c (main): Likewise.
25852         * tests/test-rmdir.c (main): Likewise.
25853         * tests/test-symlink.c (main): Likewise.
25854         * tests/test-symlinkat.c (main): Likewise.
25855         * tests/test-unlink.c (main): Likewise.
25856         * tests/test-unlinkat.c (main): Likewise.
25857         * tests/test-utimens.c (main): Likewise.
25858         * tests/test-utimensat.c (main): Likewise.
25859         * modules/areadlink-tests (Depends-on): Add ignore-value.
25860         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25861         * modules/areadlinkat-tests (Depends-on): Likewise.
25862         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25863         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25864         * modules/canonicalize-tests (Depends-on): Likewise.
25865         * modules/chown-tests (Depends-on): Likewise.
25866         * modules/fdutimensat-tests (Depends-on): Likewise.
25867         * modules/futimens-tests (Depends-on): Likewise.
25868         * modules/lchown-tests (Depends-on): Likewise.
25869         * modules/link-tests (Depends-on): Likewise.
25870         * modules/linkat-tests (Depends-on): Likewise.
25871         * modules/lstat-tests (Depends-on): Likewise.
25872         * modules/mkdir-tests (Depends-on): Likewise.
25873         * modules/mkfifo-tests (Depends-on): Likewise.
25874         * modules/mkfifoat-tests (Depends-on): Likewise.
25875         * modules/mknod-tests (Depends-on): Likewise.
25876         * modules/openat-tests (Depends-on): Likewise.
25877         * modules/readlink-tests (Depends-on): Likewise.
25878         * modules/remove-tests (Depends-on): Likewise.
25879         * modules/rename-tests (Depends-on): Likewise.
25880         * modules/renameat-tests (Depends-on): Likewise.
25881         * modules/rmdir-tests (Depends-on): Likewise.
25882         * modules/symlink-tests (Depends-on): Likewise.
25883         * modules/symlinkat-tests (Depends-on): Likewise.
25884         * modules/unlink-tests (Depends-on): Likewise.
25885         * modules/utimens-tests (Depends-on): Likewise.
25886         * modules/utimensat-tests (Depends-on): Likewise.
25887
25888 2010-01-31  Bruno Haible  <bruno@clisp.org>
25889
25890         Perform the same test for many <math.h> functions.
25891         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
25892         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
25893         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
25894         of gl_MATHFUNC.
25895         * modules/acos (configure.ac): Likewise.
25896         * modules/asin (configure.ac): Likewise.
25897         * modules/atan (configure.ac): Likewise.
25898         * modules/atan2 (configure.ac): Likewise.
25899         * modules/cbrt (configure.ac): Likewise.
25900         * modules/copysign (configure.ac): Likewise.
25901         * modules/cos (configure.ac): Likewise.
25902         * modules/cosh (configure.ac): Likewise.
25903         * modules/erf (configure.ac): Likewise.
25904         * modules/erfc (configure.ac): Likewise.
25905         * modules/exp (configure.ac): Likewise.
25906         * modules/fmod (configure.ac): Likewise.
25907         * modules/hypot (configure.ac): Likewise.
25908         * modules/j0 (configure.ac): Likewise.
25909         * modules/j1 (configure.ac): Likewise.
25910         * modules/jn (configure.ac): Likewise.
25911         * modules/lgamma (configure.ac): Likewise.
25912         * modules/log (configure.ac): Likewise.
25913         * modules/log10 (configure.ac): Likewise.
25914         * modules/log1p (configure.ac): Likewise.
25915         * modules/pow (configure.ac): Likewise.
25916         * modules/remainder (configure.ac): Likewise.
25917         * modules/sin (configure.ac): Likewise.
25918         * modules/sinh (configure.ac): Likewise.
25919         * modules/tan (configure.ac): Likewise.
25920         * modules/tanh (configure.ac): Likewise.
25921         * modules/y0 (configure.ac): Likewise.
25922         * modules/y1 (configure.ac): Likewise.
25923         * modules/yn (configure.ac): Likewise.
25924         Suggested by Paolo Bonzini.
25925
25926 2010-01-31  Bruno Haible  <bruno@clisp.org>
25927
25928         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25929
25930 2010-01-31  Bruno Haible  <bruno@clisp.org>
25931
25932         Work around getdelim() bug on FreeBSD 8.0.
25933         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25934         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25935         not work.
25936         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25937         is 1.
25938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25939         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25940         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25941         a non-zero size.
25942         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25943
25944 2010-01-31  Bruno Haible  <bruno@clisp.org>
25945
25946         Work around getline() bug on FreeBSD 8.0.
25947         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25948         and a non-zero size.
25949         * tests/test-getline.c (main): Likewise.
25950         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25951         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25952
25953 2010-01-28  Eric Blake  <ebb9@byu.net>
25954
25955         regex: fix build failure
25956         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25957         platforms.
25958
25959 2010-01-28  Jim Meyering  <meyering@redhat.com>
25960
25961         regex: do not ignore memory allocation failure
25962         * lib/regex_internal.c (create_cd_newstate): Detect
25963         re_node_set_init_copy failure.   Extracted from glibc commit
25964         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25965
25966         regex: sync more white-space changes from libc
25967         * lib/regex_internal.c: White-space only changes.
25968         * lib/regexec.c: Likewise.
25969
25970         regex: add many uses of __attribute_warn_unused_result__
25971         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25972         * lib/regexec.c: Likewise.
25973         Extracted from a messy glibc commit.
25974
25975         regcomp.c: spelling and merge-artifact from glibc
25976         * lib/regcomp.c: Merge remainder of glibc's
25977         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25978
25979         regcomp.c: sync white-space changes from glibc
25980         * lib/regcomp.c: Merge to accommodate white space
25981         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25982
25983         regcomp.c: do not ignore internal return values
25984         * lib/regcomp.c: Do not ignore internal return values.
25985         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25986         but without its white-space changes and spelling fixes.
25987
25988         regex_internal.h: define __attribute_warn_unused_result__
25989         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25990
25991         maint: add a syntax-check rule to check for vulnerable Makefile.in
25992         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25993
25994 2010-01-27  Jim Meyering  <meyering@redhat.com>
25995
25996         ncftpput-ftp: clean up spaces
25997         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25998         Remove trailing blanks.
25999
26000 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26001
26002         * build-aux/git-version-gen: Fix copyright statement.
26003         * build-aux/gnupload: Likewise.
26004         * tests/test-arcfour.c: Likewise.
26005         * tests/test-arctwo.c: Likewise.
26006         * tests/test-count-one-bits.c: Likewise.
26007         * tests/test-crc.c: Likewise.
26008         * tests/test-des.c: Likewise.
26009         * tests/test-gc-arcfour.c: Likewise.
26010         * tests/test-gc-arctwo.c: Likewise.
26011         * tests/test-gc-des.c: Likewise.
26012         * tests/test-gc-hmac-md5.c: Likewise.
26013         * tests/test-gc-hmac-sha1.c: Likewise.
26014         * tests/test-gc-md2.c: Likewise.
26015         * tests/test-gc-md4.c: Likewise.
26016         * tests/test-gc-md5.c: Likewise.
26017         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26018         * tests/test-gc-rijndael.c: Likewise.
26019         * tests/test-gc-sha1.c: Likewise.
26020         * tests/test-gc.c: Likewise.
26021         * tests/test-gethostname.c: Likewise.
26022         * tests/test-gettimeofday.c: Likewise.
26023         * tests/test-hash.c: Likewise.
26024         * tests/test-hmac-md5.c: Likewise.
26025         * tests/test-hmac-sha1.c: Likewise.
26026         * tests/test-md2.c: Likewise.
26027         * tests/test-md4.c: Likewise.
26028         * tests/test-md5.c: Likewise.
26029         * tests/test-memchr.c: Likewise.
26030         * tests/test-memchr2.c: Likewise.
26031         * tests/test-memcmp.c: Likewise.
26032         * tests/test-memmem.c: Likewise.
26033         * tests/test-memrchr.c: Likewise.
26034         * tests/test-rawmemchr.c: Likewise.
26035         * tests/test-read-file.c: Likewise.
26036         * tests/test-rijndael.c: Likewise.
26037         * tests/test-sockets.c: Likewise.
26038         * tests/test-strchrnul.c: Likewise.
26039         * tests/test-strstr.c: Likewise.
26040         * tests/test-strtod.c: Likewise.
26041         * build-aux/ncftpput-ftp: Likewise.
26042
26043 2010-01-26  Eric Blake  <ebb9@byu.net>
26044
26045         ignore-value: update recommended header name
26046         * modules/ignore-value (Include): Only use <> for headers that
26047         exist in glibc.
26048
26049 2010-01-26  Jim Meyering  <meyering@redhat.com>
26050
26051         test-userspec.c: avoid compiler warnings
26052         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26053         and "initialization discards qualifiers..." warnings.
26054         Put the first "uid" in its own scope, and make char* members "const".
26055
26056 2010-01-25  Bruno Haible  <bruno@clisp.org>
26057
26058         gnulib-tool: Make warning diagnostics consistent.
26059         * gnulib-tool (func_warning): New function.
26060         Use it everywhere where gnulib-tool produces output to stderr and it is
26061         not a fatal error.
26062
26063 2010-01-25  Bruno Haible  <bruno@clisp.org>
26064
26065         Fix test dependencies.
26066         * modules/xstrtol-tests (Depends-on): Add inttypes.
26067         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26068
26069 2010-01-25 Pádraig Brady <P@draigBrady.com>
26070
26071         syntax-check: detect incorrect boolean macro values in config.h
26072         * modules/maintainer-makefile (configure.ac): Parameterize the location
26073         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26074         The logic is from Eric Blake and the location indicated by Jim Meyering.
26075         Note the more natural CONFIG_HEADER name is prohibited by automake
26076         for backwards compatibility reasons.
26077         * top/maint.mk (sc_Wundef_boolean): New rule.
26078
26079 2010-01-25  Jim Meyering  <meyering@redhat.com>
26080
26081         bootstrap: detect MacOS 10.6's shasum, too
26082         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26083         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26084
26085 2010-01-23  Jim Meyering  <meyering@redhat.com>
26086
26087         xstrtoll: new module
26088         * modules/xstrtoll: New file.
26089         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26090         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26091         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26092         ./configure fails if you use this module and lack "long long".
26093         * modules/xstrtoll-tests: New module.
26094         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26095         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26096         new init.sh-based test framework.
26097
26098 2010-01-24  Bruno Haible  <bruno@clisp.org>
26099
26100         Tests for module 'yn'.
26101         * modules/yn-tests: New file.
26102         * tests/test-yn.c: New file.
26103
26104         Tests for module 'y1'.
26105         * modules/y1-tests: New file.
26106         * tests/test-y1.c: New file.
26107
26108         Tests for module 'y0'.
26109         * modules/y0-tests: New file.
26110         * tests/test-y0.c: New file.
26111
26112         Tests for module 'tanh'.
26113         * modules/tanh-tests: New file.
26114         * tests/test-tanh.c: New file.
26115
26116         Tests for module 'tan'.
26117         * modules/tan-tests: New file.
26118         * tests/test-tan.c: New file.
26119
26120         Tests for module 'sqrt'.
26121         * modules/sqrt-tests: New file.
26122         * tests/test-sqrt.c: New file.
26123
26124         Tests for module 'sinh'.
26125         * modules/sinh-tests: New file.
26126         * tests/test-sinh.c: New file.
26127
26128         Tests for module 'sin'.
26129         * modules/sin-tests: New file.
26130         * tests/test-sin.c: New file.
26131
26132         Tests for module 'rint'.
26133         * modules/rint-tests: New file.
26134         * tests/test-rint.c: New file.
26135
26136         Tests for module 'remainder'.
26137         * modules/remainder-tests: New file.
26138         * tests/test-remainder.c: New file.
26139
26140         Tests for module 'pow'.
26141         * modules/pow-tests: New file.
26142         * tests/test-pow.c: New file.
26143
26144         Tests for module 'nextafter'.
26145         * modules/nextafter-tests: New file.
26146         * tests/test-nextafter.c: New file.
26147
26148         Tests for module 'modf'.
26149         * modules/modf-tests: New file.
26150         * tests/test-modf.c: New file.
26151
26152         Tests for module 'logb'.
26153         * modules/logb-tests: New file.
26154         * tests/test-logb.c: New file.
26155
26156         Tests for module 'log1p'.
26157         * modules/log1p-tests: New file.
26158         * tests/test-log1p.c: New file.
26159
26160         Tests for module 'log10'.
26161         * modules/log10-tests: New file.
26162         * tests/test-log10.c: New file.
26163
26164         Tests for module 'log'.
26165         * modules/log-tests: New file.
26166         * tests/test-log.c: New file.
26167
26168         Tests for module 'lgamma'.
26169         * modules/lgamma-tests: New file.
26170         * tests/test-lgamma.c: New file.
26171
26172         Tests for module 'ldexp'.
26173         * modules/ldexp-tests: New file.
26174         * tests/test-ldexp.c: New file.
26175
26176         Tests for module 'jn'.
26177         * modules/jn-tests: New file.
26178         * tests/test-jn.c: New file.
26179
26180         Tests for module 'j1'.
26181         * modules/j1-tests: New file.
26182         * tests/test-j1.c: New file.
26183
26184         Tests for module 'j0'.
26185         * modules/j0-tests: New file.
26186         * tests/test-j0.c: New file.
26187
26188         Tests for module 'hypot'.
26189         * modules/hypot-tests: New file.
26190         * tests/test-hypot.c: New file.
26191
26192         Tests for module 'fmod'.
26193         * modules/fmod-tests: New file.
26194         * tests/test-fmod.c: New file.
26195
26196         Tests for module 'fabs'.
26197         * modules/fabs-tests: New file.
26198         * tests/test-fabs.c: New file.
26199
26200         Tests for module 'exp'.
26201         * modules/exp-tests: New file.
26202         * tests/test-exp.c: New file.
26203
26204         Tests for module 'erfc'.
26205         * modules/erfc-tests: New file.
26206         * tests/test-erfc.c: New file.
26207
26208         Tests for module 'erf'.
26209         * modules/erf-tests: New file.
26210         * tests/test-erf.c: New file.
26211
26212         Tests for module 'cosh'.
26213         * modules/cosh-tests: New file.
26214         * tests/test-cosh.c: New file.
26215
26216         Tests for module 'cos'.
26217         * modules/cos-tests: New file.
26218         * tests/test-cos.c: New file.
26219
26220         Tests for module 'copysign'.
26221         * modules/copysign-tests: New file.
26222         * tests/test-copysign.c: New file.
26223
26224         Tests for module 'cbrt'.
26225         * modules/cbrt-tests: New file.
26226         * tests/test-cbrt.c: New file.
26227
26228         Tests for module 'atan2'.
26229         * modules/atan2-tests: New file.
26230         * tests/test-atan2.c: New file.
26231
26232         Tests for module 'atan'.
26233         * modules/atan-tests: New file.
26234         * tests/test-atan.c: New file.
26235
26236         Tests for module 'asin'.
26237         * modules/asin-tests: New file.
26238         * tests/test-asin.c: New file.
26239
26240         Tests for module 'acos'.
26241         * modules/acos-tests: New file.
26242         * tests/test-acos.c: New file.
26243
26244 2010-01-24  Bruno Haible  <bruno@clisp.org>
26245
26246         Fix tests for common <math.h> functions.
26247         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26248         code snippet that references the function pointer, rather than merely
26249         calling the function. Substitute the FUNC_LIBM variable.
26250         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26251         * modules/acos (configure.ac): Likewise.
26252         * modules/asin (configure.ac): Likewise.
26253         * modules/atan (configure.ac): Likewise.
26254         * modules/atan2 (configure.ac): Likewise.
26255         * modules/cbrt (configure.ac): Likewise.
26256         * modules/copysign (configure.ac): Likewise.
26257         * modules/cos (configure.ac): Likewise.
26258         * modules/cosh (configure.ac): Likewise.
26259         * modules/erf (configure.ac): Likewise.
26260         * modules/erfc (configure.ac): Likewise.
26261         * modules/exp (configure.ac): Likewise.
26262         * modules/fabs (configure.ac): Likewise.
26263         * modules/fmod (configure.ac): Likewise.
26264         * modules/hypot (configure.ac): Likewise.
26265         * modules/j0 (configure.ac): Likewise.
26266         * modules/j1 (configure.ac): Likewise.
26267         * modules/jn (configure.ac): Likewise.
26268         * modules/ldexp (configure.ac): Likewise.
26269         * modules/lgamma (configure.ac): Likewise.
26270         * modules/log (configure.ac): Likewise.
26271         * modules/log10 (configure.ac): Likewise.
26272         * modules/log1p (configure.ac): Likewise.
26273         * modules/logb (configure.ac): Likewise.
26274         * modules/modf (configure.ac): Likewise.
26275         * modules/nextafter (configure.ac): Likewise.
26276         * modules/pow (configure.ac): Likewise.
26277         * modules/remainder (configure.ac): Likewise.
26278         * modules/rint (configure.ac): Likewise.
26279         * modules/sin (configure.ac): Likewise.
26280         * modules/sinh (configure.ac): Likewise.
26281         * modules/tan (configure.ac): Likewise.
26282         * modules/tanh (configure.ac): Likewise.
26283         * modules/y0 (configure.ac): Likewise.
26284         * modules/y1 (configure.ac): Likewise.
26285         * modules/yn (configure.ac): Likewise.
26286
26287 2010-01-24  Bruno Haible  <bruno@clisp.org>
26288
26289         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26290         * tests/test-acosl.c (x): New variable.
26291         (main): Store argument in x and fetch it from x.
26292         * tests/test-asinl.c (x): New variable.
26293         (main): Store argument in x and fetch it from x.
26294         * tests/test-atanl.c (x): New variable.
26295         (main): Store argument in x and fetch it from x.
26296         * tests/test-cosl.c (x): New variable.
26297         (main): Store argument in x and fetch it from x.
26298         * tests/test-expl.c (x): New variable.
26299         (main): Store argument in x and fetch it from x.
26300         * tests/test-logl.c (x): New variable.
26301         (main): Store argument in x and fetch it from x.
26302         * tests/test-sinl.c (x): New variable.
26303         (main): Store argument in x and fetch it from x.
26304         * tests/test-sqrtl.c (x): New variable.
26305         (main): Store argument in x and fetch it from x.
26306         * tests/test-tanl.c (x): New variable.
26307         (main): Store argument in x and fetch it from x.
26308
26309 2010-01-24  Bruno Haible  <bruno@clisp.org>
26310
26311         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26312         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26313         assignments to the initial TESTS_ENVIRONMENT.
26314         * doc/gnulib.texi (Unit test modules): Document it.
26315         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26316         TESTS_ENVIRONMENT.
26317         * modules/btowc-tests (Makefile.am): Likewise.
26318         * modules/c-stack-tests (Makefile.am): Likewise.
26319         * modules/c-strcase-tests (Makefile.am): Likewise.
26320         * modules/copy-file-tests (Makefile.am): Likewise.
26321         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26322         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26323         * modules/mbrtowc-tests (Makefile.am): Likewise.
26324         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26325         * modules/mbscasestr-tests (Makefile.am): Likewise.
26326         * modules/mbschr-tests (Makefile.am): Likewise.
26327         * modules/mbscspn-tests (Makefile.am): Likewise.
26328         * modules/mbsinit-tests (Makefile.am): Likewise.
26329         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26330         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26331         * modules/mbspbrk-tests (Makefile.am): Likewise.
26332         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26333         * modules/mbsrchr-tests (Makefile.am): Likewise.
26334         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26335         * modules/mbsspn-tests (Makefile.am): Likewise.
26336         * modules/mbsstr-tests (Makefile.am): Likewise.
26337         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26338         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26339         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26340         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26341         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26342         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26343         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26344         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26345         * modules/wcrtomb-tests (Makefile.am): Likewise.
26346         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26347         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26348         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26349         assignments from TESTS_ENVIRONMENT.
26350         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26351         augmentation.
26352         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26353         * modules/atexit-tests (Makefile.am): Likewise.
26354         * modules/binary-io-tests (Makefile.am): Likewise.
26355         * modules/closein-tests (Makefile.am): Likewise.
26356         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26357         * modules/exclude-tests (Makefile.am): Likewise.
26358         * modules/fflush-tests (Makefile.am): Likewise.
26359         * modules/fpending-tests (Makefile.am): Likewise.
26360         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26361         * modules/freadahead-tests (Makefile.am): Likewise.
26362         * modules/freadptr-tests (Makefile.am): Likewise.
26363         * modules/freadseek-tests (Makefile.am): Likewise.
26364         * modules/fseek-tests (Makefile.am): Likewise.
26365         * modules/fseeko-tests (Makefile.am): Likewise.
26366         * modules/ftell-tests (Makefile.am): Likewise.
26367         * modules/ftello-tests (Makefile.am): Likewise.
26368         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26369         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26370         * modules/lseek-tests (Makefile.am): Likewise.
26371         * modules/parse-duration-tests (Makefile.am): Likewise.
26372         * modules/perror-tests (Makefile.am): Likewise.
26373         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26374         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26375         * modules/pipe-tests (Makefile.am): Likewise.
26376         * modules/pread-tests (Makefile.am): Likewise.
26377         * modules/printf-posix-tests (Makefile.am): Likewise.
26378         * modules/select-tests (Makefile.am): Likewise.
26379         * modules/sigpipe-tests (Makefile.am): Likewise.
26380         * modules/tsearch-tests (Makefile.am): Likewise.
26381         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26382         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26383         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26384         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26385         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26386         * modules/version-etc-tests (Makefile.am): Likewise.
26387         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26388         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26389         * modules/xalloc-die-tests (Makefile.am): Likewise.
26390         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26391         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26392         * modules/xstrtol-tests (Makefile.am): Likewise.
26393         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26394         * modules/yesno-tests (Makefile.am): Likewise.
26395         Suggested by Jim Meyering.
26396
26397 2010-01-24  Bruno Haible  <bruno@clisp.org>
26398
26399         More documentation.
26400         * doc/gnulib.texi (Writing modules): New chapter.
26401         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26402         the new chapter.
26403
26404 2010-01-24  Jim Meyering  <meyering@redhat.com>
26405
26406         maint.mk: do not prepend "./" after filtering
26407         * top/maint.mk (_prepend_srcdir_prefix): New variable
26408         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26409         "./" when $(srcdir) is ".".
26410
26411         define STREQ(a,b) consistently, removing useless parentheses
26412         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26413         since the only risk is that "a" or "b" contains an unparenthesized
26414         comma, but if either did that, STREQ would have 3 or more arguments.
26415         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26416         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26417         * lib/hash-triple.c (STREQ): Likewise.
26418         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26419         * lib/getugroups.c (STREQ): Likewise.
26420
26421 2010-01-23  Jim Meyering  <meyering@redhat.com>
26422
26423         maint.mk: fix syntax-check in a non-srcdir build directory
26424         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26425         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26426
26427 2010-01-22  Jim Meyering  <meyering@redhat.com>
26428
26429         userspec: add unit tests
26430         * tests/test-userspec.c: New file.
26431         * modules/userspec-tests: Likewise.
26432
26433 2010-01-21  Jim Meyering  <meyering@redhat.com>
26434
26435         maint.mk: handle source file names containing "." robustly
26436         * top/maint.mk (_dot_escaped_srcdir): Define.
26437         (VC_LIST): Use it in LHS of sed substitution.
26438
26439 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26440
26441         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26442         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26443         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26444         from a non-srcdir build.
26445
26446 2010-01-20  Eric Blake  <ebb9@byu.net>
26447
26448         warn-on-use: use instead of link-warning
26449         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26450         * modules/unistd (Depends-on, Makefile.am): Likewise.
26451         * modules/arpa_inet (Depends-on): Replace link-warning with
26452         warn-on-use.
26453         (Makefile.am): Update rules accordingly.
26454         * modules/ctype (Depends-on, Makefile.am): Likewise.
26455         * modules/dirent (Depends-on, Makefile.am): Likewise.
26456         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26457         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26458         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26459         * modules/locale (Depends-on, Makefile.am): Likewise.
26460         * modules/math (Depends-on, Makefile.am): Likewise.
26461         * modules/search (Depends-on, Makefile.am): Likewise.
26462         * modules/signal (Depends-on, Makefile.am): Likewise.
26463         * modules/spawn (Depends-on, Makefile.am): Likewise.
26464         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26465         * modules/string (Depends-on, Makefile.am): Likewise.
26466         * modules/strings (Depends-on, Makefile.am): Likewise.
26467         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26468         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26469         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26470         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26471         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26472         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26473         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26474         * modules/wchar (Depends-on, Makefile.am): Likewise.
26475         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26476         should be poisoned.
26477         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26478         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26479         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26480         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26481         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26482         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26483         * m4/math_h.m4 (gl_MATH_H): Likewise.
26484         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26485         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26486         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26487         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26488         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26489         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26490         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26491         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26492         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26496         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26497         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26498         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26499         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26500         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26501         GL_LINK_WARNING.
26502         * lib/ctype.in.h: Likewise.
26503         * lib/dirent.in.h: Likewise.
26504         * lib/fcntl.in.h: Likewise.
26505         * lib/inttypes.in.h: Likewise.
26506         * lib/langinfo.in.h: Likewise.
26507         * lib/locale.in.h: Likewise.
26508         * lib/math.in.h: Likewise.
26509         * lib/search.in.h: Likewise.
26510         * lib/signal.in.h: Likewise.
26511         * lib/spawn.in.h: Likewise.
26512         * lib/stdio.in.h: Likewise.
26513         * lib/stdlib.in.h: Likewise.
26514         * lib/string.in.h: Likewise.
26515         * lib/strings.in.h: Likewise.
26516         * lib/sys_file.in.h: Likewise.
26517         * lib/sys_ioctl.in.h: Likewise.
26518         * lib/sys_select.in.h: Likewise.
26519         * lib/sys_socket.in.h: Likewise.
26520         * lib/sys_stat.in.h: Likewise.
26521         * lib/sys_times.in.h: Likewise.
26522         * lib/sys_utsname.in.h: Likewise.
26523         * lib/unistd.in.h: Likewise.
26524         * lib/wchar.in.h: Likewise.
26525
26526 2010-01-20  Bruno Haible  <bruno@clisp.org>
26527
26528         Avoid duplicate -lm.
26529         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26530         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26533         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26534         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26535         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26536         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26537         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26538         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26539         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26540         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26541         Reported by Paolo Bonzini.
26542
26543 2010-01-19  Bruno Haible  <bruno@clisp.org>
26544
26545         langinfo, nl_langinfo: Relicense under LGPLv2+.
26546         * modules/langinfo (License): Change to LGPLv2+.
26547         * modules/nl_langinfo (License): Likewise.
26548         Patch by David Lutterkort <lutter@redhat.com>.
26549
26550 2010-01-19  Bruno Haible  <bruno@clisp.org>
26551
26552         Avoid compilation error with cc on OSF/1 5.1.
26553         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26554         statement, not before.
26555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26556
26557 2010-01-18  Bruno Haible  <bruno@clisp.org>
26558
26559         Avoid a link error due to the __printf__ symbol.
26560         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26561         and 2.6.x.
26562         (__format__, __printf__): Remove definitions.
26563         * lib/argp-fmtstream.h: Likewise.
26564         * lib/argp.h: Likewise.
26565         * lib/error.h: Likewise.
26566         * lib/vasnprintf.h: Likewise.
26567         * lib/xprintf.h: Likewise.
26568         * lib/xvasprintf.h: Likewise.
26569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26570
26571 2010-01-18  Bruno Haible  <bruno@clisp.org>
26572
26573         Tests for module 'tanl'.
26574         * modules/tanl-tests: New file.
26575         * tests/test-tanl.c: New file.
26576
26577         Tests for module 'sqrtl'.
26578         * modules/sqrtl-tests: New file.
26579         * tests/test-sqrtl.c: New file.
26580
26581         Tests for module 'sinl'.
26582         * modules/sinl-tests: New file.
26583         * tests/test-sinl.c: New file.
26584
26585         Tests for module 'logl'.
26586         * modules/logl-tests: New file.
26587         * tests/test-logl.c: New file.
26588
26589         Tests for module 'expl'.
26590         * modules/expl-tests: New file.
26591         * tests/test-expl.c: New file.
26592
26593         Tests for module 'cosl'.
26594         * modules/cosl-tests: New file.
26595         * tests/test-cosl.c: New file.
26596
26597         Tests for module 'atanl'.
26598         * modules/atanl-tests: New file.
26599         * tests/test-atanl.c: New file.
26600
26601         Tests for module 'asinl'.
26602         * modules/asinl-tests: New file.
26603         * tests/test-asinl.c: New file.
26604
26605         Tests for module 'acosl'.
26606         * modules/acosl-tests: New file.
26607         * tests/test-acosl.c: New file.
26608
26609         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26610         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26611         tanl): Use the standard gnulib idiom.
26612         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26613         * lib/sinl.c: Likewise.
26614         * lib/tanl.c: Don't include trigl.c.
26615         (kernel_tanl): Make static.
26616         * lib/sincosl.c: Include trigl.h first.
26617         * lib/trigl.c: Likewise.
26618         * m4/acosl.m4: New file.
26619         * m4/asinl.m4: New file.
26620         * m4/atanl.m4: New file.
26621         * m4/cosl.m4: New file.
26622         * m4/expl.m4: New file.
26623         * m4/logl.m4: New file.
26624         * m4/sinl.m4: New file.
26625         * m4/sqrtl.m4: New file.
26626         * m4/tanl.m4: New file.
26627         * m4/mathl.m4: Remove file.
26628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26629         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26630         Don't initialize GNULIB_MATHL.
26631         * modules/acosl: New file.
26632         * modules/asinl: New file.
26633         * modules/atanl: New file.
26634         * modules/cosl: New file.
26635         * modules/expl: New file.
26636         * modules/logl: New file.
26637         * modules/sinl: New file.
26638         * modules/sqrtl: New file.
26639         * modules/tanl: New file.
26640         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26641         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26642         substitute GNULIB_MATHL.
26643         * modules/mathl: Rewritten.
26644         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26645         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26646         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26647         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26648         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26649         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26650         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26651         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26652         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26653
26654 2010-01-18  Bruno Haible  <bruno@clisp.org>
26655
26656         sqrt: Make gl_FUNC_SQRT requirable.
26657         * m4/sqrt.m4: New file.
26658         * modules/sqrt (Files): Add it.
26659         (configure.ac): Invoke gl_FUNC_SQRT.
26660
26661 2010-01-18  Bruno Haible  <bruno@clisp.org>
26662
26663         New modules for common <math.h> functions.
26664         * m4/mathfunc.m4: New file.
26665         * modules/acos: New file.
26666         * modules/asin: New file.
26667         * modules/atan: New file.
26668         * modules/atan2: New file.
26669         * modules/cbrt: New file.
26670         * modules/copysign: New file.
26671         * modules/cos: New file.
26672         * modules/cosh: New file.
26673         * modules/erf: New file.
26674         * modules/erfc: New file.
26675         * modules/exp: New file.
26676         * modules/fabs: New file.
26677         * modules/fmod: New file.
26678         * modules/hypot: New file.
26679         * modules/j0: New file.
26680         * modules/j1: New file.
26681         * modules/jn: New file.
26682         * modules/ldexp: New file.
26683         * modules/lgamma: New file.
26684         * modules/log: New file.
26685         * modules/log10: New file.
26686         * modules/log1p: New file.
26687         * modules/logb: New file.
26688         * modules/modf: New file.
26689         * modules/nextafter: New file.
26690         * modules/pow: New file.
26691         * modules/remainder: New file.
26692         * modules/rint: New file.
26693         * modules/sin: New file.
26694         * modules/sinh: New file.
26695         * modules/sqrt: New file.
26696         * modules/tan: New file.
26697         * modules/tanh: New file.
26698         * modules/y0: New file.
26699         * modules/y1: New file.
26700         * modules/yn: New file.
26701         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26702         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26703         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26704         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26705         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26706         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26707         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26708         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26709         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26710         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26711         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26712         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26713         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26714         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26715         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26716         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26717         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26718         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26719         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26720         * doc/posix-functions/log.texi: Mention the 'log' module.
26721         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26722         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26723         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26724         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26725         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26726         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26727         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26728         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26729         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26730         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26731         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26732         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26733         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26734         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26735         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26736         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26737
26738 2010-01-18  Jim Meyering  <meyering@redhat.com>
26739
26740         ignore-value: relax license to LGPLv2+
26741         * modules/ignore-value (License): Relax to LGPLv2+.
26742
26743         getdate: don't leak when TZ contains two or more '"'s
26744         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26745         double quote in TZ after the first one.
26746
26747         readtokens: do not leak internal token_lengths buffer
26748         * lib/readtokens.c (readtokens): Free the local, lengths,
26749         when the supplied "token_lengths" parameter is NULL.
26750
26751 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26752
26753         Fix a couple of missing LIBTHREAD link failures on AIX.
26754         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26755         $(LIBTHREAD).
26756         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26757
26758         Link test-poll against INET_PTON_LIB.
26759         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26760         for inet_pton on Solaris 10.
26761
26762 2010-01-17  Bruno Haible  <bruno@clisp.org>
26763
26764         unistdio/*-sprintf: Fix typo in module description.
26765         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26766         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26767         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26768         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26769         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26770         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26771         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26773
26774 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26775
26776         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26777         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26778         variables in shell case patterns, for AIX and HP-UX ksh.
26779
26780         Split large sed scripts, for HP-UX sed.
26781         * modules/stdio: Split sed scripts around 50 sed commands,
26782         to avoid HP-UX limit of 99 commands, in the near future.
26783         * modules/string: Likewise.
26784         * modules/unistd: Likewise.
26785
26786         gnulib-tool: avoid writing in the current directory.
26787         * gnulib-tool (func_emit_lib_Makefile_am)
26788         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26789         not in the current directory, so concurrent gnulib-tool
26790         instances do not interfere.
26791
26792 2010-01-16  Jim Meyering  <meyering@redhat.com>
26793
26794         doc: update users.txt
26795         * users.txt: Add grep.
26796         (diffutils, gzip): Update URLs.
26797
26798 2010-01-12  Bruno Haible  <bruno@clisp.org>
26799
26800         posix_spawn: Avoid test failure on Cygwin.
26801         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26802         characters.
26803         Reported by Simon Josefsson.
26804
26805 2010-01-12  Bruno Haible  <bruno@clisp.org>
26806
26807         * tests/test-cond.c (main): When skipping the test, show the reason.
26808
26809 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26810
26811         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26812
26813 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26814
26815         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26816         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26817
26818 2010-01-12  Eric Blake  <ebb9@byu.net>
26819
26820         build: guarantee AS_VAR_IF
26821         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26822         (gl_AS_VAR_IF): Move...
26823         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26824         Reported by Simon Josefsson.
26825
26826 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26827
26828         * lib/stdio.in.h: Fix typo.
26829
26830 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26831
26832         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26833         libgpg-error.
26834
26835 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26836
26837         * tests/test-xalloc-die.sh: Use $EXEEXT.
26838
26839 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26840             Bruno Haible  <bruno@clisp.org>
26841
26842         getlogin, getlogin_r: Avoid test failure.
26843         * tests/test-getlogin.c: Include <stdio.h>.
26844         (main): Skip the test when the function fails because stdin is not a
26845         tty.
26846         * tests/test-getlogin_r.c: Include <stdio.h>.
26847         (main): Skip the test when the function fails because stdin is not a
26848         tty.
26849
26850 2010-01-11  Eric Blake  <ebb9@byu.net>
26851
26852         tests: avoid more large file warnings
26853         * tests/test-fflush.c: Avoid warning about ftell use.
26854         * tests/test-fseek.c: Avoid warning about fseek use.
26855
26856 2010-01-10  Bruno Haible  <bruno@clisp.org>
26857
26858         nproc: Work better on Linux when /proc and /sys are not mounted.
26859         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26860         as lower bound when, on glibc/Linux systems,
26861         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26862         Suggested by Pádraig Brady <P@draigbrady.com>.
26863         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26864
26865         nproc: Refactor.
26866         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26867         extracted from num_processors.
26868         (num_processors): Call it.
26869
26870 2010-01-11  Jim Meyering  <meyering@redhat.com>
26871
26872         utimecmp: avoid new warning from upcoming gcc-4.5.0
26873         * lib/utimecmp.c (BILLION): Define using #define rather than an
26874         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
26875
26876 2010-01-11  Eric Blake  <ebb9@byu.net>
26877
26878         math: add portability warnings for classification macros
26879         * modules/math (Depends-on): Add warn-on-use.
26880         (Makefile.am): Provide new substitutions.
26881         * m4/math_h.m4 (gl_MATH_H): Require inline.
26882         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
26883         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
26884         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
26885         implement warnings.
26886
26887         unistd: warn on use of environ without module
26888         * modules/unistd (Depends-on): Add warn-on-use.
26889         (Makefile.am): Provide new substitutions.
26890         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
26891         * lib/unistd.in.h (environ): Wrap with a warning helper function.
26892
26893         stdio: warn on suspicious uses
26894         * modules/stdio (Depends-on): Add warn-on-use.
26895         (Makefile.am): Provide new substitutions.
26896         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
26897         fseeko.
26898         * lib/stdio.in.h (gets): Always warn on use.
26899         (fseek, ftell): Adjust when warnings are issued, and honor
26900         _GL_NO_LARGE_FILES as a way to silence the warning.
26901         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
26902         any warning about large file offsets.
26903         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
26904         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
26905         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
26906         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
26907         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
26908         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
26909         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
26910         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
26911
26912         warn-on-use: new module
26913         * modules/warn-on-use: New file.
26914         * build-aux/warn-on-use.h: Likewise.
26915         * m4/warn-on-use.m4: Likewise.
26916         * MODULES.html.sh (Support for building): Mention it.
26917
26918 2010-01-10  Bruno Haible  <bruno@clisp.org>
26919
26920         Tests for module 'unistr/u32-strdup'.
26921         * modules/unistr/u32-strdup-tests: New file.
26922         * tests/unistr/test-u32-strdup.c: New file.
26923
26924         Tests for module 'unistr/u16-strdup'.
26925         * modules/unistr/u16-strdup-tests: New file.
26926         * tests/unistr/test-u16-strdup.c: New file.
26927
26928         Tests for module 'unistr/u8-strdup'.
26929         * modules/unistr/u8-strdup-tests: New file.
26930         * tests/unistr/test-u8-strdup.c: New file.
26931         * tests/unistr/test-strdup.h: New file.
26932
26933         Tests for module 'unistr/u32-strncmp'.
26934         * modules/unistr/u32-strncmp-tests: New file.
26935         * tests/unistr/test-u32-strncmp.c: New file.
26936
26937         Tests for module 'unistr/u16-strncmp'.
26938         * modules/unistr/u16-strncmp-tests: New file.
26939         * tests/unistr/test-u16-strncmp.c: New file.
26940
26941         Tests for module 'unistr/u8-strncmp'.
26942         * modules/unistr/u8-strncmp-tests: New file.
26943         * tests/unistr/test-u8-strncmp.c: New file.
26944         * tests/unistr/test-strncmp.h: New file.
26945
26946         Tests for module 'unistr/u32-strcoll'.
26947         * modules/unistr/u32-strcoll-tests: New file.
26948         * tests/unistr/test-u32-strcoll.c: New file.
26949
26950         Tests for module 'unistr/u16-strcoll'.
26951         * modules/unistr/u16-strcoll-tests: New file.
26952         * tests/unistr/test-u16-strcoll.c: New file.
26953
26954         Tests for module 'unistr/u8-strcoll'.
26955         * modules/unistr/u8-strcoll-tests: New file.
26956         * tests/unistr/test-u8-strcoll.c: New file.
26957
26958         Tests for module 'unistr/u32-strcmp'.
26959         * modules/unistr/u32-strcmp-tests: New file.
26960         * tests/unistr/test-u32-strcmp.c: New file.
26961         * tests/unistr/test-u32-strcmp.h: New file.
26962
26963         Tests for module 'unistr/u16-strcmp'.
26964         * modules/unistr/u16-strcmp-tests: New file.
26965         * tests/unistr/test-u16-strcmp.c: New file.
26966         * tests/unistr/test-u16-strcmp.h: New file.
26967
26968         Tests for module 'unistr/u8-strcmp'.
26969         * modules/unistr/u8-strcmp-tests: New file.
26970         * tests/unistr/test-u8-strcmp.c: New file.
26971         * tests/unistr/test-u8-strcmp.h: New file.
26972         * tests/unistr/test-strcmp.h: New file.
26973
26974         Tests for module 'unistr/u32-strncat'.
26975         * modules/unistr/u32-strncat-tests: New file.
26976         * tests/unistr/test-u32-strncat.c: New file.
26977
26978         Tests for module 'unistr/u16-strncat'.
26979         * modules/unistr/u16-strncat-tests: New file.
26980         * tests/unistr/test-u16-strncat.c: New file.
26981
26982         Tests for module 'unistr/u8-strncat'.
26983         * modules/unistr/u8-strncat-tests: New file.
26984         * tests/unistr/test-u8-strncat.c: New file.
26985         * tests/unistr/test-strncat.h: New file.
26986
26987         Tests for module 'unistr/u32-strcat'.
26988         * modules/unistr/u32-strcat-tests: New file.
26989         * tests/unistr/test-u32-strcat.c: New file.
26990
26991         Tests for module 'unistr/u16-strcat'.
26992         * modules/unistr/u16-strcat-tests: New file.
26993         * tests/unistr/test-u16-strcat.c: New file.
26994
26995         Tests for module 'unistr/u8-strcat'.
26996         * modules/unistr/u8-strcat-tests: New file.
26997         * tests/unistr/test-u8-strcat.c: New file.
26998         * tests/unistr/test-strcat.h: New file.
26999
27000         Tests for module 'unistr/u32-stpncpy'.
27001         * modules/unistr/u32-stpncpy-tests: New file.
27002         * tests/unistr/test-u32-stpncpy.c: New file.
27003
27004         Tests for module 'unistr/u16-stpncpy'.
27005         * modules/unistr/u16-stpncpy-tests: New file.
27006         * tests/unistr/test-u16-stpncpy.c: New file.
27007
27008         Tests for module 'unistr/u8-stpncpy'.
27009         * modules/unistr/u8-stpncpy-tests: New file.
27010         * tests/unistr/test-u8-stpncpy.c: New file.
27011         * tests/unistr/test-stpncpy.h: New file.
27012
27013         Tests for module 'unistr/u32-strncpy'.
27014         * modules/unistr/u32-strncpy-tests: New file.
27015         * tests/unistr/test-u32-strncpy.c: New file.
27016
27017         Tests for module 'unistr/u16-strncpy'.
27018         * modules/unistr/u16-strncpy-tests: New file.
27019         * tests/unistr/test-u16-strncpy.c: New file.
27020
27021         Tests for module 'unistr/u8-strncpy'.
27022         * modules/unistr/u8-strncpy-tests: New file.
27023         * tests/unistr/test-u8-strncpy.c: New file.
27024         * tests/unistr/test-strncpy.h: New file.
27025
27026         Tests for module 'unistr/u32-stpcpy'.
27027         * modules/unistr/u32-stpcpy-tests: New file.
27028         * tests/unistr/test-u32-stpcpy.c: New file.
27029
27030         Tests for module 'unistr/u16-stpcpy'.
27031         * modules/unistr/u16-stpcpy-tests: New file.
27032         * tests/unistr/test-u16-stpcpy.c: New file.
27033
27034         Tests for module 'unistr/u8-stpcpy'.
27035         * modules/unistr/u8-stpcpy-tests: New file.
27036         * tests/unistr/test-u8-stpcpy.c: New file.
27037         * tests/unistr/test-stpcpy.h: New file.
27038
27039         Tests for module 'unistr/u32-strcpy'.
27040         * modules/unistr/u32-strcpy-tests: New file.
27041         * tests/unistr/test-u32-strcpy.c: New file.
27042
27043         Tests for module 'unistr/u16-strcpy'.
27044         * modules/unistr/u16-strcpy-tests: New file.
27045         * tests/unistr/test-u16-strcpy.c: New file.
27046
27047         Tests for module 'unistr/u8-strcpy'.
27048         * modules/unistr/u8-strcpy-tests: New file.
27049         * tests/unistr/test-u8-strcpy.c: New file.
27050         * tests/unistr/test-strcpy.h: New file.
27051
27052         Tests for module 'unistr/u32-strnlen'.
27053         * modules/unistr/u32-strnlen-tests: New file.
27054         * tests/unistr/test-u32-strnlen.c: New file.
27055
27056         Tests for module 'unistr/u16-strnlen'.
27057         * modules/unistr/u16-strnlen-tests: New file.
27058         * tests/unistr/test-u16-strnlen.c: New file.
27059
27060         Tests for module 'unistr/u8-strnlen'.
27061         * modules/unistr/u8-strnlen-tests: New file.
27062         * tests/unistr/test-u8-strnlen.c: New file.
27063         * tests/unistr/test-strnlen.h: New file.
27064
27065         Tests for module 'unistr/u32-strlen'.
27066         * modules/unistr/u32-strlen-tests: New file.
27067         * tests/unistr/test-u32-strlen.c: New file.
27068
27069         Tests for module 'unistr/u16-strlen'.
27070         * modules/unistr/u16-strlen-tests: New file.
27071         * tests/unistr/test-u16-strlen.c: New file.
27072
27073         Tests for module 'unistr/u8-strlen'.
27074         * modules/unistr/u8-strlen-tests: New file.
27075         * tests/unistr/test-u8-strlen.c: New file.
27076
27077         Tests for module 'unistr/u32-prev'.
27078         * modules/unistr/u32-prev-tests: New file.
27079         * tests/unistr/test-u32-prev.c: New file.
27080
27081         Tests for module 'unistr/u16-prev'.
27082         * modules/unistr/u16-prev-tests: New file.
27083         * tests/unistr/test-u16-prev.c: New file.
27084
27085         Tests for module 'unistr/u8-prev'.
27086         * modules/unistr/u8-prev-tests: New file.
27087         * tests/unistr/test-u8-prev.c: New file.
27088
27089         Tests for module 'unistr/u32-next'.
27090         * modules/unistr/u32-next-tests: New file.
27091         * tests/unistr/test-u32-next.c: New file.
27092
27093         Tests for module 'unistr/u16-next'.
27094         * modules/unistr/u16-next-tests: New file.
27095         * tests/unistr/test-u16-next.c: New file.
27096
27097         Tests for module 'unistr/u8-next'.
27098         * modules/unistr/u8-next-tests: New file.
27099         * tests/unistr/test-u8-next.c: New file.
27100
27101         Tests for module 'unistr/u32-strmbtouc'.
27102         * modules/unistr/u32-strmbtouc-tests: New file.
27103         * tests/unistr/test-u32-strmbtouc.c: New file.
27104
27105         Tests for module 'unistr/u16-strmbtouc'.
27106         * modules/unistr/u16-strmbtouc-tests: New file.
27107         * tests/unistr/test-u16-strmbtouc.c: New file.
27108
27109         Tests for module 'unistr/u8-strmbtouc'.
27110         * modules/unistr/u8-strmbtouc-tests: New file.
27111         * tests/unistr/test-u8-strmbtouc.c: New file.
27112
27113         Tests for module 'unistr/u32-strmblen'.
27114         * modules/unistr/u32-strmblen-tests: New file.
27115         * tests/unistr/test-u32-strmblen.c: New file.
27116
27117         Tests for module 'unistr/u16-strmblen'.
27118         * modules/unistr/u16-strmblen-tests: New file.
27119         * tests/unistr/test-u16-strmblen.c: New file.
27120
27121         Tests for module 'unistr/u8-strmblen'.
27122         * modules/unistr/u8-strmblen-tests: New file.
27123         * tests/unistr/test-u8-strmblen.c: New file.
27124
27125         Tests for module 'unistr/u32-cpy-alloc'.
27126         * modules/unistr/u32-cpy-alloc-tests: New file.
27127         * tests/unistr/test-u32-cpy-alloc.c: New file.
27128
27129         Tests for module 'unistr/u16-cpy-alloc'.
27130         * modules/unistr/u16-cpy-alloc-tests: New file.
27131         * tests/unistr/test-u16-cpy-alloc.c: New file.
27132
27133         Tests for module 'unistr/u8-cpy-alloc'.
27134         * modules/unistr/u8-cpy-alloc-tests: New file.
27135         * tests/unistr/test-u8-cpy-alloc.c: New file.
27136         * tests/unistr/test-cpy-alloc.h: New file.
27137
27138         Tests for module 'unistr/u32-mbsnlen'.
27139         * modules/unistr/u32-mbsnlen-tests: New file.
27140         * tests/unistr/test-u32-mbsnlen.c: New file.
27141
27142         Tests for module 'unistr/u16-mbsnlen'.
27143         * modules/unistr/u16-mbsnlen-tests: New file.
27144         * tests/unistr/test-u16-mbsnlen.c: New file.
27145
27146         Tests for module 'unistr/u8-mbsnlen'.
27147         * modules/unistr/u8-mbsnlen-tests: New file.
27148         * tests/unistr/test-u8-mbsnlen.c: New file.
27149
27150         Tests for module 'unistr/u32-chr'.
27151         * modules/unistr/u32-chr-tests: New file.
27152         * tests/unistr/test-u32-chr.c: New file.
27153
27154         Tests for module 'unistr/u16-chr'.
27155         * modules/unistr/u16-chr-tests: New file.
27156         * tests/unistr/test-u16-chr.c: New file.
27157
27158         Tests for module 'unistr/u8-chr'.
27159         * modules/unistr/u8-chr-tests: New file.
27160         * tests/unistr/test-u8-chr.c: New file.
27161         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27162
27163         Tests for module 'unistr/u32-cmp2'.
27164         * modules/unistr/u32-cmp2-tests: New file.
27165         * tests/unistr/test-u32-cmp2.c: New file.
27166
27167         Tests for module 'unistr/u16-cmp2'.
27168         * modules/unistr/u16-cmp2-tests: New file.
27169         * tests/unistr/test-u16-cmp2.c: New file.
27170
27171         Tests for module 'unistr/u8-cmp2'.
27172         * modules/unistr/u8-cmp2-tests: New file.
27173         * tests/unistr/test-u8-cmp2.c: New file.
27174         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27175
27176         Tests for module 'unistr/u32-cmp'.
27177         * modules/unistr/u32-cmp-tests: New file.
27178         * tests/unistr/test-u32-cmp.c: New file.
27179
27180         Tests for module 'unistr/u16-cmp'.
27181         * modules/unistr/u16-cmp-tests: New file.
27182         * tests/unistr/test-u16-cmp.c: New file.
27183
27184         Tests for module 'unistr/u8-cmp'.
27185         * modules/unistr/u8-cmp-tests: New file.
27186         * tests/unistr/test-u8-cmp.c: New file.
27187         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27188
27189         Tests for module 'unistr/u32-set'.
27190         * modules/unistr/u32-set-tests: New file.
27191         * tests/unistr/test-u32-set.c: New file.
27192
27193         Tests for module 'unistr/u16-set'.
27194         * modules/unistr/u16-set-tests: New file.
27195         * tests/unistr/test-u16-set.c: New file.
27196
27197         Tests for module 'unistr/u8-set'.
27198         * modules/unistr/u8-set-tests: New file.
27199         * tests/unistr/test-u8-set.c: New file.
27200         * tests/unistr/test-set.h: New file.
27201
27202         Tests for module 'unistr/u32-move'.
27203         * modules/unistr/u32-move-tests: New file.
27204         * tests/unistr/test-u32-move.c: New file.
27205
27206         Tests for module 'unistr/u16-move'.
27207         * modules/unistr/u16-move-tests: New file.
27208         * tests/unistr/test-u16-move.c: New file.
27209
27210         Tests for module 'unistr/u8-move'.
27211         * modules/unistr/u8-move-tests: New file.
27212         * tests/unistr/test-u8-move.c: New file.
27213         * tests/unistr/test-move.h: New file.
27214
27215         Tests for module 'unistr/u32-cpy'.
27216         * modules/unistr/u32-cpy-tests: New file.
27217         * tests/unistr/test-u32-cpy.c: New file.
27218
27219         Tests for module 'unistr/u16-cpy'.
27220         * modules/unistr/u16-cpy-tests: New file.
27221         * tests/unistr/test-u16-cpy.c: New file.
27222
27223         Tests for module 'unistr/u8-cpy'.
27224         * modules/unistr/u8-cpy-tests: New file.
27225         * tests/unistr/test-u8-cpy.c: New file.
27226         * tests/unistr/test-cpy.h: New file.
27227
27228 2010-01-09  Bruno Haible  <bruno@clisp.org>
27229
27230         Tests for module 'unistr/u32-uctomb'.
27231         * modules/unistr/u32-uctomb-tests: New file.
27232         * tests/unistr/test-u32-uctomb.c: New file.
27233
27234         Tests for module 'unistr/u16-uctomb'.
27235         * modules/unistr/u16-uctomb-tests: New file.
27236         * tests/unistr/test-u16-uctomb.c: New file.
27237
27238         Tests for module 'unistr/u8-uctomb'.
27239         * modules/unistr/u8-uctomb-tests: New file.
27240         * tests/unistr/test-u8-uctomb.c: New file.
27241
27242         Tests for module 'unistr/u32-mbtoucr'.
27243         * modules/unistr/u32-mbtoucr-tests: New file.
27244         * tests/unistr/test-u32-mbtoucr.c: New file.
27245
27246         Tests for module 'unistr/u16-mbtoucr'.
27247         * modules/unistr/u16-mbtoucr-tests: New file.
27248         * tests/unistr/test-u16-mbtoucr.c: New file.
27249
27250         Tests for module 'unistr/u8-mbtoucr'.
27251         * modules/unistr/u8-mbtoucr-tests: New file.
27252         * tests/unistr/test-u8-mbtoucr.c: New file.
27253
27254         Tests for module 'unistr/u32-mbtouc'.
27255         * modules/unistr/u32-mbtouc-tests: New file.
27256         * tests/unistr/test-u32-mbtouc.c: New file.
27257
27258         Tests for module 'unistr/u16-mbtouc'.
27259         * modules/unistr/u16-mbtouc-tests: New file.
27260         * tests/unistr/test-u16-mbtouc.c: New file.
27261
27262         Tests for module 'unistr/u8-mbtouc'.
27263         * modules/unistr/u8-mbtouc-tests: New file.
27264         * tests/unistr/test-u8-mbtouc.c: New file.
27265
27266         Tests for module 'unistr/u32-mbtouc-unsafe'.
27267         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27268         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27269         * tests/unistr/test-u32-mbtouc.h: New file.
27270
27271         Tests for module 'unistr/u16-mbtouc-unsafe'.
27272         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27273         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27274         * tests/unistr/test-u16-mbtouc.h: New file.
27275
27276         Tests for module 'unistr/u8-mbtouc-unsafe'.
27277         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27278         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27279         * tests/unistr/test-u8-mbtouc.h: New file.
27280
27281         Tests for module 'unistr/u32-mblen'.
27282         * modules/unistr/u32-mblen-tests: New file.
27283         * tests/unistr/test-u32-mblen.c: New file.
27284
27285         Tests for module 'unistr/u16-mblen'.
27286         * modules/unistr/u16-mblen-tests: New file.
27287         * tests/unistr/test-u16-mblen.c: New file.
27288
27289         Tests for module 'unistr/u8-mblen'.
27290         * modules/unistr/u8-mblen-tests: New file.
27291         * tests/unistr/test-u8-mblen.c: New file.
27292
27293         Tests for module 'unistr/u32-to-u16'.
27294         * modules/unistr/u32-to-u16-tests: New file.
27295         * tests/unistr/test-u32-to-u16.c: New file.
27296
27297         Tests for module 'unistr/u32-to-u8'.
27298         * modules/unistr/u32-to-u8-tests: New file.
27299         * tests/unistr/test-u32-to-u8.c: New file.
27300
27301         Tests for module 'unistr/u16-to-u32'.
27302         * modules/unistr/u16-to-u32-tests: New file.
27303         * tests/unistr/test-u16-to-u32.c: New file.
27304
27305         Tests for module 'unistr/u16-to-u8'.
27306         * modules/unistr/u16-to-u8-tests: New file.
27307         * tests/unistr/test-u16-to-u8.c: New file.
27308
27309         Tests for module 'unistr/u8-to-u32'.
27310         * modules/unistr/u8-to-u32-tests: New file.
27311         * tests/unistr/test-u8-to-u32.c: New file.
27312
27313         Tests for module 'unistr/u8-to-u16'.
27314         * modules/unistr/u8-to-u16-tests: New file.
27315         * tests/unistr/test-u8-to-u16.c: New file.
27316
27317         Tests for module 'unistr/u32-check'.
27318         * modules/unistr/u32-check-tests: New file.
27319         * tests/unistr/test-u32-check.c: New file.
27320
27321         Tests for module 'unistr/u16-check'.
27322         * modules/unistr/u16-check-tests: New file.
27323         * tests/unistr/test-u16-check.c: New file.
27324
27325         Tests for module 'unistr/u8-check'.
27326         * modules/unistr/u8-check-tests: New file.
27327         * tests/unistr/test-u8-check.c: New file.
27328
27329         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27330         (category_equals): New function.
27331         (main): Add more tests.
27332         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27333
27334         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27335
27336 2010-01-10  Bruno Haible  <bruno@clisp.org>
27337
27338         unistr/u*-strcoll: Try harder to distinguish different strings.
27339         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27340         compare s1 and s2 to see if they are different.
27341
27342 2010-01-10  Bruno Haible  <bruno@clisp.org>
27343
27344         unistr/u*-stpncpy: Fix the return value.
27345         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27346         description of the return value consistent with stpncpy in glibc.
27347         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27348         written non-NUL unit.
27349
27350 2010-01-10  Bruno Haible  <bruno@clisp.org>
27351
27352         unistr/u*-next: Add missing dependencies.
27353         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27354         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27355         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27356
27357 2010-01-10  Bruno Haible  <bruno@clisp.org>
27358
27359         unistr/u8-mbsnlen: Fix return value for incomplete character.
27360         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27361         u8_mblen.
27362         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27363         Remove unistr/u8-mblen.
27364         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27365         u16_mblen.
27366         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27367         Remove unistr/u16-mblen.
27368
27369 2010-01-10  Bruno Haible  <bruno@clisp.org>
27370
27371         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27372         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27373         Reported by Brian Gough <bjg@gnu.org> and
27374         Chris Clayton <chris2553@googlemail.com> via
27375         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27376
27377 2010-01-09  Bruno Haible  <bruno@clisp.org>
27378
27379         unistr/u16-to-u32: Reject invalid input.
27380         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27381         u16_mbtouc.
27382         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27383         Remove unistr/u16-mbtouc.
27384
27385         unistr/u16-to-u8: Reject invalid input.
27386         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27387         u16_mbtouc.
27388         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27389         Remove unistr/u16-mbtouc.
27390
27391         unistr/u8-to-u32: Reject invalid input.
27392         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27393         u8_mbtouc.
27394         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27395         Remove unistr/u8-mbtouc.
27396
27397         unistr/u8-to-u16: Reject invalid input.
27398         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27399         u8_mbtouc.
27400         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27401         Remove unistr/u8-mbtouc.
27402
27403 2010-01-09  Bruno Haible  <bruno@clisp.org>
27404
27405         Tests for module 'getlogin'.
27406         * modules/getlogin-tests: New file.
27407         * tests/test-getlogin.c: New file.
27408
27409         New module 'getlogin'.
27410         * lib/unistd.in.h (getlogin): New declaration.
27411         * lib/getlogin.c: New file.
27412         * m4/getlogin.m4: New file.
27413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27414         HAVE_GETLOGIN.
27415         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27416         HAVE_GETLOGIN.
27417         * modules/getlogin: New file.
27418         * doc/posix-functions/getlogin.texi: Mention the new module.
27419         Reported by John W. Eaton <jwe@gnu.org>.
27420
27421 2010-01-09  Bruno Haible  <bruno@clisp.org>
27422
27423         getlogin_r: Support for native Windows.
27424         * lib/getlogin_r.c: Include <windows.h>
27425         (getlogin_r): Implement for native Windows.
27426         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27427         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27428         via John W. Eaton <jwe@gnu.org>.
27429
27430 2010-01-09  Bruno Haible  <bruno@clisp.org>
27431
27432         getlogin_r: Small fixes.
27433         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27434         succeeds.
27435         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27436         before testing whether getlogin_r is declared. No need to set
27437         HAVE_DECL_GETLOGIN_R to 1.
27438         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27439
27440 2010-01-09  Bruno Haible  <bruno@clisp.org>
27441
27442         * lib/unistd.in.h (getlogin_r): Add comment.
27443
27444 2010-01-09  Bruno Haible  <bruno@clisp.org>
27445
27446         Tests for module 'getlogin_r'.
27447         * modules/getlogin_r-tests: New file.
27448         * tests/test-getlogin_r.c: New file.
27449
27450 2010-01-09  Jim Meyering  <meyering@redhat.com>
27451
27452         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27453         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27454         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27455
27456 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27457
27458         * lib/dup2.c (rpl_dup2): Improve comment.
27459
27460 2010-01-08  Eric Blake  <ebb9@byu.net>
27461
27462         maint.mk: allow packages to add makefile @@ exceptions
27463         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27464         (sc_makefile_check): Rename...
27465         (sc_makefile_at_at_check): ...to this, and use hook.
27466
27467         dup2: work around mingw bug
27468         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27469         Reported by Simon Josefsson.
27470
27471 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27472
27473         glob: Fix C++ compilation.
27474         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27475         C++.
27476
27477 2010-01-07  Bruno Haible  <bruno@clisp.org>
27478
27479         Fix indentation of wctype.in.h, broken since 2007-01-06.
27480         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27481
27482 2010-01-07  Bruno Haible  <bruno@clisp.org>
27483
27484         mbslen: Avoid collision with system function.
27485         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27486         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27487         * m4/mbslen.m4: New file.
27488         * modules/mbslen (Files): Add it.
27489         (configure.ac): Invoke gl_MBSLEN.
27490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27491         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27492         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27493         via Ian Beckwith <ianb@erislabs.net>.
27494
27495 2010-01-07  Bruno Haible  <bruno@clisp.org>
27496
27497         dirent: Document the last fix.
27498         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27499
27500 2010-01-07  Bruno Haible  <bruno@clisp.org>
27501
27502         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27503         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27504         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27505         va_list are defined.
27506         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27507         Reported by Eric Blake.
27508
27509 2010-01-07  Bruno Haible  <bruno@clisp.org>
27510
27511         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27512         * modules/xlist (Depends-on): Add 'list',
27513         * modules/xoset (Depends-on): Add 'oset'.
27514         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27515
27516 2010-01-07  Bruno Haible  <bruno@clisp.org>
27517
27518         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27519         * doc/posix-functions/strncasecmp.texi: Likewise.
27520
27521 2010-01-07  Bruno Haible  <bruno@clisp.org>
27522
27523         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27524
27525 2010-01-07  John W. Eaton  <jwe@octave.org>
27526
27527         wctype: allow C++ use
27528         * lib/wctype.in.h: Add extern "C" block for C++.
27529
27530 2010-01-06  Eric Blake  <ebb9@byu.net>
27531
27532         maint.mk: detect incorrect GFDL usage
27533         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27534
27535 2010-01-06  Jim Meyering  <meyering@redhat.com>
27536         and Eric Blake  <ebb9@byu.net>
27537
27538         maint.mk: ignore multi-line copyright in NEWS
27539         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27540
27541 2010-01-06  Eric Blake  <ebb9@byu.net>
27542
27543         select: add missing dependency
27544         * modules/select-tests (Depends-on): Move sockets dependency...
27545         * modules/select (Depends-on): ...here.
27546         Reported by Ian Beckwith.
27547
27548         doc: regenerate INSTALL
27549         * doc/INSTALL: Reflect recent autoconf update.
27550         * doc/INSTALL.ISO: Likewise.
27551         * doc/INSTALL.UTF-8: Likewise.
27552
27553         pread: fix compilation on glibc
27554         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27555         Reported by Ralf Wildenhues.
27556
27557         dirent: fix test failure
27558         * lib/dirent.in.h (includes): Guarantee ino_t.
27559         Reported by Ralf Wildenhues.
27560
27561 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27562
27563         linkat, renameat: avoid bad free
27564         * lib/at-func2.c (at_func2): Fix typo.
27565         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27566
27567 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27568
27569         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27570         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27571         to avoid failure of symlink test later.
27572
27573 2010-01-06  Eric Blake  <ebb9@byu.net>
27574
27575         stdio, unistd: guarantee ssize_t
27576         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27577         2008 are exposed when needed.
27578         * lib/stdio.in.h (includes): Likewise.
27579         Reported by Ralf Wildenhues.
27580
27581 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27582
27583         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27584         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27585         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27586
27587 2010-01-06  Jim Meyering  <meyering@redhat.com>
27588
27589         readtokens: this module *does* require xalloc.h
27590         It uses only functions that were omitted by the old syntax-check rule.
27591         * lib/readtokens.c: Include "xalloc.h" once again.
27592         * modules/readtokens (Depends-on): Add xalloc.
27593         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27594
27595 2010-01-05  Eric Blake  <ebb9@byu.net>
27596
27597         maint: support 'make announcement' from a VPATH build
27598         * top/maint.mk (announcement): Look for correct NEWS file.
27599
27600 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27601
27602         utimens (fdutimens): ignore a negative FD, per contract
27603         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27604         when we have a valid file descriptor.  Otherwise, using a brand
27605         new glibc (with just-patched futimens that now fails with EBADF)
27606         would cause this function to fail with ENOSYS.
27607         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27608         See also http://bugzilla.redhat.com/552320.
27609
27610 2010-01-05  Eric Blake  <ebb9@byu.net>
27611
27612         strcase: document what it provides
27613         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27614         gnulib module.
27615         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27616         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27617
27618 2010-01-05  Jim Meyering  <meyering@redhat.com>
27619
27620         maint: remove useless inclusions of "xalloc.h"
27621         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27622         * lib/readtokens.c: Likewise.
27623         * lib/same.c: Likewise.
27624         * modules/getloadavg (Depends-on): Remove xalloc.
27625         * modules/readtokens: Likewise.
27626         * modules/same: Likewise.
27627
27628         maint.mk: include 4 more function names in alloca.h-checking regexp
27629         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27630         regexp.  Before, we would give a false-positive (saying alloca.h
27631         is included unnecessarily) when the only uses involved omitted symbols.
27632
27633         xalloc.h: use consistent formatting
27634         * lib/xalloc.h: Move declarations to start in the first column.
27635
27636 2010-01-05  Eric Blake  <ebb9@byu.net>
27637
27638         mkdir: avoid xalloc
27639         * lib/mkdir.c (includes): Drop unused header.
27640         Reported by John W. Eaton.
27641
27642 2010-01-04  Jim Meyering  <meyering@redhat.com>
27643
27644         nl_langinfo: avoid configure-time syntax error
27645         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27646         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27647         the empty string.  Don't let that provoke a shell syntax error.
27648
27649         regcomp, regexec, fnmatch: avoid array bounds read error
27650         * lib/regcomp.c (build_equiv_class): From glibc:
27651         Use only the low 24 bits of a findidx return value as an index
27652         into the weights array.  Patch by Ulrich Drepper:
27653         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27654         * lib/regexec.c (check_node_accept_bytes): Likewise.
27655         * lib/fnmatch_loop.c (FCT): Likewise.
27656
27657         regcomp: skip collseq lookup when there are no rules
27658         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27659         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27660
27661         regcomp: recognize ill-formed { } expressions
27662         * lib/regcomp.c (parse_dup_op): From glibc:
27663         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27664
27665         regcomp: fix typo in comment
27666         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27667         s/satisfy/satisfies/.
27668
27669         regcomp: sync from glibc: remove dead store
27670         * lib/regcomp.c (duplicate_node_closure): Remove useless
27671         search_duplicated_node call and dead store.
27672
27673         regcomp: sync from glibc; always use nl_langinfo
27674         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27675         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27676         * modules/regex (Depends-on): Add nl_langinfo.
27677
27678 2010-01-04  Eric Blake  <ebb9@byu.net>
27679
27680         fdopendir: fix configure test
27681         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27682
27683 2010-01-01  Bruno Haible  <bruno@clisp.org>
27684
27685         wchar: Remove unused configure check.
27686         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27687
27688 2010-01-01  Eric Blake  <ebb9@byu.net>
27689
27690         headers: make check of system header explicit
27691         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27692         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27693         ourselves.
27694         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27695         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27696         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27697         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27698         internals.
27699         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27700         missing.
27701         Suggested by Bruno Haible.
27702
27703 2010-01-01  Jim Meyering  <meyering@redhat.com>
27704
27705         ChangeLog: tweak to eliminate unnecessary copyright line
27706         * ChangeLog: Remove a copyright line that was mistakenly updated
27707         by today's update-copyright run.  Reported by Eric Blake.
27708
27709         test-update-copyright: don't let envvar setting cause test failure
27710         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27711
27712 2010-01-01  Bruno Haible  <bruno@clisp.org>
27713
27714         localename: Avoid gcc warning.
27715         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27716         function if it is not used.
27717
27718 2010-01-01  Jim Meyering  <meyering@redhat.com>
27719
27720         update nearly all FSF copyright year lists to include 2010
27721         Use the same procedure as for 2009, outlined in
27722         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27723
27724         version-etc: set COPYRIGHT_YEAR to 2010
27725         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27726
27727 2009-12-31  Eric Blake  <ebb9@byu.net>
27728
27729         doc: correct availability of cygwin 1.5.x getopt
27730         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27731         variables.
27732         * doc/posix-functions/opterr.texi (opterr): Likewise.
27733         * doc/posix-functions/optind.texi (optind): Likewise.
27734         * doc/posix-functions/optopt.texi (optopt): Likewise.
27735         * doc/posix-functions/tzname.texi (tzname): Likewise.
27736
27737         openat: update maintainer
27738         * modules/openat (Maintainer): Add myself.
27739
27740         utimens: avoid shadowing warning
27741         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27742         buffers into one, to avoid shadowing, as well as avoiding a
27743         redundant stat.
27744         Reported by Jim Meyering.
27745
27746         test-dup2: avoid compiler warning
27747         * tests/test-dup2.c (is_inheritable): Only define if used.
27748
27749 2010-01-01  Bruno Haible  <bruno@clisp.org>
27750
27751         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27752         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27753         defined, use wctomb instead of wcrtomb.
27754
27755 2010-01-01  Bruno Haible  <bruno@clisp.org>
27756
27757         iconv: Reject native Solaris iconv.
27758         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27759         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27760
27761 2009-12-31  Bruno Haible  <bruno@clisp.org>
27762
27763         * tests/test-signal.c (main): Remove test of 'SIG'.
27764
27765 2009-12-31  Bruno Haible  <bruno@clisp.org>
27766
27767         spawn: Fix incomplete fix.
27768         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27769         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27770         warnings for GNULIB_POSIXCHECK again.
27771         Reported by Eric Blake.
27772
27773 2009-12-31  Bruno Haible  <bruno@clisp.org>
27774
27775         Avoid namespace pollution on glibc systems.
27776         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27777         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27778         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27779         glibc systems.
27780
27781 2009-12-31  Bruno Haible  <bruno@clisp.org>
27782
27783         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27784         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27785         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27786         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27787         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27788         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27789         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27790
27791 2009-12-31  Bruno Haible  <bruno@clisp.org>
27792
27793         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27794         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27795         afterwards.
27796
27797 2009-12-31  Bruno Haible  <bruno@clisp.org>
27798
27799         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27800         SYS_UTSNAME_H.
27801
27802 2009-12-31  Bruno Haible  <bruno@clisp.org>
27803
27804         spawn: Fix misapplied patch.
27805         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27806         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27807         warnings for GNULIB_POSIXCHECK.
27808
27809 2009-12-31  Bruno Haible  <bruno@clisp.org>
27810
27811         times: Update after sys_times changed.
27812         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27813         * modules/times (Files): Add it.
27814         (configure.ac): Invoke gl_FUNC_TIMES.
27815
27816 2009-12-31  Bruno Haible  <bruno@clisp.org>
27817
27818         Use AC_C_INLINE where necessary.
27819         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27820         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27821         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27822         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27823         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27824         * m4/mbiter.m4 (gl_MBITER): Likewise.
27825         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27826         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27827         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27828         * modules/u64 (configure.ac): Likewise.
27829
27830 2009-12-31  Bruno Haible  <bruno@clisp.org>
27831
27832         Use AC_C_INLINE instead of module 'inline' where possible.
27833         * modules/inline (Description): Clarify purpose.
27834         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27835         * modules/count-one-bits (Depends-on): Remove inline.
27836         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27837         * modules/openat (Depends-on): Remove inline.
27838         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27839         instead of depending on module 'inline'.
27840         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27841         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27842         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27843         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27844         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27845         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27846         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27847         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27848         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27849         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27850         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27851         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27852         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27853         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27854         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27855         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27856         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27857         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27858         Likewise.
27859         * modules/unictype/property-ascii-hex-digit (Depends-on,
27860         configure.ac): Likewise.
27861         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27862         configure.ac): Likewise.
27863         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27864         configure.ac): Likewise.
27865         * modules/unictype/property-bidi-block-separator (Depends-on,
27866         configure.ac): Likewise.
27867         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27868         configure.ac): Likewise.
27869         * modules/unictype/property-bidi-common-separator (Depends-on,
27870         configure.ac): Likewise.
27871         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27872         Likewise.
27873         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
27874         configure.ac): Likewise.
27875         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
27876         configure.ac): Likewise.
27877         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
27878         configure.ac): Likewise.
27879         * modules/unictype/property-bidi-european-digit (Depends-on,
27880         configure.ac): Likewise.
27881         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
27882         configure.ac): Likewise.
27883         * modules/unictype/property-bidi-left-to-right (Depends-on,
27884         configure.ac): Likewise.
27885         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
27886         configure.ac): Likewise.
27887         * modules/unictype/property-bidi-other-neutral (Depends-on,
27888         configure.ac): Likewise.
27889         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
27890         Likewise.
27891         * modules/unictype/property-bidi-segment-separator (Depends-on,
27892         configure.ac): Likewise.
27893         * modules/unictype/property-bidi-whitespace (Depends-on,
27894         configure.ac): Likewise.
27895         * modules/unictype/property-combining (Depends-on, configure.ac):
27896         Likewise.
27897         * modules/unictype/property-composite (Depends-on, configure.ac):
27898         Likewise.
27899         * modules/unictype/property-currency-symbol (Depends-on,
27900         configure.ac): Likewise.
27901         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
27902         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
27903         Likewise.
27904         * modules/unictype/property-default-ignorable-code-point (Depends-on,
27905         configure.ac): Likewise.
27906         * modules/unictype/property-deprecated (Depends-on, configure.ac):
27907         Likewise.
27908         * modules/unictype/property-diacritic (Depends-on, configure.ac):
27909         Likewise.
27910         * modules/unictype/property-extender (Depends-on, configure.ac):
27911         Likewise.
27912         * modules/unictype/property-format-control (Depends-on, configure.ac):
27913         Likewise.
27914         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27915         Likewise.
27916         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27917         Likewise.
27918         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27919         Likewise.
27920         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27921         Likewise.
27922         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27923         Likewise.
27924         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27925         Likewise.
27926         * modules/unictype/property-id-start (Depends-on, configure.ac):
27927         Likewise.
27928         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27929         Likewise.
27930         * modules/unictype/property-ids-binary-operator (Depends-on,
27931         configure.ac): Likewise.
27932         * modules/unictype/property-ids-trinary-operator (Depends-on,
27933         configure.ac): Likewise.
27934         * modules/unictype/property-ignorable-control (Depends-on,
27935         configure.ac): Likewise.
27936         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27937         Likewise.
27938         * modules/unictype/property-join-control (Depends-on, configure.ac):
27939         Likewise.
27940         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27941         Likewise.
27942         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27943         Likewise.
27944         * modules/unictype/property-logical-order-exception (Depends-on,
27945         configure.ac): Likewise.
27946         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27947         Likewise.
27948         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27949         * modules/unictype/property-non-break (Depends-on, configure.ac):
27950         Likewise.
27951         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27952         Likewise.
27953         * modules/unictype/property-numeric (Depends-on, configure.ac):
27954         Likewise.
27955         * modules/unictype/property-other-alphabetic (Depends-on,
27956         configure.ac): Likewise.
27957         * modules/unictype/property-other-default-ignorable-code-point
27958         (Depends-on, configure.ac): Likewise.
27959         * modules/unictype/property-other-grapheme-extend (Depends-on,
27960         configure.ac): Likewise.
27961         * modules/unictype/property-other-id-continue (Depends-on,
27962         configure.ac): Likewise.
27963         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27964         Likewise.
27965         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27966         Likewise.
27967         * modules/unictype/property-other-math (Depends-on, configure.ac):
27968         Likewise.
27969         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27970         Likewise.
27971         * modules/unictype/property-paired-punctuation (Depends-on,
27972         configure.ac): Likewise.
27973         * modules/unictype/property-paragraph-separator (Depends-on,
27974         configure.ac): Likewise.
27975         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27976         Likewise.
27977         * modules/unictype/property-pattern-white-space (Depends-on,
27978         configure.ac): Likewise.
27979         * modules/unictype/property-private-use (Depends-on, configure.ac):
27980         Likewise.
27981         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27982         Likewise.
27983         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27984         Likewise.
27985         * modules/unictype/property-radical (Depends-on, configure.ac):
27986         Likewise.
27987         * modules/unictype/property-sentence-terminal (Depends-on,
27988         configure.ac): Likewise.
27989         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27990         Likewise.
27991         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27992         * modules/unictype/property-terminal-punctuation (Depends-on,
27993         configure.ac): Likewise.
27994         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27995         Likewise.
27996         * modules/unictype/property-unassigned-code-value (Depends-on,
27997         configure.ac): Likewise.
27998         * modules/unictype/property-unified-ideograph (Depends-on,
27999         configure.ac): Likewise.
28000         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28001         Likewise.
28002         * modules/unictype/property-variation-selector (Depends-on,
28003         configure.ac): Likewise.
28004         * modules/unictype/property-white-space (Depends-on, configure.ac):
28005         Likewise.
28006         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28007         Likewise.
28008         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28009         Likewise.
28010         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28011         Likewise.
28012         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28013         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28014         Likewise.
28015
28016 2009-12-31  Bruno Haible  <bruno@clisp.org>
28017
28018         Remove unnecessary AC_C_INLINE invocation.
28019         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28020         since 2009-08-21.
28021
28022 2009-12-31  Jim Meyering  <meyering@redhat.com>
28023
28024         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28025         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28026         With this change, we can all remove the gpg_key_ID = ... definition
28027         from our respective cfg.mk files.
28028
28029         maint.mk: create announcement template in ~/, not in /tmp
28030         * top/maint.mk (emit_upload_commands): Adjust.
28031         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28032         Remove temporary file, .ci-msg.
28033
28034 2009-12-31  Eric Blake  <ebb9@byu.net>
28035
28036         link-warning: always build headers with link warnings
28037         * modules/arpa_inet (Makefile.am): Always build replacement
28038         header.
28039         * modules/ctype (Makefile.am): Likewise.
28040         * modules/dirent (Makefile.am): Likewise.
28041         * modules/inttypes (Makefile.am): Likewise.
28042         * modules/langinfo (Makefile.am): Likewise.
28043         * modules/locale (Makefile.am): Likewise.
28044         * modules/spawn (Makefile.am): Likewise.
28045         * modules/sys_file (Makefile.am): Likewise.
28046         * modules/sys_ioctl (Makefile.am): Likewise.
28047         * modules/sys_select (Makefile.am): Likewise.
28048         * modules/sys_socket (Makefile.am): Likewise.
28049         * modules/sys_times (Makefile.am): Likewise.
28050         * modules/sys_utsname (Makefile.am): Likewise.
28051         * modules/sys_wait (Makefile.am): Likewise.
28052         * modules/wchar (Makefile.am): Likewise.
28053         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28054         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28055         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28056         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28057         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28058         Likewise.
28059         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28060         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28061         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28062         Likewise.
28063         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28064         Likewise.
28065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28067         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28069         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28070         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28071         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28072         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28073         (gl_WCHAR_H_DEFAULTS): Likewise.
28074
28075 2009-12-31  Eric Blake  <ebb9@byu.net>
28076
28077         signal, spawn: use link warnings
28078         * lib/signal.in.h (sigset_t): Make unconditional.
28079         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28080         (sigpending, sigprocmask, sigaction): Add link warnings.
28081         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28082         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28083         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28084         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28085         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28086         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28087         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28088         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28089         (posix_spawn_file_actions_destroy)
28090         (posix_spawn_file_actions_addopen)
28091         (posix_spawn_file_actions_addclose)
28092         (posix_spawn_file_actions_adddup2): Likewise.
28093         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28094         * tests/test-signal.c (main): Enhance test.
28095
28096         spawn: improve wrapper support
28097         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28098         (gl_SPAWN_H_DEFAULTS): New defaults.
28099         * modules/spawn (Makefile.am): Substitute them.
28100         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28101         Only declare if missing or broken.
28102
28103         sys_times, sys_utsname: use include_next
28104         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28105         header.
28106         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28107         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28108         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28109         * modules/sys_times (Depends-on): Add include_next.
28110         (Makefile.am): Substitute additional values.
28111         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28112         * lib/sys_times.in.h (includes): Include native header, if
28113         available.
28114         * lib/sys_utsname.in.h (includes): Likewise.
28115         * tests/test-sys_times.c (main): Enhance test.
28116
28117         fdutimensat: revert prior patch
28118         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28119         utimens.h.
28120         Reported by Bruno Haible.
28121
28122 2009-12-30  Eric Blake  <ebb9@byu.net>
28123
28124         sys_wait: drop link-warning dependency
28125         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28126         link-warning efforts.
28127         * lib/sys_wait.in.h: Likewise.
28128
28129         fdutimensat: remove bogus dependency
28130         * modules/fdutimensat (Depends-on): Drop inline.
28131
28132         unistd: fix typo
28133         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28134
28135 2009-12-30  Bruno Haible  <bruno@clisp.org>
28136
28137         Fix compilation error with Solaris cc.
28138         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28139         * lib/unicase/u16-is-invariant.c: Likewise.
28140         * lib/unicase/u32-is-invariant.c: Likewise.
28141         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28142
28143 2009-12-30  Bruno Haible  <bruno@clisp.org>
28144
28145         Fix test crash.
28146         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28147         locales.
28148         Reported by Simon Josefsson <simon@josefsson.org>.
28149
28150 2009-12-30  Bruno Haible  <bruno@clisp.org>
28151
28152         Fix compilation error on most platforms.
28153         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28154         Reported by Simon Josefsson <simon@josefsson.org>
28155         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28156
28157 2009-12-30  Eric Blake  <ebb9@byu.net>
28158
28159         futimens, utimensat: work around ntfs-3g bug
28160         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28161         a ctime bug is present, and expand workaround to cover ntfs-3g.
28162         * lib/utimens.c (fdutimens, lutimens): Likewise.
28163         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28164         (validate_timespec): Adjust return value.
28165         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28166         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28167         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28168
28169 2009-12-29  Eric Blake  <ebb9@byu.net>
28170
28171         link-warning: make usage consistent
28172         * modules/ctype (Depends-on): Add link-warning.
28173         (Makefile.am): Update rules accordingly.
28174         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28175         * modules/locale (Depends-on, Makefile.am): Likewise.
28176         * modules/sys_file (Makefile.am): Likewise.
28177         * modules/getopt-posix (Makefile.am): Delete unused link warning
28178         efforts.
28179         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28180         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28181         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28182         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28183
28184         stdio: remove unused variables
28185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28186         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28187         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28188
28189         tests: test more substitute headers
28190         * modules/ctype-tests: New file.
28191         * modules/dirent-tests: Likewise.
28192         * modules/spawn-tests: Likewise.
28193         * modules/sys_file-tests: Likewise.
28194         * modules/sys_ioctl-tests: Likewise.
28195         * modules/sys_wait-tests: Likewise.
28196         * tests/test-ctype.c: Likewise.
28197         * tests/test-dirent.c: Likewise.
28198         * tests/test-spawn.c: Likewise.
28199         * tests/test-sys_file.c: Likewise.
28200         * tests/test-sys_ioctl.c: Likewise.
28201         * tests/test-sys_wait.c: Likewise.
28202         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28203         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28204         whether or not flock is in use.
28205
28206         tests: remove License section from module
28207         * modules/arpa_inet-tests: Remove unneeded section.
28208         * modules/byteswap-tests: Likewise.
28209         * modules/ceilf-tests: Likewise.
28210         * modules/ceill-tests: Likewise.
28211         * modules/crypto/des-tests: Likewise.
28212         * modules/crypto/gc-arcfour-tests: Likewise.
28213         * modules/crypto/gc-arctwo-tests: Likewise.
28214         * modules/crypto/gc-des-tests: Likewise.
28215         * modules/crypto/gc-hmac-md5-tests: Likewise.
28216         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28217         * modules/crypto/gc-md2-tests: Likewise.
28218         * modules/crypto/gc-md4-tests: Likewise.
28219         * modules/crypto/gc-md5-tests: Likewise.
28220         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28221         * modules/crypto/gc-rijndael-tests: Likewise.
28222         * modules/crypto/gc-sha1-tests: Likewise.
28223         * modules/crypto/gc-tests: Likewise.
28224         * modules/crypto/md2-tests: Likewise.
28225         * modules/crypto/md4-tests: Likewise.
28226         * modules/fcntl-h-tests: Likewise.
28227         * modules/floorf-tests: Likewise.
28228         * modules/floorl-tests: Likewise.
28229         * modules/frexp-nolibm-tests: Likewise.
28230         * modules/frexp-tests: Likewise.
28231         * modules/frexpl-nolibm-tests: Likewise.
28232         * modules/frexpl-tests: Likewise.
28233         * modules/getaddrinfo-tests: Likewise.
28234         * modules/inttypes-tests: Likewise.
28235         * modules/isfinite-tests: Likewise.
28236         * modules/isinf-tests: Likewise.
28237         * modules/ldexpl-tests: Likewise.
28238         * modules/locale-tests: Likewise.
28239         * modules/math-tests: Likewise.
28240         * modules/netdb-tests: Likewise.
28241         * modules/netinet_in-tests: Likewise.
28242         * modules/printf-frexp-tests: Likewise.
28243         * modules/printf-frexpl-tests: Likewise.
28244         * modules/priv-set-tests: Likewise.
28245         * modules/random_r-tests: Likewise.
28246         * modules/round-tests: Likewise.
28247         * modules/roundf-tests: Likewise.
28248         * modules/roundl-tests: Likewise.
28249         * modules/search-tests: Likewise.
28250         * modules/select-tests: Likewise.
28251         * modules/signal-tests: Likewise.
28252         * modules/stdbool-tests: Likewise.
28253         * modules/stddef-tests: Likewise.
28254         * modules/stdint-tests: Likewise.
28255         * modules/stdio-tests: Likewise.
28256         * modules/stdlib-tests: Likewise.
28257         * modules/string-tests: Likewise.
28258         * modules/strings-tests: Likewise.
28259         * modules/sys_select-tests: Likewise.
28260         * modules/sys_socket-tests: Likewise.
28261         * modules/sys_stat-tests: Likewise.
28262         * modules/sys_time-tests: Likewise.
28263         * modules/sys_utsname-tests: Likewise.
28264         * modules/sysexits-tests: Likewise.
28265         * modules/time-tests: Likewise.
28266         * modules/trunc-tests: Likewise.
28267         * modules/truncf-tests: Likewise.
28268         * modules/truncl-tests: Likewise.
28269         * modules/tsearch-tests: Likewise.
28270         * modules/unistd-tests: Likewise.
28271         * modules/wchar-tests: Likewise.
28272         * modules/wctype-tests: Likewise.
28273
28274         tests: fix license on several tests
28275         * tests/test-des.c: Update to GPLv3+.
28276         * tests/test-flock.c: Likewise.
28277         * tests/test-fsync.c: Likewise.
28278         * tests/test-futimens.h: Likewise.
28279         * tests/test-gc-arcfour.c: Likewise.
28280         * tests/test-gc-arctwo.c: Likewise.
28281         * tests/test-gc-des.c: Likewise.
28282         * tests/test-gc-hmac-md5.c: Likewise.
28283         * tests/test-gc-hmac-sha1.c: Likewise.
28284         * tests/test-gc-md2.c: Likewise.
28285         * tests/test-gc-md4.c: Likewise.
28286         * tests/test-gc-md5.c: Likewise.
28287         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28288         * tests/test-gc-rijndael.c: Likewise.
28289         * tests/test-gc-sha1.c: Likewise.
28290         * tests/test-gc.c: Likewise.
28291         * tests/test-getcwd.c: Likewise.
28292         * tests/test-link.c: Likewise.
28293         * tests/test-link.h: Likewise.
28294         * tests/test-lutimens.h: Likewise.
28295         * tests/test-md2.c: Likewise.
28296         * tests/test-md4.c: Likewise.
28297         * tests/test-mkdir.h: Likewise.
28298         * tests/test-rename.c: Likewise.
28299         * tests/test-rename.h: Likewise.
28300         * tests/test-safe-alloc.c: Likewise.
28301         * tests/test-utimens-common.h: Likewise.
28302         * tests/test-utimens.h: Likewise.
28303
28304         maint: sync license texts
28305         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28306         * doc/gpl-3.0.texi: Revert copyright year update.
28307         * doc/lgpl-3.0.texi: Likewise.
28308
28309 2009-12-29  Jim Meyering  <meyering@redhat.com>
28310
28311         update nearly all FSF copyright year lists to include 2009
28312         The files named by the following are exempted:
28313             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28314               test -f "$dst" && { echo "$dst"; continue; }
28315               test -d "$dst" || continue
28316               echo "$dst"/$(basename "$src")
28317             done > exempt
28318             git ls-files tests/unictype >> exempt
28319         In the remaining files, convert to all-interval notation if
28320         - there is already at least one year interval like 2000-2003
28321         - the file is maintained by me
28322         - the file is in lib/uni*/, where that style already prevails
28323         Otherwise, use update-copyright's default.
28324
28325 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28326         and Eric Blake  <ebb9@byu.net>
28327
28328         tests: don't require debug system() to pass
28329         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28330         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28331         * tests/test-unlink.h (test_unlink_func): Likewise.
28332         * tests/test-fstatat.c (main): ...into callers.
28333         * tests/test-lstat.c (main): Likewise.
28334         * tests/test-rmdir.c (main): Likewise.
28335         * tests/test-unlink.c (main): Likewise.
28336         * tests/test-unlinkat.c (main): Likewise.
28337         * tests/test-areadlink-with-size.c (main): Don't require a
28338         debug-only system call to pass, aiding cross-testing to mingw.
28339         * tests/test-areadlink.c (main): Likewise.
28340         * tests/test-areadlinkat-with-size.c (main): Likewise.
28341         * tests/test-areadlinkat.c (main): Likewise.
28342         * tests/test-canonicalize-lgpl.c (main): Likewise.
28343         * tests/test-canonicalize.c (main): Likewise.
28344         * tests/test-chown.c (main): Likewise.
28345         * tests/test-fchownat.c (main): Likewise.
28346         * tests/test-lchown.c (main): Likewise.
28347         * tests/test-fdutimensat.c (main): Likewise.
28348         * tests/test-futimens.c (main): Likewise.
28349         * tests/test-link.c (main): Likewise.
28350         * tests/test-linkat.c (main): Likewise.
28351         * tests/test-mkdir.c (main): Likewise.
28352         * tests/test-mkdirat.c (main): Likewise.
28353         * tests/test-mkfifo.c (main): Likewise.
28354         * tests/test-mkfifoat.c (main): Likewise.
28355         * tests/test-mknod.c (main): Likewise.
28356         * tests/test-readlink.c (main): Likewise.
28357         * tests/test-remove.c (main): Likewise.
28358         * tests/test-rename.c (main): Likewise.
28359         * tests/test-renameat.c (main): Likewise.
28360         * tests/test-symlink.c (main): Likewise.
28361         * tests/test-symlinkat.c (main): Likewise.
28362         * tests/test-utimens.c (main): Likewise.
28363         * tests/test-utimensat.c (main): Likewise.
28364
28365 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28366
28367         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28368         on $(UNUSED_PARAMETER_H) to avoid build failure.
28369
28370 2009-12-28  Jim Meyering  <meyering@redhat.com>
28371
28372         update-copyright: you may specify a max. line length other than 72
28373         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28374
28375         maint: use consistent FSF copyright line syntax
28376         * lib/posixtm.c: Add missing comma in FSF copyright line.
28377         * lib/posixtm.h: Likewise.
28378         * lib/getugroups.c: Add missing ", Inc.".
28379
28380         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28381         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28382         FSF copyright line.  Remove trailing blanks.
28383
28384 2009-12-28  Eric Blake  <ebb9@byu.net>
28385
28386         test-dup2: reduce dependencies
28387         * modules/cloexec (Configure.ac): Set witness.
28388         * modules/dup2-tests (Depends-on): Drop cloexec.
28389         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28390         not present.
28391         Suggested by Bruno Haible.
28392
28393 2009-12-26  Bruno Haible  <bruno@clisp.org>
28394
28395         Remove an unneeded dependency.
28396         * modules/fseterr (Depends-on): Remove dup2.
28397
28398 2009-12-26  Eric Blake  <ebb9@byu.net>
28399
28400         tests: use macros.h in more places
28401         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28402         (ASSERT_STREAM): Provide default of stderr.
28403         * tests/test-dirent-safer.c: Include macros.h, using alternate
28404         stream for assertions.
28405         * tests/test-dup-safer.c: Likewise.
28406         * tests/test-freopen-safer.c: Likewise.
28407         * tests/test-getopt.c: Likewise.
28408         * tests/test-openat-safer.c: Likewise.
28409         * tests/test-pipe.c: Likewise.
28410         * tests/test-popen-safer.c: Likewise.
28411         * modules/dirent-safer-tests (Files): Include macros.h.
28412         * modules/unistd-safer-tests (Files): Likewise.
28413         * modules/freopen-safer-tests (Files): Likewise.
28414         * modules/getopt-posix-tests (Files): Likewise.
28415         * modules/openat-safer-tests (Files): Likewise.
28416         * modules/pipe-tests (Files): Likewise.
28417
28418 2009-12-26  Bruno Haible  <bruno@clisp.org>
28419
28420         javacomp: Portability fix.
28421         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28422         that it also works on Solaris.
28423
28424 2009-12-26  Bruno Haible  <bruno@clisp.org>
28425
28426         localename: Fix storage allocation of gl_locale_name_thread's result.
28427         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28428         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28429         all platforms that have 'uselocale'.
28430         (gl_locale_name_thread_unsafe): New function, extracted from
28431         gl_locale_name_thread.
28432         (gl_locale_name_thread): Call struniq on all platforms that have
28433         'uselocale'.
28434         * tests/test-localename.c (test_locale_name_thread): Check that the
28435         resulting strings are permanently allocated.
28436         * modules/localename-tests (Depends-on): Add strdup.
28437
28438 2009-12-26  Bruno Haible  <bruno@clisp.org>
28439
28440         * tests/test-localename.c (categories): Fill in the strings.
28441
28442 2009-12-26  Jim Meyering  <meyering@redhat.com>
28443
28444         isdir: complete the removal of m4/isdir.m4
28445         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28446
28447         isdir: clean up, since at least grep still uses it
28448         * lib/isdir.c: Include "isdir.h".
28449         (S_ISDIR): Remove now-unneeded definition.
28450         * modules/isdir (Files): Add lib/isdir.h.
28451         * lib/isdir.h: New file, with declaration.
28452         * m4/isdir.m4: Remove file -- unneeded.
28453
28454 2009-12-25  Bruno Haible  <bruno@clisp.org>
28455
28456         selinux-h: Make generated .h files standalone.
28457         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28458         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28459         * lib/se-selinux.in.h: Likewise.
28460         * modules/selinux-h (Depends-on): Add unused-parameter.
28461         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28462         selinux/selinux.h and selinux/context.h.
28463         Suggested by Eric Blake.
28464
28465 2009-12-25  Bruno Haible  <bruno@clisp.org>
28466
28467         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28468         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28469         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28470         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28471         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28472
28473 2009-12-24  Bruno Haible  <bruno@clisp.org>
28474
28475         openat: Fix warning.
28476         * lib/openat-proc.c: Include <unistd.h>.
28477
28478 2009-12-24  Bruno Haible  <bruno@clisp.org>
28479
28480         New module 'unused-parameter'.
28481         * build-aux/unused-parameter.h: New file, extracted from earlier
28482         gnulib-common.m4.
28483         * modules/unused-parameter: New file.
28484         * lib/unistr.h: Include unused-parameter.h.
28485         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28486         _GL_UNUSED.
28487         * modules/unistr/base (Depends-on): Add unused-parameter.
28488
28489 2009-12-24  Bruno Haible  <bruno@clisp.org>
28490
28491         Add missing dependencies to 'extensions' module.
28492         * m4/extensions.m4: Add comment.
28493         * modules/accept4 (Depends-on): Add extensions.
28494         * modules/dup3 (Depends-on): Likewise.
28495         * modules/fcntl (Depends-on): Likewise.
28496         * modules/futimens (Depends-on): Likewise.
28497         * modules/mknod (Depends-on): Likewise.
28498         * modules/pipe2 (Depends-on): Likewise.
28499         * modules/stat-time (Depends-on): Likewise.
28500         * modules/strcasestr-simple (Depends-on): Likewise.
28501         * modules/strsignal (Depends-on): Likewise.
28502         * modules/utimensat (Depends-on): Likewise.
28503         * modules/localcharset (Depends-on): Likewise. Needed because of
28504         gl_FCNTL_O_FLAGS.
28505         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28506         AC_TYPE_MBSTATE_T.
28507         * modules/wcsnrtombs (Depends-on): Likewise.
28508         * modules/wcsrtombs (Depends-on): Likewise.
28509
28510 2009-12-24  Bruno Haible  <bruno@clisp.org>
28511
28512         binary-io: Avoid gcc warning due to SET_BINARY.
28513         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28514         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28515
28516 2009-12-24  Bruno Haible  <bruno@clisp.org>
28517
28518         Avoid future namespace pollution on glibc systems.
28519         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28520         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28521         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28522         glibc systems.
28523
28524 2009-12-24  Bruno Haible  <bruno@clisp.org>
28525
28526         Refactor common macros used in tests.
28527         * tests/macros.h: New file.
28528         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28529         and/or <stdlib.h>, if appropriate.
28530         (ASSERT, SIZEOF): Remove macros.
28531         * tests/test-areadlink-with-size.c: Likewise.
28532         * tests/test-areadlinkat.c: Likewise.
28533         * tests/test-areadlinkat-with-size.c: Likewise.
28534         * tests/test-argmatch.c: Likewise.
28535         * tests/test-argv-iter.c: Likewise.
28536         * tests/test-array-mergesort.c: Likewise.
28537         * tests/test-array_list.c: Likewise.
28538         * tests/test-array_oset.c: Likewise.
28539         * tests/test-avltree_list.c: Likewise.
28540         * tests/test-avltree_oset.c: Likewise.
28541         * tests/test-avltreehash_list.c: Likewise.
28542         * tests/test-base64.c: Likewise.
28543         * tests/test-binary-io.c: Likewise.
28544         * tests/test-bitrotate.c: Likewise.
28545         * tests/test-btowc.c: Likewise.
28546         * tests/test-byteswap.c: Likewise.
28547         * tests/test-c-ctype.c: Likewise.
28548         * tests/test-c-stack.c: Likewise.
28549         * tests/test-c-strcasecmp.c: Likewise.
28550         * tests/test-c-strcasestr.c: Likewise.
28551         * tests/test-c-strncasecmp.c: Likewise.
28552         * tests/test-c-strstr.c: Likewise.
28553         * tests/test-canonicalize-lgpl.c: Likewise.
28554         * tests/test-canonicalize.c: Likewise.
28555         * tests/test-carray_list.c: Likewise.
28556         * tests/test-ceilf1.c: Likewise.
28557         * tests/test-ceilf2.c: Likewise.
28558         * tests/test-ceill.c: Likewise.
28559         * tests/test-chown.c: Likewise.
28560         * tests/test-cloexec.c: Likewise.
28561         * tests/test-copy-acl.c: Likewise.
28562         * tests/test-copy-file.c: Likewise.
28563         * tests/test-count-one-bits.c: Likewise.
28564         * tests/test-dprintf-posix.c: Likewise.
28565         * tests/test-dup2.c: Likewise.
28566         * tests/test-dup3.c: Likewise.
28567         * tests/test-duplocale.c: Likewise.
28568         * tests/test-fbufmode.c: Likewise.
28569         * tests/test-fchdir.c: Likewise.
28570         * tests/test-fchownat.c: Likewise.
28571         * tests/test-fcntl-safer.c: Likewise.
28572         * tests/test-fcntl.c: Likewise.
28573         * tests/test-fdopendir.c: Likewise.
28574         * tests/test-fdutimensat.c: Likewise.
28575         * tests/test-fflush2.c: Likewise.
28576         * tests/test-file-has-acl.c: Likewise.
28577         * tests/test-filevercmp.c: Likewise.
28578         * tests/test-flock.c: Likewise.
28579         * tests/test-floorf1.c: Likewise.
28580         * tests/test-floorf2.c: Likewise.
28581         * tests/test-floorl.c: Likewise.
28582         * tests/test-fnmatch.c: Likewise.
28583         * tests/test-fopen.h: Likewise.
28584         * tests/test-fpending.c: Likewise.
28585         * tests/test-fprintf-posix.c: Likewise.
28586         * tests/test-fpurge.c: Likewise.
28587         * tests/test-freadable.c: Likewise.
28588         * tests/test-freadahead.c: Likewise.
28589         * tests/test-freading.c: Likewise.
28590         * tests/test-freadptr.c: Likewise.
28591         * tests/test-freadptr2.c: Likewise.
28592         * tests/test-freadseek.c: Likewise.
28593         * tests/test-freopen.c: Likewise.
28594         * tests/test-frexp.c: Likewise.
28595         * tests/test-frexpl.c: Likewise.
28596         * tests/test-fseek.c: Likewise.
28597         * tests/test-fseeko.c: Likewise.
28598         * tests/test-fstatat.c: Likewise.
28599         * tests/test-fstrcmp.c: Likewise.
28600         * tests/test-fsync.c: Likewise.
28601         * tests/test-ftell.c: Likewise.
28602         * tests/test-ftello.c: Likewise.
28603         * tests/test-func.c: Likewise.
28604         * tests/test-futimens.c: Likewise.
28605         * tests/test-fwritable.c: Likewise.
28606         * tests/test-fwriting.c: Likewise.
28607         * tests/test-getcwd.c: Likewise.
28608         * tests/test-getdate.c: Likewise.
28609         * tests/test-getdelim.c: Likewise.
28610         * tests/test-getdtablesize.c: Likewise.
28611         * tests/test-getgroups.c: Likewise.
28612         * tests/test-getline.c: Likewise.
28613         * tests/test-getndelim2.c: Likewise.
28614         * tests/test-glob.c: Likewise.
28615         * tests/test-hash.c: Likewise.
28616         * tests/test-i-ring.c: Likewise.
28617         * tests/test-iconv-utf.c: Likewise.
28618         * tests/test-iconv.c: Likewise.
28619         * tests/test-idpriv-drop.c: Likewise.
28620         * tests/test-idpriv-droptemp.c: Likewise.
28621         * tests/test-inet_ntop.c: Likewise.
28622         * tests/test-inet_pton.c: Likewise.
28623         * tests/test-isblank.c: Likewise.
28624         * tests/test-isfinite.c: Likewise.
28625         * tests/test-isinf.c: Likewise.
28626         * tests/test-isnan.c: Likewise.
28627         * tests/test-isnand.h: Likewise.
28628         * tests/test-isnanf.h: Likewise.
28629         * tests/test-isnanl.h: Likewise.
28630         * tests/test-lchown.c: Likewise.
28631         * tests/test-ldexpl.c: Likewise.
28632         * tests/test-link.c: Likewise.
28633         * tests/test-linkat.c: Likewise.
28634         * tests/test-linked_list.c: Likewise.
28635         * tests/test-linkedhash_list.c: Likewise.
28636         * tests/test-localename.c: Likewise.
28637         * tests/test-lseek.c: Likewise.
28638         * tests/test-lstat.c: Likewise.
28639         * tests/test-mbmemcasecmp.c: Likewise.
28640         * tests/test-mbmemcasecoll.c: Likewise.
28641         * tests/test-mbrtowc.c: Likewise.
28642         * tests/test-mbscasecmp.c: Likewise.
28643         * tests/test-mbscasestr1.c: Likewise.
28644         * tests/test-mbscasestr2.c: Likewise.
28645         * tests/test-mbscasestr3.c: Likewise.
28646         * tests/test-mbscasestr4.c: Likewise.
28647         * tests/test-mbschr.c: Likewise.
28648         * tests/test-mbscspn.c: Likewise.
28649         * tests/test-mbsinit.c: Likewise.
28650         * tests/test-mbsncasecmp.c: Likewise.
28651         * tests/test-mbsnrtowcs.c: Likewise.
28652         * tests/test-mbspbrk.c: Likewise.
28653         * tests/test-mbspcasecmp.c: Likewise.
28654         * tests/test-mbsrchr.c: Likewise.
28655         * tests/test-mbsrtowcs.c: Likewise.
28656         * tests/test-mbsspn.c: Likewise.
28657         * tests/test-mbsstr1.c: Likewise.
28658         * tests/test-mbsstr2.c: Likewise.
28659         * tests/test-mbsstr3.c: Likewise.
28660         * tests/test-memchr.c: Likewise.
28661         * tests/test-memchr2.c: Likewise.
28662         * tests/test-memcmp.c: Likewise.
28663         * tests/test-memmem.c: Likewise.
28664         * tests/test-memrchr.c: Likewise.
28665         * tests/test-mkdir.c: Likewise.
28666         * tests/test-mkdirat.c: Likewise.
28667         * tests/test-mkfifo.c: Likewise.
28668         * tests/test-mkfifoat.c: Likewise.
28669         * tests/test-mknod.c: Likewise.
28670         * tests/test-nanosleep.c: Likewise.
28671         * tests/test-nl_langinfo.c: Likewise.
28672         * tests/test-obstack-printf.c: Likewise.
28673         * tests/test-open.c: Likewise.
28674         * tests/test-openat.c: Likewise.
28675         * tests/test-pipe-filter-gi1.c: Likewise.
28676         * tests/test-pipe-filter-gi2-main.c: Likewise.
28677         * tests/test-pipe-filter-ii1.c: Likewise.
28678         * tests/test-pipe-filter-ii2-main.c: Likewise.
28679         * tests/test-pipe2.c: Likewise.
28680         * tests/test-popen.h: Likewise.
28681         * tests/test-posixtm.c: Likewise.
28682         * tests/test-pread.c: Likewise.
28683         * tests/test-printf-frexp.c: Likewise.
28684         * tests/test-printf-frexpl.c: Likewise.
28685         * tests/test-printf-posix.c: Likewise.
28686         * tests/test-priv-set.c: Likewise.
28687         * tests/test-quotearg.c: Likewise.
28688         * tests/test-random_r.c: Likewise.
28689         * tests/test-rawmemchr.c: Likewise.
28690         * tests/test-rbtree_list.c: Likewise.
28691         * tests/test-rbtree_oset.c: Likewise.
28692         * tests/test-rbtreehash_list.c: Likewise.
28693         * tests/test-readlink.c: Likewise.
28694         * tests/test-remove.c: Likewise.
28695         * tests/test-rename.c: Likewise.
28696         * tests/test-renameat.c: Likewise.
28697         * tests/test-rmdir.c: Likewise.
28698         * tests/test-round1.c: Likewise.
28699         * tests/test-roundf1.c: Likewise.
28700         * tests/test-roundl.c: Likewise.
28701         * tests/test-safe-alloc.c: Likewise.
28702         * tests/test-sameacls.c: Likewise.
28703         * tests/test-set-mode-acl.c: Likewise.
28704         * tests/test-setenv.c: Likewise.
28705         * tests/test-sigaction.c: Likewise.
28706         * tests/test-signbit.c: Likewise.
28707         * tests/test-sleep.c: Likewise.
28708         * tests/test-snprintf-posix.c: Likewise.
28709         * tests/test-snprintf.c: Likewise.
28710         * tests/test-sprintf-posix.c: Likewise.
28711         * tests/test-stat-time.c: Likewise.
28712         * tests/test-stat.c: Likewise.
28713         * tests/test-strcasestr.c: Likewise.
28714         * tests/test-strchrnul.c: Likewise.
28715         * tests/test-strerror.c: Likewise.
28716         * tests/test-striconv.c: Likewise.
28717         * tests/test-striconveh.c: Likewise.
28718         * tests/test-striconveha.c: Likewise.
28719         * tests/test-strsignal.c: Likewise.
28720         * tests/test-strstr.c: Likewise.
28721         * tests/test-strtod.c: Likewise.
28722         * tests/test-strverscmp.c: Likewise.
28723         * tests/test-symlink.c: Likewise.
28724         * tests/test-symlinkat.c: Likewise.
28725         * tests/test-trunc1.c: Likewise.
28726         * tests/test-trunc2.c: Likewise.
28727         * tests/test-truncf1.c: Likewise.
28728         * tests/test-truncf2.c: Likewise.
28729         * tests/test-truncl.c: Likewise.
28730         * tests/test-uname.c: Likewise.
28731         * tests/test-unlink.c: Likewise.
28732         * tests/test-unlinkat.c: Likewise.
28733         * tests/test-unsetenv.c: Likewise.
28734         * tests/test-usleep.c: Likewise.
28735         * tests/test-utimens.c: Likewise.
28736         * tests/test-utimensat.c: Likewise.
28737         * tests/test-vasnprintf-posix.c: Likewise.
28738         * tests/test-vasnprintf-posix2.c: Likewise.
28739         * tests/test-vasnprintf.c: Likewise.
28740         * tests/test-vasprintf-posix.c: Likewise.
28741         * tests/test-vasprintf.c: Likewise.
28742         * tests/test-vdprintf-posix.c: Likewise.
28743         * tests/test-vfprintf-posix.c: Likewise.
28744         * tests/test-vprintf-posix.c: Likewise.
28745         * tests/test-vsnprintf-posix.c: Likewise.
28746         * tests/test-vsnprintf.c: Likewise.
28747         * tests/test-vsprintf-posix.c: Likewise.
28748         * tests/test-wcrtomb.c: Likewise.
28749         * tests/test-wcsnrtombs.c: Likewise.
28750         * tests/test-wcsrtombs.c: Likewise.
28751         * tests/test-wctype.c: Likewise.
28752         * tests/test-wcwidth.c: Likewise.
28753         * tests/test-xfprintf-posix.c: Likewise.
28754         * tests/test-xmemdup0.c: Likewise.
28755         * tests/test-xprintf-posix.c: Likewise.
28756         * tests/test-xvasprintf.c: Likewise.
28757         * tests/unicase/test-locale-language.c: Likewise.
28758         * tests/unicase/test-mapping-part1.h: Likewise.
28759         * tests/unicase/test-predicate-part1.h: Likewise.
28760         * tests/unicase/test-u8-casecmp.c: Likewise.
28761         * tests/unicase/test-u8-casecoll.c: Likewise.
28762         * tests/unicase/test-u8-casefold.c: Likewise.
28763         * tests/unicase/test-u8-is-cased.c: Likewise.
28764         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28765         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28766         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28767         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28768         * tests/unicase/test-u8-tolower.c: Likewise.
28769         * tests/unicase/test-u8-totitle.c: Likewise.
28770         * tests/unicase/test-u8-toupper.c: Likewise.
28771         * tests/unicase/test-u16-casecmp.c: Likewise.
28772         * tests/unicase/test-u16-casecoll.c: Likewise.
28773         * tests/unicase/test-u16-casefold.c: Likewise.
28774         * tests/unicase/test-u16-is-cased.c: Likewise.
28775         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28776         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28777         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28778         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28779         * tests/unicase/test-u16-tolower.c: Likewise.
28780         * tests/unicase/test-u16-totitle.c: Likewise.
28781         * tests/unicase/test-u16-toupper.c: Likewise.
28782         * tests/unicase/test-u32-casecmp.c: Likewise.
28783         * tests/unicase/test-u32-casecoll.c: Likewise.
28784         * tests/unicase/test-u32-casefold.c: Likewise.
28785         * tests/unicase/test-u32-is-cased.c: Likewise.
28786         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28787         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28788         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28789         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28790         * tests/unicase/test-u32-tolower.c: Likewise.
28791         * tests/unicase/test-u32-totitle.c: Likewise.
28792         * tests/unicase/test-u32-toupper.c: Likewise.
28793         * tests/unicase/test-ulc-casecmp.c: Likewise.
28794         * tests/unicase/test-ulc-casecoll.c: Likewise.
28795         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28796         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28797         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28798         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28799         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28800         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28801         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28802         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28803         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28804         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28805         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28806         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28807         * tests/unictype/test-bidi_byname.c: Likewise.
28808         * tests/unictype/test-bidi_name.c: Likewise.
28809         * tests/unictype/test-bidi_of.c: Likewise.
28810         * tests/unictype/test-bidi_test.c: Likewise.
28811         * tests/unictype/test-block_list.c: Likewise.
28812         * tests/unictype/test-block_of.c: Likewise.
28813         * tests/unictype/test-block_test.c: Likewise.
28814         * tests/unictype/test-categ_and.c: Likewise.
28815         * tests/unictype/test-categ_and_not.c: Likewise.
28816         * tests/unictype/test-categ_byname.c: Likewise.
28817         * tests/unictype/test-categ_name.c: Likewise.
28818         * tests/unictype/test-categ_none.c: Likewise.
28819         * tests/unictype/test-categ_of.c: Likewise.
28820         * tests/unictype/test-categ_or.c: Likewise.
28821         * tests/unictype/test-categ_test_withtable.c: Likewise.
28822         * tests/unictype/test-combining.c: Likewise.
28823         * tests/unictype/test-decdigit.c: Likewise.
28824         * tests/unictype/test-digit.c: Likewise.
28825         * tests/unictype/test-mirror.c: Likewise.
28826         * tests/unictype/test-numeric.c: Likewise.
28827         * tests/unictype/test-pr_byname.c: Likewise.
28828         * tests/unictype/test-pr_test.c: Likewise.
28829         * tests/unictype/test-predicate-part1.h: Likewise.
28830         * tests/unictype/test-scripts.c: Likewise.
28831         * tests/unictype/test-sy_c_ident.c: Likewise.
28832         * tests/unictype/test-sy_java_ident.c: Likewise.
28833         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28834         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28835         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28836         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28837         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28838         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28839         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28840         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28841         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28842         * tests/uninorm/test-compat-decomposition.c: Likewise.
28843         * tests/uninorm/test-composition.c: Likewise.
28844         * tests/uninorm/test-decomposing-form.c: Likewise.
28845         * tests/uninorm/test-decomposition.c: Likewise.
28846         * tests/uninorm/test-u8-nfc.c: Likewise.
28847         * tests/uninorm/test-u8-nfd.c: Likewise.
28848         * tests/uninorm/test-u8-nfkc.c: Likewise.
28849         * tests/uninorm/test-u8-nfkd.c: Likewise.
28850         * tests/uninorm/test-u8-normcmp.c: Likewise.
28851         * tests/uninorm/test-u8-normcoll.c: Likewise.
28852         * tests/uninorm/test-u16-nfc.c: Likewise.
28853         * tests/uninorm/test-u16-nfd.c: Likewise.
28854         * tests/uninorm/test-u16-nfkc.c: Likewise.
28855         * tests/uninorm/test-u16-nfkd.c: Likewise.
28856         * tests/uninorm/test-u16-normcmp.c: Likewise.
28857         * tests/uninorm/test-u16-normcoll.c: Likewise.
28858         * tests/uninorm/test-u32-nfc.c: Likewise.
28859         * tests/uninorm/test-u32-nfd.c: Likewise.
28860         * tests/uninorm/test-u32-nfkc.c: Likewise.
28861         * tests/uninorm/test-u32-nfkd.c: Likewise.
28862         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28863         * tests/uninorm/test-u32-normcmp.c: Likewise.
28864         * tests/uninorm/test-u32-normcoll.c: Likewise.
28865         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28866         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28867         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28868         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28869         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28870         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28871         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28872         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28873         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28874         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28875         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28876         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28877         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28878         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28879         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28880         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28881         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28882         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28883         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28884         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28885         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28886         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28887         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28888         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28889         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28890         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28891         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28892         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28893         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28894         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
28895         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
28896         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
28897         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
28898         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28899         * tests/uniwidth/test-u8-width.c: Likewise.
28900         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28901         * tests/uniwidth/test-u16-width.c: Likewise.
28902         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28903         * tests/uniwidth/test-u32-width.c: Likewise.
28904         * tests/uniwidth/test-uc_width.c: Likewise.
28905         * tests/uniwidth/test-uc_width2.c: Likewise.
28906         * modules/acl-tests (Files): Add tests/macros.h.
28907         * modules/areadlink-tests (Files): Likewise.
28908         * modules/areadlink-with-size-tests (Files): Likewise.
28909         * modules/areadlinkat-tests (Files): Likewise.
28910         * modules/areadlinkat-with-size-tests (Files): Likewise.
28911         * modules/argmatch-tests (Files): Likewise.
28912         * modules/argv-iter-tests (Files): Likewise.
28913         * modules/array-list-tests (Files): Likewise.
28914         * modules/array-mergesort-tests (Files): Likewise.
28915         * modules/array-oset-tests (Files): Likewise.
28916         * modules/avltree-list-tests (Files): Likewise.
28917         * modules/avltree-oset-tests (Files): Likewise.
28918         * modules/avltreehash-list-tests (Files): Likewise.
28919         * modules/base64-tests (Files): Likewise.
28920         * modules/binary-io-tests (Files): Likewise.
28921         * modules/bitrotate-tests (Files): Likewise.
28922         * modules/btowc-tests (Files): Likewise.
28923         * modules/byteswap-tests (Files): Likewise.
28924         * modules/c-ctype-tests (Files): Likewise.
28925         * modules/c-stack-tests (Files): Likewise.
28926         * modules/c-strcase-tests (Files): Likewise.
28927         * modules/c-strcasestr-tests (Files): Likewise.
28928         * modules/c-strstr-tests (Files): Likewise.
28929         * modules/canonicalize-lgpl-tests (Files): Likewise.
28930         * modules/canonicalize-tests (Files): Likewise.
28931         * modules/carray-list-tests (Files): Likewise.
28932         * modules/ceilf-tests (Files): Likewise.
28933         * modules/ceill-tests (Files): Likewise.
28934         * modules/chown-tests (Files): Likewise.
28935         * modules/cloexec-tests (Files): Likewise.
28936         * modules/copy-file-tests (Files): Likewise.
28937         * modules/count-one-bits-tests (Files): Likewise.
28938         * modules/dprintf-posix-tests (Files): Likewise.
28939         * modules/dup2-tests (Files): Likewise.
28940         * modules/dup3-tests (Files): Likewise.
28941         * modules/duplocale-tests (Files): Likewise.
28942         * modules/fbufmode-tests (Files): Likewise.
28943         * modules/fchdir-tests (Files): Likewise.
28944         * modules/fcntl-safer-tests (Files): Likewise.
28945         * modules/fcntl-tests (Files): Likewise.
28946         * modules/fdopendir-tests (Files): Likewise.
28947         * modules/fdutimensat-tests (Files): Likewise.
28948         * modules/fflush-tests (Files): Likewise.
28949         * modules/filevercmp-tests (Files): Likewise.
28950         * modules/flock-tests (Files): Likewise.
28951         * modules/floorf-tests (Files): Likewise.
28952         * modules/floorl-tests (Files): Likewise.
28953         * modules/fnmatch-tests (Files): Likewise.
28954         * modules/fopen-safer-tests (Files): Likewise.
28955         * modules/fopen-tests (Files): Likewise.
28956         * modules/fpending-tests (Files): Likewise.
28957         * modules/fprintf-posix-tests (Files): Likewise.
28958         * modules/fpurge-tests (Files): Likewise.
28959         * modules/freadable-tests (Files): Likewise.
28960         * modules/freadahead-tests (Files): Likewise.
28961         * modules/freading-tests (Files): Likewise.
28962         * modules/freadptr-tests (Files): Likewise.
28963         * modules/freadseek-tests (Files): Likewise.
28964         * modules/freopen-tests (Files): Likewise.
28965         * modules/frexp-nolibm-tests (Files): Likewise.
28966         * modules/frexp-tests (Files): Likewise.
28967         * modules/frexpl-nolibm-tests (Files): Likewise.
28968         * modules/frexpl-tests (Files): Likewise.
28969         * modules/fseek-tests (Files): Likewise.
28970         * modules/fseeko-tests (Files): Likewise.
28971         * modules/fstrcmp-tests (Files): Likewise.
28972         * modules/fsync-tests (Files): Likewise.
28973         * modules/ftell-tests (Files): Likewise.
28974         * modules/ftello-tests (Files): Likewise.
28975         * modules/func-tests (Files): Likewise.
28976         * modules/futimens-tests (Files): Likewise.
28977         * modules/fwritable-tests (Files): Likewise.
28978         * modules/fwriting-tests (Files): Likewise.
28979         * modules/getcwd-tests (Files): Likewise.
28980         * modules/getdate-tests (Files): Likewise.
28981         * modules/getdelim-tests (Files): Likewise.
28982         * modules/getdtablesize-tests (Files): Likewise.
28983         * modules/getgroups-tests (Files): Likewise.
28984         * modules/getline-tests (Files): Likewise.
28985         * modules/getndelim2-tests (Files): Likewise.
28986         * modules/glob-tests (Files): Likewise.
28987         * modules/hash-tests (Files): Likewise.
28988         * modules/i-ring-tests (Files): Likewise.
28989         * modules/iconv-tests (Files): Likewise.
28990         * modules/iconv_open-utf-tests (Files): Likewise.
28991         * modules/idpriv-drop-tests (Files): Likewise.
28992         * modules/idpriv-droptemp-tests (Files): Likewise.
28993         * modules/inet_ntop-tests (Files): Likewise.
28994         * modules/inet_pton-tests (Files): Likewise.
28995         * modules/isblank-tests (Files): Likewise.
28996         * modules/isfinite-tests (Files): Likewise.
28997         * modules/isinf-tests (Files): Likewise.
28998         * modules/isnan-tests (Files): Likewise.
28999         * modules/isnand-nolibm-tests (Files): Likewise.
29000         * modules/isnand-tests (Files): Likewise.
29001         * modules/isnanf-nolibm-tests (Files): Likewise.
29002         * modules/isnanf-tests (Files): Likewise.
29003         * modules/isnanl-nolibm-tests (Files): Likewise.
29004         * modules/isnanl-tests (Files): Likewise.
29005         * modules/lchown-tests (Files): Likewise.
29006         * modules/ldexpl-tests (Files): Likewise.
29007         * modules/link-tests (Files): Likewise.
29008         * modules/linkat-tests (Files): Likewise.
29009         * modules/linked-list-tests (Files): Likewise.
29010         * modules/linkedhash-list-tests (Files): Likewise.
29011         * modules/localename-tests (Files): Likewise.
29012         * modules/lseek-tests (Files): Likewise.
29013         * modules/lstat-tests (Files): Likewise.
29014         * modules/mbmemcasecmp-tests (Files): Likewise.
29015         * modules/mbmemcasecoll-tests (Files): Likewise.
29016         * modules/mbrtowc-tests (Files): Likewise.
29017         * modules/mbscasecmp-tests (Files): Likewise.
29018         * modules/mbscasestr-tests (Files): Likewise.
29019         * modules/mbschr-tests (Files): Likewise.
29020         * modules/mbscspn-tests (Files): Likewise.
29021         * modules/mbsinit-tests (Files): Likewise.
29022         * modules/mbsncasecmp-tests (Files): Likewise.
29023         * modules/mbsnrtowcs-tests (Files): Likewise.
29024         * modules/mbspbrk-tests (Files): Likewise.
29025         * modules/mbspcasecmp-tests (Files): Likewise.
29026         * modules/mbsrchr-tests (Files): Likewise.
29027         * modules/mbsrtowcs-tests (Files): Likewise.
29028         * modules/mbsspn-tests (Files): Likewise.
29029         * modules/mbsstr-tests (Files): Likewise.
29030         * modules/memchr-tests (Files): Likewise.
29031         * modules/memchr2-tests (Files): Likewise.
29032         * modules/memcmp-tests (Files): Likewise.
29033         * modules/memmem-tests (Files): Likewise.
29034         * modules/memrchr-tests (Files): Likewise.
29035         * modules/mkdir-tests (Files): Likewise.
29036         * modules/mkfifo-tests (Files): Likewise.
29037         * modules/mkfifoat-tests (Files): Likewise.
29038         * modules/mknod-tests (Files): Likewise.
29039         * modules/nanosleep-tests (Files): Likewise.
29040         * modules/nl_langinfo-tests (Files): Likewise.
29041         * modules/obstack-printf-tests (Files): Likewise.
29042         * modules/open-tests (Files): Likewise.
29043         * modules/openat-tests (Files): Likewise.
29044         * modules/pipe-filter-gi-tests (Files): Likewise.
29045         * modules/pipe-filter-ii-tests (Files): Likewise.
29046         * modules/pipe2-tests (Files): Likewise.
29047         * modules/popen-safer-tests (Files): Likewise.
29048         * modules/popen-tests (Files): Likewise.
29049         * modules/posixtm-tests (Files): Likewise.
29050         * modules/pread-tests (Files): Likewise.
29051         * modules/printf-frexp-tests (Files): Likewise.
29052         * modules/printf-frexpl-tests (Files): Likewise.
29053         * modules/printf-posix-tests (Files): Likewise.
29054         * modules/priv-set-tests (Files): Likewise.
29055         * modules/quotearg-tests (Files): Likewise.
29056         * modules/random_r-tests (Files): Likewise.
29057         * modules/rawmemchr-tests (Files): Likewise.
29058         * modules/rbtree-list-tests (Files): Likewise.
29059         * modules/rbtree-oset-tests (Files): Likewise.
29060         * modules/rbtreehash-list-tests (Files): Likewise.
29061         * modules/readlink-tests (Files): Likewise.
29062         * modules/remove-tests (Files): Likewise.
29063         * modules/rename-tests (Files): Likewise.
29064         * modules/renameat-tests (Files): Likewise.
29065         * modules/rmdir-tests (Files): Likewise.
29066         * modules/round-tests (Files): Likewise.
29067         * modules/roundf-tests (Files): Likewise.
29068         * modules/roundl-tests (Files): Likewise.
29069         * modules/safe-alloc-tests (Files): Likewise.
29070         * modules/setenv-tests (Files): Likewise.
29071         * modules/sigaction-tests (Files): Likewise.
29072         * modules/signbit-tests (Files): Likewise.
29073         * modules/sleep-tests (Files): Likewise.
29074         * modules/snprintf-posix-tests (Files): Likewise.
29075         * modules/snprintf-tests (Files): Likewise.
29076         * modules/sprintf-posix-tests (Files): Likewise.
29077         * modules/stat-tests (Files): Likewise.
29078         * modules/stat-time-tests (Files): Likewise.
29079         * modules/strcasestr-tests (Files): Likewise.
29080         * modules/strchrnul-tests (Files): Likewise.
29081         * modules/strerror-tests (Files): Likewise.
29082         * modules/striconv-tests (Files): Likewise.
29083         * modules/striconveh-tests (Files): Likewise.
29084         * modules/striconveha-tests (Files): Likewise.
29085         * modules/strsignal-tests (Files): Likewise.
29086         * modules/strstr-tests (Files): Likewise.
29087         * modules/strtod-tests (Files): Likewise.
29088         * modules/strverscmp-tests (Files): Likewise.
29089         * modules/symlink-tests (Files): Likewise.
29090         * modules/symlinkat-tests (Files): Likewise.
29091         * modules/trunc-tests (Files): Likewise.
29092         * modules/truncf-tests (Files): Likewise.
29093         * modules/truncl-tests (Files): Likewise.
29094         * modules/uname-tests (Files): Likewise.
29095         * modules/unicase/cased-tests (Files): Likewise.
29096         * modules/unicase/ignorable-tests (Files): Likewise.
29097         * modules/unicase/locale-language-tests (Files): Likewise.
29098         * modules/unicase/tolower-tests (Files): Likewise.
29099         * modules/unicase/totitle-tests (Files): Likewise.
29100         * modules/unicase/toupper-tests (Files): Likewise.
29101         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29102         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29103         * modules/unicase/u8-casefold-tests (Files): Likewise.
29104         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29105         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29106         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29107         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29108         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29109         * modules/unicase/u8-tolower-tests (Files): Likewise.
29110         * modules/unicase/u8-totitle-tests (Files): Likewise.
29111         * modules/unicase/u8-toupper-tests (Files): Likewise.
29112         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29113         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29114         * modules/unicase/u16-casefold-tests (Files): Likewise.
29115         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29116         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29117         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29118         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29119         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29120         * modules/unicase/u16-tolower-tests (Files): Likewise.
29121         * modules/unicase/u16-totitle-tests (Files): Likewise.
29122         * modules/unicase/u16-toupper-tests (Files): Likewise.
29123         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29124         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29125         * modules/unicase/u32-casefold-tests (Files): Likewise.
29126         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29127         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29128         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29129         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29130         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29131         * modules/unicase/u32-tolower-tests (Files): Likewise.
29132         * modules/unicase/u32-totitle-tests (Files): Likewise.
29133         * modules/unicase/u32-toupper-tests (Files): Likewise.
29134         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29135         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29136         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29137         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29138         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29139         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29140         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29141         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29142         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29143         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29144         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29145         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29146         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29147         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29148         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29149         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29150         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29151         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29152         * modules/unictype/block-list-tests (Files): Likewise.
29153         * modules/unictype/block-of-tests (Files): Likewise.
29154         * modules/unictype/block-test-tests (Files): Likewise.
29155         * modules/unictype/category-C-tests (Files): Likewise.
29156         * modules/unictype/category-Cc-tests (Files): Likewise.
29157         * modules/unictype/category-Cf-tests (Files): Likewise.
29158         * modules/unictype/category-Cn-tests (Files): Likewise.
29159         * modules/unictype/category-Co-tests (Files): Likewise.
29160         * modules/unictype/category-Cs-tests (Files): Likewise.
29161         * modules/unictype/category-L-tests (Files): Likewise.
29162         * modules/unictype/category-Ll-tests (Files): Likewise.
29163         * modules/unictype/category-Lm-tests (Files): Likewise.
29164         * modules/unictype/category-Lo-tests (Files): Likewise.
29165         * modules/unictype/category-Lt-tests (Files): Likewise.
29166         * modules/unictype/category-Lu-tests (Files): Likewise.
29167         * modules/unictype/category-M-tests (Files): Likewise.
29168         * modules/unictype/category-Mc-tests (Files): Likewise.
29169         * modules/unictype/category-Me-tests (Files): Likewise.
29170         * modules/unictype/category-Mn-tests (Files): Likewise.
29171         * modules/unictype/category-N-tests (Files): Likewise.
29172         * modules/unictype/category-Nd-tests (Files): Likewise.
29173         * modules/unictype/category-Nl-tests (Files): Likewise.
29174         * modules/unictype/category-No-tests (Files): Likewise.
29175         * modules/unictype/category-P-tests (Files): Likewise.
29176         * modules/unictype/category-Pc-tests (Files): Likewise.
29177         * modules/unictype/category-Pd-tests (Files): Likewise.
29178         * modules/unictype/category-Pe-tests (Files): Likewise.
29179         * modules/unictype/category-Pf-tests (Files): Likewise.
29180         * modules/unictype/category-Pi-tests (Files): Likewise.
29181         * modules/unictype/category-Po-tests (Files): Likewise.
29182         * modules/unictype/category-Ps-tests (Files): Likewise.
29183         * modules/unictype/category-S-tests (Files): Likewise.
29184         * modules/unictype/category-Sc-tests (Files): Likewise.
29185         * modules/unictype/category-Sk-tests (Files): Likewise.
29186         * modules/unictype/category-Sm-tests (Files): Likewise.
29187         * modules/unictype/category-So-tests (Files): Likewise.
29188         * modules/unictype/category-Z-tests (Files): Likewise.
29189         * modules/unictype/category-Zl-tests (Files): Likewise.
29190         * modules/unictype/category-Zp-tests (Files): Likewise.
29191         * modules/unictype/category-Zs-tests (Files): Likewise.
29192         * modules/unictype/category-and-not-tests (Files): Likewise.
29193         * modules/unictype/category-and-tests (Files): Likewise.
29194         * modules/unictype/category-byname-tests (Files): Likewise.
29195         * modules/unictype/category-name-tests (Files): Likewise.
29196         * modules/unictype/category-none-tests (Files): Likewise.
29197         * modules/unictype/category-of-tests (Files): Likewise.
29198         * modules/unictype/category-or-tests (Files): Likewise.
29199         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29200         * modules/unictype/combining-class-tests (Files): Likewise.
29201         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29202         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29203         * modules/unictype/ctype-blank-tests (Files): Likewise.
29204         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29205         * modules/unictype/ctype-digit-tests (Files): Likewise.
29206         * modules/unictype/ctype-graph-tests (Files): Likewise.
29207         * modules/unictype/ctype-lower-tests (Files): Likewise.
29208         * modules/unictype/ctype-print-tests (Files): Likewise.
29209         * modules/unictype/ctype-punct-tests (Files): Likewise.
29210         * modules/unictype/ctype-space-tests (Files): Likewise.
29211         * modules/unictype/ctype-upper-tests (Files): Likewise.
29212         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29213         * modules/unictype/decimal-digit-tests (Files): Likewise.
29214         * modules/unictype/digit-tests (Files): Likewise.
29215         * modules/unictype/mirror-tests (Files): Likewise.
29216         * modules/unictype/numeric-tests (Files): Likewise.
29217         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29218         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29219         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29220         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29221         Likewise.
29222         * modules/unictype/property-bidi-block-separator-tests (Files):
29223         Likewise.
29224         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29225         Likewise.
29226         * modules/unictype/property-bidi-common-separator-tests (Files):
29227         Likewise.
29228         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29229         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29230         Likewise.
29231         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29232         Likewise.
29233         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29234         Likewise.
29235         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29236         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29237         Likewise.
29238         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29239         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29240         Likewise.
29241         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29242         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29243         * modules/unictype/property-bidi-segment-separator-tests (Files):
29244         Likewise.
29245         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29246         * modules/unictype/property-byname-tests (Files): Likewise.
29247         * modules/unictype/property-combining-tests (Files): Likewise.
29248         * modules/unictype/property-composite-tests (Files): Likewise.
29249         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29250         * modules/unictype/property-dash-tests (Files): Likewise.
29251         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29252         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29253         Likewise.
29254         * modules/unictype/property-deprecated-tests (Files): Likewise.
29255         * modules/unictype/property-diacritic-tests (Files): Likewise.
29256         * modules/unictype/property-extender-tests (Files): Likewise.
29257         * modules/unictype/property-format-control-tests (Files): Likewise.
29258         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29259         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29260         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29261         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29262         * modules/unictype/property-hyphen-tests (Files): Likewise.
29263         * modules/unictype/property-id-continue-tests (Files): Likewise.
29264         * modules/unictype/property-id-start-tests (Files): Likewise.
29265         * modules/unictype/property-ideographic-tests (Files): Likewise.
29266         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29267         * modules/unictype/property-ids-trinary-operator-tests (Files):
29268         Likewise.
29269         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29270         * modules/unictype/property-iso-control-tests (Files): Likewise.
29271         * modules/unictype/property-join-control-tests (Files): Likewise.
29272         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29273         * modules/unictype/property-line-separator-tests (Files): Likewise.
29274         * modules/unictype/property-logical-order-exception-tests (Files):
29275         Likewise.
29276         * modules/unictype/property-lowercase-tests (Files): Likewise.
29277         * modules/unictype/property-math-tests (Files): Likewise.
29278         * modules/unictype/property-non-break-tests (Files): Likewise.
29279         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29280         * modules/unictype/property-numeric-tests (Files): Likewise.
29281         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29282         * modules/unictype/property-other-default-ignorable-code-point-tests
29283         (Files): Likewise.
29284         * modules/unictype/property-other-grapheme-extend-tests (Files):
29285         Likewise.
29286         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29287         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29288         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29289         * modules/unictype/property-other-math-tests (Files): Likewise.
29290         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29291         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29292         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29293         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29294         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29295         * modules/unictype/property-private-use-tests (Files): Likewise.
29296         * modules/unictype/property-punctuation-tests (Files): Likewise.
29297         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29298         * modules/unictype/property-radical-tests (Files): Likewise.
29299         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29300         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29301         * modules/unictype/property-space-tests (Files): Likewise.
29302         * modules/unictype/property-terminal-punctuation-tests (Files):
29303         Likewise.
29304         * modules/unictype/property-test-tests (Files): Likewise.
29305         * modules/unictype/property-titlecase-tests (Files): Likewise.
29306         * modules/unictype/property-unassigned-code-value-tests (Files):
29307         Likewise.
29308         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29309         * modules/unictype/property-uppercase-tests (Files): Likewise.
29310         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29311         * modules/unictype/property-white-space-tests (Files): Likewise.
29312         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29313         * modules/unictype/property-xid-start-tests (Files): Likewise.
29314         * modules/unictype/property-zero-width-tests (Files): Likewise.
29315         * modules/unictype/scripts-tests (Files): Likewise.
29316         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29317         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29318         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29319         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29320         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29321         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29322         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29323         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29324         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29325         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29326         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29327         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29328         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29329         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29330         * modules/uninorm/composition-tests (Files): Likewise.
29331         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29332         * modules/uninorm/decomposition-tests (Files): Likewise.
29333         * modules/uninorm/filter-tests (Files): Likewise.
29334         * modules/uninorm/nfc-tests (Files): Likewise.
29335         * modules/uninorm/nfd-tests (Files): Likewise.
29336         * modules/uninorm/nfkc-tests (Files): Likewise.
29337         * modules/uninorm/nfkd-tests (Files): Likewise.
29338         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29339         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29340         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29341         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29342         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29343         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29344         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29345         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29346         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29347         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29348         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29349         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29350         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29351         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29352         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29353         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29354         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29355         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29356         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29357         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29358         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29359         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29360         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29361         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29362         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29363         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29364         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29365         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29366         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29367         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29368         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29369         * modules/uniwidth/u8-width-tests (Files): Likewise.
29370         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29371         * modules/uniwidth/u16-width-tests (Files): Likewise.
29372         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29373         * modules/uniwidth/u32-width-tests (Files): Likewise.
29374         * modules/uniwidth/width-tests (Files): Likewise.
29375         * modules/unlink-tests (Files): Likewise.
29376         * modules/unsetenv-tests (Files): Likewise.
29377         * modules/usleep-tests (Files): Likewise.
29378         * modules/utimens-tests (Files): Likewise.
29379         * modules/utimensat-tests (Files): Likewise.
29380         * modules/vasnprintf-posix-tests (Files): Likewise.
29381         * modules/vasnprintf-tests (Files): Likewise.
29382         * modules/vasprintf-posix-tests (Files): Likewise.
29383         * modules/vasprintf-tests (Files): Likewise.
29384         * modules/vdprintf-posix-tests (Files): Likewise.
29385         * modules/vfprintf-posix-tests (Files): Likewise.
29386         * modules/vprintf-posix-tests (Files): Likewise.
29387         * modules/vsnprintf-posix-tests (Files): Likewise.
29388         * modules/vsnprintf-tests (Files): Likewise.
29389         * modules/vsprintf-posix-tests (Files): Likewise.
29390         * modules/wcrtomb-tests (Files): Likewise.
29391         * modules/wcsnrtombs-tests (Files): Likewise.
29392         * modules/wcsrtombs-tests (Files): Likewise.
29393         * modules/wctype-tests (Files): Likewise.
29394         * modules/wcwidth-tests (Files): Likewise.
29395         * modules/xmemdup0-tests (Files): Likewise.
29396         * modules/xprintf-posix-tests (Files): Likewise.
29397         * modules/xvasprintf-tests (Files): Likewise.
29398
29399 2009-12-24  Eric Blake  <ebb9@byu.net>
29400
29401         test-nanosleep: fix typo
29402         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29403         patch.
29404         Reported by Bruno Haible.
29405
29406 2009-12-24  Bruno Haible  <bruno@clisp.org>
29407
29408         Reduce namespace pollution on glibc systems.
29409         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29410         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29411         systems.
29412         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29413         <getopt.h> on glibc systems.
29414         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29415         systems.
29416         * lib/fcntl.c: Include <unistd.h> here instead.
29417
29418 2009-12-24  Bruno Haible  <bruno@clisp.org>
29419
29420         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29421
29422 2009-12-24  Eric Blake  <ebb9@byu.net>
29423
29424         tests: add signature checks
29425         * tests/signature.h (SIGNATURE_CHECK): New file.
29426         * modules/atexit-tests (Files): Use it.
29427         * modules/btowc-tests (Files): Likewise.
29428         * modules/canonicalize-lgpl-tests (Files): Likewise.
29429         * modules/ceilf-tests (Files): Likewise.
29430         * modules/ceill-tests (Files): Likewise.
29431         * modules/chown-tests (Files): Likewise.
29432         * modules/dprintf-posix-tests (Files): Likewise.
29433         * modules/dup2-tests (Files): Likewise.
29434         * modules/dup3-tests (Files): Likewise.
29435         * modules/duplocale-tests (Files): Likewise.
29436         * modules/fchdir-tests (Files): Likewise.
29437         * modules/fcntl-tests (Files): Likewise.
29438         * modules/fdopendir-tests (Files): Likewise.
29439         * modules/fflush-tests (Files): Likewise.
29440         * modules/flock-tests (Files): Likewise.
29441         * modules/floorf-tests (Files): Likewise.
29442         * modules/floorl-tests (Files): Likewise.
29443         * modules/fnmatch-tests (Files): Likewise.
29444         * modules/fopen-tests (Files): Likewise.
29445         * modules/fprintf-posix-tests (Files): Likewise.
29446         * modules/freopen-tests (Files): Likewise.
29447         * modules/frexp-nolibm-tests (Files): Likewise.
29448         * modules/frexp-tests (Files): Likewise.
29449         * modules/frexpl-nolibm-tests (Files): Likewise.
29450         * modules/frexpl-tests (Files): Likewise.
29451         * modules/fseek-tests (Files): Likewise.
29452         * modules/fseeko-tests (Files): Likewise.
29453         * modules/fsync-tests (Files): Likewise.
29454         * modules/ftell-tests (Files): Likewise.
29455         * modules/ftello-tests (Files): Likewise.
29456         * modules/futimens-tests (Files): Likewise.
29457         * modules/getaddrinfo-tests (Files): Likewise.
29458         * modules/getcwd-tests (Files): Likewise.
29459         * modules/getdelim-tests (Files): Likewise.
29460         * modules/getdtablesize-tests (Files): Likewise.
29461         * modules/getgroups-tests (Files): Likewise.
29462         * modules/gethostname-tests (Files): Likewise.
29463         * modules/getline-tests (Files): Likewise.
29464         * modules/getopt-posix-tests (Files): Likewise.
29465         * modules/gettimeofday-tests (Files): Likewise.
29466         * modules/glob-tests (Files): Likewise.
29467         * modules/iconv-tests (Files): Likewise.
29468         * modules/inet_ntop-tests (Files): Likewise.
29469         * modules/inet_pton-tests (Files): Likewise.
29470         * modules/isblank-tests (Files): Likewise.
29471         * modules/lchown-tests (Files): Likewise.
29472         * modules/ldexpl-tests (Files): Likewise.
29473         * modules/link-tests (Files): Likewise.
29474         * modules/linkat-tests (Files): Likewise.
29475         * modules/lseek-tests (Files): Likewise.
29476         * modules/lstat-tests (Files): Likewise.
29477         * modules/mbrtowc-tests (Files): Likewise.
29478         * modules/mbsinit-tests (Files): Likewise.
29479         * modules/mbsnrtowcs-tests (Files): Likewise.
29480         * modules/mbsrtowcs-tests (Files): Likewise.
29481         * modules/memchr-tests (Files): Likewise.
29482         * modules/memcmp-tests (Files): Likewise.
29483         * modules/memmem-tests (Files): Likewise.
29484         * modules/memrchr-tests (Files): Likewise.
29485         * modules/mkdir-tests (Files): Likewise.
29486         * modules/mkfifo-tests (Files): Likewise.
29487         * modules/mkfifoat-tests (Files): Likewise.
29488         * modules/mknod-tests (Files): Likewise.
29489         * modules/nanosleep-tests (Files): Likewise.
29490         * modules/nl_langinfo-tests (Files): Likewise.
29491         * modules/obstack-printf-tests (Files): Likewise.
29492         * modules/open-tests (Files): Likewise.
29493         * modules/openat-tests (Files): Likewise.
29494         * modules/perror-tests (Files): Likewise.
29495         * modules/pipe2-tests (Files): Likewise.
29496         * modules/poll-tests (Files): Likewise.
29497         * modules/popen-tests (Files): Likewise.
29498         * modules/posix_spawn-tests (Files): Likewise.
29499         * modules/posix_spawnp-tests (Files): Likewise.
29500         * modules/pread-tests (Files): Likewise.
29501         * modules/printf-posix-tests (Files): Likewise.
29502         * modules/pty-tests (Files): Likewise.
29503         * modules/random_r-tests (Files): Likewise.
29504         * modules/rawmemchr-tests (Files): Likewise.
29505         * modules/readlink-tests (Files): Likewise.
29506         * modules/remove-tests (Files): Likewise.
29507         * modules/rename-tests (Files): Likewise.
29508         * modules/renameat-tests (Files): Likewise.
29509         * modules/rmdir-tests (Files): Likewise.
29510         * modules/round-tests (Files): Likewise.
29511         * modules/roundf-tests (Files): Likewise.
29512         * modules/roundl-tests (Files): Likewise.
29513         * modules/select-tests (Files): Likewise.
29514         * modules/setenv-tests (Files): Likewise.
29515         * modules/sigaction-tests (Files): Likewise.
29516         * modules/sleep-tests (Files): Likewise.
29517         * modules/snprintf-posix-tests (Files): Likewise.
29518         * modules/snprintf-tests (Files): Likewise.
29519         * modules/sprintf-posix-tests (Files): Likewise.
29520         * modules/stat-tests (Files): Likewise.
29521         * modules/strcasestr-tests (Files): Likewise.
29522         * modules/strchrnul-tests (Files): Likewise.
29523         * modules/strerror-tests (Files): Likewise.
29524         * modules/strsignal-tests (Files): Likewise.
29525         * modules/strstr-tests (Files): Likewise.
29526         * modules/strtod-tests (Files): Likewise.
29527         * modules/strverscmp-tests (Files): Likewise.
29528         * modules/symlink-tests (Files): Likewise.
29529         * modules/symlinkat-tests (Files): Likewise.
29530         * modules/times-tests (Files): Likewise.
29531         * modules/trunc-tests (Files): Likewise.
29532         * modules/truncf-tests (Files): Likewise.
29533         * modules/truncl-tests (Files): Likewise.
29534         * modules/tsearch-tests (Files): Likewise.
29535         * modules/uname-tests (Files): Likewise.
29536         * modules/unlink-tests (Files): Likewise.
29537         * modules/unsetenv-tests (Files): Likewise.
29538         * modules/usleep-tests (Files): Likewise.
29539         * modules/utimensat-tests (Files): Likewise.
29540         * modules/vasprintf-tests (Files): Likewise.
29541         * modules/vdprintf-posix-tests (Files): Likewise.
29542         * modules/vfprintf-posix-tests (Files): Likewise.
29543         * modules/vprintf-posix-tests (Files): Likewise.
29544         * modules/vsnprintf-posix-tests (Files): Likewise.
29545         * modules/vsnprintf-tests (Files): Likewise.
29546         * modules/vsprintf-posix-tests (Files): Likewise.
29547         * modules/wcrtomb-tests (Files): Likewise.
29548         * modules/wcsnrtombs-tests (Files): Likewise.
29549         * modules/wcsrtombs-tests (Files): Likewise.
29550         * modules/wcwidth-tests (Files): Likewise.
29551         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29552         * tests/test-isinf.c (isinf): Likewise.
29553         * tests/test-isnan.c (isnan): Likewise.
29554         * tests/test-signbit.c (signbit): Likewise.
29555         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29556         declaration, either as macro or with correct signature.
29557         (select): Ensure function under test is declared with correct
29558         signature in correct header.
29559         * tests/test-atexit.c (atexit): Likewise.
29560         * tests/test-btowc.c (btowc): Likewise.
29561         * tests/test-canonicalize-lgpl.c (realpath)
29562         (canonicalize_file_name): Likewise.
29563         * tests/test-ceilf1.c (ceilf): Likewise.
29564         * tests/test-ceill.c (ceill): Likewise.
29565         * tests/test-chown.c (chown): Likewise.
29566         * tests/test-dprintf-posix.c (dprintf): Likewise.
29567         * tests/test-dup2.c (dup2): Likewise.
29568         * tests/test-dup3.c (dup3): Likewise.
29569         * tests/test-duplocale.c (duplocale): Likewise.
29570         * tests/test-fchdir.c (fchdir): Likewise.
29571         * tests/test-fchownat.c (fchownat): Likewise.
29572         * tests/test-fcntl.c (fcntl): Likewise.
29573         * tests/test-fdopendir.c (fdopendir): Likewise.
29574         * tests/test-fflush.c (fflush): Likewise.
29575         * tests/test-flock.c (flock): Likewise.
29576         * tests/test-floorf1.c (floorf): Likewise.
29577         * tests/test-floorl.c (floorl): Likewise.
29578         * tests/test-fnmatch.c (fnmatch): Likewise.
29579         * tests/test-fopen.c (fopen): Likewise.
29580         * tests/test-fprintf-posix.c (fprintf): Likewise.
29581         * tests/test-freopen.c (freopen): Likewise.
29582         * tests/test-frexp.c (frexp): Likewise.
29583         * tests/test-frexpl.c (frexpl): Likewise.
29584         * tests/test-fseek.c (fseek): Likewise.
29585         * tests/test-fseeko.c (fseeko): Likewise.
29586         * tests/test-fstatat.c (fstatat): Likewise.
29587         * tests/test-fsync.c (fsync): Likewise.
29588         * tests/test-ftell.c (ftell): Likewise.
29589         * tests/test-ftello.c (ftello): Likewise.
29590         * tests/test-futimens.c (futimens): Likewise.
29591         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29592         (gai_strerror): Likewise.
29593         * tests/test-getcwd.c (getcwd): Likewise.
29594         * tests/test-getdelim.c (getdelim): Likewise.
29595         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29596         * tests/test-getgroups.c (getgroups): Likewise.
29597         * tests/test-gethostname.c (gethostname): Likewise.
29598         * tests/test-getline.c (getline): Likewise.
29599         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29600         Likewise.
29601         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29602         * tests/test-glob.c (glob, globfree): Likewise.
29603         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29604         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29605         * tests/test-inet_pton.c (inet_pton): Likewise.
29606         * tests/test-isblank.c (isblank): Likewise.
29607         * tests/test-lchown.c (lchown): Likewise.
29608         * tests/test-ldexpl.c (ldexpl): Likewise.
29609         * tests/test-link.c (link): Likewise.
29610         * tests/test-linkat.c (linkat): Likewise.
29611         * tests/test-lseek.c (lseek): Likewise.
29612         * tests/test-lstat.c (lstat): Likewise.
29613         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29614         * tests/test-mbsinit.c (mbsinit): Likewise.
29615         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29616         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29617         * tests/test-memchr.c (memchr): Likewise.
29618         * tests/test-memcmp.c (memcmp): Likewise.
29619         * tests/test-memmem.c (memmem): Likewise.
29620         * tests/test-memrchr.c (memrchr): Likewise.
29621         * tests/test-mkdir.c (mkdir): Likewise.
29622         * tests/test-mkdirat.c (mkdirat): Likewise.
29623         * tests/test-mkfifo.c (mkfifo): Likewise.
29624         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29625         * tests/test-mknod.c (mknod): Likewise.
29626         * tests/test-nanosleep.c (nanosleep): Likewise.
29627         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29628         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29629         Likewise.
29630         * tests/test-open.c (open): Likewise.
29631         * tests/test-openat.c (openat): Likewise.
29632         * tests/test-perror.c (perror): Likewise.
29633         * tests/test-pipe2.c (pipe2): Likewise.
29634         * tests/test-poll.c (poll): Likewise.
29635         * tests/test-popen.c (popen, pclose): Likewise.
29636         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29637         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29638         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29639         (posix_spawn_file_actions_destroy)
29640         (posix_spawn_file_actions_addclose)
29641         (posix_spawn_file_actions_addopen)
29642         (posix_spawn_file_actions_adddup2): Likewise.
29643         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29644         * tests/test-pread.c (pread): Likewise.
29645         * tests/test-printf-posix.c (printf): Likewise.
29646         * tests/test-pty.c (openpty, forkpty): Likewise.
29647         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29648         (random_r): Likewise.
29649         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29650         * tests/test-readlink.c (readlink): Likewise.
29651         * tests/test-remove.c (remove): Likewise.
29652         * tests/test-rename.c (rename): Likewise.
29653         * tests/test-renameat.c (renameat): Likewise.
29654         * tests/test-rmdir.c (rmdir): Likewise.
29655         * tests/test-round1.c (round): Likewise.
29656         * tests/test-roundf1.c (roundf): Likewise.
29657         * tests/test-roundl.c (roundl): Likewise.
29658         * tests/test-setenv.c (setenv): Likewise.
29659         * tests/test-sigaction.c (sigaction): Likewise.
29660         * tests/test-sleep.c (sleep): Likewise.
29661         * tests/test-snprintf.c (snprintf): Likewise.
29662         * tests/test-sprintf-posix.c (sprintf): Likewise.
29663         * tests/test-stat.c (stat): Likewise.
29664         * tests/test-stpncpy.c (stpncpy): Likewise.
29665         * tests/test-strcasestr.c (strcasestr): Likewise.
29666         * tests/test-strchrnul.c (strchrnul): Likewise.
29667         * tests/test-strerror.c (strerror): Likewise.
29668         * tests/test-strsignal.c (strsignal): Likewise.
29669         * tests/test-strstr.c (strstr): Likewise.
29670         * tests/test-strtod.c (strtod): Likewise.
29671         * tests/test-strverscmp.c (strverscmp): Likewise.
29672         * tests/test-symlink.c (symlink): Likewise.
29673         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29674         * tests/test-times.c (times): Likewise.
29675         * tests/test-trunc1.c (trunc): Likewise.
29676         * tests/test-truncf1.c (truncf): Likewise.
29677         * tests/test-truncl.c (truncl): Likewise.
29678         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29679         Likewise.
29680         * tests/test-uname.c (uname): Likewise.
29681         * tests/test-unlink.c (unlink): Likewise.
29682         * tests/test-unlinkat.c (unlinkat): Likewise.
29683         * tests/test-unsetenv.c (unsetenv): Likewise.
29684         * tests/test-usleep.c (usleep): Likewise.
29685         * tests/test-utimensat.c (utimensat): Likewise.
29686         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29687         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29688         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29689         * tests/test-vprintf-posix.c (vprintf): Likewise.
29690         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29691         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29692         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29693         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29694         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29695         * tests/test-wcwidth.c (wcwidth): Likewise.
29696
29697         build: pull in conditional headers during GNULIB_POSIXCHECK
29698         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29699         definitions from any conditionally-included headers.
29700         * lib/stdlib.in.h (includes): Likewise.
29701         * lib/unistd.in.h (includes): Likewise.
29702
29703 2009-12-24  Bruno Haible  <bruno@clisp.org>
29704
29705         * tests/test-argv-iter.c: Include header file being tested immediately
29706         after config.h.
29707         * tests/test-base64.c: Likewise.
29708         * tests/test-flock.c: Likewise.
29709         * tests/test-fsync.c: Likewise.
29710         * tests/test-getdate.c: Likewise.
29711         * tests/test-getndelim2.c: Likewise.
29712         * tests/test-isfinite.c: Likewise.
29713         * tests/test-isinf.c: Likewise.
29714         * tests/test-strerror.c: Likewise.
29715         * tests/test-strsignal.c: Likewise.
29716
29717 2009-12-23  Eric Blake  <ebb9@byu.net>
29718
29719         unistd: work around cygwin bug
29720         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29721         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29722         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29723
29724 2009-12-23  Bruno Haible  <bruno@clisp.org>
29725
29726         localename: More tests.
29727         * tests/test-localename.c (SIZEOF): New macro.
29728         (categories): New variable.
29729         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29730         test_locale_name_default): Add test w.r.t. thread locale.
29731         (test_locale_name_thread): New function.
29732         (main): Invoke it.
29733
29734         localename: Make aware of thread locale.
29735         * lib/localename.h (gl_locale_name_thread): New declaration.
29736         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29737         behaviour with respect to thread locale.
29738         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29739         <langinfo.h>, glthread/lock.h.
29740         (SIZE_BITS): New macro.
29741         (string_hash): New function.
29742         (struct hash_node): New type.
29743         (HASH_TABLE_SIZE): New macro.
29744         (struniq_hash_table, struniq_lock): New variables.
29745         (struniq): New function.
29746         (gl_locale_name_thread): New function.
29747         (gl_locale_name): Invoke it.
29748         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29749         * modules/localename (Depends-on): Add lock.
29750         Reported by Mike Gran <spk121@yahoo.com>.
29751
29752 2009-12-23  Eric Blake  <ebb9@byu.net>
29753
29754         va-args: new module
29755         * modules/va-args: New file.
29756         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29757         * MODULES.html.sh (Core language properties): Mention it.
29758
29759         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29760         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29761         named alias for __attribute__((__unused__)).
29762         * lib/chown.c: Update client.
29763         * lib/fchmodat.c: Likewise.
29764         * lib/fts.c: Likewise.
29765         * lib/getdate.y: Likewise.
29766         * lib/getgroups.c: Likewise.
29767         * lib/getopt.c: Likewise.
29768         * lib/getugroups.c: Likewise.
29769         * lib/mkdir.c: Likewise.
29770         * lib/mkfifo.c: Likewise.
29771         * lib/mkfifoat.c: Likewise.
29772         * lib/mknod.c: Likewise.
29773         * lib/mknodat.c: Likewise.
29774         * lib/readlink.c: Likewise.
29775         * lib/se-context.in.h: Likewise.
29776         * lib/se-selinux.in.h: Likewise.
29777         * lib/sockets.c: Likewise.
29778         * lib/symlink.c: Likewise.
29779         * lib/symlinkat.c: Likewise.
29780         * lib/unicodeio.c: Likewise.
29781         * lib/unistr.h: Likewise.
29782         * tests/test-areadlink.c: Likewise.
29783         * tests/test-areadlinkat.c: Likewise.
29784         * tests/test-filenamecat.c: Likewise.
29785         * tests/test-fseeko.c: Likewise.
29786         * tests/test-ftello.c: Likewise.
29787         * tests/test-getdate.c: Likewise.
29788         * tests/test-getgroups.c: Likewise.
29789         * tests/test-gethostname.c: Likewise.
29790         * tests/test-quotearg.c: Likewise.
29791         * tests/test-version-etc.c: Likewise.
29792         * tests/test-xalloc-die.c: Likewise.
29793         * tests/test-xfprintf-posix.c: Likewise.
29794         * tests/test-xprintf-posix.c: Likewise.
29795         * tests/test-xvasprintf.c: Likewise.
29796
29797         tests: avoid compiler warnings
29798         * tests/test-fcntl.c (main): Delete unused parameters.
29799         * tests/test-freopen-safer.c (main): Likewise.
29800         * tests/test-xalloc-die.c (main): Mark unused parameters.
29801         * tests/test-fseeko.c (main): Likewise.
29802         * tests/test-ftello.c (main): Likewise.
29803         * tests/test-nanosleep.c (main): Avoid declaration warning.
29804         * tests/test-sleep.c (main): Likewise.
29805         * tests/test-unsetenv.c (main): Silence warning about string
29806         literal.
29807         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29808
29809 2009-12-23  Bruno Haible  <bruno@clisp.org>
29810
29811         * tests/test-localename.c (test_locale_name): New function, extracted
29812         from main. Also test mixed situations.
29813         (test_locale_name_posix, test_locale_name_environ,
29814         test_locale_name_default): New functions.
29815         (main): Invoke them all.
29816         * modules/localename-tests (configure.ac): Test for newlocale.
29817
29818 2009-12-23  Bruno Haible  <bruno@clisp.org>
29819
29820         unistd: Ensure getcwd gets declared before being overridden.
29821         * lib/unistd.in.h: Conditionally include <io.h>.
29822
29823 2009-12-22  Bruno Haible  <bruno@clisp.org>
29824
29825         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29826         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29827         (gl_WCHAR_H): Invoke it.
29828         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29829         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29830         Reported by Karl Berry <karl@freefriends.org>.
29831
29832 2009-12-22  Eric Blake  <ebb9@byu.net>
29833
29834         math, unistd: avoid redundant includes
29835         * lib/math.in.h (isnan): No need to re-include <math.h>.
29836         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29837
29838         getsubopt: work around cygwin bug
29839         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29840         avoid conflicting with system getsubopt.
29841         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29842         bug.
29843
29844         getopt: synchronize from glibc
29845         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29846         parameter order.  Adjust all callers.
29847         (_getopt_internal_r, main): Adjust quoting in error messages.
29848         Drop considerations for outdated POSIX 1003.2 error message.
29849         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29850         callers.
29851         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29852
29853         test-getopt: test stderr behavior
29854         * modules/getopt-posix-tests (Depends-on): Add dup2.
29855         * tests/test-getopt.c (ASSERT): Avoid stderr.
29856         (main): Move stderr to a temporary file.
29857         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29858         Instead, add parameter to inform caller if output occurred.
29859         (test_getopt): Adjust all existing tests to expect silence, and
29860         add new tests of leading ":".
29861         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29862         glibc shortcomings with leading "-:" or "+:" in optstring.
29863         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29864         Likewise.
29865         * doc/posix-functions/getopt.texi (getopt): Likewise.
29866
29867         test-getopt: enhance test
29868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29869         supports optind=0.
29870         * tests/test-getopt.c (OPTIND_MIN): Move...
29871         * tests/test-getopt.h (OPTIND_MIN): ...here.
29872         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29873         Require that optind=0 works, since modern BSD supports it in
29874         addition to optreset, and since coreutils expects it.
29875         (test_getopt_long_only): New test.
29876         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29877         glibc shortcomings with 'W;', and enforcement of optind=0.
29878         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29879         Likewise.
29880
29881 2009-12-21  Bruno Haible  <bruno@clisp.org>
29882
29883         localename: Improvements for MacOS X and Cygwin.
29884         * lib/localename.h (gl_locale_name_environ): New declaration.
29885         * lib/localename.c (gl_locale_name_environ): New function, extracted from
29886         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
29887         (gl_locale_name_posix): Invoke it.
29888         (gl_locale_name_default): Add comments. Use Windows native API also on
29889         Cygwin.
29890
29891 2009-12-21  Bruno Haible  <bruno@clisp.org>
29892
29893         Update list of Win32 locale ids.
29894         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
29895         (LANG_SAMI): Renamed from LANG_SAAMI.
29896         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
29897         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
29898         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
29899         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
29900         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
29901         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
29902         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
29903         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
29904         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
29905         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
29906         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
29907         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
29908         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
29909         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
29910         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
29911         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29912         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29913         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29914         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29915         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29916         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29917         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29918         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29919         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29920         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29921         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29922         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29923         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29924         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29925         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29926         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29927         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29928         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29929         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29930         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29931         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29932         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29933         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29934         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29935         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29936         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29937         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29938         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29939         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29940         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29941         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29942         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29943         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29944         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29945         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29946         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29947         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29948         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29949         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29950         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29951         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29952         Add more languages and countries for Sami, Sorbian. Add more countries
29953         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29954         for Pashto. Change country for Syriac, Tswana.
29955
29956 2009-12-21  Eric Blake  <ebb9@byu.net>
29957
29958         test-utimens: avoid spurious failure
29959         * tests/test-chown.h (nap): Factor...
29960         * tests/nap.h: ...into new file.
29961         * tests/test-lchown.h (nap): Avoid duplication.
29962         * tests/test-utimens-common.h (nap): Use shared implementation,
29963         necessary on file systems with 1-second resolution.
29964         * modules/chown-tests (Files): Include new file.
29965         * modules/fdutimensat-tests (Files): Likewise.
29966         * modules/futimens-tests (Files): Likewise.
29967         * modules/lchown-tests (Files): Likewise.
29968         * modules/openat-tests (Files): Likewise.
29969         * modules/utimens-tests (Files): Likewise.
29970         * modules/utimensat-tests (Files): Likewise.
29971
29972 2009-12-19  Eric Blake  <ebb9@byu.net>
29973
29974         futimens, utimensat: work around Linux bug
29975         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29976         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29977         * lib/utimensat.c (rpl_utimensat): Work around it.
29978         * lib/futimens.c (rpl_futimens): Adjust comment.
29979
29980         utimens: work around Linux ctime bug
29981         * lib/utimens.c (detect_ctime_bug): New helper function.
29982         (update_timespec): Differentiate between workaround needed for
29983         this bug vs. what is needed for systems that lack utimensat.
29984         (fdutimens, lutimens): Work around bug.
29985
29986         utimens: check for ctime update
29987         * tests/test-utimens-common.h (check_ctime): Define.
29988         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29989         * tests/test-futimens.h (test_futimens): Likewise.
29990         * tests/test-lutimens.h (test_lutimens): Likewise.
29991         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29992         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29993
29994 2009-12-19  Bruno Haible  <bruno@clisp.org>
29995
29996         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29997         * tests/test-dprintf-posix2.sh: New file.
29998         * tests/test-dprintf-posix2.c: New file.
29999         * modules/dprintf-posix-tests (Files): Add them.
30000         (configure.ac): Check for getrlimit and setrlimit.
30001         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30002
30003 2009-12-19  Bruno Haible  <bruno@clisp.org>
30004
30005         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30006         * tests/test-fprintf-posix3.sh: New file.
30007         * tests/test-fprintf-posix3.c: New file.
30008         * modules/fprintf-posix-tests (Files): Add them.
30009         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30010
30011 2009-12-19  Eric Blake  <ebb9@byu.net>
30012
30013         dirfd: fix prototype
30014         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30015         * lib/dirfd.c (dirfd): Likewise.
30016
30017         canonicalize: reduce memory usage
30018         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30019         allocation to size.
30020         Reported by Solar Designer <solar@openwall.com>.
30021
30022 2009-12-19  Bruno Haible  <bruno@clisp.org>
30023
30024         New module attribute 'Applicability'.
30025         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30026         * gnulib-tool: New option --extract-applicability.
30027         (func_usage): Document it.
30028         (sed_extract_prog): Recognize it.
30029         (func_get_applicability): New function.
30030         (func_import): Generalize handling of 'link-warning' module.
30031         * modules/link-warning (Applicability): New section.
30032         * modules/arg-nonnull (Applicability): New section.
30033         Repoted by Simon Josefsson <simon@josefsson.org>.
30034
30035 2009-12-19  Bruno Haible  <bruno@clisp.org>
30036
30037         fflush: tweak
30038         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30039         * lib/fseeko.c (rpl_fseeko): Likewise.
30040
30041 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30042
30043         * lib/gl_list.h: Fix typo in comment.
30044
30045 2009-12-16  Eric Blake  <ebb9@byu.net>
30046
30047         fcntl: use to simplify other modules
30048         * modules/cloexec (Depends-on): Add fcntl.
30049         * modules/fchdir (Depends-on): Likewise.
30050         * modules/fd-safer-flag (Depends-on): Likewise.
30051         * modules/unistd-safer (Depends-on): Likewise.
30052         * modules/dup3 (configure.ac): Set module indicator.
30053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30054         missing.
30055         * lib/fchdir.c (_gl_register_dup): Fix comment.
30056         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30057         * lib/dup-safer.c (dup_safer): Likewise.
30058         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30059         * lib/dup3.c (dup3): Likewise.
30060         * tests/test-fchdir.c (main): Enhance test.
30061         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30062
30063         fcntl: port portions of fcntl to mingw
30064         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30065         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30066         replacement for mingw.
30067         * modules/fcntl (Description): Update.
30068         (Depends-on): Add dup2.
30069         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30070         * modules/fcntl-h (Makefile.am): Substitute it.
30071         * lib/fcntl.in.h (fcntl): Update declaration.
30072         (F_DUPFD, F_GETFD): New macros, when needed.
30073         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30074         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30075         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30076         we now guarantee.
30077
30078         fcntl: work around cygwin bug in F_DUPFD
30079         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30080         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30081         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30082         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30083         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30084
30085         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30086         * modules/fcntl (Files): List new files.
30087         (configure.ac): Run a test.
30088         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30089         * lib/fcntl.c (rpl_fcntl): Likewise.
30090         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30091         (gl_FCNTL_H): Always replace fcntl.h.
30092         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30093         * lib/fcntl.in.h (fcntl): Declare replacement.
30094         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30095         needed, plus a witness.
30096         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30097         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30098         * tests/test-fcntl.c: New file.
30099         * modules/fcntl-tests: Likewise.
30100
30101         binary-io: avoid potential compilation warning
30102         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30103         directives.
30104
30105         fflush: avoid compilation error on NetBSD
30106         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30107         between off_t and fpos_t, since the latter is sometimes a struct.
30108         * lib/fseeko.c (rpl_fseeko): Likewise.
30109         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30110
30111 2009-12-15  Eric Blake  <ebb9@byu.net>
30112
30113         fcntl-h, stdio, sys_ioctl: fix declarations
30114         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30115         function must not take arguments.
30116         * lib/sys_ioctl.in.h (ioctl): Likewise.
30117         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30118         (open): Add a link warning.
30119
30120 2009-12-15  Jim Meyering  <meyering@redhat.com>
30121
30122         areadlink, areadlink-with-size: relax license to LGPLv2+
30123         * modules/areadlink (License): Relax to LGPLv2+.
30124         * modules/areadlink-with-size (License): Likewise.
30125
30126 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30127             Bruno Haible  <bruno@clisp.org>
30128
30129         *printf: Fix memory leak.
30130         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30131         * lib/vfprintf.c (vfprintf): Likewise.
30132         * lib/dprintf.c (dprintf): Likewise.
30133         * lib/vdprintf.c (vdprintf): Likewise.
30134
30135 2009-12-14  Eric Blake  <ebb9@byu.net>
30136
30137         accept4: adjust module dependencies
30138         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30139
30140         utimens: one more try at avoiding compiler warning
30141         * lib/utimens.c (lutimens): Lower scope of result.
30142
30143 2009-12-13  Bruno Haible  <bruno@clisp.org>
30144
30145         Move the malloc checking from module 'list' to new module 'xlist'.
30146         * modules/xlist: New file.
30147         * lib/gl_xlist.h: New file.
30148         * lib/gl_xlist.c: New file.
30149         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30150         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30151         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30152         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30153         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30154         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30155         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30156         gl_sortedlist_nx_add): New declarations.
30157         (struct gl_list_implementation): Rename and change methods accordingly.
30158         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30159         (gl_list_nx_create): Renamed from gl_list_create.
30160         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30161         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30162         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30163         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30164         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30165         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30166         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30167         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30168         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30169         gl_list_create_empty.
30170         (gl_list_nx_create): Renamed from gl_list_create.
30171         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30172         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30173         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30174         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30175         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30176         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30177         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30178         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30179         * lib/gl_array_list.c: Don't include xalloc.h.
30180         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30181         NULL upon out-of-memory.
30182         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30183         out-of-memory.
30184         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30185         Change return type to 'int'.
30186         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30187         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30188         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30189         upon out-of-memory.
30190         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30191         upon out-of-memory.
30192         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30193         upon out-of-memory.
30194         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30195         upon out-of-memory.
30196         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30197         out-of-memory.
30198         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30199         Update.
30200         (gl_array_list_implementation): Update.
30201         * lib/gl_carray_list.c: Don't include xalloc.h.
30202         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30203         Return NULL upon out-of-memory.
30204         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30205         out-of-memory.
30206         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30207         Change return type to 'int'.
30208         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30209         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30210         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30211         upon out-of-memory.
30212         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30213         upon out-of-memory.
30214         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30215         out-of-memory.
30216         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30217         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30218         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30219         Update.
30220         (gl_carray_list_implementation): Update.
30221         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30222         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30223         gl_linked_create_empty. Return NULL upon out-of-memory.
30224         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30225         out-of-memory.
30226         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30227         Change return type to 'int'. Return -1 upon out-of-memory.
30228         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30229         out-of-memory.
30230         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30231         upon out-of-memory.
30232         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30233         upon out-of-memory.
30234         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30235         NULL upon out-of-memory.
30236         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30237         upon out-of-memory.
30238         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30239         out-of-memory.
30240         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30241         Update.
30242         * lib/gl_linked_list.c: Don't include xalloc.h.
30243         (gl_linked_list_implementation): Update.
30244         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30245         (add_to_bucket): Change return type to 'int'.
30246         (gl_linkedhash_list_implementation): Update.
30247         * lib/gl_anytree_list1.h (free_subtree): New function.
30248         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30249         gl_tree_create_empty. Return NULL upon out-of-memory.
30250         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30251         Change return type to 'int'. Return -1 upon out-of-memory.
30252         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30253         out-of-memory.
30254         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30255         (gl_tree_remove_node): New function, moved here from
30256         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30257         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30258         Update.
30259         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30260         malloc, not xmalloc. Return NULL upon out-of-memory.
30261         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30262         out-of-memory.
30263         (gl_tree_remove_node_from_tree): New function, extracted from
30264         gl_tree_remove_node.
30265         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30266         upon out-of-memory.
30267         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30268         out-of-memory.
30269         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30270         upon out-of-memory.
30271         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30272         upon out-of-memory.
30273         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30274         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30275         not xmalloc. Return NULL upon out-of-memory.
30276         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30277         out-of-memory.
30278         (gl_tree_remove_node_from_tree): New function, extracted from
30279         gl_tree_remove_node.
30280         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30281         upon out-of-memory.
30282         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30283         out-of-memory.
30284         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30285         upon out-of-memory.
30286         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30287         upon out-of-memory.
30288         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30289         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30290         gl_anytree_list1.h before gl_anyavltree_list2.h.
30291         (gl_avltree_list_implementation): Update.
30292         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30293         gl_anytree_list1.h before gl_anyavltree_list2.h.
30294         (gl_rbtree_list_implementation): Update.
30295         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30296         Change return type to 'int'. Return -1 upon out-of-memory. Use
30297         __builtin_expect.
30298         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30299         (gl_avltreehash_list_implementation): Update.
30300         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30301         (gl_rbtreehash_list_implementation): Update.
30302         * modules/array-list (Depends-on): Remove xalloc.
30303         * modules/carray-list (Depends-on): Likewise.
30304         * modules/linked-list (Depends-on): Likewise.
30305         * modules/linkedhash-list (Depends-on): Likewise.
30306         * modules/avltree-list (Depends-on): Likewise.
30307         * modules/rbtree-list (Depends-on): Likewise.
30308         * modules/avltreehash-list (Depends-on): Likewise.
30309         * modules/rbtreehash-list (Depends-on): Likewise.
30310
30311         * modules/xsublist: New file.
30312         * lib/gl_xsublist.h: New file.
30313         * lib/gl_xsublist.c: New file.
30314         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30315         (gl_sublist_nx_create): New declaration.
30316         * lib/gl_sublist.c: Don't include xalloc.h.
30317         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30318         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30319         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30320         Change return type to 'int'. Return -1 upon out-of-memory.
30321         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30322         upon out-of-memory.
30323         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30324         NULL upon out-of-memory.
30325         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30326         upon out-of-memory.
30327         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30328         NULL upon out-of-memory.
30329         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30330         NULL upon out-of-memory.
30331         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30332         upon out-of-memory.
30333         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30334         (gl_sublist_list_implementation): Update.
30335         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30336         upon out-of-memory.
30337         * modules/sublist (Depends-on): Remove xalloc.
30338
30339         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30340         * tests/test-carray_list.c: Likewise.
30341         * tests/test-linked_list.c: Likewise.
30342         * tests/test-linkedhash_list.c: Likewise.
30343         * tests/test-avltree_list.c: Likewise.
30344         * tests/test-rbtree_list.c: Likewise.
30345         * tests/test-avltreehash_list.c: Likewise.
30346         * tests/test-rbtreehash_list.c: Likewise.
30347         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30348         * modules/carray-list-tests (Makefile.am): Likewise.
30349         * modules/linked-list-tests (Makefile.am): Likewise.
30350         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30351         * modules/avltree-list-tests (Makefile.am): Likewise.
30352         * modules/rbtree-list-tests (Makefile.am): Likewise.
30353         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30354         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30355
30356         * NEWS: Mention the changes.
30357
30358         * lib/clean-temp.c: Include gl_xlist.h.
30359         * modules/clean-temp (Depends-on): Add xlist.
30360
30361         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30362         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30363
30364         * tests/test-array_oset.c: Include gl_xlist.h.
30365         * modules/array-oset-tests (Depends-on): Add xlist.
30366
30367         Reported by José E. Marchesi <jemarch@gnu.org>.
30368
30369 2009-12-13  Bruno Haible  <bruno@clisp.org>
30370
30371         Move the malloc checking from module 'oset' to new module 'xoset'.
30372         * modules/xoset: New file.
30373         * lib/gl_xoset.h: New file.
30374         * lib/gl_xoset.c: New file.
30375         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30376         declarations.
30377         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30378         (struct gl_oset_implementation): Rename and change methods accordingly.
30379         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30380         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30381         'int'. Mark as __warn_unused_result__.
30382         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30383         gl_oset_create_empty.
30384         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30385         'int'.
30386         * lib/gl_array_oset.c: Don't include xalloc.h.
30387         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30388         malloc, not xmalloc.
30389         (grow): Change return type to 'int'. Don't call xalloc_die.
30390         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30391         to 'int'.
30392         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30393         'int'.
30394         (gl_array_oset_implementation): Update.
30395         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30396         gl_tree_create_empty.
30397         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30398         'int'.
30399         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30400         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30401         xmalloc.
30402         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30403         not xmalloc.
30404         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30405         xmalloc.
30406         (gl_avltree_oset_implementation): Update.
30407         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30408         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30409         xmalloc.
30410         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30411         not xmalloc.
30412         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30413         xmalloc.
30414         (gl_rbtree_oset_implementation): Update.
30415         * modules/array-oset (Depends-on): Remove xalloc.
30416         * modules/avltree-oset (Depends-on): Likewise.
30417         * modules/rbtree-oset (Depends-on): Likewise.
30418         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30419         * tests/test-avltree_oset.c: Likewise.
30420         * tests/test-rbtree_oset.c: Likewise.
30421         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30422         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30423         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30424         * NEWS: Mention the change.
30425
30426 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30427
30428         maint.mk: allow a project to override release-prep commands
30429         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30430         commands into a new rule.
30431         (release-prep): New rule.
30432         (release-prep-hook): New overridable variable.
30433
30434 2009-12-13  Bruno Haible  <bruno@clisp.org>
30435
30436         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30437
30438 2009-12-13  Jim Meyering  <meyering@redhat.com>
30439
30440         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30441         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30442
30443 2009-12-12  Bruno Haible  <bruno@clisp.org>
30444
30445         duplocale: Tweak.
30446         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30447
30448 2009-12-12  Karl Berry  <karl@gnu.org>
30449
30450         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30451
30452 2009-12-12  Bruno Haible  <bruno@clisp.org>
30453
30454         * m4/po.m4: Undo incorrect untabification.
30455
30456 2009-12-12  Bruno Haible  <bruno@clisp.org>
30457
30458         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30459         * modules/c-strtod (Depends-on): Add locale.
30460         * modules/c-strtold (Depends-on): Likewise.
30461
30462 2009-12-12  Bruno Haible  <bruno@clisp.org>
30463
30464         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30465
30466 2009-12-11  Eric Blake  <ebb9@byu.net>
30467
30468         setenv: relax requirement in light of POSIX ruling
30469         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30470         not NULL.
30471         * tests/test-setenv.c (main): Relax test.
30472         * tests/test-unsetenv.c (main): Likewise.
30473         * doc/posix-functions/setenv.texi (setenv): Document this.
30474         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30475
30476 2009-12-11  Bruno Haible  <bruno@clisp.org>
30477
30478         New module 'fd-safer-flag'.
30479         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30480         * lib/dup-safer.c (dup_safer_flag): Remove function.
30481         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30482         * lib/fd-safer.c (fd_safer_flag): Remove function.
30483         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30484         * modules/cloexec (configure.ac): Drop indicator macro.
30485         * modules/fd-safer-flag: New file.
30486         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30487         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30488         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30489
30490 2009-12-11  Bruno Haible  <bruno@clisp.org>
30491
30492         Tests for module 'nl_langinfo'.
30493         * modules/nl_langinfo-tests: New file.
30494         * tests/test-nl_langinfo.sh: New file.
30495         * tests/test-nl_langinfo.c: New file.
30496
30497         New module 'nl_langinfo'.
30498         * lib/nl_langinfo.c: New file.
30499         * m4/nl_langinfo.m4: New file.
30500         * modules/nl_langinfo: New file.
30501         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30502
30503 2009-12-11  Bruno Haible  <bruno@clisp.org>
30504
30505         Tests for module 'langinfo'.
30506         * modules/langinfo-tests: New file.
30507         * tests/test-langinfo.c: New file.
30508
30509         New module 'langinfo'.
30510         * lib/langinfo.in.h: New file.
30511         * m4/langinfo_h.m4: New file.
30512         * modules/langinfo: New file.
30513         * doc/posix-headers/langinfo.texi: Mention the new module.
30514
30515 2009-12-11  Bruno Haible  <bruno@clisp.org>
30516
30517         * lib/config.charset: Untabify.
30518
30519 2009-12-11  Bruno Haible  <bruno@clisp.org>
30520
30521         * modules/unistd-safer (configure.ac): Drop indicator macro.
30522
30523 2009-12-11  Bruno Haible  <bruno@clisp.org>
30524
30525         Move pipe2-safer code to its own file.
30526         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30527         * lib/pipe-safer.c (pipe2_safer): Remove function.
30528         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30529         (Makefile.am): Add it to lib_SOURCES.
30530
30531 2009-12-10  Bruno Haible  <bruno@clisp.org>
30532
30533         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30534
30535 2009-12-10  Bruno Haible  <bruno@clisp.org>
30536
30537         Declare which arguments expect non-NULL values, for GCC and clang.
30538         * build-aux/arg-nonnull.h: New file.
30539         * modules/arg-nonnull: New file.
30540         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30541         (inet_ntop, inet_pton): Use it.
30542         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30543         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30544         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30545         (open, openat): Use it.
30546         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30547         (fnmatch): Use it.
30548         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30549         (getopt, getopt_long, getopt_long_only): Use it.
30550         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30551         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30552         Use it.
30553         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30554         (iconv_open): Use it.
30555         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30556         (strtoimax, strtoumax): Use it.
30557         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30558         (duplocale): Use it.
30559         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30560         (frexp, frexpl): Use it.
30561         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30562         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30563         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30564         (tsearch, tfind, tdelete, twalk): Use it.
30565         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30566         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30567         sigpending): Use it.
30568         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30569         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30570         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30571         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30572         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30573         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30574         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30575         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30576         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30577         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30578         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30579         Use it.
30580         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30581         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30582         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30583         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30584         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30585         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30586         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30587         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30588         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30589         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30590         strtoull, unsetenv): Use it.
30591         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30592         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30593         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30594         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30595         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30596         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30597         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30598         (strcasecmp, strncasecmp): Use it.
30599         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30600         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30601         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30602         rpl_setsockopt): Use it.
30603         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30604         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30605         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30606         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30607         (gettimeofday): Use it.
30608         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30609         (times): Use it.
30610         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30611         (uname): Use it.
30612         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30613         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30614         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30615         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30616         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30617         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30618         unlinkat, write): Use it.
30619         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30620         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30621         * lib/argv-iter.h: Include arg-nonnull.h.
30622         (_ATTRIBUTE_NONNULL_): Remove macro.
30623         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30624         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30625         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30626         optimization.
30627         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30628         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30629         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30630         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30631         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30632         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30633         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30634         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30635         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30636         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30637         * modules/dirent (Depends-on): Add arg-nonnull.
30638         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30639         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30640         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30641         * modules/fnmatch (Depends-on): Add arg-nonnull.
30642         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30643         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30644         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30645         * modules/glob (Depends-on): Add arg-nonnull.
30646         (Makefile.am): Insert arg-nonnull.h into glob.h.
30647         * modules/iconv_open (Depends-on): Add arg-nonnull.
30648         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30649         * modules/inttypes (Depends-on): Add arg-nonnull.
30650         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30651         * modules/locale (Depends-on): Add arg-nonnull.
30652         (Makefile.am): Insert arg-nonnull.h into locale.h.
30653         * modules/math (Depends-on): Add arg-nonnull.
30654         (Makefile.am): Insert arg-nonnull.h into math.h.
30655         * modules/netdb (Depends-on): Add arg-nonnull.
30656         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30657         * modules/search (Depends-on): Add arg-nonnull.
30658         (Makefile.am): Insert arg-nonnull.h into search.h.
30659         * modules/signal (Depends-on): Add arg-nonnull.
30660         (Makefile.am): Insert arg-nonnull.h into signal.h.
30661         * modules/spawn (Depends-on): Add arg-nonnull.
30662         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30663         * modules/stdio (Depends-on): Add arg-nonnull.
30664         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30665         * modules/stdlib (Depends-on): Add arg-nonnull.
30666         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30667         * modules/string (Depends-on): Add arg-nonnull.
30668         (Makefile.am): Insert arg-nonnull.h into string.h.
30669         * modules/strings (Depends-on): Add arg-nonnull.
30670         (Makefile.am): Insert arg-nonnull.h into strings.h.
30671         * modules/sys_socket (Depends-on): Add arg-nonnull.
30672         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30673         * modules/sys_stat (Depends-on): Add arg-nonnull.
30674         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30675         * modules/sys_time (Depends-on): Add arg-nonnull.
30676         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30677         * modules/sys_times (Depends-on): Add arg-nonnull.
30678         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30679         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30680         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30681         * modules/time (Depends-on): Add arg-nonnull.
30682         (Makefile.am): Insert arg-nonnull.h into time.h.
30683         * modules/unistd (Depends-on): Add arg-nonnull.
30684         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30685         * modules/wchar (Depends-on): Add arg-nonnull.
30686         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30687         * modules/argv-iter (Depends-on): Add arg-nonnull.
30688         * tests/test-canonicalize.c (null_ptr): New function.
30689         (main): Use it.
30690         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30691         (main): Use it.
30692         * tests/test-memmem.c (null_ptr): New function.
30693         (main): Use it.
30694         Reported by Jim Meyering.
30695
30696 2009-12-10  Bruno Haible  <bruno@clisp.org>
30697
30698         Use spaces for indentation, not tabs.
30699         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30700         * m4/*.m4: Untabify.
30701         * build-aux/*.h: Untabify.
30702         * tests/**/*.[hc]: Untabify.
30703         * README: New section "Indent with spaces, not TABs", based on
30704         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30705         * NEWS: Mention the change.
30706
30707 2009-12-10  Bruno Haible  <bruno@clisp.org>
30708
30709         pty test: Fix link error.
30710         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30711         test_pty_LDADD.
30712
30713 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30714
30715         * modules/pty: New file.
30716         * modules/pty-tests: New file.
30717         * m4/pty.m4: New file.
30718         * tests/test-pty.c: New file.
30719         * doc/glibc-headers/pty.texi: Modified.
30720         * doc/glibc-functions/forkpty.texi: Modified.
30721         * doc/glibc-functions/openpty.texi: Modified.
30722
30723 2009-12-10  Bruno Haible  <bruno@clisp.org>
30724
30725         Avoid syntax error in C++ mode.
30726         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30727
30728 2009-12-10  Bruno Haible  <bruno@clisp.org>
30729
30730         Use sed with option -e.
30731         * gnulib-tool (func_version, func_emit_copyright_notice,
30732         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30733         option -e to sed.
30734         * modules/link-warning (Makefile.am): Likewise.
30735
30736 2009-12-10  Jim Meyering  <meyering@redhat.com>
30737
30738         mgetgroups: do not write bytes beyond end of malloc'd buffer
30739         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30740         username, we call getgroups with a one-element-shorter buffer,
30741         but still told it the length was original, max_n_groups.
30742
30743 2009-12-09  Eric Blake  <ebb9@byu.net>
30744
30745         cloexec: relax license
30746         * modules/cloexec (Maintainer): Add myself.
30747         (License): Use LGPL, not GPL.
30748
30749         link-warning: optimize generation
30750         * modules/link-warning (Makefile.am): Reduce process usage.
30751
30752 2009-12-09  Bruno Haible  <bruno@clisp.org>
30753
30754         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30755         workaround was added on 2009-11-17.
30756
30757 2009-12-09  Jim Meyering  <meyering@redhat.com>
30758             Bruno Haible  <bruno@clisp.org>
30759
30760         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30761         * modules/link-warning (Makefile.am): Make the comment-removing sed
30762         command more robust in the face of bootstrap-prepended comment lines.
30763
30764 2009-12-09  Bruno Haible  <bruno@clisp.org>
30765
30766         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30767         most one group.
30768
30769 2009-12-09  Simon Josefsson <simon@josefsson.org>
30770             Bruno Haible  <bruno@clisp.org>
30771
30772         * build-aux/link-warning.h: Add copyright notice.
30773         * modules/link-warning (Makefile.am): Generate link-warning.h from
30774         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30775         * NEWS: Mention change in link-warning module.
30776         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30777         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30778         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30779         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30780         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30781         * modules/math (Makefile.am): Add dependency to math.h.
30782         * modules/search (Makefile.am): Add dependency to search.h.
30783         * modules/signal (Makefile.am): Add dependency to signal.h.
30784         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30785         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30786         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30787         * modules/string (Makefile.am): Add dependency to string.h.
30788         * modules/strings (Makefile.am): Add dependency to strings.h.
30789         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30790         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30791         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30792         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30793         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30794         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30795         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30796         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30797         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30798
30799 2009-12-09  Bruno Haible  <bruno@clisp.org>
30800
30801         fchdir: Optimize away rpl_fstat when possible.
30802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30803         REPLACE_OPEN_DIRECTORY.
30804         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30805
30806 2009-12-09  Bruno Haible  <bruno@clisp.org>
30807
30808         * lib/fchdir.c: Update comment.
30809
30810 2009-12-09  Bruno Haible  <bruno@clisp.org>
30811
30812         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30813
30814 2009-12-08  Eric Blake  <ebb9@byu.net>
30815
30816         fchdir: avoid memory leak on re-registration.
30817         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30818
30819 2009-12-08  Jim Meyering  <meyering@redhat.com>
30820
30821         init.sh: avoid Solaris 10 /bin/sh portability problem
30822         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30823         sourced script:
30824           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30825           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30826           bar
30827         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30828         and two tests used that idiom.
30829         * tests/init.sh: Update suggested usage comments.
30830         (path_prepend_): New function, to be used in place
30831         of the --src-path=DIR option.
30832         (setup_): Move PATH-prepending code into path_prepend_.
30833         * tests/test-pread.sh: Adapt to new usage.
30834         * tests/test-xalloc-die.sh: Likewise.
30835
30836 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30837
30838         * doc/gnulib.texi (Glibc pty.h): Add.
30839         * doc/glibc-functions/forkpty.texi: Add.
30840         * doc/glibc-functions/openpty.texi: Add.
30841         Suggested by Bruno Haible.
30842
30843 2009-12-08  Eric Blake  <ebb9@byu.net>
30844
30845         fchdir: fix logic bugs
30846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30847         * tests/test-fchdir.c (main): Enhance test.
30848         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30849         is in use.
30850
30851         dup2: fix logic bugs
30852         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30853         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30854         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30855         exists.
30856         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30857
30858 2009-12-07  Eric Blake  <ebb9@byu.net>
30859
30860         unlink: fix m4 detection
30861         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30862
30863         unistd-safer: add unit test
30864         * modules/unistd-safer-tests: New file.
30865         * tests/test-dup-safer.c: Likewise.
30866         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30867         * tests/test-dup2.c (setmode): Likewise.
30868         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30869
30870         cloexec: preserve text vs. binary across dup_cloexec
30871         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30872         mode.
30873         * modules/dup2-tests (Depends-on): Add binary-io.
30874         * modules/cloexec-tests (Depends-on): Likewise.
30875         * tests/test-dup2.c (setmode, is_mode): New helpers.
30876         (main): Add tests that translation mode is preserved.
30877         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
30878         Reported by Bruno Haible.
30879
30880         mgetgroups: reduce duplicate listings
30881         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
30882         resulting array.
30883         * tests/test-chown.h (test_chown): Simplify client.
30884         * tests/test-lchown.h (test_lchown): Likewise.
30885
30886 2009-12-06  Bruno Haible  <bruno@clisp.org>
30887
30888         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
30889         value.
30890
30891 2009-12-06  Bruno Haible  <bruno@clisp.org>
30892
30893         * lib/progname.c: Include stdio.h, stdlib.h.
30894         (set_program_name): Reject a NULL argument.
30895
30896 2009-12-05  Eric Blake  <ebb9@byu.net>
30897
30898         pipe2-safer: new module
30899         * modules/pipe2-safer: New file.
30900         * lib/unistd-safer.h (pipe2_safer): New prototype.
30901         * lib/unistd--.h (pipe2): New wrapper.
30902         * lib/pipe-safer.c (pipe2_safer): New function.
30903         * modules/pipe (Depends-on): Add pipe2-safer.
30904         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
30905
30906         stdlib-safer: preserve cloexec flag for mkostemp[s]
30907         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
30908         fd_safer_flag.
30909
30910         unistd-safer: allow preservation of cloexec status via flag
30911         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30912         prototypes.
30913         * lib/dup-safer.c (dup_safer_flag): New function.
30914         * lib/fd-safer.c (fd_safer_flag): Likewise.
30915         * modules/cloexec (configure.ac): Set witness.
30916
30917         test-dup2: enhance test
30918         * modules/dup2-tests (Depends-on): Add cloexec.
30919         * tests/test-dup2.c (main): Enhance test.
30920
30921         cloexec: add dup_cloexec
30922         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30923         header and comments.
30924         * lib/cloexec.c (set_cloexec_flag): Add comments.
30925         (dup_cloexec): New function, with mingw implementation borrowed
30926         from...
30927         * lib/w32spawn.h (dup_noinherit): ...here.
30928         * modules/execute (Depends-on): Add cloexec.
30929         * modules/pipe (Depends-on): Likewise.
30930         * modules/cloexec (Depends-on): Add dup2.
30931         * modules/cloexec-tests (Files): New file.
30932         * tests/test-cloexec.c: Likewise.
30933
30934         test-xalloc-die: fix test for mingw
30935         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30936         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30937         directory and .exe suffix off argv[0] output.
30938
30939         test-fseeko: fix test for mingw
30940         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30941         than undefining fseek, so test will pass on mingw.
30942
30943 2009-12-05  Bruno Haible  <bruno@clisp.org>
30944
30945         * lib/progname.h (set_program_name): Clarify specification.
30946         * lib/progname.c (set_program_name): Likewise.
30947         Reported by Jim Meyering.
30948
30949 2009-12-05  Jim Meyering  <meyering@redhat.com>
30950
30951         maint.mk: backslash-escape parens in default regexp
30952         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30953         backslash-escape the literal parentheses.
30954
30955         maint.mk: news-date-check: use grep -E
30956         * top/maint.mk (today): Define a Make variable, not a...
30957         (news-date-check): ...shell variable.
30958         (news-date-regexp): Use the Make variable.
30959         Use grep's -E option.  Change the failing diagnostic to mention
30960         the variable, $(news-date-regexp).
30961
30962 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30963
30964         maintainer-makefile: allow customization of NEWS entry format
30965         * top/maint.mk (news-date-regexp): New overridable variable.
30966         (news-date-check): Use it.
30967
30968 2009-12-04  Eric Blake  <ebb9@byu.net>
30969
30970         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30971         * lib/mgetgroups.h (xgetgroups): New prototype.
30972         * lib/mgetgroups.c (xgetgroups): New wrapper.
30973         (mgetgroups): Handle ENOSYS.
30974         * modules/mgetgroups (Depends-on): Add realloc.
30975         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30976
30977         mgetgroups: avoid argument promotion issues with -1
30978         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30979         for invalid gid_t.
30980         * tests/test-chown.h (getegid, test_chown): Likewise.
30981         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30982
30983 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30984
30985         exclude: Fix header file problems.
30986         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30987
30988 2009-12-01  Jim Meyering  <meyering@redhat.com>
30989
30990         fts: fts_open: do not let an empty string cause immediate failure
30991         This is required in support of GNU rm, for which the command
30992         "rm A '' B" must process and remove both A and B, in spite of
30993         the empty string argument.
30994         * lib/fts.c (fts_open): Do not let the presence of an empty string
30995         cause fts_open to fail immediately.  Most fts-using tools must be
30996         able to process all arguments, in order, and can be expected to
30997         diagnose such arguments themselves.
30998
30999 2009-11-30  Eric Blake  <ebb9@byu.net>
31000
31001         utimens: fix compilation error
31002         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31003         Declare variable at right scope.
31004
31005 2009-11-29  Jim Meyering  <meyering@redhat.com>
31006
31007         bootstrap: handle perl-5.11's changed --version output
31008         * build-aux/bootstrap (get_version): Handle perl separately,
31009         since perl-5.11's --version output is different.
31010
31011 2009-11-28  Jim Meyering  <meyering@redhat.com>
31012
31013         userspec: depend on the inttostr module, too
31014         * modules/userspec (Depends-on): Add inttostr.
31015
31016         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31017         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31018         number of MAXUID when it evaluates to (uid_t) -1.
31019         Likewise for group ID.  Reported by Matt McCutchen in
31020         <http://savannah.gnu.org/bugs/?28113>
31021
31022         userspec: reformat to use spaces, not TABs
31023         * lib/userspec.c: Expand TABs to spaces.
31024         Add Emacs' "indent-tabs-mode: nil" hint.
31025
31026 2009-11-27  Eric Blake  <ebb9@byu.net>
31027
31028         getopt-gnu: flush out another BSD bug
31029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31030         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31031         flush out BSD bug.
31032         * tests/test-getopt.h (test_getopt): End lists with NULL.
31033         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31034         (test_getopt_long_posix): Enhance test.
31035         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31036         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31037         getopt-gnu.
31038         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31039         Likewise.
31040
31041 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31042
31043         * modules/idpriv-droptemp-tests (Notice): Fix text.
31044
31045 2009-11-27  Jim Meyering  <meyering@redhat.com>
31046
31047         test-xalloc-die: avoid spurious failure due to libtool argv difference
31048         In a libtool-enabled project, this test would fail due to a difference
31049         in the emitted program name, e.g.,
31050         -test-xalloc-die: memory exhausted
31051         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31052         Use program to avoid that.
31053         * modules/xalloc-die-tests (Depends-on): Add progname.
31054         * tests/test-xalloc-die.c: Include progname.h".
31055         (program_name): Remove decl.
31056         (main): Call set_program_name.
31057         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31058
31059 2009-11-26  Richard Jones  <rjones@redhat.com>
31060
31061         w32sock: leave win32 error in place.
31062         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31063
31064 2009-11-26  Eric Blake  <ebb9@byu.net>
31065
31066         init.sh: suggest to use skip_ and fail_ functions in comments
31067         * tests/init.sh: Add a sentence.
31068
31069 2009-11-25  Bruno Haible  <bruno@clisp.org>
31070
31071         init.sh: add documentation in comments
31072         * tests/init.sh: Add some developer and user documentation.
31073
31074 2009-11-26  Jim Meyering  <meyering@redhat.com>
31075
31076         init.sh: accommodate even those who specify bogus srcdir manually
31077         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31078         configure-time tests to be sanitized, so that there is no need to
31079         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31080         (with no double quotes) suffices.  However, since tests may be
31081         invoked manually, and since you may explicitly set srcdir to the
31082         name of a directory containing spaces, do quote its uses here.
31083         * tests/test-pread.sh: Likewise.
31084         Suggested by Bruno Haible.
31085
31086         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31087         * tests/test-pread.sh: Write no data into the pipe, because
31088         test-pread actually reads none.  This avoids a diagnostic,
31089         "bash: echo: write error: Broken pipe", that arises in the unusual
31090         event something is ignoring SIGPIPE, and might be interpreted
31091         as some sort of failure.  Reported by Bruno Haible.
31092
31093 2009-11-25  Jim Meyering  <meyering@redhat.com>
31094
31095         test-pread: cover failure with ESPIPE and EINVAL
31096         * tests/test-pread.c (main): Test for failure, too.
31097         * tests/test-pread.sh: Invoke with stdin on a pipe.
31098         Suggested by Eric Blake.
31099
31100         pread: improvement and fix
31101         * modules/pread (Depends-on): Depend on lseek, for portability to
31102         e.g., mingw.  Suggested by Eric Blake.
31103         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31104
31105         unistd.in.h: correct declaration of pread
31106         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31107         Reported by Richard W.M. Jones.
31108
31109         test-pread.sh: distribute the test script
31110         * modules/pread-tests (Files): Include test-pread.sh.
31111
31112         test-pread.sh: clean up
31113         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31114         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31115         That is unnecessary, since it's always ".".
31116         Suggestion from Eric Blake.
31117
31118         test-pread.sh: make executable
31119         * tests/test-pread.sh: Set executable bit.
31120         Reported by Eric Blake.
31121
31122         correct typo in test-pread.sh
31123         * tests/test-pread.sh: Add #! line.
31124
31125         test pread
31126         * tests/test-pread.c: New file.
31127         * tests/test-pread.sh: Likewise.
31128         * modules/pread-tests: Likewise.
31129
31130         pread: new module
31131         * modules/pread: New file.
31132         * lib/unistd.in.h (pread): Define/declare.
31133         * lib/pread.c (pread): New file.
31134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31135         * modules/unistd (Makefile.am): Substitute witnesses.
31136         * doc/posix-functions/pread.texi (pread): Update.
31137         * MODULES.html.sh: Add pread.
31138
31139 2009-11-25  Jim Meyering  <meyering@redhat.com>
31140
31141         tests/init.sh: new file to be used via most *.sh tests
31142         * tests/init.sh: New file.
31143
31144 2009-11-25  Eric Blake  <ebb9@byu.net>
31145
31146         utimens: work around older Linux failure with symlinks
31147         * lib/utimens.c (lutimensat_works_really): New variable.
31148         (fdutimens, lutimens): Use it to manage kernels that support
31149         nanosecond times on files, but not on symlinks.
31150         Reported by OndÅ™ej Vašík.
31151
31152         utimes: fix configure grammar
31153         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31154
31155 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31156
31157         regex: Fix fastmap for multibyte character ranges.
31158         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31159         characters when a multibyte character range is included.
31160
31161 2009-11-22  Andy Wingo  <wingo@pobox.com>
31162
31163         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31164         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31165
31166 2009-11-24  Bruno Haible  <bruno@clisp.org>
31167
31168         doc: Most *_l functions exist in MacOS X 10.5.
31169         * doc/posix-functions/duplocale.texi: Update platforms list.
31170         * doc/posix-functions/freelocale.texi: Likewise.
31171         * doc/posix-functions/newlocale.texi: Likewise.
31172         * doc/posix-functions/uselocale.texi: Likewise.
31173         * doc/posix-functions/isalnum_l.texi: Likewise.
31174         * doc/posix-functions/isalpha_l.texi: Likewise.
31175         * doc/posix-functions/isblank_l.texi: Likewise.
31176         * doc/posix-functions/iscntrl_l.texi: Likewise.
31177         * doc/posix-functions/isdigit_l.texi: Likewise.
31178         * doc/posix-functions/isgraph_l.texi: Likewise.
31179         * doc/posix-functions/islower_l.texi: Likewise.
31180         * doc/posix-functions/isprint_l.texi: Likewise.
31181         * doc/posix-functions/ispunct_l.texi: Likewise.
31182         * doc/posix-functions/isspace_l.texi: Likewise.
31183         * doc/posix-functions/isupper_l.texi: Likewise.
31184         * doc/posix-functions/iswalnum_l.texi: Likewise.
31185         * doc/posix-functions/iswalpha_l.texi: Likewise.
31186         * doc/posix-functions/iswblank_l.texi: Likewise.
31187         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31188         * doc/posix-functions/iswctype_l.texi: Likewise.
31189         * doc/posix-functions/iswdigit_l.texi: Likewise.
31190         * doc/posix-functions/iswgraph_l.texi: Likewise.
31191         * doc/posix-functions/iswlower_l.texi: Likewise.
31192         * doc/posix-functions/iswprint_l.texi: Likewise.
31193         * doc/posix-functions/iswpunct_l.texi: Likewise.
31194         * doc/posix-functions/iswspace_l.texi: Likewise.
31195         * doc/posix-functions/iswupper_l.texi: Likewise.
31196         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31197         * doc/posix-functions/isxdigit_l.texi: Likewise.
31198         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31199         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31200         * doc/posix-functions/strcoll_l.texi: Likewise.
31201         * doc/posix-functions/strfmon_l.texi: Likewise.
31202         * doc/posix-functions/strftime_l.texi: Likewise.
31203         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31204         * doc/posix-functions/strxfrm_l.texi: Likewise.
31205         * doc/posix-functions/tolower_l.texi: Likewise.
31206         * doc/posix-functions/toupper_l.texi: Likewise.
31207         * doc/posix-functions/towctrans_l.texi: Likewise.
31208         * doc/posix-functions/towlower_l.texi: Likewise.
31209         * doc/posix-functions/towupper_l.texi: Likewise.
31210         * doc/posix-functions/wcscoll_l.texi: Likewise.
31211         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31212         * doc/posix-functions/wctrans_l.texi: Likewise.
31213         * doc/posix-functions/wctype_l.texi: Likewise.
31214         * doc/glibc-functions/strptime_l.texi: Likewise.
31215         * doc/glibc-functions/strtod_l.texi: Likewise.
31216         * doc/glibc-functions/strtof_l.texi: Likewise.
31217         * doc/glibc-functions/strtol_l.texi: Likewise.
31218         * doc/glibc-functions/strtold_l.texi: Likewise.
31219         * doc/glibc-functions/strtoll_l.texi: Likewise.
31220         * doc/glibc-functions/strtoul_l.texi: Likewise.
31221         * doc/glibc-functions/strtoull_l.texi: Likewise.
31222         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31223         * doc/glibc-functions/wcstod_l.texi: Likewise.
31224         * doc/glibc-functions/wcstof_l.texi: Likewise.
31225         * doc/glibc-functions/wcstol_l.texi: Likewise.
31226         * doc/glibc-functions/wcstold_l.texi: Likewise.
31227         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31228         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31229         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31230
31231 2009-11-24  Bruno Haible  <bruno@clisp.org>
31232
31233         duplocale: Fix logic bug.
31234         * lib/duplocale.c: Don't include <langinfo.h>.
31235         (_NL_LOCALE_NAME): Remove macro.
31236         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31237         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31238
31239 2009-11-23  Jim Meyering  <meyering@redhat.com>
31240
31241         test-update-copyright: don't hard-code /usr/bin/perl
31242         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31243         perl to print the current year.  Gilles Espinasse reported that
31244         the replaced use of perl was hard-coded as /usr/bin/perl.
31245
31246 2009-11-23  Bruno Haible  <bruno@clisp.org>
31247
31248         duplocale: Add support for glibc 2.3.x.
31249         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31250
31251 2009-11-22  Bruno Haible  <bruno@clisp.org>
31252
31253         vasnprintf: Tiny optimization.
31254         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31255         MacOS X.
31256
31257 2009-11-22  Bruno Haible  <bruno@clisp.org>
31258
31259         Tests for module 'duplocale'.
31260         * modules/duplocale-tests: New file.
31261         * tests/test-duplocale.c: New file.
31262
31263         New module 'duplocale'.
31264         * m4/duplocale.m4: New file.
31265         * lib/locale.in.h (duplocale): New declaration.
31266         * lib/duplocale.c: New file.
31267         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31268         gl_LOCALE_H_DEFAULTS): New macros.
31269         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31270         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31271         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31272         REPLACE_DUPLOCALE.
31273         * modules/duplocale: New file.
31274         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31275
31276 2009-11-22  Bruno Haible  <bruno@clisp.org>
31277
31278         * modules/locale-tests (configure.ac): Test for newlocale function.
31279         * tests/test-locale.c: When the system has extended locale functions,
31280         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31281
31282         locale: Make locale_t available when possible.
31283         * lib/locale.in.h: Include <xlocale.h> when it exists.
31284         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31285         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31286         * modules/locale (Depends-on): Add extensions.
31287         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31288         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31289
31290 2009-11-22  Bruno Haible  <bruno@clisp.org>
31291
31292         Add comments.
31293         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31294         invocation.
31295         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31296         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31297         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31298
31299 2009-11-22  Bruno Haible  <bruno@clisp.org>
31300
31301         error: account for the possibility of freopen (stdout).
31302         * lib/error.c: Include <unistd.h>.
31303         (flush_stdout): New function, extracted from error and error_at_line.
31304         Determine stdout's fd dynamically.
31305         (error, error_at_line): Invoke flush_stdout.
31306         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31307         * modules/error (Depends-on): Add unistd.
31308
31309 2009-11-22  Bruno Haible  <bruno@clisp.org>
31310
31311         diffseq: Add comment.
31312         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31313
31314 2009-11-22  Jim Meyering  <meyering@redhat.com>
31315
31316         c-stack: avoid defining an unused static function
31317         * lib/c-stack.c (find_stack_direction): Do not define this function
31318         when it will not be used.
31319
31320         diffseq: avoid spurious gcc warnings
31321         * lib/diffseq.h (IF_LINT2): Define.
31322         (compareseq): Use it to initialize two members of "part".
31323         This avoids two used-uninitialized warnings.
31324
31325 2009-11-21  Jim Meyering  <meyering@redhat.com>
31326
31327         c-stack: avoid "ignoring return value of `write'" warning
31328         * lib/c-stack.c: Include "ignore-value.h".
31329         (die): Explicitly ignore each write return value.
31330         * modules/c-stack (Depends-on): Add ignore-value.
31331
31332 2009-11-21  Bruno Haible  <bruno@clisp.org>
31333
31334         diffseq: reduce scope of variable 'best'.
31335         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31336         variable, earlier used for two different purposes.
31337
31338 2009-11-21  Jim Meyering  <meyering@redhat.com>
31339
31340         diffseq: remove useless assignment to "best"
31341         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31342         assignment.  At that point "best" is already guaranteed to be zero.
31343
31344 2009-11-20  Eric Blake  <ebb9@byu.net>
31345
31346         build: mention ftp redirector in release announcements
31347         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31348         values that used to come from cfg.mk; mention FTP redirect URL.
31349         * build-aux/announce-gen: Mention the mirror list.
31350         Suggested by Karl Berry.
31351
31352         nanosleep: improve port to mingw
31353         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31355         LIB_NANOSLEEP, but only when needed.
31356         * modules/select (Link): Document LIBSOCKET.
31357         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31358         enough.
31359
31360         nanosleep: work around cygwin bug
31361         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31362         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31363         bug.
31364         (getnow): Delete, not needed.
31365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31366         LIB_CLOCK_GETTIME.
31367         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31368         clock-time, gettime.
31369         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31370         bug.
31371         * modules/nanosleep-tests: New test.
31372         * tests/test-nanosleep.c: New file.
31373
31374         sleep: work around cygwin bug
31375         * lib/sleep.c (rpl_sleep): Work around the bug.
31376         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31377         (gl_PREREQ_SLEEP): Delete unused macro.
31378         * modules/sleep (Depends-on): Add verify.
31379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31380         * modules/unistd (Makefile.am): Substitute witness.
31381         * lib/unistd.in.h (sleep): Update prototype.
31382         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31383         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31384         * modules/sleep-tests (Depends-on): Check for alarm.
31385
31386 2009-11-20  Jim Meyering  <meyering@redhat.com>
31387
31388         maint.mk: improve sc_prohibit_magic_number_exit
31389         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31390         so it does not match uses like System.exit(1).
31391         Add comments showing how to correct all offenders.
31392
31393 2009-11-19  Eric Blake  <ebb9@byu.net>
31394
31395         xalloc-die-tests: add missing library
31396         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31397
31398         test-xvasprintf: silence compiler warnings
31399         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31400         empty string from gcc.
31401
31402 2009-11-19  Jim Meyering  <meyering@redhat.com>
31403
31404         xfreopen: new module, from coreutils
31405         * modules/xfreopen: New module.
31406         * lib/xfreopen.c: New file.
31407         * lib/xfreopen.h: New file.
31408         * MODULES.html.sh (File stream based Input/Output"): Add it.
31409
31410 2009-11-19  Eric Blake  <ebb9@byu.net>
31411
31412         manywarnings: depend on warnings
31413         * modules/manywarnings (Depends-on): Add warnings.
31414
31415         build: avoid compiler warnings
31416         * lib/select.c (rpl_select): Delete unused variable.
31417         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31418
31419 2009-11-18  Eric Blake  <ebb9@byu.net>
31420
31421         tests: avoid false negative with --with-packager
31422         * tests/test-version-etc.sh: Discard packager information.
31423         * tests/test-argp-version-etc-1.sh: Likewise.
31424         Reported by Mike Frysinger.
31425
31426         utimens: fix regression on Solaris
31427         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31428         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31429         can only change fd timestamps via futimesat.  Instead, use an
31430         additional witness macro to avoid BSD bug.
31431         Reported by Jim Meyering.
31432
31433 2009-11-17  Eric Blake  <ebb9@byu.net>
31434
31435         usleep: use it to simplify tests
31436         * modules/stat-time-tests (Depends-on): Add usleep.
31437         (configure.ac): Drop usleep check.
31438         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31439         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31440         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31441         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31442         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31443         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31444         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31445         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31446         Likewise.
31447         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31448         * tests/test-lchown.h (nap): Likewise.
31449         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31450         * tests/test-stat-time.c (nap): Likewise.
31451         * tests/test-utimens-common.h (nap): Update comments.
31452
31453         usleep: new module
31454         * modules/usleep: New file.
31455         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31456         * lib/usleep.c (usleep): Likewise.
31457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31458         * modules/unistd (Makefile.am): Substitute witnesses.
31459         * lib/unistd.in.h (usleep): Add declaration.
31460         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31461         * MODULES.html.sh (Date and time): Likewise.
31462         * modules/usleep-tests (Depends-on): New test.
31463         * tests/test-usleep.c: New file.
31464
31465         chown: work around OpenBSD bug
31466         * lib/chown.c (rpl_chown): Work around the bug.
31467         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31468         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31469         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31470         * modules/chown (Depends-on): Add stdbool.
31471         * modules/lchown (Depends-on): Likewise.
31472         * doc/posix-functions/chown.texi (chown): Document the bug.
31473         * doc/posix-functions/lchown.texi (lchown): Likewise.
31474         * tests/test-lchown.h (test_chown): Relax test.
31475
31476         mkstemp: avoid conflict with C++ keyword template
31477         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31478         * lib/mkostemp.c (mkostemp): Likewise.
31479         * lib/mkostemps.c (mkostemps): Likewise.
31480         * lib/mkstemp.c (mkstemp): Likewise.
31481         * lib/mkstemps.c (mkstemps): Likewise.
31482
31483         xalloc-die-tests: optimize
31484         * tests/test-xalloc-die.sh: Reduce number of processes.
31485
31486 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31487
31488         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31489         patch from ludo@gnu.org (Ludovic Courtès).
31490
31491 2009-11-17  Jim Meyering  <meyering@redhat.com>
31492
31493         version-etc: use proper license string
31494         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31495         * modules/version-etc-fsf: Likewise.
31496
31497 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31498
31499         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31500         printed to stdout.  Deal with EOL differences.
31501
31502 2009-11-17  Eric Blake  <ebb9@byu.net>
31503
31504         unsetenv: work around Solaris bug
31505         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31506         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31507         Reported by Jim Meyering.
31508
31509         vasnprintf: avoid compiler warnings
31510         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31511         variables.
31512         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31513
31514 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31515
31516         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31517         settings since xalloc-die is no longer the self test,
31518         xalloc-die.sh is.
31519
31520 2009-11-17  Jim Meyering  <meyering@redhat.com>
31521
31522         test-xalloc-die.sh: make the code agree with the commit log
31523         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31524         at the end, just in case you happen to have a test-xalloc-die
31525         program in some other PATH directory.
31526
31527         test-xalloc-die.sh: fix a portability bug
31528         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31529         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31530         Otherwise, argv[0] (as often seen in diagnostics) would be too
31531         system-dependent, sometimes with, and sometimes without the leading "./".
31532
31533         version-etc-fsf: relax license to LGPLv3+
31534         * modules/version-etc-fsf (License): Relax license.
31535
31536 2009-11-16  Eric Blake  <ebb9@byu.net>
31537
31538         xalloc-die-tests: avoid printing null pointer
31539         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31540         shell script.
31541         * tests/test-xalloc-die.c (program_name): Declare.
31542         * tests/test-xalloc-die.sh (tmpfiles): New file.
31543
31544         setenv, unsetenv: work around various bugs
31545         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31546         (setenv) [HAVE_SETENV]: Work around bugs.
31547         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31548         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31549         for bugs.
31550         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31551         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31553         * modules/stdlib (Makefile.am): Update substitutions.
31554         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31555         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31556         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31557         * modules/setenv-tests: New test.
31558         * modules/unsetenv-tests: Likewise.
31559         * tests/test-setenv.c: New file.
31560         * tests/test-unsetenv.c: Likewise.
31561
31562 2009-11-16  Jim Meyering  <meyering@redhat.com>
31563
31564         version-etc: relax license to LGPLv3+
31565         * modules/version-etc (License): Relax license.
31566
31567         better AC_REQUIRE expanded-before-required-warning avoidance
31568         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31569         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31570         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31571         which is no longer needed.
31572
31573 2009-11-16  Eric Blake  <ebb9@byu.net>
31574
31575         test-freading: clean up temporary file
31576         * tests/test-freading.c (main): Remove file on success, and use
31577         ASSERT more liberally.
31578         Reported by Jim Meyering.
31579
31580 2009-11-16  Jim Meyering  <meyering@redhat.com>
31581
31582         avoid new AC_REQUIRE expanded-before-required warnings
31583         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31584         merely using it.
31585         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31586         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31587
31588 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31589
31590         * tests/test-xalloc-die.c: New file.
31591         * modules/xalloc-die-tests: New file.
31592         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31593         XFAIL_TESTS so it can be appended by modules.
31594
31595 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31596
31597         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31598         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31599
31600 2009-11-14  Eric Blake  <ebb9@byu.net>
31601
31602         fnmatch: avoid compiler warning
31603         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31604         to silence compiler warning about mismatch signedness in ?:.
31605         Reported by Robert Millan.
31606
31607         intprops: add double-inclusion guard
31608         * lib/intprops.h: Allow idempotent includes.
31609         Suggested by Bruce Korb.
31610
31611         openat: detect Solaris fchownat bug
31612         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31613         penalizing glibc chownat when only lchownat is broken.
31614         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31615         trailing slash bugs.
31616         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31617         * modules/openat-tests (Files): Include more files.
31618         (Depends-on): Add mgetgroups, sleep, stat-time.
31619         (configure.ac): Add additional checks.
31620         (Makefile.am): Build new test.
31621         * tests/test-fchownat.c: New file.
31622
31623         lchown: detect Solaris and FreeBSD bug
31624         * lib/lchown.c (rpl_lchown): Work around bug.
31625         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31627         * modules/unistd (Makefile.am): Populate it.
31628         * lib/unistd.in.h (lchown): Update declaration.
31629         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31630         * modules/lchown-tests: New file.
31631         * tests/test-lchown.h (test_lchown): Likewise.
31632         * tests/test-lchown.c (main): Likewise.
31633
31634         chown: detect Solaris and FreeBSD bug
31635         * lib/chown.c (rpl_chown): Work around bug.
31636         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31637         (gl_PREREQ_CHOWN): Delete.
31638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31639         * modules/unistd (Makefile.am): Populate it.
31640         * lib/unistd.in.h (chown): Update declaration.
31641         * lib/lchown.c (chown): Update client.
31642         * modules/lchown (Depends-on): Add lstat.
31643         * doc/posix-functions/chown.texi (chown): Document the bug.
31644         * doc/posix-functions/getgroups.texi (getgroups): Document
31645         getgroups pitfall.
31646         * modules/chown-tests: New file.
31647         * tests/test-chown.h (test_chown): Likewise.
31648         * tests/test-chown.c (main): Likewise.
31649
31650 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31651
31652         gnulib-tool: correctly detect absence of m4 directories
31653         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31654
31655 2009-11-14  Jim Meyering  <meyering@redhat.com>
31656
31657         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31658         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31659
31660 2009-11-14  John W. Eaton  <jwe@gnu.org>
31661
31662         strftime.h: wrap funtion declaration in extern "C" block
31663         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31664
31665 2009-11-13  Eric Blake  <ebb9@byu.net>
31666
31667         getgroups: avoid compiler warning
31668         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31669
31670         getgroups: work around FreeBSD bug
31671         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31672         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31673         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31674         * tests/test-getgroups.c (main): Fix buffer overrun.
31675
31676         getgroups: avoid compilation failure
31677         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31678         * modules/getgroups (Depends-on): Add stdint.
31679
31680 2009-11-13  Jim Meyering  <meyering@redhat.com>
31681
31682         test-getgroups: avoid compilation failure
31683         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31684
31685 2009-11-13  Eric Blake  <ebb9@byu.net>
31686
31687         mgetgroups: new module, taken from coreutils
31688         * modules/mgetgroups: New file.
31689         * lib/mgetgroups.h: Likewise.
31690         * lib/mgetgroups.c (mgetgroups): Likewise.
31691         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31692         * MODULES.html.sh (Users and groups): Mention it.
31693
31694         getgroups: don't expose GETGROUPS_T to user
31695         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31696         an element at a time if GETGROUPS_T is wrong size.
31697         * lib/getugroups.h (getugroups): Change signature.
31698         * lib/unistd.in.h (getgroups): Likewise.
31699         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31700         signature needs fixing.
31701         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31702         AC_TYPE_GETGROUPS.
31703         * modules/group-member (Depends-on): Add getgroups.
31704         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31705         (group_member): Rely on getgroups replacement.
31706         * lib/getugroups.c (getugroups): Use gid_t.
31707         * tests/test-getgroups.c (main): Likewise.
31708         * NEWS: Mention the signature change.
31709         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31710         problem with signature.
31711         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31712         GETGROUPS_T is still useful for setgroups.
31713
31714         getgroups, getugroups: provide stubs for mingw
31715         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31716         * lib/getugroups.c (getugroups): Likewise.
31717         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31718         function.  Modernize replacement scheme.
31719         (gl_PREREQ_GETGROUPS): Delete.
31720         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31721         * modules/getgroups (configure.ac): Declare witness.
31722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31723         * modules/unistd (Depends-on): Substitute witness.
31724         * lib/unistd.in.h (getgroups): Declare replacement.
31725
31726         getgroups: avoid calling exit
31727         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31728         drop xalloc.
31729         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31730         dependencies.
31731         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31732         exiting, in the rare case of malloc failure.
31733
31734         getgroups: fix logic error
31735         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31736         has more than 20 groups.
31737         * modules/getgroups-tests: New test.
31738         * tests/test-getgroups.c: New file.
31739
31740 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31741
31742         * tests/test-base64.c: Improve.
31743
31744 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31745
31746         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31747         Blake <ebb9@byu.net>.
31748
31749 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31750
31751         * tests/test-xvasprintf.c: Add %s%s related checks.
31752
31753 2009-11-12  Eric Blake  <ebb9@byu.net>
31754
31755         version-etc: match standards.texi style
31756         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31757         and use <> only for URLs.
31758
31759 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31760
31761         fts: do not fail on a submount during traversal
31762         * lib/fts.c (fts_build): Read the stat info again after opening
31763         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31764         Original report at http://bugzilla.redhat.com/501848.
31765
31766 2009-11-12  Jim Meyering  <meyering@redhat.com>
31767
31768         bootstrap: sync from coreutils
31769         * build-aux/bootstrap (bootstrap_epilogue): New function.
31770         Use git_modules_config in one more place.  This make bootstrap's
31771         --gnulib-srcdir option more useful for testing.
31772
31773         bootstrap: generalize autoheader check
31774         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31775         AC_CONFIG_HEADERS.
31776
31777 2009-11-11  Eric Blake  <ebb9@byu.net>
31778
31779         mkfifoat: use new modules for Solaris and BSD bugs
31780         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31781         * lib/mkfifoat.c (mknodat): Split...
31782         * lib/mknodat.c (mknodat): ...into new file.
31783         * modules/mkfifoat (Files): Ship new file.
31784         (Depends-on): Add mkfifo, mknod.
31785         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31786         (Depends-on): Add symlink.
31787         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31788         redundant with test_mkfifo.h.
31789         (do_mkfifoat, do_mknodat): New helpers.
31790
31791         mknod: new module
31792         * modules/mknod: New file.
31793         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31794         * lib/mknod.c (mknod): Likewise.
31795         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31796         defaults.
31797         * modules/sys_stat (Makefile.am): Substitute them.
31798         * lib/sys_stat.in.h (mknod): Declare replacement.
31799         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31800         Document it.
31801         * doc/posix-functions/mknod.texi (mknod): Likewise.
31802         * modules/mknod-tests: New test.
31803         * tests/test-mknod.c: Likewise.
31804
31805         mkfifo: new module
31806         * modules/mkfifo: New file.
31807         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31808         * lib/mkfifo.c (mkfifo): Likewise.
31809         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31810         defaults.
31811         * modules/sys_stat (Makefile.am): Substitute them.
31812         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31813         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31814         Document it.
31815         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31816         * modules/mkfifo-tests: New test.
31817         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31818         from test-mkfifoat.c.
31819         * tests/test-mkfifo.c: New file.
31820
31821         readlink: detect FreeBSD bug
31822         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31823         slash on symlink.
31824         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31825         * tests/test-readlink.h (test_readlink): Enhance test.
31826
31827         symlink: detect FreeBSD bug
31828         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31829         slash on symlink.
31830         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31831         * tests/test-symlink.h (test_symlink): Enhance test.
31832
31833 2009-11-10  Eric Blake  <ebb9@byu.net>
31834
31835         link: detect FreeBSD bug
31836         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31837         symlink.
31838         * doc/posix-functions/link.texi (link): Document the bug.
31839         * tests/test-link.h (test_link): Enhance test.
31840         * tests/test-linkat.c (main): Update caller.
31841
31842         unlink, remove: detect FreeBSD bug
31843         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31844         slash on symlink.
31845         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31846         * doc/posix-functions/remove.texi (remove): Likewise.
31847         * tests/test-unlink.h (test_unlink): Enhance test.
31848         * tests/test-remove.c (main): Likewise.
31849
31850 2009-11-09  Eric Blake  <ebb9@byu.net>
31851
31852         rename: detect FreeBSD bug
31853         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31854         slash on symlink.
31855         * modules/renameat-tests (Depends-on): Add filenamecat.
31856         * tests/test-rename.h (test_rename): Allow one more errno.
31857         * tests/test-renameat.c (main): Likewise.
31858         * doc/posix-functions/rename.texi (rename): Document the bug.
31859
31860         open: detect FreeBSD bug
31861         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31862         symlink.
31863         * doc/posix-functions/open.texi (open): Document the bug.
31864         * doc/posix-functions/utimes.texi (utimes): Likewise.
31865         * tests/test-open.h (test_open): Add parameters, and test symlink
31866         handling.
31867         * tests/test-open.c (main): Adjust caller.
31868         * tests/test-fcntl-safer.c (main): Likewise.
31869         * modules/open-tests (Depends-on): Add stdbool, symlink.
31870         * modules/fcntl-safer-tests (Depends-on): Likewise.
31871         * tests/test-openat.c (main): Add test-open tests.
31872
31873         stat: detect FreeBSD bug
31874         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
31875         symlink.
31876         * doc/posix-functions/stat.texi (stat): Document the bug.
31877         * tests/test-stat.h (test_stat_func): Add argument.
31878         * tests/test-stat.c (main): Adjust caller.
31879         * tests/test-fstatat.c (main): Likewise.
31880         * modules/stat-tests (Depends-on): Add stdbool, symlink.
31881         Reported by Jim Meyering.
31882
31883 2009-11-09  James Youngman  <jay@gnu.org>
31884
31885         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
31886         * lib/strftime.c: Correct placement of #include "ignore-value.h".
31887
31888 2009-11-08  Jim Meyering  <meyering@redhat.com>
31889
31890         utimens: remove invalid futimesat call
31891         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
31892         It used the file descriptor of the target file as the DIR_FD
31893         parameter and NULL as the file name.  That caused failure with
31894         errno == EFAULT on FreeBSD-8.0-rc2
31895
31896 2009-11-07  Eric Blake  <ebb9@byu.net>
31897
31898         fflush, freadseek: use fseeko, not fseek
31899         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
31900         (clear_ungetc_buffer): Avoid potential problems on large files.
31901         * lib/freadseek.c (freadseek): Likewise.
31902         * modules/freadseek (Depends-on): Add fseeko.
31903         * modules/fseek (configure.ac): Set a witness.
31904         * tests/test-fflush.c (main): Use fseeko.
31905         * tests/test-fpurge.c (fseek): Disable link warning.
31906         * tests/test-freadable.c (fseek): Likewise.
31907         * tests/test-freading.c (fseek): Likewise.
31908         * tests/test-fseeko.c (fseek): Likewise.
31909         * tests/test-ftell.c (fseek): Likewise.
31910         * tests/test-ftello.c (fseek): Likewise.
31911         * tests/test-fwritable.c (fseek): Likewise.
31912         * tests/test-fwriting.c (fseek): Likewise.
31913
31914 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31915
31916         * modules/memchr (Depends-on): Drop getpagesize dependency.
31917
31918 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31919
31920         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31921         Reported by Ludovic Courtès.
31922         * build-aux/pmccabe2html: Improve example usage.
31923         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31924
31925 2009-11-06  Jim Meyering  <meyering@redhat.com>
31926
31927         do-release-commit-and-tag: New module.
31928         Automate the release-commit and tag process.
31929         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31930         * modules/do-release-commit-and-tag: New file.
31931         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31932
31933 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31934
31935         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31936         because test-select.c uses inet_pton.
31937
31938 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31939
31940         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31941         GETADDRINFO_LIB.  Bump serial number.
31942         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31943         Suggested by Eric Blake <ebb9@byu.net>.
31944
31945 2009-11-05  Eric Blake  <ebb9@byu.net>
31946
31947         strtod: detect darwin bug
31948         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31949         Reported by Leo Davis.
31950
31951         freopen-safer: new module
31952         * modules/freopen-safer: New module.
31953         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31954         * lib/freopen-safer.c (freopen_safer): New file.
31955         * lib/stdio-safer.h (freopen_safer): New declaration.
31956         * lib/stdio--.h (freopen): New override.
31957         * MODULES.html.sh (File stream based Input/Output): Mention it.
31958         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31959         freopen-safer module.
31960         * doc/posix-functions/stderr.texi (stderr): Likewise.
31961         * doc/posix-functions/stdin.texi (stdin): Likewise.
31962         * doc/posix-functions/stdout.texi (stdout): Likewise.
31963         * modules/freopen-safer-tests: New test.
31964         * tests/test-reopen-safer.c: New file.
31965
31966 2009-11-05  Jim Meyering  <meyering@redhat.com>
31967
31968         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31969         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31970
31971 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31972
31973         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31974
31975 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31976
31977         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31978
31979 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31980
31981         Fix link error.
31982         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31983         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31984
31985 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31986
31987         * tests/test-func.c: Also test value of __func__.
31988
31989 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31990
31991         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31992         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31993
31994 2009-11-05  Bruno Haible  <bruno@clisp.org>
31995
31996         Fix link error.
31997         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31998         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31999         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32000
32001 2009-11-05  Bruno Haible  <bruno@clisp.org>
32002
32003         Tests for module 'inet_pton'.
32004         * modules/inet_pton-tests: New file.
32005         * tests/test-inet_pton.c: New file.
32006
32007 2009-11-05  Bruno Haible  <bruno@clisp.org>
32008
32009         Tests for module 'inet_ntop'.
32010         * modules/inet_ntop-tests: New file.
32011         * tests/test-inet_ntop.c: New file.
32012
32013 2009-11-04  Eric Blake  <ebb9@byu.net>
32014
32015         stdlib-safer: wrap all mkstemp variants
32016         * modules/mkostemp (configure.ac): Set witness.
32017         * modules/mkostemps (configure.ac): Likewise.
32018         * modules/mkstemps (configure.ac): Likewise.
32019         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32020         (mkstemps_safer): Wrap more functions.
32021         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32022         wrapping.
32023         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32024         (mkstemps_safer): Implement the wrappers.
32025
32026         mkstemps, mkostemps: new modules
32027         * modules/mkostemps: New module.
32028         * modules/mkstemps: Likewise.
32029         * lib/mkostemps.c (mkostemps): New file.
32030         * lib/mkstemps.c (mkstemps): Likewise.
32031         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32032         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32034         * modules/stdlib (Makefile.am): Substitute them.
32035         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32036         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32037         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32038         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32039         * MODULES.html.sh (File system functions): Mention them.
32040
32041         tempname: resync from glibc
32042         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32043         same values for __GT_FILE as glibc.  Abort even when assertions
32044         are disabled.
32045         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32046         match its value otherwise.  Allow idempotent inclusion.
32047         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32048         * lib/mkostemp.c (mkostemp): Likewise.
32049         * lib/mkstemp.c (mkstemp): Likewise.
32050         * lib/tmpfile.c (tmpfile): Likewise.
32051         * NEWS: Document this.
32052
32053         utimens: fix use of futimens on older Linux
32054         * lib/utimens.c (fdutimens): Use updated, rather than original,
32055         timespec to avoid bug in older Linux kernel.
32056         Reported by Simon Josefsson.
32057
32058 2009-11-04  Bruno Haible  <bruno@clisp.org>
32059
32060         Make num_processors more flexible and consistent.
32061         * lib/nproc.h (enum nproc_query): New type.
32062         (num_processors): Add a 'query' argument.
32063         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32064         (num_processors): Add a 'query' argument. Test the value of the
32065         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32066         mingw, count the number of CPUs available for the current process.
32067         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32068         Check for sched_getaffinity and sched_getaffinity_np.
32069         * modules/nproc (Depends-on): Add c-ctype, extensions.
32070         * NEWS: Mention the change.
32071
32072 2009-11-03  Bruno Haible  <bruno@clisp.org>
32073
32074         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32075
32076 2009-11-03  Jim Meyering  <meyering@redhat.com>
32077
32078         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32079         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32080         if it is defined.
32081
32082 2009-11-02  Eric Blake  <ebb9@byu.net>
32083
32084         mktime, timegm: share common declaration
32085         * lib/mktime-internal.h: New file.
32086         * lib/mktime.c: Use it rather than open-coding a declaration.
32087         * lib/timegm.c: Likewise.
32088         * modules/mktime (Files): Ship it.
32089         * modules/timegm (Files): Likewise.
32090         Suggested by Bruno Haible.
32091
32092         test-update-copyright: update test to match script changes
32093         * tests/test-update-copyright.sh: Avoid hard-coding perl
32094         location.  Don't update *.bak created by earlier runs.
32095
32096 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32097             Simon Josefsson  <simon@josefsson.org>
32098             Bruno Haible  <bruno@clisp.org>
32099
32100         Fix link error on Solaris 8.
32101         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32102         also in libnsl. Define also INET_PTON_LIB.
32103         * modules/inet_pton (Link): New section.
32104
32105 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32106             Bruno Haible  <bruno@clisp.org>
32107
32108         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32109         * modules/inet_ntop (Link): New section.
32110         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32111
32112 2009-11-02  Eric Blake  <ebb9@byu.net>
32113
32114         maint: avoid compiler warnings in m4 macros
32115         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32116         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32117
32118 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32119
32120         * m4/pmccabe2html.m4: Remove file.
32121         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32122         function.  Change maintainer.
32123         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32124         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32125         Courtès).
32126
32127 2009-10-31  Eric Blake  <ebb9@byu.net>
32128
32129         fseeko: fix m4 regression
32130         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32131         regression from 2009-10-27.
32132         Reported by Ralf Wildenhues.
32133
32134 2009-10-31  Jim Meyering  <meyering@redhat.com>
32135
32136         inttostr: aesthetics and improved (compile-time) safety
32137         Define inttype_is_signed rather than inttype_is_unsigned,
32138         since the sole use is via "#if inttype_is_signed".
32139         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32140         inttype_is_unsigned.
32141         * lib/offtostr.c (inttype_is_signed): Likewise.
32142         * lib/uinttostr.c (inttype_is_signed): Likewise.
32143         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32144         * lib/inttostr.c (inttostr): Use verify to cross-check the
32145         inttype_is_signed value and the signedness of the actual type.
32146         * modules/inttostr (Depends-on): Add verify.
32147
32148 2009-10-30  Eric Blake  <ebb9@byu.net>
32149
32150         build: avoid compiler warnings
32151         * lib/fchmodat.c (lchmod): Mark unused variables.
32152         * lib/getopt.c (_getopt_initialize): Likewise.
32153         * lib/mktime.c (__mktime_internal): Provide prototype.
32154         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32155         older gcc that do not understand #pragma GCC diagnostic.
32156         * lib/uinttostr.c (inttype_is_unsigned): Define.
32157         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32158
32159 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32160
32161         stat: fix compilation on AIX
32162         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32163         only see struct stat64.
32164
32165 2009-10-30  Eric Blake  <ebb9@byu.net>
32166
32167         exclude: make more robust
32168         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32169         rather than masking a coding bug.
32170         Suggested by Bruno Haible.
32171
32172 2009-10-30  Jim Meyering  <meyering@redhat.com>
32173
32174         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32175         Rather than putting #!/usr/bin/perl on the first line,
32176         start with a variant of what's recommended by "man perlrun" that
32177         invokes the first "perl" program from your shell's search path.
32178         * build-aux/gitlog-to-changelog: Replace #!... as above.
32179         Add a "Local Variables" perl mode setting.
32180         Prompted by a patch from Ludovic Courtès.
32181         Improved by Eric Blake.
32182         * build-aux/useless-if-before-free: Likewise.
32183         * build-aux/announce-gen: Likewise.
32184         * build-aux/update-copyright: Likewise.
32185
32186 2009-10-29  Eric Blake  <ebb9@byu.net>
32187
32188         filenamecat-lgpl: adjust clients
32189         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32190         filenamecat.
32191         * modules/renameat (Depends-on): Likewise.
32192
32193         filenamecat: split into filenamecat-lgpl
32194         * modules/filenamecat-lgpl: New module.
32195         * modules/filenamecat (Files): Move library-safe files into
32196         filenamecat-lgpl.
32197         (Depends-on): Add filenamecat-lgpl.
32198         (configure.ac): Declare witness.
32199         * lib/filenamecat.h (file_name_concat): Only declare when using
32200         GPL module.
32201         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32202         Move...
32203         * lib/filenamecat-lgpl.c: ...into new file.
32204         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32205         (gl_FILE_NAME_CONCAT): Use it.
32206         * MODULES.html.sh (File system functions): Mention new module.
32207
32208         argp: avoid memory leak
32209         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32210         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32211         base_name, since the latter malloc()s and can call exit().
32212         Leak introduced 2006-07-03.
32213
32214         dirname-lgpl: adjust clients that don't need full dirname
32215         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32216         * modules/filenamecat (Depends-on): Likewise.
32217         * modules/linkat (Depends-on): Likewise.
32218         * modules/mkancesdirs (Depends-on): Likewise.
32219         * modules/mkdir (Depends-on): Likewise.
32220         * modules/openat (Depends-on): Likewise.
32221         * modules/savewd (Depends-on): Likewise.
32222         * modules/rename (Depends-on): Likewise.
32223         (License): Relax license.
32224         * modules/mkdir-tests (Depends-on): Drop progname.
32225         (Makefile.am): Delete unneeded LDADD.
32226         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32227
32228         dirname: split into dirname-lgpl
32229         * modules/dirname-lgpl: New module.
32230         * modules/dirname (Files): Move library-safe files into
32231         dirname-lgpl.
32232         (Depends-on): Add dirname-lgpl.
32233         (configure.ac): Declare witness.
32234         * modules/double-slash-root (License): Relax license.
32235         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32236         module.
32237         * lib/dirname.c (dir_len, mdir_name): Move...
32238         * lib/dirname-lgpl.c: ...into new file.
32239         * lib/basename.c (last_component, base_len): Move...
32240         * lib/basename-lgpl.c: ...into new file.
32241         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32242         (gl_DIRNAME): Use it.
32243         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32244         Mention new module.
32245         * modules/dirname-tests (Depends-on): Add progname.
32246         * tests/test-dirname.c (program_name): Delete.
32247
32248         mkdir: make safe for libraries
32249         * modules/mkdir (Depends-on): Drop xalloc.
32250         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32251         exit.
32252
32253         tests: avoid some compiler warnings
32254         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32255         literals.
32256         * tests/test-memchr.c (main): Avoid type mismatch.
32257         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32258         * tests/test-base64.c (main): Likewise.
32259         * tests/test-getdelim.c (main): Likewise.
32260         * tests/test-gethostname.c (main): Likewise.
32261         * tests/test-getline.c (main): Likewise.
32262         * tests/test-netinet_in.c (main): Likewise.
32263         * tests/test-select.c (open_server_socket, main): Likewise.
32264         * tests/test-select-stdin.c (main): Likewise.
32265         * tests/test-sockets.c (main): Likewise.
32266         * tests/test-strsignal.c (main): Likewise.
32267         * tests/test-sys_select.c (main): Likewise.
32268         * tests/test-sys_socket.c (main): Likewise.
32269         * tests/test-u64.c (main): Likewise.
32270         * tests/test-xfprintf-posix.c (main): Likewise.
32271         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32272
32273         sockets: avoid compiler warning
32274         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32275
32276         maint: detect usage(1) and other suspicious exits
32277         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32278
32279 2009-10-29  Jim Meyering  <meyering@redhat.com>
32280
32281         timespec: long-to-int truncation could make timespec_cmp malfunction
32282         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32283         a multiple of 2^32 nanoseconds as no difference.
32284
32285 2009-10-28  Jim Meyering  <meyering@redhat.com>
32286
32287         fprintftime: wrap macro code argument in "do {...} while(0)"
32288         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32289         cpy macro must be a statement that can be followed by a semicolon.
32290         Now that the else clause contains a comment and is hence longer
32291         than one line, I require curly braces.  That in turn requires
32292         that we wrap this code block in the standard do...while(0).
32293
32294         fprintftime: remove stray semicolon from previous change
32295         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32296
32297         fprintftime: avoid a warning about ignored fwrite return value
32298         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32299         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32300         that is unsafe.
32301         * modules/fprintftime (Depends-on): Add ignore-value.
32302
32303         exclude: avoid an unwarranted warning
32304         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32305
32306 2009-10-27  Eric Blake  <ebb9@byu.net>
32307
32308         fseek: avoid compilation failure when fflush is replaced
32309         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32310         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32311         module is in use.
32312         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32313         module is not in use; since REPLACE_FSEEK worked otherwise.
32314         (GNULIB_FTELLO): Likewise for ftell.
32315         Reported by Ian Beckwith and others.
32316
32317 2009-10-27  Bruno Haible  <bruno@clisp.org>
32318
32319         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32320         Reported by Jim Meyering.
32321
32322 2009-10-27  Jim Meyering  <jim@meyering.net>
32323             Bruno Haible  <bruno@clisp.org>
32324
32325         Avoid warning despite dropping the return value of fwrite.
32326         * lib/unicodeio.c: Include ignore-value.h.
32327         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32328         * modules/unicodeio (Depends-on): Add ignore-value.
32329
32330 2009-10-26  Eric Blake  <ebb9@byu.net>
32331
32332         areadlinkat: fix fallback path
32333         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32334         pointer and zero.
32335
32336 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32337
32338         Use a better IO block size for modern systems
32339         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32340         * lib/md2.c: Likewise.
32341         * lib/md4.c: Likewise.
32342         * lib/md5.c: Likewise.
32343         * lib/sha1.c: Likewise.
32344         * lib/sha256.c: Likewise.
32345         * lib/sha512.c: Likewise.
32346
32347 2009-10-22  Eric Blake  <ebb9@byu.net>
32348
32349         tests: avoid several compiler warnings
32350         * tests/test-getcwd.c (main): Avoid buffer underflow.
32351         * tests/test-getdate.c (main): String literals are not safe with
32352         putenv, so use setenv.  Declare unused argument.
32353         * modules/getdate-tests (Depends-on): Add setenv.
32354         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32355         problems with string literals in char *.
32356         * tests/test-hash.c (main): Avoid shadowing declaration.
32357         (insert_new): Treat string literals as char const *.
32358         * tests/test-getopt.h (test_getopt): Likewise.
32359         (getopt_loop): Alter types to minimize casting elsewhere.
32360         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32361         (test_getopt_long_posix): Likewise.
32362         (do_getopt_long): Add wrapper to minimize casting.
32363         * tests/test-atexit.c (clear_temp_file): Use void.
32364         * tests/test-areadlink-with-size.c (main): Declare unused
32365         arguments.
32366         * tests/test-areadlink.c (main): Likewise.
32367         * tests/test-areadlinkat-with-size.c (main): Likewise.
32368         * tests/test-areadlinkat.c (main): Likewise.
32369         * tests/test-canonicalize-lgpl.c (main): Likewise.
32370         * tests/test-canonicalize.c (main): Likewise.
32371         * tests/test-dirent-safer.c (main): Likewise.
32372         * tests/test-dirname.c (main): Likewise.
32373         * tests/test-dup2.c (main): Likewise.
32374         * tests/test-fchdir.c (main): Likewise.
32375         * tests/test-fcntl-h.c (main): Likewise.
32376         * tests/test-fcntl-safer.c (main): Likewise.
32377         * tests/test-fdopendir.c (main): Likewise.
32378         * tests/test-fdutimensat.c (main): Likewise.
32379         * tests/test-fflush.c (main): Likewise.
32380         * tests/test-filenamecat.c (main): Likewise.
32381         * tests/test-filevercmp.c (main): Likewise.
32382         * tests/test-fopen-safer.c (main): Likewise.
32383         * tests/test-fopen.c (main): Likewise.
32384         * tests/test-fpending.c (main): Likewise.
32385         * tests/test-fpurge.c (main): Likewise.
32386         * tests/test-freading.c (main): Likewise.
32387         * tests/test-fstatat.c (main): Likewise.
32388         * tests/test-fsync.c (main): Likewise.
32389         * tests/test-futimens.c (main): Likewise.
32390         * tests/test-getndelim2.c (main): Likewise.
32391         * tests/test-gettimeofday.c (main): Likewise.
32392         * tests/test-getopt.c (main): Likewise.
32393         * tests/test-i-ring.c (main): Likewise.
32394         * tests/test-inttypes.c (main): Likewise.
32395         * tests/test-link.c (main): Likewise.
32396         * tests/test-lstat.c (main): Likewise.
32397         * tests/test-math.c (main): Likewise.
32398         * tests/test-md5.c (main): Likewise.
32399         * tests/test-memchr2.c (main): Likewise.
32400         * tests/test-memrchr.c (main): Likewise.
32401         * tests/test-mkdir.c (main): Likewise.
32402         * tests/test-mkdirat.c (main): Likewise.
32403         * tests/test-mkfifoat.c (main): Likewise.
32404         * tests/test-open.c (main): Likewise.
32405         * tests/test-openat-safer.c (main): Likewise.
32406         * tests/test-openat.c (main): Likewise.
32407         * tests/test-quotearg.c (main): Likewise.
32408         * tests/test-rawmemchr.c (main): Likewise.
32409         * tests/test-readlink.c (main): Likewise.
32410         * tests/test-remove.c (main): Likewise.
32411         * tests/test-rename.c (main): Likewise.
32412         * tests/test-renameat.c (main): Likewise.
32413         * tests/test-rmdir.c (main): Likewise.
32414         * tests/test-sha1.c (main): Likewise.
32415         * tests/test-signal.c (main): Likewise.
32416         * tests/test-sigaction.c (main): Likewise.
32417         * tests/test-stat.c (main): Likewise.
32418         * tests/test-stat-time.c (main): Likewise.
32419         * tests/test-stddef.c (main): Likewise.
32420         * tests/test-stdint.c (main): Likewise.
32421         * tests/test-stdio.c (main): Likewise.
32422         * tests/test-stdlib.c (main): Likewise.
32423         * tests/test-strchrnul.c (main): Likewise.
32424         * tests/test-strerror.c (main): Likewise.
32425         * tests/test-string.c (main): Likewise.
32426         * tests/test-strtod.c (main): Likewise.
32427         * tests/test-strverscmp.c (main): Likewise.
32428         * tests/test-symlink.c (main): Likewise.
32429         * tests/test-symlinkat.c (main): Likewise.
32430         * tests/test-sys_stat.c (main): Likewise.
32431         * tests/test-sys_time.c (main): Likewise.
32432         * tests/test-time.c (main): Likewise.
32433         * tests/test-unistd.c (main): Likewise.
32434         * tests/test-unlink.c (main): Likewise.
32435         * tests/test-unlinkat.c (main): Likewise.
32436         * tests/test-utimens.c (main): Likewise.
32437         * tests/test-utimensat.c (main): Likewise.
32438         * tests/test-version-etc.c (main): Likewise.
32439         * tests/test-wchar.c (main): Likewise.
32440         * tests/test-wctype.c (main): Likewise.
32441         * tests/test-xprintf-posix.c (main): Likewise.
32442         * tests/test-posixtm.c (main): Likewise.
32443         (STREQ): Delete unused macro.
32444         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32445         shadowed variables.
32446         * tests/test-memchr.c (main): Likewise.
32447
32448 2009-10-21  Eric Blake  <ebb9@byu.net>
32449
32450         areadlinkat: avoid failure on older glibc
32451         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32452         rather than mis-comparing 0 against FUNC_RESULT of char*.
32453
32454 2009-10-21  Bruno Haible  <bruno@clisp.org>
32455
32456         * modules/stpncpy (License): Relicense under LGPLv2+.
32457         Reported by David Lutterkort <lutter@redhat.com>.
32458
32459 2009-10-20  Eric Blake  <ebb9@byu.net>
32460
32461         utimensat: work around Solaris 9 bug
32462         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32463         has trailing slash bugs.
32464         * tests/test-lutimens.h (test_lutimens): Enhance test.
32465         * tests/test-utimens.h (test_utimens): Likewise.
32466         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32467         * doc/posix-functions/utimes.texi (utimes): Likewise.
32468         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32469         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32470         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32471         * doc/posix-functions/futimens.texi (futimens): Likewise.
32472
32473         fdutimensat: new module
32474         * modules/fdutimensat: New file.
32475         * lib/fdutimensat.c (fdutimensat): Likewise.
32476         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32477         * MODULES.html.sh (File system functions): Mention module.
32478         * modules/fdutimensat-tests: New test.
32479         * tests/test-fdutimensat.c: Likewise.
32480
32481         doc: regenerate INSTALL
32482         * doc/INSTALL: Reflect recent autoconf update.
32483         * doc/INSTALL.ISO: Likewise.
32484         * doc/INSTALL.UTF-8: Likewise.
32485
32486 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32487
32488         acl: warn if ACL support is not detected
32489         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32490
32491 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32492
32493         * lib/nproc.h: Add extern "C" block for C++.
32494
32495 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32496             Bruno Haible  <bruno@clisp.org>
32497
32498         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32499         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32500         * doc/posix-functions/isalpha.texi: Likewise.
32501         * doc/posix-functions/isblank.texi: Likewise.
32502         * doc/posix-functions/iscntrl.texi: Likewise.
32503         * doc/posix-functions/isdigit.texi: Likewise.
32504         * doc/posix-functions/isgraph.texi: Likewise.
32505         * doc/posix-functions/islower.texi: Likewise.
32506         * doc/posix-functions/isprint.texi: Likewise.
32507         * doc/posix-functions/ispunct.texi: Likewise.
32508         * doc/posix-functions/isspace.texi: Likewise.
32509         * doc/posix-functions/isupper.texi: Likewise.
32510         * doc/posix-functions/isxdigit.texi: Likewise.
32511
32512 2009-10-18  Bruno Haible  <bruno@clisp.org>
32513
32514         Tests for module 'isblank'.
32515         * modules/isblank-tests: New file.
32516         * tests/test-isblank.c: New file.
32517
32518         New module 'isblank'.
32519         * lib/isblank.c: New file.
32520         * m4/isblank.m4: New file.
32521         * modules/isblank: New file.
32522         * doc/posix-functions/isblank.texi: Mention the new module.
32523
32524 2009-10-18  Bruno Haible  <bruno@clisp.org>
32525
32526         New module 'ctype'.
32527         * lib/ctype.in.h: New file.
32528         * m4/ctype.m4: New file.
32529         * modules/ctype: New file.
32530         * doc/posix-headers/ctype.texi: Mention the new module.
32531
32532 2009-10-18  Jim Meyering  <meyering@redhat.com>
32533
32534         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32535         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32536         right after its initialization, rather than farther down.
32537         Keeping these in close proximity makes it easier to ensure
32538         that each such variable is initialized.  E.g.,
32539
32540             LIB_CLOCK_GETTIME=
32541             AC_SUBST([LIB_CLOCK_GETTIME])
32542
32543         This change also increments these serial numbers.
32544         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32547
32548 2009-10-18  Bruno Haible  <bruno@clisp.org>
32549
32550         Don't let environment variables perturb build.
32551         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32552         (gl_PREREQ_GETHRXTIME): ... not here.
32553
32554 2009-10-18  Bruno Haible  <bruno@clisp.org>
32555
32556         Avoid symlink attack in localcharset module.
32557         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32558         (O_NOFOLLOW): Define fallback.
32559         (get_charset_aliases): Don't open the file if it is a symbolic link.
32560         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32561         gl_FCNTL_H.
32562         (gl_FCNTL_H): Require it.
32563         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32564         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32565         Reported by Fergal Glynn <fglynn@veracode.com>.
32566
32567 2009-10-18  Bruno Haible  <bruno@clisp.org>
32568
32569         Implement nproc for mingw.
32570         * lib/nproc.c: Include <windows.h>
32571         (num_processors): On native Windows platforms, try GetSystemInfo.
32572
32573 2009-10-18  Bruno Haible  <bruno@clisp.org>
32574
32575         Implement nproc for IRIX.
32576         * lib/nproc.c: Include <sys/sysmp.h>.
32577         (num_processors): On IRIX systems, try sysmp.
32578         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32579
32580 2009-10-18  Bruno Haible  <bruno@clisp.org>
32581
32582         Implement nproc for HP-UX.
32583         * lib/nproc.c: Include <sys/pstat.h>
32584         (num_processors): On HP-UX systems, try pstat_getdynamic.
32585         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32586         pstat_getdynamic.
32587
32588 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32589             Bruno Haible  <bruno@clisp.org>
32590
32591         Implement nproc for NetBSD, OpenBSD.
32592         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32593         (ARRAY_SIZE): New macro.
32594         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32595         * m4/nproc.m4: New file.
32596         * modules/nproc (Files): Add m4/nproc.m4.
32597         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32598         (Makefile.am): Instead, augment lib_SOURCES.
32599
32600 2009-10-18  Bruno Haible  <bruno@clisp.org>
32601
32602         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32603         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32604         sys/param.h.
32605
32606 2009-10-16  Eric Blake  <ebb9@byu.net>
32607
32608         utimensat: new module
32609         * modules/utimensat: New file.
32610         * lib/utimensat.c (utimensat): Likewise.
32611         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32612         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32613         so we can work around Linux bugs.
32614         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32615         * modules/sys_stat (Makefile.am): Substitute them.
32616         * lib/sys_stat.in.h (utimensat): Declare it.
32617         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32618         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32619         * modules/utimensat-tests: New test.
32620         * tests/test-utimensat.c: Likewise.
32621
32622         utimens: let lutimens work on non-symlinks
32623         * lib/utimens.c (lutimens): Fall back to utimens rather than
32624         failing with ENOSYS, when file is not a symlink.
32625         (utimens): Reduce redirection.
32626         * tests/test-lutimens.h (test_lutimens): Update test to cover
32627         non-symlinks.
32628         * tests/test-utimens.h (test_utimens): Update test to cover
32629         symlinks.
32630         * tests/test-utimens.c (main): Update caller.
32631
32632         utimens: cache whether utimensat syscall works
32633         * lib/utimens.c (utimensat_works_really): New cache variable.
32634         (fdutimens, lutimens): Use it to avoid failing syscall.
32635
32636         test-stat-time, test-utimens: improve portability
32637         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32638         ext4 on alpha, and for cygwin.
32639         * tests/test-utimens-common.h: New file.
32640         (nap): Factor delays into single function.
32641         * tests/test-lutimens.h (test_lutimens): Use new header.
32642         * tests/test-futimens.h (test_futimens): Likewise.
32643         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32644         timestamps to occur from same machine, as was done previously for
32645         test_utimens.
32646         * modules/utimens-tests (Files): Ship new file.
32647         * modules/futimens-tests (Files): Likewise.
32648         Reported in part by Jim Meyering.
32649
32650         sys_stat: sort replacement declarations
32651         * lib/sys_stat.in.h: Sort declarations.
32652         * lib/futimens.c (futimens): Fix typo.
32653
32654 2009-10-15  Jim Meyering  <meyering@redhat.com>
32655
32656         don't let environment settings perturb build
32657         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32658         could cause a configure-time and/or build-time malfunction.
32659         Typically, a configure-time function-in-library test is performed
32660         via code like this:
32661
32662           LIB_VAR=
32663           AC_SUBST([LIB_VAR])
32664           prefix_saved_LIBS=$LIBS
32665             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32666                        [test "$ac_cv_search_FUNC" = "none required" ||
32667                         LIB_VAR=$ac_cv_search_FUNC])
32668           LIBS=$prefix_saved_LIBS
32669
32670         However, in each of the files affected by this change, the LIB_VAR=
32671         initialization was omitted.  Thus, when set in the environment, its
32672         value would propagate into generated Makefiles when FUNC is not found
32673         in LIB_NAME.
32674         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32675         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32677
32678 2009-10-14  Eric Blake  <ebb9@byu.net>
32679
32680         fchdir: avoid infinite recursion in mingw
32681         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32682         recursing.
32683
32684         test-stat-time: port to mingw
32685         * tests/test-stat-time.c (force_unlink): Return a value.
32686         (test_ctime) [W32]: Fix compilation error.
32687         (nap): Don't call usleep with too large an argument.  Use
32688         force_unlink.
32689         * doc/pastposix-functions/usleep.texi (usleep): Document the
32690         portability issue.
32691
32692 2009-10-13  Jim Meyering  <meyering@redhat.com>
32693
32694         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32695         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32696         * modules/pipe-filter-ii: Likewise.
32697         * modules/sys_socket-tests: Likewise.
32698         * modules/tsearch-tests: Likewise.
32699         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32700         (check): Depend on it.
32701
32702 2009-10-12  Eric Blake  <ebb9@byu.net>
32703
32704         utimens-tests: port to NFS file systems
32705         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32706         comparisons to avoid spurious failures from timestamp drift
32707         between NFS machines.
32708
32709 2009-10-12  Eric Blake  <ebb9@byu.net>
32710
32711         stat-time-tests: minor cleanups
32712         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32713         * tests/test-stat-time.c (nap): Separate assignment from call.
32714         Suggested by Paolo Bonzini and Bruno Haible.
32715
32716         sys_stat: guarantee struct timespec
32717         * lib/sys_stat.in.h (includes): Always include <time.h>
32718         * modules/sys_stat (Depends-on): Add time.
32719         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32720         mode_t permission values.
32721         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32722         get at subsecond timestamps.
32723
32724 2009-10-10  Eric Blake  <ebb9@byu.net>
32725
32726         futimens: new module
32727         * modules/futimens: New file.
32728         * lib/futimens.c (futimens): Likewise.
32729         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32730         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32731         we can work around Linux bugs.
32732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32733         * modules/sys_stat (Makefile.am): Substitute them.
32734         * lib/sys_stat.in.h (futimens): Declare it.
32735         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32736         * doc/posix-functions/futimens.texi (futimens): Likewise.
32737         * modules/futimens-tests: New test.
32738         * tests/test-futimens.c: Likewise.
32739
32740         utimens: introduce fdutimens
32741         * lib/utimens.h (fdutimens): New prototype.
32742         * lib/utimens.c (gl_futimens): Move guts...
32743         (fdutimens): ...to new interface.
32744         * tests/test-utimens.c (do_fdutimens): Use it.
32745
32746         utimens: add UTIME_NOW and UTIME_OMIT support
32747         * lib/utimens.c (validate_timespec, update_timespec): New helper
32748         functions.
32749         (gl_futimens, lutimens): Use them.
32750         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32751         stdbool, sys_stat.
32752         (Link): Mention resulting library dependency.
32753         * modules/utimecmp (Link): Likewise.
32754         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32755         (Makefile.am): Pick up library dependency.
32756         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32757         definition.
32758         * tests/test-sys_stat.c: Test the definitions.
32759         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32760         * NEWS: Document library dependency.
32761
32762         utimecmp: support symlink timestamps
32763         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32764         hashing when possible.  Use pathconf when available.
32765         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32766         * modules/utimecmp (Depends-on): Add lstat.
32767
32768         utimens: add lutimens interface
32769         * lib/utimens.c (lutimens): New function.
32770         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32771         * lib/utimens.h (lutimens): Declare new interface.
32772         * tests/test-utimens.c (main): Enhance test.
32773         * tests/test-lutimens.h (test_lutimens): New file.
32774         * modules/utimens-tests (Files): Distribute it.
32775         (Depends-on): Add symlink.
32776         (configure.ac): Check for usleep.
32777
32778         utimens: validate futimens usage
32779         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32780         fewer syscalls on failure later on.  Avoid compiler warning on
32781         mingw.
32782         * modules/utimens (Depends-on): Add dup2.
32783
32784         utimens: add test
32785         * modules/utimens-tests: New test.
32786         * tests/test-utimens.h: New file.
32787         * tests/test-futimens.h: Likewise.
32788         * tests/test-utimens.c: Likewise.
32789
32790         doc: mention timestamp portability issues
32791         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32792         instead.
32793         * doc/posix-functions/utime.texi (utime): Likewise.
32794         * doc/posix-functions/utimes.texi (utimes): Likewise.
32795         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32796         instead.
32797         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32798         module.
32799         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32800         Mention weakness with symlink timestamps.
32801         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32802         to utimensat/futimens instead.
32803         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32804
32805         test-dup2: enhance test
32806         * tests/test-dup2.c (main): Also check AT_FDCWD.
32807
32808         test-stat-time: avoid more spurious failures
32809         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32810         xfs; and avoid race if the two timestamps cross quantization edge.
32811
32812         relocatable: prefer 'file system' over 'filesystem'
32813         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32814         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32815         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32816         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32817         * lib/relocatable.c (compute_curr_prefix): Likewise.
32818
32819 2009-10-10  Jim Meyering  <meyering@redhat.com>
32820
32821         stat-time-tests: check for the usleep function
32822         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32823
32824 2009-10-10  Bruno Haible  <bruno@clisp.org>
32825
32826         * modules/xnanosleep: Put the Link section after the Include section.
32827
32828 2009-10-09  Eric Blake  <ebb9@byu.net>
32829
32830         dup2: work around FreeBSD 6.1 bug
32831         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32832         * doc/posix-functions/dup2.texi (dup2): Document it.
32833         Reported by Nelson H. F. Beebe and Jim Meyering.
32834
32835         test-stat-time: port to buggy NFS clients
32836         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32837         (test_ctime): Also skip test if mtime and ctime are skewed.
32838
32839         maint: prefer 'file system' over 'filesystem'
32840         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32841         * doc/posix-functions/lstat.texi (lstat): Likewise.
32842         * lib/file-has-acl.c (file_has_acl): Likewise.
32843         * lib/fwriteerror.c [TEST]: Likewise.
32844         * tests/test-areadlink.h (test_areadlink): Likewise.
32845         * tests/test-areadlinkat-with-size.c (main): Likewise.
32846         * tests/test-areadlinkat.c (main): Likewise.
32847         * tests/test-canonicalize-lgpl.c (main): Likewise.
32848         * tests/test-canonicalize.c (main): Likewise.
32849         * tests/test-fstatat.c (main): Likewise.
32850         * tests/test-linkat.c (main): Likewise.
32851         * tests/test-lstat.h (test_lstat_func): Likewise.
32852         * tests/test-mkdir.h (test_mkdir): Likewise.
32853         * tests/test-readlink.h (test_readlink): Likewise.
32854         * tests/test-remove.c (main): Likewise.
32855         * tests/test-rename.h (test_rename): Likewise.
32856         * tests/test-renameat.c (main): Likewise.
32857         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32858         * tests/test-symlink.h (test_symlink): Likewise.
32859         * tests/test-symlinkat.c (main): Likewise.
32860         * tests/test-unlink.h (test_unlink_func): Likewise.
32861         * tests/test-unlinkat.c (main): Likewise.
32862
32863         maint: make realtime library usage explicit
32864         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32865         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32866         * modules/settime (Link): Likewise.
32867         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32868
32869         test-stat-time: speed up execution
32870         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32871         warning on mingw.
32872         (nap): New helper function.
32873         (prepare_test): Use it to reduce sleep time.
32874         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
32875         execution.
32876         * modules/stat-time-tests (configure.ac): Check for usleep.
32877
32878 2009-10-09  Jim Meyering  <meyering@redhat.com>
32879
32880         selinux-h: always use getfilecon wrappers
32881         * lib/getfilecon.c: New file.
32882         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
32883         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
32884         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
32885         (fgetfilecon): Provide a stub.
32886         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
32887         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
32888         file unconditionally.
32889         When <selinux/selinux.h> is found, arrange to use wrappers.
32890         * modules/selinux-h (Files): Add getfilecon.c.
32891         (Makefile.am): Substitute include-next-related bits
32892         into the now-always-generated selinux/selinux.h file.
32893         * doc/glibc-functions/lgetfilecon.texi: New file.
32894         * doc/glibc-functions/fgetfilecon.texi: New file.
32895         * doc/glibc-functions/getfilecon.texi: New file.
32896         * doc/glibc-functions/getfilecon-desc.texi: New file.
32897         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
32898         which to pull in the new files.
32899         * MODULES.html.sh (Misc): Add selinux-h.
32900
32901 2009-10-08  Jim Meyering  <meyering@redhat.com>
32902
32903         unistd: fix comment typo
32904         * lib/unistd.in.h (euidaccess): Fix a comment typo.
32905
32906 2009-10-08  Eric Blake  <ebb9@byu.net>
32907
32908         areadlink: use SIZE_MAX consistently
32909         * modules/areadlink (Depends-on): Add stdint.
32910         * modules/areadlink-with-size (Depends-on): Likewise.
32911         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32912         gives NULL; drop sys/types, since unistd gives size_t; and add
32913         stdint for SIZE_MAX.
32914         (SIZE_MAX): Rely on headers.
32915         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32916         and add stdint.
32917         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32918         (SIZE_MAX): Likewise.
32919         (INITIAL_BUF_SIZE): Turn into enum.
32920         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32921
32922 2009-10-08  Jim Meyering  <meyering@redhat.com>
32923
32924         areadlinkat: avoid compilation failure
32925         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32926         Fix typo in comment.
32927
32928 2009-10-07  Eric Blake  <ebb9@byu.net>
32929
32930         areadlinkat-with-size: new module
32931         * modules/areadlinkat-with-size: New module.
32932         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32933         * lib/areadlink.h (areadlinkat): Declare it.
32934         * MODULES.html.sh (File system functions): Mention it.
32935         * modules/areadlinkat-with-size-tests: New test.
32936         * tests/test-areadlinkat-with-size.c: New file.
32937
32938         xreadlinkat: new module
32939         * modules/xreadlinkat: New module.
32940         * lib/xreadlinkat.c (xreadlinkat): New file.
32941         * lib/xreadlink.h (xreadlinkat): Declare it.
32942         * MODULES.html.sh (File system functions): Mention it.
32943
32944         areadlinkat: new module
32945         * lib/at-func.c (FUNC_FAIL): New define.
32946         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32947         * modules/areadlinkat: New module.
32948         * lib/linkat.c (areadlinkat): Move...
32949         * lib/areadlinkat.c (areadlinkat): ...to new file.
32950         * lib/areadlink.h (areadlinkat): Declare it.
32951         * modules/linkat (Depends-on): Add areadlinkat.
32952         * MODULES.html.sh (File system functions): Mention it.
32953         * modules/areadlinkat-tests: New test.
32954         * tests/test-areadlinkat.c: New file.
32955
32956         areadlink, areadlink-with-size: add tests
32957         * modules/areadlink-tests: New test.
32958         * modules/areadlink-with-size-tests: Likewise.
32959         * tests/test-areadlink.h: New file.
32960         * tests/test-areadlink.c: Likewise.
32961         * tests/test-areadlink-with-size.c: Likewise.
32962
32963         maint: minor cleanups
32964         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32965         _UNUSED_PARAMETER_ instead.
32966         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32967         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32968         * modules/linkat-tests (Files): Distribute test-link.h.
32969
32970         openat, utimens: whitespace cleanup
32971         * lib/openat.c: Prefer space throughout, rather than mix of 8
32972         spaces vs. tabs.
32973         * lib/at-func.c: Likewise.
32974         * lib/utimens.c: Likewise.
32975
32976         openat: avoid using wrong fd
32977         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32978         working directory chooses same fd.
32979         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32980
32981         mkdir, mkdirat: fix cygwin 1.5.x bug
32982         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32983         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32984         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32985         bug.
32986         (gl_PREREQ_MKDIR): Delete unused macro.
32987         * modules/mkdir (Files): Track file rename.
32988         (configure.ac): Update macro name.
32989         * modules/openat (Depends-on): Add mkdir.
32990         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32991
32992         mkdir, mkdirat: add tests
32993         * modules/mkdir-tests: New test.
32994         * tests/test-mkdir.h: New file.
32995         * tests/test-mkdir.c: Likewise.
32996         * tests/test-mkdirat.c: Likewise.
32997         * modules/openat-tests (Files): Add new files.
32998         (Makefile.am): Run new test.
32999
33000 2009-10-06  Eric Blake  <ebb9@byu.net>
33001
33002         doc: tweak *at function documentation
33003         * doc/posix-functions/faccessat.texi (faccessat): Mention
33004         known issue with replacement.
33005         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33006         * doc/posix-functions/linkat.texi (linkat): Likewise.
33007         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33008         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33009         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33010         * doc/posix-functions/renameat.texi (renameat): Likewise.
33011         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33012
33013         openat: fix GNU/Hurd bug in unlinkat
33014         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33015         broken.
33016         * doc/posix-functions/unlink.texi (unlink): Document this.
33017         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33018
33019         fdopendir: fix GNU/Hurd bug
33020         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33021         allowing non-directory fds.
33022         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33023         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33024         * modules/dirent (Makefile.am): Substitute it.
33025         * lib/dirent.in.h (fdopendir): Declare replacement.
33026         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33027         * tests/test-fdopendir.c (main): Test something other than
33028         /dev/null, since on Hurd that behaves like a directory.
33029
33030         test-symlink: port to GNU/Hurd
33031         * tests/test-symlink.h (test_symlink): Relax expected errno.
33032
33033         doc: tweak more cygwin information
33034         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33035         now compatible with glibc.
33036         * doc/posix-functions/getopt.texi (getopt): Likewise.
33037
33038         getopt-gnu: add another test
33039         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33040         guarantee behavior relied on by m4.
33041         * tests/test-getopt.c (main): Use it.
33042         * modules/getopt-posix-tests (Depends-on): Add setenv.
33043         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33044
33045         getopt: fix compilation on darwin
33046         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33047         include.
33048         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33049         Reported by Ludovic Courtès.
33050
33051 2009-10-06  Bruno Haible  <bruno@clisp.org>
33052
33053         * modules/size_max (Description): Discourage its use.
33054         Reported by Simon Josefsson.
33055
33056 2009-10-06  Jim Meyering  <meyering@redhat.com>
33057
33058         linkat: avoid compilation failure
33059         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33060
33061 2009-10-05  Eric Blake  <ebb9@byu.net>
33062
33063         linkat: support Linux 2.6.17
33064         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33065         linkat on Linux, but allow cache variable override.
33066         * lib/linkat.c (rpl_linkat): Define override.
33067         * modules/linkat (Depends-on): Add symlinkat.
33068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33069         * modules/unistd (Makefile.am): Substitute it.
33070         * lib/unistd.in.h (linkat): Declare replacement.
33071         Reported by Pádraig Brady.
33072
33073         quotearg: port test to systems with C.UTF-8 locale
33074         * tests/test-quotearg.c (struct result_strings): Add another
33075         member, differentiating between C.ASCII and C.UTF-8 handling.
33076         (compare_strings): Add parameter.
33077         (main): Adjust all callers.
33078
33079         getopt: avoid clash with FreeBSD _getopt_internal
33080         * lib/getopt.in.h (_getopt_internal): Override the name.
33081         * lib/getopt_int.h (includes): Pick up any overrides.
33082         Reported by Reuben Thomas.
33083
33084         hash: allow C89 compilation
33085         * lib/hash.c (check_tuning): Move declaration before statement.
33086         Reported by Reuben Thomas.
33087
33088 2009-10-05  Karl Berry  <karl@gnu.org>
33089
33090         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33091
33092 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33093             Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/uname.c (uname): Use a table-driven algorithm to compute
33096         Windows NT versions.
33097
33098 2009-10-04  Bruno Haible  <bruno@clisp.org>
33099
33100         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33101         program_invocation_short_name.
33102         * modules/progname (configure.ac): Test for presence of
33103         program_invocation_short_name.
33104         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33105
33106 2009-10-04  Bruno Haible  <bruno@clisp.org>
33107
33108         * lib/progname.c (set_program_name): Fix comment.
33109         Reported by Jim Meyering.
33110
33111 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33112             Bruno Haible  <bruno@clisp.org>
33113
33114         * lib/uname.c: Include <string.h>.
33115         (uname): Do only one call to GetVersionEx in the common case.
33116
33117 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33118             Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33121         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33122         (uname): Add support for Windows CE and various non-x86 CPU types.
33123
33124 2009-10-03  Bruno Haible  <bruno@clisp.org>
33125
33126         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33127         invocation to tests/configure.ac.
33128         Reported by Ian Beckwith <ianb@erislabs.net>.
33129
33130 2009-10-02  Eric Blake  <ebb9@byu.net>
33131
33132         fchdir: avoid compiler warning
33133         * lib/fchdir.c (canonicalize_file_name)
33134         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33135
33136         test-open: support mingw errno values
33137         * tests/test-open.h (test_open): Relax test.
33138         * tests/test-fopen.h (test_fopen): Likewise.
33139         * tests/test-openat-safer.c (main): Likewise.
33140
33141         open: fix opening directory on mingw
33142         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33143
33144         test-open: on GNU/Hurd, /dev/null is a directory
33145         * tests/test-fopen.h (main): Rename...
33146         (test_fopen): ...to this.  Use a guaranteed non-directory when
33147         confirming open behavior on trailing slash.
33148         * tests/test-openat-safer.c (main): Likewise.
33149         * tests/test-open.h (main): Likewise....
33150         (test_open): ...to this.
33151         * tests/test-fopen.c (main): Adjust caller.
33152         * tests/test-fopen-safer.c (main): Likewise.
33153         * tests/test-open.c (main): Likewise.
33154         * tests/test-fcntl-safer.c (main): Likewise.
33155         Reported by Samuel Thibault.
33156
33157         rename, fchdir: don't ignore chdir failure
33158         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33159         * lib/rename.c (rpl_rename) [W32]: Likewise.
33160         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33161         an empty destination directory if source cannot be renamed,
33162         although there is still possibility for failure.
33163         * doc/posix-functions/rename.texi (rename): Document the race.
33164         Reported by Jim Meyering.
33165
33166         maint: cleanup whitespace in recent commits
33167         * lib/rename.c (rpl_rename): Remove tabs.
33168         * tests/test-link.h (test_link): Likewise.
33169         * lib/fchdir.c (get_name): Likewise.
33170         Reported by Jim Meyering.
33171
33172 2009-10-02  Ben Pfaff  <blp@gnu.org>
33173
33174         relocatable-prog-wrapper: Add missing dependency on
33175         double-slash-root.
33176         * modules/relocatable-prog-wrapper: Add dependency.
33177         Reported by Ian Beckwith <ianb@erislabs.net>.
33178
33179 2009-10-02  Eric Blake  <ebb9@byu.net>
33180
33181         renameat: fix Solaris bugs
33182         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33183         needed fixing.
33184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33185         * modules/stdio (Makefile.am): Substitute it.
33186         * lib/stdio.in.h (renameat): Declare replacement.
33187         * lib/renameat.c (rpl_renameat): Implement fix.
33188
33189         renameat: new module
33190         * modules/renameat: New file.
33191         * lib/renameat.c (renameat): Likewise.
33192         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33194         * modules/stdio (Makefile.am): Substitute them.
33195         * lib/stdio.in.h (renameat): Declare it.
33196         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33197         * doc/posix-functions/renameat.texi (renameat): Likewise.
33198         * modules/renameat-tests: New test.
33199         * tests/test-renameat.c: Likewise.
33200
33201         rename: fix mingw bugs
33202         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33203         directory overwrite bugs.
33204
33205         rename: fix another cygwin 1.5 bug
33206         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33207         checks.
33208         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33209         unnecessary cygwin workarounds.  Also work around bug with moving
33210         full directory onto an empty one.
33211         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33212
33213         rename-dest-slash: merge into rename module
33214         * modules/rename-dest-slash (Status): Mark obsolete.
33215         (Depends-on): Add rename.
33216         (Files): Let rename do it all.
33217         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33218         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33219         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33220         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33221         * lib/rename.c (rpl_rename): Update comments.
33222
33223         rename: fix cygwin 1.5.x bugs
33224         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33225         * lib/rename.c (rpl_rename): Work around them.
33226         * modules/rename (Depends-on): Add same-inode.
33227
33228         rename: fix Solaris 10 bug
33229         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33230         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33231         was the only bug.
33232
33233         rename: fix Solaris 9 bug
33234         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33235         on non-directory.  Avoid calling exit.
33236         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33237         strdup.
33238         * modules/rename-tests (Depends-on): Drop lstat.
33239         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33240         (gl_PREREQ_RENAME): Delete unused macro.
33241
33242         rename-dest-slash: fix NetBSD bug
33243         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33244         links.
33245         * modules/rename-dest-slash (Depends-on): Add same-inode.
33246
33247         rename-tests: new test, exposes several platform bugs
33248         * modules/rename-tests: New file.
33249         * tests/test-rename.h: Likewise.
33250         * tests/test-rename.c: Likewise.
33251         * doc/posix-functions/rename.texi (rename): Improve documentation,
33252         including bugs that will eventually be fixed in gnulib.
33253
33254 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33255
33256         * lib/uname.c: Include <stdlib.h>
33257         (uname): Assume version info is available.
33258
33259 2009-10-02  Jim Meyering  <meyering@redhat.com>
33260
33261         gnu-web-doc-update: correct --help output
33262         * build-aux/gnu-web-doc-update: Make --help output relevant.
33263
33264         gnu-web-doc-update: add standard options
33265         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33266
33267         gnu-web-doc-update: New module.
33268         Use this script to automatically update the on-line web documentation
33269         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33270         * modules/gnu-web-doc-update: New file, from coreutils.
33271         * build-aux/gnu-web-doc-update: New script.
33272
33273 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33274
33275         link: LoadLibrary is not needed.
33276         * lib/link.c: Use GetModuleHandle.
33277
33278 2009-10-01  Eric Blake  <ebb9@byu.net>
33279
33280         getopt: bump serial number
33281         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33282         change.
33283
33284         tests: tighten link, rmdir, and remove tests
33285         * tests/test-link.h (includes): No need to use <config.h> here.
33286         Clean up if directory hard link was created, otherwise test for
33287         trailing '.'.
33288         * tests/test-linkat.c (main): Simplify.
33289         * tests/test-remove.c (main): Enhance test for trailing '.'.
33290         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33291
33292 2009-10-01  Jim Meyering  <meyering@redhat.com>
33293
33294         maint.mk: requiring "make major" was annoying, for a "minor" release.
33295         What is intended is "stable", to contrast with alpha and beta,
33296         so require "make stable", not "make major".
33297         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33298         (get_tool_versions): Likewise.
33299         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33300
33301 2009-09-30  Ben Pfaff  <blp@gnu.org>
33302
33303         Fix broken build of replacement for Windows tmpfile().
33304         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33305         flags argument added along with the 'mkostemp' module.
33306
33307 2009-09-28  Bruno Haible  <bruno@clisp.org>
33308
33309         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33310         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33311         to 'remove_elt'.
33312         (gl_list_remove): Update.
33313         * lib/gl_list.c (gl_list_remove): Update.
33314         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33315         to 'remove_elt'.
33316         (gl_oset_remove): Update.
33317         * lib/gl_list.c (gl_oset_remove): Update.
33318         Reported by Eric Blake.
33319
33320 2009-09-28  Eric Blake  <ebb9@byu.net>
33321
33322         doc: mention yet more cygwin 1.7 status
33323         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33324         cygwin.
33325         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33326         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33327
33328         argp: fix test failure
33329         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33330         that are not upper-case.  Pass correct range to tolower.
33331
33332 2009-09-27  Jim Meyering  <meyering@redhat.com>
33333
33334         test-yesno: work around sparc-dash here-document infelicity
33335         Without this change, the literal \177 byte in a here document
33336         would make dash 0.5.5.1-3 access uninitialized memory.
33337         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33338         Instead, use a marker, "@", and filter through tr to create the desired
33339         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33340
33341 2009-09-27  Bruno Haible  <bruno@clisp.org>
33342
33343         Disable untested support for new flavours of ACLs on AIX.
33344         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33345         progress.
33346         * lib/set-mode-acl.c (qset_acl): Likewise.
33347
33348 2008-12-07  Bruno Haible  <bruno@clisp.org>
33349
33350         Add support for new flavours of ACLs on AIX. (Untested.)
33351         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33352         (file_has_acl): Add support for newer AIX.
33353         * lib/set-mode-acl.c (qset_acl): Likewise.
33354         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33355         Rainer Tammer <tammer@tammer.net>.
33356
33357 2009-09-26  Eric Blake  <ebb9@byu.net>
33358
33359         argp: fix compilation of getopt
33360         * lib/getopt.in.h (includes): Use different guard than glibc.
33361         Reported by Sergey Poznyakoff.
33362
33363         doc: mention more cygwin 1.7 status
33364         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33365         bug.
33366         * doc/posix-functions/execl.texi (execl): Likewise.
33367         * doc/posix-functions/execle.texi (execle): Likewise.
33368         * doc/posix-functions/execlp.texi (execlp): Likewise.
33369         * doc/posix-functions/execv.texi (execv): Likewise.
33370         * doc/posix-functions/execve.texi (execve): Likewise.
33371         * doc/posix-functions/execvp.texi (execvp): Likewise.
33372         * doc/glibc-functions/canonicalize_file_name.texi
33373         (canonicalize_file_name): Cygwin 1.7 now provides this.
33374         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33375         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33376         on AT_SYMLINK_NOFOLLOW.
33377
33378 2009-09-24  Eric Blake  <ebb9@byu.net>
33379
33380         test-linkat: make test more robust
33381         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33382
33383         getopt: fix inclusion guards for cygwin
33384         * modules/getopt-posix (Depends-on): Add include-next.
33385         (Makefile.am): Substitute more items in replacement header.
33386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33387         <getopt.h>.
33388         * lib/getopt.in.h (includes): Use split inclusion guard, and
33389         prefer <getopt.h> over include <unistd.h> when one is present.
33390         (option): Also override name of 'struct option'.
33391
33392         same-inode: revert prior change; it is not yet ready
33393         * NEWS: Undo mention of this change.
33394         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33395         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33396         * lib/cycle-check.c (cycle_check): Likewise.
33397         * lib/same.c (same_name): Likewise.
33398         * lib/at-func2.c (at_func2): Likewise.
33399
33400 2009-09-23  Eric Blake  <ebb9@byu.net>
33401
33402         linkat: new module
33403         * modules/linkat: New file.
33404         * lib/at-func2.c (at_func2): Likewise.
33405         * lib/linkat.c (linkat): Likewise.
33406         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33407         * lib/openat-priv.h (at_func2): Add declaration.
33408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33409         * modules/unistd (Makefile.am): Substitute them.
33410         * lib/unistd.in.h (linkat): Declare it.
33411         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33412         * doc/posix-functions/linkat.texi (linkat): Likewise.
33413         * doc/posix-functions/link.texi (link): Tweak wording.
33414         * tests/test-link.c (main): Move guts...
33415         * tests/test-link.h (test_link): ...into new file.
33416         * modules/linkat-tests: New test.
33417         * tests/test-linkat.c: Likewise.
33418         * modules/link-tests (Files): Ship new file.
33419         (Depends-on): Add stdbool.
33420
33421         dirname: add library-safe mdir_name
33422         * lib/dirname.h (mdir_name): New prototype.
33423         * lib/dirname.c (dir_name): Move guts...
33424         (mdir_name): ...to new function that avoids xalloc_die.
33425
33426         fchdir: another mingw fix
33427         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33428         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33429         on mingw (where it has not yet been ported), and make it optional
33430         elsewhere.
33431         (_gl_register_fd): Use it.
33432
33433         same-inode: make SAME_INODE tri-state, to port to mingw
33434         * NEWS: Mention this change.
33435         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33436         st_ino always being 0.
33437         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33438         * lib/cycle-check.c (cycle_check): Likewise.
33439         * lib/same.c (same_name): Likewise.
33440
33441         lstat: avoid mingw compilation error
33442         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33444         lstat ourselves.
33445         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33446         was adequate.
33447         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33448         the checks for lstat.
33449         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33450
33451         link: fix test failure on Solaris 9
33452         * lib/link.c (rpl_link): Don't assume link will catch bogus
33453         trailing slash on source.
33454
33455         test-symlinkat: enhance test
33456         * tests/test-readlink.c (main): Move guts...
33457         * tests/test-readlink.h (test_readlink): ...into new file.
33458         * tests/test-symlink.c (main): Move guts...
33459         * tests/test-symlink.h (test_symlink): ...into new file.
33460         * tests/test-symlinkat.c (main): Use new files for further
33461         coverage.
33462         (do_symlink, do_readlink): New helper functions.
33463         * modules/symlink-tests (Files): Ship new file.
33464         (Depends-on): Add stdbool.
33465         * modules/readlink-tests (Files): Ship new file.
33466         (Depends-on): Add stdbool.
33467         * modules/symlinkat-tests (Files): Use new files.
33468
33469 2009-09-23  Eric Blake  <ebb9@byu.net>
33470
33471         readlink: document portability issue with symlink length
33472         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33473         systems have bogus st_size on symlinks, and mention the
33474         areadlink-with-size module.
33475         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33476         * doc/posix-functions/readlink.texi (readlink): Mention the
33477         areadlink module, and ERANGE failure.
33478         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33479         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33480
33481         readlink: fix Solaris 9 bug with trailing slash
33482         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33483         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33484         * doc/posix-functions/readlink.texi (readlink): Document this.
33485         * modules/readlink-tests: New test.
33486         * tests/test-readlink.c: Likewise.
33487
33488         readlink: fix cygwin 1.5.x bug with return type
33489         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33490         * lib/unistd.in.h (readlink): Use ssize_t.
33491         * lib/readlink.c (readlink): Likewise.
33492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33493         * modules/unistd (Makefile.am): Substitute it.
33494         * lib/unistd.in.h (readlink): Declare replacement.
33495         * doc/posix-functions/readlink.texi (readlink): Document this.
33496
33497         symlink: use throughout gnulib
33498         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33499         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33500         symlink is not used.
33501         * modules/symlinkat (Depends-on): Add symlink.
33502         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33503         * modules/canonicalize-tests (Depends-on): Likewise.
33504         * modules/lstat-tests (Depends-on): Likewise.
33505         * modules/openat-tests (Depends-on): Likewise.
33506         * modules/remove-tests (Depends-on): Likewise.
33507         * modules/rmdir-tests (Depends-on): Likewise.
33508         * modules/unlink-tests (Depends-on): Likewise.
33509         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33510         * tests/test-canonicalize.c (symlink): Likewise.
33511         * tests/test-fstatat.c (symlink): Likewise.
33512         * tests/test-lstat.c (symlink): Likewise.
33513         * tests/test-remove.c (symlink): Likewise.
33514         * tests/test-rmdir.c (symlink): Likewise.
33515         * tests/test-unlink.c (symlink): Likewise.
33516         * tests/test-unlinkat.c (symlink): Likewise.
33517
33518         symlink: new module, for Solaris 9 bug
33519         * modules/symlink: New file.
33520         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33521         * lib/symlink.c: Likewise.
33522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33523         * modules/unistd (Makefile.am): Substitute them.
33524         * lib/unistd.in.h (symlink): Declare replacement.
33525         * MODULES.html.sh (File system functions): Mention it.
33526         * doc/posix-functions/symlink.texi (symlink): Likewise.
33527         * modules/symlink-tests: New test.
33528         * tests/test-symlink.c: Likewise.
33529
33530 2009-09-23  Bruno Haible  <bruno@clisp.org>
33531
33532         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33533         when needed.
33534         Test case: gnulib-tool --import --with-tests atexit inttypes.
33535         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33536
33537 2009-09-23  Bruno Haible  <bruno@clisp.org>
33538
33539         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33540         subcommand, not in a subshell.
33541
33542 2009-09-22  Eric Blake  <ebb9@byu.net>
33543
33544         unistd: sort replacement declarations
33545         * lib/unistd.in.h: Sort declarations.
33546
33547         open, openat: minor optimization
33548         * lib/open.c (open): If open succeeded, len is non-zero.
33549         * lib/openat.c (rpl_openat): Likewise.
33550
33551         link-follow: ensure correct result
33552         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33553         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33554         distinguish between possible failures.
33555
33556 2009-09-21  Eric Blake  <ebb9@byu.net>
33557
33558         fts: avoid compiler warning
33559         * lib/fts.c (dirent_inode_sort_may_be_useful)
33560         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33561
33562 2009-09-19  Bruno Haible  <bruno@clisp.org>
33563
33564         * lib/progreloc.c (canonicalize_file_name): New declaration.
33565
33566 2009-09-19  Eric Blake  <ebb9@byu.net>
33567
33568         link: fix quoting
33569         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33570
33571         openat: fix openat bugs on Solaris 9
33572         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33573         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33574         * modules/openat (Depends-on): Add open.
33575         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33576         * modules/fcntl-h (Makefile.am): Substitute it.
33577         * lib/fcntl.in.h (openat): Declare replacement.
33578         * doc/posix-functions/openat.texi (openat): Document this.
33579
33580         openat: move fstatat and unlinkat into correct files
33581         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33582         compiled.
33583         * lib/openat.c (fstatat, unlinkat): Move...
33584         * lib/fstatat.c (fstatat): ...into correct files.
33585         * lib/unlinkat.c (unlinkat): Likewise.
33586
33587         openat: fix unlinkat bugs on Solaris 9
33588         * lib/unlinkat.c (unlinkat): New file.
33589         * modules/openat (Depends-on): Add unlink.
33590         (Files): Distribute it.
33591         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33592         trailing slash behavior is broken.
33593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33594         * modules/unistd (Makefile.am): Substitute it.
33595         * lib/unistd.in.h (unlinkat): Declare replacement.
33596         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33597
33598         openat: fix fstatat bugs on Solaris 9
33599         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33600         stat.
33601         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33602
33603         test-unlinkat: enhance test, to expose Solaris 9 bug
33604         * tests/test-unlink.c (main): Factor guts...
33605         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33606         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33607         * tests/test-rmdir.c (main): Adjust caller.
33608         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33609         (unlinker): New helper function.
33610         (rmdirat): Enhance check.
33611         * modules/rmdir-tests (Depends-on): Add stdbool.
33612         * modules/unlink-tests (Depends-on): Likewise.
33613         (Files): Add test-unlink.h.
33614         * modules/openat-tests (Files): Likewise.
33615         (Depends-on): Add unlinkdir.
33616
33617         test-fstatat: new test, to expose Solaris 9 bugs
33618         * tests/test-stat.c (main): Factor guts...
33619         * tests/test-stat.h (test_stat_func): ...into new file.
33620         * tests/test-lstat.c (main): Factor guts...
33621         * tests/test-lstat.h (test_lstat_func): ...into new file.
33622         * tests/test-fstatat.c: New file.
33623         * modules/stat-tests (Files): Add test-stat.h.
33624         * modules/lstat-tests (Files): Add test-lstat.h.
33625         (Depends-on): Add stdbool.
33626         * modules/openat-tests (Depends-on): Add pathmax.
33627         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33628         (Makefile.am): Run new test.
33629
33630         remove: new module, for mingw and Solaris 9 bugs
33631         * modules/remove: New file.
33632         * lib/remove.c: Likewise.
33633         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33635         * modules/stdio (Makefile.am): Use them.
33636         * lib/stdio.in.h (remove): Declare replacement.
33637         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33638         * doc/posix-functions/remove.texi (remove): Likewise.
33639         * modules/remove-tests: New test.
33640         * tests/test-remove.c: Likewise.
33641
33642         unlink: new module, for Solaris 9 bug
33643         * modules/unlink: New file.
33644         * lib/unlink.c: Likewise.
33645         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33647         * modules/unistd (Makefile.am): Use them.
33648         * lib/unistd.in.h (stat): Declare replacement.
33649         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33650         * doc/posix-functions/unlink.texi (unlink): Likewise.
33651         * modules/unlink-tests: New test.
33652         * tests/test-unlink.c: Likewise.
33653
33654         lstat: fix Solaris 9 bug
33655         * lib/lstat.c (lstat): Also check for trailing slash on
33656         non-symlink, non-directories.  Use stat module to simplify logic.
33657         * doc/posix-functions/lstat.texi (lstat): Document it.
33658         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33659         (configure.ac): Check for symlink.
33660         * tests/test-lstat.c (main): Add more tests.
33661
33662         stat: add as dependency to other modules
33663         * modules/chown (Depends-on): Add stat.
33664         * modules/euidaccess (Depends-on): Likewise.
33665         * modules/fchdir (Depends-on): Likewise.
33666         * modules/isdir (Depends-on): Likewise.
33667         * modules/link (Depends-on): Likewise.
33668         * modules/lstat (Depends-on): Likewise.
33669         * modules/mkdir-p (Depends-on): Likewise.
33670         * modules/modechange (Depends-on): Likewise.
33671         * modules/open (Depends-on): Likewise.
33672         * modules/readlink (Depends-on): Likewise.
33673         * modules/same (Depends-on): Likewise.
33674
33675         stat: fix Solaris 9 bug
33676         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33677         slash.
33678         * lib/stat.c (rpl_stat): Work around it.
33679         * doc/posix-functions/stat.texi (stat): Update documentation.
33680
33681         stat: new module, for mingw bug
33682         * modules/stat: New file.
33683         * lib/stat.c: Likewise.
33684         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33685         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33686         * modules/sys_stat (Makefile.am): Use them.
33687         * lib/sys_stat.in.h (stat): Declare replacement.
33688         * lib/openat.c (fstatat): Deal with lstat and stat being function
33689         macros.
33690         * modules/openat (Depends-on): Add inline.
33691         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33692         * doc/posix-functions/stat.texi (stat): Likewise.
33693         * modules/stat-tests: New test.
33694         * tests/test-stat.c: Likewise.
33695
33696 2009-09-19  Jim Meyering  <meyering@redhat.com>
33697
33698         syntax-check: detect unnecessary inclusion of canonicalize.h
33699         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33700
33701 2009-09-19  Eric Blake  <ebb9@byu.net>
33702
33703         canonicalize-lgpl: adjust clients to use correct header
33704         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33705         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33706         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33707         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33708         * lib/progreloc.c (includes): Likewise.
33709
33710 2009-09-19  Jim Meyering  <meyering@redhat.com>
33711
33712         test-posixtm.c: correct a comment
33713         * tests/test-posixtm.c: Correct first-line comment.
33714         Spotted by Eric Blake.
33715
33716 2009-09-16  Jim Meyering  <meyering@redhat.com>
33717
33718         posixtm-tests: make T const-correct; add a test case
33719         * tests/test-posixtm.c (T): Declare const.
33720         Add a test for -(2^31+1).
33721         Remove useless can-succeed-only-in-2002 test.
33722
33723         posixtm-tests: adjust the sole failing test
33724         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33725         expected output matches what mktime now produces.  Cross-checked via
33726         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33727
33728         posixtm: move #ifdef'd tests into a new module
33729         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33730         * tests/test-posixtm.c: ... this new file.
33731         * modules/posixtm-tests: New module.
33732
33733 2009-09-19  Eric Blake  <ebb9@byu.net>
33734
33735         openat: simplify use of at-func.c
33736         * lib/at-func.c (includes): Include prerequisites here, to
33737         simplify requirements on client files.
33738         * lib/openat-priv.h: Add double-inclusion guard.
33739         * lib/faccessat.c (includes): Simplify.
33740         * lib/fchmodat.c (includes): Likewise.
33741         * lib/fchownat.c (includes): Likewise.
33742         * lib/mkdirat.c (includes): Likewise.
33743         * lib/mkfifoat.c (includes): Likewise.
33744         * lib/symlinkat.c (includes): Likewise.
33745
33746         openat: allow return of fd 0
33747         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33748         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33749         unistd-safer.
33750         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33751         <fcntl.h>; this module does not leak fds.
33752         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33753         must be allowed to return 0, leaving openat_safer to add the
33754         safety.
33755         (openat_permissive): Avoid writing to just-opened fd 2 if
33756         restoring the current directory fails.
33757         * lib/openat-die.c (openat_restore_fail): Add comment.
33758         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33759         (save_cwd): Guarantee safe fd, but without use of open_safer.
33760         * tests/test-openat.c: New test.
33761         * modules/openat-tests (Files, Makefile.am): Distribute and build
33762         new file.
33763
33764         relocatable-prog-wrapper: fix build
33765         * modules/relocatable-prog-wrapper (Files): Update name of
33766         canonicalize m4 file, broken on 2009-09-17.
33767         Reported by emad hajjar <aleppos@hotmail.com>.
33768
33769 2009-09-19  Bruno Haible  <bruno@clisp.org>
33770
33771         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33772         * lib/safe-alloc.c: Likewise.
33773         Reported by Ian Beckwith <ianb@erislabs.net>.
33774
33775 2009-09-18  Bruno Haible  <bruno@clisp.org>
33776
33777         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33778         Reported by <erobles@sensacd.com.mx>.
33779
33780 2009-09-17  Eric Blake  <ebb9@byu.net>
33781
33782         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33783         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33784         slashes when checking if last component is missing.
33785         * tests/test-canonicalize.c (main): Test this.
33786
33787         canonicalize, canonicalize-lgpl: honor // if distinct from /
33788         * modules/canonicalize (Files): Add double-slash-root.m4.
33789         * modules/canonicalize-lgpl (Files): Likewise.
33790         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33791         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33792         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33793         fallback definition.
33794         (canonicalize_filename_mode): Use it to protect //.
33795         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33796         (__realpath): Likewise.
33797         * tests/test-canonicalize.c (main): Test this.
33798         * tests/test-canonicalize-lgpl.c (main): Likewise.
33799         * modules/canonicalize-tests (Depends-on): Add same-inode.
33800         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33801
33802         canonicalize-lgpl: fix glibc bug with trailing slash
33803         * m4/canonicalize-lgpl.m4: Move contents...
33804         * m4/canonicalize.m4: ...here.
33805         (gl_CANONICALIZE_LGPL): Factor realpath check...
33806         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33807         glibc 2.3.5 bug, fixed 2005-04-27.
33808         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33809         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33810         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33811         * modules/canonicalize-lgpl (Files): Manage file rename.
33812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33813         * modules/stdlib (Makefile.am): Substitute witness.
33814         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33815         is needed.
33816         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33817         replacement is required.
33818         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33819         * doc/glibc-functions/canonicalize_file_name.texi
33820         (canonicalize_file_name): Document this.
33821         * doc/posix-functions/realpath.texi (realpath): Likewise.
33822
33823         canonicalize-lgpl: reject non-directory with trailing slash
33824         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33825         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33826         catches failures in glibc 2.3.5.
33827         * tests/test-canonicalize.c (main): Likewise.
33828
33829         canonicalize-lgpl: use native realpath if it works
33830         * lib/canonicalize-lgpl.c (realpath): Guard with
33831         FUNC_REALPATH_WORKS.
33832         * lib/stdlib.in.h (realpath): Make declaration optional based on
33833         HAVE_REALPATH.
33834         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33835         native realpath works.
33836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33837         * modules/stdlib (Makefile.am): Substitute witness.
33838
33839         canonicalize, canonicalize-lgpl: use <stdlib.h>
33840         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33841         (Include): Mention <stdlib.h>.
33842         (configure.ac): Mention functions we provide.
33843         * modules/canonicalize (configure.ac): Likewise.
33844         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33845         realpath if canonicalize_file_name is missing.
33846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33847         * modules/stdlib (Makefile.am): Substitute witnesses.
33848         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33849         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33850         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33851         * NEWS: Document this.
33852         * doc/glibc-functions/canonicalize_file_name.texi
33853         (canonicalize_file_name): Likewise.
33854         * doc/posix-functions/realpath.texi (realpath): Likewise.
33855         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33856
33857         test-canonicalize: consolidate into single C program
33858         * tests/test-canonicalize.sh: Delete; move setup into...
33859         * tests/test-canonicalize.c (main): ...the program, making it
33860         easier to run in debugger.  Add some tests.
33861         * modules/canonicalize-tests (Files): Remove unused file.
33862         (Depends-on): Add progname.
33863         (configure.ac, Makefile.am): Simplify.
33864
33865         test-canonicalize-lgpl: consolidate into single C program
33866         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33867         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33868         easier to run in debugger.  Add some tests.
33869         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33870         (configure.ac, Makefile.am): Simplify.
33871
33872         canonicalize: avoid resolvepath
33873         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
33874         unnecessary checks.
33875         * lib/canonicalize.c (includes): Simplify.
33876         (canonicalize_file_name): Drop resolvepath implementation.
33877         * modules/canonicalize (Depends-on): Drop filenamecat.
33878
33879         canonicalize: don't lose errno
33880         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
33881         over calls to free.
33882
33883         canonicalize: simplify errno handling
33884         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
33885         assignment.
33886
33887         canonicalize, canonicalize-lgpl: update module dependencies
33888         * modules/canonicalize (Depends-on): Add extensions, lstat,
33889         pathmax, stdlib.
33890         (Files): Drop pathmax.h.
33891         (configure.ac): Adjust macro name.
33892         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
33893         lstat, stdlib, sys_stat.
33894         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
33895         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
33896         extensions.
33897         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
33898         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
33899         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
33900         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
33901         declaration, if available.
33902         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
33903         we can rely on the readlink module.
33904         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
33905         (includes): Use <unistd.h> unconditionally.
33906
33907 2009-09-17  Eric Blake  <ebb9@byu.net>
33908
33909         maint: make Include sections of modules consistent
33910         * modules/alloca: Use only header name; no need to list #include.
33911         * modules/alloca-opt: Likewise.
33912         * modules/arpa_inet: Likewise.
33913         * modules/canon-host: Likewise.
33914         * modules/configmake: Likewise.
33915         * modules/dirent: Likewise.
33916         * modules/eealloc: Likewise.
33917         * modules/environ: Likewise.
33918         * modules/fchdir: Likewise.
33919         * modules/fcntl: Likewise.
33920         * modules/fcntl-h: Likewise.
33921         * modules/gethrxtime: Likewise.
33922         * modules/gettime: Likewise.
33923         * modules/ignore-value: Likewise.
33924         * modules/inet_ntop: Likewise.
33925         * modules/inet_pton: Likewise.
33926         * modules/inttypes: Likewise.
33927         * modules/isnand-nolibm: Likewise.
33928         * modules/isnanf-nolibm: Likewise.
33929         * modules/mbchar: Likewise.
33930         * modules/mbfile: Likewise.
33931         * modules/mbiter: Likewise.
33932         * modules/mbuiter: Likewise.
33933         * modules/netdb: Likewise.
33934         * modules/netinet_in: Likewise.
33935         * modules/nproc: Likewise.
33936         * modules/pagealign_alloc: Likewise.
33937         * modules/poll: Likewise.
33938         * modules/printf-frexp: Likewise.
33939         * modules/pthread: Likewise.
33940         * modules/putenv: Likewise.
33941         * modules/random_r: Likewise.
33942         * modules/relocatable-prog: Likewise.
33943         * modules/search: Likewise.
33944         * modules/select: Likewise.
33945         * modules/selinux-h: Likewise.
33946         * modules/settime: Likewise.
33947         * modules/signal: Likewise.
33948         * modules/size_max: Likewise.
33949         * modules/socklen: Likewise.
33950         * modules/ssize_t: Likewise.
33951         * modules/stdarg: Likewise.
33952         * modules/stdbool: Likewise.
33953         * modules/stddef: Likewise.
33954         * modules/stdint: Likewise.
33955         * modules/stdio: Likewise.
33956         * modules/stdlib: Likewise.
33957         * modules/string: Likewise.
33958         * modules/strings: Likewise.
33959         * modules/sys_file: Likewise.
33960         * modules/sys_ioctl: Likewise.
33961         * modules/sys_select: Likewise.
33962         * modules/sys_socket: Likewise.
33963         * modules/sys_stat: Likewise.
33964         * modules/sys_time: Likewise.
33965         * modules/sys_times: Likewise.
33966         * modules/sys_utsname: Likewise.
33967         * modules/sys_wait: Likewise.
33968         * modules/sysexits: Likewise.
33969         * modules/time: Likewise.
33970         * modules/times: Likewise.
33971         * modules/tmpfile: Likewise.
33972         * modules/trim: Likewise.
33973         * modules/unistd: Likewise.
33974         * modules/wchar: Likewise.
33975         * modules/wctype: Likewise.
33976
33977 2009-09-17  Bruno Haible  <bruno@clisp.org>
33978
33979         Make getdate.y compile on QNX and NetBSD 5 / i386.
33980         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33981         TIME_T_FITS_IN_LONG_INT.
33982         * lib/getdate.y (long_time_t): New type.
33983         (relative_time): Change type of 'seconds' field to long_time_t.
33984         (get_date): Update types of local variables. Check against overflow
33985         during conversion from long_time_t to time_t.
33986         Reported by Matt Kraai <kraai@ftbfs.org>
33987         and Hasso Tepper <hasso@netbsd.org>.
33988
33989 2009-09-17  Bruno Haible  <bruno@clisp.org>
33990
33991         * modules/COPYING: Update copyright years.
33992         * modules/README: Likeiwse.
33993         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33994         Reported by Ian Beckwith <ianb@erislabs.net>.
33995
33996 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33997
33998         * users.txt: Update references for gnuit package.
33999
34000 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34001
34002         * m4/getdelim.m4: Fix typo in copyright line.
34003
34004 2009-09-17  Bruno Haible  <bruno@clisp.org>
34005
34006         * lib/atoll.c: Use the standard header with GPL copyright.
34007         * lib/argz.in.h: Likewise.
34008         * lib/glob.c: Likewise.
34009         * lib/glob-libc.h: Likewise.
34010         * lib/random_r.c: Likewise.
34011         * lib/siglist.h: Likewise.
34012         * lib/strsignal.c: Likewise.
34013         Reported by Ian Beckwith <ianb@erislabs.net>.
34014
34015 2009-09-17  Eric Blake  <ebb9@byu.net>
34016
34017         rmdir: ensure correct dependency order
34018         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34019
34020 2009-09-17  Bruno Haible  <bruno@clisp.org>
34021
34022         Disable assertion that fails on NetBSD 5 / i386.
34023         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34024         Reported by Sam Steingold <sds@gnu.org>
34025         and Hasso Tepper <hasso@netbsd.org>.
34026
34027 2009-09-16  Eric Blake  <ebb9@byu.net>
34028
34029         unlinkdir: port to mingw
34030         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34031         on which no one can unlink a directory.
34032
34033         stdlib: sort witness names
34034         * modules/stdlib (Makefile.am): Sort replacements.
34035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34036         * lib/stdlib.in.h: Likewise.
34037
34038         parse-duration-tests: avoid link failure
34039         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34040         LIBINTL.
34041         Reported by Tom G. Christensen.
34042
34043         openat-tests: ensure unlinkat behaves like rmdir
34044         * tests/test-rmdir.c (main): Factor guts...
34045         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34046         * modules/rmdir-tests (Files): Ship new file.
34047         * modules/openat-tests: New test.
34048         * tests/test-unlinkat.c: Likewise.
34049
34050         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34051         * modules/rmdir-errno (Status, Notice): Now obsolete.
34052
34053         rmdir: work around cygwin 1.5.x and mingw bugs
34054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34055         * lib/rmdir.c (rmdir): Work around it.
34056         * modules/rmdir (Status, Notice): No longer obsolete.
34057         (Files): Add dos.m4.
34058         (Depends-on): Add unistd.
34059         (configure.ac): Set witnesses.
34060         (License): Relax to LGPLv2+.
34061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34062         * modules/unistd (Makefile.am): Substitute witnesses.
34063         * lib/unistd.in.h (rmdir): Declare replacement.
34064         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34065         * modules/rmdir-tests: New tests.
34066         * tests/test-rmdir.c: Likewise.
34067
34068 2009-09-15  Eric Blake  <ebb9@byu.net>
34069
34070         fchdir: improve use of replacement functions
34071         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34073         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34074         REPLACE_CLOSEDIR.
34075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34076         * modules/sys_stat (Makefile.am): Substitute correct witness.
34077         * modules/dirent (Makefile.am): Likewise.
34078         * modules/unistd (Makefile.am): Likewise.
34079         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34080         * lib/unistd.in.h (dup): Likewise.
34081         * lib/sys_stat.in.h (fstat): Likewise.
34082
34083         maint: ignore gnulib-tool temp files
34084         * .gitignore: Ignore files created during gnulib-tool --test.
34085
34086 2009-09-13  Jim Meyering  <meyering@redhat.com>
34087
34088         posixtm: don't reject a time that specify "60" as the number of seconds
34089         * lib/posixtm.c (posixtime): The code to reject invalid dates
34090         would also reject a time specified with the .60 suffix.
34091         But POSIX allows that, in order to accommodate leap seconds.
34092         So don't reject it.
34093         (main): Adjust tests accordingly.
34094         * modules/posixtm (Depends-on): Add stpcpy.
34095
34096 2009-09-11  Jim Meyering  <meyering@redhat.com>
34097
34098         announce-gen: include [$release_type] in emitted Subject:
34099         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34100         e.g., [stable] in the emitted Subject: line.
34101
34102 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34103
34104         Remove obsolete macros from several modules.
34105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34106         obsolete Autoconf macros with their modern counterparts.
34107         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34108         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34110         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34111         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34112         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34114         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34115         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34116         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34117         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34118         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34119         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34120         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34121         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34122         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34123         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34124         * m4/time_r.m4 (gl_TIME_R): Likewise.
34125         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34126         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34127         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34128
34129         Fix copyright header in build-aux scripts.
34130         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34131         recommendation.
34132         * build-aux/ncftpput-ftp: Likewise.
34133         * build-aux/update-copyright: Likewise.
34134
34135 2009-09-09  Eric Blake  <ebb9@byu.net>
34136
34137         test-link: allow Linux choice of errno
34138         * tests/test-link.c (main): Relax test for alternate error.
34139
34140         strndup: fix improper m4 caching
34141         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34142         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34143         (gl_PREREQ_STRNDUP): Delete.
34144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34145         * modules/string (Makefile.am): Substitute it.
34146         * lib/string.in.h (strndup): Modernize prototype.
34147
34148         getcwd: port to mingw
34149         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34150         different from the POSIX assumptions made throughout the getcwd
34151         module; fortunately, the mingw getcwd does not need replacement.
34152         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34153         * modules/getcwd-tests: New test.
34154         * tests/test-getcwd.c: Likewise.
34155
34156         link: fix platform bugs
34157         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34158         * lib/link.c (link): Work around them.  Fix related mingw bug.
34159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34160         * modules/unistd (Makefile.am): Substitute it.
34161         * lib/unistd.in.h (link): Declare replacement.
34162         * doc/posix-functions/link.texi (link): Document this.
34163         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34164
34165         test-link: consolidate into single C program, test more cases
34166         * tests/test-link.sh: Delete.
34167         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34168         at least Cygwin and Solaris.
34169         * modules/link-tests (Files): Remove unused file.
34170         (Depends-on): Add errno, sys_stat.
34171         (Makefile.am): Simplify.
34172
34173 2009-09-08  Bruno Haible  <bruno@clisp.org>
34174
34175         Work around towlower, towupper bug on mingw.
34176         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34177         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34178         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34179         * doc/posix-functions/towupper.texi: Likewise.
34180         Reported by Eric Blake.
34181
34182 2009-09-08  Jim Meyering  <meyering@redhat.com>
34183
34184         build: don't try to run autoheader if we don't use it
34185         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34186         is not used in configure.ac.
34187
34188 2009-09-08  Eric Blake  <ebb9@byu.net>
34189
34190         euidaccess: fix compilation error
34191         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34192
34193         rawmemchr: relax license
34194         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34195         okay.
34196         Reported by Jim Meyering.
34197
34198         mkfifoat: new module
34199         * modules/mkfifoat: New file.
34200         * lib/mkfifoat.c: Likewise.
34201         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34203         * modules/sys_stat (Makefile.am): Use them.
34204         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34205         * MODULES.html.sh (File system functions): Mention module.
34206         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34207         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34208         * modules/mkfifoat-tests: New test.
34209         * tests/test-mkfifoat.c: Likewise.
34210
34211         strchrnul: relax license
34212         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34213         okay.
34214         Reported by Jim Meyering.
34215
34216 2009-09-08  Eric Blake  <ebb9@byu.net>
34217
34218         fstatat: fix compilation on Solaris
34219         * lib/fstatat.c (includes): Add fcntl.h.
34220         Reported by Pádraig Brady.
34221
34222 2009-09-07  Eric Blake  <ebb9@byu.net>
34223
34224         rename: modernize replacement
34225         * modules/rename (Depends-on): Add stdio.
34226         (configure.ac): Declare witness.
34227         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34228         stdio take care of replacement.
34229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34230         * modules/stdio (Makefile.am): Substitute them.
34231         * lib/stdio.in.h (rename): Declare replacement.
34232         * lib/rename.c (includes): Allow cross-compilation to non-windows
34233         machines.
34234         * doc/posix-functions/rename.texi (rename): Improve
34235         documentation.
34236
34237         stdio: sort witness names
34238         * modules/stdio (Makefile.am): Sort replacements.
34239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34240         * lib/stdio.in.h: Likewise.
34241
34242         getcwd: minor cleanups
34243         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34244         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34245
34246         openat: provide more convenience names
34247         * modules/faccessat (configure.ac): Add C witness.
34248         * lib/unistd.in.h (readlinkat): Fix typo.
34249         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34250         convenience wrappers.
34251         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34252         wrappers in syntax checks.
34253
34254 2009-09-06  Eric Blake  <ebb9@byu.net>
34255
34256         doc: fix comments in recent patches
34257         * lib/faccessat.c: Mention correct function.
34258         * lib/fchmodat.c: Likewise.
34259         * lib/fchownat.c: Likewise.
34260         * lib/symlinkat.c: Likewise.
34261         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34262         constants.
34263
34264         faccessat, symlinkat: continue cleanup of previous patch
34265         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34266         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34267         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34269         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34270         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34271         set.
34272
34273 2009-09-06  Bruno Haible  <bruno@clisp.org>
34274
34275         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34276         (fstatat): Declare if GNULIB_FSTATAT is set.
34277         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34278         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34279         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34280         * modules/fcntl-h (Files): Remove m4/openat.m4.
34281         * modules/sys_stat (Files): Remove m4/openat.m4.
34282         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34283         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34284         * modules/unistd (Files): Remove m4/openat.m4.
34285         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34286         GNULIB_OPENAT.
34287         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34288         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34289         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34290         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34291         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34292         gl_OPENAT_DEFAULTS.
34293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34294         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34295         Don't require gl_OPENAT_DEFAULTS.
34296         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34297         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34298         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34299         (gl_OPENAT_DEFAULTS): Remove macro.
34300
34301 2009-09-06  Bruno Haible  <bruno@clisp.org>
34302
34303         * modules/openat (configure.ac): Remove unneeded witness.
34304
34305 2009-09-06  Bruno Haible  <bruno@clisp.org>
34306
34307         Set errno to ENOSYS when a function is entirely unsupported.
34308         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34309         EOPNOTSUPP.
34310         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34311         * modules/chown (Depends-on): Remove errno.
34312
34313 2009-09-06  Bruno Haible  <bruno@clisp.org>
34314
34315         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34316
34317 2009-09-06  Bruno Haible  <bruno@clisp.org>
34318
34319         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34320
34321 2009-09-06  Ben Pfaff  <blp@gnu.org>
34322             Bruno Haible  <bruno@clisp.org>
34323
34324         Work around a glibc bug in strtok_r.
34325         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34326         Undefine if UNDEFINE_STRTOK_R is set.
34327         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34329         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34330         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34331         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34332         UNDEFINE_STRTOK_R.
34333         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34334
34335 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34336
34337         exclude: minor fix
34338         * lib/exclude.c: Include wctype.h
34339
34340 2009-09-06  Akim Demaille  <demaille@gostai.com>
34341
34342         bootstrap: improve error message
34343         * build-aux/bootstrap (find_tool): Upon failure, report the list
34344         of candidates.
34345         Honor the initial value of the envvar.
34346
34347 2009-09-05  Eric Blake  <ebb9@byu.net>
34348
34349         symlinkat: new module
34350         * modules/symlinkat: New file.
34351         * lib/symlinkat.c: Likewise.
34352         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34354         * modules/unistd (Makefile.am): Use them.
34355         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34356         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34357         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34358         * MODULES.html.sh (File system functions): Mention module.
34359         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34360         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34361         * modules/symlinkat-tests: New test.
34362         * tests/test-symlinkat.c: Likewise.
34363
34364         test-openat-safer: add more checks
34365         * tests/test-openat-safer.c (main): Check more code paths.
34366
34367 2009-09-05  Jim Meyering  <meyering@redhat.com>
34368
34369         syntax-check: detect unnecessary inclusion of openat.h
34370         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34371
34372 2009-09-05  Bruno Haible  <bruno@clisp.org>
34373
34374         Support towlower, towupper.
34375         * doc/posix-functions/towlower.texi: Mention module wctype.
34376         * doc/posix-functions/towupper.texi: Likewise.
34377         * lib/wctype.in.h (towlower, towupper): New functions.
34378         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34379         (ASSERT): New macro.
34380         (e): New variable.
34381         (main): Test also towlower, towupper. Test WEOF argument.
34382         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34383
34384 2009-09-05  Bruno Haible  <bruno@clisp.org>
34385
34386         Fix conversion behaviour when the input is invalid.
34387         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34388         mark occurring in first pass of indirect conversion.
34389         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34390         input.
34391         Found by clang's static analyzer.
34392
34393 2009-09-05  Bruno Haible  <bruno@clisp.org>
34394
34395         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34396         where direct conversion is possible.
34397
34398 2009-09-04  Eric Blake  <ebb9@byu.net>
34399
34400         openat: fail with ENOENT on empty name
34401         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34402         buffer.
34403
34404         link-follow: fix logic bug in prior patch
34405         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34406         reversed sense of yes and no in prior patch.  Avoid confusing
34407         compilation failure with desired semantics.
34408
34409         link-follow: accomodate mingw and cross-compilation
34410         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34411         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34412         cross-compilation results to -1, to make linkat easier to
34413         implement when cross-compiling.  Trivially support mingw.
34414         * modules/link-follow (configure.ac): Call new name.
34415         * NEWS: Mention this.
34416
34417 2009-09-03  Eric Blake  <ebb9@byu.net>
34418
34419         faccessat: compile replacement
34420         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34421         needed.
34422
34423         fts: fix compilation error
34424         * lib/fts.c (includes): Re-add "openat.h", for
34425         openat_needs_fchdir.
34426
34427         faccessat: new module
34428         * modules/faccessat: New file.
34429         * lib/faccessat.c: Likewise.
34430         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34432         * modules/unistd (Makefile.am): Use it.
34433         * lib/unistd.in.h (faccessat): Declare it.
34434         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34435         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34436         * MODULES.html.sh (File system functions): Mention it.
34437         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34438         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34439
34440         euidaccess: prefer POSIX over non-standard implementation
34441         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34442         * lib/euidaccess.c (euidaccess): Use it if available.
34443
34444         openat: make template easier to use
34445         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34446         AT_FUNC_F2 to be undefined.
34447         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34448         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34449         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34450         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34451         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34452         Likewise.
34453         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34454         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34455         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34456         Likewise.
34457
34458         openat: declare in POSIX headers
34459         * NEWS: Mention this.
34460         * modules/openat (configure.ac): Declare witnesses.
34461         (Depends-on): Add fcntl-h, sys_stat, unistd.
34462         (Include): Mention correct headers.
34463         * modules/fcntl-h (Depends-on): Add link-warning.
34464         (Files): Add openat.m4.
34465         (Makefile.am): Substitute witnesses.
34466         * modules/sys_stat (Files, Makefile.am): Likewise.
34467         * modules/unistd (Files, Makefile.am): Likewise.
34468         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34469         (gl_OPENAT_DEFAULTS): New macro.
34470         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34472         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34473         (SYS_STAT_H): Remove unused variable.
34474         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34475         * lib/fcntl--.h (includes): Remove unneeded header.
34476         * lib/openat-safer.c (includes): Likewise.
34477         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34478         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34479         appropriate headers.
34480         (__OPENAT_PREFIX): Delete.
34481         * lib/fcntl.in.h (openat): Provide declaration.
34482         (AT_FDCWD): Fix Solaris bug.
34483         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34484         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34485         * lib/fchmodat.c (includes):  Adjust to find declaration.
34486         * lib/fchownat.c (includes): Likewise.
34487         * lib/mkdirat.c (includes): Likewise.
34488         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34489         still visible.
34490
34491 2009-09-02  Eric Blake  <ebb9@byu.net>
34492
34493         errno: use consistently
34494         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34495         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34496         * lib/canonicalize.c (ELOOP): Likewise.
34497         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34498         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34499         * lib/lchown.c (EOPNOTSUPP): Likewise.
34500         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34501         * lib/savewd.c (ESTALE): Likewise.
34502         * lib/settime.c (ENOSYS): Likewise.
34503         * lib/utimens.c (ENOSYS): Likewise.
34504         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34505         * lib/chdir-safer.c (ELOOP): Likewise.
34506         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34507         * modules/c-stack (Depends-on): Add errno.
34508         * modules/canonicalize (Depends-on): Likewise.
34509         * modules/chdir-safer (Depends-on): Likewise.
34510         * modules/fdopendir (Depends-on): Likewise.
34511         * modules/inet_ntop (Depends-on): Likewise.
34512         * modules/inet_pton (Depends-on): Likewise.
34513         * modules/lchown (Depends-on): Likewise.
34514         * modules/openat (Depends-on): Likewise.
34515         * modules/savewd (Depends-on): Likewise.
34516         * modules/settime (Depends-on): Likewise.
34517         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34518
34519         fts: avoid leaking fds
34520         * modules/fts (Depends-on): Add cloexec.
34521         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34522         flag.
34523
34524         fts: make directory fds more robust
34525         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34526         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34527
34528         backupfile, chdir-long, fts, savedir: make safer
34529         * lib/backupfile.c (includes): Use "dirent--.h", since
34530         numbered_backup can write to stderr during readdir.
34531         * lib/savedir.c (includes): Likewise.
34532         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34533         emulation can write to stderr on failure.
34534         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34535         * lib/getcwd.c: Document why opendir_safer is unused.
34536         * lib/glob.c: Likewise.
34537         * lib/scandir.c: Likewise.
34538         * lib/openat-proc.c: Likewise, for open_safer.
34539         * modules/backupfile (Depends-on): Add dirent-safer.
34540         * modules/savedir (Depends-on): Likewise.
34541         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34542         * modules/chdir-long (Depends-on): Add openat-safer.
34543
34544         openat-safer: new module
34545         * modules/openat-safer: New file.
34546         * lib/openat-safer.c: Likewise.
34547         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34548         * lib/fcntl-safer.h (openat_safer): Declare.
34549         * lib/fcntl--.h (openat): Override.
34550         * MODULES.html.sh (File descriptor based I/O): Mention it.
34551         * lib/openat.h: Add double-inclusion guards.
34552         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34553         "fcntl--.h", so we can implement openat.
34554         * modules/openat-safer-tests: New test.
34555         * tests/test-openat-safer.c: New file.
34556
34557         dirent-safer: new module
34558         * modules/dirent-safer: New file.
34559         * lib/dirent--.h: Likewise.
34560         * lib/dirent-safer.h: Likewise.
34561         * lib/opendir-safer.c: Likewise.
34562         * m4/dirent-safer.m4: Likewise.
34563         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34564         * modules/dirent-safer-tests: New test.
34565         * tests/test-dirent-safer.c: New file.
34566         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34567
34568         fdopendir: optimize on mingw
34569         * lib/unistd.in.h (_gl_directory_name): New prototype.
34570         * lib/fchdir.c (_gl_directory_name): Implement it.
34571         (fchdir): Use it to simplify implementation.
34572         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34573         fchdir, when available, to avoid calling [f]chdir().
34574
34575         fdopendir: split into its own module
34576         * lib/openat.c (fdopendir): Move...
34577         * lib/fdopendir.c: ...into new file.
34578         * modules/fdopendir: New module.
34579         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34580         * modules/openat (Depends-on): Add fdopendir.
34581         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34582         fdopendir here.
34583         * modules/savedir (Depends-on): Only need fdopendir, not full
34584         openat.
34585         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34586         * lib/openat.h (fdopendir): Drop prototype.
34587         * lib/dirent.in.h (fdopendir): Provide prototype.
34588         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34589         * modules/dirent (Makefile.am): Substitute them.
34590         * MODULES.html.sh (File system functions): Mention it.
34591         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34592         * modules/fdopendir-tests: New file.
34593         * tests/test-fdopendir.c: Likewise.
34594
34595         fchdir: use more consistent macro convention
34596         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34597         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34598         REPLACE_FCHDIR, rather than relying on config.h macros.
34599         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34600         inside a single make-time REPLACE_FCHDIR block, rather than using
34601         the config.h FCHDIR_REPLACEMENT.
34602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34603         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34604         Manage fstat replacement.
34605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34606         REPLACE_FCHDIR.
34607         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34608         (Makefile.am): Substitute REPLACE_FCHDIR.
34609         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34610         FCHDIR_REPLACEMENT.
34611         * lib/dup-safer.c (dup_safer): Likewise.
34612         * lib/dup2.c (rpl_dup2): Likewise.
34613         * lib/dup3.c (rpl_dup3): Likewise.
34614         * lib/open.c (rpl_open): Likewise.
34615
34616         fchdir: simplify error handling, and support dup3
34617         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34618         stdbool, malloc-posix, realloc-posix.
34619         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34620         (ensure_dirs_slot): Return false on allocation failure.
34621         (rpl_dup2): Delete.
34622         (_gl_register_dup): New function.
34623         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34624         (_gl_register_fd): Close fd on allocation failure.
34625         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34626         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34627         prototype.
34628         (rpl_dup2_fchdir): Delete prototype.
34629         * lib/open.c (open): Update caller.
34630         * lib/dup2.c (dup2): Track fchdir metadata.
34631         * lib/dup3.c (dup3): Likewise.
34632         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34634
34635 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34636
34637         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34638         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34639         don't pass arguments to AC_OUTPUT.
34640
34641 2009-09-02  Bruno Haible  <bruno@clisp.org>
34642
34643         * modules/mkdtemp (License): Relicense under LGPLv2+.
34644         Reported by Paolo Bonzini.
34645
34646 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34647
34648         Replace uses of obsolete autoconf macros in Jim's modules.
34649         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34650         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34651         can evoke a warning from autoconf when run with -Wobsolete
34652         enabled.  They were declared obsolete for good reasons (see
34653         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34654         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34655         should not continue using the deprecated macros.
34656         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34657         obsolete Autoconf macros with modern counterparts.
34658         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34659         * m4/dos.m4 (gl_AC_DOS): Likewise.
34660         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34662         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34663         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34664         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34665         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34666         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34667         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34668         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34669         Likewise.
34670         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34671         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34672         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34673         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34674         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34675         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34676
34677 2009-09-01  Eric Blake  <ebb9@byu.net>
34678
34679         fchdir: fix off-by-one bug in previous patch
34680         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34681         (_gl_unregister_fd): Delete useless if.
34682
34683 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34684
34685         maint.mk: sort the list of syntax-check rules
34686         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34687         easier to get a sense of progress when the rules are run sequentially
34688         and take a long time.
34689
34690 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34691
34692         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34693         * modules/netinet_in: Likewise.
34694         * modules/sys_file: Likewise.
34695         * modules/sys_ioctl: Likewise.
34696         * modules/sys_select: Likewise.
34697         * modules/sys_socket: Likewise.
34698         * modules/sys_stat: Likewise.
34699         * modules/sys_time: Likewise.
34700         * modules/sys_times: Likewise.
34701         * modules/sys_utsname: Likewise.
34702         * modules/sys_wait: Likewise.
34703
34704 2009-09-01  Jim Meyering  <meyering@redhat.com>
34705
34706         fts: help ensure that return values are not ignored
34707         * lib/fts_.h (__GNUC_PREREQ): Define.
34708         (__attribute_warn_unused_result__): Define.
34709         (fts_children, fts_close, fts_open, fts_read): Declare with
34710         __attribute_warn_unused_result__.
34711
34712         fts: fts_close now fails also when closing a dir file descriptor fails
34713         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34714         and propagate to caller, along with errno.
34715
34716         announce-gen: correct formatting in --help output
34717         * build-aux/announce-gen (usage): Move the one-line description in
34718         --help output "up", to where it belongs, just after Usage:.
34719
34720 2009-08-31  Eric Blake  <ebb9@byu.net>
34721
34722         fchdir: port to mingw
34723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34724         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34725         opened, then use a substitute.
34726         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34727         replacement.
34728         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34729         (_gl_register_fd): No need to check stat if open already filters
34730         all directories.
34731         (fchdir): Fix error condition to match POSIX.
34732         * modules/fchdir (Depends-on): Add sys_stat.
34733         * doc/posix-functions/open.texi (open): Document the limitation.
34734         * modules/fchdir-tests: New file.
34735         * tests/test-fchdir.c: Likewise.
34736
34737         canonicalize: allow cross-testing from cygwin to mingw
34738         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34739         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34740         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34741         Likewise.
34742         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34743         target does not support symlinks.
34744         * tests/test-canonicalize-lgpl.sh: Likewise.
34745
34746         chown: avoid compilation warning on mingw
34747         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34748         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34749         mingw.
34750         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34751         * modules/chown (Depends-on): Add errno.
34752
34753 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34754
34755         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34756         command.
34757
34758 2009-08-31  Jim Meyering  <meyering@redhat.com>
34759
34760         canonicalize: remove useless initialization
34761         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34762         initialization of local, "end".
34763
34764 2009-08-30  Bruno Haible  <bruno@clisp.org>
34765
34766         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34767         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34768         ENOSYS.
34769
34770 2009-08-30  Bruno Haible  <bruno@clisp.org>
34771
34772         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34773         /usr/xpg4/bin/tr when it exists.
34774         * tests/test-pipe-filter-gi1.sh: Likewise.
34775
34776 2009-08-30  Bruno Haible  <bruno@clisp.org>
34777
34778         Work around deficient /usr/bin/id program on Solaris.
34779         * tests/test-file-has-acl.sh (ID): New variable.
34780         * tests/test-set-mode-acl.sh (ID): Likewise.
34781         * tests/test-copy-acl.sh (ID): Likewise.
34782         * tests/test-copy-file.sh (ID): Likewise.
34783
34784 2009-08-30  Bruno Haible  <bruno@clisp.org>
34785
34786         New module 'xstriconveh'.
34787         * lib/xstriconveh.h: New file.
34788         * lib/xstriconveh.c: New file.
34789         * modules/xstriconveh: New file.
34790
34791 2009-08-30  Bruno Haible  <bruno@clisp.org>
34792
34793         Make it easier to use mem_cd_iconveh.
34794         * lib/striconveh.h (iconveh_t): New type.
34795         (iconveh_open, iconveh_close): New declarations.
34796         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34797         with a single 'const iconveh_t *' argument.
34798         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34799         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34800         with a single 'const iconveh_t *' argument.
34801         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34802         * tests/test-striconveh.c (main): Update.
34803         * NEWS: Mention the change.
34804
34805 2009-08-30  Bruno Haible  <bruno@clisp.org>
34806
34807         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34808         problem.
34809
34810 2009-08-30  Bruno Haible  <bruno@clisp.org>
34811
34812         Work around iconv_open problem on Solaris.
34813         * lib/iconv_open-solaris.gperf: New file.
34814         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34815         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34816         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34817         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34818         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34819         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34820
34821 2009-08-29  Jim Meyering  <meyering@redhat.com>
34822
34823         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34824         * top/maint.mk (cvs-check): Remove target; it was just an alias
34825         to the better-named vc-diff-check.
34826         (maintainer-distcheck): Remove rule.  It was used only from
34827         the (alpha/beta/major) target, and all of its commands but one
34828         were coreutils-specific.
34829         (vc-dist): Remove rule.
34830         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34831         Run vc-diff-check, not vc-dist.
34832         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34833
34834 2009-08-27  Bruno Haible  <bruno@clisp.org>
34835
34836         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34837         of 0.
34838
34839 2009-08-27  Bruno Haible  <bruno@clisp.org>
34840
34841         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34842         compilers.
34843         * doc/func.texi: Document the SunPRO C bug.
34844
34845 2009-08-27  Bruno Haible  <bruno@clisp.org>
34846
34847         Fix link error on Solaris.
34848         * tests/test-parse-duration.c (xstrdup): Remove function.
34849
34850 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34851
34852         ignore-value: handle pointer types, too
34853         * lib/ignore-value.h (__attribute__): Remove definition.
34854         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34855         of a more concise and more-often effective "(void) i" statement.
34856         (ignore_ptr): New function to suppress warnings from functions that
34857         return pointers, and to make it explicit that one function doesn't
34858         handle all cases.
34859
34860 2009-08-25  Bruno Haible  <bruno@clisp.org>
34861
34862         dup2: work around a Linux bug.
34863         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34864         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34865         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34866         Reported by Simon Josefsson.
34867
34868 2009-08-25  Jim Meyering  <meyering@redhat.com>
34869
34870         libguestfs uses gnulib
34871         * users.txt: Add libguestfs.
34872
34873 2009-08-24  Eric Blake  <ebb9@byu.net>
34874
34875         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
34876         * lib/pipe2.c (includes): Add binary-io.h.
34877         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
34878
34879 2009-08-24  Bruno Haible  <bruno@clisp.org>
34880
34881         Tolerate declared but missing accept4 syscall.
34882         * lib/accept4.c (accept4): Invoke original accept4 function first, if
34883         available.
34884         * lib/sys_socket.in.h (accept4): If the function is already present,
34885         override it.
34886         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
34887         * modules/accept4 (Makefile.am): Compile accept4.c always.
34888         Reported by Paolo Bonzini and Eric Blake.
34889
34890 2009-08-23  Bruno Haible  <bruno@clisp.org>
34891
34892         New module 'accept4'.
34893         * lib/sys_socket.in.h (accept4): New declaration.
34894         * lib/accept4.c: New file.
34895         * m4/accept4.m4: New file.
34896         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34897         GNULIB_ACCEPT4, HAVE_ACCEPT4.
34898         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
34899         HAVE_ACCEPT4.
34900         * modules/accept4: New file.
34901         * doc/glibc-functions/accept4.texi: Mention the new module.
34902
34903 2009-08-24  Jim Meyering  <meyering@redhat.com>
34904
34905         progname: also set global program_invocation_name, when possible
34906         Before this change, a libtool-enabled program that calls glibc's
34907         error function would report the program name as
34908         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
34909         * modules/progname (configure.ac): Check for a declaration of
34910         program_invocation_name.
34911         * lib/progname.c:  Include <errno.h>.
34912         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34913         Set program_invocation_name.
34914
34915 2009-08-23  Bruno Haible  <bruno@clisp.org>
34916
34917         * lib/dup3.c: Include <string.h>.
34918
34919 2009-08-23  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34922         * lib/pipe2.c (pipe2): Likewise.
34923         Suggested by Eric Blake.
34924
34925 2009-08-23  Bruno Haible  <bruno@clisp.org>
34926
34927         Tolerate declared but missing dup3 syscall.
34928         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34929         * lib/unistd.in.h (dup3): If the function is already present,
34930         override it.
34931         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34932         * modules/dup3 (Makefile.am): Compile dup3.c always.
34933         Reported by Paolo Bonzini.
34934
34935 2009-08-23  Bruno Haible  <bruno@clisp.org>
34936
34937         Tolerate declared but missing pipe2 syscall.
34938         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34939         available.
34940         * lib/unistd.in.h (pipe2): If the function is already present,
34941         override it.
34942         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34943         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34944         Reported by Paolo Bonzini.
34945
34946 2009-08-23  Bruno Haible  <bruno@clisp.org>
34947
34948         * lib/pipe2.c (pipe2): Move #ifs inside function.
34949
34950 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34951
34952         quotearg: document limitations of quote_these_too
34953         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34954         those limitations are created.
34955         * lib/quotearg.h (set_char_quoting): Document that digits and
34956         letters that are special after backslash are not permitted.
34957         (quotearg_char): Cross-reference set_char_quoting documentation.
34958
34959 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34960
34961         quotearg: implement custom_quoting_style
34962         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34963         right_quote fields.
34964         (set_custom_quoting): New public function.
34965         (quotearg_buffer_restyled): Add left_quote and right_quote
34966         arguments, handle them very much like locale quoting, and update
34967         all uses.
34968         (quotearg_n_custom): New public function.
34969         (quotearg_n_custom_mem): New public function.
34970         (quotearg_custom): New public function.
34971         (quotearg_custom_mem): New public function.
34972         * lib/quotearg.h: Prototype and document new public functions.
34973         (enum quoting_style): For escape_quoting_style and
34974         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34975         ignored even though they're otherwise like c_quoting_style.
34976         Add custom_quoting_style member and document with comparison to
34977         clocale_quoting_style.
34978         * tests/test-quotearg.c (custom_quotes): New array.
34979         (custom_results): New array.
34980         (main): Extend to test custom quoting.
34981
34982 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34983
34984         quotearg: fix right quote escaping when it's in quote_these_too
34985         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34986         quote, be sure to prepend only one backslash.
34987         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34988         (main): Test it.
34989
34990 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34991
34992         quotearg-tests: test escaping of embedded locale quotes
34993         * tests/test-quotearg.c (struct result_strings): Add member for
34994         new input.
34995         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34996         (inputs): Add new input.
34997         (results_g): Add expected results.
34998         (flag_results): Likewise.
34999         (locale_results): Likewise.
35000         (compare_strings): Check those.
35001
35002 2009-08-23  Bruno Haible  <bruno@clisp.org>
35003
35004         Tests for module 'dup3'.
35005         * modules/dup3-tests: New file.
35006         * tests/test-dup3.c: New file.
35007
35008         New module 'dup3'.
35009         * lib/unistd.in.h (dup3): New declaration.
35010         * lib/dup3.c: New file.
35011         * m4/dup3.m4: New file.
35012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35013         HAVE_DUP3.
35014         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35015         * modules/dup3: New file.
35016         * doc/glibc-functions/dup3.texi: Mention the new module.
35017
35018 2009-08-23  Bruno Haible  <bruno@clisp.org>
35019
35020         Tweak the dup2 test.
35021         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35022         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35023         the test file is still empty. Fix argument order of lseek.
35024
35025 2009-08-23  Bruno Haible  <bruno@clisp.org>
35026
35027         Avoid test link errors when the modules getopt-gnu, gettext are used.
35028         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35030
35031 2009-08-23  Bruno Haible  <bruno@clisp.org>
35032
35033         Fix getdtablesize() on mingw.
35034         * lib/getdtablesize.c (getdtablesize): Implement differently.
35035         * lib/unistd.in.h (getdtablesize): Improve comment.
35036
35037 2009-08-23  Bruno Haible  <bruno@clisp.org>
35038
35039         New module 'mkostemp'.
35040         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35041         * lib/stdlib.in.h (mksotemp): New declaration.
35042         * lib/mkostemp.c: New file, from glibc with modifications.
35043         * lib/tempname.h (GT_FILE): Remove outdated comment.
35044         (gen_tempname): Add flags argument.
35045         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35046         (__GT_FILE): Map to 1.
35047         (small_open, large_open): Remove macros.
35048         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35049         * lib/mkstemp.c (mkstemp): Update.
35050         * lib/mkdtemp.c (mkdtemp): Likewise.
35051         * m4/mkostemp.m4: New file.
35052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35053         HAVE_MKOSTEMP.
35054         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35055         HAVE_MKOSTEMP.
35056         * modules/mkostemp: New file, based on modules/mkstemp.
35057         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35058         * NEWS: Mention the change.
35059
35060 2009-08-23  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35063         Reported by Eric Blake.
35064
35065 2009-08-23  Bruno Haible  <bruno@clisp.org>
35066
35067         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35068         Reported by Eric Blake.
35069
35070 2009-08-23  Bruno Haible  <bruno@clisp.org>
35071
35072         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35073         * modules/pipe2 (Depends-on): Likewise.
35074
35075 2009-08-23  Eric Blake  <ebb9@byu.net>
35076
35077         fcntl-h: add O_TTY_INIT support
35078         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35079         * tests/test-fcntl-h.c (o): Test it.
35080         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35081
35082         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35083         * modules/fcntl: Move <fcntl.h> header replacement...
35084         * modules/fcntl-h: ...to new name, so as not to collide with
35085         like-named function.
35086         * tests/test-fcntl.c: Rename...
35087         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35088         * modules/fcntl-tests: Rename...
35089         * modules/fcntl-h-tests: ...to this.  Update test file name.
35090         * modules/chdir-long (Depends-on): Update clients.
35091         * modules/chdir-safer (Depends-on): Likewise.
35092         * modules/fcntl-safer (Depends-on): Likewise.
35093         * modules/fts (Depends-on): Likewise.
35094         * modules/mkancesdirs (Depends-on): Likewise.
35095         * modules/mkdir-p (Depends-on): Likewise.
35096         * modules/open (Depends-on): Likewise.
35097         * modules/savewd (Depends-on): Likewise.
35098         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35099         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35100
35101 2009-08-22  Bruno Haible  <bruno@clisp.org>
35102
35103         * modules/binary-io (License): Relicense under LGPL.
35104         * modules/pipe2 (License): Likewise.
35105
35106 2009-08-22  Bruno Haible  <bruno@clisp.org>
35107
35108         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35109         return value.
35110         * lib/pipe-filter-gi.c (filter_init): Likewise.
35111         Reported by Eric Blake.
35112
35113 2009-08-22  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35116         * modules/pipe (Depends-on): Add pipe2.
35117
35118 2009-08-22  Bruno Haible  <bruno@clisp.org>
35119
35120         Tests for module 'pipe2'.
35121         * modules/pipe2-tests: New file.
35122         * tests/test-pipe2.c: New file.
35123
35124         New module 'pipe2'.
35125         * lib/unistd.in.h (pipe2): New declaration.
35126         * lib/pipe2.c: New file.
35127         * m4/pipe2.m4: New file.
35128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35129         HAVE_PIPE2.
35130         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35131         * modules/pipe2: New file.
35132         * doc/glibc-functions/pipe2.texi: Mention the new module.
35133
35134 2009-08-22  Bruno Haible  <bruno@clisp.org>
35135
35136         Reference some new glibc functions.
35137         * doc/glibc-functions/accept4.texi: New file.
35138         * doc/glibc-functions/dup3.texi: New file.
35139         * doc/glibc-functions/mkostemp.texi: New file.
35140         * doc/glibc-functions/pipe2.texi: New file.
35141         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35142         (Glibc sys/socket.h): Refer to accept4.
35143         (Glibc unistd.h): Refer to dup3, pipe2.
35144         Reported by Eric Blake.
35145
35146 2009-08-22  Jim Meyering  <meyering@redhat.com>
35147             Bruno Haible  <bruno@clisp.org>
35148
35149         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35150         This makes it so packages using automake-1.11's silent-rules option
35151         can print e.g., a single "GEN    configmake.h" line, rather than
35152         the 30+ statements that perform the job.  If you want to see the
35153         actual commands, you can still run "make V=1".
35154         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35155         so that make output is abbreviated when those variables are defined
35156         appropriately.
35157         * modules/argz: Likewise.
35158         * modules/arpa_inet: Likewise.
35159         * modules/byteswap: Likewise.
35160         * modules/configmake: Likewise.
35161         * modules/dirent: Likewise.
35162         * modules/errno: Likewise.
35163         * modules/fcntl: Likewise.
35164         * modules/float: Likewise.
35165         * modules/fnmatch: Likewise.
35166         * modules/getopt-posix: Likewise.
35167         * modules/glob: Likewise.
35168         * modules/iconv_open: Likewise.
35169         * modules/inttypes: Likewise.
35170         * modules/localcharset: Likewise.
35171         * modules/locale: Likewise.
35172         * modules/math: Likewise.
35173         * modules/netdb: Likewise.
35174         * modules/netinet_in: Likewise.
35175         * modules/poll: Likewise.
35176         * modules/posix_spawnp-tests: Likewise.
35177         * modules/sched: Likewise.
35178         * modules/search: Likewise.
35179         * modules/selinux-h: Likewise.
35180         * modules/signal: Likewise.
35181         * modules/spawn: Likewise.
35182         * modules/stdarg: Likewise.
35183         * modules/stdbool: Likewise.
35184         * modules/stddef: Likewise.
35185         * modules/stdint: Likewise.
35186         * modules/stdio: Likewise.
35187         * modules/stdlib: Likewise.
35188         * modules/string: Likewise.
35189         * modules/strings: Likewise.
35190         * modules/sys_file: Likewise.
35191         * modules/sys_ioctl: Likewise.
35192         * modules/sys_select: Likewise.
35193         * modules/sys_socket: Likewise.
35194         * modules/sys_stat: Likewise.
35195         * modules/sys_time: Likewise.
35196         * modules/sys_times: Likewise.
35197         * modules/sys_utsname: Likewise.
35198         * modules/sys_wait: Likewise.
35199         * modules/sysexits: Likewise.
35200         * modules/time: Likewise.
35201         * modules/unistd: Likewise.
35202         * modules/wchar: Likewise.
35203         * modules/wctype: Likewise.
35204
35205 2009-08-22  Jim Meyering  <meyering@redhat.com>
35206
35207         announce-gen: detect write failure
35208         * build-aux/announce-gen: Add Coda at end.
35209         Remove equivalent-but-more-verbose block at top.
35210
35211 2009-08-19  Akim Demaille  <demaille@gostai.com>
35212
35213         bootstrap: --help to stdout.
35214         * bootstrap (usage): Don't send --help to stderr.
35215         Use a here doc instead of a long string.
35216
35217 2009-08-21  Eric Blake  <ebb9@byu.net>
35218
35219         test-popen-safer: split from test-popen
35220         * tests/test-popen.c (main): Move...
35221         * tests/test-popen.h: ...into new file.
35222         * tests/test-popen-safer2.c: New file.
35223         * modules/popen-tests (Files): Add test-popen.h.
35224         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35225         Suggested by Bruno Haible.
35226
35227         test-fcntl-safer: split from test-open
35228         * tests/test-open.c (main): Move...
35229         * tests/test-open.h: ...into new file.
35230         * tests/test-fcntl-safer.c: New file.
35231         * modules/open-tests (Files): Add test-open.h.
35232         * modules/fcntl-safer-tests: New file.
35233         Suggested by Bruno Haible.
35234
35235         test-fopen-safer: split from test-fopen
35236         * tests/test-fopen.c (main): Move...
35237         * tests/test-fopen.h: ...into new file.
35238         * tests/test-fopen-safer.c: New file.
35239         * modules/fopen-tests (Files): Add test-fopen.h.
35240         * modules/fopen-safer-tests: New file.
35241         Suggested by Bruno Haible.
35242
35243 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35244
35245         popen-safer: test O_CLOEXEC at run-time.
35246         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35247
35248 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35249
35250         fcntl: move more flags to the header
35251         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35252         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35253         * lib/fcntl.in.h: Do both things here.
35254
35255 2009-08-21  Jim Meyering  <meyering@redhat.com>
35256
35257         consistently remove $@-t before redirecting to it
35258         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35259         * modules/alloca-opt: Likewise.
35260         * modules/byteswap: Likewise.
35261         * modules/fnmatch: Likewise.
35262         * modules/getopt-posix: Likewise.
35263         * modules/glob: Likewise.
35264         * modules/poll: Likewise.
35265         * modules/posix_spawnp-tests: Likewise.
35266         * modules/sys_socket: Likewise.
35267         * modules/sysexits: Likewise.
35268
35269 2009-08-21  Eric Blake  <ebb9@byu.net>
35270
35271         popen: simplify access to original popen
35272         * lib/popen.c (rpl_popen): No need to worry about popen being a
35273         macro.
35274         Reported by Bruno Haible.
35275
35276 2009-08-20  Eric Blake  <ebb9@byu.net>
35277
35278         build: avoid some compiler warnings
35279         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35280         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35281         type.
35282         (new_exclude_segment, excluded_file_pattern_p)
35283         (excluded_file_name_p): Reduce scope.
35284         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35285         old-style declaration.
35286
35287 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35288
35289         * tests/test-exclude1.sh: Handle Windows EOL.
35290         * tests/test-exclude2.sh: Likewise.
35291         * tests/test-exclude3.sh: Likewise.
35292         * tests/test-exclude4.sh: Likewise.
35293         * tests/test-exclude5.sh: Likewise.
35294         * tests/test-exclude6.sh: Likewise.
35295         * tests/test-exclude7.sh: Likewise.
35296
35297 2009-08-19  Akim Demaille  <demaille@gostai.com>
35298
35299         bootstrap: find sha1sum when named gsha1sum.
35300         * bootstrap (find_tool): New.
35301         ($SHA1SUM): New.
35302         Use it.
35303
35304 2009-08-20  Jim Meyering  <meyering@redhat.com>
35305
35306         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35307         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35308         expression that converts "." in a file name to "\." in the resulting
35309         regexp.  Start with a dummy statement, so that prior shell variable
35310         definitions are expanded portably.  Reported by Simon Josefsson.
35311
35312 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35313
35314         Fix polling for writeability of a screen buffer.
35315         * lib/poll.c: Distinguish input and screen buffers for the
35316         Win32 implementation.
35317         * lib/select.c: Likewise.
35318
35319 2009-08-19  Eric Blake  <ebb9@byu.net>
35320
35321         popen-safer: prevent popen from clobbering std descriptors
35322         * modules/popen-safer: New file.
35323         * lib/popen-safer.c: Likewise.
35324         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35325         * lib/stdio--.h (popen): Provide override.
35326         * lib/stdio-safer.h (popen_safer): Provide declaration.
35327         * tests/test-popen.c (includes): Partially test this.
35328         * modules/popen-safer-tests: New file, for more tests.
35329         * tests/test-popen-safer.c: Likewise.
35330         * MODULES.html.sh (file stream based Input/Output): Mention it.
35331
35332         tests: test some of the *-safer modules
35333         * modules/fopen-safer (Depends-on): Add fopen.
35334         * modules/fcntl-safer (Depends-on): Add fcntl.
35335         * modules/stdlib-safer (Depends-on): Add stdlib.
35336         (configure.ac): Set indicator.
35337         * modules/unistd-safer (configure.ac): Likewise.
35338         * modules/tmpfile-safer (configure.ac): Likewise.
35339         (Depends-on): Add tmpfile.
35340         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35341         active.
35342         * tests/test-fopen.c (includes): Test safer versions when they are
35343         in use.
35344         * tests/test-open.c (includes): Likewise.
35345
35346         popen: fix cygwin 1.5 bug when stdin closed
35347         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35348         * modules/popen: New file.
35349         * modules/popen-tests: Likewise.
35350         * tests/test-popen.c: Likewise.
35351         * m4/popen.m4: Likewise.
35352         * lib/popen.c: Likewise.
35353         * lib/stdio.in.h (popen): New declaration.
35354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35355         * modules/stdio (Makefile.am): Likewise.
35356         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35357
35358 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35359
35360         maint.mk: give full control over update-copyright exclusions
35361         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35362         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35363         (update-copyright): Don't force inclusion of top-level
35364         ChangeLog.  Don't force exclusion of all COPYING files, but make
35365         them the default exclusion instead.
35366
35367 2009-08-16  Bruno Haible  <bruno@clisp.org>
35368
35369         Fix test failures on Solaris 10.
35370         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35371         tests when Solaris iconv() is used.
35372         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35373         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35374         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35375         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35376         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35377
35378 2009-08-16  Bruno Haible  <bruno@clisp.org>
35379
35380         Fix test failures on Solaris 10.
35381         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35382         'tr' program and pass it as first argument.
35383         * tests/test-pipe-filter-gi1.sh: Likewise.
35384         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35385         program as first argument.
35386         * tests/test-pipe-filter-gi1.c (main): Likewise.
35387
35388 2009-08-16  Eric Blake  <ebb9@byu.net>
35389
35390         fpurge: fix previous commits
35391         * modules/fpurge (Makefile.am): Make replacement conditional,
35392         partially reverting 2007-04-29 change; missed in previous
35393         attempt.
35394         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35395         is missing.
35396
35397 2009-08-16  Bruno Haible  <bruno@clisp.org>
35398
35399         Clarify fpurge's effect on the file position.
35400         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35401         * tests/test-fpurge.c (main): Make a second pass for checking the file
35402         position.
35403
35404 2009-08-16  Bruno Haible  <bruno@clisp.org>
35405
35406         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35407         declaration of fpurge is missing.
35408         * tests/test-fpurge.c (main): Check that the file has not more contents
35409         than expected. Close the file before removing it.
35410
35411 2009-08-15  Eric Blake  <ebb9@byu.net>
35412
35413         fpurge: don't wrap working cygwin implementation
35414         * lib/fpurge.c (fpurge): Fix comment typo.
35415         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35416         1.7 to avoid replacement.
35417         * tests/test-fpurge.c (main): Enhance test.
35418
35419 2009-08-15  Eric Blake  <ebb9@byu.net>
35420         and Jim Meyering  <meyering@redhat.com>
35421
35422         test-update-copyright: skip if perl is insufficient
35423         * tests/test-update-copyright.sh: Failure to run maintainer tool
35424         should not cause testsuite failure on cygwin 1.5.
35425
35426 2009-08-14  Eric Blake  <ebb9@byu.net>
35427
35428         doc: mention more functions added in cygwin 1.7.0
35429         * doc/posix-headers/limits.texi (limits.h): Update for recent
35430         cygwin additions.
35431         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35432         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35433         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35434         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35435         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35436
35437 2009-08-14  Eric Blake  <ebb9@byu.net>
35438
35439         maint.mk: simplify update-copyright rule
35440         * top/maint.mk (update-copyright-local): Delete, and document how
35441         to do it in cfg.mk instead.
35442         (update-copyright-exclude-regexp): Delete, and document how to do
35443         it in .x-update-copyright instead.
35444         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35445         exclude ChangeLog.
35446
35447 2009-08-14  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35450
35451 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35452
35453         maint.mk: support update-copyright-env
35454         * top/maint.mk (update-copyright-env): Define place-holder.
35455         (update-copyright): Expand $(update-copyright-env) before
35456         invoking update-copyright.
35457
35458 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35459
35460         update-copyright: implement forced reformatting
35461         * build-aux/update-copyright: Implement and document
35462         UPDATE_COPYRIGHT_FORCE.
35463         * tests/test-update-copyright.sh: Test it.
35464
35465 2009-08-14  Eric Blake  <ebb9@byu.net>
35466         and Bruno Haible  <bruno@clisp.org>
35467
35468         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35469         * tests/test-locale.c: Revert previous patch related to NULL.
35470         * tests/test-stdio.c: Likewise.
35471         * tests/test-stdlib.c: Likewise.
35472         * tests/test-string.c: Likewise.
35473         * tests/test-unistd.c: Likewise.
35474         * modules/time-tests (Depends-on): Add verify.
35475         * modules/wchar-tests (Depends-on): Likewise.
35476         * tests/test-time.c: Test for NULL compliance.
35477         * tests/test-wchar.c: Likewise.
35478         * modules/locale (Depends-on): Add stddef.
35479         * modules/stdio (Depends-on): Likewise.
35480         * modules/stdlib (Depends-on): Likewise.
35481         * modules/string (Depends-on): Likewise.
35482         * modules/time (Depends-on): Likewise.
35483         * modules/unistd (Depends-on): Likewise.
35484         * modules/wchar (Depends-on): Likewise.
35485         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35486         * lib/stdlib.in.h (includes): Likewise.
35487         * lib/string.in.h (includes): Likewise.
35488         * lib/time.in.h (includes): Likewise.
35489         * lib/unistd.in.h (includes): Likewise.
35490         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35491         replaced.
35492         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35493         * m4/stddef_h.m4: New file.
35494         * modules/stddef: Likewise.
35495         * lib/stddef.in.h: Likewise.
35496         * modules/stddef-tests: Likewise.
35497         * tests/test-stddef.c: Likewise.
35498         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35499         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35500         * doc/posix-headers/locale.texi (locale.h): Likewise.
35501         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35502         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35503         * doc/posix-headers/string.texi (string.h): Likewise.
35504         * doc/posix-headers/time.texi (time.h): Likewise.
35505         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35506         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35507
35508 2009-08-14  Eric Blake  <ebb9@byu.net>
35509
35510         doc: improve git diff of texinfo files
35511         * .gitattributes: Add rule for *.texi files, with hint on how to
35512         use it.
35513         Copied from m4, and based on a report by Bruno Haible.
35514
35515 2009-08-14  Bruno Haible  <bruno@clisp.org>
35516
35517         Disable multithread support by default on Cygwin 1.5.x for real.
35518         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35519
35520 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35521
35522         update-copyright: much ado about intervals
35523         * build-aux/update-copyright: Implement and document
35524         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35525         of copyright year intervals.
35526         Also, document UPDATE_COPYRIGHT_YEAR.
35527         * tests/test-update-copyright.sh: Test it.
35528
35529         update-copyright: convert 2-digit to 4-digit years
35530         * build-aux/update-copyright: Implement and document.
35531         * tests/test-update-copyright.sh: Update.
35532
35533 2009-08-14  Jim Meyering  <meyering@redhat.com>
35534
35535         test-exclude: avoid coreutils "make check" failure
35536         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35537         just as in test-argmatch.c.
35538
35539 2009-08-13  Eric Blake  <ebb9@byu.net>
35540
35541         test-dup2: fix bad assumption
35542         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35543         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35544
35545         test-version-etc: fix CRLF portability issue
35546         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35547         recognize \r.
35548         * tests/test-argp-version-etc-1.sh: Likewise.
35549
35550         getopt: update client modules
35551         * modules/argp (Depends-on): Use getopt-gnu.
35552         * modules/git-merge-changelog (Depends-on): Likewise.
35553         * modules/long-options (Depends-on): Likewise.
35554         * modules/xstrtol (Depends-on): Likewise.
35555
35556 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35557
35558         * tests/test-version-etc.sh: Don't fail on different
35559         project/version.  Don't fail on CRLF differences.  Rewrite to use
35560         multiple -e instead of multiple sed forks, suggested by Eric Blake
35561         <ebb9@byu.net>.
35562         * tests/test-argp-version-etc-1.sh: Likewise.
35563
35564 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35565
35566         * tests/test-version-etc.sh: Don't fail on different
35567         project/version.
35568
35569 2009-08-12  Bruno Haible  <bruno@clisp.org>
35570
35571         Tests for modules 'getopt-posix', 'getopt-gnu'.
35572         * modules/getopt-posix-tests: New file.
35573         * tests/test-getopt.c: New file.
35574         * tests/test-getopt.h: New file.
35575         * tests/test-getopt_long.h: New file.
35576
35577         New modules 'getopt-posix', 'getopt-gnu'.
35578         * modules/getopt-gnu: New file, renamed from modules/getopt.
35579         * modules/getopt-posix: New file.
35580         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35581         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35582         (gl_GETOPT): Remove macro.
35583         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35584         Disable the test against BSD systems that declare optreset. Test
35585         against mingw bug. Test against lack of support of optional arguments
35586         on many platforms.
35587         * doc/glibc-headers/getopt.texi: Update module name and list of
35588         relevant platforms.
35589         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35590         'getopt-gnu' and more portability problems.
35591         * NEWS: Mention the changes.
35592
35593 2009-08-12  Bruno Haible  <bruno@clisp.org>
35594
35595         Ensure that optarg etc. get declared by <unistd.h>.
35596         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35597         AC_USE_SYSTEM_EXTENSIONS.
35598         * modules/getopt (Depends-on): Add 'extensions'.
35599
35600 2009-08-12  Bruno Haible  <bruno@clisp.org>
35601
35602         Avoid test link errors.
35603         * modules/pipe-filter-ii-tests (Makefile.am): Define
35604         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35605         * modules/pipe-filter-gi-tests (Makefile.am): Define
35606         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35608
35609 2009-08-12  Bruno Haible  <bruno@clisp.org>
35610
35611         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35612         gl_GETOPT_SUBSTITUTE before.
35613         (gl_GETOPT): Use it.
35614         * m4/argp.m4 (gl_ARGP): Update.
35615         Reported by Sergey Poznyakoff.
35616
35617         * m4/getopt.m4: Reorder macros.
35618         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35619         (gl_GETOPT_SUBSTITUTE): Remove macro.
35620
35621 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35622
35623         Minor improvement in gitlog-to-changelog
35624
35625         * build-aux/gitlog-to-changelog: New option `--format' makes
35626         output format string configurable.
35627
35628 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35629
35630         Optimize exclude: use hash tables for non-wildcard patterns.
35631
35632         * lib/exclude.c: Include hash.h and mbuiter.h
35633         (struct exclude_pattern, exclude_segment): New data types.
35634         (struct exclude): Rewrite.
35635         (fnmatch_pattern_has_wildcards): New function.
35636         (new_exclude_segment, free_exclude_segment): New functions.
35637         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35638         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35639         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35640         * modules/exclude: Depend on hash and mbuiter.
35641
35642         * modules/exclude-tests: New file.
35643         * tests/test-exclude.c: New file.
35644         * tests/test-exclude1.sh: New file.
35645         * tests/test-exclude2.sh: New file.
35646         * tests/test-exclude3.sh: New file.
35647         * tests/test-exclude4.sh: New file.
35648         * tests/test-exclude5.sh: New file.
35649         * tests/test-exclude6.sh: New file.
35650         * tests/test-exclude7.sh: New file.
35651
35652 2009-08-12  Bruno Haible  <bruno@clisp.org>
35653
35654         Ensure that getopt() gets declared by <unistd.h>.
35655         * lib/unistd.in.h: Conditionally include getopt.h.
35656         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35657         Set GNULIB_UNISTD_H_GETOPT.
35658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35659         GNULIB_UNISTD_H_GETOPT.
35660         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35661
35662 2009-08-12  Bruno Haible  <bruno@clisp.org>
35663
35664         Clarify logic.
35665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35666         gl_replace_getopt instead of GETOPT_H.
35667
35668 2009-08-12  Bruno Haible  <bruno@clisp.org>
35669
35670         * m4/getopt.m4: Add comments.
35671
35672 2009-08-12  Bruno Haible  <bruno@clisp.org>
35673
35674         Disable multithread support by default on Cygwin 1.5.x.
35675         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35676         set gl_use_threads=no if not specified otherwise.
35677
35678 2009-08-11  Bruno Haible  <bruno@clisp.org>
35679
35680         Avoid compilation error on NetBSD 5.0.
35681         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35682         * tests/test-stdio.c: Likewise.
35683         * tests/test-stdlib.c: Likewise.
35684         * tests/test-string.c: Likewise.
35685         * tests/test-unistd.c: Likewise.
35686         Reported by Greg Troxel <gdt@ir.bbn.com>
35687         at <https://savannah.gnu.org/support/?106973>.
35688
35689 2009-08-11  Bruno Haible  <bruno@clisp.org>
35690
35691         * modules/dup2-tests (Depends-on): Remove close.
35692
35693         Undo 2009-07-19 commit.
35694         * modules/acl-tests (Depends-on): Remove close.
35695         * modules/binary-io-tests (Depends-on): Likewise.
35696         * modules/closein-tests (Depends-on): Likewise.
35697         * modules/flock-tests (Depends-on): Likewise.
35698         * modules/fsync-tests (Depends-on): Likewise.
35699         * modules/lseek-tests (Depends-on): Likewise.
35700         * modules/pipe-tests (Depends-on): Likewise.
35701         * modules/posix_spawn-tests (Depends-on): Likewise.
35702         * modules/posix_spawnp-tests (Depends-on): Likewise.
35703         * modules/stat-time-tests (Depends-on): Likewise.
35704         * modules/yesno-tests (Depends-on): Likewise.
35705
35706 2009-08-10  Bruno Haible  <bruno@clisp.org>
35707
35708         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35709
35710 2009-08-10  Bruno Haible  <bruno@clisp.org>
35711
35712         Fix a gcc warning.
35713         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35714
35715 2009-08-10  Bruno Haible  <bruno@clisp.org>
35716
35717         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35718         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35719         not only the first time.
35720         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35721         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35722         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35723         is 1, not only the the first time.
35724
35725 2009-08-10  Bruno Haible  <bruno@clisp.org>
35726
35727         Make it possible to use module 'gethostname' without module 'close'.
35728         * lib/unistd.in.h (close): Evoke a link error only if
35729         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35731         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35732         * modules/unistd (Makefile.am): Substitute
35733         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35734         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35735         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35736         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35737         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35738         * modules/sys_ioctl (Makefile.am): Substitute
35739         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35740         * modules/socket (configure.ac): On native Windows, set
35741         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35742         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35743         Reported by Sam Steingold <sds@gnu.org>.
35744
35745 2009-08-10  Bruno Haible  <bruno@clisp.org>
35746
35747         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35748         * modules/ioctl (configure.ac): Likewise.
35749
35750 2009-08-10  Bruno Haible  <bruno@clisp.org>
35751
35752         Avoid collision between gnulib wrapper and libintl wrapper.
35753         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35754         already defined in intl/printf.c.
35755         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35756         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35757
35758 2009-08-09  Bruno Haible  <bruno@clisp.org>
35759
35760         Make <sys/select.h> really self-contained, also on Solaris 10.
35761         * lib/sys_select.in.h: Include <string.h>.
35762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35763         Solaris 10 problem.
35764         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35765         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35766         Reported by Jim Meyering.
35767
35768 2009-08-09  Bruno Haible  <bruno@clisp.org>
35769
35770         Avoid warnings from 'aclocal' that are due to a use of macro name
35771         AM_XGETTEXT_OPTION that is not defined in automake.
35772         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35773         automake.
35774         * modules/error (configure.ac): Likewise.
35775         * modules/propername (configure.ac): Likewise.
35776         * modules/vasprintf (configure.ac): Likewise.
35777         * modules/verror (configure.ac): Likewise.
35778         * modules/xprintf (configure.ac): Likewise.
35779         * modules/xvasprintf (configure.ac): Likewise.
35780
35781 2009-08-08  Bruno Haible  <bruno@clisp.org>
35782
35783         Avoid compilation error in C++ mode.
35784         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35785         Reported by Sam Steingold <sds@gnu.org>.
35786
35787 2009-08-08  Bruno Haible  <bruno@clisp.org>
35788
35789         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35790         for the various Unix platforms.
35791         * doc/posix-headers/limits.texi: Update platforms list regarding
35792         HOST_NAME_MAX.
35793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35794
35795 2009-08-07  Jim Meyering  <meyering@redhat.com>
35796
35797         selinux-at: fix typo in a comment
35798         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35799         Spotted by Paolo Bonzini.
35800
35801         selinux-at: remove redundant m4 code, add documentation
35802         * modules/selinux-at (configure.ac): Remove redundant code.
35803         LIB_SELINUX is already set via the dependent module, selinux-h.
35804         (Include): Add quotes around selinux-at.h.
35805         * lib/selinux-at.h: Add documentation.
35806         Reported by Bruno Haible in
35807         http://marc.info/?l=gnulib-bug&m=124958988300749
35808
35809 2009-08-07  Bruno Haible  <bruno@clisp.org>
35810
35811         Avoid link error on MacOS X 10.3 and 10.4.
35812         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35813         on non-ELF systems.
35814         * lib/argp-pv.c (argp_program_version): Likewise.
35815         Reported by Simon Josefsson.
35816
35817 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35818
35819         * tests/test-version-etc.sh: Use $EXEEXT.
35820
35821 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35822
35823         update-copyright: update documentation to point to maint.mk
35824         * build-aux/update-copyright: Here.
35825
35826 2009-08-06  Jim Meyering  <meyering@redhat.com>
35827
35828         maint.mk: support update-copyright-local
35829         * top/maint.mk (update-copyright-local): Define place-holder.
35830         (update-copyright): Depend on $(update-copyright-local).
35831
35832 2009-08-06  Jim Meyering  <meyering@redhat.com>
35833
35834         selinux-at: new module
35835         Initially written for coreutils, this module will soon be
35836         used by findutils, too.
35837         * MODULES.html.sh [Misc]: Add selinux-at.
35838         * lib/selinux-at.h: New file, from coreutils.
35839         * lib/selinux-at.c: Likewise.
35840         * modules/selinux-at: Likewise.
35841         (License): Change from LGPL to GPL, since it depends
35842         on the GPL'd openat module.
35843
35844         doc: update README
35845         * README: Remove references to cogito.
35846         Remove cvs-repo-updating instructions from 2007.
35847         Don't imply that CVS is better if you have limited disk space.
35848
35849 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35850
35851         update-copyright: support C-style comments
35852         * build-aux/update-copyright: Implement and document.
35853         * tests/test-update-copyright.sh: Test.
35854
35855 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35856
35857         update-copyright: support omitted "(C)"
35858         * build-aux/update-copyright: Implement and document.  Also,
35859         allow variable whitespace before "(C)".
35860         * tests/test-update-copyright.sh: Test.
35861
35862 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35863
35864         update-copyright: don't trip on non-FSF copyright statements
35865         * build-aux/update-copyright: Fix so that the first correctly
35866         formatted FSF copyright statement is recognized no matter what
35867         appears before it.  Update documentation.
35868         * tests/test-update-copyright.sh: Test that.
35869
35870 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35871
35872         update-copyright: clean up code a little
35873         * build-aux/update-copyright: Append "_re" to the name of any
35874         variable holding a regular expression.
35875         Replace "old" and "new" with "stmt" in variable names.
35876         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
35877         handled correctly.
35878         Format code more consistently.
35879
35880 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35881
35882         update-copyright-tests: improve portability
35883         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
35884         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
35885
35886 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35887
35888         update-copyright: support @copyright{} and &copy;
35889         * build-aux/update-copyright: Implement and document.
35890         * tests/test-update-copyright.sh: Test.
35891
35892 2009-08-04  Jim Meyering  <meyering@redhat.com>
35893
35894         update-copyright-tests: correctly test EOL=\r\n handling
35895         * tests/test-update-copyright.sh: Put \r at the end of some lines
35896         for the dos-eol tests.  Based on a patch by Joel E. Denny.
35897
35898         maint.mk: make update-copyright exclusion list more configurable
35899         * top/maint.mk (update-copyright): Default to excluding COPYING,
35900         but allow an override, in case someone does want to update that file.
35901
35902         maint.mk: don't update copyright date in COPYING
35903         * top/maint.mk (update-copyright): Exclude COPYING.
35904
35905         maint.mk: add a copyright-updating rule
35906         * top/maint.mk (update-copyright): New rule.
35907         Derived from coreutils/Makefile.am.
35908
35909         update-copyright: rename some variables
35910         * build-aux/update-copyright: Rename a few variables for clarity.
35911         Tweak syntax.  List Joel E. Denny as coauthor.
35912
35913 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35914
35915         update-copyright: fix bug for 2-digit last year and add tests
35916         * build-aux/update-copyright: Fix bug.
35917         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35918         specified.
35919         * modules/update-copyright-tests: New
35920         * tests/test-update-copyright.sh: New.
35921
35922 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35923
35924         update-copyright: handle leading tabs in line prefix
35925         * build-aux/update-copyright: Count leading tabs as 8 spaces
35926         when computing margin.  This helps with the formatting of
35927         ChangeLogs, for example.
35928         Fix documentation a little.
35929
35930 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35931
35932         update-copyright: support EOL=\r\n
35933         * build-aux/update-copyright: Implement that.
35934
35935 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35936
35937         update-copyright: automatically format copyright statements
35938         * build-aux/update-copyright: Implement that.
35939         Also, be a little more predictable and safer by always failing
35940         when the full copyright format is not perfectly recognized as an
35941         unbroken whole.  Discussed at
35942         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35943         Rewrite documentation.
35944
35945 2009-08-03  Bruno Haible  <bruno@clisp.org>
35946
35947         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35948
35949 2009-08-02  Bruno Haible  <bruno@clisp.org>
35950
35951         Tests for module 'uname'.
35952         * modules/uname-tests: New file.
35953         * tests/test-uname.c: New file.
35954
35955         New module 'uname'.
35956         * lib/uname.c: New file.
35957         * m4/uname.m4: New file.
35958         * modules/uname: New file.
35959         * doc/posix-functions/uname.texi: Mention the new module.
35960
35961 2009-08-02  Bruno Haible  <bruno@clisp.org>
35962
35963         Tests for module 'sys_utsname'.
35964         * modules/sys_utsname-tests: New file.
35965         * tests/test-sys_utsname.c: New file.
35966
35967         New module 'sys_utsname'.
35968         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35969         * m4/sys_utsname_h.m4: New file.
35970         * modules/sys_utsname: New file.
35971         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35972
35973 2009-08-02  Bruno Haible  <bruno@clisp.org>
35974
35975         Implicitly initialize the sockets library.
35976         * lib/gethostname.c: Include sockets.h.
35977         (rpl_gethostname): Invoke gl_sockets_startup.
35978         * lib/socket.c: Include sockets.h.
35979         (rpl_socket): Invoke gl_sockets_startup.
35980         * modules/gethostname (Depends-on): Add sockets.
35981         * modules/socket (Depends-on): Likewise.
35982         * tests/test-poll.c: Don't include sockets.h.
35983         (main): Don't invoke gl_sockets_startup.
35984         * tests/test-select.c: Don't include sockets.h.
35985         (main): Don't invoke gl_sockets_startup.
35986
35987 2009-08-02  Bruno Haible  <bruno@clisp.org>
35988
35989         Allow multiple calls to gl_sockets_startup.
35990         * lib/sockets.c (initialized_sockets_version): New variable.
35991         (gl_sockets_startup): Do nothing if already called for this or a higher
35992         version.
35993         (gl_sockets_cleanup): Reset initialized_sockets_version.
35994
35995 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35996
35997         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35998         different project/version.
35999
36000 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36001             Bruno Haible  <bruno@clisp.org>
36002
36003         Tests for module 'pipe-filter-gi'.
36004         * modules/pipe-filter-gi-tests: New file.
36005         * tests/test-pipe-filter-gi1.sh: New file.
36006         * tests/test-pipe-filter-gi1.c: New file.
36007         * tests/test-pipe-filter-gi2.sh: New file.
36008         * tests/test-pipe-filter-gi2-main.c: New file.
36009         * tests/test-pipe-filter-gi2-child.c: New file.
36010
36011         New module 'pipe-filter-gi'.
36012         * lib/pipe-filter-gi.c: New file.
36013         * modules/pipe-filter-gi: New file.
36014
36015 2009-08-02  Bruno Haible  <bruno@clisp.org>
36016             Paolo Bonzini  <bonzini@gnu.org>
36017
36018         Tests for module 'pipe-filter-ii'.
36019         * modules/pipe-filter-ii-tests: New file.
36020         * tests/test-pipe-filter-ii1.sh: New file.
36021         * tests/test-pipe-filter-ii1.c: New file.
36022         * tests/test-pipe-filter-ii2.sh: New file.
36023         * tests/test-pipe-filter-ii2-main.c: New file.
36024         * tests/test-pipe-filter-ii2-child.c: New file.
36025
36026         New module 'pipe-filter-ii'.
36027         * lib/pipe-filter.h: New file.
36028         * lib/pipe-filter-ii.c: New file.
36029         * lib/pipe-filter-aux.h: New file.
36030         * modules/pipe-filter-ii: New file.
36031
36032 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36033
36034         * lib/gc-libgcrypt.c: Change copyright to FSF.
36035         * lib/gc-gnulib.c: Likewise.
36036
36037 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36038
36039         * lib/gethostname.c: Include limits.h.
36040
36041 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36042             Bruno Haible  <bruno@clisp.org>
36043
36044         Ensure HOST_NAME_MAX as part of the gethostname module.
36045         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36046         define also HOST_NAME_MAX.
36047         * tests/test-gethostname.c: Include <limits.h>.
36048         (main): Check also HOST_NAME_MAX.
36049         * doc/posix-headers/limits.texi: Document the mingw problem.
36050
36051 2009-08-02  Bruno Haible  <bruno@clisp.org>
36052
36053         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36054         Add comments.
36055
36056 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36057
36058         * lib/gethostname.c: Add Windows wrapper.
36059         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36060         * modules/gethostname: Depend on sys_socket & errno, for also
36061         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36062         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36063
36064 2009-07-31  Jim Meyering  <meyering@redhat.com>
36065
36066         getloadavg: fix symbol name in comment
36067         * lib/getloadavg.c: Correct a typo I introduced when adding
36068         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36069         Matt Kraai spotted the problem.
36070
36071 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36072
36073         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36074         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36075         code also if ! defined N_NAME_POINTER.
36076         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36077         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36078         but the n_name member is a 12-byte array.
36079
36080 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36081
36082         update-copyright: generalize comment handling
36083         * build-aux/update-copyright: Handle copyright statements
36084         within more comment styles.
36085         Document usage.
36086         Report any file with an external copyright holder or parse failure.
36087
36088 2009-07-29  Jim Meyering  <meyering@redhat.com>
36089
36090         mktime: correct setting of REPLACE_MKTIME
36091         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36092
36093         update-copyright: new module
36094         * modules/update-copyright: New file.
36095         * build-aux/update-copyright: New file.
36096         * MODULES.html.sh (maint+release support): Add update-copyright.
36097
36098 2009-07-27  Bruno Haible  <bruno@clisp.org>
36099
36100         Fix compilation error when <ctime> is used and mktime is replaced.
36101         * lib/time.in.h (mktime): New declaration.
36102         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36103         REPLACE_MKTIME instead of defining mktime in config.h.
36104         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36105         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36106         Reported by Ross McFarland <rwmcfa1@neces.com>.
36107
36108 2009-07-27  Bruno Haible  <bruno@clisp.org>
36109
36110         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36111         Reported by Matt Kraai <mkraai@beckman.com>.
36112
36113 2009-07-25  Jim Meyering  <meyering@redhat.com>
36114
36115         maint.mk: avoid warnings about missing files
36116         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36117         diagnostic when .prev-version does not exist.
36118         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36119         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36120         nonexistent cfg.mk.
36121         Suggestions from Simon Josefsson.
36122
36123 2009-07-25  Bruno Haible  <bruno@clisp.org>
36124
36125         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36126         defined as macros. Needed on QNX 6.4.1.
36127         Reported by Matt Kraai <mkraai@beckman.com>.
36128
36129 2009-07-23  Jim Meyering  <meyering@redhat.com>
36130
36131         maint.mk: invoke "make dist" with a working value of XZ_OPT
36132         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36133
36134 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36135
36136         Make fseeko.c compile on QNX.
36137         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36138
36139 2009-07-22  Peter Simons  <simons@cryp.to>
36140
36141         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36142         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36143         * lib/md4.h: Likewise.
36144         * lib/md5.h: Likewise.
36145         * lib/sha1.h: Likewise.
36146         * lib/sha256.h: Likewise.
36147         * lib/sha512.h: Likewise.
36148
36149         tests-sha1: don't assign literal string to 'char *' variable
36150         * tests/test-sha1.c (main): Declare locals with "const" to match
36151         attributes of the right hand side.
36152
36153 2009-07-21  Eric Blake  <ebb9@byu.net>
36154
36155         dup2: fix more mingw problems
36156         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36157         fd to itself.
36158         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36159         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36160         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36161         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36162         care of mingw bugs.
36163
36164 2009-07-21  Jim Meyering  <meyering@redhat.com>
36165
36166         vc-list-files: avoid failure when /bin/sh is dash
36167         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36168         On some Debian based systems, /bin/sh is a symlink to dash, and running
36169         this command would omit the "/" following each 'tests' prefix:
36170           dash -x build-aux/vc-list-files -C . tests
36171         That is because bash and dash work differently:
36172           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36173           bash ok
36174           dash odd
36175
36176 2009-07-21  Eric Blake  <ebb9@byu.net>
36177
36178         dup2-tests: test previous patch
36179         * modules/dup2-tests: New file.
36180         * tests/test-dup2.c: Likewise.
36181         * tests/test-open.c (main): Avoid unspecified behavior.
36182         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36183         test.
36184
36185         dup2: work around mingw and cygwin 1.5 bug
36186         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36188         * modules/unistd (Makefile.am): Substitute it.
36189         * lib/unistd.in.h (dup2): Declare the replacement.
36190         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36191         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36192         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36193         * modules/execute (Depends-on): Add dup2.
36194         * modules/fseterr (Depends-on): Likewise.
36195         * modules/pipe (Depends-on): Likewise.
36196         * modules/posix_spawn-internal (Depends-on): Likewise.
36197
36198 2009-07-21  Bruno Haible  <bruno@clisp.org>
36199
36200         * modules/.gitattributes: New file.
36201
36202 2009-07-20  Bruno Haible  <bruno@clisp.org>
36203
36204         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36205         (main): Use it.
36206
36207 2009-07-20  Eric Blake  <ebb9@byu.net>
36208
36209         test-pipe: make a bit more robust.
36210         * tests/test-pipe.c (myerr): Allow error messages regardless of
36211         what we do to stderr.
36212         (test_pipe): Rearrange to avoid deadlock.
36213         (child_main): Try a larger read, to ensure we avoided deadlock.
36214         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36215         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36216         if misused.
36217
36218 2009-07-19  Jim Meyering  <meyering@redhat.com>
36219
36220         fts: avoid false-positive cycle-detection
36221         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36222         for each new command line argument.
36223
36224 2009-07-19  Bruno Haible  <bruno@clisp.org>
36225
36226         Fix build error on mingw with the modules sys_select and unistd.
36227         * modules/acl-tests (Depends-on): Add close.
36228         * modules/binary-io-tests (Depends-on): Likewise.
36229         * modules/closein-tests (Depends-on): Likewise.
36230         * modules/flock-tests (Depends-on): Likewise.
36231         * modules/fsync-tests (Depends-on): Likewise.
36232         * modules/lseek-tests (Depends-on): Likewise.
36233         * modules/pipe-tests (Depends-on): Likewise.
36234         * modules/posix_spawn-tests (Depends-on): Likewise.
36235         * modules/posix_spawnp-tests (Depends-on): Likewise.
36236         * modules/stat-time-tests (Depends-on): Likewise.
36237         * modules/yesno-tests (Depends-on): Likewise.
36238
36239 2009-07-19  Bruno Haible  <bruno@clisp.org>
36240
36241         Unify conditionals.
36242         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36243         macros, not at the compiler macros.
36244         * lib/pipe.c: Likewise.
36245         * lib/execute.c: Likewise.
36246         * lib/spawni.c: Likewise.
36247
36248 2009-07-19  Bruno Haible  <bruno@clisp.org>
36249
36250         Fix handling of closed stdin/stdout/stderr on mingw.
36251         * lib/w32spawn.h: Include unistd.h.
36252         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36253         file descriptor with O_NOINHERIT flag.
36254         (fd_safer_noinherit): New function, based on fd-safer.c.
36255         (dup_safer_noinherit): New function, based on dup-safer.c.
36256         (undup_safer_noinherit): New function.
36257         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36258         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36259         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36260         instead of fd_safer.
36261         * tests/test-pipe.c: Include <windows.h>.
36262         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36263         result.
36264
36265         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36266         from main.
36267         (test_pipe): Pass an extra argument for disambiguation.
36268         (main): Invoke parent_main or child_main.
36269
36270         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36271         consistently.
36272
36273 2009-07-18  Eric Blake  <ebb9@byu.net>
36274
36275         test-pipe: fix mingw build
36276         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36277
36278 2009-07-18  Bruno Haible  <bruno@clisp.org>
36279
36280         * modules/pipe-tests (Makefile.am): Fix typo.
36281
36282 2009-07-18  Eric Blake  <ebb9@byu.net>
36283
36284         error: fix mingw build
36285         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36286         Reported by Bruno Haible.
36287
36288         error: avoid undefined use of stdout
36289         * lib/error.c (error, error_at_line): Check that fd 1 is open
36290         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36291         is handling faults and the close_stdout module wants to report the
36292         detection of closed stdout as an error.
36293
36294 2009-07-17  Eric Blake  <ebb9@byu.net>
36295
36296         pipe: be robust in face of closed fds
36297         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36298         should cause child to misbehave.
36299         * modules/pipe-tests: New module.
36300         * tests/test-pipe.c: New file.
36301         * tests/test-pipe.sh: New file.
36302         Reported by Akim Demaille.
36303
36304 2009-07-14  Bruno Haible  <bruno@clisp.org>
36305
36306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36307         Reported by anonymous kc.
36308
36309 2009-07-07  Jim Meyering  <meyering@redhat.com>
36310
36311         maint.mk: don't look for translatable strings in *.m4 or *.mk
36312         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36313         when searching for translatable strings.
36314
36315 2009-07-05  Jim Meyering  <meyering@redhat.com>
36316
36317         remove superfluous parentheses in STREQ definition
36318         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36319         * lib/getugroups.c (STREQ): Likewise.
36320         * lib/fnmatch.c (STREQ): Likewise.
36321         Spotted by Bruno Haible.
36322
36323 2009-07-04  Jim Meyering  <meyering@redhat.com>
36324
36325         argv-iter: new module
36326         * MODULES.html.sh: Add argv-iter.
36327         * lib/argv-iter.c, lib/argv-iter.h: New files.
36328         * modules/argv-iter: New file.
36329         * modules/argv-iter-tests: New file.
36330         * tests/test-argv-iter.c: Test it.
36331
36332 2009-07-04  Bruno Haible  <bruno@clisp.org>
36333
36334         Fix assertion.
36335         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36336         contains more exact copies of a given entry than file2, leave the extra
36337         copies unpaired rather than aborting.
36338         Reported by Eric Blake.
36339
36340 2009-07-02  Bruno Haible  <bruno@clisp.org>
36341
36342         Speedup git-merge-changelog for git cherry-pick.
36343         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36344         (entries_mapping_get): New function, extracted from compute_mapping.
36345         (entries_mapping_reverse_get): New function.
36346         (compute_mapping): Add a 'full' argument. Return the result in a
36347         'struct entries_mapping'.
36348         (main): Update. Access the mappings through entries_mapping_get.
36349         Reported by Eric Blake.
36350
36351 2009-07-02  Bruno Haible  <bruno@clisp.org>
36352
36353         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36354         best_i.
36355
36356 2009-07-02  Bruno Haible  <bruno@clisp.org>
36357
36358         Speed up approximate search for matching ChangeLog entries.
36359         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36360         argument. Call fstrcmp_bounded instead of fstrcmp.
36361         (compute_mapping, try_split_merged_entry, main): Update callers.
36362
36363 2009-07-02  Bruno Haible  <bruno@clisp.org>
36364
36365         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36366
36367 2009-06-30  Bruno Haible  <bruno@clisp.org>
36368
36369         Reduce the number of uc_is_cased calls.
36370         * lib/unicase.h (casing_suffix_context_t): Add
36371         'first_char_except_ignorable' field.
36372         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36373         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36374         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36375         Update initializer.
36376         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36377         case-ignorable characters.
36378         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36379         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36380         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36381         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36382         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36383
36384 2009-06-30  Bruno Haible  <bruno@clisp.org>
36385
36386         Tests for module 'unicase/ignorable'.
36387         * modules/unicase/ignorable-tests: New file.
36388         * tests/unicase/test-ignorable.c: New file, generated by
36389         gen-uni-tables.
36390
36391         Tests for module 'unicase/cased'.
36392         * modules/unicase/cased-tests: New file.
36393         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36394         * tests/unicase/test-predicate-part1.h: New file, derived from
36395         tests/unictype/test-predicate-part1.h.
36396         * tests/unicase/test-predicate-part2.h: New file, same as
36397         tests/unictype/test-predicate-part2.h.
36398
36399         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36400         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36401         (output_casing_properties): New function.
36402         (main): Call it.
36403         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36404         * lib/unicase/cased.c: Include unictype/bitmap.h.
36405         (uc_is_cased): Define through a bitmap lookup.
36406         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36407         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36408         (uc_is_case_ignorable): Define through a bitmap lookup.
36409         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36410         lib/unictype/bitmap.h.
36411         (Depends-on): Add inline. Clean up.
36412         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36413         lib/unictype/bitmap.h.
36414         (Depends-on): Add inline. Clean up.
36415         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36416         recognition.
36417         * tests/unicase/test-u16-tolower.c (main): Likewise.
36418         * tests/unicase/test-u32-tolower.c (main): Likewise.
36419
36420 2009-06-30  Bruno Haible  <bruno@clisp.org>
36421
36422         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36423         * lib/unicase/u16-casemap.c: Likewise.
36424         * lib/unicase/u32-casemap.c: Likewise.
36425
36426 2009-06-29  Bruno Haible  <bruno@clisp.org>
36427
36428         Define u32_casefold as a wrapper around u32_ct_casefold.
36429         * lib/unicase/u32-casefold.c: Update.
36430         * modules/unicase/u32-casefold (Depends-on): Add
36431         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36432         unicase/empty-suffix-context. Clean up.
36433
36434         Define u16_casefold as a wrapper around u16_ct_casefold.
36435         * lib/unicase/u16-casefold.c: Update.
36436         * modules/unicase/u16-casefold (Depends-on): Add
36437         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36438         unicase/empty-suffix-context. Clean up.
36439
36440         Define u8_casefold as a wrapper around u8_ct_casefold.
36441         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36442         * lib/unicase/u8-casefold.c: Update.
36443         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36444         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36445
36446         Define u32_totitle as a wrapper around u32_ct_totitle.
36447         * lib/unicase/u32-totitle.c: Update.
36448         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36449         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36450
36451         Define u16_totitle as a wrapper around u16_ct_totitle.
36452         * lib/unicase/u16-totitle.c: Update.
36453         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36454         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36455
36456         Define u8_totitle as a wrapper around u8_ct_totitle.
36457         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36458         functions.
36459         (FUNC): Delegate to U_CT_TOTITLE.
36460         * lib/unicase/u8-totitle.c: Update.
36461         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36462         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36463
36464         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36465         invocation.
36466         * modules/unicase/u32-tolower (Depends-on): Add
36467         unicase/empty-prefix-context, unicase/empty-suffix-context.
36468
36469         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36470         invocation.
36471         * modules/unicase/u16-tolower (Depends-on): Add
36472         unicase/empty-prefix-context, unicase/empty-suffix-context.
36473
36474         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36475         * modules/unicase/u8-tolower (Depends-on): Add
36476         unicase/empty-prefix-context, unicase/empty-suffix-context.
36477
36478         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36479         invocation.
36480         * modules/unicase/u32-toupper (Depends-on): Add
36481         unicase/empty-prefix-context, unicase/empty-suffix-context.
36482
36483         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36484         invocation.
36485         * modules/unicase/u16-toupper (Depends-on): Add
36486         unicase/empty-prefix-context, unicase/empty-suffix-context.
36487
36488         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36489         * modules/unicase/u8-toupper (Depends-on): Add
36490         unicase/empty-prefix-context, unicase/empty-suffix-context.
36491
36492         New module 'unicase/u32-ct-casefold'.
36493         * lib/unicase/u32-ct-casefold.c: New file.
36494         * modules/unicase/u32-ct-casefold: New file.
36495
36496         New module 'unicase/u16-ct-casefold'.
36497         * lib/unicase/u16-ct-casefold.c: New file.
36498         * modules/unicase/u16-ct-casefold: New file.
36499
36500         New module 'unicase/u8-ct-casefold'.
36501         * lib/unicase/u8-ct-casefold.c: New file.
36502         * lib/unicase/u-ct-casefold.h: New file, derived from
36503         lib/unicase/u-casefold.h.
36504         * modules/unicase/u8-ct-casefold: New file.
36505
36506         New module 'unicase/u32-ct-totitle'.
36507         * lib/unicase/u32-ct-totitle.c: New file.
36508         * modules/unicase/u32-ct-totitle: New file.
36509
36510         New module 'unicase/u16-ct-totitle'.
36511         * lib/unicase/u16-ct-totitle.c: New file.
36512         * modules/unicase/u16-ct-totitle: New file.
36513
36514         New module 'unicase/u8-ct-totitle'.
36515         * lib/unicase/u8-ct-totitle.c: New file.
36516         * lib/unicase/u-ct-totitle.h: New file, derived from
36517         lib/unicase/u-totitle.h.
36518         * modules/unicase/u8-ct-totitle: New file.
36519
36520         New module 'unicase/u32-ct-tolower'.
36521         * lib/unicase/u32-ct-tolower.c: New file.
36522         * modules/unicase/u32-ct-tolower: New file.
36523
36524         New module 'unicase/u16-ct-tolower'.
36525         * lib/unicase/u16-ct-tolower.c: New file.
36526         * modules/unicase/u16-ct-tolower: New file.
36527
36528         New module 'unicase/u8-ct-tolower'.
36529         * lib/unicase/u8-ct-tolower.c: New file.
36530         * modules/unicase/u8-ct-tolower: New file.
36531
36532         New module 'unicase/u32-ct-toupper'.
36533         * lib/unicase/u32-ct-toupper.c: New file.
36534         * modules/unicase/u32-ct-toupper: New file.
36535
36536         New module 'unicase/u16-ct-toupper'.
36537         * lib/unicase/u16-ct-toupper.c: New file.
36538         * modules/unicase/u16-ct-toupper: New file.
36539
36540         New module 'unicase/u8-ct-toupper'.
36541         * lib/unicase/u8-ct-toupper.c: New file.
36542         * modules/unicase/u8-ct-toupper: New file.
36543
36544         Add context arguments to u*_casemap functions.
36545         * lib/unicase/unicasemap.h: Include unicase.h.
36546         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36547         suffix_context arguments.
36548         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36549         functions.
36550         (FUNC): Add prefix_context and suffix_context arguments. Use
36551         uc_is_cased and uc_is_case_ignorable.
36552         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36553         * lib/unicase/u16-casemap.c: Likewise.
36554         * lib/unicase/u32-casemap.c: Likewise.
36555         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36556         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36557         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36558         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36559         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36560         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36561
36562         New module 'unicase/u32-suffix-context'.
36563         * lib/unicase/u32-suffix-context.c: New file.
36564         * modules/unicase/u32-suffix-context: New file.
36565
36566         New module 'unicase/u16-suffix-context'.
36567         * lib/unicase/u16-suffix-context.c: New file.
36568         * modules/unicase/u16-suffix-context: New file.
36569
36570         New module 'unicase/u8-suffix-context'.
36571         * lib/unicase/u8-suffix-context.c: New file.
36572         * lib/unicase/u-suffix-context.h: New file.
36573         * modules/unicase/u8-suffix-context: New file.
36574
36575         New module 'unicase/empty-suffix-context'.
36576         * lib/unicase/empty-suffix-context.c: New file.
36577         * modules/unicase/empty-suffix-context: New file.
36578
36579         New module 'unicase/u32-prefix-context'.
36580         * lib/unicase/u32-prefix-context.c: New file.
36581         * modules/unicase/u32-prefix-context: New file.
36582
36583         New module 'unicase/u16-prefix-context'.
36584         * lib/unicase/u16-prefix-context.c: New file.
36585         * modules/unicase/u16-prefix-context: New file.
36586
36587         New module 'unicase/u8-prefix-context'.
36588         * lib/unicase/u8-prefix-context.c: New file.
36589         * lib/unicase/u-prefix-context.h: New file.
36590         * lib/unicase/context.h: New file.
36591         * modules/unicase/u8-prefix-context: New file.
36592
36593         New module 'unicase/empty-prefix-context'.
36594         * lib/unicase/empty-prefix-context.c: New file.
36595         * modules/unicase/empty-prefix-context: New file.
36596
36597         New module 'unicase/ignorable'.
36598         * lib/unicase/ignorable.c: New file.
36599         * modules/unicase/ignorable: New file.
36600
36601         New module 'unicase/cased'.
36602         * lib/unicase/caseprop.h: New file.
36603         * lib/unicase/cased.c: New file.
36604         * modules/unicase/cased: New file.
36605
36606         New functions for case mapping of substrings.
36607         * lib/unicase.h (casing_prefix_context_t): New type.
36608         (unicase_empty_prefix_context): New variable.
36609         (u8_casing_prefix_context, u16_casing_prefix_context,
36610         u32_casing_prefix_context, u8_casing_prefixes_context,
36611         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36612         declarations.
36613         (casing_suffix_context_t): New type.
36614         (unicase_empty_suffix_context): New variable.
36615         (u8_casing_suffix_context, u16_casing_suffix_context,
36616         u32_casing_suffix_context, u8_casing_suffixes_context,
36617         u16_casing_suffixes_context, u32_casing_suffixes_context,
36618         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36619         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36620         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36621         declarations.
36622
36623 2009-06-28  Jim Meyering  <meyering@redhat.com>
36624
36625         boostrap: indent only with spaces
36626         * build-aux/bootstrap: Indent only with spaces, never TABs.
36627
36628         bootstrap: split long lines
36629         * build-aux/bootstrap: Keep line length < 80.
36630
36631         bootstrap: sync from coreutils
36632         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36633         just as autoreconf does.  Verify a list of prerequisite
36634         package-name,version-number pairs if defined in bootstrap.conf.
36635         Refer to README-prereq, if prerequisites are not satisfied.
36636
36637 2009-06-27  Eric Blake  <ebb9@byu.net>
36638
36639         tests: add test for bogus NULL definition
36640         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36641         * tests/test-stdlib.c: Likewise.
36642         * tests/test-string.c: Likewise.
36643         * tests/test-locale.c: Likewise.
36644         * tests/test-unistd.c: Likewise.
36645         * modules/stdio-tests (Depends-on): Add verify.
36646         * modules/stdlib-tests (Depends-on): Likewise.
36647         * modules/string-tests (Depends-on): Likewise.
36648         * modules/locale-tests (Depends-on): Likewise.
36649         * modules/unistd-tests (Depends-on): Likewise.
36650
36651 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36652
36653         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36654         self-explaining comment.
36655         * m4/selinux-selinux-h: Update serial.
36656         (gl_LIBSELINUX): New macro, adding a warning for missing development
36657         packages to code extracted from...
36658         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36659         Add warning for missing development packages here, too.
36660
36661 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36662
36663         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36664
36665 2009-06-25  Eric Blake  <ebb9@byu.net>
36666
36667         version-etc: fix regression
36668         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36669         gcc.
36670         (version_etc): Use it, to catch bugs with trailing NULL.
36671         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36672         (version_etc_va): Fix logic bug.
36673         * modules/version-etc-tests: Add test.
36674         * tests/test-version-etc.c: New file.
36675         * tests/test-version-etc.sh: Likewise.
36676
36677 2009-06-25  Sam Steingold  <sds@gnu.org>
36678
36679         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36680         mbtowc declaration.
36681
36682 2009-06-25  Eric Blake  <ebb9@byu.net>
36683
36684         fpurge: migrate into <stdio.h>
36685         * lib/fpurge.h: Delete...
36686         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36687         * lib/fpurge.c (fpurge): Change declaring header.
36688         * modules/fpurge (Files): Drop deleted file.
36689         (Depends-on): Add stdio.
36690         (configure.ac): Set witness.
36691         * modules/stdio (Makefile.am): Support fpurge macros.
36692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36694         * lib/fflush.c: Update client.
36695         * tests/test-fpurge.c: Likewise.
36696         * NEWS: Mention the change.
36697
36698 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36699
36700         * lib/argp-version-etc.c (program_authors): Add const
36701         qualifier.
36702         * lib/version-etc.c: Fix typos in the comments.
36703         * modules/argp-version-etc: Depends on version-etc.
36704
36705 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36706
36707         argp-version-etc: new module.
36708
36709         * lib/argp-version-etc.c: New file.
36710         * lib/argp-version-etc.h: New file.
36711         * modules/argp-version-etc: New file.
36712         * modules/argp-version-etc-tests: New file.
36713         * tests/test-argp-version-etc.c: New test.
36714         * tests/test-argp-version-etc-1.sh: New test.
36715
36716 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36717
36718         Provide additional interfaces and documentation for version-etc
36719         module.
36720
36721         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36722         interfaces.
36723         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36724         prototypes.
36725
36726 2009-06-24  Bruno Haible  <bruno@clisp.org>
36727
36728         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36729         HAVE_LIB${NAME} macro.
36730         Reported by Sam Steingold <sds@gnu.org>.
36731
36732 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36733
36734         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36735         needed.
36736
36737 2009-06-21  Bruno Haible  <bruno@clisp.org>
36738
36739         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36740         work.
36741         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36742         together with LIB${NAME}, LTLIB${NAME}.
36743         Reported by Sam Steingold <sds@gnu.org>.
36744
36745 2009-06-20  Jim Meyering  <meyering@redhat.com>
36746
36747         tests: make sc_require_test_exit_idiom more generic
36748         * top/maint.mk (Exit_witness_file): New overridable variable.
36749         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36750         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36751
36752 2009-06-19  Jim Meyering  <meyering@redhat.com>
36753
36754         hash: reverse order of src/dst parameters in an internal interface
36755         * lib/hash.c (transfer_entries): Reverse order of parameters to
36756         put DST before SRC.  Adjust callers.
36757
36758         tests: test-hash: avoid wholesale duplication
36759         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36760         Instead, use a loop and add a single conditional.
36761
36762         tests: test-hash: allow seed selection via a command line argument
36763         * tests/test-hash.c (get_seed): New function.
36764         (main): Use it.
36765
36766 2009-06-19  Eric Blake  <ebb9@byu.net>
36767
36768         hash: avoid memory leak on allocation failure
36769         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36770         failure.  Factor repeated algorithm...
36771         (transfer_entries): ...into new helper routine.
36772         (hash_delete): React to hash_rehash return value.
36773
36774         hash: reduce memory pressure in hash_rehash no-op case
36775         * lib/hash.c (next_prime): Avoid overflow.
36776         (hash_initialize): Factor bucket size computation...
36777         (compute_bucket_size): ...into new helper function.
36778         (hash_rehash): Use new function and open coding to reduce memory
36779         pressure, and avoid a memory leak in USE_OBSTACK code.
36780         Reported by Jim Meyering.
36781
36782 2009-06-18  Eric Blake  <ebb9@byu.net>
36783
36784         hash: make rotation more obvious
36785         * modules/hash (Depends-on): Add bitrotate and stdint.
36786         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36787         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36788         (SIZE_MAX): Rely on headers for definition.
36789         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36790         (raw_hasher): Use rotr_sz.
36791         Suggested by Jim Meyering.
36792
36793         hash: fix memory leak in last patch
36794         * lib/hash.c (hash_rehash): Avoid memory leak.
36795
36796         hash: avoid no-op rehashing
36797         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36798
36799         hash: provide default callback functions
36800         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36801         (hash_initialize): Use them as defaults.
36802         * tests/test-hash.c (main): Test this.
36803
36804         hash: minor optimization
36805         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36806         when possible.
36807         (hash_initialize): Document this promise.
36808         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36809         * tests/test-hash.c (hash_compare_strings): Test this.
36810
36811 2009-06-18  Bruno Haible  <bruno@clisp.org>
36812
36813         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36814         going to be replaced anyway.
36815
36816 2009-06-18  Bruno Haible  <bruno@clisp.org>
36817
36818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36819         in one place.
36820         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36821         be replaced anyway.
36822
36823 2009-06-18  Eric Blake  <ebb9@byu.net>
36824
36825         hash: check for resize before insertion
36826         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36827         threshold before insertion, so that a pathological hash_rehash
36828         that fills every bucket can still trigger another rehash.
36829
36830 2009-06-18  Jim Meyering  <meyering@redhat.com>
36831
36832         hash-tests: add a loop around the small tests
36833         * tests/test-hash.c (main): Repeat small tests with selected
36834         small initial table sizes.
36835
36836 2009-06-17  Eric Blake  <ebb9@byu.net>
36837
36838         hash: minor cleanups
36839         * lib/hash.h (hash_entry): Make opaque, by moving...
36840         * lib/hash.c (hash_entry): ...here.
36841         (hash_insert): Clarify restrictions on what can be inserted.
36842         (hash_get_next): Clarify when it is safe to remove an element
36843         during traversal.
36844         (check_tuning): Skip verification when tuning is known safe.
36845         (hash_initialize): Clarify restrictions on tuning.
36846
36847 2009-06-17  Jim Meyering  <jim@meyering.net>
36848         and Eric Blake  <ebb9@byu.net>
36849
36850         hash-tests: new module
36851         * modules/hash-tests: New file.
36852         * tests/test-hash.c: New file.
36853
36854 2009-06-17  Eric Blake  <ebb9@byu.net>
36855
36856         strstr-simple: document new module
36857         * MODULES.html.sh: Document new module.
36858
36859         strstr, strcasestr: replace on platforms with broken memchr
36860         * modules/strstr: Split into...
36861         * modules/strstr-simple: ...new module that does not care about
36862         performance, but does care about glibc bug.
36863         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36864         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36865         if platform memchr is broken, per Debian bug 521737.
36866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36867         memchr.
36868         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36869         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36870         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36871         * modules/mountlist (Depends-on): Add strstr-simple.
36872         * modules/gen-uni-tables (Depends-on): Likewise.
36873         * modules/argz (Depends-on): Add strstr.
36874
36875 2009-06-17  Bruno Haible  <bruno@clisp.org>
36876
36877         * modules/posix_spawn-internal (Depends-on): Add errno.
36878
36879 2009-06-17  Bruno Haible  <bruno@clisp.org>
36880
36881         Define missing ESTALE on Interix 3.5.
36882         * lib/errno.in.h (ESTALE): Assign a value if missing.
36883         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
36884         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
36885         missing.
36886         * doc/posix-headers/errno.texi: Mention the Interix bug.
36887         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
36888
36889 2009-06-15  Eric Blake  <ebb9@byu.net>
36890
36891         memchr, memchr2: add valgrind exception
36892         * lib/memchr.valgrind: New file.
36893         * lib/memchr2.valgrind: New file.
36894         * modules/memchr (Files): Distribute valgrind file.
36895         * modules/memchr2 (Files): Likewise.
36896
36897         docs: memchr is no longer obsolete
36898         * MODULES.html.sh: Move memchr from obsolete to string.h section.
36899         * lib/string.in.h (memchr): Simplify logic.
36900
36901 2009-06-14  Jim Meyering  <meyering@redhat.com>
36902
36903         link-follow: fix the "checking..." message to not mention trailing slash
36904         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
36905         never considered trailing slashes.
36906
36907 2009-06-14  Bruno Haible  <bruno@clisp.org>
36908
36909         * m4/memchr.m4: Mention also the bug on IA-64.
36910         * doc/posix-functions/memchr.texi: Likewise.
36911
36912 2009-06-12  Eric Blake  <ebb9@byu.net>
36913
36914         memchr: detect broken x86_64 and alpha implementations
36915         * modules/memchr-tests (Depends-on): Move mmap detection...
36916         * modules/memchr (Depends-on): ...here.
36917         (configure.ac): Set indicator.
36918         * lib/string.in.h (memchr): Declare replacement.
36919         * modules/string (Makefile.am): Trigger replacement.
36920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36921         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36922         bugs.
36923         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36924         * modules/getpagesize (License): Relax license.
36925
36926 2009-06-11  Bruno Haible  <bruno@clisp.org>
36927
36928         * lib/idpriv.h: Add more references.
36929
36930 2009-06-08  Bruno Haible  <bruno@clisp.org>
36931
36932         Tests for module 'idpriv-droptemp'.
36933         * modules/idpriv-droptemp-tests: New file.
36934         * tests/test-idpriv-droptemp.sh: New file.
36935         * tests/test-idpriv-droptemp.su.sh: New file.
36936         * tests/test-idpriv-droptemp.c: New file.
36937
36938         New module 'idpriv-droptemp'.
36939         * lib/idpriv-droptemp.c: New file.
36940         * modules/idpriv-droptemp: New file.
36941
36942 2009-06-08  Bruno Haible  <bruno@clisp.org>
36943
36944         Tests for module 'idpriv-drop'.
36945         * modules/idpriv-drop-tests: New file.
36946         * tests/test-idpriv-drop.sh: New file.
36947         * tests/test-idpriv-drop.su.sh: New file.
36948         * tests/test-idpriv-drop.c: New file.
36949
36950         New module 'idpriv-drop'.
36951         * lib/idpriv.h: New file.
36952         * lib-idpriv-drop.c: New file.
36953         * m4/idpriv.m4: New file.
36954         * modules/idpriv-drop: New file.
36955
36956 2009-06-08  Bruno Haible  <bruno@clisp.org>
36957
36958         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36959         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36960         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36961         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36962         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36963         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36964         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36965
36966 2009-06-08  Eric Blake  <ebb9@byu.net>
36967
36968         test-strstr: use memory fence, when possible
36969         * tests/test-strstr.c (main): Use memory fence, in order to be
36970         more likely to trigger Debian bug 521737.
36971         * modules/strstr-tests (Files): Pull in additional files.
36972
36973         memchr: no longer obsolete, for wider field testing
36974         * modules/memchr (Status, Notice): Delete, this module is no
36975         longer obsolete.
36976         * modules/vasnprintf (Depends-on): Add memchr.
36977
36978 2009-06-07  Jim Meyering  <meyering@redhat.com>
36979
36980         hash: declare some functions with the warn_unused_result attribute
36981         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36982
36983 2009-06-07  Bruno Haible  <bruno@clisp.org>
36984
36985         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36986         Reported by Eric Blake.
36987
36988 2009-06-06  Eric Blake  <ebb9@byu.net>
36989
36990         test-alignof: fix typo with long double
36991         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36992         compiler error.
36993
36994 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36995
36996         Escape non-texinfo { and }s.
36997         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36998         markup error.
36999
37000 2009-06-04  Jim Meyering  <meyering@redhat.com>
37001
37002         gitlog-to-changelog: don't infloop on an empty commit log
37003         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37004         Reported by Boris Petersen <transacid@centerim.org>.
37005
37006 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37007
37008         version-etc: extend for packagers
37009         Add three new configure options, intended for packagers:
37010           --with-packager="packager name"
37011           --with-packager-version="packager-specific version"
37012           --with-packager-bug-reports="packager bug reporting"
37013         An example with coreutils:
37014           $ ./configure \
37015             --with-packager=Gentoo \
37016             --with-packager-bug-report=http://bugs.gentoo.org/ \
37017             --with-packager-version="patchset 1.6"
37018           $ ./src/ls --version | head -n2
37019           ls (GNU coreutils) 7.1-dirty
37020           Packaged by Gentoo (patchset 1.6)
37021         Note that the bug reporting info via --help doesn't show up because
37022         coreutils uses its own custom emit_bug_reporting_address() implementation
37023         in src/system.h.  If it didn't, it'd look like:
37024           $ ./src/ls --help | tail -n4
37025           Report bugs to <bug-coreutils@gnu.org>.
37026           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37027           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37028           General help using GNU software: <http://www.gnu.org/gethelp/>.
37029         * lib/version-etc.c: Print new information, if provided.
37030         * m4/version-etc.m4: New file.
37031         * modules/version-etc (Files): Add m4/version-etc.m4.
37032         (configure.ac): Add gl_VERSION_ETC.
37033
37034 2009-05-31  Bruno Haible  <bruno@clisp.org>
37035
37036         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37037         and 'int64_t'.
37038         * modules/alignof-tests (Dependencies): Add stdint.
37039         Reported by Eric Blake.
37040
37041 2009-05-31  Bruno Haible  <bruno@clisp.org>
37042
37043         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37044         restriction due to compiler bugs.
37045         Reported by Eric Blake.
37046
37047 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37048             Bruno Haible  <bruno@clisp.org>
37049
37050         Fix test-alignof failure.
37051         * lib/alignof.h (alignof_slot): New macro.
37052         (alignof_type): New macro, with the same semantics as the previous
37053         'alignof'.
37054         (alignof): Alias to alignof_slot.
37055         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37056         check that the results are usable as constant expressions.
37057
37058 2009-05-31  Bruno Haible  <bruno@clisp.org>
37059
37060         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37061         * tests/test-memchr.c (main): Check that memchr does not read past the
37062         first occurrence of the byte.
37063         * tests/test-strstr.c (main): Update comment.
37064         Suggested by Eric Blake.
37065
37066 2009-05-30  Bruno Haible  <bruno@clisp.org>
37067
37068         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37069         detail how to use dumpbin.
37070         Reported by David Byron <dbyron@dbyron.com>.
37071
37072 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37073
37074         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37075
37076 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37077
37078         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37079
37080 2009-05-28  Bruno Haible  <bruno@clisp.org>
37081
37082         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37083         build-aux/ files.
37084
37085 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37086
37087         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37088
37089 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37090
37091         * gnulib-tool (sed_transform_main_lib_file)
37092         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37093         regexps.
37094
37095 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37096
37097         * tests/test-strstr.c: Add another self-test.
37098         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37099         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37100
37101 2009-05-23  Bruno Haible  <bruno@clisp.org>
37102
37103         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37104         change.
37105
37106 2009-05-21  Bruno Haible  <bruno@clisp.org>
37107
37108         Simplify use of mode_t varargs.
37109         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37110         uses 'mode_t' or 'int'.
37111         * lib/openat.c (openat): Likewise.
37112         * lib/open-safer.c (open_safer): Likewise.
37113         * m4/mode_t.m4: New file.
37114         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37115         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37116         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37117         * modules/open (Files): Add m4/mode_t.m4.
37118         * modules/openat (Files): Likewise.
37119         * modules/fcntl-safer (Files): Likewise.
37120         Suggested by Eric Blake.
37121
37122 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37123
37124         * doc/glibc-functions/fallocate.texi: New file.
37125         * doc/gnulib.texi: Include it.
37126
37127 2009-05-21  Eric Blake  <ebb9@byu.net>
37128             Bruno Haible  <bruno@clisp.org>
37129
37130         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37131         invocations.
37132         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37133
37134 2009-05-21  Eric Blake  <ebb9@byu.net>
37135             Bruno Haible  <bruno@clisp.org>
37136
37137         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37138         include_next. Fix of 2008-11-20 commit.
37139         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37140         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37141         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37142         NEXT_MATH_H.
37143         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37144         instead of NEXT_MATH_H.
37145
37146 2009-05-21  Bruno Haible  <bruno@clisp.org>
37147
37148         Avoid redefinition warnings for SIZE_MAX.
37149         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37150         Reported by Simon Josefsson.
37151
37152 2009-05-21  Bruno Haible  <bruno@clisp.org>
37153
37154         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37155         AC_CACHE_VAL.
37156
37157 2009-05-20  Bruno Haible  <bruno@clisp.org>
37158
37159         Make zeroptr.h work on mingw.
37160         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37161         mprotect.
37162         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37163         * modules/memchr2-tests (configure.ac): Likewise.
37164         * modules/memcmp-tests (configure.ac): Likewise.
37165         * modules/memmem-tests (configure.ac): Likewise.
37166         * modules/memrchr-tests (configure.ac): Likewise.
37167         Reported by Simon Josefsson.
37168
37169 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37170
37171         * tests/test-glob.c: Include string.h for strcmp prototype.
37172
37173 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37174
37175         * modules/getdelim (Depends-on): Add explicit stdint, although it
37176         was implicitly already pulled in via realloc-posix.
37177         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37178
37179 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37180
37181         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37182         G. Christensen" <tgc@jupiterrise.com>.
37183         * m4/sys_socket_h.m4: Check for sa_family_t.
37184         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37185         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37186         * tests/test-sys_socket.c: Check that sa_family_t works.
37187
37188 2009-05-18  Eric Blake  <ebb9@byu.net>
37189
37190         maint.mk: allow gnulib_dir in VPATH build
37191         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37192
37193 2009-05-15  Jim Meyering  <meyering@redhat.com>
37194
37195         maint.mk: Give gnulib_dir a default definition.
37196         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37197         Thus, most packages no longer need to specify this variable in cfg.mk
37198
37199 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37200
37201         rename.m4: fix typos that would make non-mingw cross-configure fail
37202         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37203
37204 2009-05-13  Eric Blake  <ebb9@byu.net>
37205
37206         mmap-anon: avoid out-of-order autoconf expansion
37207         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37208         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37209         * modules/memchr-tests (Depends-on): Add extensions.
37210         * modules/memchr2-tests (Depends-on): Add extensions.
37211         * modules/memcmp-tests (Depends-on): Add extensions.
37212         * modules/memmem-tests (Depends-on): Add extensions.
37213         * modules/memrchr-tests (Depends-on): Add extensions.
37214
37215 2009-05-13  Bruno Haible  <bruno@clisp.org>
37216
37217         Make some tests ISO C 99 compliant.
37218         * tests/zerosize-ptr.h: New file.
37219         * tests/test-memchr.c: Include zerosize-ptr.h.
37220         (main): Use a zero-size object pointer instead of NULL.
37221         * tests/test-memchr2.c: Include zerosize-ptr.h.
37222         (main): Use a zero-size object pointer instead of NULL.
37223         * tests/test-memcmp.c: Include zerosize-ptr.h.
37224         (main): Use a zero-size object pointer instead of NULL.
37225         * tests/test-memmem.c: Include zerosize-ptr.h.
37226         (main): Use a zero-size object pointer instead of NULL.
37227         * tests/test-memrchr.c: Include zerosize-ptr.h.
37228         (main): Use a zero-size object pointer instead of NULL.
37229         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37230         m4/mmap-anon.m4.
37231         (Depends-on): Add getpagesize.
37232         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37233         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37234         m4/mmap-anon.m4.
37235         (Depends-on): Add getpagesize.
37236         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37237         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37238         m4/mmap-anon.m4.
37239         (Depends-on): Add getpagesize.
37240         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37241         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37242         m4/mmap-anon.m4.
37243         (Depends-on): Add getpagesize.
37244         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37245         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37246         m4/mmap-anon.m4.
37247         (Depends-on): Add getpagesize.
37248         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37249
37250 2009-05-12  Bruno Haible  <bruno@clisp.org>
37251
37252         Tests for module 'alignof'.
37253         * modules/alignof-tests: New file.
37254         * tests/test-alignof.c: New file.
37255
37256 2009-05-12  Bruno Haible  <bruno@clisp.org>
37257
37258         Fix alignof macro.
37259         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37260         vendor compilers that are always correct.
37261
37262 2009-05-12  Bruno Haible  <bruno@clisp.org>
37263
37264         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37265         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37266         not whether its fully works.
37267
37268 2009-05-12  Bruno Haible  <bruno@clisp.org>
37269
37270         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37271
37272 2009-05-12  Jim Meyering  <meyering@redhat.com>
37273
37274         * top/maint.mk: Adjust backslash alignment.
37275
37276 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37277
37278         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37279
37280 2009-05-11  Eric Blake  <ebb9@byu.net>
37281
37282         argp: avoid undefined behavior
37283         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37284         macros.
37285
37286 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37287
37288         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37289         user.name to prevent git commit from complaining.
37290
37291 2009-05-10  Bruno Haible  <bruno@clisp.org>
37292
37293         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37294         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37295         it rewrites every file name only once.
37296         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37297
37298 2009-05-08  Bruno Haible  <bruno@clisp.org>
37299
37300         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37301         instead of 'max'.
37302
37303 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37304
37305         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37306         sockaddr_storage test.
37307
37308 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37309
37310         * modules/sys_socket (Makefile.am): Substitute
37311         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37312         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37313         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37314         * tests/test-sys_socket.c: Check sockaddr_storage.
37315
37316 2009-05-08  Bruno Haible  <bruno@clisp.org>
37317
37318         New module 'alignof'.
37319         * lib/alignof.h: New file.
37320         * modules/alignof: New file.
37321
37322 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37323             Bruno Haible  <bruno@clisp.org>
37324
37325         Fix test-file-has-acl on FreeBSD.
37326         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37327         mask is implicitly added.
37328         * tests/test-file-has-acl.c: Include <signal.h>.
37329         (main): Terminate the test after 5 seconds.
37330         * modules/acl-tests (configure.ac): Check for alarm function.
37331
37332 2009-05-04  Bruno Haible  <bruno@clisp.org>
37333
37334         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37335         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37336         * modules/errno (configure.ac): Drop AC_REQUIRE.
37337         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37338         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37339
37340 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37341
37342         * modules/glob-tests: New module.
37343         * tests/test-glob.c: Add.
37344
37345 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37346
37347         * modules/fnmatch-tests: New module.
37348         * tests/test-fnmatch.c: Add.
37349
37350 2009-05-04  Eric Blake  <ebb9@byu.net>
37351
37352         maint: make the new no-submodule-changes rule VPATH-safe
37353         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37354
37355 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37356             Bruno Haible  <bruno@clisp.org>
37357
37358         acl: Fix infinite loop on FreeBSD.
37359         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37360         of return value from acl_get_entry.
37361         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37362         Likewise.
37363
37364 2009-05-03  Bruno Haible  <bruno@clisp.org>
37365
37366         * lib/acl-internal.h (acl_entries): Clarify return value.
37367         * lib/acl_entries.c (acl_entries): Likewise.
37368
37369 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37370
37371         Bug fix in acl module.
37372         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37373
37374 2009-05-03  Bruno Haible  <bruno@clisp.org>
37375
37376         Create gperf-generated file in the source dir, not in the build dir.
37377         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37378         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37379         * modules/unicase/locale-language (unicase/locale-languages.h):
37380         Likewise.
37381         * modules/unicase/special-casing (unicase/special-casing-table.h):
37382         Likewise.
37383         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37384         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37385         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37386         Reported by Ralf Wildenhues.
37387
37388 2009-05-03  Bruno Haible  <bruno@clisp.org>
37389
37390         * modules/fnmatch (Description, configure.ac): Taken from
37391         fnmatch-posix.
37392         * modules/fnmatch-posix: Turn into a symbolic reference to the
37393         'fnmatch' module, and deprecate.
37394         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37395
37396 2009-05-03  Bruno Haible  <bruno@clisp.org>
37397
37398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37399         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37400         Reported by Ralf Wildenhues.
37401
37402 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37403
37404         * m4/fnmatch.m4: Fix fnmatch re-define.
37405
37406 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37407
37408         priv-set: new module and tests; adapt write-any-file
37409         * lib/priv-set.c: New file.
37410         * lib/priv-set.h: New file.
37411         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37412         * lib/write-any-file.c: Simplify by using priv-set module.
37413         * m4/priv-set.m4: New file.
37414         * modules/priv-set: New file.
37415         * modules/unlinkdir: Add dependency on priv-set module.
37416         * modules/write-any-file: Likewise.
37417
37418         Tests for module 'priv-set'.
37419         * modules/priv-set-tests: New file.
37420         * tests/test-priv-set.c: New file.
37421
37422 2009-05-03  Jim Meyering  <meyering@redhat.com>
37423             Bruno Haible  <bruno@clisp.org>
37424
37425         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37426         use the converted UTF-8 variant of the name instead.
37427
37428 2009-05-03  Jim Meyering  <meyering@redhat.com>
37429
37430         tests: tighten some getdate tests
37431         * tests/test-getdate.c (main): Tighten tests: require equality,
37432         not just greater than.  Set TZ envvar to UTC0.
37433
37434 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37435
37436         getdate: correctly interpret "next monday" when run on a Monday
37437         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37438         that e.g., "next tues" (when run on a tuesday) results in a date
37439         that is one week in the future, and not today's date.
37440         I.e., add a week when the wday is the same as the current one.
37441         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37442         and earlier by Martin Bernreuther and Jan Minář.
37443         * tests/test-getdate.c (main): Check that "next DAY" is always in
37444         the future and that "last DAY" is always in the past.
37445
37446 2009-05-02  Jim Meyering  <meyering@redhat.com>
37447
37448         build: ensure that a release build fails when a submodule is unclean
37449         * top/maint.mk (no-submodule-changes): New rule.
37450         (alpha beta major): Depend on it.
37451
37452 2009-05-02  Bruno Haible  <bruno@clisp.org>
37453
37454         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37455         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37456         shell variable gl_fnmatch_required to detect which variant is
37457         requested.
37458         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37459         gl_FUNC_FNMATCH_POSIX.
37460         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37461         exclude fnmatch-posix.
37462
37463 2009-05-02  Bruno Haible  <bruno@clisp.org>
37464
37465         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37466         * modules/mbsrtowcs (License): Change to LGPLv2+.
37467         * modules/strnlen1 (License): Likewise.
37468         Reported by Simon Josefsson.
37469
37470 2009-05-02  Bruno Haible  <bruno@clisp.org>
37471
37472         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37473         "cross".
37474         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37475         gnulib-tool was called with option --source-base=lib.
37476
37477 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37478
37479         Use automake *-local hooks without commands, for extensibility.
37480         * modules/localcharset (Makefile.am): Rename install-exec-local
37481         rule to install-exec-localcharset, and make it a prerequisite of
37482         install-exec-local.  Likewise, rename the uninstall-local rule to
37483         uninstall-localcharset, and make it a prerequisite of the former.
37484
37485 2009-05-01  Bruno Haible  <bruno@clisp.org>
37486
37487         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37488         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37489         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37491         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37492         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37493         m4/locale-zh.m4, m4/codeset.m4.
37494
37495         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37496         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37497         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37498         m4/locale-zh.m4.
37499
37500         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37501         REPLACE_WCRTOMB if mbstate_t must be replaced.
37502         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37503         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37504
37505 2009-05-01  Bruno Haible  <bruno@clisp.org>
37506
37507         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37508         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37509         dngettext, dcngettext, textdomain, bindtextdomain,
37510         bind_textdomain_codeset): Undefine before redefining.
37511
37512 2009-04-30  Bruno Haible  <bruno@clisp.org>
37513
37514         Fix bug introduced on 2009-04-25.
37515         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37516         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37517         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37518         is defined.
37519         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37520         is defined.
37521         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37522         is defined.
37523         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37524
37525 2009-04-28  Bruno Haible  <bruno@clisp.org>
37526
37527         Comment tweaks.
37528         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37529         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37530         * lib/unicase.h (u*_casexfrm): Likewise.
37531         Reported by Paolo Bonzini.
37532
37533 2009-04-28  Bruno Haible  <bruno@clisp.org>
37534
37535         Fix a compilation error.
37536         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37537         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37538         Reported by Jim Meyering.
37539
37540 2009-04-27  Bruno Haible  <bruno@clisp.org>
37541
37542         New module 'libunistring'.
37543         * modules/libunistring: New file.
37544         * m4/libunistring.m4: New file.
37545         * MODULES.html.sh (Unicode string functions): Add it.
37546
37547 2009-04-27  Eric Blake  <ebb9@byu.net>
37548
37549         maint.mk: allow package-specific header to provide <config.h>
37550         * top/maint.mk (sc_require_config_h): New variable.
37551         (sc_require_config_h, sc_require_config_h_first): Use it.
37552
37553 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37554
37555         * top/maint.mk (sc_avoid_if_before_free): Except
37556         useless-if-before-free script.
37557
37558 2009-04-27  Eric Blake  <ebb9@byu.net>
37559
37560         maintainer-makefile: depend on all required helper scripts
37561         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37562         useless-if-before-free.
37563         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37564         version, rather than assuming gnulib checkout is available.
37565         Reported by Simen Josefsson.
37566
37567 2009-04-26  Bruno Haible  <bruno@clisp.org>
37568
37569         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37570         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37571         "../" or "..".
37572
37573 2009-04-26  Bruno Haible  <bruno@clisp.org>
37574
37575         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37576         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37577         AC_LIB_HAVE_LINKFLAGS.
37578
37579 2009-04-26  Bruno Haible  <bruno@clisp.org>
37580
37581         Simplify calling convention of u*_conv_from_encoding.
37582         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37583         u32_conv_from_encoding): Expect a resultbuf argument and return the
37584         result directly as a pointer.
37585         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37586         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37587         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37588         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37589         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37590         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37591         Update.
37592         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37593         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37594         * lib/vasnprintf.c (VASNPRINTF): Update.
37595         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37596         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37597         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37598         * NEWS: Mention the change.
37599
37600 2009-04-26  Bruno Haible  <bruno@clisp.org>
37601
37602         Simplify calling convention of u*_conv_to_encoding.
37603         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37604         u32_conv_to_encoding): Expect a resultbuf argument and return the
37605         result directly as a pointer.
37606         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37607         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37608         freeing scaled_offsets if mem_iconveha failed.
37609         * lib/unicase/u-casexfrm.h (FUNC): Update.
37610         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37611         * lib/vasnprintf.c (VASNPRINTF): Update.
37612         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37613         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37614         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37615         * NEWS: Mention the change.
37616
37617 2009-04-26  Bruno Haible  <bruno@clisp.org>
37618
37619         Avoid test failures on AIX and OSF/1.
37620         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37621         malloc(0).
37622         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37623         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37624         Likewise.
37625         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37626         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37627         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37628         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37629         * doc/posix-functions/malloc.texi: Document the portability problem
37630         related to malloc(0).
37631
37632 2009-04-26  Bruno Haible  <bruno@clisp.org>
37633
37634         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37635         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37636         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37637
37638 2009-04-25  Bruno Haible  <bruno@clisp.org>
37639
37640         Avoid link error when creating a namespace clean library.
37641         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37642         as macro with arguments if already defined as an alias.
37643         * lib/signbitf.c (gl_signbitf): Don't undefine.
37644         * lib/signbitd.c (gl_signbitd): Don't undefine.
37645         * lib/signbitl.c (gl_signbitl): Don't undefine.
37646
37647 2009-04-25  Jim Meyering  <meyering@redhat.com>
37648
37649         vc-list-files: fix another quoting bug
37650         * build-aux/vc-list-files: Avoid sed backslash expansion
37651         of pathological directory names.
37652
37653 2009-04-25  Eric Blake  <ebb9@byu.net>
37654
37655         vc-list-files: fix shell quoting error
37656         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37657         timestamp.
37658
37659 2009-04-25  Jim Meyering  <meyering@redhat.com>
37660
37661         vc-list-files: restore lost functionality with subdir argument
37662         * build-aux/vc-list-files: When given a non-"." sub-directory
37663         argument, substitute the $dir/ prefix back onto each resulting name.
37664         Otherwise, coreutils' root_tests check would fail.
37665
37666 2009-04-24  Eric Blake  <ebb9@byu.net>
37667
37668         vc-list-files: ignore git symlinks
37669         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37670         than ls-files, to ignore git symlinks.
37671
37672         maint.mk: import improvements from m4
37673         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37674         (move_if_change): Delete unused macro.
37675         (news-date-check, vc-diff-check): Support VPATH builds.
37676         (announcement): Likewise.  Split --bootstrap-tools list...
37677         (boostrap-tools): ...into separate list, which can be overridden
37678         in cfg.mk.
37679         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37680         requiring dependency on useless-if-before-free module.
37681         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37682         Support VPATH builds.
37683
37684 2009-04-24  Jim Meyering  <meyering@redhat.com>
37685
37686         maint.mk: remove coreutils-specific rules and variables
37687         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37688         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37689         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37690
37691         maint.mk: remove obsolete rule
37692         * top/maint.mk (rel-check): Remove rule.
37693         (WGET, WGETFLAGS): Remove now-unused variables.
37694
37695 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37696
37697         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37698         consistency.
37699
37700         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37701         '$(PATH_SEPARATOR)' instead of ':'.
37702
37703 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37704
37705         * lib/getopt1.c (main): Use 'const' for static array.
37706
37707 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37708
37709         * top/maint.mk: Sync with coreutils.
37710         * NEWS: Explain incompatibilities.
37711
37712 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37713             Bruno Haible  <bruno@clisp.org>
37714
37715         Fix cross-compilation results.
37716         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37717         statement, as third argument of AC_TRY_RUN.
37718         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37719         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37720         Likewise.
37721         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37722         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37723         Likewise.
37724         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37725         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37726         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37727
37728 2009-04-20  Bruno Haible  <bruno@clisp.org>
37729
37730         Avoid test failure on mingw.
37731         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37732
37733 2009-04-20  Bruno Haible  <bruno@clisp.org>
37734
37735         Avoid compilation error on mingw.
37736         * modules/localename-tests (Depends-on): Add locale.
37737
37738 2009-04-19  Bruno Haible  <bruno@clisp.org>
37739
37740         Support for building a shared library on Windows platforms.
37741         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37742         (main): Test the presence of UNINORM_NFC here.
37743         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37744         (main): Test the presence of UNINORM_NFD here.
37745         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37746         (main): Test the presence of UNINORM_NFKC here.
37747         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37748         (main): Test the presence of UNINORM_NFKD here.
37749
37750 2009-04-19  Bruno Haible  <bruno@clisp.org>
37751
37752         Avoid a compiler warning.
37753         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37754         Change type of variable 'sequence'.
37755
37756 2009-04-19  Bruno Haible  <bruno@clisp.org>
37757
37758         * modules/configmake (Makefile.am): When the contents of configmake.h
37759         does not change, arrange to preserve its modification time.
37760
37761 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37762
37763         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37764         gettext domain.
37765
37766 2009-04-16  Jim Meyering  <meyering@redhat.com>
37767
37768         useless-if-before-free: improve conversion code
37769         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37770         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37771
37772 2009-04-14  Bruno Haible  <bruno@clisp.org>
37773
37774         * modules/fcntl (Depends-on): Add extensions.
37775         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37776
37777 2009-04-12  Ben Pfaff  <blp@gnu.org>
37778
37779         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37780         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37781
37782 2009-03-20  Ben Pfaff  <blp@gnu.org>
37783
37784         Make rename replace existing destinations on Windows.
37785         * m4/rename.m4: Add test for Mingw.
37786         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37787         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37788         * doc/posix-functions/rename.texi: Document.
37789
37790 2009-04-10  Bruno Haible  <bruno@clisp.org>
37791
37792         New include file "iconveh.h".
37793         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37794         * lib/striconveh.h: Include it.
37795         (enum iconv_ilseq_handler): Remove definition.
37796         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37797         striconveh.h.
37798         * lib/striconveha.c: Include striconveh.h.
37799         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37800         * modules/striconveh (Files): Add lib/iconveh.h.
37801         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37802         lib/striconveh.h.
37803
37804 2009-04-10  Bruno Haible  <bruno@clisp.org>
37805
37806         * lib/uniconv.h: Update comment.
37807
37808 2009-04-10  Bruno Haible  <bruno@clisp.org>
37809
37810         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37811         always.
37812         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37813         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37814         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37815         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37816         "unistring-notinline.h", so that the function gets defined always.
37817         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37818         * lib/unistr/u8-uctomb.c: Likewise.
37819         * lib/unistr/u16-mbtouc.c: Likewise.
37820         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37821         * lib/unistr/u16-uctomb.c: Likewise.
37822         * lib/unistr/u32-mbtouc.c: Likewise.
37823         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37824         * lib/unistr/u32-uctomb.c: Likewise.
37825
37826 2009-04-10  Bruno Haible  <bruno@clisp.org>
37827
37828         Mark 'utime' obsolete.
37829         * modules/utime (Status, Notice): New sections.
37830         Suggested by Jim Meyering.
37831
37832         Fix cross-compile guess for utime test.
37833         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37834         autoconf.
37835         * doc/posix-functions/utime.texi: Give more precisions.
37836         Reported by Jan <ipif@ymail.com>.
37837
37838 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37839
37840         filevercmp: correct today's change
37841         * lib/filevercmp.c: Also handle coreutils' test inputs.
37842         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37843
37844         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37845         for reporting it.
37846         * lib/filevercmp.c: Special handle for "", "." and "..".
37847         * tests/test-filevercmp.c: Enlarge the set suite.
37848
37849 2009-04-07  Jim Meyering  <meyering@redhat.com>
37850
37851         useless-if-before-free: show how to remove braced useless free, too
37852         * build-aux/useless-if-before-free: still only in a comment, though.
37853
37854 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37855
37856         maint.mk: import changes to syntax-check macros from coreutils
37857         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37858         Use them in the relevant macros.
37859
37860 2009-04-06  Bruno Haible  <bruno@clisp.org>
37861
37862         Fix unportable use of bit-fields.
37863         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37864         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37865         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37866
37867 2009-04-06  Bruno Haible  <bruno@clisp.org>
37868
37869         Avoid test failures on AIX and OSF/1.
37870         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37871         that malloc(0) = NULL.
37872         * tests/unicase/test-u8-tolower.c (check): Likewise.
37873         * tests/unicase/test-u8-totitle.c (check): Likewise.
37874         * tests/unicase/test-u8-toupper.c (check): Likewise.
37875         * tests/unicase/test-u16-casefold.c (check): Likewise.
37876         * tests/unicase/test-u16-tolower.c (check): Likewise.
37877         * tests/unicase/test-u16-totitle.c (check): Likewise.
37878         * tests/unicase/test-u16-toupper.c (check): Likewise.
37879         * tests/unicase/test-u32-casefold.c (check): Likewise.
37880         * tests/unicase/test-u32-tolower.c (check): Likewise.
37881         * tests/unicase/test-u32-totitle.c (check): Likewise.
37882         * tests/unicase/test-u32-toupper.c (check): Likewise.
37883         * tests/uninorm/test-u8-nfc.c (check): Likewise.
37884         * tests/uninorm/test-u8-nfd.c (check): Likewise.
37885         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
37886         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
37887         * tests/uninorm/test-u16-nfc.c (check): Likewise.
37888         * tests/uninorm/test-u16-nfd.c (check): Likewise.
37889         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
37890         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
37891         * tests/uninorm/test-u32-nfc.c (check): Likewise.
37892         * tests/uninorm/test-u32-nfd.c (check): Likewise.
37893         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
37894         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
37895
37896 2009-04-05  Bruno Haible  <bruno@clisp.org>
37897
37898         Work around an autoconf limitation.
37899         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
37900         comment line if it would be longer than 3 KB.
37901
37902 2009-04-05  Bruno Haible  <bruno@clisp.org>
37903
37904         Avoid test failure with libiconv-1.13.
37905         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
37906         of the expected test results.
37907
37908 2009-04-05  Bruno Haible  <bruno@clisp.org>
37909
37910         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
37911         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37912         that it should be installed.
37913
37914 2009-04-05  Bruno Haible  <bruno@clisp.org>
37915
37916         * gnulib-tool: New option --copy-file.
37917         (func_usage): Document it.
37918         (func_dest_tmpfilename): Moved out of func_import.
37919         (func_add_file, func_update_file): New functions, extracted from
37920         func_import.
37921         (func_import): Update.
37922
37923 2009-04-05  Karl Berry  <karl@gnu.org>
37924
37925         * README: prominently mention gnulib-tool.
37926         Rearrange sections so getting the code is near the top.
37927
37928 2009-04-05  Bruno Haible  <bruno@clisp.org>
37929
37930         * lib/unicase.h: Mention u*_cmp2.
37931         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37932         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37933         * lib/unicase/ulc-casecmp.c: Likewise.
37934         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37935         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37936         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37937         unistr/u8-cmp.
37938         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37939         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37940         unistr/u16-cmp.
37941         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37942         unistr/u32-cmp.
37943
37944         * lib/uninorm.h: Mention u*_cmp2.
37945         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37946         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37947         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37948         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37949         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37950         unistr/u8-cmp.
37951         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37952         unistr/u16-cmp.
37953         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37954         unistr/u32-cmp.
37955
37956         New module 'unistr/u32-cmp2'.
37957         * lib/unistr/u32-cmp2.c: New file.
37958         * modules/unistr/u32-cmp2: New file.
37959
37960         New module 'unistr/u16-cmp2'.
37961         * lib/unistr/u16-cmp2.c: New file.
37962         * modules/unistr/u16-cmp2: New file.
37963
37964         New module 'unistr/u8-cmp2'.
37965         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37966         * lib/unistr/u8-cmp2.c: New file.
37967         * lib/unistr/u-cmp2.h: New file.
37968         * modules/unistr/u8-cmp2: New file.
37969
37970 2009-04-05  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/unictype.h (uc_property_is_valid): New macro.
37973         * tests/unictype/test-pr_byname.c (main): Use it.
37974
37975         * lib/unistr.h: Doc fixes.
37976         * lib/uniconv.h: Doc fixes.
37977         * lib/unictype.h: Doc fixes.
37978
37979 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37980
37981         Port coreutils 7.2 to Solaris 8.
37982
37983         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37984         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37985         for Solaris 8.  This is a bit of a hack, as it means it's the
37986         caller's responsibility to add -lnsl if needed, but most likely it
37987         won't be needed since only getaddrinfo uses this and getaddrinfo
37988         isn't needed on Solaris 8.
37989
37990         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37991         problem to Solaris 8 encountered with coreutils 7.2, which
37992         resulted in a message "fnmatch.c:292: warning: passing argument 4
37993         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37994         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37995
37996 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37997
37998         * m4/ld-version-script.m4: Add FIXME comment.
37999
38000 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38001
38002         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38003         SOVERSION variable.
38004
38005 2009-04-02  Bruno Haible  <bruno@clisp.org>
38006
38007         * Makefile (info, html, dvi, pdf): Combine the rules.
38008         Suggested by Jim Meyering.
38009
38010 2009-04-01  Bruno Haible  <bruno@clisp.org>
38011
38012         * Makefile (info, html, dvi, pdf): New targets.
38013         Reported by Reuben Thomas <rrt@sc3d.org>.
38014
38015 2009-04-01  Bruno Haible  <bruno@clisp.org>
38016
38017         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38018         can be put into PATH.
38019         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38020
38021 2009-04-01  Bruno Haible  <bruno@clisp.org>
38022
38023         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38024
38025 2009-04-01  Bruno Haible  <bruno@clisp.org>
38026
38027         Rename module 'visibility'.
38028         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38029         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38030         * doc/gnulib.texi: Update.
38031         * MODULES.html.sh (Misc): Update.
38032         * NEWS: Mention the change.
38033
38034 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38035
38036         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38037         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38038         Eric Blake <ebb9@byu.net> for review.
38039         * MODULES.html.sh: Add lib-msvc-compat.
38040         * doc/gnulib.texi: Link to new section.
38041         * m4/ld-output-def.m4: New file.
38042         * doc/ld-output-def.texi: New file.
38043
38044 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38045
38046         Rename ld-version-script to lib-symbol-versions.  Suggested by
38047         Bruno Haible <bruno@clisp.org>.
38048         * modules/ld-version-script: Renamed to lib-symbol-versions.
38049         * doc/ld-version-script.texi: Fix module name.
38050         * MODULES.html.sh: Add lib-symbol-versions.
38051
38052 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38053
38054         * modules/u64-tests: New file.
38055         * tests/test-u64.c: New file.
38056
38057 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38058
38059         * MODULES.html.sh: Mention u64.
38060         * modules/u64: New module.
38061         * modules/crypto/sha512: Depend on u64 module instead of providing
38062         u64.h.
38063
38064 2009-03-27  Eric Blake  <ebb9@byu.net>
38065
38066         test-strerror: make debugging EAI_SYSTEM easier
38067         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38068         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38069         failure was EAI_SYSTEM.
38070
38071 2009-03-25  Bruno Haible  <bruno@clisp.org>
38072
38073         Fix a problem with --enable-relocatable on Solaris 7.
38074         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38075         since 2008-02-24.
38076
38077 2009-03-25  Eric Blake  <ebb9@byu.net>
38078
38079         test-sockets: avoid gcc warning
38080         * tests/test-sockets.c (main): Silence compiler warning.
38081
38082 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38083
38084         New modules nproc, pthread, contributed by Glen Lenker.
38085
38086         * MODULES.html.sh: Add pthread, nproc.
38087         * lib/nproc.c: New file.
38088         * lib/nproc.h: New file.
38089         * lib/pthread.in.h: New file.
38090         * m4/pthread.m4: New file.
38091         * modules/nproc: New file.
38092         * modules/pthread: New file.
38093
38094 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38095
38096         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38097         New variable.
38098
38099 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38100
38101         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38102         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38103         * tests/test-filevercmp.c: Add tests for backup suffixes.
38104
38105 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38106
38107         * modules/stdlib (Depends-on): Add stdint, needed when defining
38108         struct random_data on, for example, HP-UX 10.20.  Reported by
38109         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38110
38111 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38112
38113         * lib/readline.c (readline): Call fflush on stdout after printing
38114         prompt.
38115
38116 2009-03-20  Bruno Haible  <bruno@clisp.org>
38117
38118         Remove dependency from 'close' module to -lws2_32 on native Windows.
38119         * lib/close-hook.h: New file.
38120         * lib/close-hook.c: New file.
38121         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38122         w32sock.h.
38123         (_gl_close_fd_maybe_socket): Remove function.
38124         (rpl_close): Invoke execute_all_close_hooks instead of
38125         _gl_close_fd_maybe_socket.
38126         * lib/sockets.c: Include close-hook.h, w32sock.h.
38127         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38128         (close_sockets_hook): New variable.
38129         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38130         (gl_sockets_cleanup): Unregister it.
38131         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38132         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38133         * modules/close-hook: New file.
38134         * modules/close (Files): Remove lib/w32sock.h.
38135         (Depends-on): Add close-hook.
38136         (Link): Remove section.
38137         * modules/sockets (Files): Add lib/w32sock.h.
38138         (Depends-on): Add close-hook.
38139         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38140         invocation.
38141         * NEWS: Mention that LIB_CLOSE is gone.
38142
38143 2009-03-23  Eric Blake  <ebb9@byu.net>
38144
38145         signal-tests: test previous patch
38146         * tests/test-signal.c: New file.
38147         * modules/signal-tests: Likewise.
38148
38149         signal.h: always support 'volatile sig_atomic_t'
38150         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38151         (gl_SIGNAL_H_DEFAULTS): Add a default.
38152         * modules/signal (Makefile.am): Substitute if needed.
38153         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38154         users can blindly add volatile.
38155         * doc/posix-headers/signal.texi (signal.h): Document it.
38156         Reported by Matthew Woehlke.
38157
38158 2009-03-23  Jim Meyering  <meyering@redhat.com>
38159
38160         pathmax: PATH_MAX: use pathconf only when available
38161         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38162         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38163         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38164         This avoids a link failure in a PSP cross-compilation environment
38165         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38166
38167         * lib/vasnprintf.c (divide): Fix typo in comment.
38168
38169 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38170
38171         * gnulib-tool (func_filter_filelist): Fix comment.
38172
38173 2009-03-20  Bruno Haible  <bruno@clisp.org>
38174
38175         Make sockets.h self-contained.
38176         * lib/sockets.c: Include sockets.h first.
38177         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38178
38179 2009-03-19  Eric Blake  <ebb9@byu.net>
38180
38181         doc: mention more functions added in cygwin 1.7.0
38182         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38183         addition.
38184         * doc/posix-functions/log2f.texi: Likewise.
38185
38186 2009-03-19  Jim Meyering  <meyering@redhat.com>
38187
38188         fsusage: avoid syntax error due to statement-before-declaration
38189         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38190         after all declarations.  Reported by Matthew Woehlke in
38191         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38192
38193 2009-03-18  Eric Blake  <ebb9@byu.net>
38194
38195         build-aux/compile: sync from automake
38196         * build-aux/compile: New file, from automake.
38197         * config/srclist.txt: Mention build-aux/compile.
38198
38199 2009-03-17  Bruno Haible  <bruno@clisp.org>
38200
38201         * lib/git-merge-changelog.c: Fix typo in comment.
38202         Reported by Reuben Thomas <rrt@sc3d.org>.
38203
38204 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38205
38206         * m4/regex.m4: update and improve help for
38207         --without-included-regex.
38208
38209 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38210
38211         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38212         failure on missing include files.
38213
38214 2009-03-17  Eric Blake  <ebb9@byu.net>
38215
38216         doc: mention more functions added in cygwin 1.7.0
38217         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38218         addition.
38219         * doc/posix-functions/fwscanf.texi: Likewise.
38220         * doc/posix-functions/swprintf.texi: Likewise.
38221         * doc/posix-functions/swscanf.texi: Likewise.
38222         * doc/posix-functions/vfwprintf.texi: Likewise.
38223         * doc/posix-functions/vfwscanf.texi: Likewise.
38224         * doc/posix-functions/vswprintf.texi: Likewise.
38225         * doc/posix-functions/vswscanf.texi: Likewise.
38226         * doc/posix-functions/vwprintf.texi: Likewise.
38227         * doc/posix-functions/vwscanf.texi: Likewise.
38228         * doc/posix-functions/wcscasecmp.texi: Likewise.
38229         * doc/posix-functions/wcsdup.texi: Likewise.
38230         * doc/posix-functions/wcsftime.texi: Likewise.
38231         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38232         * doc/posix-functions/wprintf.texi: Likewise.
38233         * doc/posix-functions/wscanf.texi: Likewise.
38234         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38235
38236 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38237
38238         maint.mk: really add $(AM_MAKEFLAGS)
38239         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38240         was inadvertently omitted in the last commit.
38241         Spotted by Bruno Haible.
38242
38243         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38244         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38245         $(AM_MAKEFLAGS)' rather than plain `make'.
38246
38247         gnulib-tool: execute $MAKE not make
38248         * gnulib-tool: Default $MAKE to 'make'.
38249         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38250         than make.  Initialize $MAKE in the do-autobuild script.
38251
38252         gnulib-tool: use $MAKE not make in generated files
38253         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38254         make, in generated files.  Initialize $MAKE in the do-autobuild
38255         script.
38256
38257         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38258
38259         GNUmakefile: disable parallelism only for multiple, recursive targets
38260         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38261         additions in the Makefile.
38262         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38263         by Automake.
38264         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38265         are listed on the command line and at least one of them is
38266         listed in $(ALL_RECURSIVE_TARGETS).
38267
38268 2009-03-14  Bruno Haible  <bruno@clisp.org>
38269
38270         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38271         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38272         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38273         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38274         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38275         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38276         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38277         unistr/u8-uctomb.
38278         * modules/unistr/u8-strchr (Depends-on): Likewise.
38279         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38280         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38281         unistr/u16-uctomb.
38282         * modules/unistr/u16-strchr (Depends-on): Likewise.
38283         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38284
38285 2009-03-12  Bruno Haible  <bruno@clisp.org>
38286
38287         Work around select() bug on Interix 3.5.
38288         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38289         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38290         * m4/select.m4: New file.
38291         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38292         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38293         * modules/select (Files): Add m4/select.m4.
38294         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38295         * modules/nanosleep (Depends-on): Add select.
38296         * modules/poll (Depends-on): Likewise.
38297         * doc/posix-functions/select.texi: Mention the Interix bug.
38298         Reported by Markus Duft <mduft@gentoo.org>.
38299
38300         * lib/select.c: Renamed from lib/winsock-select.c.
38301         * modules/select (Files): Add lib/select.c, remove
38302         lib/winsock-select.c.
38303         (configure.ac): Update.
38304
38305 2009-03-12  Jim Meyering  <meyering@redhat.com>
38306
38307         avoid gcc warnings about unused macro definitions
38308         * lib/readtokens.c (STREQ): Remove unused definition.
38309         * lib/xmalloc.c (SIZE_MAX): Likewise.
38310         * lib/openat-die.c (N_): Likewise.
38311         * lib/mountlist.c (SIZE_MAX): Remove definition.
38312         Instead, include <stdint.h>.
38313         * lib/readutmp.c: Likewise.
38314         * modules/readutmp (Depends-on): Add stdint.
38315         * modules/mountlist (Depends-on): Add stdint.
38316         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38317
38318 2009-03-10  Bruno Haible  <bruno@clisp.org>
38319
38320         Tests for module 'mbmemcasecoll'.
38321         * modules/mbmemcasecoll-tests: New file.
38322         * tests/test-mbmemcasecoll1.sh: New file.
38323         * tests/test-mbmemcasecoll2.sh: New file.
38324         * tests/test-mbmemcasecoll3.sh: New file.
38325         * tests/test-mbmemcasecoll.c: New file.
38326
38327         New module 'mbmemcasecoll'.
38328         * lib/mbmemcasecoll.h: New file.
38329         * lib/mbmemcasecoll.c: New file.
38330         * modules/mbmemcasecoll: New file.
38331
38332         * tests/test-mbmemcasecmp.h: New file, extracted from
38333         tests/test-mbmemcasecmp.c.
38334         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38335         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38336         (main): Update.
38337         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38338
38339 2009-03-09  Bruno Haible  <bruno@clisp.org>
38340
38341         Tests for module 'mbmemcasecmp'.
38342         * modules/mbmemcasecmp-tests: New file.
38343         * tests/test-mbmemcasecmp1.sh: New file.
38344         * tests/test-mbmemcasecmp2.sh: New file.
38345         * tests/test-mbmemcasecmp3.sh: New file.
38346         * tests/test-mbmemcasecmp.c: New file.
38347
38348         New module 'mbmemcasecmp'.
38349         * lib/mbmemcasecmp.h: New file.
38350         * lib/mbmemcasecmp.c: New file.
38351         * modules/mbmemcasecmp: New file.
38352
38353 2009-03-09  Bruno Haible  <bruno@clisp.org>
38354
38355         Tests for module 'unicase/ulc-casecoll'.
38356         * modules/unicase/ulc-casecoll-tests: New file.
38357         * tests/unicase/test-ulc-casecoll1.sh: New file.
38358         * tests/unicase/test-ulc-casecoll2.sh: New file.
38359         * tests/unicase/test-ulc-casecoll.c: New file.
38360
38361         New module 'unicase/ulc-casecoll'.
38362         * lib/unicase.h (ulc_casecoll): New declaration.
38363         * lib/unicase/ulc-casecoll.c: New file.
38364         * modules/unicase/ulc-casecoll: New file.
38365
38366         New module 'unicase/ulc-casexfrm'.
38367         * lib/unicase.h (ulc_casexfrm): New declaration.
38368         * lib/unicase/ulc-casexfrm.c: New file.
38369         * modules/unicase/ulc-casexfrm: New file.
38370
38371 2009-03-09  Bruno Haible  <bruno@clisp.org>
38372
38373         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38374         invocations.
38375
38376         * m4/mbscasecmp.m4: Remove file.
38377         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38378         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38379
38380         * m4/mbscasestr.m4: Remove file.
38381         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38382         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38383
38384         * m4/mbschr.m4: Remove file.
38385         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38386         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38387
38388         * m4/mbscspn.m4: Remove file.
38389         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38390         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38391
38392         * m4/mbslen.m4: Remove file.
38393         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38394         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38395
38396         * m4/mbsncasecmp.m4: Remove file.
38397         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38398         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38399
38400         * m4/mbsnlen.m4: Remove file.
38401         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38402         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38403
38404         * m4/mbspbrk.m4: Remove file.
38405         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38406         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38407
38408         * m4/mbspcasecmp.m4: Remove file.
38409         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38410         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38411
38412         * m4/mbsrchr.m4: Remove file.
38413         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38414         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38415
38416         * m4/mbssep.m4: Remove file.
38417         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38418         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38419
38420         * m4/mbsspn.m4: Remove file.
38421         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38422         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38423
38424         * m4/mbsstr.m4: Remove file.
38425         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38426         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38427
38428         * m4/mbstok_r.m4: Remove file.
38429         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38430         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38431
38432         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38433
38434         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38435         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38436
38437         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38438
38439 2009-03-08  Bruno Haible  <bruno@clisp.org>
38440
38441         Tests for module 'unicase/ulc-casecmp'.
38442         * modules/unicase/ulc-casecmp-tests: New file.
38443         * tests/unicase/test-ulc-casecmp1.sh: New file.
38444         * tests/unicase/test-ulc-casecmp2.sh: New file.
38445         * tests/unicase/test-ulc-casecmp.c: New file.
38446
38447         New module 'unicase/ulc-casecmp'.
38448         * lib/unicase.h (ulc_casecmp): New declaration.
38449         * lib/unicase/ulc-casecmp.c: New file.
38450         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38451         'const SRC_UNIT *'.
38452         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38453         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38454         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38455         * modules/unicase/ulc-casecmp: New file.
38456
38457         Tests for module 'unicase/u32-is-cased'.
38458         * modules/unicase/u32-is-cased-tests: New file.
38459         * tests/unicase/test-u32-is-cased.c: New file.
38460
38461         Tests for module 'unicase/u16-is-cased'.
38462         * modules/unicase/u16-is-cased-tests: New file.
38463         * tests/unicase/test-u16-is-cased.c: New file.
38464
38465         Tests for module 'unicase/u8-is-cased'.
38466         * modules/unicase/u8-is-cased-tests: New file.
38467         * tests/unicase/test-u8-is-cased.c: New file.
38468         * tests/unicase/test-is-cased.h: New file.
38469
38470         New module 'unicase/u32-is-cased'.
38471         * lib/unicase/u32-is-cased.c: New file.
38472         * modules/unicase/u32-is-cased: New file.
38473
38474         New module 'unicase/u16-is-cased'.
38475         * lib/unicase/u16-is-cased.c: New file.
38476         * modules/unicase/u16-is-cased: New file.
38477
38478         New module 'unicase/u8-is-cased'.
38479         * lib/unicase/u8-is-cased.c: New file.
38480         * lib/unicase/u-is-cased.h: New file.
38481         * modules/unicase/u8-is-cased: New file.
38482
38483         Tests for module 'unicase/u32-is-casefolded'.
38484         * modules/unicase/u32-is-casefolded-tests: New file.
38485         * tests/unicase/test-u32-is-casefolded.c: New file.
38486
38487         Tests for module 'unicase/u16-is-casefolded'.
38488         * modules/unicase/u16-is-casefolded-tests: New file.
38489         * tests/unicase/test-u16-is-casefolded.c: New file.
38490
38491         Tests for module 'unicase/u8-is-casefolded'.
38492         * modules/unicase/u8-is-casefolded-tests: New file.
38493         * tests/unicase/test-u8-is-casefolded.c: New file.
38494         * tests/unicase/test-is-casefolded.h: New file.
38495
38496         New module 'unicase/u32-is-casefolded'.
38497         * lib/unicase/u32-is-casefolded.c: New file.
38498         * modules/unicase/u32-is-casefolded: New file.
38499
38500         New module 'unicase/u16-is-casefolded'.
38501         * lib/unicase/u16-is-casefolded.c: New file.
38502         * modules/unicase/u16-is-casefolded: New file.
38503
38504         New module 'unicase/u8-is-casefolded'.
38505         * lib/unicase/u8-is-casefolded.c: New file.
38506         * modules/unicase/u8-is-casefolded: New file.
38507
38508         Tests for module 'unicase/u32-is-titlecase'.
38509         * modules/unicase/u32-is-titlecase-tests: New file.
38510         * tests/unicase/test-u32-is-titlecase.c: New file.
38511
38512         Tests for module 'unicase/u16-is-titlecase'.
38513         * modules/unicase/u16-is-titlecase-tests: New file.
38514         * tests/unicase/test-u16-is-titlecase.c: New file.
38515
38516         Tests for module 'unicase/u8-is-titlecase'.
38517         * modules/unicase/u8-is-titlecase-tests: New file.
38518         * tests/unicase/test-u8-is-titlecase.c: New file.
38519         * tests/unicase/test-is-titlecase.h: New file.
38520
38521         New module 'unicase/u32-is-titlecase'.
38522         * lib/unicase/u32-is-titlecase.c: New file.
38523         * modules/unicase/u32-is-titlecase: New file.
38524
38525         New module 'unicase/u16-is-titlecase'.
38526         * lib/unicase/u16-is-titlecase.c: New file.
38527         * modules/unicase/u16-is-titlecase: New file.
38528
38529         New module 'unicase/u8-is-titlecase'.
38530         * lib/unicase/u8-is-titlecase.c: New file.
38531         * modules/unicase/u8-is-titlecase: New file.
38532
38533         Tests for module 'unicase/u32-is-lowercase'.
38534         * modules/unicase/u32-is-lowercase-tests: New file.
38535         * tests/unicase/test-u32-is-lowercase.c: New file.
38536
38537         Tests for module 'unicase/u16-is-lowercase'.
38538         * modules/unicase/u16-is-lowercase-tests: New file.
38539         * tests/unicase/test-u16-is-lowercase.c: New file.
38540
38541         Tests for module 'unicase/u8-is-lowercase'.
38542         * modules/unicase/u8-is-lowercase-tests: New file.
38543         * tests/unicase/test-u8-is-lowercase.c: New file.
38544         * tests/unicase/test-is-lowercase.h: New file.
38545
38546         New module 'unicase/u32-is-lowercase'.
38547         * lib/unicase/u32-is-lowercase.c: New file.
38548         * modules/unicase/u32-is-lowercase: New file.
38549
38550         New module 'unicase/u16-is-lowercase'.
38551         * lib/unicase/u16-is-lowercase.c: New file.
38552         * modules/unicase/u16-is-lowercase: New file.
38553
38554         New module 'unicase/u8-is-lowercase'.
38555         * lib/unicase/u8-is-lowercase.c: New file.
38556         * modules/unicase/u8-is-lowercase: New file.
38557
38558         Tests for module 'unicase/u32-is-uppercase'.
38559         * modules/unicase/u32-is-uppercase-tests: New file.
38560         * tests/unicase/test-u32-is-uppercase.c: New file.
38561
38562         Tests for module 'unicase/u16-is-uppercase'.
38563         * modules/unicase/u16-is-uppercase-tests: New file.
38564         * tests/unicase/test-u16-is-uppercase.c: New file.
38565
38566         Tests for module 'unicase/u8-is-uppercase'.
38567         * modules/unicase/u8-is-uppercase-tests: New file.
38568         * tests/unicase/test-u8-is-uppercase.c: New file.
38569         * tests/unicase/test-is-uppercase.h: New file.
38570
38571         New module 'unicase/u32-is-uppercase'.
38572         * lib/unicase/u32-is-uppercase.c: New file.
38573         * modules/unicase/u32-is-uppercase: New file.
38574
38575         New module 'unicase/u16-is-uppercase'.
38576         * lib/unicase/u16-is-uppercase.c: New file.
38577         * modules/unicase/u16-is-uppercase: New file.
38578
38579         New module 'unicase/u8-is-uppercase'.
38580         * lib/unicase/u8-is-uppercase.c: New file.
38581         * modules/unicase/u8-is-uppercase: New file.
38582
38583         New module 'unicase/u32-is-invariant'.
38584         * lib/unicase/u32-is-invariant.c: New file.
38585         * modules/unicase/u32-is-invariant: New file.
38586
38587         New module 'unicase/u16-is-invariant'.
38588         * lib/unicase/u16-is-invariant.c: New file.
38589         * modules/unicase/u16-is-invariant: New file.
38590
38591         New module 'unicase/u8-is-invariant'.
38592         * lib/unicase/u8-is-invariant.c: New file.
38593         * lib/unicase/invariant.h: New file.
38594         * lib/unicase/u-is-invariant.h: New file.
38595         * modules/unicase/u8-is-invariant: New file.
38596
38597         Tests for module 'unicase/u32-casecoll'.
38598         * modules/unicase/u32-casecoll-tests: New file.
38599         * tests/unicase/test-u32-casecoll.c: New file.
38600
38601         Tests for module 'unicase/u16-casecoll'.
38602         * modules/unicase/u16-casecoll-tests: New file.
38603         * tests/unicase/test-u16-casecoll.c: New file.
38604
38605         Tests for module 'unicase/u8-casecoll'.
38606         * modules/unicase/u8-casecoll-tests: New file.
38607         * tests/unicase/test-u8-casecoll.c: New file.
38608
38609         New module 'unicase/u32-casecoll'.
38610         * lib/unicase/u32-casecoll.c: New file.
38611         * modules/unicase/u32-casecoll: New file.
38612
38613         New module 'unicase/u16-casecoll'.
38614         * lib/unicase/u16-casecoll.c: New file.
38615         * modules/unicase/u16-casecoll: New file.
38616
38617         New module 'unicase/u8-casecoll'.
38618         * lib/unicase/u8-casecoll.c: New file.
38619         * lib/unicase/u-casecoll.h: New file.
38620         * modules/unicase/u8-casecoll: New file.
38621
38622         New module 'unicase/u32-casexfrm'.
38623         * lib/unicase/u32-casexfrm.c: New file.
38624         * modules/unicase/u32-casexfrm: New file.
38625
38626         New module 'unicase/u16-casexfrm'.
38627         * lib/unicase/u16-casexfrm.c: New file.
38628         * modules/unicase/u16-casexfrm: New file.
38629
38630         New module 'unicase/u8-casexfrm'.
38631         * lib/unicase/u8-casexfrm.c: New file.
38632         * lib/unicase/u-casexfrm.h: New file.
38633         * modules/unicase/u8-casexfrm: New file.
38634
38635         Tests for module 'unicase/u32-casecmp'.
38636         * modules/unicase/u32-casecmp-tests: New file.
38637         * tests/unicase/test-u32-casecmp.c: New file.
38638
38639         Tests for module 'unicase/u16-casecmp'.
38640         * modules/unicase/u16-casecmp-tests: New file.
38641         * tests/unicase/test-u16-casecmp.c: New file.
38642
38643         Tests for module 'unicase/u8-casecmp'.
38644         * modules/unicase/u8-casecmp-tests: New file.
38645         * tests/unicase/test-u8-casecmp.c: New file.
38646         * tests/unicase/test-casecmp.h: New file.
38647
38648         New module 'unicase/u32-casecmp'.
38649         * lib/unicase/u32-casecmp.c: New file.
38650         * modules/unicase/u32-casecmp: New file.
38651
38652         New module 'unicase/u16-casecmp'.
38653         * lib/unicase/u16-casecmp.c: New file.
38654         * modules/unicase/u16-casecmp: New file.
38655
38656         New module 'unicase/u8-casecmp'.
38657         * lib/unicase/u8-casecmp.c: New file.
38658         * lib/unicase/u-casecmp.h: New file.
38659         * modules/unicase/u8-casecmp: New file.
38660
38661         Tests for module 'unicase/u32-casefold'.
38662         * modules/unicase/u32-casefold-tests: New file.
38663         * tests/unicase/test-u32-casefold.c: New file.
38664
38665         Tests for module 'unicase/u16-casefold'.
38666         * modules/unicase/u16-casefold-tests: New file.
38667         * tests/unicase/test-u16-casefold.c: New file.
38668
38669         Tests for module 'unicase/u8-casefold'.
38670         * modules/unicase/u8-casefold-tests: New file.
38671         * tests/unicase/test-u8-casefold.c: New file.
38672
38673         New module 'unicase/u32-casefold'.
38674         * lib/unicase/u32-casefold.c: New file.
38675         * modules/unicase/u32-casefold: New file.
38676
38677         New module 'unicase/u16-casefold'.
38678         * lib/unicase/u16-casefold.c: New file.
38679         * modules/unicase/u16-casefold: New file.
38680
38681         New module 'unicase/u8-casefold'.
38682         * lib/unicase/u8-casefold.c: New file.
38683         * lib/unicase/u-casefold.h: New file.
38684         * modules/unicase/u8-casefold: New file.
38685
38686         New module 'unicase/tocasefold'.
38687         * lib/unicase/casefold.h: New file.
38688         * lib/unicase/tocasefold.c: New file.
38689         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38690         * modules/unicase/tocasefold: New file.
38691
38692         Tests for module 'unicase/u32-totitle'.
38693         * modules/unicase/u32-totitle-tests: New file.
38694         * tests/unicase/test-u32-totitle.c: New file.
38695
38696         Tests for module 'unicase/u16-totitle'.
38697         * modules/unicase/u16-totitle-tests: New file.
38698         * tests/unicase/test-u16-totitle.c: New file.
38699
38700         Tests for module 'unicase/u8-totitle'.
38701         * modules/unicase/u8-totitle-tests: New file.
38702         * tests/unicase/test-u8-totitle.c: New file.
38703
38704         New module 'unicase/u32-totitle'.
38705         * lib/unicase/u32-totitle.c: New file.
38706         * modules/unicase/u32-totitle: New file.
38707
38708         New module 'unicase/u16-totitle'.
38709         * lib/unicase/u16-totitle.c: New file.
38710         * modules/unicase/u16-totitle: New file.
38711
38712         New module 'unicase/u8-totitle'.
38713         * lib/unicase/u8-totitle.c: New file.
38714         * lib/unicase/u-totitle.h: New file.
38715         * modules/unicase/u8-totitle: New file.
38716
38717         Tests for module 'unicase/u32-tolower'.
38718         * modules/unicase/u32-tolower-tests: New file.
38719         * tests/unicase/test-u32-tolower.c: New file.
38720
38721         Tests for module 'unicase/u16-tolower'.
38722         * modules/unicase/u16-tolower-tests: New file.
38723         * tests/unicase/test-u16-tolower.c: New file.
38724
38725         Tests for module 'unicase/u8-tolower'.
38726         * modules/unicase/u8-tolower-tests: New file.
38727         * tests/unicase/test-u8-tolower.c: New file.
38728
38729         New module 'unicase/u32-tolower'.
38730         * lib/unicase/u32-tolower.c: New file.
38731         * modules/unicase/u32-tolower: New file.
38732
38733         New module 'unicase/u16-tolower'.
38734         * lib/unicase/u16-tolower.c: New file.
38735         * modules/unicase/u16-tolower: New file.
38736
38737         New module 'unicase/u8-tolower'.
38738         * lib/unicase/u8-tolower.c: New file.
38739         * modules/unicase/u8-tolower: New file.
38740
38741         Tests for module 'unicase/u32-toupper'.
38742         * modules/unicase/u32-toupper-tests: New file.
38743         * tests/unicase/test-u32-toupper.c: New file.
38744
38745         Tests for module 'unicase/u16-toupper'.
38746         * modules/unicase/u16-toupper-tests: New file.
38747         * tests/unicase/test-u16-toupper.c: New file.
38748
38749         Tests for module 'unicase/u8-toupper'.
38750         * modules/unicase/u8-toupper-tests: New file.
38751         * tests/unicase/test-u8-toupper.c: New file.
38752
38753         New module 'unicase/u32-toupper'.
38754         * lib/unicase/u32-toupper.c: New file.
38755         * modules/unicase/u32-toupper: New file.
38756
38757         New module 'unicase/u16-toupper'.
38758         * lib/unicase/u16-toupper.c: New file.
38759         * modules/unicase/u16-toupper: New file.
38760
38761         New module 'unicase/u8-toupper'.
38762         * lib/unicase/u8-toupper.c: New file.
38763         * modules/unicase/u8-toupper: New file.
38764
38765         New module 'unicase/u32-casemap'.
38766         * lib/unicase/u32-casemap.c: New file.
38767         * modules/unicase/u32-casemap: New file.
38768
38769         New module 'unicase/u16-casemap'.
38770         * lib/unicase/u16-casemap.c: New file.
38771         * modules/unicase/u16-casemap: New file.
38772
38773         New module 'unicase/u8-casemap'.
38774         * lib/unicase/unicasemap.h: New file.
38775         * lib/unicase/u8-casemap.c: New file.
38776         * lib/unicase/u-casemap.h: New file.
38777         * modules/unicase/u8-casemap: New file.
38778
38779         New module 'unicase/special-casing'.
38780         * lib/unicase/special-casing.h: New file.
38781         * lib/unicase/special-casing.c: New file.
38782         * lib/unicase/special-casing-table.gperf: New file, generated by
38783         gen-uni-tables.c.
38784         * modules/unicase/special-casing: New file.
38785
38786         Tests for module 'unicase/locale-language'.
38787         * modules/unicase/locale-language-tests: New file.
38788         * tests/unicase/test-locale-language.sh: New file.
38789         * tests/unicase/test-locale-language.c: New file.
38790
38791         New module 'unicase/locale-language'.
38792         * lib/unicase/locale-language.c: New file.
38793         * lib/unicase/locale-languages.gperf: New file.
38794         * modules/unicase/locale-language: New file.
38795
38796         Generate more tables for case conversion and case folding.
38797         * lib/gen-uni-tables.c (SCC_*): New enum items.
38798         (struct special_casing_rule): New type.
38799         (casing_rules, num_casing_rules, allocated_casing_rules): New
38800         variables.
38801         (add_casing_rule, fill_casing_rules): New functions.
38802         (struct casefold_rule): New type.
38803         (casefolding_rules, num_casefolding_rules,
38804         allocated_casefolding_rules): New variables.
38805         (fill_casefolding_rules): New function.
38806         (unicode_casefold): New variable.
38807         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38808         sort_casing_rules, output_casing_rules): New functions.
38809         (main): Accept to more arguments: SpecialCasing.txt and
38810         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38811         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38812         Output mapping for casefolding.
38813
38814         * lib/unicase.h: Include stdbool.h, uninorm.h.
38815         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38816         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38817         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38818         arguments.
38819         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38820         resultp arguments.
38821         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38822         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38823         resultp arguments.
38824         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38825         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38826         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38827         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38828         declarations.
38829         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38830
38831 2009-03-08  Bruno Haible  <bruno@clisp.org>
38832
38833         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38834         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38835         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38836         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38837
38838 2009-03-07  Bruno Haible  <bruno@clisp.org>
38839
38840         Adjust u*_normcmp, u*_normcoll API.
38841         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38842         u16_normcoll, u32_normcoll): Change failure conventions.
38843         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38844         errno and return -1.
38845         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38846
38847 2009-03-07  Bruno Haible  <bruno@clisp.org>
38848
38849         Tests for module 'uninorm/u32-normcoll'.
38850         * modules/uninorm/u32-normcoll-tests: New file.
38851         * tests/uninorm/test-u32-normcoll.c: New file.
38852
38853         Tests for module 'uninorm/u16-normcoll'.
38854         * modules/uninorm/u16-normcoll-tests: New file.
38855         * tests/uninorm/test-u16-normcoll.c: New file.
38856
38857         Tests for module 'uninorm/u8-normcoll'.
38858         * modules/uninorm/u8-normcoll-tests: New file.
38859         * tests/uninorm/test-u8-normcoll.c: New file.
38860
38861 2009-03-07  Bruno Haible  <bruno@clisp.org>
38862
38863         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38864         tests/uninorm/test-u32-normcmp.c.
38865         * tests/uninorm/test-u32-normcmp.c: Include it.
38866         (test_nonascii): New function, extracted from main. Add some more
38867         tests.
38868         (main): Invoke test_ascii and test_nonascii.
38869         * modules/uninorm/u32-normcmp-tests (Files): Add
38870         tests/uninorm/test-u32-normcmp.h.
38871         (Depends-on): Remove uninorm/u32-normcmp.
38872
38873         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
38874         tests/uninorm/test-u16-normcmp.c.
38875         * tests/uninorm/test-u16-normcmp.c: Include it.
38876         (test_nonascii): New function, extracted from main. Add some more
38877         tests.
38878         (main): Invoke test_ascii and test_nonascii.
38879         * modules/uninorm/u16-normcmp-tests (Files): Add
38880         tests/uninorm/test-u16-normcmp.h.
38881         (Depends-on): Remove uninorm/u16-normcmp.
38882
38883         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
38884         tests/uninorm/test-u8-normcmp.c.
38885         * tests/uninorm/test-u8-normcmp.c: Include it.
38886         (test_nonascii): New function, extracted from main. Add some more
38887         tests.
38888         (main): Invoke test_ascii and test_nonascii.
38889         * modules/uninorm/u8-normcmp-tests (Files): Add
38890         tests/uninorm/test-u8-normcmp.h.
38891         (Depends-on): Remove uninorm/u8-normcmp.
38892
38893 2009-03-07  Bruno Haible  <bruno@clisp.org>
38894
38895         New module 'uninorm/u32-normcoll'.
38896         * lib/uninorm/u32-normcoll.c: New file.
38897         * modules/uninorm/u32-normcoll: New file.
38898
38899         New module 'uninorm/u16-normcoll'.
38900         * lib/uninorm/u16-normcoll.c: New file.
38901         * modules/uninorm/u16-normcoll: New file.
38902
38903         New module 'uninorm/u8-normcoll'.
38904         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
38905         declarations.
38906         * lib/uninorm/u8-normcoll.c: New file.
38907         * lib/uninorm/u-normcoll.h: New file.
38908         * modules/uninorm/u8-normcoll: New file.
38909
38910         New module 'uninorm/u32-normxfrm'.
38911         * lib/uninorm/u32-normxfrm.c: New file.
38912         * modules/uninorm/u32-normxfrm: New file.
38913
38914         New module 'uninorm/u16-normxfrm'.
38915         * lib/uninorm/u16-normxfrm.c: New file.
38916         * modules/uninorm/u16-normxfrm: New file.
38917
38918         New module 'uninorm/u8-normxfrm'.
38919         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38920         declarations.
38921         * lib/uninorm/u8-normxfrm.c: New file.
38922         * lib/uninorm/u-normxfrm.h: New file.
38923         * modules/uninorm/u8-normxfrm: New file.
38924
38925 2009-03-07  Bruno Haible  <bruno@clisp.org>
38926
38927         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38928         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38929         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38930
38931 2009-03-07  Bruno Haible  <bruno@clisp.org>
38932
38933         New module 'memxfrm'.
38934         * lib/memxfrm.h: New file.
38935         * lib/memxfrm.c: New file.
38936         * modules/memxfrm: New file.
38937
38938 2009-03-07  Bruno Haible  <bruno@clisp.org>
38939
38940         New module 'memcmp2'.
38941         * lib/memcmp2.h: New file.
38942         * lib/memcmp2.c: New file.
38943         * modules/memcmp2: New file.
38944
38945 2009-03-07  Bruno Haible  <bruno@clisp.org>
38946
38947         Tests for module 'uninorm/decomposing-form'.
38948         * modules/uninorm/decomposing-form-tests: New file.
38949         * tests/uninorm/test-decomposing-form.c: New file.
38950
38951         New module 'uninorm/decomposing-form'.
38952         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38953         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38954         Add 'decomposing_variant' field.
38955         * lib/uninorm/decomposing-form.c: New file.
38956         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38957         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38958         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38959         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38960         * modules/uninorm/decomposing-form: New file.
38961         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38962         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38963
38964 2009-03-07  Bruno Haible  <bruno@clisp.org>
38965
38966         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38967         strings.
38968
38969 2009-03-06  Bruno Haible  <bruno@clisp.org>
38970
38971         Tests for module 'uninorm/u32-normcmp'.
38972         * tests/uninorm/test-u32-normcmp.c: New file.
38973         * modules/uninorm/u32-normcmp-tests: New file.
38974
38975         Tests for module 'uninorm/u16-normcmp'.
38976         * tests/uninorm/test-u16-normcmp.c: New file.
38977         * modules/uninorm/u16-normcmp-tests: New file.
38978
38979         Tests for module 'uninorm/u8-normcmp'.
38980         * tests/uninorm/test-u8-normcmp.c: New file.
38981         * modules/uninorm/u8-normcmp-tests: New file.
38982
38983         New module 'uninorm/u32-normcmp'.
38984         * lib/uninorm/u32-normcmp.c: New file.
38985         * modules/uninorm/u32-normcmp: New file.
38986
38987         New module 'uninorm/u16-normcmp'.
38988         * lib/uninorm/u16-normcmp.c: New file.
38989         * modules/uninorm/u16-normcmp: New file.
38990
38991         New module 'uninorm/u8-normcmp'.
38992         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38993         declarations.
38994         * lib/uninorm/u8-normcmp.c: New file.
38995         * lib/uninorm/u-normcmp.h: New file.
38996         * modules/uninorm/u8-normcmp: New file.
38997
38998 2009-03-06  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39001         Reported by Eric Blake.
39002
39003 2009-03-06  Eric Blake  <ebb9@byu.net>
39004             Bruno Haible  <bruno@clisp.org>
39005
39006         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39007         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39008         condition.
39009         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39010         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39011         condition.
39012         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39013
39014 2009-03-06  Eric Blake  <ebb9@byu.net>
39015
39016         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39017         to avoid compiler warnings.
39018         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39019
39020 2009-03-05  Bruno Haible  <bruno@clisp.org>
39021
39022         * tests/test-ftell.c (main): Disable test beyond end of file on
39023         FreeMiNT.
39024         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39025
39026 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39027
39028         * lib/filevercmp.c: Move hidden files up in ordering.
39029         * tests/test-filevercmp.c: Add tests for hidden files.
39030
39031 2009-03-04  Bruno Haible  <bruno@clisp.org>
39032
39033         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39034         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39035         AM_CFLAGS.
39036         Reported by Simon Josefsson.
39037
39038 2009-03-03  Bruno Haible  <bruno@clisp.org>
39039
39040         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39041         Reported by Simon Josefsson.
39042
39043         * doc/ld-version-script.texi: Update node reference.
39044
39045 2009-03-03  Bruno Haible  <bruno@clisp.org>
39046
39047         * modules/visibility (License): Change to 'unlimited'.
39048         Suggested by Simon Josefsson.
39049
39050 2009-03-03  Jim Meyering  <meyering@redhat.com>
39051
39052         unlinkdir: cannot_unlink_dir may modify process state
39053         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39054         it's neither thread-safe nor appropriate for use in a library.
39055
39056 2009-03-03  Eric Blake  <ebb9@byu.net>
39057
39058         test-closein: silence test under Darwin
39059         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39060         care if it dies from EPIPE or EBADF.
39061
39062 2009-03-03  Bruno Haible  <bruno@clisp.org>
39063
39064         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39065         earlier.
39066         * doc/visibility.texi: Fix @node and @section.
39067
39068 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39069
39070         * doc/gnulib.texi: Link to sections for ld version script and
39071         visibility.
39072         * doc/visibility.texi: Add @node and @section.
39073         * modules/ld-version-script: New module.
39074         * m4/ld-version-script.m4: New file.
39075         * doc/ld-version-script.texi: New file.
39076
39077 2009-03-02  David Lutterkort  <lutter@redhat.com>
39078
39079         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39081
39082 2009-03-02  Bruno Haible  <bruno@clisp.org>
39083
39084         * doc/visibility.texi: Mention libtool's -export-symbols option.
39085
39086 2009-03-02  Jim Meyering  <meyering@redhat.com>
39087
39088         announce-gen: new option: --no-print-checksums
39089         * build-aux/announce-gen (usage): Describe it.
39090         (print_checksums): Print a newline here, not in the [*] footnote.
39091         (main): Honor it.
39092
39093 2009-03-01  Bruno Haible  <bruno@clisp.org>
39094
39095         Use socklen_t in the native Windows replacements prototypes.
39096         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39097         instead of 'int'.
39098         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39099         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39100         * modules/getsockopt (Depends-on): Add socklen.
39101         * modules/setsockopt (Depends-on): Add socklen.
39102
39103 2009-03-01  Bruno Haible  <bruno@clisp.org>
39104
39105         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39106         least 4.2.
39107
39108 2009-03-01  Eric Blake  <ebb9@byu.net>
39109             Bruno Haible  <bruno@clisp.org>
39110
39111         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39112         error messages.
39113         * lib/wait-process.c (wait_subprocess): Omit error message about
39114         deadly signal sent to the child of termsigp != NULL.
39115
39116 2009-03-01  Eric Blake  <ebb9@byu.net>
39117
39118         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39119
39120 2009-03-01  Bruno Haible  <bruno@clisp.org>
39121
39122         Avoid a gcc warning.
39123         * tests/test-sched.c (b): Make global.
39124         Reported by Eric Blake.
39125
39126 2009-01-19  Martin Lambers  <marlam@marlam.de>
39127
39128         Provide POSIX semantics for socket timeout options on W32.
39129         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39130         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39131         * modules/setsockopt: Depend on sys_time module for struct timeval.
39132         * modules/getsockopt: Depend on sys_time module for struct timeval.
39133
39134 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39135
39136         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39137         __USE_GNU, for consistency with netdb.in.h.
39138         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39139
39140 2009-03-01  Bruno Haible  <bruno@clisp.org>
39141
39142         More support for FreeMiNT.
39143         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39144         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39145
39146 2009-03-01  Bruno Haible  <bruno@clisp.org>
39147
39148         More support for FreeMiNT.
39149         * lib/fpurge.c (fpurge): Correct last commit.
39150         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39151
39152 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39153
39154         Fix unportable awk script in vc-list-files.
39155         * build-aux/vc-list-files: In the replacement awk script, use
39156         substr with a second argument of 1, not zero.
39157         Report by Simon Josefsson.
39158
39159 2009-02-28  Bruno Haible  <bruno@clisp.org>
39160
39161         More support for FreeMiNT.
39162         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39163         to FreeMiNT today.
39164         * lib/fwriting.c (fwriting): Likewise.
39165         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39166
39167 2009-02-28  Bruno Haible  <bruno@clisp.org>
39168
39169         * tests/test-freadseek.c (main): Disable test beyond end of file on
39170         FreeMiNT.
39171         * tests/test-ftello.c (main): Likewise.
39172         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39173
39174 2009-02-28  Bruno Haible  <bruno@clisp.org>
39175
39176         Add tentative support for FreeMiNT.
39177         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39178         * lib/fpurge.c (fpurge): Likewise.
39179         * lib/freadable.c (freadable): Likewise.
39180         * lib/freading.c (freading): Likewise.
39181         * lib/freadptr.c (freadptr): Likewise.
39182         * lib/freadseek.c (freadptrinc): Likewise.
39183         * lib/fseeko.c (rpl_fseeko): Likewise.
39184         * lib/fseterr.c (fseterr): Likewise.
39185         * lib/fwritable.c (fwritable): Likewise.
39186         * lib/fwriting.c (fwriting): Likewise.
39187         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39188         Hourihane.
39189         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39190
39191 2009-02-28  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39194         SIGCHLD.
39195         Reported by Jim Meyering.
39196
39197 2009-02-28  Bruno Haible  <bruno@clisp.org>
39198
39199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39200         Mention the results of these tests on various platforms.
39201         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39202         order.
39203         * doc/posix-functions/printf.texi: Likewise.
39204         * doc/posix-functions/snprintf.texi: Likewise.
39205         * doc/posix-functions/sprintf.texi: Likewise.
39206         * doc/posix-functions/vfprintf.texi: Likewise.
39207         * doc/posix-functions/vprintf.texi: Likewise.
39208         * doc/posix-functions/vsnprintf.texi: Likewise.
39209         * doc/posix-functions/vsprintf.texi: Likewise.
39210         * doc/glibc-functions/obstack_printf.texi: Likewise.
39211         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39212
39213 2009-02-28  Bruno Haible  <bruno@clisp.org>
39214
39215         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39216         Reported by Loïc Minier <lool@dooz.org>.
39217
39218 2009-02-27  Bruno Haible  <bruno@clisp.org>
39219
39220         * gnulib-tool (func_import): Make the sed expression used to create the
39221         sed script for updating the .gitignore file POSIX compliant.
39222         Reported by Eric Blake.
39223
39224 2009-02-27  Bruno Haible  <bruno@clisp.org>
39225
39226         * gnulib-tool (sed): Don't alias as "sed --posix".
39227         Reported by Eric Blake.
39228
39229 2009-02-27  Bruno Haible  <bruno@clisp.org>
39230
39231         Avoid test link errors.
39232         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39233         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39234         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39235         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39237
39238 2009-02-27  Bruno Haible  <bruno@clisp.org>
39239
39240         Avoid spurious "(cached)" in configure output.
39241         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39242         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39243         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39244         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39245         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39246         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39247         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39248         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39249         Reported by Eric Blake.
39250
39251 2009-02-27  Eric Blake  <ebb9@byu.net>
39252
39253         printf: fix regression in previous patch
39254         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39255
39256 2009-02-27  Bruno Haible  <bruno@clisp.org>
39257
39258         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39259         value.
39260         * lib/stdint.in.h: Likewise.
39261         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39262
39263 2009-02-27  Eric Blake  <ebb9@byu.net>
39264
39265         doc: mention more functions added in cygwin 1.7.0
39266         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39267         addition.
39268         * doc/posix-functions/open_wmemstream.texi: Likewise.
39269         * doc/posix-functions/wcsnlen.texi: Likewise.
39270         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39271         * doc/posix-functions/wcstod.texi: Likewise.
39272         * doc/posix-functions/wcstof.texi: Likewise.
39273         * doc/posix-functions/wcstoimax.texi: Likewise.
39274         * doc/posix-functions/wcstok.texi: Likewise.
39275         * doc/posix-functions/wcstoumax.texi: Likewise.
39276
39277         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39279         * doc/posix-functions/fprintf.texi: Update.
39280         * doc/posix-functions/printf.texi: Update.
39281         * doc/posix-functions/snprintf.texi: Update.
39282         * doc/posix-functions/sprintf.texi: Update.
39283         * doc/posix-functions/vfprintf.texi: Update.
39284         * doc/posix-functions/vprintf.texi: Update.
39285         * doc/posix-functions/vsnprintf.texi: Update.
39286         * doc/posix-functions/vsprintf.texi: Update.
39287         * doc/glibc-functions/obstack_printf.texi: Update.
39288         * doc/glibc-functions/obstack_vprintf.texi: Update.
39289
39290 2009-02-26  Eric Blake  <ebb9@byu.net>
39291
39292         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39293         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39294         compilation bug by using runtime conversion.
39295         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39296         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39297         * modules/ceill-tests (Files): Use nan.h.
39298         * modules/floorl-tests (Files): Likewise.
39299         * modules/frexpl-tests (Files): Likewise.
39300         * modules/isnanl-tests (Files): Likewise.
39301         * modules/ldexpl-tests (Files): Likewise.
39302         * modules/roundl-tests (Files): Likewise.
39303         * modules/truncl-tests (Files): Likewise.
39304         * tests/test-ceill.c (main): Use a working NaN.
39305         * tests/test-floorl.c (main): Likewise.
39306         * tests/test-frexpl.c (main): Likewise.
39307         * tests/test-isnan.c (test_long_double): Likewise.
39308         * tests/test-isnanl.h (main): Likewise.
39309         * tests/test-ldexpl.h (main): Likewise.
39310         * tests/test-roundl.h (main): Likewise.
39311         * tests/test-truncl.h (main): Likewise.
39312         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39313
39314 2009-02-26  Eric Blake  <ebb9@byu.net>
39315             Bruno Haible  <bruno@clisp.org>
39316
39317         Work around a *printf bug with %ls on Solaris.
39318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39319         precision is specified, sprintf stops converting the wide string
39320         argument when the number of bytes that have been produced by this
39321         conversion equals or exceeds the precision.
39322         * doc/posix-functions/fprintf.texi: Update.
39323         * doc/posix-functions/printf.texi: Update.
39324         * doc/posix-functions/snprintf.texi: Update.
39325         * doc/posix-functions/sprintf.texi: Update.
39326         * doc/posix-functions/vfprintf.texi: Update.
39327         * doc/posix-functions/vprintf.texi: Update.
39328         * doc/posix-functions/vsnprintf.texi: Update.
39329         * doc/posix-functions/vsprintf.texi: Update.
39330         * doc/glibc-functions/obstack_printf.texi: Update.
39331         * doc/glibc-functions/obstack_vprintf.texi: Update.
39332
39333 2009-02-26  Eric Blake  <ebb9@byu.net>
39334
39335         stdlib: favor compiler check of random.h
39336         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39337         to avoid an ObjC random.h installed by Swarm.
39338
39339 2009-02-26  Bruno Haible  <bruno@clisp.org>
39340
39341         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39342         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39343         Reported by Gary V. Vaughan <gary@gnu.org>.
39344
39345 2009-02-26  Bruno Haible  <bruno@clisp.org>
39346
39347         Fix *printf behaviour regarding the %ls directive.
39348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39349         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39350         NEED_PRINTF_DIRECTIVE_LS.
39351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39352         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39354         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39355         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39356         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39357         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39362         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39365         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39366         * doc/posix-functions/fprintf.texi: Update.
39367         * doc/posix-functions/printf.texi: Update.
39368         * doc/posix-functions/snprintf.texi: Update.
39369         * doc/posix-functions/sprintf.texi: Update.
39370         * doc/posix-functions/vfprintf.texi: Update.
39371         * doc/posix-functions/vprintf.texi: Update.
39372         * doc/posix-functions/vsnprintf.texi: Update.
39373         * doc/posix-functions/vsprintf.texi: Update.
39374         * doc/glibc-functions/obstack_printf.texi: Update.
39375         * doc/glibc-functions/obstack_vprintf.texi: Update.
39376         Reported by Eric Blake.
39377
39378 2009-02-25  Bruno Haible  <bruno@clisp.org>
39379
39380         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39381         with known value.
39382         Reported by Gary V. Vaughan <gary@gnu.org>.
39383
39384 2009-02-25  Bruno Haible  <bruno@clisp.org>
39385
39386         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39387         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39388         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39389         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39390         Reported by Gary V. Vaughan <gary@gnu.org>.
39391
39392 2009-02-25  Bruno Haible  <bruno@clisp.org>
39393
39394         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39395         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39396         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39397         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39398         Reported by Gary V. Vaughan <gary@gnu.org>.
39399
39400 2009-02-25  Eric Blake  <ebb9@byu.net>
39401
39402         tests: skip fseek/ftell tests if ungetc is broken
39403         * m4/ungetc.m4: New file.
39404         * modules/fseek-tests: Split test, so ungetc dependency is
39405         separate from rest of test.
39406         * modules/fseeko-tests: Likewise.
39407         * modules/ftell-tests: Likewise.
39408         * modules/ftello-tests: Likewise.
39409         * tests/test-fseek.c (main): Isolate ungetc dependency.
39410         * tests/test-fseeko.c (main): Likewise.
39411         * tests/test-ftell.c (main): Likewise.
39412         * tests/test-ftello.c (main): Likewise.
39413         * tests/test-fseek2.sh: New file.
39414         * tests/test-fseeko2.sh: Likewise.
39415         * tests/test-ftell2.sh: Likewise.
39416         * tests/test-ftello2.sh: Likewise.
39417
39418 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39419
39420         test-getaddrinfo: fix usage of skip return code 77
39421         * tests/test-gettaddrinfo.c: Return skip code 77 only
39422         for first occurance of skip (4x77 is not 77)
39423
39424 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39425
39426         strtod: avoid C99 decl-after-statement
39427         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39428
39429 2009-02-24  Eric Blake  <ebb9@byu.net>
39430
39431         strtod: detect HP-UX 11.31 bug
39432         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39433         Reported by Gary V. Vaughan.
39434
39435 2009-02-23  Bruno Haible  <bruno@clisp.org>
39436
39437         Fix invalid read past end of memory block.
39438         * lib/vasnprintf.c (DCHAR_SET): Define.
39439         (local_wcslen): Define only when needed.
39440         (local_strnlen, local_wcsnlen): New functions.
39441         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39442         directives that involve a conversion ourselves.
39443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39444         wcsnlen, mbrtowc, wcrtomb.
39445         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39446         * tests/test-vasprintf-posix.c (test_function): Likewise.
39447         * tests/test-snprintf-posix.h (test_function): Likewise.
39448         * tests/test-sprintf-posix.h (test_function): Likewise.
39449         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39450
39451 2009-02-22  Bruno Haible  <bruno@clisp.org>
39452
39453         Implement new clarified decomposition of Hangul syllables.
39454         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39455         of type LTV, return only a pairwise decomposition.
39456         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39457         Likewise.
39458         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39459         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39460         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39461
39462 2009-02-22  Bruno Haible  <bruno@clisp.org>
39463
39464         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39465         zero-length results and shrink excess allocated memory.
39466         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39467         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39468         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39469         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39470         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39471         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39472         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39473         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39474         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39475         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39476         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39477         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39478
39479 2009-02-21  Bruno Haible  <bruno@clisp.org>
39480
39481         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39482         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39483         spaces after a period. Put a space between a macro name and its
39484         argument list. Trivial rewordings.
39485         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39486         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39487         (main): Return 0 explicitly.
39488
39489 2009-02-21  Bruno Haible  <bruno@clisp.org>
39490
39491         Tests for module 'uninorm/filter'.
39492         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39493         * modules/uninorm/filter-tests: New file.
39494
39495         New module 'uninorm/filter'.
39496         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39497         uninorm_filter_flush, uninorm_filter_free): New declarations.
39498         * lib/uninorm/uninorm-filter.c: New file.
39499         * modules/uninorm/filter: New file.
39500
39501 2009-02-21  Bruno Haible  <bruno@clisp.org>
39502
39503         Tests for module 'uninorm/nfkc'.
39504         * tests/uninorm/test-nfkc.c: New file.
39505         * tests/uninorm/test-u8-nfkc.c: New file.
39506         * tests/uninorm/test-u16-nfkc.c: New file.
39507         * tests/uninorm/test-u32-nfkc.c: New file.
39508         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39509         * tests/uninorm/test-u32-nfkc-big.c: New file.
39510         * modules/uninorm/nfkc-tests: New file.
39511
39512         New module 'uninorm/nfkc'.
39513         * lib/uninorm/nfkc.c: New file.
39514         * modules/uninorm/nfkc: New file.
39515
39516         Tests for module 'uninorm/nfkd'.
39517         * tests/uninorm/test-nfkd.c: New file.
39518         * tests/uninorm/test-u8-nfkd.c: New file.
39519         * tests/uninorm/test-u16-nfkd.c: New file.
39520         * tests/uninorm/test-u32-nfkd.c: New file.
39521         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39522         * tests/uninorm/test-u32-nfkd-big.c: New file.
39523         * modules/uninorm/nfkd-tests: New file.
39524
39525         New module 'uninorm/nfkd'.
39526         * lib/uninorm/nfkd.c: New file.
39527         * modules/uninorm/nfkd: New file.
39528
39529         Tests for module 'uninorm/nfc'.
39530         * tests/uninorm/test-nfc.c: New file.
39531         * tests/uninorm/test-u8-nfc.c: New file.
39532         * tests/uninorm/test-u16-nfc.c: New file.
39533         * tests/uninorm/test-u32-nfc.c: New file.
39534         * tests/uninorm/test-u32-nfc-big.sh: New file.
39535         * tests/uninorm/test-u32-nfc-big.c: New file.
39536         * modules/uninorm/nfc-tests: New file.
39537
39538         New module 'uninorm/nfc'.
39539         * lib/uninorm/nfc.c: New file.
39540         * modules/uninorm/nfc: New file.
39541
39542         Tests for module 'uninorm/nfd'.
39543         * tests/uninorm/test-nfd.c: New file.
39544         * tests/uninorm/test-u8-nfd.c: New file.
39545         * tests/uninorm/test-u16-nfd.c: New file.
39546         * tests/uninorm/test-u32-nfd.c: New file.
39547         * tests/uninorm/test-u32-nfd-big.sh: New file.
39548         * tests/uninorm/test-u32-nfd-big.c: New file.
39549         * tests/uninorm/test-u32-normalize-big.h: New file.
39550         * tests/uninorm/test-u32-normalize-big.c: New file.
39551         * tests/uninorm/NormalizationTest.txt: New file, created from
39552         Unicode 5.1.0 NormalizationTest.txt.
39553         * modules/uninorm/nfd-tests: New file.
39554
39555         New module 'uninorm/nfd'.
39556         * lib/uninorm/nfd.c: New file.
39557         * modules/uninorm/nfd: New file.
39558
39559         New module 'uninorm/u32-normalize'.
39560         * lib/uninorm/u32-normalize.c: New file.
39561         * modules/uninorm/u32-normalize: New file.
39562
39563         New module 'uninorm/u16-normalize'.
39564         * lib/uninorm/u16-normalize.c: New file.
39565         * modules/uninorm/u16-normalize: New file.
39566
39567         New module 'uninorm/u8-normalize'.
39568         * lib/uninorm/u8-normalize.c: New file.
39569         * lib/uninorm/normalize-internal.h: New file.
39570         * lib/uninorm/u-normalize-internal.h: New file.
39571         * modules/uninorm/u8-normalize: New file.
39572
39573         New module 'uninorm/decompose-internal'.
39574         * lib/uninorm/decompose-internal.c: New file.
39575         * modules/uninorm/decompose-internal: New file.
39576
39577         Tests for module 'uninorm/composition'.
39578         * tests/uninorm/test-composition.c: New file.
39579         * modules/uninorm/composition-tests: New file.
39580
39581         New module 'uninorm/composition'.
39582         * lib/uninorm/composition.c: New file.
39583         * lib/uninorm/composition-table.gperf: New file, generated by
39584         gen-uni-tables.
39585         * modules/uninorm/composition: New file.
39586
39587         Tests for module 'uninorm/compat-decomposition'.
39588         * tests/uninorm/test-compat-decomposition.c: New file.
39589         * modules/uninorm/compat-decomposition-tests: New file.
39590
39591         New module 'uninorm/compat-decomposition'.
39592         * lib/uninorm/decompose-internal.h: New file.
39593         * lib/uninorm/compat-decomposition.c: New file.
39594         * modules/uninorm/compat-decomposition: New file.
39595
39596         Tests for module 'uninorm/canonical-decomposition'.
39597         * tests/uninorm/test-canonical-decomposition.c: New file.
39598         * modules/uninorm/canonical-decomposition-tests: New file.
39599
39600         New module 'uninorm/canonical-decomposition'.
39601         * lib/uninorm/canonical-decomposition.c: New file.
39602         * modules/uninorm/canonical-decomposition: New file.
39603
39604         Tests for module 'uninorm/decomposition'.
39605         * tests/uninorm/test-decomposition.c: New file.
39606         * modules/uninorm/decomposition-tests: New file.
39607
39608         New module 'uninorm/decomposition'.
39609         * lib/uninorm/decomposition.c: New file.
39610         * modules/uninorm/decomposition: New file.
39611
39612         New module 'uninorm/decomposition-table'.
39613         * lib/uninorm/decomposition-table.h: New file.
39614         * lib/uninorm/decomposition-table.c: New file.
39615         * lib/uninorm/decomposition-table1.h: New file, generated by
39616         gen-uni-tables.
39617         * lib/uninorm/decomposition-table2.h: New file, generated by
39618         gen-uni-tables.
39619         * modules/uninorm/decomposition-table: New file.
39620
39621         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39622         (UC_DECOMP_*): New enumeration items.
39623         (get_decomposition): New function.
39624         (struct decomp_table): New type.
39625         (output_decomposition, output_decomposition_tables): New functions.
39626         (unicode_composition_exclusions): New variable.
39627         (fill_composition_exclusions, debug_output_composition_tables): New
39628         functions.
39629         (main): Accept one more argument. Invoke fill_composition_exclusions.
39630         Output decomposition and composition tables.
39631
39632         New module 'uninorm/base'.
39633         * lib/uninorm.h: New file.
39634         * lib/unictype.h: Update comment.
39635         * modules/uninorm/base: New file.
39636
39637 2009-02-21  David Lutterkort  <lutter@redhat.com>
39638
39639         Tests for module 'safe-alloc'.
39640         * tests/test-safe-alloc.c: New file.
39641         * modules/safe-alloc-tests: New file.
39642
39643         New module 'safe-alloc'.
39644         * lib/safe-alloc.h: New file.
39645         * lib/safe-alloc.c: New file.
39646         * m4/safe-alloc.m4: New file.
39647         * modules/safe-alloc: New file.
39648         * doc/safe-alloc.texi: New file.
39649         * doc/gnulib.texi: Include it.
39650         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39651         safe-alloc.
39652
39653 2009-02-18  Bruno Haible  <bruno@clisp.org>
39654
39655         Fix link error on non-glibc systems.
39656         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39657         variable.
39658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39659
39660 2009-02-18  Jim Meyering  <meyering@redhat.com>
39661
39662         fts: avoid used-uninitialized error due to recent change
39663         * lib/fts.c (fts_read): Guard uses of the new member,
39664         parent->fts_n_dirs_remaining, since it's not relevant for
39665         the parent of a directory specified on the command-line.
39666
39667 2009-02-17  James Youngman  <jay@gnu.org>
39668             Bruno Haible  <bruno@clisp.org>
39669
39670         * m4/include_next.m4: Reformulate comment.
39671
39672 2009-02-16  Jim Meyering  <meyering@redhat.com>
39673
39674         fts: add #if guards so that the fts_lgpl module still builds
39675         * lib/fts.c: Guard just-added hash-table-using parts with
39676         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39677         Reported by Simon Josefsson.
39678
39679 2009-02-15  Bruno Haible  <bruno@clisp.org>
39680
39681         * modules/array-mergesort-tests: New file.
39682         * tests/test-array-mergesort.c: New file.
39683
39684         New module 'array-mergesort'.
39685         * modules/array-mergesort: New file.
39686         * lib/array-mergesort.h: New file.
39687
39688 2009-02-15  Bruno Haible  <bruno@clisp.org>
39689
39690         Fix 2009-02-07 commit.
39691         * lib/gen-uni-tables.c (output_predicate, output_category,
39692         output_combclass, output_bidi_category, output_decimal_digit,
39693         output_digit, output_numeric, output_mirror, output_scripts,
39694         output_ident_category, output_simple_mapping): Fix format directives.
39695         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39696
39697 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39698
39699         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39700         fixes are available from IBM.
39701
39702 2009-02-13  Jim Meyering  <meyering@redhat.com>
39703
39704         fts: arrange not to stat non-directories in more cases
39705         This makes GNU find (when it doesn't need to stat each file)
39706         *much* more efficient at traversing reiserfs file systems.
39707         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39708         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39709         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39710         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39711         (leaf_optimization_applies): New function.
39712         (LCO_hash, LCO_compare): New helper functions.
39713         (link_count_optimize_ok): New function.
39714         (fts_stat): Initialize new member (if dir).
39715         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39716         we've just stat'ed a directory.  Skip the stat call when possible.
39717         ---
39718         Note this AFS-related exchange:
39719         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39720         and note find's pioctl call in find/fstype.c.
39721         But that is necessary only if you want to enable the
39722         optimization for AFS, and for now, I don't.
39723
39724         fts: move a function definition "up" (no semantic change)
39725         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39726         "up" to precede upcoming use of a related function.
39727
39728 2009-02-11  Jim Meyering  <meyering@redhat.com>
39729
39730         fts: correct internal computation of nlinks (optimization-related)
39731         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39732         whether the current entry is a directory, so don't test it.
39733
39734 2009-02-10  Bruno Haible  <bruno@clisp.org>
39735
39736         Tests for module 'uniwbrk/ulc-wordbreaks'.
39737         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39738         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39739         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39740
39741         Tests for module 'uniwbrk/u32-wordbreaks'.
39742         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39743         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39744
39745         Tests for module 'uniwbrk/u16-wordbreaks'.
39746         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39747         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39748
39749         Tests for module 'uniwbrk/u8-wordbreaks'.
39750         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39751         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39752
39753 2009-02-10  Bruno Haible  <bruno@clisp.org>
39754
39755         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39756         property.
39757         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39758         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39759         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39760
39761 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39762
39763         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39764         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39765
39766 2009-02-10  Bruno Haible  <bruno@clisp.org>
39767
39768         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39769         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39770         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39771         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39772         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39773         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39774
39775 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39776
39777         * lib/sockets.h (gl_fd_to_handle): New function.
39778
39779         * tests/test-sockets.c: Call gl_fd_to_handle.
39780
39781 2009-02-09  Bruno Haible  <bruno@clisp.org>
39782
39783         * doc/havelib.texi: Document the conventions on bi-arch systems.
39784
39785 2009-02-08  Bruno Haible  <bruno@clisp.org>
39786
39787         Document the AC_LIB_LINKFLAGS macro.
39788         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39789         * doc/gnulib.texi: Include it.
39790
39791 2009-02-08  Bruno Haible  <bruno@clisp.org>
39792
39793         Fix wrong order of sections, compared to TOC.
39794         * doc/gnulib.texi: Include relocatable-maint.texi after the
39795         "Regular expressions" node, not before.
39796
39797 2009-02-08  Bruno Haible  <bruno@clisp.org>
39798
39799         Tests for module 'unicase/totitle'.
39800         * modules/unicase/totitle-tests: New file.
39801
39802         Tests for module 'unicase/tolower'.
39803         * modules/unicase/tolower-tests: New file.
39804
39805         Tests for module 'unicase/toupper'.
39806         * modules/unicase/toupper-tests: New file.
39807         * tests/unicase/test-mapping-part1.h: New file.
39808         * tests/unicase/test-mapping-part2.h: New file.
39809
39810         New module 'unicase/totitle'.
39811         * modules/unicase/totitle: New file.
39812         * lib/unicase/totitle.c: New file.
39813
39814         New module 'unicase/tolower'.
39815         * modules/unicase/tolower: New file.
39816         * lib/unicase/tolower.c: New file.
39817
39818         New module 'unicase/toupper'.
39819         * modules/unicase/toupper: New file.
39820         * lib/unicase/toupper.c: New file.
39821         * lib/unicase/simple-mapping.h: New file.
39822
39823         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39824         (mapping_table): New structure.
39825         (output_simple_mapping): New function.
39826         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39827         * modules/gen-uni-tables (Description): Update.
39828         * lib/unicase/toupper.h: New file, automatically generated by
39829         gen-uni-tables.
39830         * lib/unicase/tolower.h: New file, automatically generated by
39831         gen-uni-tables.
39832         * lib/unicase/totitle.h: New file, automatically generated by
39833         gen-uni-tables.
39834         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39835         gen-uni-tables.
39836         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39837         gen-uni-tables.
39838         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39839         gen-uni-tables.
39840
39841         New module 'unicase/base'.
39842         * modules/unicase/base: New file.
39843         * lib/unicase.h: New file.
39844
39845 2009-02-08  Bruno Haible  <bruno@clisp.org>
39846
39847         New module 'uniwbrk/ulc-wordbreaks'.
39848         * modules/uniwbrk/ulc-wordbreaks: New file.
39849         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39850
39851         New module 'uniwbrk/u32-wordbreaks'.
39852         * modules/uniwbrk/u32-wordbreaks: New file.
39853         * lib/uniwbrk/u32-wordbreaks.c: New file.
39854
39855         New module 'uniwbrk/u16-wordbreaks'.
39856         * modules/uniwbrk/u16-wordbreaks: New file.
39857         * lib/uniwbrk/u16-wordbreaks.c: New file.
39858
39859         New module 'uniwbrk/u8-wordbreaks'.
39860         * modules/uniwbrk/u8-wordbreaks: New file.
39861         * lib/uniwbrk/u8-wordbreaks.c: New file.
39862         * lib/uniwbrk/u-wordbreaks.h: New file.
39863
39864         New module 'uniwbrk/table'.
39865         * modules/uniwbrk/table: New file.
39866         * lib/uniwbrk/wbrktable.h: New file.
39867         * lib/uniwbrk/wbrktable.c: New file.
39868
39869         New module 'uniwbrk/wordbreak-property'.
39870         * modules/uniwbrk/wordbreak-property: New file.
39871         * lib/uniwbrk/wordbreak-property.c: New file.
39872
39873         * lib/gen-uni-tables.c (WBP_*): New enum items.
39874         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
39875         (unicode_org_wbp): New variable.
39876         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
39877         New functions.
39878         (wbp_table): New structure.
39879         (output_wbp, output_wbrk_tables): New functions.
39880         (main): Accept additional argument. Invoke fill_org_wbp,
39881         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
39882         output_wbrk_tables.
39883         * modules/gen-uni-tables (Description): Update.
39884         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
39885         gen-uni-tables.
39886
39887         New module 'uniwbrk/base'.
39888         * modules/uniwbrk/base: New file.
39889         * lib/uniwbrk.h: New file.
39890
39891 2009-02-08  Bruno Haible  <bruno@clisp.org>
39892
39893         Update to Unicode 5.1.0.
39894         * lib/gen-uni-tables.c (is_property_alphabetic): Include
39895         U+2185..U+2188.
39896         (is_property_default_ignorable_code_point): Don't include characters
39897         of category Cc or Cs and not-a-characters.
39898         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
39899         U+0D79, U+109E, U+109F, U+A60C.
39900         * lib/unictype/bidi_of.h: Regenerated.
39901         * lib/unictype/blocks.h: Regenerated.
39902         * lib/unictype/categ_C.h: Regenerated.
39903         * lib/unictype/categ_Cf.h: Regenerated.
39904         * lib/unictype/categ_Cn.h: Regenerated.
39905         * lib/unictype/categ_L.h: Regenerated.
39906         * lib/unictype/categ_Ll.h: Regenerated.
39907         * lib/unictype/categ_Lm.h: Regenerated.
39908         * lib/unictype/categ_Lo.h: Regenerated.
39909         * lib/unictype/categ_Lu.h: Regenerated.
39910         * lib/unictype/categ_M.h: Regenerated.
39911         * lib/unictype/categ_Mc.h: Regenerated.
39912         * lib/unictype/categ_Me.h: Regenerated.
39913         * lib/unictype/categ_Mn.h: Regenerated.
39914         * lib/unictype/categ_N.h: Regenerated.
39915         * lib/unictype/categ_Nd.h: Regenerated.
39916         * lib/unictype/categ_Nl.h: Regenerated.
39917         * lib/unictype/categ_No.h: Regenerated.
39918         * lib/unictype/categ_P.h: Regenerated.
39919         * lib/unictype/categ_Pd.h: Regenerated.
39920         * lib/unictype/categ_Pe.h: Regenerated.
39921         * lib/unictype/categ_Pf.h: Regenerated.
39922         * lib/unictype/categ_Pi.h: Regenerated.
39923         * lib/unictype/categ_Po.h: Regenerated.
39924         * lib/unictype/categ_Ps.h: Regenerated.
39925         * lib/unictype/categ_S.h: Regenerated.
39926         * lib/unictype/categ_Sk.h: Regenerated.
39927         * lib/unictype/categ_Sm.h: Regenerated.
39928         * lib/unictype/categ_So.h: Regenerated.
39929         * lib/unictype/categ_of.h: Regenerated.
39930         * lib/unictype/combining.h: Regenerated.
39931         * lib/unictype/ctype_alnum.h: Regenerated.
39932         * lib/unictype/ctype_alpha.h: Regenerated.
39933         * lib/unictype/ctype_graph.h: Regenerated.
39934         * lib/unictype/ctype_lower.h: Regenerated.
39935         * lib/unictype/ctype_print.h: Regenerated.
39936         * lib/unictype/ctype_punct.h: Regenerated.
39937         * lib/unictype/ctype_upper.h: Regenerated.
39938         * lib/unictype/decdigit.h: Regenerated.
39939         * lib/unictype/digit.h: Regenerated.
39940         * lib/unictype/mirror.h: Regenerated.
39941         * lib/unictype/numeric.h: Regenerated.
39942         * lib/unictype/pr_alphabetic.h: Regenerated.
39943         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39944         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39945         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39946         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39947         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39948         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39949         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39950         * lib/unictype/pr_combining.h: Regenerated.
39951         * lib/unictype/pr_dash.h: Regenerated.
39952         * lib/unictype/pr_decimal_digit.h: Regenerated.
39953         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39954         * lib/unictype/pr_deprecated.h: Regenerated.
39955         * lib/unictype/pr_diacritic.h: Regenerated.
39956         * lib/unictype/pr_extender.h: Regenerated.
39957         * lib/unictype/pr_format_control.h: Regenerated.
39958         * lib/unictype/pr_grapheme_base.h: Regenerated.
39959         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39960         * lib/unictype/pr_grapheme_link.h: Regenerated.
39961         * lib/unictype/pr_id_continue.h: Regenerated.
39962         * lib/unictype/pr_id_start.h: Regenerated.
39963         * lib/unictype/pr_ideographic.h: Regenerated.
39964         * lib/unictype/pr_ignorable_control.h: Regenerated.
39965         * lib/unictype/pr_lowercase.h: Regenerated.
39966         * lib/unictype/pr_math.h: Regenerated.
39967         * lib/unictype/pr_numeric.h: Regenerated.
39968         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39969         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39970         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39971         * lib/unictype/pr_other_id_continue.h: Regenerated.
39972         * lib/unictype/pr_other_lowercase.h: Regenerated.
39973         * lib/unictype/pr_other_math.h: Regenerated.
39974         * lib/unictype/pr_punctuation.h: Regenerated.
39975         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39976         * lib/unictype/pr_soft_dotted.h: Regenerated.
39977         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39978         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39979         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39980         * lib/unictype/pr_uppercase.h: Regenerated.
39981         * lib/unictype/pr_xid_continue.h: Regenerated.
39982         * lib/unictype/pr_xid_start.h: Regenerated.
39983         * lib/unictype/pr_zero_width.h: Regenerated.
39984         * lib/unictype/scripts.h: Regenerated.
39985         * lib/unictype/scripts_byname.gperf: Regenerated.
39986         * lib/unictype/sy_java_ident.h: Regenerated.
39987         * lib/unilbrk/lbrkprop1.h: Regenerated.
39988         * lib/unilbrk/lbrkprop2.h: Regenerated.
39989         * tests/unictype/test-categ_C.c: Regenerated.
39990         * tests/unictype/test-categ_Cf.c: Regenerated.
39991         * tests/unictype/test-categ_Cn.c: Regenerated.
39992         * tests/unictype/test-categ_L.c: Regenerated.
39993         * tests/unictype/test-categ_Ll.c: Regenerated.
39994         * tests/unictype/test-categ_Lm.c: Regenerated.
39995         * tests/unictype/test-categ_Lo.c: Regenerated.
39996         * tests/unictype/test-categ_Lu.c: Regenerated.
39997         * tests/unictype/test-categ_M.c: Regenerated.
39998         * tests/unictype/test-categ_Mc.c: Regenerated.
39999         * tests/unictype/test-categ_Me.c: Regenerated.
40000         * tests/unictype/test-categ_Mn.c: Regenerated.
40001         * tests/unictype/test-categ_N.c: Regenerated.
40002         * tests/unictype/test-categ_Nd.c: Regenerated.
40003         * tests/unictype/test-categ_Nl.c: Regenerated.
40004         * tests/unictype/test-categ_No.c: Regenerated.
40005         * tests/unictype/test-categ_P.c: Regenerated.
40006         * tests/unictype/test-categ_Pd.c: Regenerated.
40007         * tests/unictype/test-categ_Pe.c: Regenerated.
40008         * tests/unictype/test-categ_Pf.c: Regenerated.
40009         * tests/unictype/test-categ_Pi.c: Regenerated.
40010         * tests/unictype/test-categ_Po.c: Regenerated.
40011         * tests/unictype/test-categ_Ps.c: Regenerated.
40012         * tests/unictype/test-categ_S.c: Regenerated.
40013         * tests/unictype/test-categ_Sk.c: Regenerated.
40014         * tests/unictype/test-categ_Sm.c: Regenerated.
40015         * tests/unictype/test-categ_So.c: Regenerated.
40016         * tests/unictype/test-ctype_alnum.c: Regenerated.
40017         * tests/unictype/test-ctype_alpha.c: Regenerated.
40018         * tests/unictype/test-ctype_graph.c: Regenerated.
40019         * tests/unictype/test-ctype_lower.c: Regenerated.
40020         * tests/unictype/test-ctype_print.c: Regenerated.
40021         * tests/unictype/test-ctype_punct.c: Regenerated.
40022         * tests/unictype/test-ctype_upper.c: Regenerated.
40023         * tests/unictype/test-decdigit.h: Regenerated.
40024         * tests/unictype/test-digit.h: Regenerated.
40025         * tests/unictype/test-numeric.h: Regenerated.
40026         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40027         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40028         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40029         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40030         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40031         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40032         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40033         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40034         * tests/unictype/test-pr_combining.c: Regenerated.
40035         * tests/unictype/test-pr_dash.c: Regenerated.
40036         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40037         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40038         * tests/unictype/test-pr_deprecated.c: Regenerated.
40039         * tests/unictype/test-pr_diacritic.c: Regenerated.
40040         * tests/unictype/test-pr_extender.c: Regenerated.
40041         * tests/unictype/test-pr_format_control.c: Regenerated.
40042         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40043         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40044         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40045         * tests/unictype/test-pr_id_continue.c: Regenerated.
40046         * tests/unictype/test-pr_id_start.c: Regenerated.
40047         * tests/unictype/test-pr_ideographic.c: Regenerated.
40048         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40049         * tests/unictype/test-pr_lowercase.c: Regenerated.
40050         * tests/unictype/test-pr_math.c: Regenerated.
40051         * tests/unictype/test-pr_numeric.c: Regenerated.
40052         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40053         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40054         Regenerated.
40055         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40056         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40057         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40058         * tests/unictype/test-pr_other_math.c: Regenerated.
40059         * tests/unictype/test-pr_punctuation.c: Regenerated.
40060         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40061         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40062         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40063         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40064         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40065         * tests/unictype/test-pr_uppercase.c: Regenerated.
40066         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40067         * tests/unictype/test-pr_xid_start.c: Regenerated.
40068         * tests/unictype/test-pr_zero_width.c: Regenerated.
40069
40070         Update to Unicode 5.1.0.
40071         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40072         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40073         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40074         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40075         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40076         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40077         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40078         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40079         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40080         (nonspacing_table_ind): Update.
40081         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40082
40083         Update to Unicode 5.1.0.
40084         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40085         code transform.
40086         * lib/uniname/uniname.c (unicode_character_name,
40087         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40088         * lib/uniname/uninames.h: Regenerated.
40089         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40090
40091 2009-02-07  Bruno Haible  <bruno@clisp.org>
40092
40093         Merge gen-ctype and gen-lbrk into a single program.
40094         * lib/gen-uni-tables.c: New file, incorporating
40095         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40096         Add directory prefixes to the names of the generated files.
40097         * lib/unictype/gen-ctype.c: Remove file.
40098         * lib/unilbrk/gen-lbrk.c: Remove file.
40099         * modules/gen-uni-tables: New file.
40100         * modules/unictype/gen-ctype: Remove file.
40101         * modules/unilbrk/gen-lbrk: Remove file.
40102
40103 2009-02-07  Bruno Haible  <bruno@clisp.org>
40104
40105         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40106
40107         New module 'unistr/u32-strcoll'.
40108         * modules/unistr/u32-strcoll: New file.
40109         * lib/unistr/u32-strcoll.c: New file.
40110
40111         New module 'unistr/u16-strcoll'.
40112         * modules/unistr/u16-strcoll: New file.
40113         * lib/unistr/u16-strcoll.c: New file.
40114
40115         New module 'unistr/u8-strcoll'.
40116         * modules/unistr/u8-strcoll: New file.
40117         * lib/unistr/u8-strcoll.c: New file.
40118         * lib/unistr/u-strcoll.h: New file.
40119
40120 2009-02-07  Bruno Haible  <bruno@clisp.org>
40121
40122         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40123         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40124         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40125         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40126         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40127         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40128
40129 2009-02-07  Bruno Haible  <bruno@clisp.org>
40130
40131         Make 64-bit clean.
40132         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40133         output_combclass, output_bidi_category, output_decimal_digit,
40134         output_digit, output_numeric, output_mirror, output_scripts,
40135         output_ident_category): Use proper width specifier in format strings.
40136
40137 2009-02-07  Bruno Haible  <bruno@clisp.org>
40138
40139         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40140         failure behaviour.
40141
40142 2009-02-07  Jim Meyering  <meyering@redhat.com>
40143
40144         regex: avoid compilation failure with upcoming gcc-4.4
40145         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40146         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40147         "... error: integer overflow in preprocessor expression".
40148
40149 2009-02-05  Ben Pfaff  <blp@gnu.org>
40150
40151         Fix link errors on Windows when close module is used.
40152         * modules/close: Add $(LIB_CLOSE) to Link section.
40153         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40154         $(LIB_CLOSE) on Windows.
40155
40156 2009-02-05  Jim Meyering  <meyering@redhat.com>
40157
40158         still avoid unused-parameter warnings, but do it cleanly
40159         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40160         (get_fs_usage): Cast to void instead.
40161         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40162         (dev_from_mount_options, read_file_system_list): Cast to void.
40163         Prompted by Bruno Haible.
40164
40165 2009-02-04  Jim Meyering  <meyering@redhat.com>
40166
40167         fsusage.c: correct copyright year
40168         * lib/fsusage.c: Reflect year in which the change is pushed into
40169
40170         avoid misc. warnings
40171         * lib/fsusage.c (UNUSED_PARAM): Define.
40172         (get_fs_usage): Mark parameter "disk" as unused.
40173         * lib/getugroups.c (getgrent): Use "void" in prototype.
40174         * lib/mountlist.c: Mark unused parameters.
40175         (read_file_system_list): Declare a local with "const".
40176         * lib/nanosleep.c (getnow): Declare static.
40177         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40178
40179         dirfd: set errno upon failure
40180         * lib/dirfd.c: Include <errno.h>.
40181         Set errno to ENOTSUP when returning -1.
40182         * modules/dirfd (Depends-on): Add errno.
40183         Suggested by John Kodis <kodis@comcast.net>.
40184
40185 2009-02-01  Bruno Haible  <bruno@clisp.org>
40186
40187         Don't assume sizeof (long) >= sizeof (void *).
40188         * lib/memcmp.c: Include stdint.h.
40189         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40190         srcp2 to 'const byte *'.
40191         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40192         types to uintptr_t.
40193         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40194         * modules/memcmp (Depends-on): Add stdint.
40195         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40196
40197 2009-01-30  Eric Blake  <ebb9@byu.net>
40198
40199         fix more require-before-expand issues
40200         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40201         expand, AC_PROG_AWK.
40202         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40203
40204 2009-01-28  Eric Blake  <ebb9@byu.net>
40205
40206         version-etc: use consistent URL formatting
40207         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40208         Improve formatting.  Use fputs for string without %.
40209
40210 2009-01-28  Jim Meyering  <meyering@redhat.com>
40211
40212         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40213         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40214         "underquoted definition of NAME" from autoconf-2.59.
40215
40216 2009-01-28  Bruno Haible  <bruno@clisp.org>
40217
40218         * doc/gnulib.texi: Add "Obsolete modules" to index.
40219
40220 2009-01-28  Jim Meyering  <meyering@redhat.com>
40221
40222         useless-if-before-free: recognize more variants
40223         * build-aux/useless-if-before-free: Also recognize e.g.,
40224         if (NULL != p) free (p);
40225
40226 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40227
40228         test-getaddrinfo: skip (don't fail) this test when there's no network
40229         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40230         on the presumption that it means you lack network access.
40231
40232 2009-01-26  Jim Meyering  <meyering@redhat.com>
40233
40234         fflush: avoid warnings on modern systems
40235         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40236         pos and result, into scopes where they're used.
40237
40238 2009-01-26  Eric Blake  <ebb9@byu.net>
40239
40240         Silence warning reintroduced by recent extensions patch.
40241         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40242         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40243         autoconf.
40244
40245         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40246         * m4/00gnulib.m4: New file.
40247         * gnulib-tool (func_get_filelist): Always use it.
40248         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40249         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40250
40251 2009-01-25  Bruno Haible  <bruno@clisp.org>
40252
40253         Make test-quotearg work on MacOS X and AIX.
40254         * tests/test-quotearg.sh: New file.
40255         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40256         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40257         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40258         include <libintl.h>.
40259         (fake_locale): Remove variable.
40260         (gettext, dgettext, dcgettext): Remove functions.
40261         (main): Instead of setting a fake locale, set a real locale. Call
40262         textdomain and bindtextdomain.
40263         * modules/quotearg-tests (Files): Add the new files.
40264         (Depends-on): Add gettext, setenv, unsetenv.
40265         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40266         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40267         Augment TESTS_ENVIRONMENT.
40268
40269 2009-01-25  Bruno Haible  <bruno@clisp.org>
40270
40271         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40272         fr_FR.ISO8859-1 locale on MacOS X.
40273         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40274         ja_JP.eucJP locale on MacOS X.
40275         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40276         zh_CN.GB18030 locale on MacOS X.
40277
40278 2009-01-25  Bruno Haible  <bruno@clisp.org>
40279
40280         Avoid link errors on MacOS X 10.3.
40281         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40282         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40283
40284 2009-01-25  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40287         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40288         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40289         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40290         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40291         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40292         posix_spawnattr_init, posix_spawnattr_setsigmask,
40293         posix_spawnattr_setflags, posix_spawnattr_destroy.
40294
40295         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40296         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40297         * modules/execute (Files): Remove m4/posix_spawn.m4.
40298         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40299         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40300         posix_spawnattr_init, posix_spawnattr_setsigmask,
40301         posix_spawnattr_setflags, posix_spawnattr_destroy.
40302
40303 2009-01-25  Bruno Haible  <bruno@clisp.org>
40304
40305         * lib/glthread/threadlib.c: Include <stdlib.h>.
40306
40307 2009-01-25  Bruno Haible  <bruno@clisp.org>
40308
40309         * lib/glthread/threadlib.c (dummy): New declaration.
40310
40311 2009-01-25  Bruno Haible  <bruno@clisp.org>
40312
40313         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40314         multibyte characters also for the GB18030 encoding. Don't crash when
40315         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40316
40317 2009-01-25  Bruno Haible  <bruno@clisp.org>
40318
40319         Avoid redefining 'struct random_data' on OSF/1 5.1.
40320         * lib/stdlib.in.h: Include <random.h> if it exists.
40321         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40322         HAVE_RANDOM_H. Include <random.h> when testing whether
40323         'struct random_data' exists.
40324         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40325
40326 2009-01-25  Bruno Haible  <bruno@clisp.org>
40327
40328         Don't install charset.alias on MacOS X >= 10.3.
40329         * lib/localcharset.c (DARWIN7): New macro.
40330         (get_charset_aliases): Hardcode the result for Darwin7.
40331         * modules/localcharset (install-exec-local): Don't install
40332         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40333
40334 2009-01-25  Bruno Haible  <bruno@clisp.org>
40335
40336         Don't install charset.alias on mingw and Cygwin.
40337         * modules/localcharset (install-exec-local): Don't install
40338         charset.alias on mingw and Cygwin, if the file does not yet exist.
40339         The result for these platforms is hardcoded in localcharset.c.
40340
40341 2009-01-25  Bruno Haible  <bruno@clisp.org>
40342
40343         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40344         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40345         before requiring AC_USE_SYSTEM_EXTENSIONS.
40346
40347 2009-01-25  Jim Meyering  <meyering@redhat.com>
40348
40349         c-strtod: avoid warnings
40350         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40351         "assignment discards qualifiers from pointer target type" warnings.
40352
40353 2009-01-24  Bruno Haible  <bruno@clisp.org>
40354
40355         Add support for non-UTF-8 locales on MacOS X.
40356         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40357         canonical encodings. For Darwin 7 and newer, don't map traditional
40358         encodings to UTF-8.
40359         Reported by Vincent Lefevre <vincent@vinc17.org>
40360         at <http://savannah.gnu.org/bugs/?25235>.
40361
40362 2009-01-24  Bruno Haible  <bruno@clisp.org>
40363
40364         * doc/gnulib.texi (Obsolete modules): New section.
40365         Reported by Mike Frysinger <vapier@gentoo.org>.
40366
40367 2009-01-24  Bruno Haible  <bruno@clisp.org>
40368
40369         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40370         (%.dvi): New rule.
40371
40372 2009-01-24  Bruno Haible  <bruno@clisp.org>
40373
40374         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40375         Reported by Eric Blake.
40376
40377 2009-01-24  Bruno Haible  <bruno@clisp.org>
40378
40379         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40380         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40381         Reported by Gary V. Vaughan <gary@gnu.org>.
40382
40383 2009-01-24  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40386
40387 2009-01-23  Bruno Haible  <bruno@clisp.org>
40388
40389         Make c-strtod, c-strtold usable in libraries.
40390         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40391         (C_STRTOD): Call strdup instead of xstrdup.
40392         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40393         * modules/c-strtold (Depends-on): Likewise.
40394         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40395         * NEWS: Mention the change.
40396         Reported by Michael Gold <mgold@ncf.ca>.
40397
40398 2009-01-23  Jim Meyering  <meyering@redhat.com>
40399
40400         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40401         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40402         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40403
40404 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40405
40406         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40407         GNU CoreUtils.
40408         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40409         * modules/version-etc (Description): Update.
40410
40411 2009-01-22  Bruno Haible  <bruno@clisp.org>
40412
40413         Cache the C locale object.
40414         * lib/c-strtod.c (c_locale_cache): New variable.
40415         (c_locale): New function.
40416         (C_STRTOD): Use it, and don't call freelocale.
40417         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40418         Suggested by Paolo Bonzini.
40419
40420 2009-01-21  Bruno Haible  <bruno@clisp.org>
40421
40422         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40423         conditions other than overflow.
40424
40425 2009-01-21  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/c-strtod.c: Include errno.h.
40428         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40429         value from STRTOD_L and STRTOD.
40430
40431 2009-01-21  Bruno Haible  <bruno@clisp.org>
40432         and Jim Meyering  <meyering@redhat.com>
40433
40434         nanosleep: skip configure test (fail it) for apple universal builds
40435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40436         universal builds, assume that nanosleep does not work.
40437         * modules/nanosleep (Depends-on): Add multiarch.
40438
40439         mktime: skip configure test (fail it) for apple universal builds
40440         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40441         universal builds, assume that mktime does not work.
40442         * modules/mktime (Depends-on): Add multiarch.
40443
40444 2009-01-21  Eric Blake  <ebb9@byu.net>
40445
40446         multiarch: avoid expand-before-require warning
40447         * modules/multiarch (configure.ac): Require, rather than expand,
40448         gl_MULTIARCH.
40449         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40450         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40451         enforce that all clients require it.  Partial reversion of
40452         2008-12-29 patch.
40453
40454         error: avoid expand-before-require warning
40455         * modules/errno (configure.ac): Require, rather than expand,
40456         gl_HEADER_ERRNO_H.
40457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40458         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40459         enforce that all clients require it.
40460
40461         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40462         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40463         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40464         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40465
40466 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40467
40468         Revert:
40469         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40470
40471         regex: do not depend on obsolete modules.
40472         * modules/regex: Remove memcmp and memmove.
40473
40474 2009-01-20  Bruno Haible  <bruno@clisp.org>
40475
40476         Make the 'link' module link on Windows NT 4.
40477         * lib/link.c (_WIN32_WINNT): Don't define.
40478         (CreateHardLinkFuncType): New type.
40479         (CreateHardLinkFunc, initialized): New variables.
40480         (initialize): New function.
40481         (link): Invoke CreateHardLink indirectly through the function pointer.
40482
40483 2009-01-20  Bruno Haible  <bruno@clisp.org>
40484
40485         Fix compilation failure on mingw.
40486         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40487
40488 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40489
40490         * doc/c-strtod.texi: Mention a couple of restrictions.
40491
40492 2009-01-20  Jim Meyering  <meyering@redhat.com>
40493
40494         gettimeofday: move more declarations out of functions
40495         * lib/gettimeofday.c: Move extern declarations of tzset and
40496         gmtime out of containing functions.  Prompted by Bruno Haible.
40497
40498 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40499
40500         regex: do not depend on obsolete modules.
40501         * modules/regex: Remove memcmp and memmove.
40502
40503 2009-01-19  Bruno Haible  <bruno@clisp.org>
40504
40505         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40506         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40507         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40508         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40509         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40510
40511 2009-01-19  Bruno Haible  <bruno@clisp.org>
40512
40513         * tests/test-link.c: Include <errno.h>.
40514         (main): Exit with code 77 when a hard link cannot be created due to
40515         the file system.
40516         * tests/test-link.sh: Skip test when a hard link cannot be created due
40517         to the file system.
40518         Suggested by Eric Blake.
40519
40520 2009-01-19  Martin Lambers  <marlam@marlam.de>
40521
40522         * modules/link-tests: New file.
40523         * tests/test-link.sh: New file.
40524         * tests/test-link.c: New file.
40525
40526 2009-01-19  Eric Blake  <ebb9@byu.net>
40527
40528         doc: mention another function added in cygwin 1.7.0
40529         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40530         Another new function in cygwin 1.7.
40531
40532 2009-01-19  Bruno Haible  <bruno@clisp.org>
40533
40534         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40535         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40536         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40537         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40538         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40539         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40540         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40541         * m4/md4.m4 (gl_MD4): Likewise.
40542         * m4/md5.m4 (gl_MD5): Likewise.
40543         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40544         * m4/sha1.m4 (gl_SHA1): Likewise.
40545         * m4/sha256.m4 (gl_SHA256): Likewise.
40546         * m4/sha512.m4 (gl_SHA512): Likewise.
40547
40548 2009-01-19  Bruno Haible  <bruno@clisp.org>
40549
40550         * modules/uniname/uniname-tests (Depends-on): Add progname.
40551         * tests/uniname/test-uninames.c: Include progname.h.
40552         (main): Call set_program_name.
40553
40554         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40555         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40556         (main): Call set_program_name.
40557
40558         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40559         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40560         (main): Call set_program_name.
40561
40562         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40563         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40564         (main): Call set_program_name.
40565
40566         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40567         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40568         (main): Call set_program_name.
40569
40570         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40571         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40572         (main): Call set_program_name.
40573
40574         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40575         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40576         (main): Call set_program_name.
40577
40578         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40579         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40580         (main): Call set_program_name.
40581
40582         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40583         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40584         (main): Call set_program_name.
40585
40586 2009-01-19  Eric Blake  <ebb9@byu.net>
40587
40588         test-unistd: test previous patch
40589         * tests/test-unistd.c: Test *_FILENO macros.
40590
40591         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40592         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40593         Guarantee a definition.
40594         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40595         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40596         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40597         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40598         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40599         Likewise.
40600         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40601         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40602         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40603         Likewise.
40604         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40605         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40606         (STDERR_FILENO): Likewise.
40607         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40608         (STDERR_FILENO): Likewise.
40609         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40610         (STDERR_FILENO): Likewise.
40611         Reported by Elbert Pol.
40612
40613 2009-01-19  Eric Blake  <ebb9@byu.net>
40614
40615         doc: mention more functions added in cygwin 1.7.0
40616         * doc/posix-functions/abort.texi (abort): Update wording related
40617         to cygwin.
40618         * doc/posix-functions/daylight.texi (daylight): Likewise.
40619         * doc/posix-functions/optarg.texi (optarg): Likewise.
40620         * doc/posix-functions/optarg.texi (opterr): Likewise.
40621         * doc/posix-functions/optarg.texi (optind): Likewise.
40622         * doc/posix-functions/optarg.texi (optopt): Likewise.
40623         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40624         worked in 1.5.x, and was withdrawn in 1.7.
40625         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40626         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40627         cygwin versions.
40628         * doc/posix-functions/perror.texi (perror): Likewise.
40629         * doc/posix-functions/printf.texi (printf): Likewise.
40630         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40631         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40632         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40633         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40634         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40635         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40636         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40637         Likewise.
40638         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40639         Likewise.
40640         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40641         this function.
40642         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40643         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40644         Likewise.
40645         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40646         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40647         * doc/posix-functions/confstr.texi (confstr): Likewise.
40648         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40649         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40650         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40651         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40652         * doc/posix-functions/fputws.texi (fputws): Likewise.
40653         * doc/posix-functions/fwide.texi (fwide): Likewise.
40654         * doc/posix-functions/getwc.texi (getwc): Likewise.
40655         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40656         * doc/posix-functions/putwc.texi (putwc): Likewise.
40657         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40658         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40659         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40660         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40661         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40662         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40663         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40664         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40665         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40666         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40667         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40668
40669 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40670
40671         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40672         * lib/ioctl.c: Include <sys/ioctl.h>.
40673
40674 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40675
40676         * modules/getdate-tests (Depends-on): Add progname.
40677         * tests/test-getdate.c: Use progname module, to avoid link errors
40678         on non-glibc systems.
40679
40680 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40681
40682         * modules/filenamecat-tests (Depends-on): Add progname.
40683         * modules/fstrcmp-tests (Depends-on): Likewise.
40684
40685         * tests/test-filenamecat.c: Use progname module, to avoid link
40686         errors on non-glibc systems.
40687         * tests/test-fstrcmp.c: Likewise.
40688
40689 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40690
40691         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40692         * lib/gettimeofday.c: Move extern declaration out of function.
40693
40694 2009-01-18  Bruno Haible  <bruno@clisp.org>
40695
40696         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40697         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40698         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40699
40700 2009-01-18  Bruno Haible  <bruno@clisp.org>
40701
40702         * lib/strftime.c (MEMPCPY): Remove unused macro.
40703         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40704
40705 2009-01-18  Martin Lambers  <marlam@marlam.de>
40706
40707         New module 'link'.
40708         * lib/unistd.in.h (link): New declaration.
40709         * lib/link.c: New file.
40710         * m4/link.m4: New file.
40711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40712         HAVE_LINK.
40713         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40714         * modules/link: New file.
40715         * doc/posix-functions/link.texi: Mention the new module.
40716
40717 2009-01-18  Bruno Haible  <bruno@clisp.org>
40718
40719         * tests/test-avltree_list.c (main): Call set_program_name.
40720         * tests/test-avltree_oset.c (main): Likewise.
40721         * tests/test-obstack-printf.c: Include progname.h.
40722         (main): Call set_program_name.
40723         * tests/test-quotearg.c: Include progname.h.
40724         (main): Call set_program_name.
40725         * tests/test-xmemdup0.c: Include progname.h.
40726         (main): Call set_program_name.
40727
40728 2009-01-18  Bruno Haible  <bruno@clisp.org>
40729
40730         New module 'alphasort'.
40731         * lib/dirent.in.h (alphasort): New declaration.
40732         * lib/alphasort.c: New file, from glibc with modifications.
40733         * m4/alphasort.m4: New file.
40734         * modules/alphasort: New file.
40735         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40736         HAVE_ALPHASORT.
40737         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40738         HAVE_ALPHASORT.
40739         * doc/posix-functions/alphasort.texi: Mention the new module and the
40740         portability problems.
40741
40742 2009-01-18  Bruno Haible  <bruno@clisp.org>
40743
40744         New module 'scandir'.
40745         * lib/dirent.in.h (scandir): New declaration.
40746         * lib/scandir.c: New file, from glibc with modifications.
40747         * m4/scandir.m4: New file.
40748         * modules/scandir: New file.
40749         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40750         HAVE_SCANDIR.
40751         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40752         HAVE_SCANDIR.
40753         * doc/posix-functions/scandir.texi: Mention the new module and the
40754         portability problems.
40755
40756 2009-01-17  Bruno Haible  <bruno@clisp.org>
40757
40758         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40759         Update documentation.
40760         (func_remove_suffix): Escape all dots in the suffix. Update
40761         documentation.
40762         (func_filter_filelist): Update documentation.
40763         Reported by Ralf Wildenhues.
40764
40765 2009-01-17  Bruno Haible  <bruno@clisp.org>
40766
40767         * modules/dprintf-posix-tests: New file.
40768         * tests/test-dprintf-posix.sh: New file.
40769         * tests/test-dprintf-posix.c: New file.
40770
40771         New modules 'dprintf', 'dprintf-posix'.
40772         * lib/stdio.in.h (dprintf): New declaration.
40773         * lib/dprintf.c: New file.
40774         * m4/dprintf.m4: New file.
40775         * m4/dprintf-posix.m4: New file.
40776         * modules/dprintf: New file.
40777         * modules/dprintf-posix: New file.
40778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40779         HAVE_DPRINTF, REPLACE_DPRINTF.
40780         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40781         HAVE_DPRINTF, REPLACE_DPRINTF.
40782         * doc/posix-functions/dprintf.texi: Mention the new modules.
40783
40784 2009-01-17  Bruno Haible  <bruno@clisp.org>
40785
40786         * modules/vdprintf-posix-tests: New file.
40787         * tests/test-vdprintf-posix.sh: New file.
40788         * tests/test-vdprintf-posix.c: New file.
40789
40790         New modules 'vdprintf', 'vdprintf-posix'.
40791         * lib/stdio.in.h (vdprintf): New declaration.
40792         * lib/vdprintf.c: New file.
40793         * m4/vdprintf.m4: New file.
40794         * m4/vdprintf-posix.m4: New file.
40795         * modules/vdprintf: New file.
40796         * modules/vdprintf-posix: New file.
40797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40798         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40799         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40800         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40801         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40802
40803 2009-01-17  Bruno Haible  <bruno@clisp.org>
40804
40805         Fix replacement of fopen on mingw.
40806         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40807         mingw.
40808
40809 2009-01-17  Bruno Haible  <bruno@clisp.org>
40810
40811         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40812         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40813
40814 2009-01-17  Bruno Haible  <bruno@clisp.org>
40815
40816         Avoid test-fflush2.sh failure on mingw.
40817         * tests/test-fflush2.c: Include binary-io.h.
40818         (main): Put standard input into binary mode.
40819         * modules/fflush-tests (Depends-on): Add binary-io.
40820
40821 2009-01-17  Bruno Haible  <bruno@clisp.org>
40822
40823         * lib/wchar.in.h: In another particular situation, include only the
40824         system's <wchar.h> file.
40825         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40826         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40827         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40828
40829 2009-01-17  Bruno Haible  <bruno@clisp.org>
40830
40831         Support for stripping executables in --enable-relocatable.
40832         * build-aux/install-reloc: Expect one more argument, or an environment
40833         variable RELOC_STRIP_PROG. If set, strip the destination program and
40834         its wrapper.
40835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40836         RELOC_STRIP_PROG.
40837         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40838         to set RELOCATABLE_STRIP.
40839         * NEWS: Mention the new Makefile requirement.
40840
40841 2009-01-17  Bruno Haible  <bruno@clisp.org>
40842
40843         * build-aux/install-reloc: Remove debugging information left over by
40844         C compiler on MacOS X.
40845
40846 2009-01-17  Bruno Haible  <bruno@clisp.org>
40847
40848         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40849         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40850         _NSGetExecutablePath.
40851
40852 2009-01-16  Jim Meyering  <meyering@redhat.com>
40853
40854         strerror: avoid warnings about discarding "const"
40855         * lib/strerror.c (rpl_strerror): Instead of returning a const
40856         string from each and every "case", use a variable, and add a single
40857         cast after the switch.
40858
40859 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40860
40861         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40862
40863 2009-01-16  Bruno Haible  <bruno@clisp.org>
40864
40865         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40866         array initializer syntax that also works in C++ mode.
40867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40868
40869 2009-01-16  Jim Meyering  <meyering@redhat.com>
40870
40871         poll: suppress a warning
40872         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40873         to ignore "...unsigned expression < 0 is always false" warnings.
40874
40875 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
40876
40877         poll: remove declarations of unused variables
40878         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
40879         sockbuf and optlen.
40880
40881 2009-01-15  Bruno Haible  <bruno@clisp.org>
40882
40883         Make fflush-after-ungetc POSIX compliant on BSD systems.
40884         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
40885         (clear_ungetc_buffer): Implement also for other systems.
40886         (rpl_fflush): On glibc systems, invoke
40887         clear_ungetc_buffer_preserving_position. Otherwise, invoke
40888         clear_ungetc_buffer after fetching the stream's position, not before.
40889
40890 2009-01-15  Bruno Haible  <bruno@clisp.org>
40891
40892         Make fflush-after-ungetc POSIX compliant on glibc systems.
40893         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
40894         after ungetc.
40895         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
40896         (rpl_fflush): On glibc systems, simply call the system's fflush
40897         function after clearing the ungetc buffer.
40898         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
40899         Instead, lseek only to the end of file, then use the system's fseeko
40900         for the rest. On glibc systems, reset the EOF indicator bit.
40901
40902 2009-01-15  Jim Meyering  <meyering@redhat.com>
40903
40904         openmp.m4: revert quote-adding change, for portability to older autoconf
40905         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
40906         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
40907         Simon Josefsson noticed the problem when using autoconf-2.61.
40908
40909 2009-01-15  Bruno Haible  <bruno@clisp.org>
40910
40911         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40912         * tests/test-fflush2.c (ASSERT): Always fail.
40913         (main): Add two tests for fflush() after ungetc(), taking into account
40914         the Austin Group's clarification.
40915         Suggested by Eric Blake.
40916
40917 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40918
40919         mktime.m4: remove K&R-style function prototypes
40920         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40921         for the Sun C++ compiler.
40922
40923 2009-01-14  Bruno Haible  <bruno@clisp.org>
40924
40925         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40926         while including <wchar.h>.
40927         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40928         the system's <wchar.h> file.
40929         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40930
40931 2009-01-14  Bruno Haible  <bruno@clisp.org>
40932
40933         * m4/csharp.m4: Don't mention gettext on the serial number line.
40934         * m4/csharpexec.m4: Likewise.
40935         * m4/eaccess.m4: Likewise.
40936         * m4/javaexec.m4: Likewise.
40937         * m4/sig_atomic_t.m4: Likewise.
40938         * m4/tmpdir.m4: Likewise.
40939         * m4/intldir.m4: Bump gettext version.
40940         * m4/lib-ld.m4: Likewise.
40941
40942 2009-01-14  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/progname.c (set_program_name): Add more comments.
40945         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40946
40947 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40948
40949         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40950         were sys/stat.h does not define it.
40951
40952 2009-01-14  Jim Meyering  <meyering@redhat.com>
40953
40954         many *.m4 files: improve m4 quoting
40955         99% of this change was performed by running the following commands:
40956         git ls-files | grep '\.m4$' | xargs perl -pi \
40957           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40958           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40959           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40960           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40961         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40962         The remainder were to add Copyright dates, increment serial numbers,
40963         undo some changes in comments, exclude m4/intl.m4, and add quotes
40964         around the "1" in ",1" where the unusual spacing prohibited the
40965         above regexps from doing the job.  For more details, see
40966         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40967         * m4/acl.m4: Modified.
40968         * m4/afs.m4: Likewise.
40969         * m4/alloca.m4: Likewise.
40970         * m4/argp.m4: Likewise.
40971         * m4/argz.m4: Likewise.
40972         * m4/atexit.m4: Likewise.
40973         * m4/bison-i18n.m4: Likewise.
40974         * m4/bison.m4: Likewise.
40975         * m4/byteswap.m4: Likewise.
40976         * m4/c-stack.m4: Likewise.
40977         * m4/c-strtod.m4: Likewise.
40978         * m4/calloc.m4: Likewise.
40979         * m4/canonicalize-lgpl.m4: Likewise.
40980         * m4/chown.m4: Likewise.
40981         * m4/clock_time.m4: Likewise.
40982         * m4/codeset.m4: Likewise.
40983         * m4/copy-file.m4: Likewise.
40984         * m4/csharp.m4: Likewise.
40985         * m4/csharpcomp.m4: Likewise.
40986         * m4/csharpexec.m4: Likewise.
40987         * m4/d-ino.m4: Likewise.
40988         * m4/d-type.m4: Likewise.
40989         * m4/dirfd.m4: Likewise.
40990         * m4/double-slash-root.m4: Likewise.
40991         * m4/eaccess.m4: Likewise.
40992         * m4/eealloc.m4: Likewise.
40993         * m4/environ.m4: Likewise.
40994         * m4/errno_h.m4: Likewise.
40995         * m4/euidaccess.m4: Likewise.
40996         * m4/execute.m4: Likewise.
40997         * m4/fatal-signal.m4: Likewise.
40998         * m4/fchdir.m4: Likewise.
40999         * m4/fcntl_h.m4: Likewise.
41000         * m4/fileblocks.m4: Likewise.
41001         * m4/filenamecat.m4: Likewise.
41002         * m4/findprog.m4: Likewise.
41003         * m4/flexmember.m4: Likewise.
41004         * m4/fnmatch.m4: Likewise.
41005         * m4/fopen.m4: Likewise.
41006         * m4/fpending.m4: Likewise.
41007         * m4/fprintf-posix.m4: Likewise.
41008         * m4/free.m4: Likewise.
41009         * m4/frexp.m4: Likewise.
41010         * m4/frexpl.m4: Likewise.
41011         * m4/fsusage.m4: Likewise.
41012         * m4/ftruncate.m4: Likewise.
41013         * m4/gc-camellia.m4: Likewise.
41014         * m4/gc-random.m4: Likewise.
41015         * m4/gc.m4: Likewise.
41016         * m4/getaddrinfo.m4: Likewise.
41017         * m4/getcwd-abort-bug.m4: Likewise.
41018         * m4/getcwd-path-max.m4: Likewise.
41019         * m4/getdate.m4: Likewise.
41020         * m4/getdomainname.m4: Likewise.
41021         * m4/getgroups.m4: Likewise.
41022         * m4/gethostname.m4: Likewise.
41023         * m4/gethrxtime.m4: Likewise.
41024         * m4/getline.m4: Likewise.
41025         * m4/getloadavg.m4: Likewise.
41026         * m4/getndelim2.m4: Likewise.
41027         * m4/getpass.m4: Likewise.
41028         * m4/gettext.m4: Likewise.
41029         * m4/gettime.m4: Likewise.
41030         * m4/gettimeofday.m4: Likewise.
41031         * m4/gnulib-common.m4: Likewise.
41032         * m4/group-member.m4: Likewise.
41033         * m4/host-os.m4: Likewise.
41034         * m4/iconv.m4: Likewise.
41035         * m4/iconv_open.m4: Likewise.
41036         * m4/inet_ntop.m4: Likewise.
41037         * m4/inet_pton.m4: Likewise.
41038         * m4/inline.m4: Likewise.
41039         * m4/intldir.m4: Likewise.
41040         * m4/intlmacosx.m4: Likewise.
41041         * m4/intmax.m4: Likewise.
41042         * m4/intmax_t.m4: Likewise.
41043         * m4/inttypes.m4: Likewise.
41044         * m4/inttypes_h.m4: Likewise.
41045         * m4/inttypes-pri.m4: Likewise.
41046         * m4/isapipe.m4: Likewise.
41047         * m4/isnand.m4: Likewise.
41048         * m4/isnanf.m4: Likewise.
41049         * m4/isnanl.m4: Likewise.
41050         * m4/javacomp.m4: Likewise.
41051         * m4/javaexec.m4: Likewise.
41052         * m4/jm-winsz1.m4: Likewise.
41053         * m4/jm-winsz2.m4: Likewise.
41054         * m4/lchown.m4: Likewise.
41055         * m4/lcmessage.m4: Likewise.
41056         * m4/ldexpl.m4: Likewise.
41057         * m4/lib-ld.m4: Likewise.
41058         * m4/lib-link.m4: Likewise.
41059         * m4/libsigsegv.m4: Likewise.
41060         * m4/link-follow.m4: Likewise.
41061         * m4/localcharset.m4: Likewise.
41062         * m4/locale-fr.m4: Likewise.
41063         * m4/locale-ja.m4: Likewise.
41064         * m4/locale-tr.m4: Likewise.
41065         * m4/locale-zh.m4: Likewise.
41066         * m4/lock.m4: Likewise.
41067         * m4/longlong.m4: Likewise.
41068         * m4/ls-mntd-fs.m4: Likewise.
41069         * m4/lstat.m4: Likewise.
41070         * m4/malloc.m4: Likewise.
41071         * m4/mathl.m4: Likewise.
41072         * m4/mbrtowc.m4: Likewise.
41073         * m4/mbstate_t.m4: Likewise.
41074         * m4/mbswidth.m4: Likewise.
41075         * m4/memchr.m4: Likewise.
41076         * m4/memcmp.m4: Likewise.
41077         * m4/memcpy.m4: Likewise.
41078         * m4/memmem.m4: Likewise.
41079         * m4/memmove.m4: Likewise.
41080         * m4/mempcpy.m4: Likewise.
41081         * m4/memrchr.m4: Likewise.
41082         * m4/memset.m4: Likewise.
41083         * m4/minmax.m4: Likewise.
41084         * m4/mkdir-slash.m4: Likewise.
41085         * m4/mkdtemp.m4: Likewise.
41086         * m4/mktime.m4: Likewise.
41087         * m4/mmap-anon.m4: Likewise.
41088         * m4/mountlist.m4: Likewise.
41089         * m4/nanosleep.m4: Likewise.
41090         * m4/nls.m4: Likewise.
41091         * m4/nocrash.m4: Likewise.
41092         * m4/open.m4: Likewise.
41093         * m4/openat.m4: Likewise.
41094         * m4/openmp.m4: Likewise.
41095         * m4/pathmax.m4: Likewise.
41096         * m4/perl.m4: Likewise.
41097         * m4/physmem.m4: Likewise.
41098         * m4/pipe.m4: Likewise.
41099         * m4/po.m4: Likewise.
41100         * m4/poll.m4: Likewise.
41101         * m4/posixtm.m4: Likewise.
41102         * m4/posixver.m4: Likewise.
41103         * m4/printf-frexp.m4: Likewise.
41104         * m4/printf-frexpl.m4: Likewise.
41105         * m4/printf-posix.m4: Likewise.
41106         * m4/printf-posix-rpl.m4: Likewise.
41107         * m4/printf.m4: Likewise.
41108         * m4/progtest.m4: Likewise.
41109         * m4/putenv.m4: Likewise.
41110         * m4/readline.m4: Likewise.
41111         * m4/readlink.m4: Likewise.
41112         * m4/readutmp.m4: Likewise.
41113         * m4/realloc.m4: Likewise.
41114         * m4/regex.m4: Likewise.
41115         * m4/relocatable.m4: Likewise.
41116         * m4/relocatable-lib.m4: Likewise.
41117         * m4/rename-dest-slash.m4: Likewise.
41118         * m4/rename.m4: Likewise.
41119         * m4/rmdir-errno.m4: Likewise.
41120         * m4/rmdir.m4: Likewise.
41121         * m4/roundf.m4: Likewise.
41122         * m4/roundl.m4: Likewise.
41123         * m4/rpmatch.m4: Likewise.
41124         * m4/save-cwd.m4: Likewise.
41125         * m4/selinux-selinux-h.m4: Likewise.
41126         * m4/setenv.m4: Likewise.
41127         * m4/settime.m4: Likewise.
41128         * m4/sig2str.m4: Likewise.
41129         * m4/sig_atomic_t.m4: Likewise.
41130         * m4/signalblocking.m4: Likewise.
41131         * m4/signbit.m4: Likewise.
41132         * m4/sigpipe.m4: Likewise.
41133         * m4/sockets.m4: Likewise.
41134         * m4/sockpfaf.m4: Likewise.
41135         * m4/st_dm_mode.m4: Likewise.
41136         * m4/stat-time.m4: Likewise.
41137         * m4/stdbool.m4: Likewise.
41138         * m4/stdint.m4: Likewise.
41139         * m4/stdint_h.m4: Likewise.
41140         * m4/stpcpy.m4: Likewise.
41141         * m4/stpncpy.m4: Likewise.
41142         * m4/strcase.m4: Likewise.
41143         * m4/strchrnul.m4: Likewise.
41144         * m4/strcspn.m4: Likewise.
41145         * m4/strdup.m4: Likewise.
41146         * m4/strftime.m4: Likewise.
41147         * m4/strndup.m4: Likewise.
41148         * m4/strnlen.m4: Likewise.
41149         * m4/strpbrk.m4: Likewise.
41150         * m4/strptime.m4: Likewise.
41151         * m4/strsep.m4: Likewise.
41152         * m4/strtod.m4: Likewise.
41153         * m4/strtoimax.m4: Likewise.
41154         * m4/strtok_r.m4: Likewise.
41155         * m4/strtol.m4: Likewise.
41156         * m4/strtoll.m4: Likewise.
41157         * m4/strtoul.m4: Likewise.
41158         * m4/strtoull.m4: Likewise.
41159         * m4/strtoumax.m4: Likewise.
41160         * m4/strverscmp.m4: Likewise.
41161         * m4/threadlib.m4: Likewise.
41162         * m4/timegm.m4: Likewise.
41163         * m4/tm_gmtoff.m4: Likewise.
41164         * m4/tmpdir.m4: Likewise.
41165         * m4/tmpfile.m4: Likewise.
41166         * m4/tzset.m4: Likewise.
41167         * m4/uintmax_t.m4: Likewise.
41168         * m4/unlinkdir.m4: Likewise.
41169         * m4/unlocked-io.m4: Likewise.
41170         * m4/uptime.m4: Likewise.
41171         * m4/userspec.m4: Likewise.
41172         * m4/utimbuf.m4: Likewise.
41173         * m4/utime.m4: Likewise.
41174         * m4/utimes-null.m4: Likewise.
41175         * m4/utimes.m4: Likewise.
41176         * m4/vararrays.m4: Likewise.
41177         * m4/vasnprintf.m4: Likewise.
41178         * m4/vfprintf-posix.m4: Likewise.
41179         * m4/vprintf-posix.m4: Likewise.
41180         * m4/wait-process.m4: Likewise.
41181         * m4/wchar_t.m4: Likewise.
41182         * m4/wint_t.m4: Likewise.
41183         * m4/write-any-file.m4: Likewise.
41184         * m4/yield.m4: Likewise.
41185
41186 2009-01-13  Bruno Haible  <bruno@clisp.org>
41187
41188         Avoid test-copy-file.sh failures when ACL support insufficient.
41189         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41190         TESTS_ENVIRONMENT.
41191         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41192         Reported by Jim Meyering.
41193
41194 2009-01-13  Bruno Haible  <bruno@clisp.org>
41195
41196         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41197         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41198         * modules/unistdio/u8-printf-parse (Files): Likewise.
41199         * modules/unistdio/u32-printf-parse (Files): Likewise.
41200         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41201
41202 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41203
41204         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41205         and m4/inttypes_h.m4 too.
41206
41207 2009-01-12  Eric Blake  <ebb9@byu.net>
41208
41209         tests: IRIX 6.2 cc can't compile -0.0 into .data
41210         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41211         rather than at compile-time.
41212         * tests/test-floorl.c (minus_zero): Likewise.
41213         * tests/test-frexpl.c (minus_zero): Likewise.
41214         * tests/test-isnan.c (minus_zerol): Likewise.
41215         * tests/test-isnanl.h (minus_zero): Likewise.
41216         * tests/test-ldexpl.c (minus_zero): Likewise.
41217         * tests/test-roundl.c (minus_zero): Likewise.
41218         * tests/test-signbit.c (minus_zerol): Likewise.
41219         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41220         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41221         * tests/test-truncl.c (minus_zero): Likewise.
41222         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41223         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41224         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41225
41226 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41227
41228         regex: fix glibc bug 9697
41229         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41230         handling.
41231
41232 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41233
41234         regex: fix glibc bug 697
41235         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41236         being NULL also if there are no backreferences.
41237
41238 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41239
41240         regex: merge glibc changes
41241         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41242         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41243         re_string_skip_chars, re_string_reconstruct): Likewise.
41244         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41245
41246 2009-01-07  Jim Meyering  <meyering@redhat.com>
41247
41248         poll: filter through cppi
41249         * lib/poll.c: Indent cpp directives to reflect nesting.
41250
41251 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41252
41253         poll: don't return uninitialized
41254         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41255
41256 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41257
41258         avoid compile failure on AIX 6.1
41259         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41260         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41261
41262 2009-01-04  Jim Meyering  <meyering@redhat.com>
41263
41264         remove duplicate inclusion of <stdio.h>
41265         * tests/test-fprintf-posix.c: Likewise.
41266         * tests/test-printf-posix.c: Likewise.
41267         * tests/test-snprintf-posix.c: Likewise.
41268         * tests/test-sprintf-posix.c: Likewise.
41269         * tests/test-vasprintf-posix.c: Likewise.
41270         * tests/test-vfprintf-posix.c: Likewise.
41271         * tests/test-vprintf-posix.c: Likewise.
41272         * tests/test-vsnprintf-posix.c: Likewise.
41273         * tests/test-vsprintf-posix.c: Likewise.
41274
41275 2009-01-03  Jim Meyering  <meyering@redhat.com>
41276
41277         gnulib-tool: fix sed-based filtering
41278         * gnulib-tool (func_filter_filelist): Remove extra backslash
41279         in sed_fff_filter definition.
41280
41281 2009-01-02  Jim Meyering  <meyering@redhat.com>
41282
41283         strftime: avoid compilation failure on Solaris 2.6
41284         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41285         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41286         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41287         be available.  Reported by Tom G. Christensen.  Details in
41288         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41289
41290 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41291             Bruno Haible  <bruno@clisp.org>
41292
41293         Speed up gnulib-tool by doing more string processing through shell
41294         built-ins.
41295         * gnulib-tool (fast_func_append): New variable.
41296         (func_remove_prefix, func_remove_suffix): New functions.
41297         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41298         (func_filter_filelist): New function.
41299         (func_get_dependencies): Use func_remove_suffix instead of sed.
41300         (func_get_automake_snippet): Use func_filter_filelist instead of a
41301         subshell and sed invocation.
41302
41303 2009-01-01  Bruno Haible  <bruno@clisp.org>
41304
41305         Fix a security bug.
41306         * gnulib-tool (func_import, import, update): Don't allow the characters
41307         '"', '$', '`', '\' in macro arguments that become part of commands that
41308         are evaluated.
41309
41310 2009-01-01  Bruno Haible  <bruno@clisp.org>
41311
41312         * gnulib-tool (func_reset_sigpipe): Add more comments.
41313
41314 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41315
41316         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41317         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41318         already know the answer.
41319
41320 2009-01-01  Jim Meyering  <meyering@redhat.com>
41321
41322         * lib/version-etc.c (version_etc_va): Update copyright year.
41323
41324 2008-12-30  Bruno Haible  <bruno@clisp.org>
41325
41326         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41327         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41328         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41329
41330 2008-12-29  Eric Blake  <ebb9@byu.net>
41331
41332         multiarch: avoid autoconf AC_REQUIRE bug
41333         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41334         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41335         2.63 and older.
41336         Reported by Bruno Haible, and analyzed in
41337         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41338
41339 2008-12-29  Bruno Haible  <bruno@clisp.org>
41340
41341         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41342         files in subdirectories correctly.
41343         Reported by Ralf Wildenhues.
41344
41345 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41346
41347         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41348         rather than 'join FILE -', for Solaris join.
41349
41350 2008-12-29  Bruno Haible  <bruno@clisp.org>
41351
41352         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41353         quoting.
41354         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41355         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41356         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41357         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41358         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41359         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41360         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41361         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41362         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41363         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41364         * m4/nls.m4 (AM_NLS): Likewise.
41365         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41366         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41367         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41368         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41369         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41370         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41371         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41372         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41373         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41374         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41375         * m4/xsize.m4 (gl_XSIZE): Likewise.
41376         Suggested by Jim Meyering.
41377
41378 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41379
41380         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41381         * lib/parse-duration.c: use a switch instead of cascading if's.
41382
41383 2008-12-29  Eric Blake  <ebb9@byu.net>
41384
41385         wchar.h: supply WEOF on Irix 5.3
41386         * lib/wchar.in.h (wint_t): Also supply WEOF.
41387         * lib/wctype.in.h (wint_t): Likewise.
41388         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41389         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41390         Reported by Tom G. Christensen.
41391
41392 2008-12-26  Bruno Haible  <bruno@clisp.org>
41393
41394         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41395         i486, i586, i686.
41396
41397 2008-12-26  Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41400
41401 2008-12-26  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41404         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41405         not __STDC_CONSTANT_MACROS.
41406         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41407
41408 2008-12-25  Bruno Haible  <bruno@clisp.org>
41409
41410         Add support for universal builds to vasnprintf.
41411         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41412         universal builds, guess no.
41413         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41414         * modules/vasprintf-posix (Depends-on): Likewise.
41415         * modules/fprintf-posix (Depends-on): Likewise.
41416         * modules/vfprintf-posix (Depends-on): Likewise.
41417         * modules/snprintf-posix (Depends-on): Likewise.
41418         * modules/vsnprintf-posix (Depends-on): Likewise.
41419         * modules/sprintf-posix (Depends-on): Likewise.
41420         * modules/vsprintf-posix (Depends-on): Likewise.
41421         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41422         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41423         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41424         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41425         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41426         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41427         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41428
41429         Add support for universal builds to <inttypes.h>.
41430         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41431         _SCNu64_PREFIX): In Apple
41432         universal builds, define directly, using _LP64.
41433         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41434         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41435         * modules/inttypes (Depends-on): Add multiarch.
41436         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41437
41438         Add support for universal builds to <stdint.h>.
41439         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41440         universal builds, define directly, using _LP64.
41441         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41442         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41443         and size_t.
41444         * modules/stdint (Depends-on): Add multiarch.
41445         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41446
41447         New module 'multiarch'.
41448         * modules/multiarch: New file.
41449         * m4/multiarch.m4: New file.
41450
41451 2008-12-25  Bruno Haible  <bruno@clisp.org>
41452
41453         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41454
41455 2008-12-25  Bruno Haible  <bruno@clisp.org>
41456
41457         * modules/btowc (License): Relicense under LGPLv2+.
41458         * modules/mbsinit (License): Likewise.
41459         * modules/mbrtowc (License): Likewise.
41460         * modules/wcrtomb (License): Likewise.
41461         * modules/streq (License): Likewise.
41462         Reported by David Lutterkort <lutter@redhat.com>.
41463
41464 2008-12-23  Bruno Haible  <bruno@clisp.org>
41465
41466         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41467
41468 2008-12-23  Bruno Haible  <bruno@clisp.org>
41469
41470         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41472         GETADDRINFO_LIB, not in LIBS.
41473         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41474         * modules/canon-host (Link): Likewise.
41475         * NEWS: Mention the change.
41476         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41477         GETADDRINFO_LIB.
41478
41479 2008-12-22  Bruno Haible  <bruno@clisp.org>
41480
41481         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41482         * doc/posix-functions/iswalpha_l.texi: Likewise.
41483         * doc/posix-functions/iswblank_l.texi: Likewise.
41484         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41485         * doc/posix-functions/iswctype_l.texi: Likewise.
41486         * doc/posix-functions/iswdigit_l.texi: Likewise.
41487         * doc/posix-functions/iswgraph_l.texi: Likewise.
41488         * doc/posix-functions/iswlower_l.texi: Likewise.
41489         * doc/posix-functions/iswprint_l.texi: Likewise.
41490         * doc/posix-functions/iswpunct_l.texi: Likewise.
41491         * doc/posix-functions/iswspace_l.texi: Likewise.
41492         * doc/posix-functions/iswupper_l.texi: Likewise.
41493         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41494         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41495         * doc/posix-functions/open_wmemstream.texi: Likewise.
41496         * doc/posix-functions/swscanf.texi: Likewise.
41497         * doc/posix-functions/towctrans_l.texi: Likewise.
41498         * doc/posix-functions/towlower.texi: Likewise.
41499         * doc/posix-functions/towlower_l.texi: Likewise.
41500         * doc/posix-functions/towupper.texi: Likewise.
41501         * doc/posix-functions/towupper_l.texi: Likewise.
41502         * doc/posix-functions/vfwprintf.texi: Likewise.
41503         * doc/posix-functions/vfwscanf.texi: Likewise.
41504         * doc/posix-functions/vswscanf.texi: Likewise.
41505         * doc/posix-functions/vwprintf.texi: Likewise.
41506         * doc/posix-functions/vwscanf.texi: Likewise.
41507         * doc/posix-functions/wcpcpy.texi: Likewise.
41508         * doc/posix-functions/wcpncpy.texi: Likewise.
41509         * doc/posix-functions/wcscasecmp.texi: Likewise.
41510         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41511         * doc/posix-functions/wcscoll_l.texi: Likewise.
41512         * doc/posix-functions/wcsdup.texi: Likewise.
41513         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41514         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41515         * doc/posix-functions/wcsnlen.texi: Likewise.
41516         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41517         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41518         * doc/posix-functions/wctrans_l.texi: Likewise.
41519         * doc/posix-functions/wctype_l.texi: Likewise.
41520         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41521         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41522         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41523         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41524         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41525         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41526         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41527         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41528         * doc/glibc-functions/wcschrnul.texi: Likewise.
41529         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41530         * doc/glibc-functions/wcstod_l.texi: Likewise.
41531         * doc/glibc-functions/wcstof_l.texi: Likewise.
41532         * doc/glibc-functions/wcstol_l.texi: Likewise.
41533         * doc/glibc-functions/wcstold_l.texi: Likewise.
41534         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41535         * doc/glibc-functions/wcstoq.texi: Likewise.
41536         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41537         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41538         * doc/glibc-functions/wcstouq.texi: Likewise.
41539         * doc/glibc-functions/wmempcpy.texi: Likewise.
41540
41541 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41542             Eric Blake  <ebb9@byu.net>
41543             Paolo Bonzini  <bonzini@gnu.org>
41544             Bruno Haible  <bruno@clisp.org>
41545
41546         Make c-stack work on Haiku.
41547         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41548         (c_stack_action): Use SA_ONSTACK flag.
41549
41550 2008-12-22  Bruno Haible  <bruno@clisp.org>
41551
41552         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41553
41554 2008-12-22  Bruno Haible  <bruno@clisp.org>
41555
41556         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41557         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41558         being overridden.
41559         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41560         New macros.
41561         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41563         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41564         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41565
41566 2008-12-22  Bruno Haible  <bruno@clisp.org>
41567
41568         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41569         from test code.
41570
41571 2008-12-22  Eric Blake  <ebb9@byu.net>
41572
41573         Avoid gcc warnings on cygwin.
41574         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41575         Avoid unused variable.
41576         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41577         Likewise.
41578
41579 2008-12-22  Bruno Haible  <bruno@clisp.org>
41580
41581         Remove HAVE_MBRTOWC conditionals.
41582         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41583         (mbscasecmp): Assume mbrtowc function.
41584         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41585         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41586         * lib/mbschr.c: Include mbuiter.h unconditionally.
41587         (mbschr): Assume mbrtowc function.
41588         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41589         (mbscspn): Assume mbrtowc function.
41590         * lib/mbslen.c: Include mbuiter.h unconditionally.
41591         (mbslen): Assume mbrtowc function.
41592         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41593         (mbsncasecmp): Assume mbrtowc function.
41594         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41595         (mbsnlen): Assume mbrtowc function.
41596         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41597         (mbspbrk): Assume mbrtowc function.
41598         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41599         (mbspcasecmp): Assume mbrtowc function.
41600         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41601         (mbsrchr): Assume mbrtowc function.
41602         * lib/mbssep.c: Include mbuiter.h unconditionally.
41603         (mbssep): Assume mbrtowc function.
41604         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41605         (mbsspn): Assume mbrtowc function.
41606         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41607         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41608         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41609         (mbstok_r): Assume mbrtowc function.
41610         * lib/propername.c: Include mbuiter.h unconditionally.
41611         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41612         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41613         (trim2): Assume mbrtowc function.
41614         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41615         (mbsnwidth): Assume mbrtowc function.
41616         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41617         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41618         fallback definitions.
41619         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41620
41621 2008-12-22  Bruno Haible  <bruno@clisp.org>
41622
41623         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41624
41625 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41626
41627         * modules/regex: Request emulations for the mb*/wc* functions we need.
41628         * m4/regex.m4: Don't look for those functions here.
41629         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41630
41631 2008-12-22  Bruno Haible  <bruno@clisp.org>
41632
41633         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41634
41635 2008-12-21  Bruno Haible  <bruno@clisp.org>
41636
41637         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41638         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41639         (Include): Remove conditionalization.
41640         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41641         (Include): Remove conditionalization.
41642         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41643         (Include): Remove conditionalization.
41644         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41645         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41646         * NEWS: Mention the change.
41647         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41648         via Sergey Poznyakoff <gray@gnu.org.ua>.
41649
41650 2008-12-21  Bruno Haible  <bruno@clisp.org>
41651
41652         * MODULES.html.sh (Extended multibyte and wide character utilities
41653         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41654         wcrtomb, wcsrtombs.
41655         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41656         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41657         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41658         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41659
41660 2008-12-21  Bruno Haible  <bruno@clisp.org>
41661
41662         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41663
41664 2008-12-21  Bruno Haible  <bruno@clisp.org>
41665
41666         * modules/wcsnrtombs-tests: New file.
41667         * tests/test-wcsnrtombs1.sh: New file.
41668         * tests/test-wcsnrtombs2.sh: New file.
41669         * tests/test-wcsnrtombs3.sh: New file.
41670         * tests/test-wcsnrtombs4.sh: New file.
41671         * tests/test-wcsnrtombs.c: New file.
41672
41673         New module 'wcsnrtombs'.
41674         * lib/wchar.in.h (wcsnrtombs): New declaration.
41675         * lib/wcsnrtombs.c: New file.
41676         * lib/wcsrtombs-state.c: New file.
41677         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41678         (internal_state): Remove variable.
41679         * m4/wcsnrtombs.m4: New file.
41680         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41681         compilation units.
41682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41683         HAVE_WCSNRTOMBS.
41684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41685         HAVE_WCSNRTOMBS.
41686         * modules/wcsnrtombs: New file.
41687         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41688         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41689
41690 2008-12-21  Bruno Haible  <bruno@clisp.org>
41691
41692         * modules/wcsrtombs-tests: New file.
41693         * tests/test-wcsrtombs1.sh: New file.
41694         * tests/test-wcsrtombs2.sh: New file.
41695         * tests/test-wcsrtombs3.sh: New file.
41696         * tests/test-wcsrtombs4.sh: New file.
41697         * tests/test-wcsrtombs.c: New file.
41698
41699         New module 'wcsrtombs'.
41700         * lib/wchar.in.h (wcsrtombs): New declaration.
41701         * lib/wcsrtombs.c: New file.
41702         * m4/wcsrtombs.m4: New file.
41703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41704         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41706         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41707         * modules/wcsrtombs: New file.
41708         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41709         bugs.
41710
41711 2008-12-21  Bruno Haible  <bruno@clisp.org>
41712
41713         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41714         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41715         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41716         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41717         if not correct.
41718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41719         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41720         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41721         m4/locale-zh.m4, m4/codeset.m4.
41722         * doc/posix-functions/wcrtomb.texi: Document the bug.
41723
41724 2008-12-21  Bruno Haible  <bruno@clisp.org>
41725
41726         Work around a btowc() bug on IRIX 6.5.
41727         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41728         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41729         REPLACE_WTOBC if not.
41730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41731         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41732         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41733
41734 2008-12-21  Bruno Haible  <bruno@clisp.org>
41735
41736         * modules/wcrtomb-tests: New file.
41737         * tests/test-wcrtomb.sh: New file.
41738         * tests/test-wcrtomb.c: New file.
41739
41740         New module 'wcrtomb'.
41741         * lib/wchar.in.h (wcrtomb): New declaration.
41742         * lib/wcrtomb.c: New file.
41743         * m4/wcrtomb.m4: New file.
41744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41745         HAVE_WCRTOMB.
41746         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41747         HAVE_WCRTOMB.
41748         * modules/wcrtomb: New file.
41749         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41750
41751 2008-12-21  Bruno Haible  <bruno@clisp.org>
41752
41753         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41754         * modules/mbsrtowcs (Files): Likewise.
41755         * modules/wctob (Files): Likewise.
41756         * modules/c-strcase-tests (Files): Likewise.
41757         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41758         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41759         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41760         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41761         * modules/vasnprintf-posix-tests (Files): Likewise.
41762
41763 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41764
41765         gitlog-to-changelog: pass all command-line arguments to git-log
41766         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41767         it is sometimes convenient to filter the commits in various ways.
41768         gitlog-to-changelog only allows --since to specify a start date,
41769         but git-log itself supports many other filtering mechanisms.
41770         At the moment, I want to filter by branch name.  Rather than
41771         adding a --branch option to gitlog-to-changelog, it seems more
41772         flexible to simply pass all options directly to git-log and let
41773         git do the work.  Notice that this effectively makes --since a
41774         redundant option for gitlog-to-changelog, but removing it would
41775         require current usage to change since calls would then require
41776         an additional '--'.
41777
41778 2008-12-21  Bruno Haible  <bruno@clisp.org>
41779
41780         * modules/mbsnrtowcs-tests: New file.
41781         * tests/test-mbsnrtowcs1.sh: New file.
41782         * tests/test-mbsnrtowcs2.sh: New file.
41783         * tests/test-mbsnrtowcs3.sh: New file.
41784         * tests/test-mbsnrtowcs4.sh: New file.
41785         * tests/test-mbsnrtowcs.c: New file.
41786
41787         New module 'mbsnrtowcs'.
41788         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41789         * lib/mbsnrtowcs.c: New file.
41790         * lib/mbsrtowcs-state.c: New file.
41791         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41792         (internal_state): Remove variable.
41793         * m4/mbsnrtowcs.m4: New file.
41794         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41795         compilation units.
41796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41797         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41798         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41799         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41800         * modules/mbsnrtowcs: New file.
41801         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41802         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41803         portability problem.
41804
41805 2008-12-21  Bruno Haible  <bruno@clisp.org>
41806
41807         Work around mbsrtowcs bug.
41808         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41809         (gl_FUNC_MBSRTOWCS): Invoke it.
41810         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41811         m4/locale-zh.m4.
41812         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41813
41814 2008-12-21  Bruno Haible  <bruno@clisp.org>
41815
41816         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41817
41818 2008-12-21  Bruno Haible  <bruno@clisp.org>
41819
41820         Update doc for AIX.
41821         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41822         16-bit wchar_t type.
41823         * doc/posix-functions/btowc.texi: Likewise.
41824         * doc/posix-functions/fgetwc.texi: Likewise.
41825         * doc/posix-functions/fgetws.texi: Likewise.
41826         * doc/posix-functions/fputwc.texi: Likewise.
41827         * doc/posix-functions/fputws.texi: Likewise.
41828         * doc/posix-functions/fwide.texi: Likewise.
41829         * doc/posix-functions/fwprintf.texi: Likewise.
41830         * doc/posix-functions/fwscanf.texi: Likewise.
41831         * doc/posix-functions/getwchar.texi: Likewise.
41832         * doc/posix-functions/getwc.texi: Likewise.
41833         * doc/posix-functions/iswalnum.texi: Likewise.
41834         * doc/posix-functions/iswalpha.texi: Likewise.
41835         * doc/posix-functions/iswblank.texi: Likewise.
41836         * doc/posix-functions/iswcntrl.texi: Likewise.
41837         * doc/posix-functions/iswctype.texi: Likewise.
41838         * doc/posix-functions/iswdigit.texi: Likewise.
41839         * doc/posix-functions/iswgraph.texi: Likewise.
41840         * doc/posix-functions/iswlower.texi: Likewise.
41841         * doc/posix-functions/iswprint.texi: Likewise.
41842         * doc/posix-functions/iswpunct.texi: Likewise.
41843         * doc/posix-functions/iswspace.texi: Likewise.
41844         * doc/posix-functions/iswupper.texi: Likewise.
41845         * doc/posix-functions/iswxdigit.texi: Likewise.
41846         * doc/posix-functions/mbrtowc.texi: Likewise.
41847         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41848         * doc/posix-functions/mbstowcs.texi: Likewise.
41849         * doc/posix-functions/mbtowc.texi: Likewise.
41850         * doc/posix-functions/putwchar.texi: Likewise.
41851         * doc/posix-functions/putwc.texi: Likewise.
41852         * doc/posix-functions/swprintf.texi: Likewise.
41853         * doc/posix-functions/tolower.texi: Likewise.
41854         * doc/posix-functions/toupper.texi: Likewise.
41855         * doc/posix-functions/towctrans.texi: Likewise.
41856         * doc/posix-functions/ungetwc.texi: Likewise.
41857         * doc/posix-functions/vswprintf.texi: Likewise.
41858         * doc/posix-functions/wcrtomb.texi: Likewise.
41859         * doc/posix-functions/wcscat.texi: Likewise.
41860         * doc/posix-functions/wcschr.texi: Likewise.
41861         * doc/posix-functions/wcscmp.texi: Likewise.
41862         * doc/posix-functions/wcscoll.texi: Likewise.
41863         * doc/posix-functions/wcscpy.texi: Likewise.
41864         * doc/posix-functions/wcscspn.texi: Likewise.
41865         * doc/posix-functions/wcsftime.texi: Likewise.
41866         * doc/posix-functions/wcslen.texi: Likewise.
41867         * doc/posix-functions/wcsncat.texi: Likewise.
41868         * doc/posix-functions/wcsncmp.texi: Likewise.
41869         * doc/posix-functions/wcsncpy.texi: Likewise.
41870         * doc/posix-functions/wcspbrk.texi: Likewise.
41871         * doc/posix-functions/wcsrchr.texi: Likewise.
41872         * doc/posix-functions/wcsrtombs.texi: Likewise.
41873         * doc/posix-functions/wcsspn.texi: Likewise.
41874         * doc/posix-functions/wcsstr.texi: Likewise.
41875         * doc/posix-functions/wcstod.texi: Likewise.
41876         * doc/posix-functions/wcstof.texi: Likewise.
41877         * doc/posix-functions/wcstoimax.texi: Likewise.
41878         * doc/posix-functions/wcstok.texi: Likewise.
41879         * doc/posix-functions/wcstold.texi: Likewise.
41880         * doc/posix-functions/wcstoll.texi: Likewise.
41881         * doc/posix-functions/wcstol.texi: Likewise.
41882         * doc/posix-functions/wcstombs.texi: Likewise.
41883         * doc/posix-functions/wcstoull.texi: Likewise.
41884         * doc/posix-functions/wcstoul.texi: Likewise.
41885         * doc/posix-functions/wcstoumax.texi: Likewise.
41886         * doc/posix-functions/wcswidth.texi: Likewise.
41887         * doc/posix-functions/wcsxfrm.texi: Likewise.
41888         * doc/posix-functions/wctob.texi: Likewise.
41889         * doc/posix-functions/wctomb.texi: Likewise.
41890         * doc/posix-functions/wctrans.texi: Likewise.
41891         * doc/posix-functions/wctype.texi: Likewise.
41892         * doc/posix-functions/wcwidth.texi: Likewise.
41893         * doc/posix-functions/wmemchr.texi: Likewise.
41894         * doc/posix-functions/wmemcmp.texi: Likewise.
41895         * doc/posix-functions/wmemcpy.texi: Likewise.
41896         * doc/posix-functions/wmemmove.texi: Likewise.
41897         * doc/posix-functions/wmemset.texi: Likewise.
41898         * doc/posix-functions/wprintf.texi: Likewise.
41899         * doc/posix-functions/wscanf.texi: Likewise.
41900
41901 2008-12-21  Bruno Haible  <bruno@clisp.org>
41902
41903         Update doc for HP-UX 11.11.
41904         * doc/posix-functions/btowc.texi: Clarify that the function is missing
41905         in HP-UX version 11.00, not in all versions of HP-UX 11.
41906         * doc/posix-functions/fwide.texi: Likewise.
41907         * doc/posix-functions/fwprintf.texi: Likewise.
41908         * doc/posix-functions/fwscanf.texi: Likewise.
41909         * doc/posix-functions/inet_ntop.texi: Likewise.
41910         * doc/posix-functions/inet_pton.texi: Likewise.
41911         * doc/posix-functions/mbrlen.texi: Likewise.
41912         * doc/posix-functions/mbrtowc.texi: Likewise.
41913         * doc/posix-functions/mbsinit.texi: Likewise.
41914         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41915         * doc/posix-functions/swprintf.texi: Likewise.
41916         * doc/posix-functions/swscanf.texi: Likewise.
41917         * doc/posix-functions/towctrans.texi: Likewise.
41918         * doc/posix-functions/vfwprintf.texi: Likewise.
41919         * doc/posix-functions/vswprintf.texi: Likewise.
41920         * doc/posix-functions/vwprintf.texi: Likewise.
41921         * doc/posix-functions/wcrtomb.texi: Likewise.
41922         * doc/posix-functions/wcsrtombs.texi: Likewise.
41923         * doc/posix-functions/wcsstr.texi: Likewise.
41924         * doc/posix-functions/wctob.texi: Likewise.
41925         * doc/posix-functions/wctrans.texi: Likewise.
41926         * doc/posix-functions/wmemchr.texi: Likewise.
41927         * doc/posix-functions/wmemcmp.texi: Likewise.
41928         * doc/posix-functions/wmemcpy.texi: Likewise.
41929         * doc/posix-functions/wmemmove.texi: Likewise.
41930         * doc/posix-functions/wmemset.texi: Likewise.
41931         * doc/posix-functions/wprintf.texi: Likewise.
41932         * doc/posix-functions/wscanf.texi: Likewise.
41933
41934 2008-12-21  Bruno Haible  <bruno@clisp.org>
41935
41936         Work around a portability problem.
41937         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41938         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41939
41940 2008-12-20  Bruno Haible  <bruno@clisp.org>
41941
41942         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41943         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41944         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41946         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41947
41948         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41949         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41950         set.
41951         (GNULIB_defined_mbstate_t): New macro.
41952         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41953         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41954         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41955         reuses the system's mbrtowc function but works around the bugs.
41956         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41957         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41958         macros.
41959         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41960         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41961         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41962         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41963         REPLACE_MBSINIT if mbsinit needs to be overridden.
41964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41965         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41966         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41967         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41968         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41969         m4/locale-zh.m4.
41970         (Depends): Add mbsinit.
41971         * modules/mbsinit (Depends): Add mbrtowc.
41972         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41973
41974 2008-12-20  Bruno Haible  <bruno@clisp.org>
41975
41976         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41977         so that there are no conversion errors on AIX.
41978         * tests/test-mbsrtowcs.c (main): LIkewise.
41979
41980 2008-12-20  Bruno Haible  <bruno@clisp.org>
41981
41982         Work around wctob bug on Solaris <= 9.
41983         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41984         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41985         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41986         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41987         * modules/wctob (Files): Add m4/locale-fr.m4.
41988         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41989
41990 2008-12-20  Bruno Haible  <bruno@clisp.org>
41991
41992         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41993         /dev/null.
41994         * tests/test-select-in.sh: Likewise.
41995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41996
41997 2008-12-20  Bruno Haible  <bruno@clisp.org>
41998
41999         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42000         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42001         Cygwin 1.5.x.
42002
42003 2008-12-20  Bruno Haible  <bruno@clisp.org>
42004
42005         Ensure mbstate_t is defined on HP-UX 11.11.
42006         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42007         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42008         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42009         AC_USE_SYSTEM_EXTENSIONS.
42010         * modules/fnmatch (Depends-on): Add extensions.
42011         * modules/mbrlen (Depends-on): Likewise.
42012         * modules/mbrtowc (Depends-on): Likewise.
42013         * modules/mbsinit (Depends-on): Likewise.
42014         * modules/mbsrtowcs (Depends-on): Likewise.
42015         * modules/mbswidth (Depends-on): Likewise.
42016         * modules/quotearg (Depends-on): Likewise.
42017         * modules/strftime (Depends-on): Likewise.
42018
42019 2008-12-20  Bruno Haible  <bruno@clisp.org>
42020
42021         Ensure wctob is declared on IRIX 6.5.
42022         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42023         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42024         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42026         of HAVE_WCTOB.
42027         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42028         HAVE_WCTOB.
42029         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42030
42031 2008-12-19  Bruno Haible  <bruno@clisp.org>
42032
42033         * modules/mbsrtowcs-tests: New file.
42034         * tests/test-mbsrtowcs1.sh: New file.
42035         * tests/test-mbsrtowcs2.sh: New file.
42036         * tests/test-mbsrtowcs3.sh: New file.
42037         * tests/test-mbsrtowcs4.sh: New file.
42038         * tests/test-mbsrtowcs.c: New file.
42039
42040         New module 'mbsrtowcs'.
42041         * lib/wchar.in.h (mbsrtowcs): New declaration.
42042         * lib/mbsrtowcs.c: New file.
42043         * m4/mbsrtowcs.m4: New file.
42044         * modules/mbsrtowcs: New file.
42045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42046         HAVE_MBSRTOWCS.
42047         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42048         HAVE_MBSRTOWCS.
42049         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42050
42051 2008-12-19  Bruno Haible  <bruno@clisp.org>
42052
42053         New module 'mbrlen'.
42054         * lib/wchar.in.h (mbrlen): New declaration.
42055         * lib/mbrlen.c: New file.
42056         * m4/mbrlen.m4: New file.
42057         * modules/mbrlen: New file.
42058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42059         HAVE_MBRLEN.
42060         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42061         HAVE_MBRLEN.
42062         * doc/posix-functions/mbrlen.texi: Document the new module.
42063
42064 2008-12-19  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42067         * modules/mbrtowc (Depends-on): Add verify.
42068         Suggested by Paul Eggert.
42069
42070 2008-12-18  Bruno Haible  <bruno@clisp.org>
42071
42072         * modules/mbsinit-tests: New file.
42073         * tests/test-mbsinit.sh: New file.
42074         * tests/test-mbsinit.c: New file.
42075
42076 2008-12-18  Bruno Haible  <bruno@clisp.org>
42077
42078         * modules/mbrtowc-tests: New file.
42079         * tests/test-mbrtowc1.sh: New file.
42080         * tests/test-mbrtowc2.sh: New file.
42081         * tests/test-mbrtowc3.sh: New file.
42082         * tests/test-mbrtowc4.sh: New file.
42083         * tests/test-mbrtowc.c: New file.
42084
42085         New module 'mbrtowc'.
42086         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42087         mbsinit and mbrtowc.
42088         (mbrtowc): New declaration.
42089         * lib/mbrtowc.c: New file.
42090         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42091         * modules/mbrtowc: New file.
42092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42093         HAVE_MBRTOWC.
42094         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42095         HAVE_MBRTOWC.
42096         * doc/posix-functions/mbrtowc.texi: Document the new module.
42097
42098 2008-12-18  Bruno Haible  <bruno@clisp.org>
42099
42100         New module 'wctob'.
42101         * lib/wchar.in.h (wctob): New declaration.
42102         * lib/wctob.c: New file.
42103         * m4/wctob.m4: New file.
42104         * modules/wctob: New file.
42105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42106         HAVE_WCTOB.
42107         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42108         * doc/posix-functions/wctob.texi: Document the new module.
42109
42110 2008-12-18  Bruno Haible  <bruno@clisp.org>
42111
42112         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42113         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42114
42115 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42116
42117         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42118         G. Christensen" <tgc@jupiterrise.com>.
42119
42120         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42121         G. Christensen" <tgc@jupiterrise.com>.
42122
42123         * lib/flock.c: Need to include string.h.  Reported by "Tom
42124         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42125         <ebb9@byu.net>.
42126
42127 2008-12-18  Bruno Haible  <bruno@clisp.org>
42128
42129         * m4/locale-ja.m4: New file, from GNU gettext.
42130
42131 2008-12-17  Bruno Haible  <bruno@clisp.org>
42132
42133         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42134         Suggested by Eric Blake.
42135
42136 2008-12-17  Bruno Haible  <bruno@clisp.org>
42137
42138         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42139
42140 2008-12-17  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42143         * modules/mbsinit (Depends-on): Add verify.
42144         Suggested by Paul Eggert.
42145
42146 2008-12-17  Bruno Haible  <bruno@clisp.org>
42147
42148         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42149         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42150         gl_FUNC_MBRTOWC.
42151         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42152         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42153         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42154         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42155         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42156         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42157         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42158         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42159         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42160         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42161         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42162         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42163         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42164         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42165         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42166         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42167         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42168         * modules/trim (configure.ac): Likewise.
42169
42170 2008-12-17  Bruno Haible  <bruno@clisp.org>
42171
42172         * modules/btowc-tests: New file.
42173         * tests/test-btowc1.sh: New file.
42174         * tests/test-btowc2.sh: New file.
42175         * tests/test-btowc.c: New file.
42176
42177         New module 'btowc'.
42178         * lib/wchar.in.h (btowc): New declaration.
42179         * lib/btowc.c: New file.
42180         * m4/btowc.m4: New file.
42181         * modules/btowc: New file.
42182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42183         HAVE_BTOWC.
42184         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42185         * doc/posix-functions/btowc.texi: Document the new module.
42186
42187 2008-12-17  Bruno Haible  <bruno@clisp.org>
42188
42189         New module 'mbsinit'.
42190         * lib/wchar.in.h (mbsinit): New declaration.
42191         * lib/mbsinit.c: New file.
42192         * m4/mbsinit.m4: New file.
42193         * modules/mbsinit: New file.
42194         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42195         HAVE_MBSINIT.
42196         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42197         HAVE_MBSINIT.
42198         * doc/posix-functions/mbsinit.texi: Document the new module.
42199
42200 2008-12-16  Bruno Haible  <bruno@clisp.org>
42201
42202         * lib/unistd.in.h: Add comment.
42203         * tests/test-environ.c: Don't include <stdlib.h>.
42204
42205 2008-12-16  Bruno Haible  <bruno@clisp.org>
42206
42207         * lib/parse-duration.h (parse_duration): Document return value
42208         convention.
42209         * lib/parse-duration.c: Include specification header first. Add
42210         comments.
42211         (_): Remove macro.
42212         (parse_year_month_day, parse_hour_minute_second): Move side effects
42213         outside of strchr call.
42214         (parse_non_iso8601): Move side effects outside of isspace call.
42215         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42216         call.
42217
42218 2008-12-16  Bruno Haible  <bruno@clisp.org>
42219
42220         * tests/test-parse-duration.sh: Produce no output when the test
42221         succeeds.
42222
42223 2008-12-16  Bruno Haible  <bruno@clisp.org>
42224
42225         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42226         expressions.
42227
42228 2008-12-15  Bruno Haible  <bruno@clisp.org>
42229
42230         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42231         * doc/glibc-functions/flistxattr.texi: Likewise.
42232         * doc/glibc-functions/fopencookie.texi: Likewise.
42233         * doc/glibc-functions/fremovexattr.texi: Likewise.
42234         * doc/glibc-functions/fsetxattr.texi: Likewise.
42235         * doc/glibc-functions/getxattr.texi: Likewise.
42236         * doc/glibc-functions/lgetxattr.texi: Likewise.
42237         * doc/glibc-functions/listxattr.texi: Likewise.
42238         * doc/glibc-functions/llistxattr.texi: Likewise.
42239         * doc/glibc-functions/lremovexattr.texi: Likewise.
42240         * doc/glibc-functions/lsetxattr.texi: Likewise.
42241         * doc/glibc-functions/removexattr.texi: Likewise.
42242         * doc/glibc-functions/setxattr.texi: Likewise.
42243         * doc/posix-functions/open_memstream.texi: Likewise.
42244
42245 2008-12-15  Eric Blake  <ebb9@byu.net>
42246
42247         Update doc for cygwin 1.7.
42248         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42249         functions.
42250         * doc/posix-functions/fchmodat.texi: Likewise.
42251         * doc/posix-functions/fchownat.texi: Likewise.
42252         * doc/posix-functions/fdopendir.texi: Likewise.
42253         * doc/posix-functions/fmemopen.texi: Likewise.
42254         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42255         * doc/posix-functions/fstatat.texi: Likewise.
42256         * doc/posix-functions/futimens.texi: Likewise.
42257         * doc/posix-functions/gai_strerror.texi: Likewise.
42258         * doc/posix-functions/getaddrinfo.texi: Likewise.
42259         * doc/posix-functions/getnameinfo.texi: Likewise.
42260         * doc/posix-functions/if_freenameindex.texi: Likewise.
42261         * doc/posix-functions/if_indextoname.texi: Likewise.
42262         * doc/posix-functions/if_nameindex.texi: Likewise.
42263         * doc/posix-functions/if_nametoindex.texi: Likewise.
42264         * doc/posix-functions/insque.texi: Likewise.
42265         * doc/posix-functions/linkat.texi: Likewise.
42266         * doc/posix-functions/llrint.texi: Likewise.
42267         * doc/posix-functions/llrintf.texi: Likewise.
42268         * doc/posix-functions/llrintl.texi: Likewise.
42269         * doc/posix-functions/lockf.texi: Likewise.
42270         * doc/posix-functions/lrintl.texi: Likewise.
42271         * doc/posix-functions/mkdirat.texi: Likewise.
42272         * doc/posix-functions/mkfifoat.texi: Likewise.
42273         * doc/posix-functions/mknodat.texi: Likewise.
42274         * doc/posix-functions/mq_close.texi: Likewise.
42275         * doc/posix-functions/mq_getattr.texi: Likewise.
42276         * doc/posix-functions/mq_notify.texi: Likewise.
42277         * doc/posix-functions/mq_open.texi: Likewise.
42278         * doc/posix-functions/mq_receive.texi: Likewise.
42279         * doc/posix-functions/mq_send.texi: Likewise.
42280         * doc/posix-functions/mq_setattr.texi: Likewise.
42281         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42282         * doc/posix-functions/mq_timedsend.texi: Likewise.
42283         * doc/posix-functions/mq_unlink.texi: Likewise.
42284         * doc/posix-functions/open_memstream.texi: Likewise.
42285         * doc/posix-functions/openat.texi: Likewise.
42286         * doc/posix-functions/posix_fadvise.texi: Likewise.
42287         * doc/posix-functions/posix_fallocate.texi: Likewise.
42288         * doc/posix-functions/posix_madvise.texi: Likewise.
42289         * doc/posix-functions/posix_memalign.texi: Likewise.
42290         * doc/posix-functions/posix_openpt.texi: Likewise.
42291         * doc/posix-functions/readlinkat.texi: Likewise.
42292         * doc/posix-functions/remque.texi: Likewise.
42293         * doc/posix-functions/renameat.texi: Likewise.
42294         * doc/posix-functions/rintl.texi: Likewise.
42295         * doc/posix-functions/sem_unlink.texi: Likewise.
42296         * doc/posix-functions/shm_open.texi: Likewise.
42297         * doc/posix-functions/shm_unlink.texi: Likewise.
42298         * doc/posix-functions/signgam.texi: Likewise.
42299         * doc/posix-functions/sigset.texi: Likewise.
42300         * doc/posix-functions/stpcpy.texi: Likewise.
42301         * doc/posix-functions/stpncpy.texi: Likewise.
42302         * doc/posix-functions/strerror.texi: Likewise.
42303         * doc/posix-functions/strtod.texi: Likewise.
42304         * doc/posix-functions/symlinkat.texi: Likewise.
42305         * doc/posix-functions/unlinkat.texi: Likewise.
42306         * doc/posix-functions/utimensat.texi: Likewise.
42307         * doc/glibc-functions/bindresvport.texi: Likewise.
42308         * doc/glibc-functions/dn_expand.texi: Likewise.
42309         * doc/glibc-functions/exp10.texi: Likewise.
42310         * doc/glibc-functions/exp10f.texi: Likewise.
42311         * doc/glibc-functions/fgetxattr.texi: Likewise.
42312         * doc/glibc-functions/flistxattr.texi: Likewise.
42313         * doc/glibc-functions/fopencookie.texi: Likewise.
42314         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42315         * doc/glibc-functions/fremovexattr.texi: Likewise.
42316         * doc/glibc-functions/fsetxattr.texi: Likewise.
42317         * doc/glibc-functions/getifaddrs.texi: Likewise.
42318         * doc/glibc-functions/getxattr.texi: Likewise.
42319         * doc/glibc-functions/lgetxattr.texi: Likewise.
42320         * doc/glibc-functions/listxattr.texi: Likewise.
42321         * doc/glibc-functions/llistxattr.texi: Likewise.
42322         * doc/glibc-functions/lremovexattr.texi: Likewise.
42323         * doc/glibc-functions/lsetxattr.texi: Likewise.
42324         * doc/glibc-functions/pow10.texi: Likewise.
42325         * doc/glibc-functions/pow10f.texi: Likewise.
42326         * doc/glibc-functions/rcmd_af.texi: Likewise.
42327         * doc/glibc-functions/removexattr.texi: Likewise.
42328         * doc/glibc-functions/res_init.texi: Likewise.
42329         * doc/glibc-functions/res_mkquery.texi: Likewise.
42330         * doc/glibc-functions/res_query.texi: Likewise.
42331         * doc/glibc-functions/res_querydomain.texi: Likewise.
42332         * doc/glibc-functions/res_send.texi: Likewise.
42333         * doc/glibc-functions/rresvport_af.texi: Likewise.
42334         * doc/glibc-functions/setxattr.texi: Likewise.
42335         * doc/glibc-functions/strcasestr.texi: Likewise.
42336
42337 2008-12-15  Bruno Haible  <bruno@clisp.org>
42338
42339         Fix compilation error on OSF/1 4.0.
42340         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42341         <sys/time.h>, simply delegate to the system header.
42342         Reported by Daniel Richard G. <oss@teragram.com>.
42343
42344 2008-12-15  Bruno Haible  <bruno@clisp.org>
42345
42346         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42347         * doc/posix-functions/fchmodat.texi: Likewise.
42348         * doc/posix-functions/fchownat.texi: Likewise.
42349         * doc/posix-functions/fdopendir.texi: Likewise.
42350         * doc/posix-functions/fstatat.texi: Likewise.
42351         * doc/posix-functions/mkdirat.texi: Likewise.
42352         * doc/posix-functions/unlinkat.texi: Likewise.
42353
42354 2008-12-14  Bruno Haible  <bruno@clisp.org>
42355
42356         Update doc for POSIX:2008.
42357         * doc/posix-functions/faccessat.texi: New file.
42358         * doc/posix-functions/fchmodat.texi: New file.
42359         * doc/posix-functions/fchownat.texi: New file.
42360         * doc/posix-functions/fdopendir.texi: New file.
42361         * doc/posix-functions/fstatat.texi: New file.
42362         * doc/posix-functions/futimens.texi: New file.
42363         * doc/posix-functions/linkat.texi: New file.
42364         * doc/posix-functions/mkdirat.texi: New file.
42365         * doc/posix-functions/mkfifoat.texi: New file.
42366         * doc/posix-functions/mknodat.texi: New file.
42367         * doc/posix-functions/open_wmemstream.texi: New file.
42368         * doc/posix-functions/openat.texi: New file.
42369         * doc/posix-functions/psiginfo.texi: New file.
42370         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42371         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42372         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42373         * doc/posix-functions/readlinkat.texi: New file.
42374         * doc/posix-functions/renameat.texi: New file.
42375         * doc/posix-functions/strerror_l.texi: New file.
42376         * doc/posix-functions/symlinkat.texi: New file.
42377         * doc/posix-functions/unlinkat.texi: New file.
42378         * doc/posix-functions/utimensat.texi: New file.
42379         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42380
42381 2008-12-14  Bruno Haible  <bruno@clisp.org>
42382
42383         Update doc for POSIX:2008.
42384         * doc/posix-functions/alphasort.texi: Renamed from
42385         doc/glibc-functions/alphasort.texi.
42386         * doc/posix-functions/dirfd.texi: Renamed from
42387         doc/glibc-functions/dirfd.texi.
42388         * doc/posix-functions/dprintf.texi: Renamed from
42389         doc/glibc-functions/dprintf.texi.
42390         * doc/posix-functions/duplocale.texi: Renamed from
42391         doc/glibc-functions/duplocale.texi.
42392         * doc/posix-functions/fexecve.texi: Renamed from
42393         doc/glibc-functions/fexecve.texi.
42394         * doc/posix-functions/fmemopen.texi: Renamed from
42395         doc/glibc-functions/fmemopen.texi.
42396         * doc/posix-functions/freelocale.texi: Renamed from
42397         doc/glibc-functions/freelocale.texi.
42398         * doc/posix-functions/getdate_err.texi: Renamed from
42399         doc/glibc-functions/getdate_err.texi.
42400         * doc/posix-functions/isalnum_l.texi: Renamed from
42401         doc/glibc-functions/isalnum_l.texi.
42402         * doc/posix-functions/isalpha_l.texi: Renamed from
42403         doc/glibc-functions/isalpha_l.texi.
42404         * doc/posix-functions/isblank_l.texi: Renamed from
42405         doc/glibc-functions/isblank_l.texi.
42406         * doc/posix-functions/iscntrl_l.texi: Renamed from
42407         doc/glibc-functions/iscntrl_l.texi.
42408         * doc/posix-functions/isdigit_l.texi: Renamed from
42409         doc/glibc-functions/isdigit_l.texi.
42410         * doc/posix-functions/isgraph_l.texi: Renamed from
42411         doc/glibc-functions/isgraph_l.texi.
42412         * doc/posix-functions/islower_l.texi: Renamed from
42413         doc/glibc-functions/islower_l.texi.
42414         * doc/posix-functions/isprint_l.texi: Renamed from
42415         doc/glibc-functions/isprint_l.texi.
42416         * doc/posix-functions/ispunct_l.texi: Renamed from
42417         doc/glibc-functions/ispunct_l.texi.
42418         * doc/posix-functions/isspace_l.texi: Renamed from
42419         doc/glibc-functions/isspace_l.texi.
42420         * doc/posix-functions/isupper_l.texi: Renamed from
42421         doc/glibc-functions/isupper_l.texi.
42422         * doc/posix-functions/iswalnum_l.texi: Renamed from
42423         doc/glibc-functions/iswalnum_l.texi.
42424         * doc/posix-functions/iswalpha_l.texi: Renamed from
42425         doc/glibc-functions/iswalpha_l.texi.
42426         * doc/posix-functions/iswblank_l.texi: Renamed from
42427         doc/glibc-functions/iswblank_l.texi.
42428         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42429         doc/glibc-functions/iswcntrl_l.texi.
42430         * doc/posix-functions/iswctype_l.texi: Renamed from
42431         doc/glibc-functions/iswctype_l.texi.
42432         * doc/posix-functions/iswdigit_l.texi: Renamed from
42433         doc/glibc-functions/iswdigit_l.texi.
42434         * doc/posix-functions/iswgraph_l.texi: Renamed from
42435         doc/glibc-functions/iswgraph_l.texi.
42436         * doc/posix-functions/iswlower_l.texi: Renamed from
42437         doc/glibc-functions/iswlower_l.texi.
42438         * doc/posix-functions/iswprint_l.texi: Renamed from
42439         doc/glibc-functions/iswprint_l.texi.
42440         * doc/posix-functions/iswpunct_l.texi: Renamed from
42441         doc/glibc-functions/iswpunct_l.texi.
42442         * doc/posix-functions/iswspace_l.texi: Renamed from
42443         doc/glibc-functions/iswspace_l.texi.
42444         * doc/posix-functions/iswupper_l.texi: Renamed from
42445         doc/glibc-functions/iswupper_l.texi.
42446         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42447         doc/glibc-functions/iswxdigit_l.texi.
42448         * doc/posix-functions/isxdigit_l.texi: Renamed from
42449         doc/glibc-functions/isxdigit_l.texi.
42450         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42451         doc/glibc-functions/mbsnrtowcs.texi.
42452         * doc/posix-functions/mkdtemp.texi: Renamed from
42453         doc/glibc-functions/mkdtemp.texi.
42454         * doc/posix-functions/newlocale.texi: Renamed from
42455         doc/glibc-functions/newlocale.texi.
42456         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42457         doc/glibc-functions/nl_langinfo_l.texi.
42458         * doc/posix-functions/open_memstream.texi: Renamed from
42459         doc/glibc-functions/open_memstream.texi.
42460         * doc/posix-functions/opterr.texi: Renamed from
42461         doc/glibc-functions/opterr.texi.
42462         * doc/posix-functions/optind.texi: Renamed from
42463         doc/glibc-functions/optind.texi.
42464         * doc/posix-functions/optopt.texi: Renamed from
42465         doc/glibc-functions/optopt.texi.
42466         * doc/posix-functions/psignal.texi: Renamed from
42467         doc/glibc-functions/psignal.texi.
42468         * doc/posix-functions/scandir.texi: Renamed from
42469         doc/glibc-functions/scandir.texi.
42470         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42471         doc/glibc-functions/sched_get_priority_min.texi.
42472         * doc/posix-functions/signgam.texi: Renamed from
42473         doc/glibc-functions/signgam.texi.
42474         * doc/posix-functions/stpcpy.texi: Renamed from
42475         doc/glibc-functions/stpcpy.texi.
42476         * doc/posix-functions/stpncpy.texi: Renamed from
42477         doc/glibc-functions/stpncpy.texi.
42478         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42479         doc/glibc-functions/strcasecmp_l.texi.
42480         * doc/posix-functions/strcoll_l.texi: Renamed from
42481         doc/glibc-functions/strcoll_l.texi.
42482         * doc/posix-functions/strfmon_l.texi: Renamed from
42483         doc/glibc-functions/strfmon_l.texi.
42484         * doc/posix-functions/strftime_l.texi: Renamed from
42485         doc/glibc-functions/strftime_l.texi.
42486         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42487         doc/glibc-functions/strncasecmp_l.texi.
42488         * doc/posix-functions/strndup.texi: Renamed from
42489         doc/glibc-functions/strndup.texi.
42490         * doc/posix-functions/strnlen.texi: Renamed from
42491         doc/glibc-functions/strnlen.texi.
42492         * doc/posix-functions/strsignal.texi: Renamed from
42493         doc/glibc-functions/strsignal.texi.
42494         * doc/posix-functions/strxfrm_l.texi: Renamed from
42495         doc/glibc-functions/strxfrm_l.texi.
42496         * doc/posix-functions/timer_gettime.texi: Renamed from
42497         doc/glibc-functions/timer_gettime.texi.
42498         * doc/posix-functions/tolower_l.texi: Renamed from
42499         doc/glibc-functions/tolower_l.texi.
42500         * doc/posix-functions/toupper_l.texi: Renamed from
42501         doc/glibc-functions/toupper_l.texi.
42502         * doc/posix-functions/towctrans_l.texi: Renamed from
42503         doc/glibc-functions/towctrans_l.texi.
42504         * doc/posix-functions/towlower_l.texi: Renamed from
42505         doc/glibc-functions/towlower_l.texi.
42506         * doc/posix-functions/towupper_l.texi: Renamed from
42507         doc/glibc-functions/towupper_l.texi.
42508         * doc/posix-functions/uselocale.texi: Renamed from
42509         doc/glibc-functions/uselocale.texi.
42510         * doc/posix-functions/vdprintf.texi: Renamed from
42511         doc/glibc-functions/vdprintf.texi.
42512         * doc/posix-functions/wcpcpy.texi:
42513         Renamed from doc/glibc-functions/wcpcpy.texi.
42514         * doc/posix-functions/wcpncpy.texi: Renamed from
42515         doc/glibc-functions/wcpncpy.texi.
42516         * doc/posix-functions/wcscasecmp.texi: Renamed from
42517         doc/glibc-functions/wcscasecmp.texi.
42518         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42519         doc/glibc-functions/wcscasecmp_l.texi.
42520         * doc/posix-functions/wcscoll_l.texi: Renamed from
42521         doc/glibc-functions/wcscoll_l.texi.
42522         * doc/posix-functions/wcsdup.texi: Renamed from
42523         doc/glibc-functions/wcsdup.texi.
42524         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42525         doc/glibc-functions/wcsncasecmp.texi.
42526         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42527         doc/glibc-functions/wcsncasecmp_l.texi.
42528         * doc/posix-functions/wcsnlen.texi: Renamed from
42529         doc/glibc-functions/wcsnlen.texi.
42530         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42531         doc/glibc-functions/wcsnrtombs.texi.
42532         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42533         doc/glibc-functions/wcsxfrm_l.texi.
42534         * doc/posix-functions/wctrans_l.texi: Renamed from
42535         doc/glibc-functions/wctrans_l.texi.
42536         * doc/posix-functions/wctype_l.texi: Renamed from
42537         doc/glibc-functions/wctype_l.texi.
42538         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42539         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42540         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42541         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42542         these subsections.
42543         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42544         Remove sections.
42545
42546 2008-12-14  Bruno Haible  <bruno@clisp.org>
42547
42548         Update doc for POSIX:2008.
42549         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42550
42551 2008-12-14  Bruno Haible  <bruno@clisp.org>
42552
42553         Update doc for POSIX:2008.
42554         * doc/pastposix-functions/bcmp.texi: Renamed from
42555         doc/posix-functions/bcmp.texi.
42556         * doc/pastposix-functions/bcopy.texi: Renamed from
42557         doc/posix-functions/bcopy.texi.
42558         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42559         doc/posix-functions/bsd_signal.texi.
42560         * doc/pastposix-functions/bzero.texi: Renamed from
42561         doc/posix-functions/bzero.texi.
42562         * doc/pastposix-functions/ecvt.texi: Renamed from
42563         doc/posix-functions/ecvt.texi.
42564         * doc/pastposix-functions/fcvt.texi: Renamed from
42565         doc/posix-functions/fcvt.texi.
42566         * doc/pastposix-functions/ftime.texi: Renamed from
42567         doc/posix-functions/ftime.texi.
42568         * doc/pastposix-functions/gcvt.texi: Renamed from
42569         doc/posix-functions/gcvt.texi.
42570         * doc/pastposix-functions/getcontext.texi: Renamed from
42571         doc/posix-functions/getcontext.texi.
42572         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42573         doc/posix-functions/gethostbyaddr.texi.
42574         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42575         doc/posix-functions/gethostbyname.texi.
42576         * doc/pastposix-functions/getwd.texi: Renamed from
42577         doc/posix-functions/getwd.texi.
42578         * doc/pastposix-functions/h_errno.texi: Renamed from
42579         doc/posix-functions/h_errno.texi.
42580         * doc/pastposix-functions/index.texi: Renamed from
42581         doc/posix-functions/index.texi.
42582         * doc/pastposix-functions/makecontext.texi: Renamed from
42583         doc/posix-functions/makecontext.texi.
42584         * doc/pastposix-functions/mktemp.texi: Renamed from
42585         doc/posix-functions/mktemp.texi.
42586         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42587         doc/posix-functions/pthread_attr_getstackaddr.texi.
42588         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42589         doc/posix-functions/pthread_attr_setstackaddr.texi.
42590         * doc/pastposix-functions/rindex.texi: Renamed from
42591         doc/posix-functions/rindex.texi.
42592         * doc/pastposix-functions/scalb.texi: Renamed from
42593         doc/posix-functions/scalb.texi.
42594         * doc/pastposix-functions/setcontext.texi: Renamed from
42595         doc/posix-functions/setcontext.texi.
42596         * doc/pastposix-functions/swapcontext.texi: Renamed from
42597         doc/posix-functions/swapcontext.texi.
42598         * doc/pastposix-functions/ualarm.texi: Renamed from
42599         doc/posix-functions/ualarm.texi.
42600         * doc/pastposix-functions/usleep.texi: Renamed from
42601         doc/posix-functions/usleep.texi.
42602         * doc/pastposix-functions/vfork.texi: Renamed from
42603         doc/posix-functions/vfork.texi.
42604         * doc/pastposix-functions/wcswcs.texi: Renamed from
42605         doc/posix-functions/wcswcs.texi.
42606         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42607         (Function Substitutes): Update.
42608
42609 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42610
42611         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42612         m4/strerror.m4.
42613
42614 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42615             Bruno Haible  <bruno@clisp.org>
42616
42617         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42618
42619 2008-12-13  Bruno Haible  <bruno@clisp.org>
42620
42621         * modules/strtoull (Depends-on): Remove unistd.
42622
42623 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42624
42625         * modules/strtoull (Depends-on): Add stdlib.
42626
42627 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42628
42629         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42630
42631 2008-12-10  Jim Meyering  <meyering@redhat.com>
42632
42633         gl_ASSERT: don't say assertions are disabled when they're not
42634         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42635         "checking whether to enable assertions... no", when they are in
42636         fact enabled.  This is solely a bug in the output of configure.
42637         In spite of saying "no", NDEBUG was not defined in that case.
42638         Also, as noted by Eric Blake, leave assertions enabled upon
42639         --enable-assert=INVALID.
42640
42641 2008-12-10  Bruno Haible  <bruno@clisp.org>
42642
42643         Change MODULES.html to refer to POSIX:2008 where possible.
42644         * MODULES.html.sh (POSIX2008_URL): New variable.
42645         (posix_headers): Remove sys/timeb, ucontext.
42646         (posix2001_headers): New variable.
42647         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42648         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42649         index, makecontext, mktemp, pthread_attr_getstackaddr,
42650         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42651         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42652         (posix2001_functions): New variable.
42653         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42654         otherwise.
42655
42656 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42657
42658         add missing include to parse-duration.c
42659         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42660         * modules/parse-duration (Depends-on): Add xalloc.
42661
42662         fix sed script reading maint.mk
42663         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42664         (syntax-check-rules): Use it.
42665
42666 2008-12-09  Bruno Haible  <bruno@clisp.org>
42667
42668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42669         MacOS X 10.4/PowerPC.
42670         Reported by Simon Josefsson.
42671
42672 2008-12-08  Jim Meyering  <meyering@redhat.com>
42673
42674         work around mingw's lack of some S_IF definitions
42675         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42676         Reported by Simon Josefsson.
42677
42678 2008-12-08  Bruno Haible  <bruno@clisp.org>
42679
42680         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42681         applied to variables. Needed on MacOS X 10.4/PowerPC.
42682         Reported by Simon Josefsson.
42683
42684 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42685         and Eric Blake  <ebb9@byu.net>
42686
42687         assert: honor --enable-assert
42688         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42689         order to honor --enable-assert, rather than treating it as a
42690         synonym for --disable-assert.
42691
42692 2008-12-08  Jim Meyering  <meyering@redhat.com>
42693
42694         * lib/posixtm.c: Remove now-useless declaration of mktime.
42695
42696         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42697
42698 2008-12-07  Bruno Haible  <bruno@clisp.org>
42699
42700         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42701         test_once): Mark functions as static.
42702         * tests/test-tls.c (test_tls): Likewise.
42703
42704 2008-12-07  Bruno Haible  <bruno@clisp.org>
42705
42706         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42707         iconv_register_autodetect.
42708
42709 2008-12-07  Jim Meyering  <meyering@redhat.com>
42710
42711         posixtm.c: avoid a warning
42712         * lib/posixtm.c (posixtime): Don't initialize tm0.
42713         It's no longer needed to placate gcc4's -Wuninitialized,
42714         and the attempt to placate would elicit a new warning.
42715
42716         unicodeio.c: mark unused parameters
42717         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42718         (fallback_failure_callback): Likewise.
42719
42720 2008-12-07  Bruno Haible  <bruno@clisp.org>
42721
42722         * gnulib-tool (func_create_testdir): When building the tests
42723         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42724         Reported by Simon Josefsson.
42725
42726 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42727
42728         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42729
42730 2008-12-06  Bruno Haible  <bruno@clisp.org>
42731
42732         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42733         Suggested by Eric Blake.
42734
42735 2008-12-06  Bruno Haible  <bruno@clisp.org>
42736
42737         Fix a c-stack test failure on MacOS X.
42738         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42739         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42740         handler for SIGBUS as well.
42741         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42742         install a signal handler for SIGBUS as well.
42743         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42744
42745 2008-12-06  Bruno Haible  <bruno@clisp.org>
42746
42747         Advocacy documentation.
42748         * doc/gnulib-intro.texi (Benefits): New section.
42749         * doc/gnulib.texi: Update.
42750
42751 2008-12-06  Bruno Haible  <bruno@clisp.org>
42752
42753         Document the 'manywarnings' module.
42754         * doc/manywarnings.texi: New file.
42755         * doc/gnulib.texi: Include it.
42756
42757 2008-12-05  Eric Blake  <ebb9@byu.net>
42758
42759         tests: silence some gcc warnings
42760         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42761         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42762         type mismatches.
42763
42764 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42765             Bruno Haible  <bruno@clisp.org>
42766
42767         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42768
42769 2008-11-29  Jim Meyering  <meyering@redhat.com>
42770
42771         unicodeio.c: mark unused parameters
42772         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42773         (fallback_failure_callback): Likewise.
42774
42775         fts: fix a thinko
42776         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42777         (set_stat_type): Return S_IF*-valued "type" directly.
42778         Prompted by James Youngman's spotting a related bug.
42779         Confirmed by further testing through find.
42780
42781         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42782         * lib/fts.c (D_TYPE): Define.
42783         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42784         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42785         (s_ifmt_shift_bits): New function.
42786         (set_stat_type): New function.
42787         (fts_build): When not calling fts_stat, call set_stat_type
42788         to propagate dirent.d_type info to fts_read caller.
42789         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42790         fts_statp->st_mode type information may be valid.
42791
42792 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42793
42794         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42795         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42796         <sds@gnu.org>.
42797
42798 2008-11-20  Bruno Haible  <bruno@clisp.org>
42799
42800         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42801         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42802         INCLUDE_NEXT.
42803         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42804         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42805         * modules/math (Makefile.am): Substitute
42806         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42807         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42808
42809 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42810             Bruno Haible  <bruno@clisp.org>
42811
42812         * lib/stdint.in.h: Define all type macros so that their expansion is
42813         a single typedef'ed token. Fixes a compilation failure in Boost which
42814         does "using ::int8_t;".
42815
42816 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42817
42818         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42819         gl_MANYWARN_ALL_GCC.
42820         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42821         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42822         * modules/manywarnings: New file.
42823         * MODULES.html.sh: Mention manywarnings module.
42824
42825 2008-11-18  Bruno Haible  <bruno@clisp.org>
42826
42827         * doc/gnulib-tool.texi (Unit tests): New section.
42828
42829 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42830
42831         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42832         paths like 'lib/po/foo.po'.
42833
42834 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42835
42836         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42837         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42838
42839 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42840
42841         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42842         parameter works.
42843
42844 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42845
42846         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42847
42848 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42849
42850         * modules/parse-duration-tests: New file.
42851         * tests/test-parse-duration.sh: New file.
42852         * tests/test-parse-duration.c: New file.
42853
42854         New module 'parse-duration'.
42855         * lib/parse-duration.h: New file.
42856         * lib/parse-duration.c: New file.
42857         * modules/parse-duration: New file.
42858
42859 2008-11-17  Bruno Haible  <bruno@clisp.org>
42860
42861         * tests/test-select-out.sh: Comment out the first pipe test.
42862         Reported by Simon Josefsson.
42863
42864 2008-11-17  Bruno Haible  <bruno@clisp.org>
42865
42866         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42867         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42868         gl_HOSTENT.
42869
42870 2008-11-17  Bruno Haible  <bruno@clisp.org>
42871
42872         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42873         -lnetwork and -lnet. Needed for Haiku and BeOS.
42874
42875 2008-11-16  Bruno Haible  <bruno@clisp.org>
42876
42877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
42878
42879 2008-11-16  Bruno Haible  <bruno@clisp.org>
42880
42881         Avoid test failure on Haiku.
42882         * tests/test-fsync.c: Include <errno.h>.
42883         (main): Don't require that fsync (0) fails.
42884
42885 2008-11-15  Bruno Haible  <bruno@clisp.org>
42886
42887         New module 'hostent'.
42888         * modules/hostent: New file.
42889         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
42890
42891 2008-11-15  Bruno Haible  <bruno@clisp.org>
42892
42893         New module 'servent'.
42894         * modules/servent: New file.
42895         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
42896
42897 2008-11-15  Bruno Haible  <bruno@clisp.org>
42898
42899         Avoid generating same test program with two different rules.
42900         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
42901         test-frexp to test-frexp-nolibm.
42902         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
42903         test-frexpl to test-frexpl-nolibm.
42904
42905 2008-11-15  Bruno Haible  <bruno@clisp.org>
42906
42907         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
42908         $(FREXPL_LIBM).
42909
42910 2008-11-15  Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/netdb.in.h: Activate the definitions also when the system's
42913         <netdb.h> has 'struct addrinfo'.
42914         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42915         EAI_OVERFLOW or AI_NUMERICSERV.
42916         * doc/posix-headers/netdb.texi: Document the problem.
42917
42918 2008-11-15  Bruno Haible  <bruno@clisp.org>
42919
42920         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42921
42922         Make the 'sched' module work on platforms where <sched.h> exists but
42923         is incomplete (such as Haiku).
42924         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42925         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42926         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42927         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42928         HAVE_STRUCT_SCHED_PARAM.
42929         * modules/sched (Depends-on): Add include_next.
42930         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42931         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42932         * doc/posix-headers/sched.texi: Document the issue.
42933
42934 2008-11-13  Jim Meyering  <meyering@redhat.com>
42935
42936         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42937         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42938         test would fail due to the difference in the Report bugs to ...
42939         line.  The expected address is empty, "<>", while the actual
42940         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42941
42942 2008-11-12  Bruno Haible  <bruno@clisp.org>
42943
42944         lstat: don't compile lstat.c on systems lacking lstat
42945         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42946         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42947         Reported by Daniel P. Berrange via Jim Meyering.
42948
42949 2008-11-12  Jim Meyering  <meyering@redhat.com>
42950
42951         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42952
42953 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42954
42955         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42956         instead.
42957
42958 2008-11-12  Bruno Haible  <bruno@clisp.org>
42959
42960         * lib/unicodeio.c: Include unistr.h.
42961         (utf8_wctomb): Remove function.
42962         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42963
42964 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42965
42966         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42967         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42968         <bruno@clisp.org>.
42969         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42970
42971 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42972
42973         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42974         * doc/gnulib.texi: Add section for warnings.
42975
42976 2008-11-11  Bruno Haible  <bruno@clisp.org>
42977
42978         * lib/sockets.h: Add a comment.
42979
42980 2008-11-11  Karl Berry  <karl@gnu.org>
42981
42982         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42983
42984 2008-11-11  Eric Blake  <ebb9@byu.net>
42985
42986         fdl.texi: avoid git symlinks
42987         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42988
42989 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42990
42991         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42992
42993 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42994
42995         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42996         (gl_WARN_ADD): Substitute $2 if literal.
42997
42998 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42999
43000         * m4/warning.m4: Remove.
43001
43002 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43003
43004         * m4/warnings.m4: Almost complete rewrite. :-)
43005
43006 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43007
43008         * modules/warnings: New module.
43009         * m4/warnings.m4: New file.
43010         * MODULES.html.sh: Mention warnings module.
43011         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43012         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43013
43014 2008-11-10  Eric Blake  <ebb9@byu.net>
43015
43016         fdl.texi: make a symlink to the latest version
43017         * doc/standards.texi: Revert today's earlier change.
43018         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43019         * doc/fdl.texi: ...and replace this with a symlink to the newer
43020         fdl-1.3.texi.
43021
43022 2008-11-10  Bruno Haible  <bruno@clisp.org>
43023
43024         * tests/test-select-fd.c (main): Accept the result file name as fourth
43025         argument.
43026         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43027         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43028
43029 2008-11-10  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43032         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43033         as autoconf-substituted macros.
43034         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43035         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43036         gl_NETDB_H_DEFAULTS. Set these variables.
43037         * modules/netdb (Makefile.am): Substitute these variables.
43038
43039 2008-11-10  Eric Blake  <ebb9@byu.net>
43040
43041         standards.texi: include correct file for FDL 1.3
43042         * doc/standards.texi (GNU Free Documentation License): Change
43043         include file to pull in FDL 1.3, not 1.2.
43044
43045         fdl.texi: revert accidental change to license
43046         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43047
43048 2008-11-10  Bruno Haible  <bruno@clisp.org>
43049
43050         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43051         cross-compiling guesses also when the native compile gives no result.
43052
43053 2008-11-10  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/spawni.c (__spawni): Force variable into the stack.
43056
43057 2008-11-10  Bruno Haible  <bruno@clisp.org>
43058
43059         Add support for Haiku.
43060         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43061         glibc and BeOS, but also on Haiku.
43062         * lib/fpurge.c (fpurge): Likewise.
43063         * lib/freadable.c (freadable): Likewise.
43064         * lib/freadahead.c (freadahead): Likewise.
43065         * lib/freading.c (freading): Likewise.
43066         * lib/freadptr.c (freadptr): Likewise.
43067         * lib/freadseek.c (freadptrinc): Likewise.
43068         * lib/fseeko.c (rpl_fseeko): Likewise.
43069         * lib/fseterr.c (fseterr): Likewise.
43070         * lib/fwritable.c (fwritable): Likewise.
43071         * lib/fwriting.c (fwriting): Likewise.
43072         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43073
43074 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43075
43076         * lib/config.charset: Treat Haiku like BeOS.
43077
43078 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43079
43080         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43081         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43082
43083 2008-11-08  Bruno Haible  <bruno@clisp.org>
43084
43085         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43086         AC_CACHE_CHECK.
43087
43088 2008-11-08  Bruno Haible  <bruno@clisp.org>
43089
43090         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43091
43092 2008-11-08  Bruno Haible  <bruno@clisp.org>
43093
43094         * tests/test-select-fd.c: New file.
43095         * tests/test-select-in.sh: New file.
43096         * tests/test-select-out.sh: New file.
43097         * tests/test-select-stdin.c: New file.
43098         * modules/select-tests (Files): Add the new files.
43099         (Depends-on): Add gettimeofday.
43100         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43101         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43102         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43103
43104 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43105             Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43108
43109 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43110
43111         * build-aux/pmccabe2html: Added support for C++ source files.
43112
43113 2008-11-05  Ben Pfaff  <blp@gnu.org>
43114
43115         Fix lib/close.c build on Windows.
43116         * modules/close (Files): Add lib/w32sock.h.
43117
43118 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43119
43120         Accept Bison's NEWS format.
43121         * build-aux/announce-gen (print_news_deltas): Tweak
43122         $re_prefix.
43123
43124 2008-11-04  Bruno Haible  <bruno@clisp.org>
43125
43126         * modules/random_r (Maintainer): Add glibc.
43127
43128 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43129
43130         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43131         by karl@freefriends.org (Karl Berry).
43132         * doc/alloca.texi: Likewise.
43133         * doc/c-ctype.texi: Likewise.
43134         * doc/c-strcase.texi: Likewise.
43135         * doc/c-strcaseeq.texi: Likewise.
43136         * doc/c-strcasestr.texi: Likewise.
43137         * doc/c-strstr.texi: Likewise.
43138         * doc/c-strtod.texi: Likewise.
43139         * doc/c-strtold.texi: Likewise.
43140         * doc/ctime.texi: Likewise.
43141         * doc/error.texi: Likewise.
43142         * doc/fdl.texi: Likewise.
43143         * doc/gcd.texi: Likewise.
43144         * doc/getdate.texi: Likewise.
43145         * doc/gnulib-intro.texi: Likewise.
43146         * doc/gnulib-tool.texi: Likewise.
43147         * doc/gnulib.texi: Likewise.
43148         * doc/inet_ntoa.texi: Likewise.
43149         * doc/maintain.texi: Likewise.
43150         * doc/make-stds.texi: Likewise.
43151         * doc/quote.texi: Likewise.
43152         * doc/regexprops-generic.texi: Likewise.
43153         * doc/standards.texi: Likewise.
43154         * doc/verify.texi: Likewise.
43155         * doc/visibility.texi: Likewise.
43156         * doc/gnulib.texi (GNU Free Documentation License): Include
43157         fdl-1.3.texi instead of fdl.texi.
43158
43159 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43160
43161         * doc/fdl-1.3.texi: New file, from
43162         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43163         * modules/fdl-1.3: Add.
43164         * MODULES.html.sh: Add fdl-1.3.
43165
43166 2008-11-03  Bruno Haible  <bruno@clisp.org>
43167
43168         Make determination of absolute name of header file work with AIX xlc.
43169         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43170         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43171         preprocessing.
43172         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43173         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43174
43175 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43176
43177         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43178         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43179         <ludo@gnu.org>.
43180
43181 2008-11-02  Bruno Haible  <bruno@clisp.org>
43182
43183         Mark 'strpbrk' obsolete.
43184         * modules/strpbrk (Status, Notice): New sections.
43185         * modules/strtok_r (Depends-on): Add strpbrk.
43186
43187 2008-11-02  Bruno Haible  <bruno@clisp.org>
43188
43189         Mark 'strdup' obsolete.
43190         * modules/strdup (Status, Notice): New sections.
43191         * modules/findprog (Depends-on): Add strdup.
43192         * modules/getaddrinfo (Depends-on): Likewise.
43193         * modules/localename (Depends-on): Likewise.
43194         * modules/relocatable-lib (Depends-on): Likewise.
43195         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43196         * modules/relocatable-prog (Depends-on): Likewise.
43197         * modules/trim (Depends-on): Likewise.
43198         * modules/unictype/gen-ctype (Depends-on): Likewise.
43199         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43200
43201 2008-11-02  Bruno Haible  <bruno@clisp.org>
43202
43203         Mark 'strcspn' obsolete.
43204         * modules/strcspn (Status, Notice): New sections.
43205
43206 2008-11-02  Bruno Haible  <bruno@clisp.org>
43207
43208         Mark 'rmdir' obsolete.
43209         * modules/rmdir (Status, Notice): New sections.
43210         * modules/clean-temp (Depends-on): Add rmdir.
43211         * modules/openat (Depends-on): Likewise.
43212
43213 2008-11-02  Bruno Haible  <bruno@clisp.org>
43214
43215         Mark 'raise' obsolete.
43216         * modules/raise (Status, Notice): New sections.
43217         (Include): Specify <signal.h>.
43218         * modules/stdio (Depends-on): Add raise.
43219         * modules/write (Depends-on): Likewise.
43220
43221 2008-11-02  Bruno Haible  <bruno@clisp.org>
43222
43223         Mark 'memset' obsolete.
43224         * modules/memset (Status, Notice): New sections.
43225
43226 2008-11-02  Bruno Haible  <bruno@clisp.org>
43227
43228         Mark 'memmove' obsolete.
43229         * modules/memmove (Status, Notice): New sections.
43230         * modules/argp (Depends-on): Add memmove.
43231         * modules/argz (Depends-on): Likewise.
43232         * modules/canonicalize (Depends-on): Likewise.
43233         * modules/canonicalize-lgpl (Depends-on): Likewise.
43234         * modules/fts (Depends-on): Likewise.
43235         * modules/getcwd (Depends-on): Likewise.
43236         * modules/human (Depends-on): Likewise.
43237         * modules/regex (Depends-on): Likewise.
43238         * modules/striconveh (Depends-on): Likewise.
43239         * modules/trim (Depends-on): Likewise.
43240         * modules/unistr/u8-move (Depends-on): Likewise.
43241         * modules/unistr/u16-move (Depends-on): Likewise.
43242         * modules/unistr/u32-move (Depends-on): Likewise.
43243
43244 2008-11-02  Bruno Haible  <bruno@clisp.org>
43245
43246         Mark 'memcpy' obsolete.
43247         * modules/memcpy (Status, Notice): New sections.
43248
43249 2008-11-02  Bruno Haible  <bruno@clisp.org>
43250
43251         Mark 'memcmp' obsolete.
43252         * modules/memcmp (Status, Notice): New sections.
43253         * modules/argmatch (Depends-on): Add memchr.
43254         * modules/backupfile (Depends-on): Likewise.
43255         * modules/c-strcasestr (Depends-on): Likewise.
43256         * modules/crypto/des (Depends-on): Likewise.
43257         * modules/csharpcomp (Depends-on): Likewise.
43258         * modules/fnmatch (Depends-on): Likewise.
43259         * modules/git-merge-changelog (Depends-on): Likewise.
43260         * modules/isnand (Depends-on): Likewise.
43261         * modules/isnand-nolibm (Depends-on): Likewise.
43262         * modules/isnanf (Depends-on): Likewise.
43263         * modules/isnanf-nolibm (Depends-on): Likewise.
43264         * modules/isnanl (Depends-on): Likewise.
43265         * modules/isnanl-nolibm (Depends-on): Likewise.
43266         * modules/mbchar (Depends-on): Likewise.
43267         * modules/memcoll (Depends-on): Likewise.
43268         * modules/quotearg (Depends-on): Likewise.
43269         * modules/regex (Depends-on): Likewise.
43270         * modules/relocatable-prog (Depends-on): Likewise.
43271         * modules/same (Depends-on): Likewise.
43272         * modules/signbit (Depends-on): Likewise.
43273         * modules/strcasestr-simple (Depends-on): Likewise.
43274         * modules/unictype/gen-ctype (Depends-on): Likewise.
43275         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43276         * modules/uniname/uniname (Depends-on): Likewise.
43277         * modules/unistr/u8-cmp (Depends-on): Likewise.
43278
43279 2008-11-02  Bruno Haible  <bruno@clisp.org>
43280
43281         Mark 'memchr' obsolete.
43282         * modules/memchr (Status, Notice): New sections.
43283         * modules/argp (Depends-on): Add memchr.
43284         * modules/base64 (Depends-on): Likewise.
43285         * modules/c-strcasestr (Depends-on): Likewise.
43286         * modules/chdir-long (Depends-on): Likewise.
43287         * modules/fnmatch (Depends-on): Likewise.
43288         * modules/getsubopt (Depends-on): Likewise.
43289         * modules/git-merge-changelog (Depends-on): Likewise.
43290         * modules/glob (Depends-on): Likewise.
43291         * modules/strcasestr-simple (Depends-on): Likewise.
43292         * modules/strnlen (Depends-on): Likewise.
43293
43294 2008-11-02  Bruno Haible  <bruno@clisp.org>
43295
43296         Mark 'atexit' obsolete.
43297         * modules/atexit (Status, Notice): New sections.
43298         * modules/chdir-long (Depends-on): Add atexit.
43299         * modules/wait-process (Depends-on): Likewise.
43300
43301 2008-11-02  Bruno Haible  <bruno@clisp.org>
43302
43303         * gnulib-tool: New option --with-obsolete.
43304         (func_usage): Document it.
43305         (func_modules_transitive_closure): Drop obsolete dependencies if
43306         incobsolete is not true.
43307         (func_import): Read and save the incobsolete variable to the cache.
43308
43309 2008-11-02  Bruno Haible  <bruno@clisp.org>
43310
43311         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43312         * gnulib-tool: New option --extract-status.
43313         (func_usage): Document it.
43314         (sed_extract_prog): Recognize it.
43315         (func_get_status): New function.
43316
43317 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43318
43319         * modules/sockets (License): Change from LGPL to LGPLv2+.
43320
43321 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43322
43323         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43324
43325 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43326
43327         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43328         Mention times and sys_times.
43329         * modules/sys_times, modules/sys_times-tests: New modules.
43330         * modules/times, modules/times-tests: Likewise
43331         * m4/sys_times_h.m4: New file.
43332         * lib/sys_times.in.h: Likewise
43333         * lib/times.c: Likewise.
43334         * tests/test-sys_times.c: Likewise.
43335         * tests/test-times.c: Likewise.
43336         * doc/posix-headers/sys_times.texi: Update.
43337         * doc/posix-functions/times.texi: Update.
43338
43339 2008-10-28  Jim Meyering  <meyering@redhat.com>
43340
43341         * modules/tempname (Depends-on): Add lstat.
43342
43343         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43344
43345 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43346
43347         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43348         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43349         using idiom used elsewhere in gnulib.
43350
43351 2008-10-27  Jim Meyering  <meyering@redhat.com>
43352
43353         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43354
43355 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43356
43357         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43358         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43359         programs.
43360         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43361
43362 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43363
43364         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43365
43366 2008-10-27  Bruno Haible  <bruno@clisp.org>
43367
43368         * tests/test-lstat.c: Include <stdio.h>.
43369
43370 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43371
43372         * modules/lstat-tests: New module.
43373         * tests/test-lstat.c: New file.
43374
43375 2008-10-26  Jim Meyering  <meyering@redhat.com>
43376
43377         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43378
43379 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43380             Bruno Haible  <bruno@clisp.org>
43381
43382         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43383         * modules/configmake (Include): Add a note that the include must come
43384         after all system headers.
43385         * lib/javaversion.c: Include configmake.h after all other includes.
43386
43387 2008-10-26  Bruno Haible  <bruno@clisp.org>
43388
43389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43390         HAVE_STRUCT_RANDOM_DATA to 1.
43391         (gl_STDLIB_H): Simplify.
43392
43393 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43394
43395         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43396         substitute HAVE_STRUCT_RANDOM_DATA.
43397         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43398         random_data.
43399         * modules/stdlib (Makefile.am): Substitute
43400         HAVE_STRUCT_RANDOM_DATA.
43401
43402 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43403
43404         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43405         * doc/gnulib-intro.texi (Copyright): Likewise.
43406
43407 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43408
43409         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43410         findings.
43411
43412 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43413             Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/unistd.in.h: Include <winsock2.h>.
43416         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43417         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43418         Provide dummy declarations.
43419         (gethostname): Override.
43420         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43421         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43422         gl_PREREQ_SYS_H_WINSOCK2.
43423         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43424         * doc/posix-functions/gethostname.texi: More details.
43425
43426 2008-10-25  Bruno Haible  <bruno@clisp.org>
43427
43428         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43429         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43430         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43431
43432         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43433         here ...
43434         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43435         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43436         gl_UNISTD_H_DEFAULTS.
43437
43438 2008-10-25  Eric Blake  <ebb9@byu.net>
43439
43440         signbit: avoid spurious compiler failure
43441         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43442         declarations inside function.
43443
43444 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43445             Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43448         * modules/random_r (Depends-on): Add stdint.
43449
43450 2008-10-24  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43453         Eggert.
43454         * modules/strerror (License): Likewise.
43455
43456 2008-10-24  Jim Meyering  <meyering@redhat.com>
43457
43458         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43459         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43460
43461 2008-10-24  Eric Blake  <ebb9@byu.net>
43462
43463         getgroups: fix compilation when getgroups is available
43464         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43465         but with <config.h> override of getgroups disabled.
43466
43467 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43468
43469         * doc/gnulib.texi (Header files): Add note about C++ problems.
43470         Explained by Bruno Haible <bruno@clisp.org>.
43471
43472 2008-10-23  Bruno Haible  <bruno@clisp.org>
43473
43474         Define a dummy SA_NODEFER macro on Interix.
43475         * lib/signal.in.h (SA_NODEFER): Define fallback.
43476         Reported by Aleksey Cheusov <cheusov@tut.by> via
43477         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43478
43479 2008-10-23  Bruno Haible  <bruno@clisp.org>
43480
43481         * modules/freadahead (License): Change to LGPLv2+.
43482         Suggested by Simon Josefsson.
43483
43484 2008-10-23  Jim Meyering  <meyering@redhat.com>
43485
43486         random_r: new module
43487         * modules/random_r: New file.
43488         * m4/random_r.m4: New file.
43489         * lib/random_r.c: New file, from glibc.
43490         * modules/random_r-tests: New file.
43491         * tests/test-random_r.c: New file.
43492         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43493          Declare.
43494         (RAND_MAX): Define.
43495         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43496         * modules/stdlib: Substitute them, too.
43497         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43498         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43499         * doc/glibc-functions/random_r.texi: Likewise.
43500         * doc/glibc-functions/setstate_r.texi: Likewise.
43501         * doc/glibc-functions/srandom_r.texi: Likewise.
43502         * config/srclist.txt: Mention it.
43503
43504 2008-10-23  David Lutterkort  <lutter@redhat.com>
43505
43506         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43507         link requirement
43508
43509 2008-10-23  Jim Meyering  <meyering@redhat.com>
43510
43511         selinux-h: mark parameters of stub functions as intentionally unused
43512         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43513         * lib/se-context.in.h: Likewise.
43514
43515 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43516
43517         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43518
43519 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43520
43521         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43522
43523 2008-10-22  Eric Blake  <ebb9@byu.net>
43524
43525         glthread/thread: avoid compiler warning
43526         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43527         Add unreachable abort to silence compiler.
43528
43529 2008-10-22  Eric Blake  <ebb9@byu.net>
43530
43531         netdb: also supply struct addrinfo for cygwin 1.5.x
43532         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43533         older cygwin.
43534         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43535         cygwin.
43536         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43537
43538 2008-10-22  Bruno Haible  <bruno@clisp.org>
43539
43540         * users.txt: Update entry about pspp.
43541
43542 2008-10-21  Bruno Haible  <bruno@clisp.org>
43543
43544         Simplification.
43545         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43546         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43547
43548         Simplification.
43549         * lib/ioctl.c (ioctl): Don't undefine.
43550         * lib/socket.c (socket): Don't undefine.
43551
43552         Remove unused module indicator macros.
43553         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43554         GNULIB_$1 as a C macro.
43555
43556         * doc/posix-functions/close.texi: Undo last change.
43557         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43558         Windows platforms.
43559
43560 2008-10-21  Bruno Haible  <bruno@clisp.org>
43561
43562         Add gethostname() declaration to <unistd.h>.
43563         * lib/unistd.in.h (gethostname): New declaration.
43564         * lib/gethostname.c: Include <unistd.h>.
43565         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43566         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43568         and HAVE_GETHOSTNAME.
43569         * modules/gethostname (Depends-on): Add unistd.
43570         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43571         (Include): Specify <unistd.h>.
43572         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43573         HAVE_GETHOSTNAME.
43574         * tests/test-gethostname.c: Include <unistd.h> first.
43575
43576 2008-10-21  Bruno Haible  <bruno@clisp.org>
43577
43578         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43579         * modules/select-tests (Depends-on): Likewise.
43580         Reported by Simon Josefsson.
43581
43582 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43583
43584         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43585         * lib/accept.c: New file, based on winsock.c.
43586         * lib/bind.c: New file, based on winsock.c.
43587         * lib/connect.c: New file, based on winsock.c.
43588         * lib/getpeername.c: New file, based on winsock.c.
43589         * lib/getsockname.c: New file, based on winsock.c.
43590         * lib/getsockopt.c: New file, based on winsock.c.
43591         * lib/ioctl.c: New file, based on winsock.c.
43592         * lib/listen.c: New file, based on winsock.c.
43593         * lib/recv.c: New file, based on winsock.c.
43594         * lib/recvfrom.c: New file, based on winsock.c.
43595         * lib/send.c: New file, based on winsock.c.
43596         * lib/sendto.c: New file, based on winsock.c.
43597         * lib/setsockopt.c: New file, based on winsock.c.
43598         * lib/shutdown.c: New file, based on winsock.c.
43599         * lib/socket.c: New file, based on winsock.c.
43600         * lib/w32sock.h: New file, based on winsock.c.
43601         * lib/winsock.c: Remove file.
43602         * modules/accept: Likewise.
43603         * modules/bind: Likewise.
43604         * modules/connect: Likewise.
43605         * modules/getpeername: Likewise.
43606         * modules/getsockname: Likewise.
43607         * modules/getsockopt: Likewise.
43608         * modules/ioctl: Likewise.
43609         * modules/listen: Likewise.
43610         * modules/recv: Likewise.
43611         * modules/recvfrom: Likewise.
43612         * modules/send: Likewise.
43613         * modules/sendto: Likewise.
43614         * modules/setsockopt: Likewise.
43615         * modules/shutdown: Likewise.
43616         * modules/socket: Use socket.c instead of winsock.c.
43617         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43618         * doc/posix-functions/accept.texi: Doc fix.
43619         * doc/posix-functions/bind.texi: Doc fix.
43620         * doc/posix-functions/close.texi: Doc fix.
43621         * doc/posix-functions/connect.texi: Doc fix.
43622         * doc/posix-functions/getpeername.texi: Doc fix.
43623         * doc/posix-functions/getsockname.texi: Doc fix.
43624         * doc/posix-functions/getsockopt.texi: Doc fix.
43625         * doc/posix-functions/ioctl.texi: Doc fix.
43626         * doc/posix-functions/listen.texi: Doc fix.
43627         * doc/posix-functions/recv.texi: Doc fix.
43628         * doc/posix-functions/recvfrom.texi: Doc fix.
43629         * doc/posix-functions/send.texi: Doc fix.
43630         * doc/posix-functions/sendto.texi: Doc fix.
43631         * doc/posix-functions/setsockopt.texi: Doc fix.
43632         * doc/posix-functions/shutdown.texi: Doc fix.
43633         * doc/posix-functions/socket.texi: Doc fix.
43634
43635 2008-10-20  Bruno Haible  <bruno@clisp.org>
43636
43637         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43638         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43639         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43640         as an alias for SIGABRT.
43641         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43642         (sigaction): Map it to SIGABRT.
43643         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43644
43645 2008-10-20  Bruno Haible  <bruno@clisp.org>
43646
43647         * lib/fts.c: Don't include lstat.h.
43648         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43649
43650         Move the lstat() declaration to <sys/stat.h>.
43651         * lib/lstat.h: Remove file.
43652         * lib/sys_stat.in.h: Add special invocation convention.
43653         (lstat): New declaration.
43654         * lib/lstat.c (orig_lstat): New function.
43655         (rpl_lstat): Use orig_lstat instead of lstat.
43656         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43657         AC_C_INLINE. Set REPLACE_LSTAT.
43658         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43659         and REPLACE_LSTAT.
43660         * modules/lstat (Files): Remove lib/lstat.h.
43661         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43662         (Include): Specify <sys/stat.h> instead of lstat.h.
43663         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43664         REPLACE_LSTAT.
43665         * NEWS: Mention the change.
43666
43667 2008-10-20  Bruno Haible  <bruno@clisp.org>
43668
43669         * modules/posix_spawn-tests: New file.
43670         * tests/test-posix_spawn3.c: New file.
43671
43672 2008-10-20  Bruno Haible  <bruno@clisp.org>
43673
43674         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43675         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43676         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43677         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43678         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43679
43680 2008-10-20  Bruno Haible  <bruno@clisp.org>
43681
43682         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43683         of posix_spawn on AIX 5.3.
43684
43685 2008-10-20  Bruno Haible  <bruno@clisp.org>
43686
43687         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43688
43689 2008-10-20  Bruno Haible  <bruno@clisp.org>
43690
43691         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43692         of AC_LANG_PROGRAM.
43693
43694 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43695
43696         * lib/netdb.in.h: Don't define GNU specific constants until they
43697         are supported or needed.  Reported by Bruno Haible
43698         <bruno@clisp.org>.
43699
43700 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43701
43702         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43703
43704 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43705
43706         * lib/getaddrinfo.h: Remove file.
43707         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43708         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43709         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43710         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43711         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43712         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43713         * tests/test-getaddrinfo.c: Likewise.
43714         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43715         * NEWS: Mention change.
43716
43717 2008-10-19  Bruno Haible  <bruno@clisp.org>
43718
43719         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43720
43721 2008-10-19  Bruno Haible  <bruno@clisp.org>
43722
43723         * lib/wait-process.c: Include simply <sys/wait.h>.
43724         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43725         WIFSTOPPED): Remove fallback definitions.
43726         * modules/wait-process (Depends-on): Add sys_wait.
43727
43728         New module 'sys_wait'.
43729         * modules/sys_wait: New file.
43730         * lib/sys_wait.in.h: New file, partially copied from
43731         lib/wait-process.c.
43732         * m4/sys_wait_h.m4: New file.
43733         * doc/posix-headers/sys_wait.texi: Mention the new module.
43734
43735 2008-10-19  Bruno Haible  <bruno@clisp.org>
43736
43737         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43738
43739 2008-10-19  Bruno Haible  <bruno@clisp.org>
43740
43741         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43742         * lib/wait-process.c (WAIT_T): Remove type.
43743         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43744         (wait_subprocess): Update.
43745
43746 2008-10-19  Bruno Haible  <bruno@clisp.org>
43747
43748         New module 'atoll'.
43749         * modules/atoll: New file.
43750         * lib/stdlib.in.h (atoll): New declaration.
43751         * lib/atoll.c: New file, from glibc with modifications.
43752         * m4/atoll.m4: New file.
43753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43754         HAVE_ATOLL.
43755         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43756         * doc/posix-functions/atoll.texi: Mention the new module.
43757
43758 2008-10-19  Bruno Haible  <bruno@clisp.org>
43759
43760         Add strtoull() declaration to <stdlib.h>.
43761         * lib/stdlib.in.h (strtoull): New declaration.
43762         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43763         Set HAVE_STRTOULL.
43764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43765         HAVE_STRTOULL.
43766         * modules/strtoull (Depends-on): Add stdlib.
43767         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43768         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43769         HAVE_STRTOULL.
43770
43771 2008-10-19  Bruno Haible  <bruno@clisp.org>
43772
43773         Add strtoll() declaration to <stdlib.h>.
43774         * lib/stdlib.in.h (strtoll): New declaration.
43775         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43776         Set HAVE_STRTOLL.
43777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43778         HAVE_STRTOLL.
43779         * modules/strtoll (Depends-on): Add stdlib.
43780         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43781         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43782
43783 2008-10-19  Bruno Haible  <bruno@clisp.org>
43784
43785         * modules/bcopy (Depends-on): Add strings.
43786         (Include): Specify <strings.h>.
43787
43788 2008-10-19  Bruno Haible  <bruno@clisp.org>
43789
43790         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43791
43792 2008-10-19  Bruno Haible  <bruno@clisp.org>
43793
43794         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43795         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43796         mingw.
43797
43798 2008-10-19  Bruno Haible  <bruno@clisp.org>
43799
43800         * lib/atanl.c: Don't include isnanl.h.
43801         * lib/cosl.c: Likewise.
43802         * lib/ldexpl.c: Likewise.
43803         * lib/logl.c: Likewise.
43804         * lib/sinl.c: Likewise.
43805         * lib/sqrtl.c: Likewise.
43806         * lib/tanl.c: Likewise.
43807
43808         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43809         * lib/isnanf.h: Remove file.
43810         * lib/isnand.h: Remove file.
43811         * lib/isnanl.h: Remove file.
43812         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43813         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43814         macros.
43815         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43816         HAVE_ISNANF, don't define it as a C macro.
43817         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43818         HAVE_ISNAND, don't define it as a C macro.
43819         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43820         HAVE_ISNANL, don't define it as a C macro.
43821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43822         HAVE_ISNAN[FDL].
43823         * modules/isnanf (Files): Remove lib/isnanf.h.
43824         (Depends-on): Add math.
43825         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43826         (Include): Specify <math.h> instead of isnanf.h.
43827         * modules/isnand (Files): Remove lib/isnand.h.
43828         (Depends-on): Add math.
43829         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43830         (Include): Specify <math.h> instead of isnand.h.
43831         * modules/isnanl (Files): Remove lib/isnanl.h.
43832         (Depends-on): Add math.
43833         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43834         (Include): Specify <math.h> instead of isnanl.h.
43835         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43836         HAVE_ISNAN[FDL].
43837         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43838         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43839         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43840         * NEWS: Mention the change.
43841
43842 2008-10-18  Bruno Haible  <bruno@clisp.org>
43843
43844         Add getusershell(), setusershell(), endusershell() declarations to
43845         <unistd.h>.
43846         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43847         declarations.
43848         * lib/getusershell.c: Include unistd.h.
43849         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43850         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43851         HAVE_GETUSERSHELL.
43852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43853         and HAVE_GETUSERSHELL.
43854         * modules/getusershell (Depends-on): Add unistd, extensions.
43855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43856         (Include): Specify <unistd.h>.
43857         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43858         HAVE_GETUSERSHELL.
43859
43860 2008-10-18  Bruno Haible  <bruno@clisp.org>
43861
43862         Add a getloadavg() declaration to <stdlib.h>.
43863         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43864         getloadavg declaration.
43865         (getloadavg): New declaration.
43866         * lib/getloadavg.c: Include <stdlib.h> first.
43867         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43868         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43869         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43871         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43872         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43873         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43874         (Include): Specify <stdlib.h>.
43875         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
43876         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43877
43878 2008-10-18  Bruno Haible  <bruno@clisp.org>
43879
43880         * lib/dirchownmod.c: Don't include lchmod.h.
43881
43882         Move the lchmod() declaration to <sys/stat.h>.
43883         * lib/lchmod.h: Remove file.
43884         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
43885         (lchmod): New declaration, moved here from lib/lchown.h.
43886         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
43887         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
43888         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
43889         and HAVE_LCHMOD.
43890         * modules/lchmod (Files): Remove lib/lchmod.h.
43891         (Depends-on): Add sys_stat, extensions.
43892         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43893         (Include): Specify <sys/stat.h> instead of lchmod.h.
43894         * modules/sys_stat (Depends-on): Add link-warning.
43895         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
43896         definition of GL_LINK_WARNING.
43897         * NEWS: Mention the change.
43898
43899 2008-10-18  Bruno Haible  <bruno@clisp.org>
43900
43901         * lib/fchdir.c: Don't include dirfd.h.
43902         * lib/fts.c: Likewise.
43903         * lib/getcwd.c: Likewise.
43904         * lib/glob.c: Likewise.
43905
43906         Move the dirfd() declaration to <dirent.h>.
43907         * lib/dirfd.h: Remove file.
43908         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
43909         (dirfd): New declaration.
43910         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
43911         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43912         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43913         HAVE_DECL_DIRFD.
43914         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43915         HAVE_DECL_DIRFD.
43916         * modules/dirfd (Files): Remove lib/dirfd.h.
43917         (Depends-on): Add dirent, extensions.
43918         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43919         (Include): Specify <dirent.h> instead of dirfd.h.
43920         * modules/dirent (Depends-on): Add link-warning.
43921         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43922         definition of GL_LINK_WARNING.
43923         * NEWS: Mention the change.
43924
43925 2008-10-18  Bruno Haible  <bruno@clisp.org>
43926
43927         Move the euidaccess() declaration to <unistd.h>.
43928         * lib/euidaccess.h: Remove file.
43929         * lib/unistd.in.h (euidaccess): New declaration.
43930         * lib/euidaccess.c: Don't include euidaccess.h.
43931         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43932         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43934         and HAVE_EUIDACCESS.
43935         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43936         (Depends-on): Add unistd.
43937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43938         (Include): Specify <unistd.h> instead of euidaccess.h.
43939         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43940         HAVE_EUIDACCESS.
43941         * NEWS: Mention the change.
43942
43943 2008-10-18  Bruno Haible  <bruno@clisp.org>
43944
43945         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43946
43947         Move the getdomainname() declaration to <unistd.h>.
43948         * lib/getdomainname.h: Remove file.
43949         * lib/unistd.in.h (getdomainname): New declaration.
43950         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43951         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43952         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43953         HAVE_GETDOMAINNAME.
43954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43955         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43956         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43957         (Depends-on): Add unistd, extensions.
43958         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43959         (Includes): Specify <unistd.h> instead of getdomainname.h.
43960         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43961         HAVE_GETDOMAINNAME.
43962         * NEWS: Mention the change.
43963
43964 2008-10-18  Bruno Haible  <bruno@clisp.org>
43965
43966         * modules/dirent: New file.
43967         * m4/dirent_h.m4: New file.
43968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43969         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43970         * modules/fchdir (Files): Remove lib/dirent.in.h.
43971         (Depends-on): Add dirent.
43972         (Makefile.am): Move rules to modules/dirent.
43973         * doc/posix-headers/dirent.texi: Mention the new module.
43974
43975 2008-10-18  Bruno Haible  <bruno@clisp.org>
43976
43977         Avoid -Wunused-parameter warnings in public gnulib header files.
43978         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43979         macro.
43980         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43981
43982 2008-10-18  Bruno Haible  <bruno@clisp.org>
43983
43984         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43985         * doc/glibc-functions/error.texi: Mention the module 'error'.
43986         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43987         * doc/glibc-functions/getdomainname.texi: Mention the module
43988         'getdomainname'.
43989         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43990         * doc/glibc-functions/getpagesize.texi: Mention the module
43991         'getpagesize'.
43992         * doc/glibc-functions/getusershell.texi: Mention the module
43993         'getusershell'.
43994         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43995         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43996         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43997         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43998         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43999         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44000         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44001         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44002         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44003         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44004         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44005         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44006         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44007         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44008
44009 2008-10-17  Bruno Haible  <bruno@clisp.org>
44010
44011         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44012         HP-UX and IRIX, use -0.0L.
44013         * tests/test-ceill.c (minus_zero): Likewise.
44014         * tests/test-floorl.c (minus_zero): Likewise.
44015         * tests/test-frexpl.c (minus_zero): Likewise.
44016         * tests/test-isnan.c (minus_zerol): Likewise.
44017         * tests/test-isnanl.h (minus_zero): Likewise.
44018         * tests/test-ldexpl.c (minus_zero): Likewise.
44019         * tests/test-roundl.c (minus_zero): Likewise.
44020         * tests/test-signbit.c (minus_zerol): Likewise.
44021         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44022         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44023         * tests/test-truncl.c (minus_zero): Likewise.
44024         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44025         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44026         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44027         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44028
44029 2008-10-17  Bruno Haible  <bruno@clisp.org>
44030
44031         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44032         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44033         that it gets activated only for gcc >= 3.0.
44034         * lib/dirent.in.h: Likewise.
44035         * lib/errno.in.h: Likewise.
44036         * lib/fcntl.in.h: Likewise.
44037         * lib/float.in.h: Likewise.
44038         * lib/iconv.in.h: Likewise.
44039         * lib/inttypes.in.h: Likewise.
44040         * lib/locale.in.h: Likewise.
44041         * lib/math.in.h: Likewise.
44042         * lib/netdb.in.h: Likewise.
44043         * lib/netinet_in.in.h: Likewise.
44044         * lib/search.in.h: Likewise.
44045         * lib/signal.in.h: Likewise.
44046         * lib/spawn.in.h: Likewise.
44047         * lib/stdarg.in.h: Likewise.
44048         * lib/stdint.in.h: Likewise.
44049         * lib/stdio.in.h: Likewise.
44050         * lib/stdlib.in.h: Likewise.
44051         * lib/string.in.h: Likewise.
44052         * lib/strings.in.h: Likewise.
44053         * lib/sys_file.in.h: Likewise.
44054         * lib/sys_ioctl.in.h: Likewise.
44055         * lib/sys_select.in.h: Likewise.
44056         * lib/sys_socket.in.h: Likewise.
44057         * lib/sys_stat.in.h: Likewise.
44058         * lib/sys_time.in.h: Likewise.
44059         * lib/sysexits.in.h: Likewise.
44060         * lib/time.in.h: Likewise.
44061         * lib/unistd.in.h: Likewise.
44062         * lib/wchar.in.h: Likewise.
44063         * lib/wctype.in.h: Likewise.
44064         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44065
44066 2008-10-17  Jim Meyering  <meyering@redhat.com>
44067
44068         ignore-value: don't depend on inline module
44069         * modules/ignore-value (Depends-on): Remove 'inline'.
44070         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44071         Suggestion from Bruno Haible.
44072
44073 2008-10-17  Bruno Haible  <bruno@clisp.org>
44074
44075         New implementation of condition variables for Win32.
44076         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44077         (gl_linked_waitqueue_t): New type.
44078         (gl_cond_t): Use it.
44079         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44080         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44081         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44082         (glthread_cond_init_func, glthread_cond_wait_func,
44083         glthread_cond_timedwait_func, glthread_cond_signal_func,
44084         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44085         Reimplemented on the basis of gl_linked_waitqueue_t.
44086         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44087         gl_waitqueue_t.
44088         (gl_rwlock_t): Update.
44089         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44090
44091 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44092
44093         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44094         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44095
44096 2008-10-17  Jim Meyering  <meyering@redhat.com>
44097
44098         ignore-value: new module
44099         * modules/ignore-value: New file.
44100         * lib/ignore-value.h: New file.
44101         * MODULES.html.sh (Compiler warning management): New section,
44102         just for this module.  More to come.
44103
44104 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44105
44106         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44107         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44108         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44109
44110 2008-10-16  Jim Meyering  <meyering@redhat.com>
44111
44112         openat-die.c: avoid 'no previous prototype' warning
44113         * lib/openat-die.c: Include "openat.h".
44114         Reported by Reuben Thomas <rrt@sc3d.org>.
44115
44116 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44117
44118         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44119         * lib/netdb.in.h: Fix typo.
44120         Reported by Bruno Haible  <bruno@clisp.org>
44121
44122         * lib/netdb.in.h: Include sys/socket.h for platforms without
44123         netdb.h, to get structures like hostent on MinGW.
44124         * modules/netdb (Depends-on): Add sys_socket.
44125
44126 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44127
44128         * modules/netdb, modules/netdb-tests: New file.
44129         * m4/netdb_h.m4: New file.
44130         * lib/netdb.in.h: Add, currently just an empty file pending
44131         definitions.
44132         * tests/test-netdb.c: New file.
44133         * doc/posix-headers/netdb.texi: Mention that we replace it if
44134         needed.
44135         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44136         netdb.
44137
44138 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44139
44140         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44141         with code.
44142
44143 2008-10-13  Bruno Haible  <bruno@clisp.org>
44144
44145         * lib/glthread/cond.c (glthread_cond_wait_func,
44146         glthread_cond_timedwait_func): Add a comment.
44147
44148 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44149
44150         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44151         * tests/test-select.c: Likewise,
44152
44153 2008-10-13  Bruno Haible  <bruno@clisp.org>
44154
44155         * lib/glthread/cond.c (glthread_cond_wait_func,
44156         glthread_cond_timedwait_func): Fix variable name.
44157         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44158
44159 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44160
44161         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44162         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44163         struct sockaddr.sa_len.
44164         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44165
44166 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44167
44168         * build-aux/pmccabe2html: Add css and css_url parameters.
44169
44170 2008-10-12  Bruno Haible  <bruno@clisp.org>
44171
44172         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44173         calling aclx_get.
44174         Reported by Rainer Tammer <tammer@tammer.net>.
44175
44176 2008-10-12  Bruno Haible  <bruno@clisp.org>
44177
44178         Use msvcrt aware primitives for creation/termination of Win32 threads.
44179         * lib/glthread/thread.c: Include <process.h>.
44180         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44181         (wrapper_func): Update signature.
44182         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44183
44184 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44185             Bruno Haible  <bruno@clisp.org>
44186
44187         Provide a Win32 implementation of the 'cond' module.
44188         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44189         * lib/glthread/cond.c (glthread_cond_init_func,
44190         glthread_cond_wait_func, glthread_cond_timedwait_func,
44191         glthread_cond_signal_func, glthread_cond_broadcast_func,
44192         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44193         * modules/cond (Dependencies): Add gettimeofday.
44194
44195 2008-10-11  Bruno Haible  <bruno@clisp.org>
44196
44197         Make sleep work on older versions of mingw.
44198         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44199         only whether it exists.
44200         * doc/posix-functions/sleep.texi: Mention the problem with older
44201         versions of mingw.
44202
44203 2008-10-11  Bruno Haible  <bruno@clisp.org>
44204
44205         New module 'shutdown'.
44206         * modules/shutdown: New file.
44207         * lib/sys_socket.in.h (shutdown): New declaration.
44208         * lib/winsock.c (shutdown): New function.
44209         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44210         GNULIB_SHUTDOWN.
44211         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44212         * doc/posix-functions/shutdown.texi: Document the new module.
44213
44214 2008-10-11  Jim Meyering  <meyering@redhat.com>
44215
44216         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44217
44218 2008-10-11  Bruno Haible  <bruno@clisp.org>
44219
44220         New module 'fclose'.
44221         * modules/fclose: New file.
44222         * lib/stdio.in.h (fclose): New declaration.
44223         * lib/fclose.c: New file.
44224         * m4/fclose.m4: New file.
44225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44226         REPLACE_FCLOSE.
44227         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44228         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44229         REPLACE_FCLOSE.
44230         * modules/close (Depends-on): fclose.
44231         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44232
44233 2008-10-11  Bruno Haible  <bruno@clisp.org>
44234
44235         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44236         set errno and don't call _close.
44237
44238 2008-10-10  Bruno Haible  <bruno@clisp.org>
44239
44240         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44241         ACL, not afterwards. Fixes test failure on Cygwin.
44242
44243 2008-10-09  Ben Pfaff  <blp@gnu.org>
44244
44245         * build-aux/announce-gen: Fix gnulib version related part of usage
44246         message.  Die with a useful error message if no tarballs are
44247         found.
44248
44249 2008-10-10  Jim Meyering  <meyering@redhat.com>
44250
44251         bootstrap: use git's --depth=N option only if it's supported
44252         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44253         recognize the --depth option.  Reported by Pádraig Brady.
44254
44255 2008-10-09  Bruno Haible  <bruno@clisp.org>
44256
44257         New module 'ioctl'.
44258         * modules/ioctl: New file.
44259         * lib/sys_socket.in.h (ioctl): Remove declaration.
44260         * lib/winsock.c: Include <sys/ioctl.h>.
44261         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44262         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44263         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44264         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44265         * doc/posix-functions/ioctl.texi: Mention the new module.
44266
44267 2008-10-09  Bruno Haible  <bruno@clisp.org>
44268
44269         New module 'sys_ioctl'.
44270         * lib/sys_ioctl.in.h: New file.
44271         * m4/sys_ioctl_h.m4: New file.
44272         * modules/sys_ioctl: New file.
44273         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44274
44275 2008-10-09  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44278         * lib/winsock.c: Include <stdarg.h>.
44279         (rpl_ioctl): Change to second argument 'int' and then varargs.
44280
44281 2008-10-09  Bruno Haible  <bruno@clisp.org>
44282
44283         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44284         when the sys_socket module is present and the system has <winsock2.h>.
44285
44286 2008-10-09  Bruno Haible  <bruno@clisp.org>
44287
44288         * doc/posix-functions/close.texi: Mention module 'close' instead of
44289         module 'sys_socket'.
44290
44291 2008-10-09  Bruno Haible  <bruno@clisp.org>
44292
44293         * doc/glibc-headers/sys_ioctl.texi: New file.
44294         * doc/gnulib.texi: Include it.
44295
44296 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44297             Bruno Haible  <bruno@clisp.org>
44298
44299         Combine the two replacements of 'close'.
44300         * lib/sys_socket.in.h (close): Define to a reminder to include
44301         <unistd.h>.
44302         (_gl_close_fd_maybe_socket): New declaration.
44303         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44304         * lib/winsock.c (close): Remove undefinition.
44305         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44306         needed for the gnulib module 'close'.
44307         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44308         define to an error symbol or to a warning, if suitable.
44309         * lib/close.c: Include <sys/socket.h>.
44310         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44311         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44312         UNISTD_H_HAVE_WINSOCK2_H.
44313         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44315         UNISTD_H_HAVE_WINSOCK2_H.
44316         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44317         (configure.ac): Set a module indicator.
44318         (Makefile.am): Substitute GNULIB_CLOSE.
44319         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44320         * modules/poll-tests (Depends-on): Add close.
44321         * modules/select-tests (Depends-on): Likewise.
44322
44323 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44324             Bruno Haible  <bruno@clisp.org>
44325
44326         New module 'close'.
44327         * modules/close: New file.
44328         * lib/unistd.in.h (close): Move declaration out of the
44329         FCHDIR_REPLACEMENT scope.
44330         (_gl_unregister_fd): New declaration.
44331         * lib/close.c: New file.
44332         * lib/fchdir.c (rpl_close): Remove function.
44333         * m4/close.m4: New file.
44334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44335         close.
44336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44337         REPLACE_CLOSE.
44338         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44339         REPLACE_CLOSE.
44340         * modules/fchdir (Depends-on): Add close.
44341
44342 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44343             Bruno Haible  <bruno@clisp.org>
44344
44345         * lib/fcntl.in.h (open): Simplify conditionals.
44346         (_gl_register_fd): New declaration.
44347         * lib/fchdir.c (rpl_open): Remove function.
44348         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44349         also.
44350         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44352         open.
44353
44354 2008-10-09  Jim Meyering  <meyering@redhat.com>
44355
44356         GNUmakefile: use the more name-space-friendly "_version"
44357         * top/GNUmakefile (_dummy): Update.
44358         (_version): Rename from "version".
44359
44360 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44361             Bruno Haible  <bruno@clisp.org>
44362
44363         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44364         rpl_close.
44365         (_gl_register_fd): New function, extracted from rpl_open.
44366         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44367         (rpl_open, rpl_opendir): Use _gl_register_fd.
44368
44369 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44370
44371         Fix organization of 'open' replacement.
44372         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44373         (gl_FUNC_OPEN): Use it.
44374         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44375
44376 2008-10-08  Bruno Haible  <bruno@clisp.org>
44377
44378         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44379
44380 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44381
44382         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44383         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44384         listen).
44385
44386 2008-10-08  Eric Blake  <ebb9@byu.net>
44387
44388         GNUmakefile: add 'make version' target
44389         * top/GNUmakefile (_curr-ver): Split version update rules...
44390         (version): ...into a target.
44391
44392 2008-10-07  Bruno Haible  <bruno@clisp.org>
44393
44394         Use a more portable replacement expression for -0.0L.
44395         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44396         instead of -0.0L. Fix m4 quotation.
44397
44398         * tests/test-signbit.c: Include <float.h>.
44399         (minus_zero): New variable.
44400         (test_signbitl): Use minus_zero instead of -zero.
44401         * modules/signbit-tests (Depends-on): Add float.
44402
44403         * tests/test-ceill.c: Include <float.h>.
44404         (zero): Remove variable.
44405         (minus_zero): New variable.
44406         (main): Use minus_zero instead of -zero.
44407         * modules/ceill-tests (Depends-on): Add float.
44408
44409         * tests/test-floorl.c: Include <float.h>.
44410         (zero): Remove variable.
44411         (minus_zero): New variable.
44412         (main): Use minus_zero instead of -zero.
44413         * modules/floorl-tests (Depends-on): Add float.
44414
44415         * tests/test-roundl.c: Include <float.h>.
44416         (zero): Remove variable.
44417         (minus_zero): New variable.
44418         (main): Use minus_zero instead of -zero.
44419         * modules/roundl-tests (Depends-on): Add float.
44420
44421         * tests/test-truncl.c: Include <float.h>.
44422         (zero): Remove variable.
44423         (minus_zero): New variable.
44424         (main): Use minus_zero instead of -zero.
44425         * modules/truncl-tests (Depends-on): Add float.
44426
44427         * tests/test-frexpl.c (zero): Remove variable.
44428         (minus_zero): New variable.
44429         (main): Use minus_zero instead of -zero.
44430         * modules/frexpl-tests (Depends-on): Add float.
44431
44432         * tests/test-isnan.c (zerol): Remove variable.
44433         (minus_zerol): New variable.
44434         (test_long_double): Use minus_zerol instead of -zerol.
44435         * modules/isnan-tests (Depends-on): Add float.
44436
44437         * tests/test-isnanl.h (zero): Remove variable.
44438         (minus_zero): New variable.
44439         (main): Use minus_zero instead of -zero.
44440         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44441         * modules/isnanl-tests (Depends-on): Add float.
44442
44443         * tests/test-ldexpl.c (zero): Remove variable.
44444         (minus_zero): New variable.
44445         (main): Use minus_zero instead of -zero.
44446         * modules/ldexpl-tests (Depends-on): Add float.
44447
44448         * tests/test-snprintf-posix.h (zerol): Remove variable.
44449         (minus_zerol): New variable.
44450         (test_function): Use minus_zerol instead of -zerol.
44451         * modules/snprintf-posix-tests (Depends-on): Add float.
44452         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44453
44454         * tests/test-sprintf-posix.h (zerol): Remove variable.
44455         (minus_zerol): New variable.
44456         (test_function): Use minus_zerol instead of -zerol.
44457         * modules/sprintf-posix-tests (Depends-on): Add float.
44458         * modules/vsprintf-posix-tests (Depends-on): Add float.
44459
44460         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44461         (minus_zerol): New variable.
44462         (test_function): Use minus_zerol instead of -zerol.
44463         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44464
44465         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44466         (minus_zerol): New variable.
44467         (test_function): Use minus_zerol instead of -zerol.
44468         * modules/vasprintf-posix-tests (Depends-on): Add float.
44469
44470 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44471
44472         * MODULES.html.sh (Support for building documentation): Mention
44473         pmccabe2html.  Sort entries.
44474
44475         Add pmccabe2html module, from gnupdf.
44476         * build-aux/pmccabe.css: New file.
44477         * build-aux/pmccabe2html: New file.
44478         * m4/pmccabe2html.m4: New file.
44479         * modules/pmccabe2html: New file.
44480
44481 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44482
44483         flock: new module
44484         * MODULES.html.sh: Add to list of modules.
44485         * lib/flock.c: flock implementation for Windows and Unix systems
44486         which have fcntl.
44487         * doc/glibc-functions/flock.texi: Update documentation.
44488         * lib/sys_file.in.h: <sys/file.h> header file.
44489         * m4/flock.m4: M4 macros.
44490         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44491         * modules/flock: flock module.
44492         * modules/flock-tests: flock tests module.
44493         * modules/sys_file: sys/file.h module.
44494         * tests/test-flock.c: test suite for flock.
44495
44496 2008-10-06  Jim Meyering  <meyering@redhat.com>
44497
44498         bootstrap: check for LT_INIT more portably still ;-)
44499         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44500         Spotted by Bruno Haible.
44501
44502 2008-10-06  Eric Blake  <ebb9@byu.net>
44503
44504         test-signbit: avoid tripping Irix cc bug on -0.0L
44505         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44506         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44507         entire testsuite consistent and avoids an Irix 6.2 bug.
44508
44509 2008-10-05  Bruno Haible  <bruno@clisp.org>
44510             Jim Meyering  <jim@meyering.net>
44511
44512         Add an option for ignoring EPIPE during close_stdout.
44513         * lib/closeout.h: Include <stdbool.h>.
44514         (close_stdout_set_ignore_EPIPE): New declaration.
44515         * lib/closeout.c: Include <stdbool.h>.
44516         (ignore_EPIPE): New variable.
44517         (close_stdout_set_ignore_EPIPE): New function.
44518         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44519         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44520         failure.
44521         * modules/closeout (Depends-on): Add stdbool.
44522
44523 2008-10-05  Bruno Haible  <bruno@clisp.org>
44524
44525         * modules/accept: New file.
44526         * modules/bind: New file.
44527         * modules/connect: New file.
44528         * modules/getpeername: New file.
44529         * modules/getsockname: New file.
44530         * modules/getsockopt: New file.
44531         * modules/listen: New file.
44532         * modules/recv: New file.
44533         * modules/recvfrom: New file.
44534         * modules/send: New file.
44535         * modules/sendto: New file.
44536         * modules/setsockopt: New file.
44537         * modules/socket: New file.
44538         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44539         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44540         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44541         the particular module is requested. Add a link warning when the
44542         particular module is not requested.
44543         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44544         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44545         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44546         the particular module is requested.
44547         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44548         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44549         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44550         * modules/sys_socket (Depends-on): Add link-warning.
44551         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44552         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44553         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44554         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44555         GL_LINK_WARNING.
44556         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44557         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44558         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44559         * doc/posix-functions/getpeername.texi: Mention the new module
44560         'getpeername'.
44561         * doc/posix-functions/getsockname.texi: Mention the new module
44562         'getsockname'.
44563         * doc/posix-functions/getsockopt.texi: Mention the new module
44564         'getsockopt'.
44565         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44566         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44567         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44568         * doc/posix-functions/send.texi: Mention the new module 'send'.
44569         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44570         * doc/posix-functions/setsockopt.texi: Mention the new module
44571         'setsockopt'.
44572         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44573         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44574         listen, connect, accept.
44575         * modules/select-tests (Depends-on): Likewise.
44576
44577 2008-10-05  Bruno Haible  <bruno@clisp.org>
44578
44579         * lib/winsock.c (strerror): Remove unused #undef.
44580         (rpl_close): Remove unused local variable.
44581
44582         * modules/sys_socket (Depends-on); Add errno.
44583
44584 2008-10-05  Bruno Haible  <bruno@clisp.org>
44585
44586         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44587         (select): Add a link warning when the 'select' module is not used.
44588         * modules/sys_select (Depends-on): Add link-warning.
44589         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44590         Suggested by Paolo Bonzini.
44591
44592 2008-10-05  Jim Meyering  <meyering@redhat.com>
44593
44594         bootstrap: check for LT_INIT more portably
44595         * build-aux/bootstrap: Avoid using grep -E, since it's not
44596         portable enough.  Suggestion from Bruno Haible.
44597
44598 2008-10-05  Bruno Haible  <bruno@clisp.org>
44599
44600         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44601         as being fixed by gnulib.
44602
44603 2008-10-05  Bruno Haible  <bruno@clisp.org>
44604
44605         * modules/select-tests: New file, mostly copied from
44606         modules/sys_select-tests.
44607         * tests/test-select.c: New file, mostly copied from
44608         tests/test-sys_select.c.
44609         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44610         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44611         (Makefile.am): Remove test_sys_select_LDADD.
44612
44613         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44614         to an undefined symbol, for an error message.
44615         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44616         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44617         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44618         winsock-select.c here.
44619         * modules/sys_select (Files): Remove lib/winsock-select.c.
44620         (Depends-on): Remove alloca.
44621         (Makefile.am): Substitute GNULIB_SELECT.
44622         * modules/select: New file.
44623         * doc/posix-functions/select.texi: Update.
44624
44625 2008-10-05  Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44628         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44629         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44630         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44631         getdtablesize.
44632         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44633         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44634
44635 2008-10-05  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/getdtablesize-tests: New file.
44638         * tests/test-getdtablesize.c: New file.
44639
44640         New module 'getdtablesize'.
44641         * lib/unistd.in.h (getdtablesize): New declaration.
44642         * lib/getdtablesize.c: New file.
44643         * m4/getdtablesize.m4: New file.
44644         * modules/getdtablesize: New file.
44645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44646         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44647         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44648         HAVE_GETDTABLESIZE.
44649         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44650
44651 2008-10-05  Bruno Haible  <bruno@clisp.org>
44652
44653         * modules/sched (Makefile.am): Fix typo.
44654         Reported by Simon Josefsson.
44655
44656 2008-10-05  Jim Meyering  <meyering@redhat.com>
44657
44658         bootstrap: check for LT_INIT, too
44659         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44660         are deprecated.  Suggestion from Ralf Wildenhues.
44661
44662 2008-10-05  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44665         overriding them by ours.
44666         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44667
44668 2008-10-05  Jim Meyering  <meyering@redhat.com>
44669
44670         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44671         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44672         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44673
44674 2008-10-04  Bruno Haible  <bruno@clisp.org>
44675
44676         * modules/dup2 (License): Change to LGPLv2+.
44677         * modules/sleep (License): Likewise.
44678         * modules/perror (License): Likewise.
44679         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44680         Blake.
44681         * modules/signal (License): Likewise.
44682         * modules/sigprocmask (License): Likewise.
44683         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44684         Meyering.
44685
44686 2008-10-04  Bruno Haible  <bruno@clisp.org>
44687
44688         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44689         Reported by Rainer Tammer <tammer@tammer.net>.
44690
44691 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44692             Bruno Haible  <bruno@clisp.org>
44693
44694         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44695         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44696         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44697
44698 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44699
44700         filevercmp: new module
44701         * lib/filevercmp.h: New function filevercmp comparing version strings.
44702         * lib/filevercmp.c: Implementation of filevercmp function.
44703         * modules/filevercmp: Module metadata.
44704         * tests/test-filevercmp.c: Unit test for new module.
44705         * modules/filevercmp-tests: Unit test metadata.
44706         * MODULES.html.sh: Add filevercmp module.
44707
44708 2008-10-03  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/c-ctype.h: Add comment.
44711         Reported by Jim Meyering.
44712
44713 2008-10-02  Bruno Haible  <bruno@clisp.org>
44714
44715         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44716
44717 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44718
44719         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44720         name of bootstrap.conf accordingly.
44721
44722 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44723
44724         * build-aux/bootstrap: Install git-merge-changelog configuration
44725         items into .gitconfig if needed.
44726
44727 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44728
44729         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44730         git repository, and initialize/update it accordingly.
44731
44732 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44733
44734         * modules/fsync-tests: New file.
44735         * tests/test-fsync.c: New file.
44736
44737         New module 'fsync'.
44738         * lib/fsync.c: New file.
44739         * m4/fsync.m4: New file.
44740         * modules/fsync: New file.
44741         * lib/unistd.in.h (fsync): New declaration.
44742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44743         GNULIB_FSYNC and HAVE_FSYNC.
44744         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44745         * MODULES.html.sh (posix_functions): Add fsync.
44746         * doc/posix-functions/fsync.texi: Mention the new module.
44747
44748 2008-10-02  Jim Meyering  <meyering@redhat.com>
44749
44750         fts.c: sync with similar code from coreutils' remove.c
44751         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44752         Guard also with "#if defined __linux__", since for now at least,
44753         this code is Linux-kernel-specific.
44754
44755 2008-10-02  Jim Meyering  <meyering@redhat.com>
44756
44757         fts: bug fixes
44758         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44759         Include <sys/vfs.h>, not <sys/statfs.h>.
44760
44761         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44762         Include <sys/vfs.h>, not <sys/statfs.h>.
44763
44764 2008-10-01  Bruno Haible  <bruno@clisp.org>
44765
44766         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44767         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44768         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44769         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44770         * doc/posix-functions/posix_spawnp.texi: Likewise.
44771         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44772         whether posix_spawn actually works.
44773         * m4/pipe.m4 (gl_PIPE): Likewise.
44774         * modules/execute (Files): Add m4/posix_spawn.m4.
44775         * modules/pipe (Files): Add m4/posix_spawn.m4.
44776         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44777
44778 2008-10-01  Jim Meyering  <meyering@redhat.com>
44779
44780         remove trailing spaces
44781         * NEWS: Likewise.
44782         * lib/poll.c (poll): Likewise.
44783         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44784         * lib/winsock.c (rpl_close): Likewise.
44785         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44786         * modules/yield: Likewise.
44787         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44788         * tests/test-sys_select.c (connect_to_socket): Likewise.
44789
44790         fts.c: adjust a new interface to be more generally useful
44791         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44792         (fts_build): Adjust caller.
44793
44794 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44795
44796         * modules/cond-tests: New file.
44797         * tests/test-cond.c: New file.
44798
44799 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44800             Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/cond (Dependencies): Add errno, time.
44803         * lib/glthread/cond.h: Include <time.h>.
44804         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44805         across platforms.
44806
44807 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44808             Bruno Haible  <bruno@clisp.org>
44809
44810         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44811
44812 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44813             Bruno Haible  <bruno@clisp.org>
44814
44815         * modules/tls-tests (Depends-on): Add thread, yield.
44816         (configure.ac): Remove all checks.
44817         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44818         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44819         gl_thread_self): Remove definitions. Include glthread/thread.h and
44820         glthread/yield.h instead.
44821         (test_tls): Pass an additional NULL argument to gl_thread_join.
44822
44823 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44824             Bruno Haible  <bruno@clisp.org>
44825
44826         * modules/lock-tests (Depends-on): Add thread, yield.
44827         (configure.ac): Remove all checks.
44828         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44829         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44830         gl_thread_self): Remove definitions. Include glthread/thread.h and
44831         glthread/yield.h instead.
44832         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44833         additional NULL argument to gl_thread_join.
44834
44835 2008-09-30  Bruno Haible  <bruno@clisp.org>
44836
44837         Fix the Win32 implementation of the 'thread' module.
44838         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44839         pointer type.
44840         (gl_thread_self): Invoke gl_thread_self_func.
44841         (gl_thread_self_func): New declaration.
44842         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44843         (do_init_self_key, init_self_key): New functions.
44844         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44845         Remove some fields.
44846         (running_threads, running_lock): Remove variables.
44847         (get_current_thread_handle): New function.
44848         (gl_thread_self_func, wrapper_func, glthread_create_func,
44849         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44850         simplified.
44851
44852 2008-09-30  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44855         files.
44856
44857 2008-09-30  Jim Meyering  <meyering@redhat.com>
44858
44859         fts.m4: correct the test for statfs.f_type
44860         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44861         when checking for statfs.f_type.
44862
44863 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44864
44865         tests: avoid some compiler warnings
44866         * tests/test-memchr.c (main): Pass NULL indirectly.
44867         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44868
44869 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44870
44871         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44872         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44873         exactly specified dayshifts.
44874         (dayshift): New rule.
44875         (rel): Add dayshift.
44876         (relative_time_table) [tomorrow, yesterday, today, now]:
44877         Use tDAY_SHIFT in place of tDAY_UNIT.
44878         * tests/test-getdate.c: Add tests for now-disallowed countable
44879         dayshifts, e.g., "4 yesterday ago".
44880
44881 2008-09-29  Bruno Haible  <bruno@clisp.org>
44882
44883         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
44884         * tests/test-posix_spawn1.in.sh: Renamed from
44885         tests/test-posix_spawn.in.sh.
44886         * tests/test-posix_spawn2.c: New file.
44887         * tests/test-posix_spawn2.in.sh: New file.
44888         * modules/posix_spawnp-tests (Files): Update.
44889         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
44890
44891 2008-09-29  Bruno Haible  <bruno@clisp.org>
44892
44893         Propagate effects of putenv/setenv/unsetenv to child processes.
44894         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
44895         * lib/pipe.c (create_pipe): Likewise.
44896
44897 2008-09-29  Bruno Haible  <bruno@clisp.org>
44898
44899         Enable use of shell scripts as executables in mingw.
44900         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
44901         run the program as a shell script.
44902         * lib/pipe.c (create_pipe): Likewise.
44903         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
44904         resulting array.
44905
44906 2008-09-29  Eric Blake  <ebb9@byu.net>
44907
44908         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
44909
44910 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
44911
44912         * doc/posix-functions/accept.texi: Update mingw problems.
44913         * doc/posix-functions/bind.texi: Update mingw problems.
44914         * doc/posix-functions/close.texi: Update mingw problems.
44915         * doc/posix-functions/connect.texi: Update mingw problems.
44916         * doc/posix-functions/getpeername.texi: Update mingw problems.
44917         * doc/posix-functions/getsockname.texi: Update mingw problems.
44918         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44919         * doc/posix-functions/ioctl.texi: Update mingw problems.
44920         * doc/posix-functions/listen.texi: Update mingw problems.
44921         * doc/posix-functions/recv.texi: Update mingw problems.
44922         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44923         * doc/posix-functions/select.texi: Update mingw problems.
44924         * doc/posix-functions/send.texi: Update mingw problems.
44925         * doc/posix-functions/sendto.texi: Update mingw problems.
44926         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44927         * doc/posix-functions/socket.texi: Update mingw problems.
44928
44929 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44930             Bruno Haible  <bruno@clisp.org>
44931
44932         * lib/sys_select.in.h: Include sys/time.h.
44933         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44934         * modules/sys_select: Depend on sys_time.
44935         * tests/test-sys_select.c: Test that sys/select.h defines struct
44936         timeval fully.
44937
44938 2008-09-29  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44941         * lib/sys_select.in.h: Likewise.
44942
44943 2008-09-29  Bruno Haible  <bruno@clisp.org>
44944
44945         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44946
44947 2008-09-29  Bruno Haible  <bruno@clisp.org>
44948
44949         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44950         Set LIBSOCKET instead of augmenting LIBS.
44951         * modules/sockets (Link): New section.
44952         * modules/sockets-tests (test_sockets_LDADD): New variable.
44953         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44954         * modules/poll-tests (test_poll_LDADD): New variable.
44955         * NEWS: Document the change.
44956
44957 2008-09-29  Bruno Haible  <bruno@clisp.org>
44958
44959         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44960         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44961         ARPA_INET_H directly.
44962         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44963
44964 2008-09-28  Bruno Haible  <bruno@clisp.org>
44965
44966         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44967         from gl_HEADER_SYS_SOCKET.
44968         (gl_HEADER_SYS_SOCKET): Invoke it.
44969         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44970
44971 2008-09-28  Bruno Haible  <bruno@clisp.org>
44972
44973         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44974         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44975         Needed on OSF/1 4.0.
44976
44977 2008-09-28  Bruno Haible  <bruno@clisp.org>
44978
44979         Override open more carefully.
44980         * lib/open.c (orig_open): New function.
44981         (rpl_open): Use orig_open instead of open.
44982         * lib/fcntl.in.h: Add special invocation convention.
44983         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44984         (gl_FUNC_OPEN): Invoke it.
44985
44986         Override freopen more carefully.
44987         * lib/freopen.c (orig_freopen): New function.
44988         (rpl_freopen): Use orig_freopen instead of freopen.
44989         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44990         (gl_FUNC_FREOPEN): Invoke it.
44991
44992         Override fopen more carefully.
44993         * lib/fopen.c (orig_fopen): New function.
44994         (rpl_fopen): Use orig_fopen instead of fopen.
44995         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44996         (gl_FUNC_FOPEN): Invoke it.
44997         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44998
44999 2008-09-28  Bruno Haible  <bruno@clisp.org>
45000
45001         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45002         SIGPIPE.
45003
45004 2008-09-28  Bruno Haible  <bruno@clisp.org>
45005
45006         * tests/test-sigaction.c (handler, main): Disable the check whether
45007         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45008         glibc systems with LinuxThreads.
45009
45010 2008-09-28  Bruno Haible  <bruno@clisp.org>
45011
45012         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45013
45014         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45015         with AIX xlc.
45016         * lib/fcntl.in.h (open): Likewise.
45017         Reported by Rainer Tammer <tammer@tammer.net>.
45018
45019 2008-09-28  Bruno Haible  <bruno@clisp.org>
45020
45021         * modules/posix_spawnp-tests: New file.
45022         * tests/test-posix_spawn.c: New file.
45023         * tests/test-posix_spawn.in.sh: New file.
45024
45025         New module 'posix_spawnp'.
45026         * modules/posix_spawnp: New file.
45027         * lib/spawnp.c: New file, from GNU libc with modifications.
45028         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45029
45030         New module 'posix_spawn'.
45031         * modules/posix_spawn: New file.
45032         * lib/spawn.c: New file, from GNU libc with modifications.
45033         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45034
45035         New module 'posix_spawnattr_destroy'.
45036         * modules/posix_spawnattr_destroy: New file.
45037         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45038         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45039         module.
45040
45041         New module 'posix_spawnattr_setsigmask'.
45042         * modules/posix_spawnattr_setsigmask: New file.
45043         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45044         modifications.
45045         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45046         new module.
45047
45048         New module 'posix_spawnattr_getsigmask'.
45049         * modules/posix_spawnattr_getsigmask: New file.
45050         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45051         modifications.
45052         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45053         new module.
45054
45055         New module 'posix_spawnattr_setsigdefault'.
45056         * modules/posix_spawnattr_setsigdefault: New file.
45057         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45058         modifications.
45059         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45060         new module.
45061
45062         New module 'posix_spawnattr_getsigdefault'.
45063         * modules/posix_spawnattr_getsigdefault: New file.
45064         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45065         modifications.
45066         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45067         new module.
45068
45069         New module 'posix_spawnattr_setschedpolicy'.
45070         * modules/posix_spawnattr_setschedpolicy: New file.
45071         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45072         modifications.
45073         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45074         new module.
45075
45076         New module 'posix_spawnattr_getschedpolicy'.
45077         * modules/posix_spawnattr_getschedpolicy: New file.
45078         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45079         modifications.
45080         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45081         new module.
45082
45083         New module 'posix_spawnattr_setschedparam'.
45084         * modules/posix_spawnattr_setschedparam: New file.
45085         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45086         modifications.
45087         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45088         new module.
45089
45090         New module 'posix_spawnattr_getschedparam'.
45091         * modules/posix_spawnattr_getschedparam: New file.
45092         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45093         modifications.
45094         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45095         new module.
45096
45097         New module 'posix_spawnattr_setpgroup'.
45098         * modules/posix_spawnattr_setpgroup: New file.
45099         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45100         modifications.
45101         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45102         module.
45103
45104         New module 'posix_spawnattr_getpgroup'.
45105         * modules/posix_spawnattr_getpgroup: New file.
45106         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45107         modifications.
45108         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45109         module.
45110
45111         New module 'posix_spawnattr_setflags'.
45112         * modules/posix_spawnattr_setflags: New file.
45113         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45114         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45115         module.
45116
45117         New module 'posix_spawnattr_getflags'.
45118         * modules/posix_spawnattr_getflags: New file.
45119         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45120         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45121         module.
45122
45123         New module 'posix_spawnattr_init'.
45124         * modules/posix_spawnattr_init: New file.
45125         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45126         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45127         module.
45128
45129         New module 'posix_spawn_file_actions_destroy'.
45130         * modules/posix_spawn_file_actions_destroy: New file.
45131         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45132         modifications.
45133         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45134         the new module.
45135
45136         New module 'posix_spawn_file_actions_addopen'.
45137         * modules/posix_spawn_file_actions_addopen: New file.
45138         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45139         modifications.
45140         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45141         the new module.
45142
45143         New module 'posix_spawn_file_actions_adddup2'.
45144         * modules/posix_spawn_file_actions_adddup2: New file.
45145         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45146         modifications.
45147         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45148         the new module.
45149
45150         New module 'posix_spawn_file_actions_addclose'.
45151         * modules/posix_spawn_file_actions_addclose: New file.
45152         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45153         modifications.
45154         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45155         the new module.
45156
45157         New module 'posix_spawn_file_actions_init'.
45158         * modules/posix_spawn_file_actions_init: New file.
45159         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45160         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45161         new module.
45162
45163         New module 'posix_spawn-internal'.
45164         * modules/posix_spawn-internal: New file.
45165         * lib/spawn_int.h: New file, from GNU libc with modifications.
45166         * lib/spawni.c: New file, from GNU libc with modifications.
45167         * m4/posix_spawn.m4: New file.
45168
45169         New module 'spawn'.
45170         * modules/spawn: New file.
45171         * lib/spawn.in.h: New file, from GNU libc with modifications.
45172         * m4/spawn_h.m4: New file.
45173         * doc/posix-headers/spawn.texi: Mention the new module.
45174
45175 2008-09-28  Bruno Haible  <bruno@clisp.org>
45176
45177         * modules/sched-tests: New file.
45178         * tests/test-sched.c: New file.
45179
45180         New module 'sched'.
45181         * modules/sched: New file.
45182         * lib/sched.in.h: New file.
45183         * m4/sched_h.m4: New file.
45184         * doc/posix-headers/sched.texi: Mention the new module.
45185
45186 2008-09-27  Eric Blake  <ebb9@byu.net>
45187
45188         Fix previous patch, and tweak references to $0.
45189         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45190         (func_version, func_gnulib_dir): Don't call this program
45191         gnulib-tool.
45192         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45193         with using $0 in function.
45194         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45195         (func_fatal_error): Reuse the name the user invoked us with.
45196
45197 2008-09-27  Bruno Haible  <bruno@clisp.org>
45198
45199         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45200         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45201         (gl_ICONV_H): Not here.
45202         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45203         instead of assigning ICONV_H directly.
45204
45205         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45207         WCHAR_H directly.
45208
45209 2008-09-27  Bruno Haible  <bruno@clisp.org>
45210
45211         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45212         * modules/arpa_inet (Depends-on): Add link-warning.
45213         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45214         * modules/unistd (Makefile.am): Likewise.
45215
45216 2008-09-26  Bruno Haible  <bruno@clisp.org>
45217
45218         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45219         variables.
45220         (func_version): Essentially copied from gnulib-tool.
45221         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45222         func_readlink): Copied from gnulib-tool.
45223
45224 2008-09-26  Bruno Haible  <bruno@clisp.org>
45225
45226         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45227         invoking git-version-gen.
45228
45229 2008-09-26  Bruno Haible  <bruno@clisp.org>
45230
45231         * posix-modules: Update to directory names changed on 2008-01-19.
45232         Remove commas in output before splitting into words. No more need to
45233         avoid 'ftruncate' since 2007-02-19.
45234
45235 2008-09-26  Bruno Haible  <bruno@clisp.org>
45236
45237         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45238
45239 2008-09-26  Bruno Haible  <bruno@clisp.org>
45240
45241         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45242         * modules/fwriteerror (Depends-on): Add errno.
45243
45244 2008-09-26  Bruno Haible  <bruno@clisp.org>
45245
45246         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45247         * tests/test-vc-list-files-cvs.sh: Likewise.
45248
45249 2008-09-26  Bruno Haible  <bruno@clisp.org>
45250
45251         * doc/posix-headers/sys_resource.texi: Reorder items.
45252
45253 2008-09-26  Jim Meyering  <meyering@redhat.com>
45254
45255         fts: tweak inode comparison function
45256         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45257         inode numbers, as documented.
45258
45259         fts: sort dirent entries on inode number before traversing
45260         This avoids a quadratic, seek-related performance penalty when
45261         operating on a directory containing many entries (measurable at 10k;
45262         3.5 hours at 2 million entries with a cold cache) on certain types
45263         of file systems, including ext3 and ext4, but not tmpfs.
45264         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45265         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45266         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45267         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45268         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45269         (fts_build): Set the stat.st_ino member from D_INO.
45270         If it is likely to be useful, sort dirent entries on inode number.
45271
45272         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45273         and the struct statfs.f_type member.
45274         * modules/fts (Depends-on): Add d-ino.
45275
45276 2008-09-26  Bruno Haible  <bruno@clisp.org>
45277
45278         * modules/sigpipe-die (Depends-on): Add sigpipe.
45279
45280         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45281         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45282         and GNULIB_STDIO_H_SIGPIPE are set.
45283         * lib/stdio-write.c: New file.
45284         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45285         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45286         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45287         REPLACE_STDIO_WRITE_FUNCS.
45288         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45289         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45290         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45291         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45292         * modules/stdio (Files): Add lib/stdio-write.c.
45293         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45294         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45295         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45296         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45297         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45298         REPLACE_FPRINTF_POSIX.
45299         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45300         REPLACE_PRINTF_POSIX.
45301         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45302         REPLACE_VFPRINTF_POSIX.
45303         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45304         REPLACE_VPRINTF_POSIX.
45305         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45306         SIGPIPE issue.
45307         * doc/posix-functions/fputc.texi: Likewise.
45308         * doc/posix-functions/fputs.texi: Likewise.
45309         * doc/posix-functions/fwrite.texi: Likewise.
45310         * doc/posix-functions/printf.texi: Likewise.
45311         * doc/posix-functions/putc.texi: Likewise.
45312         * doc/posix-functions/putchar.texi: Likewise.
45313         * doc/posix-functions/puts.texi: Likewise.
45314         * doc/posix-functions/vfprintf.texi: Likewise.
45315         * doc/posix-functions/vprintf.texi: Likewise.
45316
45317         * modules/safe-write (Depends-on): Add write.
45318
45319         * modules/sigpipe-tests: New file.
45320         * tests/test-sigpipe.c: New file.
45321         * tests/test-sigpipe.sh: New file.
45322
45323         * modules/write: New file.
45324         * lib/unistd.in.h: Include <sys/types.h>.
45325         (write): New declaration.
45326         * lib/write.c: New file.
45327         * m4/write.m4: New file.
45328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45329         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45330         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45331         GNULIB_WRITE, REPLACE_WRITE.
45332         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45333         and the SIGPIPE issue.
45334
45335         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45336         (raise): New declaration.
45337         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45338         (ext_signal): New function.
45339         (rpl_raise): New function.
45340         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45341         GNULIB_SIGNAL_H_SIGPIPE.
45342         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45343         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45344
45345         * modules/sigpipe: New file.
45346         * m4/sigpipe.m4: New file.
45347
45348 2008-09-25  Derek Price  <derek@ximbiot.com>
45349             Bruno Haible  <bruno@clisp.org>
45350
45351         * gnulib-tool (func_import): Report all license incompatibilities, not
45352         just the first one.
45353
45354 2008-09-25  Bruno Haible  <bruno@clisp.org>
45355
45356         * gnulib-tool (func_import): When computing the edits, consider not
45357         only the Makefile.ams that exist but also those that will be generated.
45358
45359 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45360
45361         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45362         fixes gnulib-tool --test warning about duplicate dependency.
45363
45364 2008-09-25  Bruno Haible  <bruno@clisp.org>
45365
45366         * gnulib-tool: Don't ask the user to perform edits in the generated
45367         Makefile.ams.
45368         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45369         apply to the Makefile.am being generated.
45370         (func_emit_tests_Makefile_am): Execute edits that apply to the
45371         Makefile.am being generated.
45372         (func_import): Setup list of Makefile.am edits before emitting the
45373         Makefile.ams, not at the end.
45374         (func_create_testdir): Update.
45375         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45376
45377 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45378
45379         * gnulib-tool (func_import): Store the --tests-base option in the
45380         comment in gnulib-cache.m4.
45381
45382 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45383
45384         * NEWS: Document increased portability that sys_select now provides.
45385
45386         * lib/sys_select.in.h: Install select wrapper.
45387         * lib/sys_socket.in.h: Use more descriptive name when there is no
45388         select wrapper.
45389         * lib/winsock-select.c: New.
45390         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45391         Require gl_HEADER_SYS_SOCKET.
45392         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45393         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45394         * tests/test-sys_select.c: Add functional tests.
45395
45396 2008-09-24  Eric Blake  <ebb9@byu.net>
45397
45398         open, fopen: close fd leak in last patch
45399         * lib/open.c (rpl_open): Close fd before returning error.
45400         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45401         * doc/posix-functions/open.texi (open): Document that Irix also
45402         has the bug.
45403         * doc/posix-functions/fopen.texi (fopen): Likewise.
45404         Reported by Paolo Bonzini.
45405
45406 2008-09-24  Bruno Haible  <bruno@clisp.org>
45407
45408         Ensure that a filename ending in a slash cannot be used to access a
45409         non-directory.
45410         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45411         to check whether it's really a directory.
45412         * lib/fopen.c: Include fcntl.h, unistd.h.
45413         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45414         and fdopen().
45415         * modules/fopen (Depends-on): Add unistd.
45416         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45417         * tests/test-fopen.c (main): Likewise.
45418         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45419         * doc/posix-functions/fopen.texi: Likewise.
45420         Reported by Eric Blake.
45421
45422 2008-09-23  Eric Blake  <ebb9@byu.net>
45423
45424         c-stack: avoid compiler optimizations when provoking overflow
45425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45426         recursion harder to optimize, to ensure a stack overflow occurs.
45427         * tests/test-c-stack.c (recurse): Likewise.
45428         Borrowed from libsigsegv.
45429
45430         c-stack: work around Irix sigaltstack bug
45431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45432         whether sigaltstack uses wrong end of stack_t (copied in part from
45433         libsigsegv).
45434         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45435         Irix bug, without requiring an over-allocation.
45436         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45437         bug.
45438
45439         fopen: document mingw bug on directories
45440         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45441         not allowing a stream visiting a directory, even though reading
45442         from such a stream is not portable.
45443
45444 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45445
45446         * lib/poll.c: Rewrite.
45447         * modules/poll: Depend on alloca.
45448
45449 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45450
45451         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45452         instead define prototypes for a full set of wrappers.  Ensure
45453         that Cygwin does not use the compatibility code, which is only
45454         for MinGW.
45455         * lib/winsock.c: New.
45456         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45457         * modules/sys_socket: Add lib/winsock.c.
45458
45459         * modules/poll-tests: Add errno and perror.
45460         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45461
45462 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45463
45464         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45465
45466 2008-09-23  Bruno Haible  <bruno@clisp.org>
45467
45468         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45469         * doc/glibc-functions/*: Likewise.
45470
45471 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45472
45473         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45474         success.
45475
45476 2008-09-22  Eric Blake  <ebb9@byu.net>
45477             Bruno Haible  <bruno@clisp.org>
45478
45479         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45480         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45481         supply %A but mishandle pseudo-NaN.
45482         Reported by Simon Josefsson.
45483
45484 2008-09-21  Bruno Haible  <bruno@clisp.org>
45485
45486         * tests/test-lock.c (main): Tweak skip message.
45487         * tests/test-tls.c (main): Likewise.
45488
45489 2008-09-21  Bruno Haible  <bruno@clisp.org>
45490
45491         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45492         whether 'struct sigaction' has sa_sigaction here...
45493         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45494         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45495
45496 2008-09-21  Bruno Haible  <bruno@clisp.org>
45497
45498         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45499         section.
45500         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45501         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45502         the new section.
45503         (Support for obsolete systems lacking POSIX:2001): New section.
45504         (String handling <string.h>): Move strdup to the new section.
45505         Suggested by Simon Josefsson and Paolo Bonzini.
45506
45507 2008-09-21  Bruno Haible  <bruno@clisp.org>
45508
45509         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45510         exponents in %e and %g results on 'long double'. Needed for mingw's
45511         improved *printf functions.
45512         * tests/test-vasprintf-posix.c (test_function): Likewise.
45513         * tests/test-snprintf-posix.h (test_function): Likewise.
45514         * tests/test-sprintf-posix.h (test_function): Likewise.
45515         Reported by Eric Blake.
45516
45517 2008-09-21  Bruno Haible  <bruno@clisp.org>
45518
45519         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45520         * tests/test-sprintf-posix.h (test_function): Likewise.
45521
45522 2008-09-21  Bruno Haible  <bruno@clisp.org>
45523
45524         * modules/getpass (Depends-on): Add strdup-posix.
45525
45526         New module 'strdup-posix'.
45527         * modules/strdup-posix: New file.
45528         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45529         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45531         REPLACE_STRDUP.
45532         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45533         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45534         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45535         strdup-posix.
45536
45537         * modules/strdup (Depends-on): Remove malloc-posix.
45538
45539 2008-09-20  Bruno Haible  <bruno@clisp.org>
45540
45541         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45542         Wildenhues.
45543
45544 2008-09-20  Bruno Haible  <bruno@clisp.org>
45545
45546         Ensure that wint_t gets defined on IRIX 5.3.
45547         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45548         * lib/wctype.in.h (wint_t): Likewise.
45549         (__wctype_wint_t): Remove type.
45550         (isw*): Use wint_t instead of __wctype_wint_t.
45551         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45552         * modules/wchar (Files): Add m4/wint_t.m4.
45553         (Makefile.am): Substitute HAVE_WINT_T.
45554         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45555         * tests/test-wctype.c: Check that wint_t is defined.
45556         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45557         * doc/posix-headers/wctype.texi: Likewise.
45558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45559
45560 2008-09-18  Bruno Haible  <bruno@clisp.org>
45561
45562         * gnulib-tool (func_exit): Update comment.
45563
45564 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45565
45566         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45567         assumes strdup exists and does not depend on strdup to return
45568         ENOMEM on out of memory conditions.
45569
45570 2008-09-18  Bruno Haible  <bruno@clisp.org>
45571
45572         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45573         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45574         digits for the exponent.
45575
45576 2008-09-18  Jim Meyering  <meyering@redhat.com>
45577             Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/vasnprintf.c (decimal_point_char): Define also if
45580         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45581
45582 2008-09-16  Bruno Haible  <bruno@clisp.org>
45583         and Eric Blake  <ebb9@byu.net>
45584
45585         vasnprintf: support Irix 5.3
45586         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45587         that mishandle long double infinity.
45588         Reported by Tom G. Christensen.
45589
45590 2008-09-16  Bruno Haible  <bruno@clisp.org>
45591
45592         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45593         Solaris 9.
45594         * doc/glibc-functions/alphasort.texi: Likewise.
45595         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45596
45597 2008-09-16  Jim Meyering  <meyering@redhat.com>
45598
45599         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45600         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45601         a umask modification leak out of a subshell.  Otherwise, the
45602         opensolaris /bin/sh would be accepted and thus cause unwarranted
45603         failures in the coreutils test suite.
45604
45605 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45606
45607         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45608         to succeed.
45609
45610 2008-09-16  Jim Meyering  <meyering@redhat.com>
45611
45612         avoid spurious test failure when library is built without ACL support
45613         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45614         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45615         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45616         * tests/test-copy-acl.sh: Likewise.
45617
45618 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45619
45620         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45621         based on character occurrence counts.
45622
45623 2008-09-15  Eric Blake  <ebb9@byu.net>
45624
45625         tests: avoid some compiler warnings
45626         * tests/test-memchr.c (main): Pass NULL indirectly.
45627         * tests/test-closein.c (main): Avoid unused variable.
45628
45629 2008-09-15  Bruno Haible  <bruno@clisp.org>
45630
45631         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45632         are missing on OpenBSD 4.0 individually.
45633         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45634
45635 2008-09-15  Bruno Haible  <bruno@clisp.org>
45636
45637         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45638         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45639         * doc/posix-functions/perror.texi: Likewise.
45640         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45641         is missing.
45642         Reported by Eric Blake.
45643
45644         * lib/errno.in.h: Use replacement values >= 2000.
45645         Reported by Eric Blake.
45646
45647 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45648
45649         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45650         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45651         limit.
45652         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45653         compareseq was aborted.
45654
45655 2008-09-14  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45658         yvec_edit_count.
45659         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45660         (fstrcmp_bounded): Simplify result computation accordingly.
45661
45662 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45663
45664         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45665         (fstrcmp): Define in terms of fstrcmp_bounded.
45666         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45667         lower_bound argument.
45668         Return quickly if the result is certainly < lower_bound.
45669         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45670
45671 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45672
45673         * lib/diffseq.h (EARLY_ABORT): New macro.
45674         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45675         evaluates to true.
45676
45677 2008-09-14  Bruno Haible  <bruno@clisp.org>
45678
45679         * modules/perror-tests: New file.
45680         * tests/test-perror.sh: New file.
45681         * tests/test-perror.c: New file.
45682
45683         New module 'perror'.
45684         * lib/stdio.in.h (perror): New declaration.
45685         * lib/perror.c: New file.
45686         * m4/perror.m4: New file.
45687         * modules/perror: New file.
45688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45689         * doc/posix-functions/perror.texi: Mention the perror module.
45690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45691         REPLACE_PERROR.
45692         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45693         REPLACE_PERROR.
45694
45695 2008-09-14  Bruno Haible  <bruno@clisp.org>
45696
45697         * modules/stdio (Makefile.am): Reorder to match the order in
45698         lib/stdio.in.h.
45699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45700
45701 2008-09-13  Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45704
45705 2008-09-13  Bruno Haible  <bruno@clisp.org>
45706
45707         Extend strerror to cover the added errno values.
45708         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45709         (rpl_strerror): Provide error messages for the added errno values and
45710         for the WSA* values.
45711         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45712         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45713         strerror.
45714         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45715         * modules/strerror (Depends-on): Add errno.
45716         * doc/posix-functions/strerror.texi: Document the change.
45717         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45718         and EOVERFLOW.
45719
45720 2008-09-13  Bruno Haible  <bruno@clisp.org>
45721
45722         * modules/EOVERFLOW: Remove file.
45723         * m4/eoverflow.m4: Remove file.
45724         * modules/EOVERFLOW-tests: Remove file.
45725         * tests/test-EOVERFLOW.c: Remove file.
45726         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45727         * modules/ftell (Depends-on): Likewise.
45728         * modules/getdelim (Depends-on): Likewise.
45729         * modules/getugroups (Depends-on): Likewise.
45730         * modules/poll (Depends-on): Likewise.
45731         * modules/snprintf (Depends-on): Likewise.
45732         * modules/sprintf-posix (Depends-on): Likewise.
45733         * modules/vasnprintf (Depends-on): Likewise.
45734         * modules/vasprintf (Depends-on): Likewise.
45735         * modules/vfprintf-posix (Depends-on): Likewise.
45736         * modules/vsnprintf (Depends-on): Likewise.
45737         * modules/vsprintf-posix (Depends-on): Likewise.
45738         * modules/xvasprintf (Depends-on): Likewise.
45739         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45740         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45741         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45742         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45743         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45744         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45745         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45746         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45747         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45748         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45749         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45750         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45751         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45752         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45753         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45754         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45755         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45756         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45757         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45758         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45759         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45760         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45761         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45762         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45763         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45764         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45765         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45766         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45767         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45768         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45769         * MODULES.html.sh: Remove EOVERFLOW.
45770         * NEWS: Mention the change.
45771
45772 2008-09-13  Bruno Haible  <bruno@clisp.org>
45773
45774         * modules/errno-tests: New file.
45775         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45776
45777         * lib/errno.in.h: New file.
45778         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45779         * modules/errno: New file.
45780         * doc/posix-headers/errno.texi: Update documentation.
45781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45782
45783 2008-09-13  Bruno Haible  <bruno@clisp.org>
45784
45785         * tests/test-poll.c: Use #if for native Windows, rather than testing
45786         __MSVCRT__.
45787
45788 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45789             Bruno Haible  <bruno@clisp.org>
45790
45791         * lib/glob.c: Don't include <pwd.h> on native Windows.
45792         (WINDOWS32): New macro.
45793         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45794
45795 2008-09-13  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45798         (ETIMEDOUT): Remove macro.
45799         (glthread_cond_timedwait_multithreaded): New declaration.
45800         (glthread_cond_timedwait): Use it.
45801         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45802         (glthread_cond_timedwait_multithreaded): New function.
45803
45804 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45805
45806         * modules/poll-tests: Do not check for io.h.
45807         * tests/test-poll.c: Check for __MSVCRT__ instead.
45808
45809 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45810
45811         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45812         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45813         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45814
45815 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45816
45817         * modules/poll-tests: New.
45818         * tests/test-poll.c: New.
45819
45820 2008-09-12  Eric Blake  <ebb9@byu.net>
45821
45822         frexp: test for NetBSD failure on -0.0
45823         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45824         not all, bugs from NetBSD 3.0 have been fixed.
45825         * doc/posix-functions/frexp.texi (frexp): Document bug.
45826         Reported by Thomas Klausner.
45827
45828         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45829         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45830         literal -0.0.
45831         Reported by Jonathan C. Patschke <jp@centtech.com>.
45832
45833 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45834
45835         * lib/glthread/cond.h: Use dummy implementation also if
45836         USE_WIN32_THREADS.
45837
45838 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45839
45840         * modules/fnmatch-posix (License): Change to LGPLv2+.
45841         * modules/fnmatch-gnu (License): Likewise.
45842
45843 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45844
45845         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45846
45847 2008-09-11  Jim Meyering  <meyering@redhat.com>
45848
45849         * users.txt: Add gtk-vnc.
45850
45851 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45852
45853         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45854         rotate amounts.
45855
45856         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45857         required for 16-bit and 8-bit rotates.
45858         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45859         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45860         UINT8_MAX instead of hard-coded constants.
45861         Suggested by Paul Eggert.
45862
45863 2008-09-07  Bruno Haible  <bruno@clisp.org>
45864
45865         * tests/test-striconveh.c (main): Check behaviour when converting from
45866         UTF-7.
45867
45868         Make striconveh work better with stateful encodings.
45869         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45870         that iconv does not increment the inptr when returning -1/EINVAL.
45871
45872 2008-09-07  Bruno Haible  <bruno@clisp.org>
45873
45874         * build-aux/config.rpath: Update according to libtool-2.2.6.
45875         * build-aux/config.libpath: Likewise.
45876
45877 2008-09-06  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
45880         * lib/freadptr.c (freadptr): Likewise.
45881         * lib/freadseek.c (freadptrinc): Likewise.
45882         Reported by Simon Josefsson.
45883
45884 2008-09-06  Bruno Haible  <bruno@clisp.org>
45885
45886         * modules/freadptr (License): Change to LGPLv2+.
45887         * modules/freadseek (License): Likewise.
45888         Suggested by Eric Blake.
45889
45890         * modules/memchr2 (License): Change to LGPLv2+.
45891         Approved by Eric Blake.
45892
45893 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45894             Bruno Haible  <bruno@clisp.org>
45895
45896         Make gnulib-tool work with native 'sed' on AIX.
45897         * gnulib-tool (sed_noop): New variable.
45898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
45899         func_add_or_update, func_create_testdir): Use it to initialize sed
45900         script variables.
45901         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45902
45903 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
45904             Bruno Haible  <bruno@clisp.org>
45905
45906         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
45907         also works after #include directives.
45908
45909 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
45910
45911         getdate.y: reject an out-of-range timezone value
45912         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45913         the range [-24...+24].  When specified with only one or two digits,
45914         * tests/test-getdate.c: Tests for the fix.
45915         * doc/getdate.texi: Document this change.
45916
45917 2008-09-03  Bruno Haible  <bruno@clisp.org>
45918
45919         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45920
45921 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45922
45923         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45924         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45925         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45926         Blake <ebb9@byu.net>.
45927
45928         * tests/test-bitrotate.c: Add more test vectors.
45929
45930 2008-09-02  Eric Blake  <ebb9@byu.net>
45931
45932         vasnprintf-posix: handle large precision via %.*d
45933         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45934         when handling it ourselves.
45935         * tests/test-vasnprintf-posix.c (test_function): Add test.
45936         * tests/test-snprintf-posix.h (test_function): Likewise.
45937         * tests/test-sprintf-posix.h (test_function): Likewise.
45938         * tests/test-vasprintf-posix.c (test_function): Likewise.
45939         Reported by Alain Guibert.
45940
45941 2008-09-01  Eric Blake  <ebb9@byu.net>
45942
45943         c-stack: make configure-time check more robust
45944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45945         successful sigaction call.
45946         Reported by Tom G. Christensen.
45947
45948 2008-09-01  Bruno Haible  <bruno@clisp.org>
45949
45950         New module 'findprog-lgpl'.
45951         * modules/findprog-lgpl: New file.
45952         * lib/findprog-lgpl.c: New file.
45953         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45954         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45955         to decide whether to use strdup or xstrdup, concatenated_filename or
45956         xconcatenated_filename.
45957
45958 2008-09-01  Bruno Haible  <bruno@clisp.org>
45959
45960         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45961         'xconcat-filename' (GPL).
45962         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45963         (License): Change to LGPLv2+.
45964         * modules/xconcat-filename: New file.
45965         * lib/concat-filename.h (concatenated_filename): Change specification.
45966         (xconcatenated_filename): New declaration.
45967         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45968         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45969         memory situations.
45970         * lib/xconcat-filename.c: New file.
45971         * NEWS: Mention the change.
45972         * lib/findprog.c: Include concat-filename.h, not filename.h.
45973         (find_in_path): Use xconcatenated_filename instead of
45974         concatenated_filename.
45975         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45976         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45977         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45978         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45979         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45980         instead of concatenated_filename.
45981         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45982         (execute_java_class): Use xconcatenated_filename instead of
45983         concatenated_filename.
45984         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45985         * modules/javacomp (Depends-on): Likewise.
45986         * modules/javaexec (Depends-on): Likewise.
45987
45988 2008-09-01  Bruno Haible  <bruno@clisp.org>
45989
45990         Split module 'filename' into 'filename' and 'concat-filename'.
45991         * modules/filename: Keep only lib/filename.h.
45992         (License): Change to LGPLv2+.
45993         * modules/concat-filename: New file, extracted from modules/filename.
45994         * lib/filename.h (concatenated_filename): Remove declaration.
45995         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45996         * lib/concat-filename.c: Include concat-filename.h.
45997         * NEWS: Mention the change.
45998
45999 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46000
46001         * lib/bitrotate.h (rotl8, rotr8): Add.
46002
46003         * modules/bitrotate (configure.ac): Need
46004         AC_REQUIRE([AC_C_INLINE]).
46005         (Description): Mention stdint.h.  Reported by Bruno Haible
46006         <bruno@clisp.org>.
46007
46008         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46009         Paolo Bonzini <bonzini@gnu.org>.
46010
46011 2008-08-31  Bruno Haible  <bruno@clisp.org>
46012
46013         Assume Solaris specific bi-arch conventions on Solaris systems.
46014         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46015         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46017         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46018         like acl_libdirstem.
46019         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46020         acl_libdirstem.
46021         * NEWS: Mention the change.
46022         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46023
46024 2008-08-31  Jim Meyering  <meyering@redhat.com>
46025
46026         * lib/strftime.h: Add comments describing the two added arguments.
46027
46028         remove duplicate #include directives
46029         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46030         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46031
46032 2008-08-31  Bruno Haible  <bruno@clisp.org>
46033
46034         New module 'sigpipe-die'.
46035         * modules/sigpipe-die: New file.
46036         * lib/sigpipe-die.h: New file.
46037         * lib/sigpipe-die.c: New file.
46038         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46039
46040 2008-08-31  Bruno Haible  <bruno@clisp.org>
46041
46042         Don't override previously installed signal handlers.
46043         * lib/fatal-signal.c (saved_sigactions): New variable.
46044         (uninstall_handlers): Reset the signal to the saved handler, not
46045         to SIG_DFL (except when ignored).
46046         (install_handlers): Save the previous handlers.
46047
46048 2008-08-30  Bruno Haible  <bruno@clisp.org>
46049
46050         * gnulib-tool (func_reset_sigpipe): New function.
46051         (func_get_automake_snippet, func_modules_transitive_closure,
46052         func_import): Invoke it before a join command that reads from stdin,
46053         to avoid "echo: write error: Broken pipe" error messages on stderr.
46054         Reported by Sam Steingold <sds@gnu.org>.
46055
46056 2008-08-30  Bruno Haible  <bruno@clisp.org>
46057
46058         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46059         Code copied from m4/open.m4.
46060         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46061         access and the filename ends in a slash. Code copied from lib/open.c.
46062         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46063         * tests/test-fopen.c (main): Check against bug with trailing slash.
46064
46065 2008-08-29  Bruno Haible  <bruno@clisp.org>
46066
46067         Avoid some "gcc -pedantic" warnings.
46068         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46069         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46070         * lib/dirent.in.h: Likewise.
46071         * lib/fcntl.in.h: Likewise.
46072         * lib/float.in.h: Likewise.
46073         * lib/iconv.in.h: Likewise.
46074         * lib/inttypes.in.h: Likewise.
46075         * lib/locale.in.h: Likewise.
46076         * lib/math.in.h: Likewise.
46077         * lib/netinet_in.in.h: Likewise.
46078         * lib/search.in.h: Likewise.
46079         * lib/signal.in.h: Likewise.
46080         * lib/stdarg.in.h: Likewise.
46081         * lib/stdint.in.h: Likewise.
46082         * lib/stdio.in.h: Likewise.
46083         * lib/stdlib.in.h: Likewise.
46084         * lib/string.in.h: Likewise.
46085         * lib/strings.in.h: Likewise.
46086         * lib/sys_select.in.h: Likewise.
46087         * lib/sys_socket.in.h: Likewise.
46088         * lib/sys_stat.in.h: Likewise.
46089         * lib/sys_time.in.h: Likewise.
46090         * lib/sysexits.in.h: Likewise.
46091         * lib/time.in.h: Likewise.
46092         * lib/unistd.in.h: Likewise.
46093         * lib/wchar.in.h: Likewise.
46094         * lib/wctype.in.h: Likewise.
46095         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46096         * modules/fchdir (Makefile.am): Likewise.
46097         * modules/fcntl (Makefile.am): Likewise.
46098         * modules/float (Makefile.am): Likewise.
46099         * modules/iconv_open (Makefile.am): Likewise.
46100         * modules/inttypes (Makefile.am): Likewise.
46101         * modules/locale (Makefile.am): Likewise.
46102         * modules/math (Makefile.am): Likewise.
46103         * modules/netinet_in (Makefile.am): Likewise.
46104         * modules/search (Makefile.am): Likewise.
46105         * modules/signal (Makefile.am): Likewise.
46106         * modules/stdarg (Makefile.am): Likewise.
46107         * modules/stdint (Makefile.am): Likewise.
46108         * modules/stdio (Makefile.am): Likewise.
46109         * modules/stdlib (Makefile.am): Likewise.
46110         * modules/string (Makefile.am): Likewise.
46111         * modules/strings (Makefile.am): Likewise.
46112         * modules/sys_select (Makefile.am): Likewise.
46113         * modules/sys_socket (Makefile.am): Likewise.
46114         * modules/sys_stat (Makefile.am): Likewise.
46115         * modules/sys_time (Makefile.am): Likewise.
46116         * modules/sysexits (Makefile.am): Likewise.
46117         * modules/time (Makefile.am): Likewise.
46118         * modules/unistd (Makefile.am): Likewise.
46119         * modules/wchar (Makefile.am): Likewise.
46120         * modules/wctype (Makefile.am): Likewise.
46121         Reported by Reuben Thomas <rrt@sc3d.org>.
46122
46123 2008-08-29  Bruno Haible  <bruno@clisp.org>
46124
46125         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46126         any more.
46127
46128 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46129
46130         * MODULES.html.sh (Misc): Add bitrotate.
46131
46132         * modules/bitrotate: New file.
46133
46134         * lib/bitrotate.h: New file.
46135
46136         * modules/bitrotate-tests: New file.
46137
46138         * tests/test-bitrotate.c: New file.
46139
46140         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46141         on the bitrotate module.
46142
46143         * lib/arctwo.c: Use new bitrotate module.
46144
46145 2008-08-29  Jim Meyering  <meyering@redhat.com>
46146
46147         bootstrap: merge changes from coreutils
46148         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46149         of copied files.  Remove a kludge, now that this is fixed.
46150         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46151         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46152         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46153
46154 2008-08-29  Bruno Haible  <bruno@clisp.org>
46155
46156         * MODULES.html.sh: Remove --cvs-urls option.
46157
46158 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46159
46160         maint.mk: adjust to file name change
46161         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46162
46163 2008-08-28  Jim Meyering  <meyering@redhat.com>
46164
46165         * modules/getndelim2 (License): Relicense to LGPLv2+.
46166         Approved by Richard Stallman for the version of 1995, and by
46167         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46168
46169 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46170
46171         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46172         dummy if one is not available.  Do not touch them if
46173         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46174         (getc_maybe_unlocked): New.
46175         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46176
46177 2008-08-26  Eric Blake  <ebb9@byu.net>
46178
46179         doc/INSTALL: resync from autoconf
46180         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46181         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46182         moving...
46183         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46184         * INSTALL: Regenerate.
46185         * INSTALL.ISO: New file.
46186         * INSTALL.UTF-8: Likewise.
46187
46188 2008-08-26  Jim Meyering  <meyering@redhat.com>
46189
46190         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46191         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46192         these definitions conditional, so that they may be overridden, too.
46193
46194 2008-08-26  Bruno Haible  <bruno@clisp.org>
46195
46196         Generate INSTALL file variants with prettier quotes.
46197         * doc/Makefile (INSTALL_PRELUDE): New macro.
46198         (INSTALL): Use it.
46199         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46200
46201 2008-08-26  Bruno Haible  <bruno@clisp.org>
46202
46203         Run makeinfo in an English locale.
46204         * doc/Makefile (MAKEINFO): New variable.
46205
46206 2008-08-26  Bruno Haible  <bruno@clisp.org>
46207
46208         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46209         Suggested by Eric Blake.
46210
46211 2008-08-25  Bruno Haible  <bruno@clisp.org>
46212
46213         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46214
46215 2008-08-25  Eric Blake  <ebb9@byu.net>
46216
46217         c-stack: test that stack overflow can be caught
46218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46219         that platform allows handling stack overflow; at least OS/2 EMX
46220         has sigaltstack, but crashes before transferring control to
46221         handler on stack overflow.
46222         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46223         check for HAVE_STACK_OVERFLOW_HANDLING.
46224         Reported by Elbert Pol.
46225
46226 2008-08-25  Bruno Haible  <bruno@clisp.org>
46227
46228         * doc/posix-functions/strftime.texi: Fix description of strftime
46229         module.
46230
46231 2008-08-24  Bruno Haible  <bruno@clisp.org>
46232
46233         * tests/uniwidth/test-uc_width2.c: New file.
46234         * tests/uniwidth/test-uc_width2.sh: New file.
46235         * modules/uniwidth/width-tests (Files): Add the new files.
46236         (TESTS): Add uniwidth/test-uc_width2.sh.
46237         (TESTS_ENVIRONMENT): New variable.
46238         (check_PROGRAMS): Add test-uc_width2.
46239         (test_uc_width2_SOURCES): New variable.
46240
46241         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46242         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46243         not 0x00AB.
46244         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46245
46246 2008-08-22  Eric Blake  <ebb9@byu.net>
46247
46248         test-lock, test-tls: mention why a test is skipped
46249         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46250         skipped.
46251         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46252
46253         count-one-bits: relax license
46254         * modules/count-one-bits (License): Relicense to LGPLv2+.
46255         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46256
46257 2008-08-22  Andreas Schwab  <schwab@suse.de>
46258
46259         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46260         Remove spurious space in assignment.
46261
46262 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46263
46264         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46265         Paul Eggert <eggert@CS.UCLA.EDU>.
46266
46267 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46268
46269         * modules/gettext: Add m4/threadlib.m4.
46270
46271 2008-08-19  Eric Blake  <ebb9@byu.net>
46272
46273         test-c-stack: fix compilation failure on FreeBSD 5.0
46274         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46275         headers before <sys/resource.h>.
46276         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46277         the bug.
46278         Reported by Nelson H. F. Beebe.
46279
46280         strverscmp: migrate from "strverscmp.h" to <string.h>
46281         * modules/string (Makefile.am): Add new hooks.
46282         * modules/strverscmp (Files): Remove strverscmp.h.
46283         (Depends-on): Add string.
46284         (configure.ac): Add indicator.
46285         (Include): Mention new header.
46286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46287         defaults.
46288         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46289         results.
46290         * lib/strverscmp.h: Delete.
46291         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46292         * tests/test-strverscmp.c (includes): Adjust client.
46293         * lib/check-version.c (includes): Likewise.
46294         * NEWS: Document the change.
46295
46296         strverscmp: add unit test
46297         * modules/strverscmp-tests: New file.
46298         * tests/test-strverscmp.c: Likewise.
46299
46300 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46301
46302         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46303         regarding Windows crypto stuff, from Mono.
46304
46305 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46306
46307         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46308         if present, for intel RND.  Return error on failures.
46309
46310 2008-08-18  Ben Pfaff  <blp@gnu.org>
46311
46312         gitlog-to-changelog: give better diagnostic for failed pipe-open
46313         * build-aux/gitlog-to-changelog: Improve error message: suggest
46314         that the version of Git may be too old.
46315
46316 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46317
46318         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46319         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46320
46321 2008-08-18  Bruno Haible  <bruno@clisp.org>
46322
46323         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46324         pthread_in_use().
46325
46326 2008-08-18  Bruno Haible  <bruno@clisp.org>
46327
46328         * lib/glthread/threadlib.c: Include <pthread.h>.
46329
46330 2008-08-18  Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46333         glthread_recursive_lock_* macros.
46334         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46335         Fix syntax error.
46336
46337 2008-08-18  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/glthread/thread.c: Avoid forcing a context switch right after
46340         thread creation.
46341
46342 2008-08-17  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46345         * lib/glthread/thread.h: Provide Win32 specific implementation.
46346         * modules/thread (Files): Add lib/glthread/thread.c.
46347         (Depends-on): Add lock.
46348         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46349
46350 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46351
46352         New module 'yield'.
46353         * modules/yield: New file.
46354         * lib/glthread/yield.h: New file.
46355         * m4/yield.m4: New file.
46356         * MODULES.html.sh (Multithreading): Add yield.
46357
46358 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46359
46360         New module 'thread'.
46361         * modules/thread: New file.
46362         * lib/glthread/thread.h: New file.
46363         * m4/thread.m4: New file.
46364         * MODULES.html.sh (Multithreading): Add thread.
46365
46366 2008-08-17  Bruno Haible  <bruno@clisp.org>
46367
46368         * lib/glthread/lock.h: Include <stdlib.h> always.
46369         * lib/glthread/tls.h: Likewise.
46370         * lib/glthread/cond.h: Likewise.
46371
46372 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46373
46374         New module 'cond'.
46375         * modules/cond: New file.
46376         * lib/glthread/cond.h: New file.
46377         * lib/glthread/cond.c: New file.
46378         * m4/cond.m4: New file.
46379         * MODULES.html.sh (Multithreading): Add cond.
46380
46381 2008-08-16  Eric Blake  <ebb9@byu.net>
46382
46383         c-stack: fix regression on Irix 5.3 from 2008-06-21
46384         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46385         sa_sigaction...
46386         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46387         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46388         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46389         * modules/signal (Makefile.am): Use the value.
46390         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46391         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46392         * doc/posix-headers/signal.texi (signal.h): Document this
46393         portability issue.
46394         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46395         Reported by Tom G. Christensen.
46396
46397 2008-08-17  Bruno Haible  <bruno@clisp.org>
46398
46399         New module 'threadlib'.
46400         * modules/threadlib: New file.
46401         * lib/glthread/threadlib.c: New file, extracted from
46402         lib/glthread/lock.c.
46403         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46404         functions.
46405         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46406         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46407         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46408         macros.
46409         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46410         (gl_DISABLE_THREADS): Remove macro.
46411         * modules/lock (Files): Remove build-aux/config.rpath.
46412         (Depends-on): Remove havelib. Add threadlib.
46413         (configure.ac-early): Remove section.
46414         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46415         * modules/tls (Depends-on): Remove lock. Add threadlib.
46416         (Link): New section, copied from threadlib.
46417         * MODULES.html.sh (Multithreading): Add threadlib.
46418
46419 2008-08-14  Bruno Haible  <bruno@clisp.org>
46420
46421         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46422         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46423         glthread_rwlock_unlock, glthread_rwlock_destroy,
46424         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46425         glthread_recursive_lock_destroy): Define as macros always.
46426         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46427         glthread_lock_lock.
46428         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46429         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46430         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46431         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46432         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46433         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46434         (glthread_recursive_lock_lock_func): Renamed from
46435         glthread_recursive_lock_lock.
46436         (glthread_recursive_lock_unlock_func): Renamed from
46437         glthread_recursive_lock_unlock.
46438         (glthread_recursive_lock_destroy_func): Renamed from
46439         glthread_recursive_lock_destroy.
46440
46441 2008-08-14  Bruno Haible  <bruno@clisp.org>
46442
46443         * lib/glthread/lock.h: Renamed from lib/lock.h.
46444         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46445         * lib/glthread/tls.h: Renamed from lib/tls.h.
46446         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46447         * lib/fstrcmp.c: Update includes.
46448         * lib/strsignal.c: Update includes.
46449         * modules/lock (Files, Makefile.am): Update.
46450         (Include): Change to "glthread/lock.h".
46451         * modules/tls (Files, Makefile.am): Update.
46452         (Include): Change to "glthread/tls.h".
46453         * tests/test-lock.c: Update includes.
46454         * tests/test-tls.c: Update includes.
46455         * NEWS: Mention the renamed header files.
46456
46457 2008-08-11  Jim Meyering  <meyering@redhat.com>
46458
46459         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46460
46461 2008-08-11  Eric Blake  <ebb9@byu.net>
46462
46463         test-c-stack: avoid C99-ism
46464         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46465         before statement.
46466         Reported by Alain Guibert.
46467
46468 2008-08-10  Jim Meyering  <meyering@redhat.com>
46469
46470         ensure that return value of uinttostr et al are not ignored
46471         * lib/inttostr.h (__GNUC_PREREQ): Define.
46472         (__attribute_warn_unused_result__): Define.
46473         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46474
46475 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46476
46477         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46478         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46479
46480 2008-08-07  Jim Meyering  <meyering@redhat.com>
46481
46482         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46483
46484         * modules/mkstemp (License): Relicense under LGPLv2+.
46485         * modules/tempname (License): Likewise.
46486
46487 2008-08-06  Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/poll.c (poll): Further micro-optimization.
46490
46491 2008-08-06  Jim Meyering  <meyering@redhat.com>
46492
46493         inet_pton.c: use locale-independent tolower
46494         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46495         (inet_pton6): Use c_tolower rather than tolower.
46496         * modules/inet_pton (Depends-on): Add c-ctype.
46497
46498 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46499
46500         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46501         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46502
46503 2008-08-06  Jim Meyering  <meyering@redhat.com>
46504
46505         * modules/inet_pton (License): Relicense under LGPLv2+.
46506
46507 2008-08-03  Bruno Haible  <bruno@clisp.org>
46508
46509         Additional non-aborting API for lock and tls.
46510         * lib/lock.h: Include <errno.h>.
46511         (glthread_lock_init): New macro/function.
46512         (gl_lock_init): Define as wrapper around glthread_lock_init.
46513         (glthread_lock_lock): New macro/function.
46514         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46515         (glthread_lock_unlock): New macro/function.
46516         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46517         (glthread_lock_destroy): New macro/function.
46518         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46519         (glthread_rwlock_init): New macro/function.
46520         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46521         (glthread_rwlock_rdlock): New macro/function.
46522         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46523         (glthread_rwlock_wrlock): New macro/function.
46524         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46525         (glthread_rwlock_unlock): New macro/function.
46526         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46527         (glthread_rwlock_destroy): New macro/function.
46528         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46529         (glthread_recursive_lock_init): New macro/function.
46530         (gl_recursive_lock_init): Define as wrapper around
46531         glthread_recursive_lock_init.
46532         (glthread_recursive_lock_lock): New macro/function.
46533         (gl_recursive_lock_lock): Define as wrapper around
46534         glthread_recursive_lock_lock.
46535         (glthread_recursive_lock_unlock): New macro/function.
46536         (gl_recursive_lock_unlock): Define as wrapper around
46537         glthread_recursive_lock_unlock.
46538         (glthread_recursive_lock_destroy): New macro/function.
46539         (gl_recursive_lock_destroy): Define as wrapper around
46540         glthread_recursive_lock_destroy.
46541         (glthread_once): New macro/function.
46542         (gl_once): Define as wrapper around glthread_once.
46543         Update function declarations.
46544         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46545         glthread_rwlock_init. Return error code.
46546         (glthread_rwlock_rdlock_multithreaded): Renamed from
46547         glthread_rwlock_rdlock. Return error code.
46548         (glthread_rwlock_wrlock_multithreaded): Renamed from
46549         glthread_rwlock_wrlock. Return error code.
46550         (glthread_rwlock_unlock_multithreaded): Renamed from
46551         glthread_rwlock_unlock. Return error code.
46552         (glthread_rwlock_destroy_multithreaded): Renamed from
46553         glthread_rwlock_destroy. Return error code.
46554         (glthread_recursive_lock_init_multithreaded): Renamed from
46555         glthread_recursive_lock_init. Return error code.
46556         (glthread_recursive_lock_lock_multithreaded): Renamed from
46557         glthread_recursive_lock_lock. Return error code.
46558         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46559         glthread_recursive_lock_unlock. Return error code.
46560         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46561         glthread_recursive_lock_destroy. Return error code.
46562         (glthread_once_call): Make static.
46563         (glthread_once_multithreaded): Renamed from glthread_once.
46564         * lib/tls.h: Include <errno.h>.
46565         (glthread_tls_key_init): New macro/function.
46566         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46567         (glthread_tls_set): New macro/function.
46568         (gl_tls_set): Define as wrapper around glthread_tls_set.
46569         (glthread_tls_key_destroy): New macro/function.
46570         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46571         Update function declarations.
46572         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46573         glthread_tls_get.
46574         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46575
46576 2008-08-04  Eric Blake  <ebb9@byu.net>
46577
46578         gnumakefile: use space, not TAB, outside of targets
46579         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46580
46581 2008-08-02  Jim Meyering  <meyering@redhat.com>
46582
46583         getdate.y: avoid locale-dependent date parsing failure
46584         In Turkish locales, getdate would fail to recognize keywords
46585         containing a lowercase "i".  The solution is not to rely on
46586         locale-sensitive case-conversion.
46587         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46588         (lookup_word): Use c_toupper in place of toupper.
46589         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46590         Reported by Vefa Bicakci <bicave@superonline.com> in
46591         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46592         * modules/getdate (Depends-on): Add c-ctype.
46593
46594 2008-08-02  Bruno Haible  <bruno@clisp.org>
46595
46596         * gnulib-tool (func_import): When updating or creating a .gitignore
46597         file, prepend each added line with a slash, and ignore leading slashes
46598         from the existing lines.
46599         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46600
46601 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46602
46603         Portability fix for GNU make 3.79.1.
46604         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46605         versions do not understand.
46606
46607 2008-08-01  Bruno Haible  <bruno@clisp.org>
46608
46609         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46610         * tests/test-isnanf.h (zero): New variable.
46611         (main): Avoid literal -0.0f.
46612         * tests/test-isnand.h (zero): New variable.
46613         (main): Avoid literal -0.0.
46614         * tests/test-isnanl.h (zero): New variable.
46615         (main): Avoid literal -0.0L.
46616         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46617         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46618         -0.0, -0.0L.
46619         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46620         (test_signbitd): Avoid literal -0.0.
46621         (test_signbitl): Avoid literal -0.0L.
46622         * tests/test-ceilf1.c (zero): New variable.
46623         (main): Avoid literal -0.0f.
46624         * tests/test-ceill.c (zero): New variable.
46625         (main): Avoid literal -0.0L.
46626         * tests/test-floorf1.c (zero): New variable.
46627         (main): Avoid literal -0.0f.
46628         * tests/test-floorl.c (zero): New variable.
46629         (main): Avoid literal -0.0L.
46630         * tests/test-roundf1.c (zero): New variable.
46631         (main): Avoid literal -0.0f.
46632         * tests/test-round1.c (zero): New variable.
46633         (main): Avoid literal -0.0.
46634         * tests/test-roundl.c (zero): New variable.
46635         (main): Avoid literal -0.0L.
46636         * tests/test-truncf1.c (zero): New variable.
46637         (main): Avoid literal -0.0f.
46638         * tests/test-trunc1.c (zero): New variable.
46639         (main): Avoid literal -0.0.
46640         * tests/test-truncl.c (zero): New variable.
46641         (main): Avoid literal -0.0L.
46642         * tests/test-frexp.c (zero): New variable.
46643         (main): Avoid literal -0.0.
46644         * tests/test-frexpl.c (zero): New variable.
46645         (main): Avoid literal -0.0L.
46646         * tests/test-ldexpl.c (zero): New variable.
46647         (main): Avoid literal -0.0L.
46648         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46649         (zerod, zerol): New variables.
46650         (test_function): Avoid literals -0.0, -0.0L.
46651         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46652         (zerod, zerol): New variables.
46653         (test_function): Avoid literals -0.0, -0.0L.
46654         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46655         (zerod, zerol): New variables.
46656         (test_function): Avoid literals -0.0, -0.0L.
46657         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46658         (zerod, zerol): New variables.
46659         (test_function): Avoid literals -0.0, -0.0L.
46660         * tests/test-strtod.c (zero): New variable.
46661         (main): Avoid literal -0.0.
46662         Reported by Jonathan C. Patschke <jp@centtech.com>.
46663
46664 2008-07-31  Jim Meyering  <meyering@redhat.com>
46665
46666         sha256.h: correct definition of SHA224_DIGEST_SIZE
46667         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46668         Reported by Paulie Pena IV <paulie4@gmail.com>.
46669         Define as 224 / 8, rather than as a literal.
46670         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46671         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46672         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46673
46674 2008-07-31  Bruno Haible  <bruno@clisp.org>
46675
46676         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46677         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46678         Reported by Jonathan Patschke <jp@centtech.com>.
46679
46680 2008-07-31  Bruno Haible  <bruno@clisp.org>
46681
46682         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46683         Reported by Paolo Bonzini <bonzini@gnu.org>.
46684
46685 2008-07-30  Eric Blake  <ebb9@byu.net>
46686
46687         test-strtod: allow compilation without -lm
46688         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46689         Reported by Dennis Clarke <blastwave@gmail.com>.
46690
46691 2008-07-28  Jim Meyering  <meyering@redhat.com>
46692
46693         bootstrap: work also when there are no .po files in po/
46694         * build-aux/bootstrap (update_po_files): Complete the change
46695         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46696
46697 2008-07-27  Jim Meyering  <meyering@redhat.com>
46698
46699         * users.txt: Add zile.
46700
46701 2008-07-26  Ben Pfaff  <blp@gnu.org>
46702
46703         Add missing dependencies on new m4/exponent[fdl].m4 files.
46704         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46705         * modules/isnand-nolibm: Add m4/exponentd.m4.
46706         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46707         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46708         m4/isnan[fdl].m4, because the macros actually used moved.
46709         Reported by Jim Meyering.
46710
46711 2008-07-14  Ben Pfaff  <blp@gnu.org>
46712
46713         Add isinf module.
46714         * lib/isinf.c: New file.
46715         * lib/math.in.h: Define isinf macro if we have decided to replace
46716         it.
46717         * m4/isinf.m4: New file.
46718         * m4/math_h.m4: Initialize and substitute variables for isinf
46719         module.
46720         * modules/isinf: New file.
46721         * modules/isinf-tests: New file.
46722         * modules/math: Add substitutions for new module.
46723         * tests/test-isinf.c: New file.
46724         * doc/posix-functions/isinf.texi: Mention new module.
46725         * MODULES.html.sh: Mention new module.
46726
46727 2008-07-14  Ben Pfaff  <blp@gnu.org>
46728
46729         Factor out some macros for use by additional modules.
46730         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46731         exponentf.m4.
46732         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46733         exponentd.m4.
46734         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46735         file exponentl.m4.
46736         * m4/exponentf.m4: New file.
46737         * m4/exponentd.m4: New file.
46738         * m4/exponentl.m4: New file.
46739         * modules/isnanf: Use new file m4/exponentf.m4.
46740         * modules/isnand: Use new file m4/exponentd.m4.
46741         * modules/isnanl: Use new file m4/exponentl.m4.
46742
46743 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46744
46745         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46746         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46747         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46748         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46749
46750         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46751         readlink on platforms without PATH_MAX.
46752
46753 2008-07-21  Eric Blake  <ebb9@byu.net>
46754
46755         Warn, not fail, on stale version.
46756         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46757
46758         Don't allow installation with stale devel version number.
46759         * top/GNUmakefile (_is-install-target): New macro.
46760         (_curr-ver): Forbid installation with stale version number.
46761
46762 2008-07-20  Bruno Haible  <bruno@clisp.org>
46763
46764         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46765         TESTS_ENVIRONMENT.
46766         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46767
46768 2008-07-20  Bruno Haible  <bruno@clisp.org>
46769
46770         * lib/c-stack.h (c_stack_action): Add documentation.
46771         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46772
46773 2008-07-20  Bruno Haible  <bruno@clisp.org>
46774
46775         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46776         * modules/readlink (License): Likewise.
46777
46778 2008-07-17  Eric Blake  <ebb9@byu.net>
46779
46780         * modules/c-stack (Link): Fix typo.
46781
46782         Make c-stack use libsigsegv, when available.
46783         * modules/c-stack (Depends-on): Add libsigsegv.
46784         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46785         needed.
46786         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46787         (segv_handler, overflow_handler, c_stack_action)
46788         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46789         implementation when libsigsegv is available, but only when using
46790         the library is necessary.
46791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46792         comment, explaining why XSI check fails on Linux.
46793         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46794         * tests/test-c-stack2.sh: Tweak skip message.
46795         * NEWS: Document new link-time requirements.
46796
46797 2008-07-16  Eric Blake  <ebb9@byu.net>
46798
46799         c-stack: Expose false positives when not using libsigsegv.
46800         * modules/c-stack-tests (Files): Expand test.
46801         * tests/test-c-stack.c (main): Add means to conditionally trigger
46802         non-overflow SIGSEGV.
46803         * tests/test-c-stack2.sh: New file.
46804
46805 2008-07-14  Bruno Haible  <bruno@clisp.org>
46806
46807         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46808         Reported by Eric Blake.
46809
46810 2008-07-14  Sam Steingold  <sds@gnu.org>
46811             Bruno Haible  <bruno@clisp.org>
46812
46813         New module libsigsegv.
46814         * modules/libsigsegv: New file.
46815         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46816         modifications.
46817         * MODULES.html.sh (Signal handling): New section.
46818
46819 2008-07-14  Bruno Haible  <bruno@clisp.org>
46820
46821         * modules/unictype/ctype-* (Description): Add the word "function".
46822         Improves the resulting doc in MODULES.html.
46823
46824 2008-07-12  Ben Pfaff  <blp@gnu.org>
46825
46826         Add longlong module.
46827         * modules/longlong: New file.
46828
46829 2008-07-12  Bruno Haible  <bruno@clisp.org>
46830
46831         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46832         to empty.
46833
46834 2008-07-10  Ben Pfaff  <blp@gnu.org>
46835
46836         Add isnan module.
46837         * doc/posix-functions/isnan.texi: Mention new module.
46838         * lib/math.in.h: Define isnan macro if we have decided to replace
46839         it.
46840         * m4/isnan.m4: New file.
46841         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46842         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46843         also.
46844         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46845         redundancy.
46846         * m4/math_h.m4: Initialize and substitute variables for isnan
46847         module.
46848         * modules/isnan: New file.
46849         * modules/isnan-tests: New file.
46850         * modules/math: Add substitutions for new module.
46851         * tests/test-isnan.c: New file.
46852         * MODULES.html.sh: Mention new module.
46853
46854 2008-07-10  Ben Pfaff  <blp@gnu.org>
46855
46856         Add isnanf module.
46857         * lib/isnanf.m4: New file.
46858         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46859         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46860         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46861         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46862         * modules/isnanf: New file.
46863         * modules/isnanf-tests: New file.
46864         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46865         files.
46866         * tests/test-isnanf-nolibm.c: factored most of its contents into
46867         new file tests/test-isnanf.h.
46868         * tests/test-isnanf.h: New file.
46869         * tests/test-isnanf.c: New file.
46870         * MODULES.html.sh: Mention new module.
46871         * doc/glibc-functions/isnanf.texi: Mention new module.
46872
46873 2008-07-10  Ben Pfaff  <blp@gnu.org>
46874
46875         Add isnand module.
46876         * lib/isnand.h: New file.
46877         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
46878         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
46879         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
46880         functionality also.
46881         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
46882         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
46883         (gl_HAVE_ISNAND_IN_LIBM): New macro.
46884         * modules/isnand: New file.
46885         * modules/isnand-tests: New file.
46886         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
46887         files.
46888         * tests/test-isnand-nolibm.c: factored most of its contents into
46889         new file tests/test-isnand.h.
46890         * tests/test-isnand.h: New file.
46891         * tests/test-isnand.c: New file.
46892         * MODULES.html.sh: Mention new module.
46893
46894 2008-07-10  Ben Pfaff  <blp@gnu.org>
46895
46896         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
46897         * lib/isnand.h: Rename lib/isnand-nolibm.h.
46898         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
46899         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
46900         * modules/isnanf-nolibm: Update references to renamed files.
46901         * modules/isnand-nolibm: Likewise.
46902         * modules/isnanf-nolibm-tests: Likewise.
46903         * modules/isnand-nolibm-tests: Likewise.
46904         * lib/frexp.c: Likewise.
46905         * lib/isfinite.c: Likewise.
46906         * lib/signbitd.c: Likewise.
46907         * lib/signbitf.c: Likewise.
46908         * lib/vasnprintf.c: Likewise.
46909         * tests/test-ceilf1.c: Likewise.
46910         * tests/test-ceilf2.c: Likewise.
46911         * tests/test-floorf1.c: Likewise.
46912         * tests/test-floorf2.c: Likewise.
46913         * tests/test-frexp.c: Likewise.
46914         * tests/test-round1.c: Likewise.
46915         * tests/test-round2.c: Likewise.
46916         * tests/test-roundf1.c: Likewise.
46917         * tests/test-strtod.c: Likewise.
46918         * tests/test-trunc1.c: Likewise.
46919         * tests/test-trunc2.c: Likewise.
46920         * tests/test-truncf1.c: Likewise.
46921         * tests/test-truncf2.c: Likewise.
46922         * NEWS: Mention the renamed header files.
46923
46924 2008-07-11  Jim Meyering  <meyering@redhat.com>
46925
46926         vc-list-files: make the last-resort awk code more portable
46927         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46928         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46929         does not support it.
46930
46931 2008-07-10  Eric Blake  <ebb9@byu.net>
46932
46933         Work with tar's bootstrap.
46934         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46935         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46936         an m4 comment.
46937
46938 2008-07-09  Jim Meyering  <meyering@redhat.com>
46939
46940         posix-shell.m4: fix typo that made this test malfunction
46941         * m4/posix-shell.m4: Remove capitalization in variable name.
46942
46943 2008-07-08  Bruno Haible  <bruno@clisp.org>
46944
46945         * m4/onceonly.m4: Update comments.
46946         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46947
46948 2008-07-04  Jim Meyering  <meyering@redhat.com>
46949
46950         * users.txt: Add vc-dwim.
46951         (bison, coreutils): Use the gitweb URL.
46952
46953 2008-07-03  Jim Meyering  <meyering@redhat.com>
46954
46955         * users.txt: Add libffcall.  From Sam Steingold.
46956
46957 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46958
46959         getdate.y: do not ignore TZ with relative day, month or year offset
46960         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46961         relative-date-handling, since otherwise, the latter would clobber the
46962         sole output (an updated Start value) of the tz-handling block.
46963         * tests/test-getdate.c: Tests for the fix
46964
46965 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46966
46967         Recognize 'foo_LIBRARIES += libgnu.a'.
46968         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46969         makefile snippet has already specified an installation location,
46970         also using '+='.
46971
46972 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46973
46974         getdate.y: factor out common actions
46975         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46976         Use them in place of open-coded actions.
46977
46978 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46979
46980         Add self-test for getdate module.
46981         * modules/getdate-tests: New file.
46982         * tests/test-getdate.c: New file.
46983
46984 2008-06-29  Bruno Haible  <bruno@clisp.org>
46985
46986         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46987         .gitignore.
46988         Reported by Sylvain Beucler <beuc@beuc.net>.
46989
46990 2008-06-29  Bruno Haible  <bruno@clisp.org>
46991
46992         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46993         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46994
46995 2008-06-29  Bruno Haible  <bruno@clisp.org>
46996
46997         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46998         EXTRA_DIST.
46999         Reported by Sylvain Beucler <beuc@beuc.net>.
47000
47001 2008-06-26  Jim Meyering  <meyering@redhat.com>
47002
47003         make several modules depend on the "open" module
47004         This provides slightly increased consistency when opening-for-write
47005         the name of a non-directory spelled with a trailing slash.
47006         * modules/chdir-safer: Likewise.
47007         * modules/chown: Likewise.
47008         * modules/clean-temp: Likewise.
47009         * modules/copy-file: Likewise.
47010         * modules/fchdir: Likewise.
47011         * modules/fcntl-safer: Likewise.
47012         * modules/pipe: Likewise.
47013         * modules/utime: Likewise.
47014         Prompted by Eric Blake and Bruno Haible.
47015
47016 2008-06-24  Andreas Schwab  <schwab@suse.de>
47017
47018         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47019         literals can be used as initializers for global variables.
47020
47021 2008-06-23  Eric Blake  <ebb9@byu.net>
47022
47023         Make gnulib-cache.m4 easier to diff.
47024         * gnulib-tool (func_import): Allow newlines when reading cached
47025         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47026
47027 2008-06-23  Bruno Haible  <bruno@clisp.org>
47028
47029         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47030         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47031         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47032         m4/signalblocking.m4.
47033         (gl_PREREQ_SIGACTION): Don't invoke it.
47034         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47035         gl_PREREQ_SIG_HANDLER_H.
47036         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47037         Don't check for sigaction here.
47038
47039 2008-06-23  Bruno Haible  <bruno@clisp.org>
47040
47041         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47042         (install_handlers): Don't set the SA_RESETHAND flag.
47043
47044 2008-06-23  Bruno Haible  <bruno@clisp.org>
47045
47046         * m4/sigaction.m4: Comment fixes.
47047         * lib/signal.in.h: Likewise.
47048
47049 2008-06-23  Eric Blake  <ebb9@byu.net>
47050
47051         Fix typo.
47052         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47053
47054         Avoid SA_ namespace.
47055         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47056         Reported by Ralf Wildenhues.
47057
47058         Avoid test failure due to SA_RESTORER.
47059         * tests/test-sigaction.c (SA_MASK): New macro.
47060         (main): Avoid failing due to extension flags being set.
47061         Reported by Jim Meyering.
47062
47063         Revert use of sig-handler.h in sigprocmask.c.
47064         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47065         it requires the existence of struct sigaction.
47066         * lib/sigprocmask.c (handler_t): Restore typedef.
47067         (rpl_signal, old_handlers): Use local type.
47068
47069 2008-06-22  Bruno Haible  <bruno@clisp.org>
47070
47071         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47072         conditionally.
47073         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47074
47075 2008-06-22  Bruno Haible  <bruno@clisp.org>
47076
47077         * doc/posix-functions/siginterrupt.texi: Move note.
47078
47079         * lib/signal.in.h (SA_RESTART): New macro.
47080         * lib/sigaction.c: Update comment.
47081
47082         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47083
47084         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47085         (gl_PREREQ_SIGPROCMASK): Invoke it.
47086         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47087
47088         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47089
47090         * lib/sigprocmask.c: Update a comment.
47091
47092 2008-06-21  Eric Blake  <ebb9@byu.net>
47093
47094         Use sigaction module rather than signal().
47095         * modules/c-stack (Depends-on): Add sigaction.
47096         * modules/fatal-signal (Depends-on): Likewise.
47097         * modules/nanosleep (Depends-on): Likewise.
47098         * modules/sigprocmask (Files): Add sig-handler.h.
47099         * modules/sigaction (Files): Likewise.
47100         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47101         Eggert.
47102         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47103         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47104         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47105         (init_fatal_signals): Likewise.
47106         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47107         (siginterrupt): Delete fallback.
47108         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47109         instead.
47110         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47111         siginterrupt.
47112
47113         New module sigaction, for mingw.
47114         * modules/sigaction: New module...
47115         * modules/sigaction-tests: ...and its test.
47116         * m4/sigaction.m4: New file.
47117         * lib/sigaction.c: Likewise.
47118         * tests/test-sigaction.c: Likewise.
47119         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47120         * modules/signal (Makefile.am): Likewise.
47121         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47122         needed.
47123         * doc/posix-headers/signal.texi (signal.h): Mention provided
47124         types.
47125         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47126         that sigaction is preferable.
47127         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47128         module.
47129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47130         sigaction.
47131
47132         Improve robustness of sigprocmask by overriding signal.
47133         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47134         is in use.
47135         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47136         (SIGKILL, SIGSTOP): Provide fallbacks.
47137         (rpl_signal): Implement.
47138         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47139         signal can be called inside handlers.
47140
47141         Fix nanosleep module on mingw.
47142         * modules/nanosleep (Depends-on): Add sys_select.
47143         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47144
47145         Fix licensing of sigprocmask.
47146         * modules/raise (License): Relicense as LGPL.
47147
47148 2008-06-21  Bruno Haible  <bruno@clisp.org>
47149
47150         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47151         result if it contains question marks.
47152         Reported by Michael Geng <linux@michaelgeng.de>.
47153
47154 2008-06-19  Bruno Haible  <bruno@clisp.org>
47155
47156         Fix CVS-ism.
47157         * doc/gnulib.texi: Include updated-stamp.texi.
47158         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47159         (updated-stamp.texi): New rule.
47160         (gnulib.info): Depend on it.
47161         * doc/.gitignore: Add updated-stamp.texi.
47162         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47163
47164 2008-06-19  Bruno Haible  <bruno@clisp.org>
47165
47166         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47167         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47168
47169 2008-06-19  Eric Blake  <ebb9@byu.net>
47170
47171         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47172         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47173         Reported by Stepan Kasal.
47174
47175 2008-06-18  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47178         Reported by Eric Blake.
47179
47180 2008-06-18  Eric Blake  <ebb9@byu.net>
47181
47182         Work around cygwin 1.5.25 strsignal bug.
47183         * tests/test-strsignal.c: Allow for const char *.
47184         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47185
47186 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47187
47188         * users.txt: Update URL to article and add author/date
47189         information.
47190
47191 2008-06-17  Bruno Haible  <bruno@clisp.org>
47192
47193         New macro gl_DISABLE_THREADS.
47194         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47195         if the user did not pass --enable-threads or --disable-threads option.
47196         (gl_DISABLE_THREADS): New macro.
47197         Reported by Eric Blake <ebb9@byu.net>.
47198
47199 2008-06-17  Bruno Haible  <bruno@clisp.org>
47200
47201         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47202         when the macro ignores it.
47203         Based on a patch by Eric Blake <ebb9@byu.net>.
47204
47205 2008-06-17  Bruno Haible  <bruno@clisp.org>
47206
47207         * modules/tls (License): Change to LGPLv2+.
47208         Reported by Eric Blake.
47209
47210 2008-06-17  Eric Blake  <ebb9@byu.net>
47211
47212         Simplify c-stack prerequisites.
47213         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47214         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47215         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47216         check.
47217         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47218         <sys/resource.h>.
47219
47220         Move c-stack test into testsuite.
47221         * modules/c-stack-tests: New file.
47222         * lib/c-stack.c [DEBUG]: Move test program...
47223         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47224         fail test if sigaltstack is lacking.
47225         * tests/test-c-stack.sh: New driver file.
47226
47227 2008-06-16  Eric Blake  <ebb9@byu.net>
47228
47229         Use raise module consistently.
47230         * modules/fatal-signal (Depends-on): Add raise.
47231         * modules/sigprocmask (Depends-on): Likewise.
47232         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47233         * lib/sigprocmask.c (sigprocmask): Likewise.
47234         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47235         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47236
47237         Fix compliance bug in sigpending.
47238         * lib/sigprocmask.c (sigpending): Return pending array via
47239         parameter, not return value.
47240
47241 2008-06-14  Eric Blake  <ebb9@byu.net>
47242
47243         Improve obstack-printf test code.
47244         * tests/test-obstack-printf.c (test_function): Fix comment, and
47245         simplify usage of obstack_* in macros.  Add a test for coverage.
47246         Reported by Bruno Haible.
47247
47248 2008-06-14  Bruno Haible  <bruno@clisp.org>
47249
47250         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47251         array size as a constant, not as a const variable.
47252         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47253         AC_USE_SYSTEM_EXTENSIONS.
47254         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47255         Test whether the obstack_printf function actually exists.
47256         * modules/obstack-printf (Depends-on): Add extensions.
47257         (Include): Remove obstack.h.
47258         * modules/obstack-printf-posix (Depends-on): Add extensions.
47259         (Include): Remove obstack.h.
47260
47261 2008-06-13  Eric Blake  <ebb9@byu.net>
47262
47263         Add obstack-printf and obstack-printf-posix modules.
47264         * modules/obstack-printf: New file.
47265         * modules/obstack-printf-posix: Likewise.
47266         * MODULES.html.sh (Misc): Mention them.
47267         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47268         Likewise.
47269         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47270         Likewise.
47271         * modules/stdio (Makefile.am): Accomodate new modules.
47272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47273         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47274         Declare.
47275         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47276         functions.
47277         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47278         (gl_REPLACE_OBSTACK_PRINTF): New macros
47279         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47280         * tests/test-obstack-printf.c: New file.
47281         * modules/obstack-printf-tests: Likewise.
47282         * modules/obstack-printf-posix-tests: Likewise.
47283
47284 2008-06-11  Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47287         * lib/open.c: Include errno.h.
47288         (open): Fail when attempting to write to a file that has a trailing
47289         slash.
47290         * tests/test-open.c (main): Test against trailing slash bug.
47291         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47292
47293 2008-06-10  Bruno Haible  <bruno@clisp.org>
47294
47295         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47296         for $? to work inside the trap command, with various /bin/sh-s.
47297         * tests/test-vc-list-files-cvs.sh: Likewise.
47298
47299 2008-06-10  Bruno Haible  <bruno@clisp.org>
47300
47301         * lib/acl-internal.h: Don't include gettext.h here.
47302         * lib/set-mode-acl.c: Include gettext.h here.
47303         * lib/copy-acl.c: Likewise.
47304
47305 2008-06-10  Bruno Haible  <bruno@clisp.org>
47306
47307         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47308         * lib/wait-process.c (wait_subprocess): Likewise.
47309         * lib/execute.h (execute): Add termsigp argument.
47310         * lib/execute.c (execute): Likewise.
47311         * lib/csharpcomp.c (compile_csharp_using_pnet,
47312         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47313         * lib/csharpexec.c (execute_csharp_using_pnet,
47314         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47315         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47316         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47317         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47318         is_jikes_present): Update.
47319         * lib/javaexec.c (execute_java_class): Update.
47320         * lib/javaversion.c (execute_and_read_line): Update.
47321         * NEWS: Document the changes.
47322         Reported by Eric Blake.
47323
47324 2008-06-10  Eric Blake  <ebb9@byu.net>
47325
47326         Add missing include.
47327         * tests/test-strstr.c (includes): Add <signal.h>.
47328         * tests/test-strcasestr.c (includes): Likewise.
47329         * tests/test-memmem.c (includes): Likewise.
47330
47331 2008-06-10  Bruno Haible  <bruno@clisp.org>
47332
47333         * lib/wait-process.c (wait_subprocess): Add an assertion.
47334
47335 2008-06-10  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47338
47339 2008-06-10  Bruno Haible  <bruno@clisp.org>
47340
47341         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47342         using alarm().
47343         * tests/test-strcasestr.c (main): Likewise.
47344         * tests/test-strstr.c (main): Likewise.
47345
47346 2008-06-09  Bruno Haible  <bruno@clisp.org>
47347
47348         Work around the Solaris 10 ACE ACLs ABI change.
47349         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47350         declare if ACL_NO_TRIVIAL is present.
47351         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47352         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47353         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47354         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47355         define if ACL_NO_TRIVIAL is present.
47356         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47357         and use the current ABI.
47358         (file_has_acl): Use same #if condition as elsewhere.
47359         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47360         in use, and use the current ABI.
47361         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47362         Reported by Jim Meyering.
47363
47364 2008-06-09  Eric Blake  <ebb9@byu.net>
47365
47366         Work around environments that (stupidly) ignore SIGALRM.
47367         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47368         before using alarm().
47369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47371         Reported by Ian Beckwith <ianb@erislabs.net>.
47372
47373         Produce autobuild blurb earlier in log.
47374         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47375
47376 2008-06-09  Jim Meyering  <meyering@redhat.com>
47377         and OndÅ™ej Vašík  <ovasik@redhat.com>
47378
47379         utimens.c: correct kernel bug work-around
47380         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47381         failure, not success, and the kernel bug we're trying to work
47382         around affects not just the utimensat call, but also the fallback
47383         futimens call.
47384         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47385         not success.
47386         [HAVE_FUTIMENS]: Use the same work-around, here.
47387
47388 2008-06-09  Jim Meyering  <meyering@redhat.com>
47389
47390         add more guards around definition of ACE_-related code
47391         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47392         ALLOW and ACE_OWNER are also defined.
47393
47394 2008-06-08  Bruno Haible  <bruno@clisp.org>
47395
47396         * lib/acl-internal.h: Add me as co-author.
47397         * lib/file-has-acl.c: Likewise.
47398         * lib/set-mode-acl.c: Likewise.
47399         * lib/copy-acl.c: Likewise.
47400
47401 2008-06-08  Bruno Haible  <bruno@clisp.org>
47402
47403         Add support for AIX ACLs.
47404         * lib/acl-internal.h (acl_nontrivial): New declaration.
47405         * lib/file-has-acl.c (acl_nontrivial): New function.
47406         (file_has_acl): Add implementation using AIX 4 ACL API.
47407         * lib/set-mode-acl.c (qset_acl): Likewise.
47408         * lib/copy-acl.c (qcopy_acl): Likewise.
47409
47410 2008-06-08  Bruno Haible  <bruno@clisp.org>
47411
47412         Add support for HP-UX ACLs.
47413         * lib/acl-internal.h (acl_nontrivial): New declaration.
47414         * lib/file-has-acl.c (acl_nontrivial): New function.
47415         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47416         * lib/set-mode-acl.c (qset_acl): Likewise.
47417         * lib/copy-acl.c (qcopy_acl): Likewise.
47418
47419 2008-06-08  Bruno Haible  <bruno@clisp.org>
47420
47421         Add support for Cygwin ACLs.
47422         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47423         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47424         the chmod_or_fchmod call.
47425         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47426
47427 2008-06-08  Bruno Haible  <bruno@clisp.org>
47428
47429         Fix bug with setuid modes in Solaris 10+ code.
47430         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47431         succeeded, when the mode contains some special bits.
47432
47433 2008-06-08  Bruno Haible  <bruno@clisp.org>
47434
47435         Add support for Solaris 7..10 ACLs.
47436         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47437         declarations.
47438         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47439         functions.
47440         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47441         * lib/set-mode-acl.c (qset_acl): Likewise.
47442         * lib/copy-acl.c (qcopy_acl): Likewise.
47443
47444 2008-06-08  Bruno Haible  <bruno@clisp.org>
47445
47446         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47447         declaration.
47448         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47449         (acl_access_nontrivial): Remove MacOS X case.
47450         (file_has_acl): Use acl_extended_nontrivial.
47451         * lib/copy-acl.c (qcopy_acl): Likewise.
47452
47453 2008-06-08  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47456
47457 2008-06-08  Jim Meyering  <meyering@redhat.com>
47458
47459         * modules/acl (Maintainer): Add Bruno Haible.
47460
47461 2008-06-07  Bruno Haible  <bruno@clisp.org>
47462
47463         Improve support for Tru64 ACLs.
47464         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47465         ACL on OSF/1.
47466
47467 2008-06-07  Bruno Haible  <bruno@clisp.org>
47468
47469         Add support for MacOS X ACLs.
47470         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47471         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47472         * lib/set-mode-acl.c (qset_acl): Likewise.
47473         * lib/copy-acl.c (qcopy_acl): Likewise.
47474
47475 2008-06-07  Bruno Haible  <bruno@clisp.org>
47476
47477         Fix memory leak introduced on 2008-05-22.
47478         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47479         use.
47480
47481 2008-06-07  Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47484         to construct an empty ACL.
47485
47486 2008-06-07  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47489         precisely.
47490         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47491
47492 2008-06-07  Bruno Haible  <bruno@clisp.org>
47493
47494         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47495         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47496
47497 2008-06-07  Bruno Haible  <bruno@clisp.org>
47498
47499         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47500         regardless of POSIX.
47501         * doc/posix-functions/_longjmp.texi: Likewise.
47502         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47503         SystemV platform in this case.
47504
47505 2008-06-06  Eric Blake  <ebb9@byu.net>
47506
47507         Document abort() bugs.
47508         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47509
47510         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47511         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47512         sigsetjmp.
47513         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47514         siglongjmp, but only as a macro.
47515         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47516         is obsolete.
47517         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47518
47519         Tweak documentation to cover cygwin argz bugs.
47520         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47521         argz bug fix; no code change needed since no cygwin releases
47522         occurred between the last fix and the bug being tested.
47523         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47524         module and recently fixed cygwin bugs.
47525         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47526         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47527         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47528         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47529         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47530         Likewise.
47531         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47532         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47533         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47534         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47535         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47536         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47537         Likewise.
47538
47539         Avoid gcc warning on cygwin.
47540         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47541         !ACL_NO_TRIVIAL]: Avoid unused variable.
47542
47543 2008-06-05  Eric Blake  <ebb9@byu.net>
47544
47545         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47546         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47547         git-version-gen fails to come up with a version.
47548         Reported by Simon Josefsson.
47549
47550 2008-06-05  Jim Meyering  <meyering@redhat.com>
47551             Paul Eggert  <eggert@cs.ucla.edu>
47552
47553         utimens.c: work around a probable Linux kernel bug
47554         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47555         appears to be a kernel bug that causes utimensat to return 280
47556         instead of 0, indicating success.
47557
47558 2008-06-04  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47561         2008-06-01 commit.
47562
47563 2008-06-04  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47566         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47567         (file_has_acl): Use it. Save errno afterwards.
47568         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47569
47570 2008-06-03  Bruno Haible  <bruno@clisp.org>
47571
47572         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47573         draft code. Simplify #ifs.
47574         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47575         Put Solaris code after POSIX-draft code. Fix comments regarding
47576         Solaris 10, HP-UX. Mention Cygwin.
47577         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47578
47579 2008-06-03  Eric Blake  <ebb9@byu.net>
47580
47581         Provide fallback for older kernels.
47582         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47583         Provide runtime fallback if kernel lacks support.
47584         Reported by Mike Frysinger.
47585
47586 2008-06-02  Bruno Haible  <bruno@clisp.org>
47587
47588         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47589         it exists.
47590
47591 2008-06-02  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47594         * lib/copy-acl.c (qcopy_acl): Update comment.
47595
47596 2008-06-02  Bruno Haible  <bruno@clisp.org>
47597
47598         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47599         like ACL APIs.
47600
47601 2008-06-02  Bruno Haible  <bruno@clisp.org>
47602
47603         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47604         * tests/test-set-mode-acl.sh: Likewise.
47605         * tests/test-copy-acl.sh: Likewise.
47606         * tests/test-copy-file.sh: Likewise.
47607
47608 2008-06-02  Bruno Haible  <bruno@clisp.org>
47609
47610         * tests/test-file-has-acl.sh: Remove unused code.
47611
47612 2008-06-01  Bruno Haible  <bruno@clisp.org>
47613
47614         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47615         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47616         messages.
47617         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47618
47619 2008-06-01  Bruno Haible  <bruno@clisp.org>
47620
47621         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47622         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47623         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47624         APIs.
47625         * modules/acl-tests (configure.ac): Remove tests now contained in
47626         m4/acl.m4.
47627
47628 2008-06-02  Jim Meyering  <meyering@redhat.com>
47629
47630         announce-gen: use a better key-server host name
47631         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47632         it may be more consistently reliable.  Suggested by Werner Koch
47633         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47634
47635 2008-06-01  Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47638         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47639
47640 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47641
47642         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47643
47644 2008-06-01  Bruno Haible  <bruno@clisp.org>
47645
47646         New ACL tests.
47647         * tests/test-file-has-acl.sh: New file.
47648         * tests/test-file-has-acl.c: New file.
47649         * tests/test-set-mode-acl.sh: New file.
47650         * tests/test-set-mode-acl.c: New file.
47651         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47652         * tests/test-copy-acl.c: New file.
47653         * modules/acl-tests: New file, based on modules/copy-file-tests.
47654         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47655         (Depends-on): Add acl-tests.
47656         (configure.ac): Remove checks.
47657         (Makefile.am): Don't create test-sameacls program here any more.
47658
47659 2008-06-01  Bruno Haible  <bruno@clisp.org>
47660
47661         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47662         * tests/test-sameacls.c: Include progname.h.
47663         (main): Invoke set_program_name. Portability fixes for MacOS X,
47664         Solaris, HP-UX.
47665
47666 2008-06-01  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47669         function.
47670         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47671
47672 2008-06-01  Bruno Haible  <bruno@clisp.org>
47673
47674         * modules/rpmatch (Depends-on): Add strdup.
47675
47676 2008-06-01  Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/pipe.c: Include unistd-safer.h.
47679         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47680         * modules/pipe (Depends-on): Add unistd-safer.
47681
47682 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47683
47684         * modules/autobuild (configure.ac): Call AB_INIT.
47685
47686 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47687
47688         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47689         Suggested by Bruno Haible <bruno@clisp.org>.
47690
47691 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47692
47693         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47694         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47695         <bruno@clisp.org>.
47696
47697 2008-05-29  Eric Blake  <ebb9@byu.net>
47698
47699         Prefer new POSIX 200x interfaces over futimesat.
47700         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47701         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47702         when available.
47703         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47704
47705 2008-05-28  Bruno Haible  <bruno@clisp.org>
47706
47707         * modules/stpcpy (License): Change to LGPLv2+.
47708         Requested by David Lutterkort <dlutter@redhat.com>.
47709
47710 2008-05-27  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47713         current mingw.
47714         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47715
47716 2008-05-27  Bruno Haible  <bruno@clisp.org>
47717
47718         * modules/iconv_open (Link): New section, from module 'iconv'.
47719         * modules/striconv (Link): Likewise.
47720         * modules/striconveh (Link): Likewise.
47721         * modules/xstriconv (Link): Likewise.
47722         * modules/unicodeio (Link): Likewise.
47723         * modules/propername (Link): Likewise.
47724         Reported by Jim Meyering.
47725
47726 2008-05-26  Jim Meyering  <meyering@redhat.com>
47727
47728         sha256: do not artificially restrict buffer length to be < 2^32
47729         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47730         uint32_t to size_t.
47731         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47732         to match.
47733
47734         avoid unaligned access errors, e.g., on sparc
47735         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47736         direct access through a possibly-unaligned uint64* pointer.
47737         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47738         direct access through a possibly-unaligned uint32* pointer.
47739         Prompted by this patch from Tom "spot" Callaway:
47740         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47741
47742         sha512.c: fix typo in comment
47743         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47744
47745 2008-05-25  Bruno Haible  <bruno@clisp.org>
47746
47747         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47748         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47749         (Makefile.am): Update lib_SOURCES.
47750
47751 2008-05-25  Bruno Haible  <bruno@clisp.org>
47752
47753         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47754
47755 2008-05-25  Jim Meyering  <meyering@redhat.com>
47756
47757         useless-if-before-free: freed expr may have white-space differences
47758         * build-aux/useless-if-before-free: Recognize cases in which the
47759         freed expression differs from the tested one in embedded white
47760         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47761         $1 was used, so we can't make any regexp shy.  Improved tests now
47762         detect this.
47763
47764         useless-if-before-free: accept white space in the expression.
47765         * build-aux/useless-if-before-free: For now, any white space
47766         in the expression must be identical in the free argument.
47767
47768         useless-if-before-free: efficiency tweak
47769         * build-aux/useless-if-before-free: Make the expression-matching
47770         regexp "shy".
47771         Make the *outer* regexp shy, not the expr-matching one.
47772
47773         update code-in-comment to accept cast of free arg
47774         * build-aux/useless-if-before-free: Update regexp.
47775
47776 2008-05-25  Bruno Haible  <bruno@clisp.org>
47777
47778         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47779         * modules/copy-file-tests (Files, Makefile.am): Update.
47780         * tests/test-copy-file.c (func_test_copy): Update.
47781
47782 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47783
47784         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47785
47786 2008-05-23  Bruno Haible  <bruno@clisp.org>
47787
47788         Improve support for ACLs on OSF/1.
47789         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47790         Remove fallback for unknown flavors of ACLs.
47791
47792 2008-05-22  Bruno Haible  <bruno@clisp.org>
47793
47794         Add support for ACLs on OSF/1.
47795         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47796         replacements.
47797         (acl_free_text): New macro fallback.
47798         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47799         acl_free.
47800         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47801         acl_free_text function. Require AC_C_INLINE.
47802
47803 2008-05-22  Bruno Haible  <bruno@clisp.org>
47804
47805         Make copy_acl work on MacOS X 10.5.
47806         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47807         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47808         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47809         If MODE_INSIDE_ACL, don't assume that every system has the same text
47810         representation for ACLs as FreeBSD.
47811         * lib/copy-acl.c (copy_acl): Add support for platforms with
47812         !MODE_INSIDE_ACL.
47813         * lib/file-has-acl.c (file_has_acl): Likewise.
47814         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47815         FreeBSD, MacOS X, or IRIX, respectively.
47816
47817 2008-05-22  Bruno Haible  <bruno@clisp.org>
47818
47819         * lib/acl.h: Don't include <sys/acl.h>.
47820         (GETACLCNT): Move fallback to lib/acl-internal.h.
47821         * lib/acl-internal.h: Include <sys/acl.h> here.
47822         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47823
47824 2008-05-22  Bruno Haible  <bruno@clisp.org>
47825
47826         Split off copy_acl function to separate file.
47827         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47828         * lib/acl.c (copy_acl): Moved function to separate file.
47829         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47830         * modules/acl (Files): Add lib/copy-acl.c.
47831         (Makefiles.am): Augment lib_SOURCES.
47832
47833 2008-05-22  Bruno Haible  <bruno@clisp.org>
47834
47835         * modules/copy-file-tests: New file.
47836         * tests/test-copy-file.sh: New file.
47837         * tests/test-copy-file.c: New file.
47838         * tests/test-copy-file-sameacls.c: New file.
47839
47840 2008-05-22  Eric Blake  <ebb9@byu.net>
47841
47842         Avoid gcc warning.
47843         * tests/test-memcmp.c (main): Pass NULL indirectly.
47844
47845 2008-05-21  Bruno Haible  <bruno@clisp.org>
47846
47847         Add reference doc about ACLs.
47848         * doc/acl-resources.txt: New file.
47849         * doc/acl-cygwin.txt: New file.
47850
47851 2008-05-21  Bruno Haible  <bruno@clisp.org>
47852
47853         Avoid one more warning from gcc.
47854         * lib/vasnprintf.c (IF_LINT): Update comments.
47855         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47856
47857 2008-05-21  Jim Meyering  <meyering@redhat.com>
47858
47859         avoid a warning from gcc
47860         * lib/vasnprintf.c (IF_LINT): Define.
47861         (scale10_round_decimal_long_double):
47862         Use it to avoid a "may be used uninitialized" warning.
47863         (scale10_round_decimal_double): Likewise.
47864
47865 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47866
47867         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47868         declared.
47869
47870 2008-05-20  Bruno Haible  <bruno@clisp.org>
47871
47872         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47873         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
47874
47875 2008-05-20  Simon Josefsson  <simon@josefsson.org>
47876
47877         * modules/memcmp-tests: New file.
47878         * tests/test-memcmp.c: New file.
47879
47880 2008-05-19  Bruno Haible  <bruno@clisp.org>
47881
47882         * modules/propername (Notice, configure.ac): Put quoted "..." into
47883         --keyword option.
47884         * lib/propername.h: Update comments accordingly.
47885         Reported by Eric Blake.
47886
47887 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
47888
47889         * modules/getpass-gnu (Depends-on): Add fseeko.
47890
47891 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47892
47893         * modules/base64-tests: New file.
47894
47895 2008-05-19  Bo Borgerson <gigabo@gmail.com>
47896
47897         * lib/base64.c (base64_decode_ctx): If a decode context structure
47898         was passed in use it to ignore newlines.  If a context structure
47899         was _not_ passed in, continue to treat newlines as garbage (this
47900         is the historical behavior).  Formerly base64_decode.
47901         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47902         takes a decode context structure.
47903         * lib/base64.h (base64_decode): Macro for four-argument calls.
47904         (base64_decode_alloc): Likewise.
47905         * lib/base64.c (base64_decode_ctx): If a decode context structure
47906         was passed in use it to ignore newlines.  If a context structure
47907         was _not_ passed in, continue to treat newlines as garbage (this
47908         is the historical behavior).  Formerly base64_decode.
47909         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47910         takes a decode context structure.
47911         * lib/base64.h (base64_decode): Macro for four-argument calls.
47912         (base64_decode_alloc): Likewise.
47913
47914 2008-05-19  Jim Meyering  <meyering@redhat.com>
47915
47916         avoid a warning from gcc
47917         * lib/trim.c (IF_LINT): Define.
47918         (trim2): Use it to avoid a "may be used uninitialized" warning.
47919
47920         Fix doc typo.
47921         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47922
47923 2008-05-19  Bruno Haible  <bruno@clisp.org>
47924
47925         * doc/glibc-functions/getpass.texi: Document limits of other
47926         implementations.
47927
47928 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47929             Bruno Haible <bruno@clisp.org>
47930
47931         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47932
47933 2008-05-18  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/propername: New file, from GNU gettext.
47936         * lib/propername.h: New file, from GNU gettext.
47937         * lib/propername.c: New file, from GNU gettext.
47938         * MODULES.html.sh (Internationalization functions): Add propername.
47939
47940 2008-05-16  Jim Meyering  <meyering@redhat.com>
47941             Bruno Haible  <bruno@clisp.org>
47942
47943         Avoid some warnings from "gcc -Wshadow".
47944         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47945
47946 2008-05-15  Eric Blake  <ebb9@byu.net>
47947
47948         Extend previous patch to cygwin 1.7.0.
47949         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47950         fast implementation in cygwin >= 1.7.0.
47951         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47953
47954 2008-05-15  Bruno Haible  <bruno@clisp.org>
47955
47956         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47957         implementation in glibc >= 2.9.
47958         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47959         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47960
47961 2008-05-15  Bruno Haible  <bruno@clisp.org>
47962
47963         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47964         (Unicode string functions): Add unilbrk/*.
47965         Reported by Karl Berry.
47966
47967 2008-05-15  Eric Blake  <ebb9@byu.net>
47968
47969         Fix violation of <stdbool.h> replacement in regex.
47970         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47971         * lib/regexec.c (re_search_internal): Likewise.
47972         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47973
47974 2008-05-15  Jim Meyering  <meyering@redhat.com>
47975
47976         avoid distracting test output when git or cvs is not found
47977         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47978         * tests/test-vc-list-files-git.sh: Likewise.
47979
47980 2008-05-15  Eric Blake  <ebb9@byu.net>
47981
47982         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47983         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47984         glibc version.
47985         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47986         * doc/posix-functions/strstr.texi (strstr): Likewise.
47987         * lib/str-two-way.h (MAX): Sychronize with glibc.
47988
47989 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47990
47991         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47992         opr.ctx_type.
47993         (calc_first): Initialize constraint field.
47994         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47995         Fix grammar.
47996         (duplicate_node): Merge constraint field for all node types.
47997         (calc_eclosure_iter): Look at constraint field for all node types.
47998         * lib/regex_internal.c (create_cd_newstate): Don't look at
47999         opr.ctx_type.
48000
48001 2008-05-14  Bruno Haible  <bruno@clisp.org>
48002
48003         Help GCC to do better code generation.
48004         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48005         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48006         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48007         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48008         Declare with attribute 'malloc' if supported.
48009
48010 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48011
48012         use "echo STR|wc -c" rather than unportable "expr length STR"
48013         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48014         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48015
48016 2008-05-14  Jim Meyering  <meyering@redhat.com>
48017
48018         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48019         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48020         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48021         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48022         via Collin Lasse.
48023
48024 2008-05-14  Eric Blake  <ebb9@byu.net>
48025
48026         Avoid quadratic growth in gl_LIBSOURCES.
48027         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48028         Suggested by Bruno Haible.
48029
48030         Test xmemdup0.
48031         * modules/xmemdup0-tests: New file.
48032         * tests/test-xmemdup0.c: Likewise.
48033
48034 2008-05-13  Eric Blake  <ebb9@byu.net>
48035
48036         Split xmemdup0 into its own module.
48037         * modules/xmemdup0: New file.
48038         * lib/xmemdup0.h: Likewise.
48039         * lib/xmemdup0.c: Likewise.
48040         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48041         * lib/xalloc.h (xmemdup0): Remove.
48042         * lib/xmalloc.c (xmemdup0): Likewise.
48043
48044 2008-05-13  Eric Blake  <ebb9@byu.net>
48045             Bruno Haible  <bruno@clisp.org>
48046
48047         Reduce number of forks required during autoconf.
48048         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48049         and gl_LIBSOURCES_DIR.
48050         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48051         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48052         m4_syscmd per file.
48053         <m4_foreach_w>: Move...
48054         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48055
48056 2008-05-13  Eric Blake  <ebb9@byu.net>
48057
48058         * gnulib-tool: Fix various comment typos.
48059
48060 2008-05-12  Bruno Haible  <bruno@clisp.org>
48061
48062         Tailor the linebreaking algorithm.
48063         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48064
48065 2008-05-12  Bruno Haible  <bruno@clisp.org>
48066
48067         Update to Unicode 5.0.0.
48068         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48069         LBP_JV, LBP_JT. Redistribute values.
48070         (unilbrk_table): Change size.
48071         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48072         Unicode TR#14 rev. 22.
48073         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48074         LBP_JV, LBP_JT. Redistribute values.
48075         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48076         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48077         Update.
48078         * lib/unilbrk/lbrkprop1.h: Regenerated.
48079         * lib/unilbrk/lbrkprop2.h: Regenerated.
48080         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48081         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48082         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48083         Likewise.
48084         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48085         Likewise.
48086         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48087         result.
48088         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48089         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48090         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48091         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48092         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48093         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48094
48095 2008-05-11  Bruno Haible  <bruno@clisp.org>
48096
48097         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48098
48099 2008-05-11  Bruno Haible  <bruno@clisp.org>
48100
48101         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48102         * modules/unilbrk/gen-lbrk: New file.
48103
48104 2008-05-11  Bruno Haible  <bruno@clisp.org>
48105
48106         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48107         * m4/sha512.m4 (gl_SHA512): Likewise.
48108
48109 2008-05-11  Jim Meyering  <meyering@redhat.com>
48110
48111         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48112         * modules/crypto/sha256: New file.
48113         * modules/crypto/sha512: Likewise.
48114         * lib/sha256.c: Likewise.
48115         * lib/sha256.h: Likewise.
48116         * lib/sha512.c: Likewise.
48117         * lib/sha512.h: Likewise.
48118         * lib/u64.h: Likewise.
48119         * m4/sha256.m4: Likewise.
48120         * m4/sha512.m4: Likewise.
48121         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48122
48123 2008-05-10  Bruno Haible  <bruno@clisp.org>
48124
48125         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48126         (Input/Output <stdio.h>): Add xprintf.
48127         (Signal handling <signal.h>): Add strsignal.
48128         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48129         (Core language properties): Add func.
48130         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48131         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48132         strings.
48133         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48134         (Input/output): New section.
48135         (File system functions): Add openat-die, stat-macros.
48136         (Networking functions): Add sockets.
48137         (Unicode string functions): Add unictype/*.
48138         (Support for building libraries and executables): Add gperf.
48139         (Support for building documentation): Add agpl-3.0.
48140         (Misc): Add nocrash.
48141
48142 2008-05-10  Bruno Haible  <bruno@clisp.org>
48143
48144         * modules/unictype/gen-ctype: New file.
48145
48146 2008-05-10  Jim Meyering  <meyering@redhat.com>
48147
48148         Make chdir-safer.c more efficient on a system with no symlinks.
48149         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48150         also if ELOOP is zero.  Suggested by Bruno Haible.
48151
48152         Make chdir-safer.c slightly safer.
48153         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48154         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48155
48156         Avoid compile failure on systems without ELOOP (like mingw).
48157         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48158         Reported by Bruno Haible.
48159
48160 2008-05-10  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48163         (is_utf8_encoding): Use a case-insensitive comparison.
48164         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48165         streq.
48166
48167 2008-05-10  Bruno Haible  <bruno@clisp.org>
48168
48169         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48170         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48171         * lib/unilbrk/ulc-common.h (iconv_string_length,
48172         iconv_string_keeping_offsets): Remove declarations.
48173         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48174         Don't include <iconv.h>, streq.h, xsize.h.
48175         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48176         conversion.
48177         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48178         <iconv.h>, streq.h, xsize.h.
48179         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48180         conversion.
48181         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48182         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48183         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48184         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48185
48186 2008-05-10  Bruno Haible  <bruno@clisp.org>
48187
48188         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48189         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48190
48191         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48192         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48193
48194         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48195         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48196
48197         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48198         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48199
48200         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48201         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48202
48203         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48204         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48205
48206         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48207         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48208
48209         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48210         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48211
48212 2008-05-10  Bruno Haible  <bruno@clisp.org>
48213
48214         Split up 'linebreak' module.
48215         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48216         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48217         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48218         modifications.
48219         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48220         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48221         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48222         lib/linebreak.c.
48223         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48224         lib/linebreak.c.
48225         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48226         lib/linebreak.c.
48227         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48228         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48229         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48230         lib/linebreak.c.
48231         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48232         lib/linebreak.c.
48233         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48234         lib/linebreak.c.
48235         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48236         lib/linebreak.c.
48237         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48238         lib/linebreak.c.
48239         * modules/unilbrk/base: New file.
48240         * modules/unilbrk/tables: New file.
48241         * modules/unilbrk/u8-possible-linebreaks: New file.
48242         * modules/unilbrk/u16-possible-linebreaks: New file.
48243         * modules/unilbrk/u32-possible-linebreaks: New file.
48244         * modules/unilbrk/ulc-common: New file.
48245         * modules/unilbrk/ulc-possible-linebreaks: New file.
48246         * modules/unilbrk/u8-width-linebreaks: New file.
48247         * modules/unilbrk/u16-width-linebreaks: New file.
48248         * modules/unilbrk/u32-width-linebreaks: New file.
48249         * modules/unilbrk/ulc-width-linebreaks: New file.
48250         * lib/linebreak.h: Remove file.
48251         * lib/linebreak.c: Remove file.
48252         * m4/linebreak.m4: Remove file.
48253         * modules/linebreak: Remove file.
48254         * NEWS: Mention the changes.
48255
48256 2008-05-09  Eric Blake  <ebb9@byu.net>
48257
48258         Add xmemdup0.
48259         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48260         implementation.
48261         * lib/xmalloc.c (xmemdup0): New C implementation.
48262
48263 2008-05-08  Bruno Haible  <bruno@clisp.org>
48264
48265         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48266
48267 2008-05-07  Eric Blake  <ebb9@byu.net>
48268
48269         Support cross-compilation of <wctype.h>.
48270         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48271         AC_CACHE_CHECK.
48272
48273 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48274
48275         * build-aux/vc-list-files: Add support for bzr.
48276
48277 2008-05-03  Jim Meyering  <meyering@redhat.com>
48278
48279         avoid failed assertion with tight malloc
48280         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48281
48282 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48283
48284         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48285         are needed from arpa/inet.h.
48286         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48287         Reported by Bruno Haible.
48288
48289 2008-05-02  Jim Meyering  <meyering@redhat.com>
48290
48291         avoid compilation error on FreeBSD 6
48292         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48293
48294 2008-05-01  Jim Meyering  <meyering@redhat.com>
48295
48296         useless-if-before-free: correct --help's exit status description
48297         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48298         for one or more matches, etc.  Reported by Bruno Haible.
48299
48300         vc-list-files: make the stand-alone gnulib test work
48301         * modules/vc-list-files-tests (configure.ac):
48302         Define and AC_SUBST abs_aux_dir.
48303         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48304         $(abs_top_srcdir) to each script and having each of them
48305         duplicate the work of setting PATH, set PATH here, using
48306         the new variable, abs_aux_dir instead.
48307         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48308         * tests/test-vc-list-files-git.sh: Likewise.
48309         Reported by Bruno Haible.
48310
48311 2008-05-01  Bruno Haible  <bruno@clisp.org>
48312
48313         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48314         reallocation. Rename 'done' to 'found_delimiter'.
48315
48316 2008-05-01  Jim Meyering  <meyering@redhat.com>
48317
48318         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48319         * build-aux/vc-list-files: Use `...`, not $(...).
48320
48321 2008-04-30  Jim Meyering  <meyering@redhat.com>
48322
48323         add tests for vc-list-files
48324         * modules/vc-list-files-tests: New module.
48325         * tests/test-vc-list-files-cvs.sh: New file.
48326         * tests/test-vc-list-files-git.sh: New file.
48327
48328         avoid a warning from gcc
48329         * lib/getndelim2.c (IF_LINT): Define.
48330         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48331
48332         vc-list-files: work properly with build-aux/cvsu, too
48333         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48334         to all cvs-based clauses.
48335
48336         vc-list-files: work properly in the CVS+awk case, too
48337         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48338
48339         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48340         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48341         take more than one file argument, so .  Add quotes, just in case $dir
48342         ever contains a shell meta-character.  Prompted by Soren Hansen in
48343         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48344
48345 2008-04-29  Eric Blake  <ebb9@byu.net>
48346
48347         Optimize getndelim2 to use block operations when possible.
48348         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48349         freadseek, and memchr2.
48350         * lib/getndelim2.c (getndelim2): Use them for block reads.
48351
48352 2008-04-29  Bruno Haible  <bruno@clisp.org>
48353
48354         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48355         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48356         * modules/inet_ntop (Depends-on): Add extensions.
48357         * modules/inet_pton (Depends-on): Likewise.
48358         Reported by Simon Josefsson.
48359
48360 2008-04-29  Jim Meyering  <meyering@redhat.com>
48361
48362         When the is more than one match in a block, match all of them.
48363         * build-aux/useless-if-before-free: Iterate through each block
48364         until there are no more matches.
48365
48366         Fix broken useless-if-before-free script.
48367         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48368         the expression to match cast of argument to free-like function.
48369
48370 2008-04-29  Eric Blake  <ebb9@byu.net>
48371
48372         Use new header.
48373         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48374
48375 2008-04-29  Jim Meyering  <meyering@redhat.com>
48376
48377         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48378         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48379         by gnulib to exist and to declare e.g., inet_ntop.
48380         Don't include "inet_ntop.h", now removed.
48381
48382         * m4/arpa_inet_h.m4: Remove trailing blanks.
48383
48384 2008-04-29  Eric Blake  <ebb9@byu.net>
48385
48386         Silence valgrind on safe reads beyond potential array bounds.
48387         * lib/rawmemchr.valgrind: New file.
48388         * lib/strchrnul.valgrind: Likewise.
48389         * modules/rawmemchr (Files): Distribute new file.
48390         * modules/strchrnul (Files): Likewise.
48391         Suggested by Bruno Haible.
48392
48393 2008-04-29  Bruno Haible  <bruno@clisp.org>
48394
48395         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48396         (inet_ntop, inet_pton): Change portability warning's wording.
48397         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48398         Invoke gl_CHECK_NEXT_HEADERS.
48399         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48400         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48401         set ARPA_INET_H.
48402         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48403         * modules/arpa_inet (Description): No longer only for systems that
48404         lack it.
48405         (Depends-on): Add include_next.
48406         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48407         HAVE_ARPA_INET_H.
48408
48409 2008-04-29  Jim Meyering  <meyering@redhat.com>
48410
48411         * modules/mkdir (License): Re-license as LGPLv2+.
48412
48413 2008-04-29  Bruno Haible  <bruno@clisp.org>
48414
48415         * modules/rawmemchr (Maintainer): Set to Eric.
48416         * modules/strchrnul (Maintainer): Likewise.
48417
48418 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48419
48420         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48421         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48422
48423         * modules/arpa_inet (arpa/inet.h): Use them.
48424
48425 2008-04-28  Eric Blake  <ebb9@byu.net>
48426
48427         Test getndelim2.
48428         * modules/getndelim2-tests: New file.
48429         * tests/test-getndelim2.c: Likewise.
48430         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48431         stream.
48432         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48433
48434         * MODULES.html.sh: Document new module.
48435
48436 2008-04-20  Bruno Haible  <bruno@clisp.org>
48437
48438         * lib/c-stack.c (die): Use raise.
48439         * modules/c-stack (Depends-on): Add raise.
48440
48441 2008-04-28  Bruno Haible  <bruno@clisp.org>
48442
48443         Expect rpmatch to be declared.
48444         * lib/yesno.c (rpmatch): Remove declaration.
48445
48446         Declare rpmatch.
48447         * lib/stdlib.in.h (rpmatch): New declaration.
48448         * lib/rpmatch.c: Include <stdlib.h> first.
48449         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48450         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48452         HAVE_RPMATCH.
48453         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48454         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48455         (Include): Set to <stdlib.h>.
48456         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48457         HAVE_RPMATCH.
48458         * NEWS: Document the change.
48459
48460 2008-04-28  Bruno Haible  <bruno@clisp.org>
48461
48462         Change rpmatch to use nl_langinfo when appropriate.
48463         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48464         (N_): New macro.
48465         (localized_pattern): New function/macro.
48466         (try): Remove match, nomatch arguments. Copy the pattern into safe
48467         memory before caching it.
48468         (rpmatch): Use localized_pattern. Add translator comments.
48469         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48470         Suggested by Eric Blake.
48471         * modules/rpmatch (Depends-on): Add stdbool.
48472
48473 2008-04-28  Eric Blake  <ebb9@byu.net>
48474
48475         Add rawmemchr module, matching glibc.
48476         * modules/string (Makefile.am): New indicator.
48477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48478         * lib/string.in.h (rawmemchr): Declare when appropriate.
48479         * modules/rawmemchr: New file.
48480         * m4/rawmemchr.m4: Likewise.
48481         * lib/rawmemchr.c: Likewise.
48482         * modules/rawmemchr-tests: Likewise.
48483         * tests/test-rawmemchr.c: Likewise.
48484         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48485         module.
48486         * modules/strchrnul (Depends-on): Add rawmemchr.
48487         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48488
48489         Whitespace cleanup.
48490         * tests/test-strchrnul.c: Reindent.
48491         * lib/strchrnul.c: Likewise.
48492
48493         Optimize and test strchrnul.
48494         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48495         * modules/strchrnul-tests: New file.
48496         * tests/test-strchrnul.c: Likewise.
48497
48498         Remove intprops dependency.
48499         * modules/memchr (Depends-on): Remove intprops.
48500         * modules/memrchr (Depends-on): Likewise.
48501         * modules/memchr2 (Depends-on): Likewise.
48502         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48503         * lib/memrchr.c (__memrchr): Likewise.
48504         * lib/memrchr2.c (memchr2): Likewise.
48505         Reported by Simon Josefsson.
48506
48507 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48508
48509         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48510         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48511
48512 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48513
48514         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48515
48516         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48517
48518         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48519
48520         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48521         declarations.
48522         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48523
48524         * m4/inet_pton.m4: Don't check for header files.
48525
48526         * m4/inet_ntop.m4: Don't check for header files.
48527
48528 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48529
48530         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48531         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48532         trigger for cygwin).
48533         Reported by Bruno Haible  <bruno@clisp.org>.
48534
48535 2008-04-28  Bruno Haible  <bruno@clisp.org>
48536
48537         * doc/posix-functions/strdup.texi: Mention mingw problem.
48538
48539 2008-04-27  Bruno Haible  <bruno@clisp.org>
48540
48541         * modules/stat-time-tests (Depends-on): Add sleep.
48542         * tests/test-stat-time.c (force_unlink): New function.
48543         (cleanup): Use it.
48544         (test_mtime): Remove the ctime related tests.
48545         (test_ctime): New function, containing the ctime related tests.
48546         (main): Call test_ctime, except on native Windows platforms.
48547
48548 2008-04-27  Bruno Haible  <bruno@clisp.org>
48549
48550         * lib/rpmatch.c (rpmatch): Add some comments.
48551         Reported by James Youngman <jay@gnu.org>.
48552
48553 2008-04-27  Bruno Haible  <bruno@clisp.org>
48554
48555         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48556         quiet NaNs.
48557
48558 2008-04-27  Bruno Haible  <bruno@clisp.org>
48559
48560         Make test-yesno.sh work on mingw.
48561         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48562         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48563         (main): Set stdin to binary mode.
48564         * modules/yesno-tests (Depends-on): Add binary-io.
48565
48566 2008-04-27  Bruno Haible  <bruno@clisp.org>
48567
48568         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48569         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48570         argument that lie outside the IEEE 854 domain.
48571         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48572         (gl_ISFINITE): Use it.
48573         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48574
48575 2008-04-27  Bruno Haible  <bruno@clisp.org>
48576
48577         Allow local renaming in config.h.
48578         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48579
48580 2008-04-27  Bruno Haible  <bruno@clisp.org>
48581
48582         * lib/memchr.c (__memchr): Change type of 'i'.
48583         * lib/memchr2.c (memchr2): Likewise.
48584
48585 2008-04-26  Eric Blake  <ebb9@byu.net>
48586         and Bruno Haible  <bruno@clisp.org>
48587
48588         Optimize and test memrchr.
48589         * modules/memrchr (Depends-on): Add intprops.
48590         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48591         * modules/memrchr-tests: New file.
48592         * tests/test-memrchr.c: New file.
48593
48594 2008-04-26  Bruno Haible  <bruno@clisp.org>
48595
48596         Add tentative support for DragonFly BSD.
48597         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48598         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48599         fp.
48600         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48601         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48602         * lib/fpurge.c (fpurge): Likewise.
48603         * lib/freadable.c (freaadable): Likewise.
48604         * lib/freadahead.c (freadahead): Likewise.
48605         * lib/freading.c (freading): Likewise.
48606         * lib/freadptr.c (freadptr): Likewise.
48607         * lib/freadseek.c (freadptrinc): Likewise.
48608         * lib/fseeko.c (fseeko): Likewise.
48609         * lib/fseterr.c (fseterr): Likewise.
48610         * lib/fwritable.c (fwritable): Likewise.
48611         * lib/fwriting.c (fwriting): Likewise.
48612
48613 2008-04-26  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/stdio-impl.h: New file.
48616         * lib/fbufmode.c: Include stdio-impl.h.
48617         (fbufmode): Use fp_, remove redundant #defines.
48618         * lib/fflush.c: Include stdio-impl.h.
48619         (clear_ungetc_buffer): Remove redundant #defines.
48620         * lib/fpurge.c: Include stdio-impl.h.
48621         (fpurge): Remove redundant #defines.
48622         * lib/freadable.c: Include stdio-impl.h.
48623         (freadable): Remove redundant #defines.
48624         * lib/freadahead.c: Include stdio-impl.h.
48625         (freadahead): Remove redundant #defines.
48626         * lib/freading.c: Include stdio-impl.h.
48627         (freading): Remove redundant #defines.
48628         * lib/freadptr.c: Include stdio-impl.h.
48629         (freadptr): Remove redundant #defines.
48630         * lib/freadseek.c: Include stdio-impl.h.
48631         (freadptrinc): Remove redundant #defines.
48632         * lib/fseeko.c: Include stdio-impl.h.
48633         (rpl_fseeko): Remove redundant #defines.
48634         * lib/fseterr.c: Include stdio-impl.h.
48635         (fseterr): Remove redundant #defines.
48636         * lib/fwritable.c: Include stdio-impl.h.
48637         (fwritable: Remove redundant #defines.
48638         * lib/fwriting.c: Include stdio-impl.h.
48639         (fwriting): Remove redundant #defines.
48640         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48641         * modules/fflush (Files): Likewise.
48642         * modules/fpurge (Files): Likewise.
48643         * modules/freadable (Files): Likewise.
48644         * modules/freadahead (Files): Likewise.
48645         * modules/freading (Files): Likewise.
48646         * modules/freadptr (Files): Likewise.
48647         * modules/freadseek (Files): Likewise.
48648         * modules/fseeko (Files): Likewise.
48649         * modules/fseterr (Files): Likewise.
48650         * modules/fwritable (Files): Likewise.
48651         * modules/fwriting (Files): Likewise.
48652
48653 2008-04-26  Bruno Haible  <bruno@clisp.org>
48654
48655         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48656         restore_seek_optimization, update_fpos_cache): New functions, extracted
48657         from rpl_fflush.
48658         (rpl_fflush): Use them.
48659         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48660         (gl_REPLACE_FFLUSH): Use it.
48661
48662 2008-04-26  Bruno Haible  <bruno@clisp.org>
48663
48664         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48665         on Solaris.
48666         * tests/test-xstrtoimax.sh: Likewise.
48667         * tests/test-xstrtoumax.sh: Likewise.
48668         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48669
48670 2008-04-26  Bruno Haible  <bruno@clisp.org>
48671
48672         * modules/memchr-tests: New file.
48673         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48674
48675 2008-04-26  Eric Blake  <ebb9@byu.net>
48676             Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/memchr.c: Include intprops.h.
48679         (__memchr): Optimize parallel detection of matching bytes. Rename local
48680         variables. Add explanatory comments.
48681
48682 2008-04-26  Bruno Haible  <bruno@clisp.org>
48683
48684         Fix module 'memchr', broken since 2000-10-28.
48685         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48686
48687 2008-04-26  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48690         comments.
48691
48692 2008-04-25  Eric Blake  <ebb9@byu.net>
48693
48694         Use native fstatat on cygwin 1.7.0.
48695         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48696         first.
48697
48698 2008-04-23  Eric Blake  <ebb9@byu.net>
48699
48700         Improve memchr2 performance.
48701         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48702         NUL bytes.
48703         * modules/memchr2 (Depends-on): Use intprops.h.
48704
48705 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48706
48707         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48708         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48709         <blp@cs.stanford.edu>.
48710
48711 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48712
48713         * lib/arpa_inet.in.h: New file.
48714
48715         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48716         (Makefile.am): Sed in substitute header file.
48717
48718         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48719         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48720
48721         * modules/inet_ntop (configure.ac): Use
48722         gl_ARPA_INET_MODULE_INDICATOR.
48723
48724         * modules/inet_pton (configure.ac): Use
48725         gl_ARPA_INET_MODULE_INDICATOR.
48726
48727 2008-04-22  Jim Meyering  <meyering@redhat.com>
48728
48729         * modules/verify (License): Re-license as LGPLv2+.
48730
48731 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48732
48733         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48734         parameter to void* as per POSIX standard (MinGW uses char*).
48735
48736 2008-04-21  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48739         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48740         Define to replacements if REPLACE_ISWCNTRL is 1.
48741         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48742         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48743         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48744         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48745         what it fixes.
48746         * doc/posix-functions/iswalpha.texi: Likewise.
48747         * doc/posix-functions/iswblank.texi: Likewise.
48748         * doc/posix-functions/iswcntrl.texi: Likewise.
48749         * doc/posix-functions/iswdigit.texi: Likewise.
48750         * doc/posix-functions/iswgraph.texi: Likewise.
48751         * doc/posix-functions/iswlower.texi: Likewise.
48752         * doc/posix-functions/iswprint.texi: Likewise.
48753         * doc/posix-functions/iswpunct.texi: Likewise.
48754         * doc/posix-functions/iswspace.texi: Likewise.
48755         * doc/posix-functions/iswupper.texi: Likewise.
48756         * doc/posix-functions/iswxdigit.texi: Likewise.
48757         Reported by Alain Guibert.
48758
48759 2008-04-21  Bruno Haible  <bruno@clisp.org>
48760
48761         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48762         Patch by Alain Guibert.
48763
48764 2008-04-21  Bruno Haible  <bruno@clisp.org>
48765
48766         Fix test failures on mingw.
48767         * tests/test-xstrtol.c (print_no_progname): New function.
48768         (main): Install it in error_print_progname hook.
48769         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48770         * tests/test-xstrtoimax.sh: Likewise.
48771         * tests/test-xstrtoumax.sh: Likewise.
48772
48773 2008-04-21  Bruno Haible  <bruno@clisp.org>
48774
48775         Fix test failure on mingw.
48776         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48777
48778 2008-04-21  Bruno Haible  <bruno@clisp.org>
48779
48780         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48781         Actually assign a value.
48782
48783 2008-04-20  Bruno Haible  <bruno@clisp.org>
48784
48785         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48786         take 2.
48787         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48788         'canonicalize-lgpl' module is also used.
48789         * lib/canonicalize-lgpl.c: Undo last change.
48790         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48791
48792 2008-04-20  Bruno Haible  <bruno@clisp.org>
48793
48794         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48795         config.h. Provide _mkdir based fallback for mingw.
48796         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48797         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48798         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48799         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48800         rather than defining mkdir in config.h.
48801         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48802         (gl_SYS_STAT_H_DEFAULTS): New macro.
48803         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48804         HAVE_IO_H any more.
48805         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48806         HAVE_DECL_MKDIR and HAVE_IO_H.
48807
48808 2008-04-20  Bruno Haible  <bruno@clisp.org>
48809
48810         * lib/isapipe.c: Port to native Windows platforms.
48811
48812 2008-04-20  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48815
48816 2008-04-21  Eric Blake  <ebb9@byu.net>
48817
48818         Work around preprocessors that don't handle UINTMAX_MAX.
48819         * lib/memchr2.c (memchr2): Avoid embedded #if.
48820         Reported by Alain Guibert, fix suggested by Bruno Haible.
48821
48822 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48823
48824         * doc/posix-functions/strftime.texi (strftime): Explain better
48825         Windows incompatibility.  Suggested by Micah Cowan
48826         <micah@cowan.name>.
48827
48828 2008-04-20  Bruno Haible  <bruno@clisp.org>
48829
48830         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48831         unistr/u8-mblen.
48832
48833 2008-04-20  Bruno Haible  <bruno@clisp.org>
48834
48835         Fix test failure on platforms with non-GNU iconv.
48836         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48837         (U_TO_U8): Use it, rather than u16_to_u8.
48838         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48839         units at the end of the input string.
48840         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48841
48842 2008-04-20  Bruno Haible  <bruno@clisp.org>
48843
48844         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48845         when the resulting length is 0.
48846         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48847
48848 2008-04-20  Bruno Haible  <bruno@clisp.org>
48849
48850         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48851         works.
48852         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48853
48854 2008-04-20  Bruno Haible  <bruno@clisp.org>
48855
48856         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48857         * modules/tsearch-tests (configure.ac): Test for initstate function.
48858
48859 2008-04-20  Bruno Haible  <bruno@clisp.org>
48860
48861         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48862         for nlink_t if missing.
48863         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48864
48865 2008-04-19  Bruno Haible  <bruno@clisp.org>
48866
48867         Work around snprintf bug on Linux libc5.
48868         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48870         gl_SNPRINTF_SIZE1.
48871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48872         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48873         that test failed.
48874         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48875         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
48876         * modules/snprintf (Files): Add m4/printf.m4.
48877         * modules/vsnprintf (Files): Likewise.
48878         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
48879         * doc/posix-functions/vsnprintf.texi: Likewise.
48880
48881 2008-04-19  Bruno Haible  <bruno@clisp.org>
48882
48883         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
48884         from 0.0058 to less than 10^-7.
48885
48886 2008-04-19  Bruno Haible  <bruno@clisp.org>
48887
48888         Fix rounding when a precision is given.
48889         * lib/vasnprintf.c (is_borderline): New function.
48890         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
48891         9...9x.
48892         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
48893         %e, %g.
48894         * tests/test-vasprintf-posix.c (test_function): Likewise.
48895         * tests/test-snprintf-posix.h (test_function): Likewise.
48896         * tests/test-sprintf-posix.h (test_function): Likewise.
48897         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
48898         * tests/test-printf-posix.h (test_function): Likewise.
48899         * tests/test-printf-posix.output: Update.
48900         Reported by John Darrington <john@darrington.wattle.id.au> via
48901         Ben Pfaff <blp@cs.stanford.edu>.
48902
48903 2008-04-18  Simon Josefsson  <simon@josefsson.org>
48904
48905         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
48906         Suggested by Bruno Haible <bruno@clisp.org>.
48907
48908 2008-04-17  Bruno Haible  <bruno@clisp.org>
48909
48910         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
48911         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48912         implementation.
48913         Patch by Bruce Merry <bmerry@gmail.com>.
48914
48915 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48916
48917         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48918         doesn't work under Windows.
48919
48920 2008-04-16  Bruno Haible  <bruno@clisp.org>
48921
48922         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48923         New macros.
48924         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48925         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48926         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48927         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48928         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48929         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48930         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48931         macros.
48932         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48933         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48934         Northern Sotho, Uighur.
48935
48936 2008-04-16  Bruno Haible  <bruno@clisp.org>
48937
48938         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48939         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48940         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48941         Reported by Daniel Bergström <daniel@octocode.com>.
48942
48943 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48944             Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48947         function.
48948         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48949         New functions, mostly extracted from gl_locale_name_default.
48950         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48951
48952 2008-04-16  Eric Blake  <ebb9@byu.net>
48953
48954         Adjust strtod detection to catch glibc 2.7 bug.
48955         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48956         Reported by John Gatewood Ham.
48957
48958 2008-04-16  Bruno Haible  <bruno@clisp.org>
48959
48960         Add tentative support for Linux libc5.
48961         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48962         * lib/fpurge.c (fpurge): Likewise.
48963         * lib/freadable.c (freadable): Likewise.
48964         * lib/freadahead.c (freadahead): Likewise.
48965         * lib/freading.c (freading): Likewise.
48966         * lib/freadptr.c (freadptr): Likewise.
48967         * lib/freadseek.c (freadptrinc): Likewise.
48968         * lib/fseeko.c (rpl_fseeko): Likewise.
48969         * lib/fseterr.c (fseterr): Likewise.
48970         * lib/fwritable.c (fwritable): Likewise.
48971         * lib/fwriting.c (fwriting): Likewise.
48972         Reported by Alain Guibert <alguibert+bts@free.fr>.
48973
48974 2008-04-15  Bruno Haible  <bruno@clisp.org>
48975
48976         * modules/mathl (configure.ac): Define module indicator.
48977
48978 2008-04-15  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/logl.c (logl): Remove unused variables.
48981
48982 2008-04-15  Bruno Haible  <bruno@clisp.org>
48983
48984         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48985         fails.
48986
48987 2008-04-15  Bruno Haible  <bruno@clisp.org>
48988
48989         * lib/trim.c (trim2): Fix argument of isspace() macro.
48990
48991 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48992
48993         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48994         to 0.
48995         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48996
48997 2008-04-14  Bruno Haible  <bruno@clisp.org>
48998
48999         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49000         AC_LANG_PROGRAM argument.
49001         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49002         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49004         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49005         * m4/math_h.m4 (gl_MATH_H): Likewise.
49006         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49007         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49008         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49009         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49010         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49011         * m4/regex.m4 (gl_REGEX): Likewise.
49012         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49013         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49014         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49015         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49016         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49017         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49018         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49019         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49020
49021 2008-04-14  Jim Meyering  <meyering@redhat.com>
49022
49023         test-strtod: fix typos: s/abs/fabs/
49024         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49025
49026 2008-04-13  Bruno Haible  <bruno@clisp.org>
49027
49028         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49029         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49030         module is also used and while not building the reloc-wrapper.
49031
49032 2008-04-13  Bruno Haible  <bruno@clisp.org>
49033
49034         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49035
49036 2008-04-13  Bruno Haible  <bruno@clisp.org>
49037
49038         Fix AIX compilation failure introduced on 2008-04-02.
49039         * tests/test-frexp.c (exp): Undefine before redefining.
49040         * tests/test-frexpl.c (exp): Likewise.
49041
49042 2008-04-13  Bruno Haible  <bruno@clisp.org>
49043
49044         Work around a HP-UX stdio bug.
49045         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49046         * tests/test-ftello.c (main): Likewise.
49047         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49048         * doc/posix-functions/ftello.texi: Likewise.
49049
49050 2008-04-13  Bruno Haible  <bruno@clisp.org>
49051
49052         Make test-signbit pass on HP-UX/hppa.
49053         * tests/test-signbit.c (minus_zerol): New variable.
49054         (test_signbitl): Use it.
49055
49056 2008-04-13  Bruno Haible  <bruno@clisp.org>
49057
49058         Make truncl work on OSF/1 4.0.
49059         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49060         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49061         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49063         HAVE_DECL_TRUNCL.
49064         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49065         HAVE_DECL_TRUNCL.
49066         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49067
49068 2008-04-13  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49071
49072 2008-04-13  Bruno Haible  <bruno@clisp.org>
49073
49074         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49075         expression, so as to avoid HP-UX 11 cc compiler bug.
49076
49077 2008-04-13  Bruno Haible  <bruno@clisp.org>
49078
49079         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49080
49081 2008-04-13  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/git-merge-changelog.c: Remove empty declaration outside of
49084         functions.
49085
49086 2008-04-13  Bruno Haible  <bruno@clisp.org>
49087
49088         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49089
49090 2008-04-13  Bruno Haible  <bruno@clisp.org>
49091
49092         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49093         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49094         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49095         also if it exists but lacks definitions of the SHUT_* macros.
49096         * modules/sys_socket (Description): Update.
49097         Reported by Elbert Pol <e.pol@chello.nl>.
49098
49099 2008-04-13  Bruno Haible  <bruno@clisp.org>
49100
49101         * lib/localcharset.c (OS2): Don't redefine if already defined.
49102         Reported by Elbert Pol <e.pol@chello.nl>.
49103
49104 2008-04-13  Bruno Haible  <bruno@clisp.org>
49105
49106         * lib/binary-io.h [__EMX__]: Include <io.h>.
49107         Reported by Elbert Pol <e.pol@chello.nl>.
49108
49109 2008-04-12  Bruno Haible  <bruno@clisp.org>
49110
49111         * lib/fpucw.h: Enable the definitions also for x86_64.
49112         Needed for NetBSD/x86_64.
49113         Reported by Thomas Klausner <tk@giga.or.at>.
49114
49115 2008-04-12  Bruno Haible  <bruno@clisp.org>
49116
49117         * tests/test-strtod.c: Include isnand.h.
49118         (main): Use isnand instead of isnan.
49119         Reported by Jim Meyering.
49120
49121 2008-04-12  Bruno Haible  <bruno@clisp.org>
49122
49123         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49124         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49125
49126 2008-04-12  Jim Meyering  <meyering@redhat.com>
49127
49128         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49129
49130 2008-04-12  Bruno Haible  <bruno@clisp.org>
49131
49132         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49133         Reported by Elbert Pol <e.pol@chello.nl>.
49134
49135 2008-04-12  Eric Blake  <ebb9@byu.net>
49136
49137         Work around Solaris 10 math.h bug.
49138         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49139         (gl_MATH_H_DEFAULTS): Set up default.
49140         * modules/math (Makefile.am): Replace new indicators.
49141         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49142         * tests/test-math.c (main): Test this.
49143         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49144         * doc/posix-headers/math.texi (math.h): Mention bug.
49145         Reported by Nelson H. F. Beebe and Jim Meyering.
49146
49147 2008-04-11  Bruno Haible  <bruno@clisp.org>
49148
49149         Adapt to future versions of Apple GCC.
49150         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49151         Reported by Peter O'Gorman <peter@pogma.com>.
49152
49153 2008-04-11  Bruno Haible  <bruno@clisp.org>
49154
49155         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49156
49157 2008-04-11  Bruno Haible  <bruno@clisp.org>
49158
49159         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49160
49161         * modules/getaddrinfo-tests (Makefile.am): Define
49162         test_getaddrinfo_LDADD.
49163
49164 2008-04-11  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49167         (init): Fix syntax error.
49168         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49169         is declared.
49170
49171 2008-04-11  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49174         * modules/glob (Depends-on): Add stdbool.
49175
49176 2008-04-11  Bruno Haible  <bruno@clisp.org>
49177
49178         * lib/trim.c: Include <string.h>.
49179
49180 2008-04-11  Eric Blake  <ebb9@byu.net>
49181
49182         Avoid compile failure on OS/2.
49183         * lib/regex_internal.h (internal_function): Disable optimization
49184         on OS/2 (__EMX__), where it caused compiler error.
49185         Reported by Elbert Pol.
49186
49187 2008-04-11  Bruno Haible  <bruno@clisp.org>
49188
49189         Flush the standard error stream before aborting. Needed on mingw.
49190         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49191         * tests/test-array_list.c (ASSERT): Likewise.
49192         * tests/test-array_oset.c (ASSERT): Likewise.
49193         * tests/test-avltree_list.c (ASSERT): Likewise.
49194         * tests/test-avltree_oset.c (ASSERT): Likewise.
49195         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49196         * tests/test-binary-io.c (ASSERT): Likewise.
49197         * tests/test-byteswap.c (ASSERT): Likewise.
49198         * tests/test-c-ctype.c (ASSERT): Likewise.
49199         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49200         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49201         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49202         * tests/test-c-strstr.c (ASSERT): Likewise.
49203         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49204         * tests/test-canonicalize.c (ASSERT): Likewise.
49205         * tests/test-carray_list.c (ASSERT): Likewise.
49206         * tests/test-ceilf1.c (ASSERT): Likewise.
49207         * tests/test-ceilf2.c (ASSERT): Likewise.
49208         * tests/test-ceill.c (ASSERT): Likewise.
49209         * tests/test-count-one-bits.c (ASSERT): Likewise.
49210         * tests/test-fbufmode.c (ASSERT): Likewise.
49211         * tests/test-fflush2.c (ASSERT): Likewise.
49212         * tests/test-floorf1.c (ASSERT): Likewise.
49213         * tests/test-floorf2.c (ASSERT): Likewise.
49214         * tests/test-floorl.c (ASSERT): Likewise.
49215         * tests/test-fopen.c (ASSERT): Likewise.
49216         * tests/test-fpending.c (ASSERT): Likewise.
49217         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49218         * tests/test-fpurge.c (ASSERT): Likewise.
49219         * tests/test-freadable.c (ASSERT): Likewise.
49220         * tests/test-freadahead.c (ASSERT): Likewise.
49221         * tests/test-freading.c (ASSERT): Likewise.
49222         * tests/test-freadptr.c (ASSERT): Likewise.
49223         * tests/test-freadptr2.c (ASSERT): Likewise.
49224         * tests/test-freadseek.c (ASSERT): Likewise.
49225         * tests/test-freopen.c (ASSERT): Likewise.
49226         * tests/test-frexp.c (ASSERT): Likewise.
49227         * tests/test-frexpl.c (ASSERT): Likewise.
49228         * tests/test-fseek.c (ASSERT): Likewise.
49229         * tests/test-fseeko.c (ASSERT): Likewise.
49230         * tests/test-fstrcmp.c (ASSERT): Likewise.
49231         * tests/test-ftell.c (ASSERT): Likewise.
49232         * tests/test-ftello.c (ASSERT): Likewise.
49233         * tests/test-func.c (ASSERT): Likewise.
49234         * tests/test-fwritable.c (ASSERT): Likewise.
49235         * tests/test-fwriting.c (ASSERT): Likewise.
49236         * tests/test-getdelim.c (ASSERT): Likewise.
49237         * tests/test-getline.c (ASSERT): Likewise.
49238         * tests/test-i-ring.c (ASSERT): Likewise.
49239         * tests/test-iconv-utf.c (ASSERT): Likewise.
49240         * tests/test-iconv.c (ASSERT): Likewise.
49241         * tests/test-isfinite.c (ASSERT): Likewise.
49242         * tests/test-isnand.c (ASSERT): Likewise.
49243         * tests/test-isnanf.c (ASSERT): Likewise.
49244         * tests/test-isnanl.h (ASSERT): Likewise.
49245         * tests/test-ldexpl.c (ASSERT): Likewise.
49246         * tests/test-linked_list.c (ASSERT): Likewise.
49247         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49248         * tests/test-localename.c (ASSERT): Likewise.
49249         * tests/test-lseek.c (ASSERT): Likewise.
49250         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49251         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49252         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49253         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49254         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49255         * tests/test-mbschr.c (ASSERT): Likewise.
49256         * tests/test-mbscspn.c (ASSERT): Likewise.
49257         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49258         * tests/test-mbspbrk.c (ASSERT): Likewise.
49259         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49260         * tests/test-mbsrchr.c (ASSERT): Likewise.
49261         * tests/test-mbsspn.c (ASSERT): Likewise.
49262         * tests/test-mbsstr1.c (ASSERT): Likewise.
49263         * tests/test-mbsstr2.c (ASSERT): Likewise.
49264         * tests/test-mbsstr3.c (ASSERT): Likewise.
49265         * tests/test-memchr2.c (ASSERT): Likewise.
49266         * tests/test-memmem.c (ASSERT): Likewise.
49267         * tests/test-open.c (ASSERT): Likewise.
49268         * tests/test-printf-frexp.c (ASSERT): Likewise.
49269         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49270         * tests/test-printf-posix.c (ASSERT): Likewise.
49271         * tests/test-quotearg.c (ASSERT): Likewise.
49272         * tests/test-rbtree_list.c (ASSERT): Likewise.
49273         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49274         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49275         * tests/test-round1.c (ASSERT): Likewise.
49276         * tests/test-roundf1.c (ASSERT): Likewise.
49277         * tests/test-roundl.c (ASSERT): Likewise.
49278         * tests/test-signbit.c (ASSERT): Likewise.
49279         * tests/test-sleep.c (ASSERT): Likewise.
49280         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49281         * tests/test-snprintf.c (ASSERT): Likewise.
49282         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49283         * tests/test-stat-time.c (ASSERT): Likewise.
49284         * tests/test-strcasestr.c (ASSERT): Likewise.
49285         * tests/test-strerror.c (ASSERT): Likewise.
49286         * tests/test-striconv.c (ASSERT): Likewise.
49287         * tests/test-striconveh.c (ASSERT): Likewise.
49288         * tests/test-striconveha.c (ASSERT): Likewise.
49289         * tests/test-strsignal.c (ASSERT): Likewise.
49290         * tests/test-strstr.c (ASSERT): Likewise.
49291         * tests/test-strtod.c (ASSERT): Likewise.
49292         * tests/test-trunc1.c (ASSERT): Likewise.
49293         * tests/test-trunc2.c (ASSERT): Likewise.
49294         * tests/test-truncf1.c (ASSERT): Likewise.
49295         * tests/test-truncf2.c (ASSERT): Likewise.
49296         * tests/test-truncl.c (ASSERT): Likewise.
49297         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49298         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49299         * tests/test-vasnprintf.c (ASSERT): Likewise.
49300         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49301         * tests/test-vasprintf.c (ASSERT): Likewise.
49302         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49303         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49304         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49305         * tests/test-vsnprintf.c (ASSERT): Likewise.
49306         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49307         * tests/test-wcwidth.c (ASSERT): Likewise.
49308         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49309         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49310         * tests/test-xvasprintf.c (ASSERT): Likewise.
49311         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49312         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49313         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49314         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49315         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49316         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49317         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49318         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49319         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49320         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49321         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49322         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49323         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49324         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49325         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49326         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49327         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49328         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49329         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49330         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49331         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49332         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49333         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49334         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49335         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49336         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49337         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49338         * tests/unictype/test-combining.c (ASSERT): Likewise.
49339         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49340         * tests/unictype/test-digit.c (ASSERT): Likewise.
49341         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49342         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49343         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49344         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49345         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49346         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49347         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49348         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49349         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49350         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49351         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49352         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49353         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49354         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49355         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49356         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49357         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49358         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49359         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49360         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49361         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49362         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49363         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49364         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49365         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49366         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49367         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49368         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49369         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49370         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49371         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49372         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49373         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49374         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49375         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49376         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49377         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49378         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49379         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49380         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49381         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49382         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49383         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49384         Reported by Eric Blake.
49385
49386 2008-04-11  Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/wchar.in.h: Tweak comment.
49389
49390 2008-04-11  Bruno Haible  <bruno@clisp.org>
49391
49392         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49393         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49394         gl_COMMON.
49395         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49396
49397 2008-04-11  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49400
49401 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49402
49403         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49404         of attempting to use non-existing /dev/*random.  Based on patch
49405         from Adam Strzelecki <ono@java.pl> in
49406         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49407
49408 2008-04-08  Bruno Haible  <bruno@clisp.org>
49409
49410         Add tentative support for emx+gcc.
49411         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49412         * lib/fpurge.c (fpurge): Likewise.
49413         * lib/freadable.c (freadable): Likewise.
49414         * lib/freadahead.c (freadahead): Likewise.
49415         * lib/freading.c (freading): Likewise.
49416         * lib/freadptr.c (freadptr): Likewise.
49417         * lib/freadseek.c (freadptrinc): Likewise.
49418         * lib/fseeko.c (rpl_fseeko): Likewise.
49419         * lib/fseterr.c (fseterr): Likewise.
49420         * lib/fwritable.c (fwritable): Likewise.
49421         * lib/fwriting.c (fwriting): Likewise.
49422         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49423
49424 2008-04-09  Eric Blake  <ebb9@byu.net>
49425
49426         Avoid some autoconf warnings.
49427         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49428         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49429         * m4/afs.m4 (gl_AFS): Likewise.
49430         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49431         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49433         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49434         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49435         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49436         (AC_CHECK_DECLS_ONCE): Likewise.
49437         Rename file...
49438         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49439         gnulib-tool requires autoconf 2.59 or better.
49440         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49441
49442 2008-04-08  Eric Blake  <ebb9@byu.net>
49443
49444         Use 'git describe --match' if present (added in git 1.5.5).
49445         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49446         if possible.
49447
49448 2008-04-08  Bruno Haible  <bruno@clisp.org>
49449
49450         Add tentative support for OpenServer.
49451         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49452         _ptr, _cnt.
49453         * lib/fpurge.c (fpurge): Likewise.
49454         * lib/freadable.c (freadable): Likewise.
49455         * lib/freadahead.c (freadahead): Likewise.
49456         * lib/freading.c (freading): Likewise.
49457         * lib/freadptr.c (freadptr): Likewise.
49458         * lib/freadseek.c (freadptrinc): Likewise.
49459         * lib/fseeko.c (rpl_fseeko): Likewise.
49460         * lib/fseterr.c (fseterr): Likewise.
49461         * lib/fwritable.c (fwritable): Likewise.
49462         * lib/fwriting.c (fwriting): Likewise.
49463         Reported by Roger Cornelius <rac@tenzing.org> and
49464         Brian K. White <brian@aljex.com>.
49465
49466 2008-04-06  Jim Meyering  <meyering@redhat.com>
49467
49468         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49469
49470 2008-04-06  Bruno Haible  <bruno@clisp.org>
49471
49472         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49473         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49474         * tests/test-printf-posix.sh: Likewise.
49475         * tests/test-vfprintf-posix.sh: Likewise.
49476         * tests/test-vprintf-posix.sh: Likewise.
49477         * tests/test-xprintf-posix.sh: Likewise.
49478
49479 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49480
49481         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49482         hide error from 'ls', needed on OS/2.
49483         Report by Elbert Pol <elbert.pol@gmail.com>.
49484
49485 2008-04-04  Eric Blake  <ebb9@byu.net>
49486
49487         Make test-fseeko.c failures meaningful.
49488         * tests/test-fseeko.c: Print line number on failure.
49489         * tests/test-fseek.c: Likewise.
49490         Reported by Nelson H. F. Beebe.
49491
49492         Improve strtod bug detection check.
49493         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49494         required for Solaris 10.
49495         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49496
49497 2008-04-04  Bruno Haible  <bruno@clisp.org>
49498
49499         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49500         by m4/setenv.m4.
49501
49502 2008-04-03  Eric Blake  <ebb9@byu.net>
49503
49504         Ensure sane .version contents.
49505         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49506         version string.
49507         * build-aux/git-version-gen: Improve documentation.
49508
49509         Make GNU make output nicer.
49510         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49511         MAKECMDGOALS to enforce message for all command line targets.  Set
49512         srcdir for use in maint.mk.
49513
49514         Another maintainer tweak.
49515         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49516         a target that regenerates version.
49517
49518 2008-04-03  Jim Meyering  <meyering@redhat.com>
49519
49520         vc-list-files: don't cause coreutils "make po-check" failure
49521         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49522
49523 2008-04-03  Eric Blake  <ebb9@byu.net>
49524
49525         Allow VPATH usage of vc-list-files.
49526         * build-aux/vc-list-files (scriptversion): Add timestamp.
49527         (options): Add --help, --version, -C.
49528         (CVS): Support installed cvsu.
49529
49530 2008-04-02  Bruno Haible  <bruno@clisp.org>
49531
49532         Avoid some "statement with no effect" warnings from gcc.
49533         * tests/test-wctype.c (main): Explicitly ignore unused values.
49534         Reported by Jim Meyering.
49535
49536 2008-04-02  Jim Meyering  <meyering@redhat.com>
49537
49538         Avoid some warnings from "gcc -Wshadow".
49539         * tests/test-frexp.c (exp): Define to a different identifier.
49540         * tests/test-frexpl.c (exp): Likewise.
49541
49542 2008-04-03  Jim Meyering  <meyering@redhat.com>
49543
49544         bootstrap: remove dangling *.[ch] symlinks from lib
49545         * build-aux/bootstrap [dangling symlink removal]: Move find's
49546         -depth option to precede all others, to avoid a warning.
49547         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49548
49549 2008-04-02  Bruno Haible  <bruno@clisp.org>
49550
49551         Avoid some warnings from "gcc -Wshadow".
49552         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49553         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49554         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49555         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49556         Reported by Jim Meyering.
49557
49558 2008-04-01  Bruno Haible  <bruno@clisp.org>
49559
49560         Fix test to work on IRIX 6.5 with cc.
49561         * tests/test-math.c (numeric_equal): New function.
49562         (main): Use it.
49563
49564 2008-04-01  Bruno Haible  <bruno@clisp.org>
49565
49566         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49567
49568 2008-04-01  Bruno Haible  <bruno@clisp.org>
49569
49570         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49571         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49572         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49573         (Depends-on): Remove math.
49574
49575         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49576         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49577         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49578         (Depends-on): Remove math.
49579
49580         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49581         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49582         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49583         (Depends-on): Remove math.
49584         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49585         (Depends-on): Remove math.
49586
49587         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49588         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49589         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49590         (Depends-on): Remove math.
49591         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49592         (Depends-on): Remove math.
49593
49594         * tests/test-round1.c: Include nan.h.
49595         (main): Use NaNd instead of NAN.
49596         * modules/round-tests (Files): Add tests/nan.h.
49597
49598         * tests/test-trunc1.c: Include nan.h.
49599         (main): Use NaNd instead of NAN.
49600         * modules/trunc-tests (Files): Add tests/nan.h.
49601
49602         * tests/test-roundf1.c: Include nan.h.
49603         (main): Use NaNf instead of NAN.
49604         * modules/roundf-tests (Files): Add tests/nan.h.
49605
49606         * tests/test-truncf1.c: Include nan.h.
49607         (main): Use NaNf instead of NAN.
49608         * modules/truncf-tests (Files): Add tests/nan.h.
49609
49610         * tests/test-ceilf1.c: Include nan.h.
49611         (main): Use NaNf instead of NAN.
49612         * modules/ceilf-tests (Files): Add tests/nan.h.
49613
49614         * tests/test-floorf1.c: Include nan.h.
49615         (main): Use NaNf instead of NAN.
49616         * modules/floorf-tests (Files): Add tests/nan.h.
49617
49618         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49619         (main): Use NaNf instead of NAN.
49620         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49621
49622         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49623         (main): Use NaNd instead of NAN.
49624         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49625
49626         * tests/test-frexp.c: Include nan.h.
49627         (main): Use NaNd instead of NAN.
49628         * modules/frexp-tests (Files): Add tests/nan.h.
49629
49630         * lib/isnan.c: Don't include <math.h>.
49631         (FUNC): Don't use NAN macro.
49632         * modules/isnand-nolibm (Depends-on): Remove math.
49633         * modules/isnanf-nolibm (Depends-on): Remove math.
49634         * modules/isnanl (Depends-on): Remove math.
49635         * modules/isnanl-nolibm (Depends-on): Remove math.
49636
49637         * tests/nan.h: New file.
49638
49639 2008-04-01  Eric Blake  <ebb9@byu.net>
49640
49641         Fix typos.
49642         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49643         values to be the right type.
49644
49645         For now, cater to gnulib strtod inaccuracies.
49646         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49647         fractional results.  While not as nice from a QoI perspective, it
49648         is a quicker patch than correctly implementing decimal to binary
49649         rounding.
49650
49651 2008-03-31  Eric Blake  <ebb9@byu.net>
49652
49653         Guarantee a definition of NAN.
49654         * lib/math.in.h (NAN): Define if missing.
49655         * tests/test-math.c (main): Test it.
49656         * doc/posix-headers/math.texi (math.h): Document this.
49657         * lib/isnan.c (rpl_isnand): Use it.
49658         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49659         * tests/test-floorf1.c (NaN): Likewise.
49660         * tests/test-frexp.c (NaN): Likewise.
49661         * tests/test-isnand.c (NaN): Likewise.
49662         * tests/test-isnanf.c (NaN): Likewise.
49663         * tests/test-round1.c (NaN): Likewise.
49664         * tests/test-roundf1.c (NaN): Likewise.
49665         * tests/test-snprintf-posix.h (NaN): Likewise.
49666         * tests/test-sprintf-posix.h (NaN): Likewise.
49667         * tests/test-trunc1.c (NaN): Likewise.
49668         * tests/test-truncf1.c (NaN): Likewise.
49669         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49670         * tests/test-vasprintf-posix.c (NaN): Likewise.
49671         * modules/isnand-nolibm (Depends-on): Add math.
49672         * modules/isnanf-nolibm (Depends-on): Likewise.
49673         * modules/isnanl (Depends-on): Likewise.
49674         * modules/isnanl-nolibm (Depends-on): Likewise.
49675         * modules/snprintf-posix-tests (Depends-on): Likewise.
49676         * modules/sprintf-posix-tests (Depends-on): Likewise.
49677         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49678         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49679         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49680         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49681
49682 2008-03-31  Bruno Haible  <bruno@clisp.org>
49683
49684         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49685         * doc/posix-functions/strtod.texi: Likewise.
49686
49687 2008-03-31  Bruno Haible  <bruno@clisp.org>
49688
49689         * tests/test-strtod.c (main): Don't use C99 syntax.
49690
49691 2008-03-31  Bruno Haible  <bruno@clisp.org>
49692
49693         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49694         Reported by Eric Blake.
49695
49696 2008-03-31  Jim Meyering  <meyering@redhat.com>
49697
49698         Don't compare actual signbit return values.
49699         * tests/test-strtod.c (main): Rather, compare only their
49700         zero/non-zero nature.
49701
49702 2008-03-31  Eric Blake  <ebb9@byu.net>
49703
49704         More strtod documentation.
49705         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49706         failures as distinct bugs.
49707
49708 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49709
49710         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49711         Problem reported by Erik Benada in
49712         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49713
49714 2008-03-30  Bruno Haible  <bruno@clisp.org>
49715
49716         * tests/test-strtod.c: Add comments about which assertion fails on which
49717         platform.
49718         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49719
49720 2008-03-30  Eric Blake  <ebb9@byu.net>
49721
49722         Test signbit behavior on zeros.
49723         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49724         (test_signbitd, test_signbitl): Likewise.
49725
49726         More strtod touchups.
49727         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49728         sign of negative underflow, for now.  Use .5, not .1.
49729         * doc/posix-functions/strtod.texi (strtod): Mention these
49730         limitations.
49731         Reported by Jim Meyering.
49732
49733 2008-03-30  Bruno Haible  <bruno@clisp.org>
49734
49735         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49736         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49737
49738 2008-03-30  Bruno Haible  <bruno@clisp.org>
49739
49740         Avoid failure when attempting to return empty iconv results on some
49741         platforms.
49742         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49743         allocation, don't report ENOMEM when the resulting string is empty.
49744
49745 2008-03-30  Bruno Haible  <bruno@clisp.org>
49746
49747         Fix buffer overrun.
49748         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49749         Don't consider the width for tmp_length. Check count against tmp_length
49750         before doing the padding. Ensure enough allocation during padding.
49751
49752 2008-03-30  Eric Blake  <ebb9@byu.net>
49753
49754         strtod touchups.
49755         * lib/strtod.c (strtod): Avoid compiler warnings.
49756         Reported by Jim Meyering.
49757
49758 2008-03-30  Bruno Haible  <bruno@clisp.org>
49759
49760         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49761         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49762         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49763         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49764         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49765         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49766         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49767         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49768
49769         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49770         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49771         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49772         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49773         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49774         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49775         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49776         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49777
49778         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49779         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49780         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49781         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49782         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49783         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49784         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49785         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49786
49787         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49788         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49789
49790         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49791         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49792
49793         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49794         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49795
49796         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49798         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49799
49800         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49802         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49803
49804         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49806         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49807
49808         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49809         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49810         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49811
49812         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49813         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49815         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49816         (Depends-on): Add EOVERFLOW.
49817         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49818         (Depends-on): Add EOVERFLOW.
49819         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49820         (Depends-on): Add EOVERFLOW.
49821         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49822         (Depends-on): Add EOVERFLOW.
49823         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49824         (Depends-on): Add EOVERFLOW.
49825         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49826         (Depends-on): Add EOVERFLOW.
49827         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49828         (Depends-on): Add EOVERFLOW.
49829         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49830         (Depends-on): Add EOVERFLOW.
49831
49832         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49834         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49835
49836         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49838         * modules/snprintf (Depends-on): Add EOVERFLOW.
49839
49840         * lib/poll.c (EOVERFLOW): Remove fallback.
49841         * modules/poll (Depends-on): Add EOVERFLOW.
49842
49843         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49844         * modules/getugroups (Depends-on): Add EOVERFLOW.
49845
49846         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49847         * modules/getdelim (Depends-on): Add EOVERFLOW.
49848
49849         * lib/ftell.c (EOVERFLOW): Remove fallback.
49850         * modules/ftell (Depends-on): Add EOVERFLOW.
49851
49852         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49853         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49854         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49855
49856         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49857
49858         * modules/EOVERFLOW-tests: New file.
49859         * tests/test-EOVERFLOW.c: New file.
49860
49861         * modules/EOVERFLOW: New file.
49862         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49863
49864 2008-03-30  Bruno Haible  <bruno@clisp.org>
49865
49866         Fix bug introduced on 2007-06-10.
49867         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49868         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49869
49870 2008-03-30  Bruno Haible  <bruno@clisp.org>
49871
49872         Improve freadseek's efficiency after ungetc.
49873         * lib/freadseek.c: Include freadahead.h.
49874         (freadptrinc): New function, extracted from freadseek.
49875         (freadseek): Use it in a loop. Use freadahead to determine the number
49876         of loop iterations.
49877         * modules/freadseek (Depends-on): Add freadahead.
49878         (configure.ac): Require AC_C_INLINE.
49879
49880 2008-03-30  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/freadseek.c (freadseek): Don't ignore the return value of
49883         freadptr.
49884
49885 2008-03-29  Eric Blake  <ebb9@byu.net>
49886
49887         Add hex float support.
49888         * modules/strtod (Depends-on): Add c-ctype.
49889         (Link): Mention POW_LIB.
49890         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
49891         whitespace between 'e' and exponent.
49892         * tests/test-strtod.c (main): Enable hex float tests.
49893         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
49894         now provides.
49895
49896         Document various strtod bugs, with some fixes.
49897         * doc/posix-functions/strtod.texi (strtod): Document bugs with
49898         "-0x", "inf", "nan", and hex constants.
49899         * doc/posix-functions/atof.texi (atof): Likewise.
49900         * modules/stdlib (Makefile.am): Support strtod.
49901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
49902         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
49903         detect additional strtod bugs.
49904         * lib/stdlib.in.h (rpl_strtod): Add declarations.
49905         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
49906         bool where appropriate.  Parse 'inf' and 'nan'.
49907         * tests/test-strtod.c: New file.
49908         * modules/strtod (Depends-on): Add stdbool, stdlib.
49909         (configure.ac): Turn on module indicator.
49910         * modules/strtod-tests: New module.
49911
49912 2008-03-29  Eric Blake  <ebb9@byu.net>
49913
49914         Fix ftell on mingw.
49915         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49916         * modules/ftell-tests (Depends-on): Add binary-io.
49917         * modules/ftello-tests (Depends-on): Likewise.
49918         * tests/test-ftell.c (main): Enhance test to cover behavior after
49919         ungetc.  Enforce binary mode.
49920         * tests/test-ftello.c (main): Likewise.
49921
49922         Pass test-freadseek on cygwin.
49923         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49924         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49925         ungetc buffer.
49926
49927         * tests/test-fflush2.c (main): Fix typo.
49928
49929 2008-03-29  Bruno Haible  <bruno@clisp.org>
49930
49931         * tests/test-fflush2.c (main): Temporarily disable the contents of
49932         this test.
49933         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49934         Reported by Eric Blake.
49935
49936 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49937
49938         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49939         (GC_SHA224_DIGEST_SIZE): Add.
49940
49941         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49942         (gc_hash_digest_length): Likewise.
49943         (gc_hash_buffer): Likewise.
49944
49945 2008-03-25  Bruno Haible  <bruno@clisp.org>
49946
49947         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49948         detail which gettext release to use.
49949         Reported by Simon Josefsson.
49950
49951 2008-03-26  Jim Meyering  <meyering@redhat.com>
49952
49953         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49954         * modules/gnumakefile (clean-GNUmakefile): Also, use
49955         test ... && ... || : syntax rather than if-then ... fi.
49956
49957         gnumakefile: Don't double-quote-expand $(VPATH) value.
49958         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49959
49960 2008-03-24  Eric Blake  <ebb9@byu.net>
49961
49962         Alter GNUmakefile to install into top directory.
49963         * modules/maintainer-makefile: Split, and add dependency...
49964         * modules/gnumakefile: to this new module.
49965         * build-aux/GNUmakefile: Move...
49966         * top/GNUmakefile: ...here.
49967         * build-aux/maint.mk: Move...
49968         * top/maint.mk: ...here.
49969         * MODULES.html.sh (Support for maintaining...): Document new
49970         module.
49971
49972 2008-03-23  Bruno Haible  <bruno@clisp.org>
49973
49974         * gnulib-tool: New options --vc-files, --no-vc-files.
49975         (func_usage): Document them.
49976         (vc_files): New variable.
49977         (func_import): Consider vc_files.
49978         (func_create_testdir): Set vc_files to empty.
49979         Suggested by Jim Meyering and Karl Berry.
49980
49981 2008-03-23  Bruno Haible  <bruno@clisp.org>
49982
49983         Fix regex compilation error on HP-UX 11.
49984         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49985         * modules/regex (Files): Add m4/mbstate_t.m4.
49986         Reported by Ton Voon <ton.voon@altinity.com>.
49987
49988 2008-03-23  Bruno Haible  <bruno@clisp.org>
49989
49990         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49991
49992 2008-03-23  Eric Blake  <ebb9@byu.net>
49993             Bruno Haible  <bruno@clisp.org>
49994
49995         Install files from top/ in the destination directory.
49996         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49997         augmentation also for the files from top/.
49998         (func_import, func_create_testdir): Rewrite file names:
49999         top/filename -> filename.
50000
50001 2008-03-23  Bruno Haible  <bruno@clisp.org>
50002
50003         Tweak "gnulib --version" output.
50004         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50005
50006 2008-03-23  Bruno Haible  <bruno@clisp.org>
50007
50008         Tweak "gnulib --version" output.
50009         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50010         rather than contents of ChangeLog, when possible.
50011
50012 2008-03-21  Eric Blake  <ebb9@byu.net>
50013
50014         More --version tweaks.
50015         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50016         date of last ChangeLog entry.
50017
50018 2008-03-21  Jim Meyering  <meyering@redhat.com>
50019
50020         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50021
50022 2008-03-20  Eric Blake  <ebb9@byu.net>
50023
50024         VPATH fix.
50025         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50026
50027 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50028
50029         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50030         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50031
50032 2008-03-20  Eric Blake  <ebb9@byu.net>
50033
50034         Sync GNUmakefile with coreutils.
50035         * build-aux/GNUmakefile (have-Makefile): Rename...
50036         (_have-Makefile): ...to this, for namespace consideration.
50037         (GNUmakefile.cfg): Include, if present.
50038         (_autoreconf): Define a default.
50039         (_is-dist-target): New rule for rebuilds to pick up intra-release
50040         version.
50041         (maint-cfg.mk): Rename...
50042         (cfg.mk): ...to this.
50043
50044 2008-03-18  Jim Meyering  <meyering@redhat.com>
50045
50046         New script and module: mktempd
50047         * MODULES.html.sh (maint+release support): Add mktempd.
50048         * build-aux/mktempd: New file.
50049         * modules/mktempd: New file.
50050
50051 2008-03-15  Jim Meyering  <meyering@redhat.com>
50052
50053         Undo last change.
50054         * lib/sha1.c, lib/md5.c: 63 != ~63.
50055         Reported by Andreas Schwab.
50056
50057         sha1.c, md5.c: Hoist a redundant expression.
50058         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50059         "ctx->buflen" only once, before calling *_process_block.
50060         * lib/md5.c (md5_process_bytes): Likewise.
50061
50062 2008-03-14  Eric Blake  <ebb9@byu.net>
50063
50064         Bump copyright year in files generated by gnulib-tool.
50065         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50066         gnulib-tool, rather than hard-coding it.
50067
50068         Fix 'gnulib-tool --version' output to work with git.
50069         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50070         (startup): ...here.
50071         (func_version): Use it to invoke git-version-gen, rather than
50072         relying on CVS keyword expansion.  Modernize wording.
50073         (cvsdatestamp, last_checkin_date, version): Kill unused
50074         variables.
50075
50076 2008-03-12  Jim Meyering  <meyering@redhat.com>
50077
50078         Recognize optional cast of the argument to free.
50079         * build-aux/useless-if-before-free: Update regexps.
50080
50081         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50082
50083 2008-03-11  Bruno Haible  <bruno@clisp.org>
50084
50085         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50086         by a single package.
50087         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50088         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50089         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50090         Reported by Sam Steingold <sds@gnu.org>.
50091
50092 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50093
50094         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50095         repositories.
50096
50097 2008-03-11  Bruno Haible  <bruno@clisp.org>
50098
50099         Avoid conflicts between local macro definitions.
50100         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50101         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50102
50103 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50104             Bruno Haible  <bruno@clisp.org>
50105
50106         Make va_copy work with some version of xlc on AIX 5.1.
50107         * lib/stdarg.in.h: New file.
50108         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50109         On AIX, use a <stdarg.h> file substitute.
50110         * modules/stdarg (Files): Add lib/stdarg.in.h.
50111         (Depends-on): Add include_next.
50112         (Makefile.am): Build a stdarg.h substitute if requested.
50113         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50114
50115 2008-03-10  Bruno Haible  <bruno@clisp.org>
50116
50117         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50118         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50119         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50120
50121 2008-03-10  Bruno Haible  <bruno@clisp.org>
50122
50123         * modules/stdlib (Depends-on): Add include_next, remove
50124         absolute-header.
50125
50126 2008-03-09  Bruno Haible  <bruno@clisp.org>
50127
50128         * lib/freadahead.h (freadahead): Document more precisely.
50129         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50130         the sum of both buffer sizes.
50131         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50132         * NEWS: Document the change.
50133
50134 2008-03-09  Bruno Haible  <bruno@clisp.org>
50135
50136         Extend freadptr to return also the buffer size.
50137         * lib/freadptr.h (freadptr): Add sizep argument.
50138         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50139         (freadptr): Add sizep argument. Determine buffer size like freadahead
50140         does.
50141         * tests/test-freadptr.c: Don't include freadahead.h.
50142         (main): Adapt for new calling convention of freadptr.
50143         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50144         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50145         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50146         tests/test-freadptr2.sh.
50147         (Depends): Remove freadahead.
50148         (TESTS): Add test-freadptr2.sh.
50149         (check_PROGRAMS): Add test-freadptr2.
50150
50151 2008-03-09  Bruno Haible  <bruno@clisp.org>
50152
50153         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50154         Report and solution by Simon Josefsson.
50155
50156 2008-03-06  Bruno Haible  <bruno@clisp.org>
50157
50158         Make fflush after ungetc work on BSD platforms.
50159         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50160         * tests/test-fflush2.c: New file.
50161         * tests/test-fflush2.sh: New file.
50162         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50163         tests/test-fflush2.c.
50164         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50165         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50166
50167 2008-03-06  Eric Blake  <ebb9@byu.net>
50168
50169         Likewise for ftello.
50170         * modules/ftello (Dependencies): Add extensions.
50171         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50172
50173 2008-03-06  Bruno Haible  <bruno@clisp.org>
50174
50175         * modules/fseeko (Dependencies): Add extensions.
50176         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50177         Needed on glibc systems.
50178
50179 2008-03-06  Bruno Haible  <bruno@clisp.org>
50180
50181         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50182         email address.
50183         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50184
50185 2008-03-06  Bruno Haible  <bruno@clisp.org>
50186
50187         * users.txt: Add libgnupdf.
50188
50189 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50190
50191         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50192         (Header File Substitutes, Function Substitutes,
50193         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50194         (Build robot for gnulib): Fix typo.
50195
50196 2008-03-06  Bruno Haible  <bruno@clisp.org>
50197
50198         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50199         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50200
50201 2008-03-06  Bruno Haible  <bruno@clisp.org>
50202
50203         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50204         * doc/gnulib.texi: Include it.
50205
50206 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50207
50208         * modules/func (License): Change license to unlimited; there was
50209         no LGPL parts in the module anyway.
50210
50211 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50212
50213         * modules/__func__: Renamed to modules/func.
50214         * modules/__func__-tests: Renamed to modules/func-tests.
50215         * tests/test-__func__.c: Renamed to tests/test-func.c.
50216         * m4/__func__.m4: Renamed to m4/func.m4.
50217         * doc/gnulib.texi (__func__): Section renamed to func.
50218         Suggested by Eric Blake <ebb9@byu.net>.
50219
50220 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50221
50222         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50223         about __func__.  Make example self-contained.  Suggested by Eric
50224         Blake <ebb9@byu.net>.
50225
50226         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50227         Suggested by Eric Blake <ebb9@byu.net>.
50228
50229 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50230
50231         * modules/__func__: New file.
50232         * modules/__func__-tests: New file.
50233         * tests/test-__func__.c: New file.
50234         * m4/__func__.m4: New file.
50235         * doc/gnulib.texi (__func__): Document __func__ module.
50236
50237 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50238
50239         * modules/byteswap (License): Re-license as LGPLv2+.
50240
50241 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50242
50243         * doc/Makefile: Add pdf target.
50244
50245 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50246
50247         * modules/inline (License): Use 'unlimited', since there are only
50248         *.m4 files in this module.
50249
50250 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50251             Bruno Haible  <bruno@clisp.org>
50252
50253         Add support for HP C 7.1 on OpenVMS 8.3.
50254         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50255
50256 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50257
50258         Update VMS specifics.
50259         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50260
50261 2008-03-02  Jim Meyering  <meyering@redhat.com>
50262
50263         Remove the last dependency on the "free" module.
50264         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50265         Reported by Bob Proulx.
50266
50267         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50268
50269         Remove useless "if" tests before free.  Deprecate "free" module.
50270         * doc/posix-functions/free.texi: Mention that this
50271         module is no longer useful.
50272         * modules/free (Notice): Say this module is obsolete.
50273         * modules/readutmp (Depends-on): Remove free.
50274         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50275         * lib/putenv.c (putenv): Likewise.
50276         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50277         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50278         * tests/test-c-strcasestr.c (main): Likewise.
50279         * tests/test-c-strstr.c (main): Likewise.
50280         * tests/test-mbscasestr1.c (main): Likewise.
50281         * tests/test-mbscasestr2.c (main): Likewise.
50282         * tests/test-mbsstr1.c (main): Likewise.
50283         * tests/test-mbsstr2.c (main): Likewise.
50284         * tests/test-memmem.c (main): Likewise.
50285         * tests/test-strcasestr.c (main): Likewise.
50286         * tests/test-striconv.c (main): Likewise.
50287         * tests/test-striconveh.c (main): Likewise.
50288         * tests/test-striconveha.c (main): Likewise.
50289         * tests/test-strstr.c (main): Likewise.
50290
50291         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50292
50293         bootstrap: sync from coreutils again
50294         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50295
50296 2008-03-01  Jim Meyering  <meyering@redhat.com>
50297
50298         bootstrap: sync from coreutils
50299         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50300         also when the target doesn't exist.
50301
50302 2008-03-01  Eric Blake  <ebb9@byu.net>
50303
50304         Fix bugs in last patch.
50305         * lib/memchr2.c (memchr2): Fix typo.
50306         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50307         extension.
50308         Reported by Bruce Korb.
50309
50310         New module 'memchr2'.
50311         * modules/memchr2: New file.
50312         * modules/memchr2-tests: Likewise.
50313         * lib/memchr2.h: Likewise.
50314         * lib/memchr2.c: Likewise, based on memchr.c.
50315         * tests/test-memchr2.c: New test.
50316         * MODULES.html.sh (String handling): Add memchr2.
50317
50318 2008-02-29  Bruno Haible  <bruno@clisp.org>
50319
50320         * modules/freadseek-tests: New file.
50321         * tests/test-freadseek.sh: New file.
50322         * tests/test-freadseek.c: New file.
50323
50324         New module 'freadseek'.
50325         * modules/freadseek: New file.
50326         * lib/freadseek.h: New file.
50327         * lib/freadseek.c: New file.
50328         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50329
50330 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50331
50332         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50333         wydawca.
50334
50335         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50336         program_invocation_name and program_invocation_short_name are
50337         present.
50338
50339 2008-02-28  Bruno Haible  <bruno@clisp.org>
50340
50341         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50342         * tests/test-freadptr.sh: Also test non-seekable stdin.
50343
50344 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50345
50346         * build-aux/bootstrap (source_base, m4_base)
50347         (doc_base, tests_base): New variables.
50348         (gnulib_tool_options): Do not hardcode base directories, use
50349         the above variables instead.
50350
50351 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50352
50353         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50354
50355 2008-02-28  Bruno Haible  <bruno@clisp.org>
50356
50357         * modules/freadptr-tests: New file.
50358         * tests/test-freadptr.sh: New file.
50359         * tests/test-freadptr.c: New file.
50360
50361         New module 'freadptr'.
50362         * modules/freadptr: New file.
50363         * lib/freadptr.h: New file.
50364         * lib/freadptr.c: New file.
50365         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50366
50367 2008-02-26  Karl Berry  <karl@freefriends.org>
50368
50369         Sync from Libtool:
50370         * libltdl/argz.c (argz_add, argz_count): New functions.
50371         * libltdl/argz.in.h: Declare them.
50372         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50373
50374 2008-02-22  Bruno Haible  <bruno@clisp.org>
50375
50376         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50377         is a pointer type.  Needed for HP-UX 10.
50378         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50379         * doc/posix-functions/gmtime_r.texi: Likewise.
50380         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50381
50382 2008-02-24  Bruno Haible  <bruno@clisp.org>
50383
50384         * modules/environ-tests: New file.
50385         * tests/test-environ.c: New file.
50386
50387         New module 'environ'.
50388         * modules/environ: New file.
50389         * lib/unistd.in.h (environ): New declaration.
50390         * m4/environ.m4: New file.
50391         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50392         after use.
50393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50394         HAVE_DECL_ENVIRON.
50395         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50396         HAVE_DECL_ENVIRON.
50397         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50398         wrong claim that 'environ' is missing on some systems.
50399         * modules/execute (Depends-on): Add environ.
50400         * lib/execute.c (environ): Remove fallback declaration.
50401         * modules/pipe (Depends-on): Add environ.
50402         * lib/pipe.c (environ): Remove fallback declaration.
50403         * modules/setenv (Depends-on): Add environ.
50404         * lib/setenv.c (environ): Remove fallback declaration.
50405         * modules/unsetenv (Depends-on): Add environ.
50406         * lib/unsetenv.c (environ): Remove fallback declaration.
50407         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50408         m4/environ.m4.
50409         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50410         (gl_PREREQ_UNSETENV): Likewise.
50411
50412 2008-02-24  Bruno Haible  <bruno@clisp.org>
50413
50414         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50415
50416 2008-02-20  Bob Proulx  <bob@proulx.com>
50417
50418         Enable use of older two part flavor 'git describe'.
50419         * build-aux/git-version-gen: If using the older two part flavor of
50420         git version then recreate the third part now present in the
50421         newer three part flavor of git describe.
50422
50423 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50424
50425         * lib/fts.c (fts_build): Typo correction to comment.
50426
50427 2008-02-17  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50430         generating no-op conflicts.
50431
50432 2008-02-17  Bruno Haible  <bruno@clisp.org>
50433
50434         Speed up by 10%.
50435         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50436         result_entries, rather than an index-based loop.
50437
50438 2008-02-17  Bruno Haible  <bruno@clisp.org>
50439
50440         Speed up by 25%.
50441         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50442         'hashcode_cached'.
50443         (entry_create): New function.
50444         (entry_hashcode): Use the cached hashcode if possible.
50445         (read_changelog_file, try_split_merged_entry): Use entry_create.
50446
50447 2008-02-17  Bruno Haible  <bruno@clisp.org>
50448
50449         Speed up from O(n^2) to O(n) for long ChangeLog files.
50450         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50451         (read_changelog_file): Change implementation of entries_reversed list
50452         to rbtreehash.
50453         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50454
50455 2008-02-17  Bruno Haible  <bruno@clisp.org>
50456
50457         New option --split-merged-entry.
50458         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50459         (find_paragraph_end, try_split_merged_entry): New functions.
50460         (long_options): Add option --split-merged-entry.
50461         (usage): Document option --split-merged-entry.
50462         (main): Implement option --split-merged-entry.
50463         Reported by Eric Blake.
50464
50465 2008-02-17  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/git-merge-changelog.c: Include c-strstr.h.
50468         (main): Support the "git pull --rebase" situation.
50469         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50470         Reported by Eric Blake.
50471
50472 2008-02-16  Eric Blake  <ebb9@byu.net>
50473
50474         Avoid doubling \ in common case of "c-maybe" quoting style.
50475         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50476         eliding outer quotes.
50477         * lib/quotearg.h: Document this.
50478         * tests/test-quotearg.c (result_strings, inputs, results_g)
50479         (flag_results, locale_results): Test it by adding a new string to
50480         each test group.
50481         (compare_strings): Test new string.
50482
50483 2008-02-13  Eric Blake  <ebb9@byu.net>
50484
50485         Avoid trigraph quoting in default output.
50486         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50487         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50488         unless explicitly requested.
50489         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50490
50491 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50492
50493         Don't rely on signed integer overflowing to negative value.
50494         * lib/getugroups.c (getugroups): Include <limits.h>.
50495         Instead, compare against INT_MAX, and increment only if the test passes.
50496
50497 2008-02-13  Jim Meyering  <meyering@redhat.com>
50498         and Eric Blake  <ebb9@byu.net>
50499
50500         Avoid shadowing warning and compile errors on Linux.
50501         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50502         forwarding macros on Linux.
50503         (dcgettext): Define a stub, for Linux.
50504         (results_g, main): Avoid warnings.
50505
50506 2008-02-12  Eric Blake  <ebb9@byu.net>
50507
50508         Silence warning in last patch.
50509         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50510
50511         Quotearg part 4: add tests, fix c-maybe colon quoting.
50512         * lib/quotearg.h: Improve documentation.
50513         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50514         escapes when adding outer quotes.  When quoting trigraphs, use
50515         valid C notation.  When quoting NUL, omit extra characters if next
50516         character is not digit.  Alter prototype.
50517         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50518         callers.
50519         * modules/quotearg-tests: New module.
50520         * tests/test-quotearg.c: New test.
50521
50522 2008-02-07  Eric Blake  <ebb9@byu.net>
50523
50524         Quotearg part 3: add flag to control outer quote elision.
50525         * lib/quotearg.h (c_maybe_quoting_style): New style.
50526         (enum quoting_flags): Better documentation of flags.
50527         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50528         c-maybe style.
50529         (quotearg_buffer_restyled): Handle new flag to elide outer
50530         quotes.
50531
50532         Quotearg part 2: add flag that can control NUL elision.
50533         * lib/quotearg.h (set_quoting_flags): New prototype.
50534         * lib/quotearg.c (struct quoting_options): Add flag field.
50535         (set_quoting_flags): New function.
50536         (quotearg_buffer_restyled): Add flags parameter.
50537         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50538         (quotearg_n_options): Set the flag, since length cannot be
50539         returned.
50540         (quoting_options_from_style): Default flags correctly.
50541
50542         Quotearg part 1: more wrappers, restore quotearg_char state.
50543         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50544         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50545         (quotearg_colon_mem): New wrappers.
50546         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50547         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50548         functions.
50549         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50550         (quotearg_colon_mem): New functions.
50551
50552 2008-02-11  Bruno Haible  <bruno@clisp.org>
50553
50554         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50555         library in the current directory: it does not work with parallel make.
50556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50557
50558 2008-02-11  Bruno Haible  <bruno@clisp.org>
50559
50560         * .gitattributes: New file.
50561
50562 2008-02-11  Jim Meyering  <meyering@redhat.com>
50563
50564         useless-if-before-free: Fix reversed exit values.
50565         * build-aux/useless-if-before-free: Use correct values
50566         for EXIT_MATCH and EXIT_NO_MATCH.
50567
50568         * build-aux/useless-if-before-free: Close stdout carefully.
50569
50570 2008-02-10  Bruno Haible  <bruno@clisp.org>
50571
50572         New module 'git-merge-changelog'.
50573         * modules/git-merge-changelog: New file.
50574         * lib/git-merge-changelog.c: New file.
50575
50576 2008-02-10  Jim Meyering  <meyering@redhat.com>
50577
50578         useless-if-before-free: New option: --list (-l).
50579
50580         useless-if-before-free: Don't exit immediately upon open failure.
50581         * build-aux/useless-if-before-free: Exit 2 for errors.
50582         Upon failure to open a file, don't exit immediately.
50583         Rather, just warn and continue with any remaining files.
50584
50585 2008-02-10  Bruno Haible  <bruno@clisp.org>
50586
50587         New abstract list operation 'node_set_value'.
50588         * lib/gl_list.h (gl_list_node_set_value): New function.
50589         (struct gl_list_implementation): New field node_set_value.
50590         * lib/gl_list.c (gl_list_node_set_value): New function.
50591         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50592         (gl_array_list_implementation): Update.
50593         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50594         (gl_carray_list_implementation): Update.
50595         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50596         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50597         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50598         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50599         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50600         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50601         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50602         Update.
50603         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50604         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50605         (gl_sublist_list_implementation): Update.
50606
50607 2008-02-10  Bruno Haible  <bruno@clisp.org>
50608
50609         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50610         Needed when ELEMENT is #defined to 'some_type *'.
50611
50612 2008-02-10  Jim Meyering  <meyering@redhat.com>
50613
50614         New script and module: useless-if-before-free
50615         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50616         * build-aux/useless-if-before-free: New file.
50617         * modules/useless-if-before-free: New file.
50618
50619         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50620
50621         xstrtol_error: Fix typo.
50622         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50623         s/exit_failure/exit_status/.
50624
50625 2008-02-09  Jim Meyering  <meyering@redhat.com>
50626
50627         New script and module: gitlog-to-changelog
50628         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50629         * modules/gitlog-to-changelog: New file.
50630         * build-aux/gitlog-to-changelog: New file.
50631
50632 2008-02-08  Jim Meyering  <meyering@redhat.com>
50633
50634         Avoid two "parameter unused" warnings.
50635         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50636         Mark "st" as used.
50637
50638         Use "git COMMAND", not "git-COMMAND".
50639         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50640         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50641         * build-aux/git-version-gen: Use "git status", not "git-status".
50642
50643 2008-02-07  Bruno Haible  <bruno@clisp.org>
50644
50645         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50646         Avoids a crash on Windows Vista.
50647         Reported by Adam Strzelecki <ono@java.pl> via
50648         Simon Josefsson <simon@josefsson.org>.
50649
50650 2008-02-06  Bruno Haible  <bruno@clisp.org>
50651
50652         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50653         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50654         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50656         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50657         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50658         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50659         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50667         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50668         left-adjust flag.
50669         * tests/test-snprintf-posix.h (test_function): Likewise.
50670         * tests/test-sprintf-posix.h (test_function): Likewise.
50671         * tests/test-vasprintf-posix.c (test_function): Likewise.
50672         * doc/posix-functions/fprintf.texi: Update.
50673         * doc/posix-functions/printf.texi: Update.
50674         * doc/posix-functions/snprintf.texi: Update.
50675         * doc/posix-functions/sprintf.texi: Update.
50676         * doc/posix-functions/vfprintf.texi: Update.
50677         * doc/posix-functions/vprintf.texi: Update.
50678         * doc/posix-functions/vsnprintf.texi: Update.
50679         * doc/posix-functions/vsprintf.texi: Update.
50680         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50681
50682 2008-02-06  Bruno Haible  <bruno@clisp.org>
50683
50684         Fix bug introduced on 2008-01-26.
50685         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50686
50687 2008-02-06  Bruno Haible  <bruno@clisp.org>
50688
50689         Fix bug introduced on 2007-06-10.
50690         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50691         !NEED_PRINTF_FLAG_ZERO.
50692
50693 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50694
50695         getloadavg: use libperfstat on AIX5
50696         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50697
50698 2008-02-03  Bruno Haible  <bruno@clisp.org>
50699
50700         * lib/diffseq.h: Add comments about required #includes.
50701         Reported by Michael Biggs <gnulib@doubleplum.net>.
50702
50703 2008-02-01  Bruno Haible  <bruno@clisp.org>
50704
50705         * users.txt: Add gnuit.
50706
50707 2008-01-31  Bruno Haible  <bruno@clisp.org>
50708
50709         * lib/md4.c (set_uint32): Mark as inline.
50710         * lib/md5.c (set_uint32): Likewise.
50711         * lib/sha1.c (set_uint32): Likewise.
50712         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50713         * m4/md5.m4 (gl_MD5): Likewise.
50714         * m4/sha1.m4 (gl_SHA1): Likewise.
50715
50716 2008-01-31  Jim Meyering  <meyering@redhat.com>
50717
50718         Use "sizeof VAR", rather than a literal "4".
50719         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50720         * lib/md4.c (md4_read_ctx): Likewise.
50721         * lib/sha1.c (sha1_read_ctx): Likewise.
50722
50723 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50724
50725         * tests/test-sha1.c: New file, based on test-md5.c.
50726
50727         * modules/crypto/sha1-tests: New file.
50728
50729 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50730
50731         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50732
50733 2008-01-31  Jim Meyering  <meyering@redhat.com>
50734
50735         Prefer "sizeof v" over the equivalent "4".
50736         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50737         * lib/md5.c (set_uint32): Likewise.
50738         * lib/sha1.c (set_uint32): Likewise.
50739
50740 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50741
50742         * lib/sha1.c (set_uint32): Mark function as static.
50743
50744 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50745
50746         md2: clarify comments to say that alignment is not required.
50747         * lib/md2.h: Remove warning about alignment in comment.
50748         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50749         never been required.
50750
50751 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50752
50753         md4: adapt alignment constraint fix from sha1.
50754         * lib/md4.c (set_uint32): New function, from sha1.c
50755         (md4_read_ctx): Use it.
50756         (md4_finish_ctx): Doc fix.
50757         * lib/md4.h: Doc fix.
50758
50759 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50760
50761         md5: adapt alignment constraint fix from sha1.
50762         * lib/md5.c (set_uint32): New function, from sha1.c
50763         (md5_read_ctx): Use it.
50764         (md5_finish_ctx): Doc fix.
50765         * lib/md5.h: Doc fix.
50766
50767 2008-01-30  Peter Palfrader  <weasel@debian.org>
50768
50769         sha1: remove the result buffer alignment constraint
50770         * lib/sha1.c (set_uint32): New function.
50771         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50772         constraint.
50773         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50774         * lib/sha1.h: Likewise.
50775
50776 2008-01-30  Andreas Schwab  <schwab@suse.de>
50777             Bruno Haible  <bruno@clisp.org>
50778
50779         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50780         correct definition of LDBL_MIN_EXP.
50781
50782 2008-01-30  Karl Berry  <karl@gnu.org>
50783
50784         * config/srclist-update: try to preserve x bit on updates.
50785         * config/srclistvars.sh: update for karl.
50786
50787 2008-01-29  Jim Meyering  <meyering@redhat.com>
50788
50789         vasnprintf.c: Avoid warning about unused label
50790         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50791         "overflow" label definition and associated code with the
50792         same cpp condition that guards the sole use of that label.
50793
50794 2008-01-26  Bruno Haible  <bruno@clisp.org>
50795
50796         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50797         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50798         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50799         * lib/isnanl-nolibm.h (isnanl): Likewise.
50800         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50801
50802 2008-01-26  Bruno Haible  <bruno@clisp.org>
50803
50804         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50805         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50806
50807 2008-01-26  Bruno Haible  <bruno@clisp.org>
50808
50809         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50810         GCC >= 4.0 built-in.
50811         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50812
50813 2008-01-26  Bruno Haible  <bruno@clisp.org>
50814
50815         Rename isnan, applicable to 'double' only, to isnand.
50816         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50817         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50818         (configure.ac): Update.
50819         (Include): Replace "isnan.h" with "isnand.h".
50820         * m4/isnand.m4: Renamed from m4/isnan.m4.
50821         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50822         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50823         instead of isnan.c.
50824         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50825         instead of HAVE_ISNAN_IN_LIBC.
50826         (isnand): Renamed from isnan.
50827         * lib/isnand.c: New file.
50828         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50829         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50830         (Makefile.am): Update.
50831         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50832         Include isnand.h instead of isnan.h.
50833         (main): Test isnand instead of isnan.
50834         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50835         isnan-nolibm.
50836         * modules/frexp (Depends-on): Likewise.
50837         * modules/frexp-tests (Depends-on): Likewise.
50838         * modules/frexp-nolibm (Depends-on): Likewise.
50839         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50840         * modules/isfinite (Depends-on): Likewise.
50841         * modules/round-tests (Depends-on): Likewise.
50842         * modules/signbit (Depends-on): Likewise.
50843         * modules/signbit-tests (Depends-on): Likewise.
50844         * modules/snprintf-posix (Depends-on): Likewise.
50845         * modules/sprintf-posix (Depends-on): Likewise.
50846         * modules/trunc-tests (Depends-on): Likewise.
50847         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50848         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50849         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50850         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50851         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50852         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50853         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50854         * modules/vasnprintf-posix (Depends-on): Likewise.
50855         * modules/vasprintf-posix (Depends-on): Likewise.
50856         * modules/vfprintf-posix (Depends-on): Likewise.
50857         * modules/vsnprintf-posix (Depends-on): Likewise.
50858         * modules/vsprintf-posix (Depends-on): Likewise.
50859         * lib/frexp.c: Include isnand.h instead of isnan.h.
50860         (ISNAN): Set to isnand instead of isnan.
50861         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50862         (gl_isfinited): Use isnand instead of isnan.
50863         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50864         (gl_signbitd): Use isnand instead of isnan.
50865         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50866         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50867         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50868         (main): Use isnand instead of isnan.
50869         * tests/test-round1.c: Include isnand.h.
50870         (main): Use isnand instead of isnan.
50871         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50872         (ISNAN): Set to isnand instead of isnan.
50873         * tests/test-trunc1.c: Include isnand.h.
50874         (main): Use isnand instead of isnan.
50875         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
50876         (equal): Use isnand instead of isnan.
50877         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
50878         isnand-nolibm.
50879         * NEWS: Mention the change.
50880
50881 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50882             Bruno Haible  <bruno@clisp.org>
50883
50884         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
50885         the GCC builtins for signbits are present and set
50886         REPLACE_SIGNBIT_USING_GCC if so.
50887         * lib/math.in.h (signbit): Define using GCC builtins if
50888         REPLACE_SIGNBIT_USING_GCC is set.
50889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
50890         REPLACE_SIGNBIT_USING_GCC.
50891         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
50892
50893 2008-01-25  Jim Meyering  <meyering@redhat.com>
50894
50895         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
50896         * lib/poll.c: Include <config.h>, not "config.h".
50897         * tests/test-getaddrinfo.c: Likewise.
50898
50899 2008-01-25  Simon Josefsson  <simon@josefsson.org>
50900
50901         * modules/sockets-tests: New file.
50902
50903 2008-01-24  Simon Josefsson  <simon@josefsson.org>
50904
50905         * modules/sockets: New module, can be used to call WSA_Startup and
50906         WSA_Cleanup when needed.
50907
50908         * lib/sockets.h, lib/sockets.c: New files.
50909
50910         * m4/sockets.m4: New file.
50911
50912         * tests/test-sockets.c: New file.
50913
50914 2008-01-19  Bruno Haible  <bruno@clisp.org>
50915
50916         * doc/posix-headers: Renamed from doc/headers.
50917         * doc/posix-functions: Renamed from doc/functions.
50918         * doc/gnulib.texi: Update.
50919
50920 2008-01-19  Bruno Haible  <bruno@clisp.org>
50921
50922         * doc/glibc-functions/strcasestr.texi: Include contents of
50923         doc/functions/strcasestr.texi, fixing the list of platforms.
50924         * doc/functions/strcasestr.texi: Remove file.
50925
50926 2008-01-19  Bruno Haible  <bruno@clisp.org>
50927
50928         * doc/glibc-functions/memmem.texi: Include contents of
50929         doc/functions/memmem.texi.
50930         * doc/functions/memmem.texi: Remove file.
50931
50932 2008-01-18  Bruno Haible  <bruno@clisp.org>
50933
50934         * doc/glibc-functions/*.texi: New files.
50935         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50936         to use the new files.
50937
50938 2008-01-17  Bruno Haible  <bruno@clisp.org>
50939
50940         * tests/test-gethostname.c (main): Fix printf statement.
50941
50942 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50943
50944         * modules/gethostname-tests: New file.
50945
50946         * tests/test-gethostname.c: New file.
50947
50948 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50949
50950         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50951         used by the UNAME case.  Reported by Bruno Haible
50952         <bruno@clisp.org>.
50953
50954 2008-01-17  Eric Blake  <ebb9@byu.net>
50955
50956         Convert c-strcasestr to be more efficient.
50957         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50958         (Depends-on): Add c-strcase, remove malloca, strnlen.
50959         * tests/test-c-strcasestr.c (main): Enhance test.
50960         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50961
50962 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50963
50964         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50965         Use it in creating po/Makevars.
50966
50967 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50968
50969         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50970         Applications that requires it should initialize libgcrypt
50971         manually.
50972
50973 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50974
50975         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50976
50977 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         Fix problem with getdate on mingw32 reported by Simon Josefsson
50980         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50981         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50982         tzname", when deciding whether to declare tzname.
50983         * lib/strftime.c (tzname): Likewise.
50984
50985 2008-01-15  Bruno Haible  <bruno@clisp.org>
50986
50987         Work around a MacOS X 10.5 bug in frexpl().
50988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50989         * doc/functions/frexpl.texi: Document the bug.
50990         Reported by Elias Pipping <pipping@gentoo.org>.
50991
50992 2008-01-14  Eric Blake  <ebb9@byu.net>
50993
50994         Touch up previous patch.
50995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50996         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50997
50998         Convert strcasestr module to use Two-Way algorithm.
50999         * modules/strcasestr-simple: New module, based on the old
51000         strcasestr, but with Two-Way rather than KMP.
51001         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51002         * lib/string.in.h (rpl_strcasestr): Declare.
51003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51004         performance.
51005         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51006         * modules/string (Makefile.am): Support strcasestr.
51007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51008         * modules/strcasestr-tests (Depends-on): Check for alarm.
51009         * tests/test-strcasestr.c: Augment test.
51010         * lib/str-two-way.h: Clean up stray macro.
51011         * NEWS: Document new module.
51012         * MODULES.html.sh (string handling): Likewise.
51013         * doc/functions/strcasestr.texi: New file.
51014         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51015         here, since it is not a POSIX function.
51016
51017 2008-01-14  Colin Watson  <cjwatson@debian.org>
51018             Bruno Haible  <bruno@clisp.org>
51019
51020         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51021         works fine; if not, set REPLACE_STRSIGNAL.
51022         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51024         REPLACE_STRSIGNAL.
51025         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51026         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51027         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51028
51029 2008-01-14  Bruno Haible  <bruno@clisp.org>
51030
51031         * modules/strsignal (Include): Change to <string.h>.
51032
51033 2008-01-14  Colin Watson  <cjwatson@debian.org>
51034
51035         * modules/argp (Notice): Add a notice recommending to change
51036         XGETTEXT_OPTIONS.
51037         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51038
51039 2008-01-13  Colin Watson  <cjwatson@debian.org>
51040
51041         * modules/strsignal-tests: New file.
51042         * tests/test-strsignal.c: New file.
51043
51044         * lib/strsignal.c: New file, from glibc with modifications.
51045         * lib/siglist.h: New file, from glibc with modifications.
51046         * lib/string.in.h (strsignal): New declaration.
51047         * m4/strsignal.m4: New file.
51048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51049         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51050         * modules/strsignal: New file.
51051         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51052         HAVE_DECL_STRSIGNAL.
51053
51054 2008-01-13  Bruno Haible  <bruno@clisp.org>
51055
51056         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51057         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51058         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51059         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51060
51061 2008-01-13  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51064         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51065         * lib/argp.h (__attribute__): Likewise.
51066         * lib/c-stack.c (__attribute__): Likewise.
51067         * lib/error.h (__attribute__): Likewise.
51068         * lib/fts.c (__attribute__): Likewise.
51069         * lib/openat.h (__attribute__): Likewise.
51070         * lib/stdio.in.h (__attribute__): Likewise.
51071         * lib/string.in.h (__attribute__): Likewise.
51072         * lib/utimens.c (__attribute__): Likewise.
51073         * lib/vasnprintf.h (__attribute__): Likewise.
51074         * lib/xalloc.h (__attribute__): Likewise.
51075         * lib/xprintf.h (__attribute__): Likewise.
51076         * lib/xstrtol.h (__attribute__): Likewise.
51077         * lib/xvasprintf.h (__attribute__): Likewise.
51078
51079 2008-01-12  Bruno Haible  <bruno@clisp.org>
51080
51081         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51082         * doc/glibc-headers/a.out.texi: New file.
51083         * doc/glibc-headers/aliases.texi: New file.
51084         * doc/glibc-headers/alloca.texi: New file.
51085         * doc/glibc-headers/ar.texi: New file.
51086         * doc/glibc-headers/argp.texi: New file.
51087         * doc/glibc-headers/argz.texi: New file.
51088         * doc/glibc-headers/byteswap.texi: New file.
51089         * doc/glibc-headers/crypt.texi: New file.
51090         * doc/glibc-headers/endian.texi: New file.
51091         * doc/glibc-headers/envz.texi: New file.
51092         * doc/glibc-headers/err.texi: New file.
51093         * doc/glibc-headers/error.texi: New file.
51094         * doc/glibc-headers/execinfo.texi: New file.
51095         * doc/glibc-headers/fpu_control.texi: New file.
51096         * doc/glibc-headers/fstab.texi: New file.
51097         * doc/glibc-headers/fts.texi: New file.
51098         * doc/glibc-headers/getopt.texi: New file.
51099         * doc/glibc-headers/ieee754.texi: New file.
51100         * doc/glibc-headers/ifaddrs.texi: New file.
51101         * doc/glibc-headers/libintl.texi: New file.
51102         * doc/glibc-headers/mcheck.texi: New file.
51103         * doc/glibc-headers/mntent.texi: New file.
51104         * doc/glibc-headers/obstack.texi: New file.
51105         * doc/glibc-headers/paths.texi: New file.
51106         * doc/glibc-headers/printf.texi: New file.
51107         * doc/glibc-headers/pty.texi: New file.
51108         * doc/glibc-headers/resolv.texi: New file.
51109         * doc/glibc-headers/shadow.texi: New file.
51110         * doc/glibc-headers/sysexits.texi: New file.
51111         * doc/glibc-headers/ttyent.texi: New file.
51112
51113 2008-01-12  Jim Meyering  <meyering@redhat.com>
51114
51115         announce-gen: emit Gnulib's git-based version string.
51116         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51117         New option --gnulib-version=V, where V is expected to be
51118         the output of running git describe in the gnulib directory.
51119         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51120         not useful, and plan to stop publishing an xdelta file with each
51121         coreutils release.
51122
51123         * build-aux/announce-gen: Also check for lzma-compressed files.
51124
51125 2008-01-11  Bruno Haible  <bruno@clisp.org>
51126
51127         * tests/test-memmem.c (main): Increase maximum allowed time.
51128         * tests/test-strstr.c (main): Likewise.
51129
51130 2008-01-11  Bruno Haible  <bruno@clisp.org>
51131
51132         * doc/functions/memmem.texi: Add more precisions about platforms.
51133         * doc/functions/strstr.texi: Likewise.
51134
51135 2008-01-10  Eric Blake  <ebb9@byu.net>
51136
51137         * m4/strstr.m4: Delete cruft from copy-n-paste.
51138         Reported by Bruno Haible.
51139
51140 2008-01-10  Bruno Haible  <bruno@clisp.org>
51141
51142         Make c-strstr rely on strstr.
51143         * lib/c-strstr.c: Don't include str-kmp.h.
51144         (c_strstr): Define in terms of strstr.
51145         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51146         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51147
51148 2008-01-10  Bruno Haible  <bruno@clisp.org>
51149
51150         * doc/gnulib.texi (String Functions in C Locale): New section.
51151         * doc/c-ctype.texi: New file.
51152         * doc/c-strcase.texi: New file.
51153         * doc/c-strcaseeq.texi: New file.
51154         * doc/c-strcasestr.texi: New file.
51155         * doc/c-strstr.texi: New file.
51156         * doc/c-strtod.texi: New file.
51157         * doc/c-strtold.texi: New file.
51158
51159 2008-01-10  Eric Blake  <ebb9@byu.net>
51160
51161         * lib/relocatable.h: Fix a comment.
51162
51163 2008-01-10  Eric Blake  <ebb9@byu.net>
51164
51165         Share two-way algorithm.
51166         * lib/str-two-way.h: New file, merged from...
51167         * lib/memmem.c: ...here...
51168         * lib/strstr.c: ...and here.
51169         * modules/memmem (Files): Use it.
51170         * modules/strstr (Files): Likewise.
51171
51172         Avoid quadratic strstr implementations.
51173         * lib/strstr.c: New file.
51174         * m4/strstr.m4: Likewise.
51175         * modules/strstr: Likewise.
51176         * modules/strstr-tests: Likewise.
51177         * tests/test-strstr.c: Likewise.
51178         * lib/string.in.h (rpl_strstr): Declare.
51179         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51181         * modules/string (Makefile.am): Likewise.
51182         * MODULES.html.sh (string handling): Mention new module.
51183         * doc/functions/strstr.texi (strstr): Document the bug.
51184
51185 2008-01-10  Bruno Haible  <bruno@clisp.org>
51186
51187         * lib/relocatable.h (relocate): State whether result is freshly
51188         allocated or not.
51189         * lib/relocatable.c (relocate): Return a freshly allocated string
51190         instead of a pointer to a privately held string.
51191         Reported by Sylvain Beucler <beuc@gnu.org>.
51192
51193 2008-01-10  Colin Watson  <cjwatson@debian.org>
51194
51195         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51196         s/S_ISNLK/S_ISLNK/.
51197
51198 2008-01-09  Bruno Haible  <bruno@clisp.org>
51199
51200         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51201         and other files.
51202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51203         if it's only a guess.
51204         * modules/memmem: Simplify by depending on memmem-simple.
51205
51206 2008-01-09  Bruno Haible  <bruno@clisp.org>
51207
51208         Work around OpenBSD 4.0 tdelete() bug.
51209         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51210         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51211         macros and don't redefine the enum values.
51212         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51213         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51214         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51215
51216 2008-01-09  Bruno Haible  <bruno@clisp.org>
51217
51218         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51219         (main): Don't perform the tests if setlocale did not install a UTF-8
51220         locale. Needed on OpenBSD 4.0.
51221         * modules/wcwidth-tests (Depends-on): Add localcharset.
51222
51223 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51224
51225         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51226         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51227         * NEWS: announce this.
51228         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51229
51230 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51231         and Eric Blake  <ebb9@byu.net>
51232
51233         Add memmem-simple module.
51234         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51235         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51236         * modules/memmem-simple: New file.
51237         * modules/memmem (Description): Tweak.
51238         * MODULES.html.sh (string handling): Mention new module.
51239         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51240         addressed by memmem-simple.
51241         * NEWS: Document the difference.
51242
51243 2008-01-09  Eric Blake  <ebb9@byu.net>
51244
51245         Give gcc some memmem optimization hints.
51246         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51247         (strcasestr): Declare as pure.
51248         * modules/memmem (Maintainer): Claim my implementation.
51249
51250 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51251
51252         Support AIX 6.1 and higher.
51253         * build-aux/config.libpath: Likewise.
51254         * build-aux/config.rpath: Likewise.
51255
51256 2008-01-08  Jim Meyering  <meyering@redhat.com>
51257             Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51260         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51261         Reported by Peter Fales in
51262         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51263
51264 2008-01-08  Bruno Haible  <bruno@clisp.org>
51265
51266         * modules/unictype/category-of (Depends-on): Add
51267         unictype/category-none.
51268         * modules/unictype/category-and-tests (Depends-on): Add
51269         unictype/category-{L,N,Lu,Nd}.
51270         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51271         * modules/unictype/category-or-tests (Depends-on): Add
51272         unictype/category-{L,N}.
51273         * modules/unictype/category-name-tests (Depends-on): Add
51274         unictype/category-{Z,Nl}.
51275         Reported by Simon Josefsson.
51276
51277 2008-01-08  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51280         convention better.
51281         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51282         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51283         Reported by Peter Miller <millerp@canb.auug.org.au>.
51284
51285 2008-01-08  Eric Blake  <ebb9@byu.net>
51286
51287         Rewrite memmem to guarantee linear complexity without malloc.
51288         * lib/memmem.c (memmem): Use Two-Way rather than
51289         Knuth-Morris-Pratt, to allow O(1) space usage.
51290         (critical_factorization, two_way_short_needle)
51291         (two_way_long_needle): New functions.
51292         (knuth_morris_pratt): Delete.
51293         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51294         Add stdint.
51295         * tests/test-memmem.c (main): Add tests for periodic needle and
51296         sublinear performance.
51297         * doc/functions/memmem.texi (memmem): Document other deficiencies
51298         in cygwin and older glibc.
51299
51300 2008-01-08  Bruno Haible  <bruno@clisp.org>
51301
51302         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51303         augmentation.
51304
51305 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51306
51307         Add a configure time option: --disable-acl.
51308         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51309         AC_ARG_ENABLE(acl).
51310
51311 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51312
51313         * tests/test-localename.c: Don't include obsolete "setenv.h".
51314
51315         * modules/localename-tests (Depends-on): Need unsetenv.
51316
51317 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51318
51319         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51320
51321 2008-01-06  Colin Watson  <cjwatson@debian.org>
51322
51323         * users.txt: Add man-db.
51324
51325 2008-01-07  Bruno Haible  <bruno@clisp.org>
51326
51327         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51328         previous section name.
51329
51330 2008-01-07  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/progname.c (set_program_name): Don't strip off a leading
51333         "lt-" prefix outside a .libs directory.
51334         Suggested by Paul Eggert.
51335
51336 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51337             Bruno Haible  <bruno@clisp.org>
51338
51339         Improve memory cleanup in 'relocatable' module.
51340         * lib/relocatable.h (compute_curr_prefix): Change return type to
51341         'char *'.
51342         * lib/relocatable.c (compute_curr_prefix): Change return type to
51343         'char *'. Free curr_installdir after use.
51344         (relocate): Free curr_prefix_better after use.
51345         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51346
51347 2008-01-01  Bruno Haible  <bruno@clisp.org>
51348
51349         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51350         failure on older glibc systems.
51351         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51352
51353 2008-01-05  Eric Blake  <ebb9@byu.net>
51354
51355         Avoid quadratic system memmem.
51356         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51357         Reported by Ralf Wildenhues.
51358
51359         Fix memmem test for mingw.
51360         * modules/memmem-tests (configure.ac): Check for alarm.
51361         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51362         it.
51363         * doc/functions/memmem.texi: New file.
51364         * doc/gnulib.texi (Function Substitutes): Add memmem.
51365         Reported by Bruno Haible.
51366
51367 2008-01-04  Bruno Haible  <bruno@clisp.org>
51368
51369         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51370         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51371         gl_HEADER_STRING_H_DEFAULTS.
51372
51373 2008-01-04  Eric Blake  <ebb9@byu.net>
51374
51375         Shorten duration of memmem test.
51376         * tests/test-memmem.c (main): Use alarm to declare failure if test
51377         is taking too long.
51378         Reported by Ralf Wildenhues.
51379
51380 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51381
51382         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51383         string, needed by strerror.
51384
51385 2008-01-03  Colin Watson  <cjwatson@debian.org>
51386             Bruno Haible  <bruno@clisp.org>
51387
51388         * doc/gnulib-tool.texi (Localization): New section.
51389
51390 2008-01-02  Bruno Haible  <bruno@clisp.org>
51391
51392         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51393         variables to 'unsigned char *' type.
51394         Reported by Paul Eggert.
51395
51396 2008-01-02  Jim Meyering  <jim@meyering.net>
51397
51398         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51399
51400 2007-12-31  Jim Meyering  <jim@meyering.net>
51401
51402         Avoid use of private FTS type name.
51403         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51404
51405 2007-12-30  Karl Berry  <karl@gnu.org>
51406
51407         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51408         work around defect in Texinfo and/or the standalone Info browser.
51409
51410 2007-12-30  Bruno Haible  <bruno@clisp.org>
51411
51412         Unify 5 copies of the KMP code.
51413         * lib/str-kmp.h: New file.
51414         * lib/c-strcasestr.c: Include str-kmp.h.
51415         (knuth_morris_pratt): Remove function.
51416         (c_strcasestr): Update.
51417         * lib/c-strstr.c: Include str-kmp.h.
51418         (knuth_morris_pratt): Remove function.
51419         (c_strcasestr): Update.
51420         * lib/mbscasestr.c: Include str-kmp.h.
51421         (knuth_morris_pratt_unibyte): Remove function.
51422         * lib/mbsstr.c: Include str-kmp.h.
51423         (knuth_morris_pratt_unibyte): Remove function.
51424         * lib/strcasestr.c: Include str-kmp.h.
51425         (knuth_morris_pratt): Remove function.
51426         (strcasestr): Update.
51427         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51428         * modules/c-strstr (Files): Likewise.
51429         * modules/mbscasestr (Files): Likewise.
51430         * modules/mbsstr (Files): Likewise.
51431         * modules/strcasestr (Files): Likewise.
51432         Suggested by Paul Eggert.
51433
51434 2007-12-30  Bruno Haible  <bruno@clisp.org>
51435
51436         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51437         defined.
51438
51439 2007-12-30  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/xmalloca.h: Include xalloc.h.
51442         (xnmalloca): New macro.
51443
51444 2007-12-30  Bruno Haible  <bruno@clisp.org>
51445
51446         * lib/malloca.h (nmalloca): New macro.
51447         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51448         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51449         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51450         knuth_morris_pratt_multibyte): Likewise.
51451         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51452         knuth_morris_pratt_multibyte): Likewise.
51453         * lib/memmem.c (knuth_morris_pratt): Likewise.
51454         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51455
51456 2007-12-25  Bruno Haible  <bruno@clisp.org>
51457
51458         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51459         * lib/glob.c: Don't include openat.h.
51460         (link_exists2_p): Add back the code that deals with the
51461         !GLOB_ALTDIRFUNC case.
51462         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51463         let it do the filename concatenation.
51464         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51465         * modules/glob (Depends-on): Remove openat.
51466
51467 2007-12-31  Bruno Haible  <bruno@clisp.org>
51468
51469         * modules/dirfd (License): Change to LGPLv2+.
51470         Approved by Jim Meyering.
51471
51472 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51473
51474         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51475         when multiplying M by sizeof (size_t).
51476
51477 2007-12-10  Martin Lambers  <marlam@marlam.de>
51478
51479         Override getpagesize on mingw.
51480         * lib/getpagesize.c: New file.
51481         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51482         * modules/getpagesize (Files): Add lib/getpagesize.c.
51483         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51485         REPLACE_GETPAGESIZE.
51486         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51487
51488 2007-12-25  Bruno Haible  <bruno@clisp.org>
51489
51490         * modules/localcharset (Notice): New field.
51491         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51492         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51493
51494 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51495             Bruno Haible  <bruno@clisp.org>
51496
51497         Avoid using the syntax symbol() in formatted documentation.
51498         * MODULES.html.sh (func_module): When replacing symbol() with a
51499         hyperlink, remove the parentheses. Show an error if some remain.
51500         Recognize and render the '...' syntax.
51501         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51502         Rework. Add paragraph about GCC's inlining.
51503         * doc/alloca.texi: Likewise.
51504         * doc/error.texi: Remove parentheses from symbol reference.
51505         * doc/gnulib-intro.texi: Likewise.
51506         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51507         * modules/fnmatch (Description): Reword to say "the ... function".
51508         * modules/full-read (Description): Likewise.
51509         * modules/full-write (Description): Likewise.
51510         * modules/safe-read (Description): Likewise.
51511         * modules/safe-write (Description): Likewise.
51512         * modules/strchrnul (Description): Likewise.
51513         * modules/trim (Description): Likewise.
51514         * modules/error (Description): Remove parentheses from symbol
51515         references.
51516         * modules/verror (Description): Likewise.
51517         Reported by Karl Berry.
51518
51519 2007-12-25  Bruno Haible  <bruno@clisp.org>
51520
51521         Fixup after 2007-10-16 commit.
51522         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51523
51524 2007-12-24  Bruno Haible  <bruno@clisp.org>
51525
51526         Make --enable-relocatable work with DESTDIR.
51527         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51528         to compute installdir from destprog.
51529         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51530         also set the RELOC_DESTDIR variable.
51531         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51532
51533 2007-12-24  Bruno Haible  <bruno@clisp.org>
51534
51535         Fix link error due to xalloc_die().
51536         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51537         of xreadlink.
51538         * lib/relocwrapper.c: Update comments.
51539         * build-aux/install-reloc: Remove xreadlink.c from file list.
51540         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51541         xreadlink.c.
51542         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51543
51544 2007-12-24  Bruno Haible  <bruno@clisp.org>
51545
51546         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51547         * lib/setenv.h: Remove file.
51548         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51549         lib/setenv.h.
51550         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51551         (Depends-on): Add stdlib.
51552         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51553         gl_FUNC_UNSETENV.
51554         (Include): Replace setenv.h with <stdlib.h>.
51555         * modules/unsetenv: New file.
51556         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51557         * lib/unsetenv.c: Include <stdlib.h> first.
51558         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51559         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51560         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51561         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51562         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51563         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51565         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51566         * doc/functions/unsetenv.texi: Update.
51567         * modules/xsetenv (Depends-on): Add unsetenv.
51568         * modules/getdate (Depends-on): Likewise.
51569         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51570         * lib/xsetenv.c: Don't include setenv.h.
51571         * lib/getdate.y: Likewise.
51572         * lib/relocwrapper.c: Likewise.
51573         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51574         (Depends-on): Add stdlib.
51575         * NEWS: Mention the changes.
51576         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51577
51578 2007-12-23  Bruno Haible  <bruno@clisp.org>
51579
51580         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51581         indentation.
51582
51583 2007-12-23  Bruno Haible  <bruno@clisp.org>
51584
51585         * lib/c-strcasestr.c: Add more comments.
51586         * lib/c-strstr.c: Likewise.
51587         * lib/mbscasestr.c: Likewise.
51588         * lib/mbsstr.c: Likewise.
51589         * lib/strcasestr.c: Likewise.
51590         * lib/memmem.c: Likewise.
51591
51592 2007-12-23  Bruno Haible  <bruno@clisp.org>
51593
51594         * tests/test-memmem.c: Include <string.h> first.
51595
51596 2007-12-22  Bruno Haible  <bruno@clisp.org>
51597
51598         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51599         the contents of $testsbase.
51600         Reported by Ralf Wildenhues.
51601
51602 2007-12-22  Bruno Haible  <bruno@clisp.org>
51603
51604         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51605         two variables local_ldadd_before, local_ldadd_last.
51606
51607 2007-12-20  Eric Blake  <ebb9@byu.net>
51608
51609         Work around circular library issue when cross-compiling.
51610         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51611         that progname.o does not need to pull in rpl_memcmp.
51612
51613 2007-12-19  Eric Blake  <ebb9@byu.net>
51614
51615         Fix memmem to avoid O(n^2) worst-case complexity.
51616         * lib/memmem.c (knuth_morris_pratt): New function.
51617         (memmem): Use it if first few naive iterations fail.
51618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51619         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51620         * modules/memchr (License): Likewise.
51621         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51622         malloca.
51623         * tests/test-memmem.c: Rewrite, borrowing ideas from
51624         test-mbsstr1.c; the old version wouldn't even compile!
51625         * modules/memmem-tests: New file.
51626         * lib/string.in.h (rpl_memmem): Add declaration.
51627         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51629         REPLACE_MEMMEM.
51630
51631 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51632
51633         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51634         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51635         before any system include files, and undef after them all.  This
51636         should fix a problem on VMS reported by John E. Malmberg in
51637         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51638
51639 2007-12-17  Eric Blake  <ebb9@byu.net>
51640
51641         Revert addition of verify, for BSD/OS.
51642         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51643         can't handle large files, for the sake of obsolete platforms.
51644         * modules/fseeko (Depends-on): Remove verify.
51645         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51646         * doc/functions/ftello.texi (ftello): Likewise.
51647         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51648         Reported by Larry Jones.
51649
51650 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51651
51652         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51653         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51654
51655 2007-12-17  Jim Meyering  <meyering@redhat.com>
51656
51657         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51658         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51659         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51660         * modules/getcwd (Depends-on): Add openat.
51661         Reported by Petr Salinger.
51662
51663 2007-12-17  Bruno Haible  <bruno@clisp.org>
51664
51665         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51666         avoid a segmentation fault of the configure test on x86_64 systems.
51667
51668 2007-12-15  Jim Meyering  <meyering@redhat.com>
51669
51670         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51671
51672 2007-12-13  Eric Blake  <ebb9@byu.net>
51673
51674         Another fseek test.
51675         * tests/test-fseek.c (main): Also test ungetc handling.
51676         * tests/test-fseeko.c (main): Likewise.
51677         * modules/fseeko (Depends-on): Add verify.
51678         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51679         large.
51680         Reported by Larry Jones.
51681
51682         Fix fseeko on mingw.
51683         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51684         seek.
51685
51686         Beef up fseek tests.
51687         * tests/test-fseek.c (main): Also test eof handling.
51688         * tests/test-fseeko.c (main): Likewise.
51689         Reported by Larry Jones.
51690
51691 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51692
51693         Fix fseeko on BSD-based platforms.
51694         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51695         successful seek.
51696
51697 2007-12-12  Eric Blake  <ebb9@byu.net>
51698
51699         Allow circular dependency of separate libtests.a
51700         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51701         when use_libtests.
51702
51703 2007-12-11  Eric Blake  <ebb9@byu.net>
51704
51705         Fix bug with -0.0L in previous patch.
51706         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51707         * tests/test-isnan.c (main): Also test on zeroes.
51708         * tests/test-isnanf.c (main): Likewise.
51709         * tests/test-isnanl.h (main): Likewise.
51710
51711         Detect pseudo-denormals on x86 even when cross-compiling.
51712         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51713         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51714         invalid bit patterns that happen to satisfy ==.
51715
51716         Avoid link failures with separate libtests.a.
51717         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51718         last, to satisfy circular dependencies.
51719
51720 2007-12-11  Eric Blake  <ebb9@byu.net>
51721         and Bruno Haible  <bruno@clisp.org>
51722
51723         Fix OpenBSD 4.0 <float.h> handling of long double.
51724         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51725         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51726         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51727
51728 2007-12-11  Jim Meyering  <meyering@redhat.com>
51729
51730         * users.txt: Add libvirt.
51731
51732         Support versions of autoconf prior to 2.59c.
51733         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51734         if it is not already defined.
51735
51736 2007-12-09  Bruno Haible  <bruno@clisp.org>
51737
51738         Let 'gnulib-tool --import' collect sources needed for the tests in
51739         tests/ rather than in lib/.
51740         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51741         argument. If true, add rules to generate libtests.a, and put libtests.a
51742         into $(LDADD). Consider source files in subdirectories and set
51743         uses_subdirs.
51744         (func_emit_initmacro_start, func_emit_initmacro_end,
51745         func_emit_initmacro_done): Pass all arguments explicitly.
51746         (func_import): Determine two module lists main_modules,
51747         testsrelated_modules. Determine use_libtests. Determine two variables
51748         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51749         instead of just sed_transform_lib_file. Determine two variables
51750         main_files and testsrelated_files. Compute 'files' as the union of
51751         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51752         func_add_or_update. In the generated gnulib-comp.m4, collect the
51753         object files for tests/ in different variables than those for lib/.
51754         Substitute LIBTESTS_LIBDEPS.
51755         (func_create_testdir): Combine the uses_subdirs results from
51756         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51757
51758 2007-12-09  Bruno Haible  <bruno@clisp.org>
51759
51760         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51761         the build-aux directory.
51762
51763 2007-12-09  Bruno Haible  <bruno@clisp.org>
51764
51765         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51766         introduced on 2006-09-09.
51767
51768 2007-12-07  Jim Meyering  <meyering@redhat.com>
51769
51770         Let these macros work also with autoconf-2.59.
51771         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51772         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51773         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51774
51775 2007-12-06  Jim Meyering  <meyering@redhat.com>
51776
51777         Avoid a configure-time syntax error in gl_FUNC_ACL.
51778         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51779         function in each branch, before testing the cache variable.
51780
51781 2007-12-04  Eric Blake  <ebb9@byu.net>
51782
51783         Make scripts executable.
51784         * build-aux/config.guess: Add execute permissions.
51785         * build-aux/config.sub: Likewise.
51786         * build-aux/gendocs.sh: Likewise.
51787
51788         Fix frexp on mingw.
51789         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51790         cross-compiling.
51791         * doc/functions/frexp.texi (frexp): Document the bug.
51792
51793         Make cygwin fseeko check more reliable.
51794         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51795         version numbers, rather than unrelated feature check.
51796         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51797         * doc/functions/ftello.texi (ftello): Likewise.
51798         Reported by Bruno Haible.
51799
51800         * m4/strerror.m4: Bump version number.
51801
51802 2007-12-03  Bruno Haible  <bruno@clisp.org>
51803
51804         * doc/functions/mprotect.texi: Mention the mingw problem.
51805
51806 2007-12-03  Eric Blake  <ebb9@byu.net>
51807
51808         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51809         REPLACE_STRERROR is initialized before this macro.
51810
51811 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51814         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51815         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51816         put -lsec in even for programs other than 'ls'.  This fixes a problem
51817         for gettext reported by Bruno Haible in
51818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51819         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51820         Add support for Solaris 10.  This isn't efficient, but should get the
51821         job done for now.
51822
51823 2007-12-03  James Youngman  <jay@gnu.org>
51824
51825         * doc/regexprops-generic.texi: change "an close-group" to "a
51826         close-group" and "illegal" to "not allowed".
51827
51828 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51829
51830         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51831         pr_byname.h. Needed for the rare case when the maintainer has done
51832         "make maintainer-clean" in the source directory and then attempts a
51833         build outside the source directory.
51834         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51835         scripts_byname.h.
51836
51837 2007-12-02  Martin Lambers <marlam@marlam.de>
51838             Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/getpagesize.h: Remove file.
51841         * lib/unistd.in.h: Include declaration of getpagesize here.
51842         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51843         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51844         HAVE_SYS_PARAM_H.
51845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51846         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51847         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51848         (Depends-on): Add unistd.
51849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51850         (Include): Use <unistd.h> instead of getpagesize.h.
51851         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51852         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51853         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51854         gl_GETPAGESIZE invocation, already handled by module dependency.
51855         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51856
51857 2007-12-02  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/strings-tests: New file.
51860         * tests/test-strings.c: New file.
51861
51862         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51863         * lib/strings.in.h: New file.
51864         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51865         * m4/strings_h.m4: New file.
51866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51867         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51868         * modules/strings: New file.
51869         * modules/string (Makefile.am): Update.
51870         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51871         Reported by Karl Berry.
51872
51873 2007-12-01  Eric Blake  <ebb9@byu.net>
51874
51875         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
51876         accomodate fix in cygwin 1.5.25.
51877
51878 2007-12-01  Jim Meyering  <meyering@redhat.com>
51879
51880         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
51881         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
51882         that would inhibit utf8-optimization of a regexp containing line-
51883         or buffer-anchors, e.g., `^', `$'.
51884
51885 2007-11-30  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
51888         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
51889         glthread_recursive_lock_init.
51890         * lib/lock.c (glthread_recursive_lock_init)
51891         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
51892         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51893
51894 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
51895
51896         New function qset_acl, like set_acl but with syscall semantics.
51897         * lib/acl.h (qset_acl): New decl.
51898         * lib/acl.c (qset_acl): New function.
51899         (set_acl): Use new function.  Use more-consistent diagnostics.
51900
51901 2007-11-28  Jim Meyering  <meyering@redhat.com>
51902
51903         * modules/physmem (License): Change from GPL to LGPLv2+.
51904
51905 2007-11-26  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/vasnprintf.c (decode_long_double): Don't abort if the
51908         'long double' type has excess precision.
51909         Reported by Jim Meyering in
51910         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
51911
51912 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51913
51914         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51915         Sync from <http://gnu.org/licenses>.
51916         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51917         with license text from same location.
51918         * doc/maintain.texi, doc/standards.texi:  Sync from
51919         <http://savannah.gnu.org/projects/gnustandards>.
51920
51921 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51922         and Jim Meyering  <meyering@redhat.com>
51923
51924         Adjust getdate' grammar to accept a slightly more regular language.
51925         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51926         Before, the former was rejected.
51927         * lib/getdate.y (digits_to_date_time): New function, factored
51928         out of ...
51929         (number): ...here.  Just call digits_to_date_time.
51930         (hybrid): New non-terminal to handle an <unsigned number,
51931         signed relative offset> sequence consistently.
51932
51933 2007-11-18  Jim Meyering  <meyering@redhat.com>
51934
51935         Pull my changes from coreutils:
51936         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51937         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51938         use of $gnulib_tool_option_extras, so that it's separated from the
51939         preceding argument.
51940
51941         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51942         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51943         parent destination directories before copying a file into place.
51944
51945 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51946
51947         bootstrap: work also with 4-argument variant of AC_INIT
51948         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51949
51950 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         Port test-getaddrinfo to Solaris.
51953         Problem reported by Bruno Haible in
51954         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51955         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51956         explanation of setting 'hints'.
51957         Don't reject an implementation merely because it returns EAI_SERVICE.
51958         (EAI_SERVICE): Define to 0 if not defined.
51959
51960 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51961
51962         The license of gnu-make and posix-shell is now "GPLed build tool".
51963         * modules/gnu-make (License): Likewise.
51964         * modules/posix-shell (License): Likewise.
51965
51966         New module posix-shell, for determining a POSIX shell
51967         or perhaps something that is close enough to a POSIX shell.
51968         * m4/posix-shell.m4: New file.
51969         * modules/posix-shell: New file.
51970
51971         * MODULES.html.sh: Mention new module.
51972
51973         New module gnu-make, for determining whether we're using GNU Make.
51974         * m4/gnu-make.m4: New file.
51975         * modules/gnu-make: New file.
51976         * MODULES.html.sh: Mention new module.
51977
51978 2007-11-14  Jim Meyering  <meyering@redhat.com>
51979
51980         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51981         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51982         use this macro to create a function _definition_.
51983         Remove useless "#undef ARGMATCH_DIE".
51984
51985 2007-11-14  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/config.charset: Update for OpenBSD 4.1.
51988         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51989
51990 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51991
51992         Document 64-bit #if problems in stdint.texi.
51993         * doc/headers/stdint.texi (stdint.h): Mention problems with
51994         64-bit-#if, and how to work around them.
51995
51996         Don't insist on 'long long int' support in the preprocessor.  It
51997         breaks too many things.  For example, PRIdMAX still uses a 'long
51998         long int' format with the latest Sun compiler, even though
51999         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52000         preprocessor problem.  This causes the latest coreutils to dump
52001         core on Solaris 10 sparc with the Sun C compiler.
52002         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52003         the troublesome expressions at configure-time, not at #if-time.
52004         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52005         preprocessor.
52006         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52007         compile-time C checks, done at 'configure'-time.
52008         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52009         * modules/inttypes (Makefile): Substitute the new symbols that
52010         gl_INTTYPES_H now generates.
52011         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52012
52013 2007-11-12  Bruno Haible  <bruno@clisp.org>
52014
52015         Tests for Unicode character classification functions.
52016
52017         * modules/unictype/bidicategory-byname-tests: New file.
52018         * modules/unictype/bidicategory-name-tests: New file.
52019         * modules/unictype/bidicategory-of-tests: New file.
52020         * modules/unictype/bidicategory-test-tests: New file.
52021         * modules/unictype/block-list-tests: New file.
52022         * modules/unictype/block-of-tests: New file.
52023         * modules/unictype/block-test-tests: New file.
52024         * modules/unictype/category-C-tests: New file.
52025         * modules/unictype/category-Cc-tests: New file.
52026         * modules/unictype/category-Cf-tests: New file.
52027         * modules/unictype/category-Cn-tests: New file.
52028         * modules/unictype/category-Co-tests: New file.
52029         * modules/unictype/category-Cs-tests: New file.
52030         * modules/unictype/category-L-tests: New file.
52031         * modules/unictype/category-Ll-tests: New file.
52032         * modules/unictype/category-Lm-tests: New file.
52033         * modules/unictype/category-Lo-tests: New file.
52034         * modules/unictype/category-Lt-tests: New file.
52035         * modules/unictype/category-Lu-tests: New file.
52036         * modules/unictype/category-M-tests: New file.
52037         * modules/unictype/category-Mc-tests: New file.
52038         * modules/unictype/category-Me-tests: New file.
52039         * modules/unictype/category-Mn-tests: New file.
52040         * modules/unictype/category-N-tests: New file.
52041         * modules/unictype/category-Nd-tests: New file.
52042         * modules/unictype/category-Nl-tests: New file.
52043         * modules/unictype/category-No-tests: New file.
52044         * modules/unictype/category-P-tests: New file.
52045         * modules/unictype/category-Pc-tests: New file.
52046         * modules/unictype/category-Pd-tests: New file.
52047         * modules/unictype/category-Pe-tests: New file.
52048         * modules/unictype/category-Pf-tests: New file.
52049         * modules/unictype/category-Pi-tests: New file.
52050         * modules/unictype/category-Po-tests: New file.
52051         * modules/unictype/category-Ps-tests: New file.
52052         * modules/unictype/category-S-tests: New file.
52053         * modules/unictype/category-Sc-tests: New file.
52054         * modules/unictype/category-Sk-tests: New file.
52055         * modules/unictype/category-Sm-tests: New file.
52056         * modules/unictype/category-So-tests: New file.
52057         * modules/unictype/category-Z-tests: New file.
52058         * modules/unictype/category-Zl-tests: New file.
52059         * modules/unictype/category-Zp-tests: New file.
52060         * modules/unictype/category-Zs-tests: New file.
52061         * modules/unictype/category-and-not-tests: New file.
52062         * modules/unictype/category-and-tests: New file.
52063         * modules/unictype/category-byname-tests: New file.
52064         * modules/unictype/category-name-tests: New file.
52065         * modules/unictype/category-none-tests: New file.
52066         * modules/unictype/category-of-tests: New file.
52067         * modules/unictype/category-or-tests: New file.
52068         * modules/unictype/category-test-withtable-tests: New file.
52069         * modules/unictype/combining-class-tests: New file.
52070         * modules/unictype/ctype-alnum-tests: New file.
52071         * modules/unictype/ctype-alpha-tests: New file.
52072         * modules/unictype/ctype-blank-tests: New file.
52073         * modules/unictype/ctype-cntrl-tests: New file.
52074         * modules/unictype/ctype-digit-tests: New file.
52075         * modules/unictype/ctype-graph-tests: New file.
52076         * modules/unictype/ctype-lower-tests: New file.
52077         * modules/unictype/ctype-print-tests: New file.
52078         * modules/unictype/ctype-punct-tests: New file.
52079         * modules/unictype/ctype-space-tests: New file.
52080         * modules/unictype/ctype-upper-tests: New file.
52081         * modules/unictype/ctype-xdigit-tests: New file.
52082         * modules/unictype/decimal-digit-tests: New file.
52083         * modules/unictype/digit-tests: New file.
52084         * modules/unictype/mirror-tests: New file.
52085         * modules/unictype/numeric-tests: New file.
52086         * modules/unictype/property-alphabetic-tests: New file.
52087         * modules/unictype/property-ascii-hex-digit-tests: New file.
52088         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52089         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52090         * modules/unictype/property-bidi-block-separator-tests: New file.
52091         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52092         * modules/unictype/property-bidi-common-separator-tests: New file.
52093         * modules/unictype/property-bidi-control-tests: New file.
52094         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52095         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52096         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52097         * modules/unictype/property-bidi-european-digit-tests: New file.
52098         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52099         * modules/unictype/property-bidi-left-to-right-tests: New file.
52100         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52101         * modules/unictype/property-bidi-other-neutral-tests: New file.
52102         * modules/unictype/property-bidi-pdf-tests: New file.
52103         * modules/unictype/property-bidi-segment-separator-tests: New file.
52104         * modules/unictype/property-bidi-whitespace-tests: New file.
52105         * modules/unictype/property-byname-tests: New file.
52106         * modules/unictype/property-combining-tests: New file.
52107         * modules/unictype/property-composite-tests: New file.
52108         * modules/unictype/property-currency-symbol-tests: New file.
52109         * modules/unictype/property-dash-tests: New file.
52110         * modules/unictype/property-decimal-digit-tests: New file.
52111         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52112         * modules/unictype/property-deprecated-tests: New file.
52113         * modules/unictype/property-diacritic-tests: New file.
52114         * modules/unictype/property-extender-tests: New file.
52115         * modules/unictype/property-format-control-tests: New file.
52116         * modules/unictype/property-grapheme-base-tests: New file.
52117         * modules/unictype/property-grapheme-extend-tests: New file.
52118         * modules/unictype/property-grapheme-link-tests: New file.
52119         * modules/unictype/property-hex-digit-tests: New file.
52120         * modules/unictype/property-hyphen-tests: New file.
52121         * modules/unictype/property-id-continue-tests: New file.
52122         * modules/unictype/property-id-start-tests: New file.
52123         * modules/unictype/property-ideographic-tests: New file.
52124         * modules/unictype/property-ids-binary-operator-tests: New file.
52125         * modules/unictype/property-ids-trinary-operator-tests: New file.
52126         * modules/unictype/property-ignorable-control-tests: New file.
52127         * modules/unictype/property-iso-control-tests: New file.
52128         * modules/unictype/property-join-control-tests: New file.
52129         * modules/unictype/property-left-of-pair-tests: New file.
52130         * modules/unictype/property-line-separator-tests: New file.
52131         * modules/unictype/property-logical-order-exception-tests: New file.
52132         * modules/unictype/property-lowercase-tests: New file.
52133         * modules/unictype/property-math-tests: New file.
52134         * modules/unictype/property-non-break-tests: New file.
52135         * modules/unictype/property-not-a-character-tests: New file.
52136         * modules/unictype/property-numeric-tests: New file.
52137         * modules/unictype/property-other-alphabetic-tests: New file.
52138         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52139         * modules/unictype/property-other-grapheme-extend-tests: New file.
52140         * modules/unictype/property-other-id-continue-tests: New file.
52141         * modules/unictype/property-other-id-start-tests: New file.
52142         * modules/unictype/property-other-lowercase-tests: New file.
52143         * modules/unictype/property-other-math-tests: New file.
52144         * modules/unictype/property-other-uppercase-tests: New file.
52145         * modules/unictype/property-paired-punctuation-tests: New file.
52146         * modules/unictype/property-paragraph-separator-tests: New file.
52147         * modules/unictype/property-pattern-syntax-tests: New file.
52148         * modules/unictype/property-pattern-white-space-tests: New file.
52149         * modules/unictype/property-private-use-tests: New file.
52150         * modules/unictype/property-punctuation-tests: New file.
52151         * modules/unictype/property-quotation-mark-tests: New file.
52152         * modules/unictype/property-radical-tests: New file.
52153         * modules/unictype/property-sentence-terminal-tests: New file.
52154         * modules/unictype/property-soft-dotted-tests: New file.
52155         * modules/unictype/property-space-tests: New file.
52156         * modules/unictype/property-terminal-punctuation-tests: New file.
52157         * modules/unictype/property-test-tests: New file.
52158         * modules/unictype/property-titlecase-tests: New file.
52159         * modules/unictype/property-unassigned-code-value-tests: New file.
52160         * modules/unictype/property-unified-ideograph-tests: New file.
52161         * modules/unictype/property-uppercase-tests: New file.
52162         * modules/unictype/property-variation-selector-tests: New file.
52163         * modules/unictype/property-white-space-tests: New file.
52164         * modules/unictype/property-xid-continue-tests: New file.
52165         * modules/unictype/property-xid-start-tests: New file.
52166         * modules/unictype/property-zero-width-tests: New file.
52167         * modules/unictype/scripts-tests: New file.
52168         * modules/unictype/syntax-c-ident-tests: New file.
52169         * modules/unictype/syntax-c-whitespace-tests: New file.
52170         * modules/unictype/syntax-java-ident-tests: New file.
52171         * modules/unictype/syntax-java-whitespace-tests: New file.
52172         * tests/unictype/test-bidi_byname.c: New file.
52173         * tests/unictype/test-bidi_name.c: New file.
52174         * tests/unictype/test-bidi_of.c: New file.
52175         * tests/unictype/test-bidi_test.c: New file.
52176         * tests/unictype/test-block_list.c: New file.
52177         * tests/unictype/test-block_of.c: New file.
52178         * tests/unictype/test-block_test.c: New file.
52179         * tests/unictype/test-categ_and.c: New file.
52180         * tests/unictype/test-categ_and_not.c: New file.
52181         * tests/unictype/test-categ_byname.c: New file.
52182         * tests/unictype/test-categ_name.c: New file.
52183         * tests/unictype/test-categ_none.c: New file.
52184         * tests/unictype/test-categ_of.c: New file.
52185         * tests/unictype/test-categ_or.c: New file.
52186         * tests/unictype/test-categ_test_withtable.c: New file.
52187         * tests/unictype/test-combining.c: New file.
52188         * tests/unictype/test-decdigit.c: New file.
52189         * tests/unictype/test-digit.c: New file.
52190         * tests/unictype/test-mirror.c: New file.
52191         * tests/unictype/test-numeric.c: New file.
52192         * tests/unictype/test-pr_byname.c: New file.
52193         * tests/unictype/test-pr_test.c: New file.
52194         * tests/unictype/test-predicate-part1.h: New file.
52195         * tests/unictype/test-predicate-part2.h: New file.
52196         * tests/unictype/test-scripts.c: New file.
52197         * tests/unictype/test-sy_c_ident.c: New file.
52198         * tests/unictype/test-sy_java_ident.c: New file.
52199
52200         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52201         for Unicode 5.0.0.
52202         * tests/unictype/test-categ_Cc.c: Likewise.
52203         * tests/unictype/test-categ_Cf.c: Likewise.
52204         * tests/unictype/test-categ_Cn.c: Likewise.
52205         * tests/unictype/test-categ_Co.c: Likewise.
52206         * tests/unictype/test-categ_Cs.c: Likewise.
52207         * tests/unictype/test-categ_L.c: Likewise.
52208         * tests/unictype/test-categ_Ll.c: Likewise.
52209         * tests/unictype/test-categ_Lm.c: Likewise.
52210         * tests/unictype/test-categ_Lo.c: Likewise.
52211         * tests/unictype/test-categ_Lt.c: Likewise.
52212         * tests/unictype/test-categ_Lu.c: Likewise.
52213         * tests/unictype/test-categ_M.c: Likewise.
52214         * tests/unictype/test-categ_Mc.c: Likewise.
52215         * tests/unictype/test-categ_Me.c: Likewise.
52216         * tests/unictype/test-categ_Mn.c: Likewise.
52217         * tests/unictype/test-categ_N.c: Likewise.
52218         * tests/unictype/test-categ_Nd.c: Likewise.
52219         * tests/unictype/test-categ_Nl.c: Likewise.
52220         * tests/unictype/test-categ_No.c: Likewise.
52221         * tests/unictype/test-categ_P.c: Likewise.
52222         * tests/unictype/test-categ_Pc.c: Likewise.
52223         * tests/unictype/test-categ_Pd.c: Likewise.
52224         * tests/unictype/test-categ_Pe.c: Likewise.
52225         * tests/unictype/test-categ_Pf.c: Likewise.
52226         * tests/unictype/test-categ_Pi.c: Likewise.
52227         * tests/unictype/test-categ_Po.c: Likewise.
52228         * tests/unictype/test-categ_Ps.c: Likewise.
52229         * tests/unictype/test-categ_S.c: Likewise.
52230         * tests/unictype/test-categ_Sc.c: Likewise.
52231         * tests/unictype/test-categ_Sk.c: Likewise.
52232         * tests/unictype/test-categ_Sm.c: Likewise.
52233         * tests/unictype/test-categ_So.c: Likewise.
52234         * tests/unictype/test-categ_Z.c: Likewise.
52235         * tests/unictype/test-categ_Zl.c: Likewise.
52236         * tests/unictype/test-categ_Zp.c: Likewise.
52237         * tests/unictype/test-categ_Zs.c: Likewise.
52238         * tests/unictype/test-ctype_alnum.c: Likewise.
52239         * tests/unictype/test-ctype_alpha.c: Likewise.
52240         * tests/unictype/test-ctype_blank.c: Likewise.
52241         * tests/unictype/test-ctype_cntrl.c: Likewise.
52242         * tests/unictype/test-ctype_digit.c: Likewise.
52243         * tests/unictype/test-ctype_graph.c: Likewise.
52244         * tests/unictype/test-ctype_lower.c: Likewise.
52245         * tests/unictype/test-ctype_print.c: Likewise.
52246         * tests/unictype/test-ctype_punct.c: Likewise.
52247         * tests/unictype/test-ctype_space.c: Likewise.
52248         * tests/unictype/test-ctype_upper.c: Likewise.
52249         * tests/unictype/test-ctype_xdigit.c: Likewise.
52250         * tests/unictype/test-decdigit.h: Likewise.
52251         * tests/unictype/test-digit.h: Likewise.
52252         * tests/unictype/test-numeric.h: Likewise.
52253         * tests/unictype/test-pr_alphabetic.c: Likewise.
52254         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52255         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52256         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52257         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52258         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52259         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52260         * tests/unictype/test-pr_bidi_control.c: Likewise.
52261         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52262         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52263         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52264         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52265         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52266         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52267         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52268         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52269         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52270         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52271         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52272         * tests/unictype/test-pr_combining.c: Likewise.
52273         * tests/unictype/test-pr_composite.c: Likewise.
52274         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52275         * tests/unictype/test-pr_dash.c: Likewise.
52276         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52277         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52278         * tests/unictype/test-pr_deprecated.c: Likewise.
52279         * tests/unictype/test-pr_diacritic.c: Likewise.
52280         * tests/unictype/test-pr_extender.c: Likewise.
52281         * tests/unictype/test-pr_format_control.c: Likewise.
52282         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52283         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52284         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52285         * tests/unictype/test-pr_hex_digit.c: Likewise.
52286         * tests/unictype/test-pr_hyphen.c: Likewise.
52287         * tests/unictype/test-pr_id_continue.c: Likewise.
52288         * tests/unictype/test-pr_id_start.c: Likewise.
52289         * tests/unictype/test-pr_ideographic.c: Likewise.
52290         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52291         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52292         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52293         * tests/unictype/test-pr_iso_control.c: Likewise.
52294         * tests/unictype/test-pr_join_control.c: Likewise.
52295         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52296         * tests/unictype/test-pr_line_separator.c: Likewise.
52297         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52298         * tests/unictype/test-pr_lowercase.c: Likewise.
52299         * tests/unictype/test-pr_math.c: Likewise.
52300         * tests/unictype/test-pr_non_break.c: Likewise.
52301         * tests/unictype/test-pr_not_a_character.c: Likewise.
52302         * tests/unictype/test-pr_numeric.c: Likewise.
52303         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52304         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52305         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52306         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52307         * tests/unictype/test-pr_other_id_start.c: Likewise.
52308         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52309         * tests/unictype/test-pr_other_math.c: Likewise.
52310         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52311         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52312         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52313         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52314         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52315         * tests/unictype/test-pr_private_use.c: Likewise.
52316         * tests/unictype/test-pr_punctuation.c: Likewise.
52317         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52318         * tests/unictype/test-pr_radical.c: Likewise.
52319         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52320         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52321         * tests/unictype/test-pr_space.c: Likewise.
52322         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52323         * tests/unictype/test-pr_titlecase.c: Likewise.
52324         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52325         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52326         * tests/unictype/test-pr_uppercase.c: Likewise.
52327         * tests/unictype/test-pr_variation_selector.c: Likewise.
52328         * tests/unictype/test-pr_white_space.c: Likewise.
52329         * tests/unictype/test-pr_xid_continue.c: Likewise.
52330         * tests/unictype/test-pr_xid_start.c: Likewise.
52331         * tests/unictype/test-pr_zero_width.c: Likewise.
52332         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52333         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52334
52335 2007-11-12  Bruno Haible  <bruno@clisp.org>
52336
52337         Unicode character classification functions.
52338         * lib/unictype.h: New file.
52339         * modules/unictype/base: New file.
52340         * modules/unictype/category-L: New file.
52341         * modules/unictype/category-Lu: New file.
52342         * modules/unictype/category-Ll: New file.
52343         * modules/unictype/category-Lt: New file.
52344         * modules/unictype/category-Lm: New file.
52345         * modules/unictype/category-Lo: New file.
52346         * modules/unictype/category-M: New file.
52347         * modules/unictype/category-Mn: New file.
52348         * modules/unictype/category-Mc: New file.
52349         * modules/unictype/category-Me: New file.
52350         * modules/unictype/category-N: New file.
52351         * modules/unictype/category-Nd: New file.
52352         * modules/unictype/category-Nl: New file.
52353         * modules/unictype/category-No: New file.
52354         * modules/unictype/category-P: New file.
52355         * modules/unictype/category-Pc: New file.
52356         * modules/unictype/category-Pd: New file.
52357         * modules/unictype/category-Ps: New file.
52358         * modules/unictype/category-Pe: New file.
52359         * modules/unictype/category-Pi: New file.
52360         * modules/unictype/category-Pf: New file.
52361         * modules/unictype/category-Po: New file.
52362         * modules/unictype/category-S: New file.
52363         * modules/unictype/category-Sm: New file.
52364         * modules/unictype/category-Sc: New file.
52365         * modules/unictype/category-Sk: New file.
52366         * modules/unictype/category-So: New file.
52367         * modules/unictype/category-Z: New file.
52368         * modules/unictype/category-Zs: New file.
52369         * modules/unictype/category-Zl: New file.
52370         * modules/unictype/category-Zp: New file.
52371         * modules/unictype/category-C: New file.
52372         * modules/unictype/category-Cc: New file.
52373         * modules/unictype/category-Cf: New file.
52374         * modules/unictype/category-Cs: New file.
52375         * modules/unictype/category-Co: New file.
52376         * modules/unictype/category-Cn: New file.
52377         * modules/unictype/category-or: New file.
52378         * modules/unictype/category-of: New file.
52379         * modules/unictype/category-test: New file.
52380         * modules/unictype/category-test-withtable: New file.
52381         * modules/unictype/category-byname: New file.
52382         * modules/unictype/category-none: New file.
52383         * modules/unictype/category-and: New file.
52384         * modules/unictype/category-and-not: New file.
52385         * modules/unictype/category-name: New file.
52386         * modules/unictype/combining-class: New file.
52387         * modules/unictype/category-all: New file.
52388         * modules/unictype/bidicategory-all: New file.
52389         * modules/unictype/bidicategory-byname: New file.
52390         * modules/unictype/bidicategory-name: New file.
52391         * modules/unictype/bidicategory-of: New file.
52392         * modules/unictype/bidicategory-test: New file.
52393         * modules/unictype/decimal-digit: New file.
52394         * modules/unictype/digit: New file.
52395         * modules/unictype/numeric: New file.
52396         * modules/unictype/mirror: New file.
52397         * modules/unictype/property-white-space: New file.
52398         * modules/unictype/property-alphabetic: New file.
52399         * modules/unictype/property-other-alphabetic: New file.
52400         * modules/unictype/property-not-a-character: New file.
52401         * modules/unictype/property-default-ignorable-code-point: New file.
52402         * modules/unictype/property-other-default-ignorable-code-point: New
52403         file.
52404         * modules/unictype/property-deprecated: New file.
52405         * modules/unictype/property-logical-order-exception: New file.
52406         * modules/unictype/property-variation-selector: New file.
52407         * modules/unictype/property-private-use: New file.
52408         * modules/unictype/property-unassigned-code-value: New file.
52409         * modules/unictype/property-uppercase: New file.
52410         * modules/unictype/property-other-uppercase: New file.
52411         * modules/unictype/property-lowercase: New file.
52412         * modules/unictype/property-other-lowercase: New file.
52413         * modules/unictype/property-titlecase: New file.
52414         * modules/unictype/property-soft-dotted: New file.
52415         * modules/unictype/property-id-start: New file.
52416         * modules/unictype/property-other-id-start: New file.
52417         * modules/unictype/property-id-continue: New file.
52418         * modules/unictype/property-other-id-continue: New file.
52419         * modules/unictype/property-xid-start: New file.
52420         * modules/unictype/property-xid-continue: New file.
52421         * modules/unictype/property-pattern-white-space: New file.
52422         * modules/unictype/property-pattern-syntax: New file.
52423         * modules/unictype/property-join-control: New file.
52424         * modules/unictype/property-grapheme-base: New file.
52425         * modules/unictype/property-grapheme-extend: New file.
52426         * modules/unictype/property-other-grapheme-extend: New file.
52427         * modules/unictype/property-grapheme-link: New file.
52428         * modules/unictype/property-bidi-control: New file.
52429         * modules/unictype/property-bidi-left-to-right: New file.
52430         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52431         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52432         * modules/unictype/property-bidi-european-digit: New file.
52433         * modules/unictype/property-bidi-eur-num-separator: New file.
52434         * modules/unictype/property-bidi-eur-num-terminator: New file.
52435         * modules/unictype/property-bidi-arabic-digit: New file.
52436         * modules/unictype/property-bidi-common-separator: New file.
52437         * modules/unictype/property-bidi-block-separator: New file.
52438         * modules/unictype/property-bidi-segment-separator: New file.
52439         * modules/unictype/property-bidi-whitespace: New file.
52440         * modules/unictype/property-bidi-non-spacing-mark: New file.
52441         * modules/unictype/property-bidi-boundary-neutral: New file.
52442         * modules/unictype/property-bidi-pdf: New file.
52443         * modules/unictype/property-bidi-embedding-or-override: New file.
52444         * modules/unictype/property-bidi-other-neutral: New file.
52445         * modules/unictype/property-hex-digit: New file.
52446         * modules/unictype/property-ascii-hex-digit: New file.
52447         * modules/unictype/property-ideographic: New file.
52448         * modules/unictype/property-unified-ideograph: New file.
52449         * modules/unictype/property-radical: New file.
52450         * modules/unictype/property-ids-binary-operator: New file.
52451         * modules/unictype/property-ids-trinary-operator: New file.
52452         * modules/unictype/property-zero-width: New file.
52453         * modules/unictype/property-space: New file.
52454         * modules/unictype/property-non-break: New file.
52455         * modules/unictype/property-iso-control: New file.
52456         * modules/unictype/property-format-control: New file.
52457         * modules/unictype/property-dash: New file.
52458         * modules/unictype/property-hyphen: New file.
52459         * modules/unictype/property-punctuation: New file.
52460         * modules/unictype/property-line-separator: New file.
52461         * modules/unictype/property-paragraph-separator: New file.
52462         * modules/unictype/property-quotation-mark: New file.
52463         * modules/unictype/property-sentence-terminal: New file.
52464         * modules/unictype/property-terminal-punctuation: New file.
52465         * modules/unictype/property-currency-symbol: New file.
52466         * modules/unictype/property-math: New file.
52467         * modules/unictype/property-other-math: New file.
52468         * modules/unictype/property-paired-punctuation: New file.
52469         * modules/unictype/property-left-of-pair: New file.
52470         * modules/unictype/property-combining: New file.
52471         * modules/unictype/property-composite: New file.
52472         * modules/unictype/property-decimal-digit: New file.
52473         * modules/unictype/property-numeric: New file.
52474         * modules/unictype/property-diacritic: New file.
52475         * modules/unictype/property-extender: New file.
52476         * modules/unictype/property-ignorable-control: New file.
52477         * modules/unictype/property-test: New file.
52478         * modules/unictype/property-byname: New file.
52479         * modules/unictype/property-all: New file.
52480         * modules/unictype/scripts: New file.
52481         * modules/unictype/scripts-all: New file.
52482         * modules/unictype/block-of: New file.
52483         * modules/unictype/block-test: New file.
52484         * modules/unictype/block-list: New file.
52485         * modules/unictype/block-all: New file.
52486         * modules/unictype/syntax-c-whitespace: New file.
52487         * modules/unictype/syntax-java-whitespace: New file.
52488         * modules/unictype/syntax-c-ident: New file.
52489         * modules/unictype/syntax-java-ident: New file.
52490         * modules/unictype/ctype-alnum: New file.
52491         * modules/unictype/ctype-alpha: New file.
52492         * modules/unictype/ctype-cntrl: New file.
52493         * modules/unictype/ctype-digit: New file.
52494         * modules/unictype/ctype-graph: New file.
52495         * modules/unictype/ctype-lower: New file.
52496         * modules/unictype/ctype-print: New file.
52497         * modules/unictype/ctype-punct: New file.
52498         * modules/unictype/ctype-space: New file.
52499         * modules/unictype/ctype-upper: New file.
52500         * modules/unictype/ctype-xdigit: New file.
52501         * modules/unictype/ctype-blank: New file.
52502         * lib/unictype/bidi_byname.c: New file.
52503         * lib/unictype/bidi_name.c: New file.
52504         * lib/unictype/bidi_of.c: New file.
52505         * lib/unictype/bidi_test.c: New file.
52506         * lib/unictype/bitmap.h: New file.
52507         * lib/unictype/block_test.c: New file.
52508         * lib/unictype/blocks.c: New file.
52509         * lib/unictype/categ_C.c: New file.
52510         * lib/unictype/categ_Cc.c: New file.
52511         * lib/unictype/categ_Cf.c: New file.
52512         * lib/unictype/categ_Cn.c: New file.
52513         * lib/unictype/categ_Co.c: New file.
52514         * lib/unictype/categ_Cs.c: New file.
52515         * lib/unictype/categ_L.c: New file.
52516         * lib/unictype/categ_Ll.c: New file.
52517         * lib/unictype/categ_Lm.c: New file.
52518         * lib/unictype/categ_Lo.c: New file.
52519         * lib/unictype/categ_Lt.c: New file.
52520         * lib/unictype/categ_Lu.c: New file.
52521         * lib/unictype/categ_M.c: New file.
52522         * lib/unictype/categ_Mc.c: New file.
52523         * lib/unictype/categ_Me.c: New file.
52524         * lib/unictype/categ_Mn.c: New file.
52525         * lib/unictype/categ_N.c: New file.
52526         * lib/unictype/categ_Nd.c: New file.
52527         * lib/unictype/categ_Nl.c: New file.
52528         * lib/unictype/categ_No.c: New file.
52529         * lib/unictype/categ_P.c: New file.
52530         * lib/unictype/categ_Pc.c: New file.
52531         * lib/unictype/categ_Pd.c: New file.
52532         * lib/unictype/categ_Pe.c: New file.
52533         * lib/unictype/categ_Pf.c: New file.
52534         * lib/unictype/categ_Pi.c: New file.
52535         * lib/unictype/categ_Po.c: New file.
52536         * lib/unictype/categ_Ps.c: New file.
52537         * lib/unictype/categ_S.c: New file.
52538         * lib/unictype/categ_Sc.c: New file.
52539         * lib/unictype/categ_Sk.c: New file.
52540         * lib/unictype/categ_Sm.c: New file.
52541         * lib/unictype/categ_So.c: New file.
52542         * lib/unictype/categ_Z.c: New file.
52543         * lib/unictype/categ_Zl.c: New file.
52544         * lib/unictype/categ_Zp.c: New file.
52545         * lib/unictype/categ_Zs.c: New file.
52546         * lib/unictype/categ_and.c: New file.
52547         * lib/unictype/categ_and_not.c: New file.
52548         * lib/unictype/categ_byname.c: New file.
52549         * lib/unictype/categ_name.c: New file.
52550         * lib/unictype/categ_none.c: New file.
52551         * lib/unictype/categ_of.c: New file.
52552         * lib/unictype/categ_or.c: New file.
52553         * lib/unictype/categ_test.c: New file.
52554         * lib/unictype/combining.c: New file.
52555         * lib/unictype/ctype_alnum.c: New file.
52556         * lib/unictype/ctype_alpha.c: New file.
52557         * lib/unictype/ctype_blank.c: New file.
52558         * lib/unictype/ctype_cntrl.c: New file.
52559         * lib/unictype/ctype_digit.c: New file.
52560         * lib/unictype/ctype_graph.c: New file.
52561         * lib/unictype/ctype_lower.c: New file.
52562         * lib/unictype/ctype_print.c: New file.
52563         * lib/unictype/ctype_punct.c: New file.
52564         * lib/unictype/ctype_space.c: New file.
52565         * lib/unictype/ctype_upper.c: New file.
52566         * lib/unictype/ctype_xdigit.c: New file.
52567         * lib/unictype/decdigit.c: New file.
52568         * lib/unictype/digit.c: New file.
52569         * lib/unictype/identsyntaxmap.h: New file.
52570         * lib/unictype/mirror.c: New file.
52571         * lib/unictype/numeric.c: New file.
52572         * lib/unictype/pr_alphabetic.c: New file.
52573         * lib/unictype/pr_ascii_hex_digit.c: New file.
52574         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52575         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52576         * lib/unictype/pr_bidi_block_separator.c: New file.
52577         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52578         * lib/unictype/pr_bidi_common_separator.c: New file.
52579         * lib/unictype/pr_bidi_control.c: New file.
52580         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52581         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52582         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52583         * lib/unictype/pr_bidi_european_digit.c: New file.
52584         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52585         * lib/unictype/pr_bidi_left_to_right.c: New file.
52586         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52587         * lib/unictype/pr_bidi_other_neutral.c: New file.
52588         * lib/unictype/pr_bidi_pdf.c: New file.
52589         * lib/unictype/pr_bidi_segment_separator.c: New file.
52590         * lib/unictype/pr_bidi_whitespace.c: New file.
52591         * lib/unictype/pr_byname.c: New file.
52592         * lib/unictype/pr_byname.gperf: New file.
52593         * lib/unictype/pr_combining.c: New file.
52594         * lib/unictype/pr_composite.c: New file.
52595         * lib/unictype/pr_currency_symbol.c: New file.
52596         * lib/unictype/pr_dash.c: New file.
52597         * lib/unictype/pr_decimal_digit.c: New file.
52598         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52599         * lib/unictype/pr_deprecated.c: New file.
52600         * lib/unictype/pr_diacritic.c: New file.
52601         * lib/unictype/pr_extender.c: New file.
52602         * lib/unictype/pr_format_control.c: New file.
52603         * lib/unictype/pr_grapheme_base.c: New file.
52604         * lib/unictype/pr_grapheme_extend.c: New file.
52605         * lib/unictype/pr_grapheme_link.c: New file.
52606         * lib/unictype/pr_hex_digit.c: New file.
52607         * lib/unictype/pr_hyphen.c: New file.
52608         * lib/unictype/pr_id_continue.c: New file.
52609         * lib/unictype/pr_id_start.c: New file.
52610         * lib/unictype/pr_ideographic.c: New file.
52611         * lib/unictype/pr_ids_binary_operator.c: New file.
52612         * lib/unictype/pr_ids_trinary_operator.c: New file.
52613         * lib/unictype/pr_ignorable_control.c: New file.
52614         * lib/unictype/pr_iso_control.c: New file.
52615         * lib/unictype/pr_join_control.c: New file.
52616         * lib/unictype/pr_left_of_pair.c: New file.
52617         * lib/unictype/pr_line_separator.c: New file.
52618         * lib/unictype/pr_logical_order_exception.c: New file.
52619         * lib/unictype/pr_lowercase.c: New file.
52620         * lib/unictype/pr_math.c: New file.
52621         * lib/unictype/pr_non_break.c: New file.
52622         * lib/unictype/pr_not_a_character.c: New file.
52623         * lib/unictype/pr_numeric.c: New file.
52624         * lib/unictype/pr_other_alphabetic.c: New file.
52625         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52626         * lib/unictype/pr_other_grapheme_extend.c: New file.
52627         * lib/unictype/pr_other_id_continue.c: New file.
52628         * lib/unictype/pr_other_id_start.c: New file.
52629         * lib/unictype/pr_other_lowercase.c: New file.
52630         * lib/unictype/pr_other_math.c: New file.
52631         * lib/unictype/pr_other_uppercase.c: New file.
52632         * lib/unictype/pr_paired_punctuation.c: New file.
52633         * lib/unictype/pr_paragraph_separator.c: New file.
52634         * lib/unictype/pr_pattern_syntax.c: New file.
52635         * lib/unictype/pr_pattern_white_space.c: New file.
52636         * lib/unictype/pr_private_use.c: New file.
52637         * lib/unictype/pr_punctuation.c: New file.
52638         * lib/unictype/pr_quotation_mark.c: New file.
52639         * lib/unictype/pr_radical.c: New file.
52640         * lib/unictype/pr_sentence_terminal.c: New file.
52641         * lib/unictype/pr_soft_dotted.c: New file.
52642         * lib/unictype/pr_space.c: New file.
52643         * lib/unictype/pr_terminal_punctuation.c: New file.
52644         * lib/unictype/pr_test.c: New file.
52645         * lib/unictype/pr_titlecase.c: New file.
52646         * lib/unictype/pr_unassigned_code_value.c: New file.
52647         * lib/unictype/pr_unified_ideograph.c: New file.
52648         * lib/unictype/pr_uppercase.c: New file.
52649         * lib/unictype/pr_variation_selector.c: New file.
52650         * lib/unictype/pr_white_space.c: New file.
52651         * lib/unictype/pr_xid_continue.c: New file.
52652         * lib/unictype/pr_xid_start.c: New file.
52653         * lib/unictype/pr_zero_width.c: New file.
52654         * lib/unictype/scripts.c: New file.
52655         * lib/unictype/sy_c_ident.c: New file.
52656         * lib/unictype/sy_c_whitespace.c: New file.
52657         * lib/unictype/sy_java_ident.c: New file.
52658         * lib/unictype/sy_java_whitespace.c: New file.
52659
52660         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52661         Unicode 5.0.0.
52662         * lib/unictype/blocks.h: Likewise.
52663         * lib/unictype/categ_C.h: Likewise.
52664         * lib/unictype/categ_Cc.h: Likewise.
52665         * lib/unictype/categ_Cf.h: Likewise.
52666         * lib/unictype/categ_Cn.h: Likewise.
52667         * lib/unictype/categ_Co.h: Likewise.
52668         * lib/unictype/categ_Cs.h: Likewise.
52669         * lib/unictype/categ_L.h: Likewise.
52670         * lib/unictype/categ_Ll.h: Likewise.
52671         * lib/unictype/categ_Lm.h: Likewise.
52672         * lib/unictype/categ_Lo.h: Likewise.
52673         * lib/unictype/categ_Lt.h: Likewise.
52674         * lib/unictype/categ_Lu.h: Likewise.
52675         * lib/unictype/categ_M.h: Likewise.
52676         * lib/unictype/categ_Mc.h: Likewise.
52677         * lib/unictype/categ_Me.h: Likewise.
52678         * lib/unictype/categ_Mn.h: Likewise.
52679         * lib/unictype/categ_N.h: Likewise.
52680         * lib/unictype/categ_Nd.h: Likewise.
52681         * lib/unictype/categ_Nl.h: Likewise.
52682         * lib/unictype/categ_No.h: Likewise.
52683         * lib/unictype/categ_P.h: Likewise.
52684         * lib/unictype/categ_Pc.h: Likewise.
52685         * lib/unictype/categ_Pd.h: Likewise.
52686         * lib/unictype/categ_Pe.h: Likewise.
52687         * lib/unictype/categ_Pf.h: Likewise.
52688         * lib/unictype/categ_Pi.h: Likewise.
52689         * lib/unictype/categ_Po.h: Likewise.
52690         * lib/unictype/categ_Ps.h: Likewise.
52691         * lib/unictype/categ_S.h: Likewise.
52692         * lib/unictype/categ_Sc.h: Likewise.
52693         * lib/unictype/categ_Sk.h: Likewise.
52694         * lib/unictype/categ_Sm.h: Likewise.
52695         * lib/unictype/categ_So.h: Likewise.
52696         * lib/unictype/categ_Z.h: Likewise.
52697         * lib/unictype/categ_Zl.h: Likewise.
52698         * lib/unictype/categ_Zp.h: Likewise.
52699         * lib/unictype/categ_Zs.h: Likewise.
52700         * lib/unictype/categ_of.h: Likewise.
52701         * lib/unictype/combining.h: Likewise.
52702         * lib/unictype/ctype_alnum.h: Likewise.
52703         * lib/unictype/ctype_alpha.h: Likewise.
52704         * lib/unictype/ctype_blank.h: Likewise.
52705         * lib/unictype/ctype_cntrl.h: Likewise.
52706         * lib/unictype/ctype_digit.h: Likewise.
52707         * lib/unictype/ctype_graph.h: Likewise.
52708         * lib/unictype/ctype_lower.h: Likewise.
52709         * lib/unictype/ctype_print.h: Likewise.
52710         * lib/unictype/ctype_punct.h: Likewise.
52711         * lib/unictype/ctype_space.h: Likewise.
52712         * lib/unictype/ctype_upper.h: Likewise.
52713         * lib/unictype/ctype_xdigit.h: Likewise.
52714         * lib/unictype/decdigit.h: Likewise.
52715         * lib/unictype/digit.h: Likewise.
52716         * lib/unictype/mirror.h: Likewise.
52717         * lib/unictype/numeric.h: Likewise.
52718         * lib/unictype/pr_alphabetic.h: Likewise.
52719         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52720         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52721         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52722         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52723         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52724         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52725         * lib/unictype/pr_bidi_control.h: Likewise.
52726         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52727         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52728         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52729         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52730         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52731         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52732         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52733         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52734         * lib/unictype/pr_bidi_pdf.h: Likewise.
52735         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52736         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52737         * lib/unictype/pr_combining.h: Likewise.
52738         * lib/unictype/pr_composite.h: Likewise.
52739         * lib/unictype/pr_currency_symbol.h: Likewise.
52740         * lib/unictype/pr_dash.h: Likewise.
52741         * lib/unictype/pr_decimal_digit.h: Likewise.
52742         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52743         * lib/unictype/pr_deprecated.h: Likewise.
52744         * lib/unictype/pr_diacritic.h: Likewise.
52745         * lib/unictype/pr_extender.h: Likewise.
52746         * lib/unictype/pr_format_control.h: Likewise.
52747         * lib/unictype/pr_grapheme_base.h: Likewise.
52748         * lib/unictype/pr_grapheme_extend.h: Likewise.
52749         * lib/unictype/pr_grapheme_link.h: Likewise.
52750         * lib/unictype/pr_hex_digit.h: Likewise.
52751         * lib/unictype/pr_hyphen.h: Likewise.
52752         * lib/unictype/pr_id_continue.h: Likewise.
52753         * lib/unictype/pr_id_start.h: Likewise.
52754         * lib/unictype/pr_ideographic.h: Likewise.
52755         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52756         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52757         * lib/unictype/pr_ignorable_control.h: Likewise.
52758         * lib/unictype/pr_iso_control.h: Likewise.
52759         * lib/unictype/pr_join_control.h: Likewise.
52760         * lib/unictype/pr_left_of_pair.h: Likewise.
52761         * lib/unictype/pr_line_separator.h: Likewise.
52762         * lib/unictype/pr_logical_order_exception.h: Likewise.
52763         * lib/unictype/pr_lowercase.h: Likewise.
52764         * lib/unictype/pr_math.h: Likewise.
52765         * lib/unictype/pr_non_break.h: Likewise.
52766         * lib/unictype/pr_not_a_character.h: Likewise.
52767         * lib/unictype/pr_numeric.h: Likewise.
52768         * lib/unictype/pr_other_alphabetic.h: Likewise.
52769         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52770         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52771         * lib/unictype/pr_other_id_continue.h: Likewise.
52772         * lib/unictype/pr_other_id_start.h: Likewise.
52773         * lib/unictype/pr_other_lowercase.h: Likewise.
52774         * lib/unictype/pr_other_math.h: Likewise.
52775         * lib/unictype/pr_other_uppercase.h: Likewise.
52776         * lib/unictype/pr_paired_punctuation.h: Likewise.
52777         * lib/unictype/pr_paragraph_separator.h: Likewise.
52778         * lib/unictype/pr_pattern_syntax.h: Likewise.
52779         * lib/unictype/pr_pattern_white_space.h: Likewise.
52780         * lib/unictype/pr_private_use.h: Likewise.
52781         * lib/unictype/pr_punctuation.h: Likewise.
52782         * lib/unictype/pr_quotation_mark.h: Likewise.
52783         * lib/unictype/pr_radical.h: Likewise.
52784         * lib/unictype/pr_sentence_terminal.h: Likewise.
52785         * lib/unictype/pr_soft_dotted.h: Likewise.
52786         * lib/unictype/pr_space.h: Likewise.
52787         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52788         * lib/unictype/pr_titlecase.h: Likewise.
52789         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52790         * lib/unictype/pr_unified_ideograph.h: Likewise.
52791         * lib/unictype/pr_uppercase.h: Likewise.
52792         * lib/unictype/pr_variation_selector.h: Likewise.
52793         * lib/unictype/pr_white_space.h: Likewise.
52794         * lib/unictype/pr_xid_continue.h: Likewise.
52795         * lib/unictype/pr_xid_start.h: Likewise.
52796         * lib/unictype/pr_zero_width.h: Likewise.
52797         * lib/unictype/scripts.h: Likewise.
52798         * lib/unictype/scripts_byname.gperf: Likewise.
52799         * lib/unictype/sy_c_ident.h: Likewise.
52800         * lib/unictype/sy_c_whitespace.h: Likewise.
52801         * lib/unictype/sy_java_ident.h: Likewise.
52802         * lib/unictype/sy_java_whitespace.h: Likewise.
52803
52804         * lib/unictype/Makefile: New file.
52805         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52806         glibc.
52807         * lib/unictype/3level.h: New file, copied from glibc.
52808         * lib/unictype/3levelbit.h: New file.
52809
52810 2007-11-11  Bruno Haible  <bruno@clisp.org>
52811
52812         * modules/gperf: New file.
52813         * modules/iconv_open (Depends-on): Add it.
52814         (Makefile.am): Remove the GPERF definition.
52815
52816 2007-11-11  Bruno Haible  <bruno@clisp.org>
52817
52818         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52819         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52820
52821 2007-11-11  Bruno Haible  <bruno@clisp.org>
52822
52823         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52824         (usage): Remove function.
52825
52826 2007-11-11  Bruno Haible  <bruno@clisp.org>
52827
52828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52829         gl_FUNC_CEILF_LIBS.
52830         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52831         gl_FUNC_CEIL_LIBS.
52832         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52833         gl_FUNC_CEILL_LIBS.
52834         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52835         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52836         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52837
52838 2007-11-11  Bruno Haible  <bruno@clisp.org>
52839
52840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52841         roundf were declared but do not exist on functions.
52842         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52843         roundl were declared but do not exist on functions.
52844         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52845         HAVE_FLOORL_AND_CEILL, respectively.
52846         Needed for Sun C on Solaris 10.
52847
52848 2007-11-11  Bruno Haible  <bruno@clisp.org>
52849
52850         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52851         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52852         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52853         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52854         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52855         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52856         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52857         HAVE_DECL_ROUNDF.
52858         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52859         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52861         of HAVE_DECL_ROUND*.
52862         * modules/math (Makefile.am): Update.
52863
52864 2007-11-10  Bruno Haible  <bruno@clisp.org>
52865
52866         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52867         ptrdiff_t as m4/intl.m4.
52868
52869 2007-11-10  Jim Meyering  <meyering@redhat.com>
52870
52871         Avoid link failure for the argmatch test.
52872         * tests/test-argmatch.c (usage): Define function to avoid a link
52873         failure: argmatch_die requires a usage function.
52874
52875 2007-11-09  Bruno Haible  <bruno@clisp.org>
52876
52877         * doc/functions/snprintf.texi: Mention BeOS deficiency.
52878         * doc/functions/vsnprintf.texi: Likewise.
52879         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
52880         with a size argument < 2.
52881
52882 2007-11-09  Bruno Haible  <bruno@clisp.org>
52883
52884         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
52885         buffer. Fixes an inefficiency introduced on 2007-11-03.
52886
52887 2007-11-09  Bruno Haible  <bruno@clisp.org>
52888
52889         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
52890         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
52891
52892 2007-11-08  Jim Meyering  <meyering@redhat.com>
52893
52894         Change cache variable name prefix "jm_" to "gl_" everywhere.
52895         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
52896         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
52897         * m4/uptime.m4: s/gl_/jm_/
52898
52899 2007-11-07  Bruno Haible  <bruno@clisp.org>
52900
52901         Update to GNU gettext 0.17.
52902         * m4/intl.m4: Update to GNU gettext 0.17.
52903         * m4/po.m4: Likewise.
52904         * modules/gettext (Files): Remove m4/ulonglong.m4.
52905         (configure.ac): Require gettext infrastructure from version 0.17.
52906
52907 2007-11-06  Bruno Haible  <bruno@clisp.org>
52908
52909         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
52910         symbolic values are not defined in a public header.
52911         * lib/freadable.c (freadable) [QNX]: Likewise.
52912         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52913         * lib/freading.c (freading) [QNX]: Likewise.
52914         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52915         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52916         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52917         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52918         Reported by Alain Magloire.
52919
52920         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52921
52922 2007-11-05  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52925         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52926         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52927         Reported by Eric Blake.
52928
52929 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52930             Bruno Haible  <bruno@clisp.org>
52931
52932         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52933         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52934         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52935         (malloc): Undefine also before including <stdlib.h>.
52936         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52937         Needed on OSF/1 4.0.
52938
52939 2007-11-05  Jim Meyering  <meyering@redhat.com>
52940
52941         git-version-gen: sync from coreutils.
52942         * build-aux/git-version-gen: Add comments.
52943         Change the first '-' to '.' in the snapshot version string,
52944         e.g., 6.9-377-08144 -> 6.9.377-08144
52945         Remove first parameter.
52946         Don't declare a version "-dirty" merely because a time
52947         stamp has changed.
52948
52949 2007-11-04  Bruno Haible  <bruno@clisp.org>
52950
52951         * lib/lock.h: Protect all macro definitions containing an 'if'
52952         statement through a "do { ... } while (0)".
52953         * lib/tls.h: Likewise.
52954
52955 2007-11-04  Bruno Haible  <bruno@clisp.org>
52956
52957         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52958
52959 2007-11-04  Bruno Haible  <bruno@clisp.org>
52960
52961         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52962         * modules/fprintf-posix (Depends-on): Add nocrash.
52963         * modules/snprintf-posix (Depends-on): Likewise.
52964         * modules/sprintf-posix (Depends-on): Likewise.
52965         * modules/vasnprintf-posix (Depends-on): Likewise.
52966         * modules/vasprintf-posix (Depends-on): Likewise.
52967         * modules/vfprintf-posix (Depends-on): Likewise.
52968         * modules/vsnprintf-posix (Depends-on): Likewise.
52969         * modules/vsprintf-posix (Depends-on): Likewise.
52970         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52971         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52972         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52973         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52974         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52975         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52976         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52977
52978 2007-11-04  Bruno Haible  <bruno@clisp.org>
52979
52980         * modules/nocrash: New file.
52981         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52982         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52983
52984 2007-11-04  Bruno Haible  <bruno@clisp.org>
52985
52986         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52987         precision handling.
52988         * tests/test-vasprintf-posix.c (test_function): Likewise.
52989         * tests/test-snprintf-posix.h (test_function): Likewise.
52990         * tests/test-sprintf-posix.h (test_function): Likewise.
52991
52992         Fix *printf behaviour for large precisions on mingw and BeOS.
52993         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52994         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52996         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52997         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52998         gl_PRINTF_PRECISION and test its result. Invoke
52999         gl_PREREQ_VASNPRINTF_PRECISION.
53000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53003         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53004         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53005         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53006         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53007         * doc/functions/fprintf.texi: Update.
53008         * doc/functions/printf.texi: Update.
53009         * doc/functions/snprintf.texi: Update.
53010         * doc/functions/sprintf.texi: Update.
53011         * doc/functions/vfprintf.texi: Update.
53012         * doc/functions/vprintf.texi: Update.
53013         * doc/functions/vsnprintf.texi: Update.
53014         * doc/functions/vsprintf.texi: Update.
53015
53016 2007-11-04  Bruno Haible  <bruno@clisp.org>
53017
53018         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53019
53020 2007-11-04  Bruno Haible  <bruno@clisp.org>
53021
53022         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53023         Reported by Sylvain Beucler <beuc@gnu.org>.
53024
53025 2007-11-03  Bruno Haible  <bruno@clisp.org>
53026
53027         * tests/test-fprintf-posix2.sh: New file.
53028         * tests/test-fprintf-posix2.c: New file.
53029         * modules/fprintf-posix-tests (Files): Add them.
53030         (TESTS): Add test-fprintf-posix2.sh.
53031         (configure.ac): Check for getrlimit and setrlimit.
53032         (check_PROGRAMS): Add test-fprintf-posix2.
53033
53034         * tests/test-printf-posix2.sh: New file.
53035         * tests/test-printf-posix2.c: New file.
53036         * modules/printf-posix-tests (Files): Add them.
53037         (TESTS): Add test-printf-posix2.sh.
53038         (configure.ac): Check for getrlimit and setrlimit.
53039         (check_PROGRAMS): Add test-printf-posix2.
53040
53041         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53042         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53043         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53044         (decode_double): New function, copied from decode_long_double.
53045         (scale10_round_decimal_decoded): New function, extracted from
53046         scale10_round_decimal_long_double.
53047         (scale10_round_decimal_long_double): Use it.
53048         (scale10_round_decimal_double): New function.
53049         (floorlog10): New function.
53050         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53052         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53053         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53054         gl_PRINTF_ENOMEM and test its result. Invoke
53055         gl_PREREQ_VASNPRINTF_ENOMEM.
53056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53063         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53064         * modules/snprintf-posix (Depends-on): Likewise.
53065         * modules/sprintf-posix (Depends-on): Likewise.
53066         * modules/vasnprintf-posix (Depends-on): Likewise.
53067         * modules/vasprintf-posix (Depends-on): Likewise.
53068         * modules/vfprintf-posix (Depends-on): Likewise.
53069         * modules/vsnprintf-posix (Depends-on): Likewise.
53070         * modules/vsprintf-posix (Depends-on): Likewise.
53071         * doc/functions/fprintf.texi: Update.
53072         * doc/functions/printf.texi: Update.
53073         * doc/functions/snprintf.texi: Update.
53074         * doc/functions/sprintf.texi: Update.
53075         * doc/functions/vfprintf.texi: Update.
53076         * doc/functions/vprintf.texi: Update.
53077         * doc/functions/vsnprintf.texi: Update.
53078         * doc/functions/vsprintf.texi: Update.
53079
53080 2007-11-03  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/frexp-nolibm-tests: New file.
53083
53084         * modules/frexp-nolibm: New file.
53085         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53086
53087 2007-11-03  Bruno Haible  <bruno@clisp.org>
53088
53089         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53090         value is C99 compliant.
53091         Needed for OSF/1 5.1.
53092
53093 2007-11-03  Bruno Haible  <bruno@clisp.org>
53094
53095         Fix out-of-memory handling of vasnprintf.
53096         * lib/printf-parse.c: Include <errno.h>.
53097         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53098         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53099         is already set.
53100
53101 2007-11-02  Eric Blake  <ebb9@byu.net>
53102
53103         Fix tests on cygwin.
53104         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53105
53106 2007-11-01  Bruno Haible  <bruno@clisp.org>
53107
53108         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53109         warning.
53110         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53111         needed for POSIX compatibility.
53112
53113 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53114
53115         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53116         for compatibility with GNU.
53117
53118 2007-11-01  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53121         (putenv): Renamed from rpl_putenv. Change argument type from
53122         'const char *' to 'char *'.
53123         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53124         of defining putenv in config.h, just set REPLACE_PUTENV.
53125         * modules/putenv (Depends-on): Add stdlib.
53126         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53127         (Include): Use <stdlib.h>.
53128         * lib/stdlib.in.h (putenv): New declaration.
53129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53130         REPLACE_PUTENV.
53131         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53132         REPLACE_PUTENV.
53133         Needed for MacOS X 10.5.0.
53134         Reported by Peter O'Gorman <peter@pogma.com>.
53135
53136 2007-11-01  Jim Meyering  <meyering@redhat.com>
53137
53138         Treat an empty date string exactly like "0".
53139         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53140         if the remaining date string (to be parsed) is empty, use "0".
53141         Reported by Mischa Molhoek and discussed in this thread:
53142         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53143
53144 2007-10-31  Bruno Haible  <bruno@clisp.org>
53145
53146         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53147         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53148         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53149         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53150         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53151         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53152
53153 2007-10-31  Bruno Haible  <bruno@clisp.org>
53154
53155         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53156         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53157         (AC_TYPE_LONG_LONG_INT): Use it.
53158         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53159         it as well.
53160         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53161         to m4/longlong.m4.
53162         * modules/stdint (Files): Remove m4/ulonglong.m4.
53163         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53164         m4/ulonglong.m4.
53165         * modules/strtoumax (Files): Likewise.
53166
53167 2007-10-30  Bruno Haible  <bruno@clisp.org>
53168
53169         * modules/xvasprintf-posix: New file.
53170         Suggested by Eric Blake.
53171
53172 2007-10-30  Bruno Haible  <bruno@clisp.org>
53173
53174         * modules/xprintf-posix-tests: New file.
53175         * tests/test-xprintf-posix.sh: New file.
53176         * tests/test-xprintf-posix.c: New file.
53177         * tests/test-xfprintf-posix.c: New file.
53178
53179         * modules/xprintf-posix: New file.
53180
53181 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53182
53183         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53184         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53185         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53186
53187 2007-10-29  Bruno Haible  <bruno@clisp.org>
53188
53189         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53190         contain the special marker '_cv_'.
53191         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53192         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53193         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53194         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53195         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53196         Reported by Ralf Wildenhues.
53197
53198 2007-10-29  Bruno Haible  <bruno@clisp.org>
53199
53200         * gnulib-tool (func_import): When --lgpl is not specified, set
53201         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53202         GPLv3.
53203         Reported by Simon Josefsson.
53204
53205 2007-10-28  Bruno Haible  <bruno@clisp.org>
53206
53207         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53208         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53209         HAVE_DECL_ISFINITE.
53210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53211         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53212         HAVE_DECL_ISFINITE.
53213
53214 2007-10-28  Bruno Haible  <bruno@clisp.org>
53215
53216         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53217         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53218
53219 2007-10-28  Bruno Haible  <bruno@clisp.org>
53220
53221         Fix link errors with Sun C 5.0 on Solaris 10.
53222         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53223         function is declared but not present in the compiler's libm.
53224         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53225         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53226         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53227         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53228         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53229         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53230         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53232         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53233         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53234         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53235         HAVE_DECL_FLOORL.
53236
53237 2007-10-28  Bruno Haible  <bruno@clisp.org>
53238
53239         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53240         gl_FUNC_FLOORL. Cache the result.
53241         (gl_FUNC_FLOORL): Use it.
53242         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53243         gl_FUNC_CEILL. Cache the result.
53244         (gl_FUNC_CEILL): Use it.
53245
53246         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53247         gl_FUNC_FLOOR. Cache the result.
53248         (gl_FUNC_FLOOR): Use it.
53249         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53250         gl_FUNC_CEIL. Cache the result.
53251         (gl_FUNC_CEIL): Use it.
53252
53253         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53254         gl_FUNC_FLOORF. Cache the result.
53255         (gl_FUNC_FLOORF): Use it.
53256         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53257         gl_FUNC_CEILF. Cache the result.
53258         (gl_FUNC_CEILF): Use it.
53259
53260 2007-10-28  Bruno Haible  <bruno@clisp.org>
53261
53262         * gnulib-tool: Allow specifying the LGPL version number through
53263         --lgpl=2 or --lgpl=3.
53264         (func_usage): Document --lgpl with argument.
53265         Handle --lgpl=... arguments.
53266         (func_import): Recognize also gl_LGPL calls with an argument. When
53267         --lgpl=2 is used and the module's license is just LGPL, report an
53268         error. Set sed_transform_lib_file according to the lgpl variable. In
53269         the generated files, use --lgpl or gl_LGPL invocations with argument,
53270         if necessary.
53271         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53272         an LGPv2+ license.
53273         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53274         gl_LGPL macro.
53275
53276 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53277             Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53280         (u16_uctomb_aux): Likewise.
53281         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53282         !HAVE_INLINE.
53283         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53284
53285 2007-10-28  Bruno Haible  <bruno@clisp.org>
53286
53287         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53288         Invoke AM_GETTEXT_OPTION if it exists.
53289         * modules/vasprintf: Likewise.
53290         * modules/verror: Likewise.
53291         * modules/xprintf: Likewise.
53292         * modules/xvasprintf: Likewise.
53293
53294 2007-10-27  Ben Pfaff  <blp@gnu.org>
53295
53296         * lib/math.in.h: Define isfinite macro and prototypes for
53297         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53298         implementations.
53299         * m4/math_h.m4: New substitutions for isfinite module.
53300         * lib/isfinite.c: New file.
53301         * m4/isfinite.m4: New file.
53302         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53303         * modules/isfinite: New file.
53304         * modules/isfinite-tests: New file.
53305         * tests/tests-isfinite.c: New file.
53306         * doc/functions/isfinite.texi: Mention isfinite module.
53307         * MODULES.html.sh: Mention new module.
53308
53309 2007-10-27  Ben Pfaff  <blp@gnu.org>
53310
53311         Ralf Wildenhues reported that Tru64 4.0D declares the round
53312         functions but does not have definitions.
53313         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53314         cannot be found in any library, set the output variable to
53315         "missing" instead of "".
53316         * m4/round.m4: Also use our substitute if we cannot find round in
53317         any library, even if it is declared.
53318         * m4/roundf.m4: Likewise for roundf.
53319         * m4/roundl.m4: Likewise for roundl.
53320         * lib/math.in.h: Undefine roundf, round, roundl before defining
53321         their replacements, to allow for hypothetical systems where these
53322         may be defined as macros but not available in libraries.
53323
53324 2007-10-27  Bruno Haible  <bruno@clisp.org>
53325
53326         * doc/gnulib.texi: Invoke @firstparagraphindent.
53327         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53328         changes in gnulib.
53329         (Source changes): New section.
53330
53331 2007-10-26  Bruno Haible  <bruno@clisp.org>
53332
53333         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53334         borrowed from autoconf.
53335
53336 2007-10-26  Bruno Haible  <bruno@clisp.org>
53337
53338         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53339         strerror returned the empty string. Needed on HP-UX 11.00.
53340
53341 2007-10-24  Micah Cowan  <micah@cowan.name>
53342
53343         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53344         * build-aux/bootstrap: Remove support for now-unnecessary option,
53345         --cvs-user, and envvars CVS_USER, CVS_RSH.
53346
53347 2007-10-24  Jim Meyering  <meyering@redhat.com>
53348
53349         Avoid diagnostics from sha1sum when there is no cached checksum.
53350         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53351         if the po.s1 file hasn't been created yet.
53352
53353         * build-aux/bootstrap: Sync from coreutils:
53354         2007-10-24  Jim Meyering  <meyering@redhat.com>
53355         Get gnulib from the git repository, not from an obsolete cvs one.
53356         * build-aux/bootstrap: Suggestion from Micah Cowan.
53357         2007-10-04  Jim Meyering  <jim@meyering.net>
53358         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53359         (update_po_files): Work also when there are no .po files in po/.
53360
53361 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53362
53363         * README: Append ".git" to git and cg examples.
53364         Problem reported by Benoit Sigoure.
53365
53366 2007-10-23  Micah Cowan  <micah@cowan.name>
53367
53368         * users.txt: Add wget.
53369
53370 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53371
53372         Fix linking of some unistdio tests on FreeBSD.
53373         * modules/unistdio/u16-vsnprintf-tests
53374         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53375         * modules/unistdio/u16-vsprintf-tests
53376         (test_u16_vsnprintf1_LDADD): Likewise.
53377         * modules/unistdio/u32-vsnprintf-tests
53378         (test_u32_vsnprintf1_LDADD): Likewise.
53379         * modules/unistdio/u32-vsprintf-tests
53380         (test_u32_vsprintf1_LDADD): Likewise.
53381         * modules/unistdio/u8-vsnprintf-tests
53382         (test_u8_vsnprintf1_LDADD): Likewise.
53383         * modules/unistdio/u8-vsprintf-tests
53384         (test_u8_vsprintf1_LDADD): Likewise.
53385         * modules/unistdio/ulc-vsnprintf-tests
53386         (test_ulc_vsnprintf1_LDADD): Likewise.
53387         * modules/unistdio/ulc-vsprintf-tests
53388         (test_ulc_vsprintf1_LDADD): Likewise.
53389
53390         Fix linking of some uniconv tests on FreeBSD.
53391         * modules/uniconv/u16-conv-from-enc-tests
53392         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53393         * modules/uniconv/u16-conv-to-enc-tests
53394         (test_u16_conv_to_enc_LDADD): Likewise.
53395         * modules/uniconv/u16-strconv-from-enc-tests
53396         (test_u16_strconv_from_enc_LDADD): Likewise.
53397         * modules/uniconv/u16-strconv-to-enc-tests
53398         (test_u16_strconv_to_enc_LDADD): Likewise.
53399         * modules/uniconv/u32-conv-from-enc-tests
53400         (test_u32_conv_from_enc_LDADD): Likewise.
53401         * modules/uniconv/u32-conv-to-enc-tests
53402         (test_u32_conv_to_enc_LDADD): Likewise.
53403         * modules/uniconv/u32-strconv-from-enc-tests
53404         (test_u32_strconv_from_enc_LDADD): Likewise.
53405         * modules/uniconv/u32-strconv-to-enc-tests
53406         (test_u32_strconv_to_enc_LDADD): Likewise.
53407         * modules/uniconv/u8-conv-from-enc-tests
53408         (test_u8_conv_from_enc_LDADD): Likewise.
53409         * modules/uniconv/u8-conv-to-enc-tests
53410         (test_u8_conv_to_enc_LDADD): Likewise.
53411         * modules/uniconv/u8-strconv-from-enc-tests
53412         (test_u8_strconv_from_enc_LDADD): Likewise.
53413         * modules/uniconv/u8-strconv-to-enc-tests
53414         (test_u8_strconv_to_enc_LDADD): Likewise.
53415
53416 2007-10-22  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53419         size.
53420
53421 2007-10-22  Eric Blake  <ebb9@byu.net>
53422
53423         Tweak x*printf documentation.
53424         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53425         variable name and comments.
53426         Suggested by Bruno Haible.
53427
53428 2007-10-22  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/acl.c (copy_acl): Fix file name in comment.
53431
53432 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53433
53434         Fix Tru64 problem with stdbool.h.
53435         * lib/stdbool.in.h (false, true):
53436         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53437         Don't declare as an enum in this situation; it runs afoul of Tru64.
53438         Problem reported by Steven M. Schweda in
53439         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53440
53441 2007-10-22  Eric Blake  <ebb9@byu.net>
53442
53443         Also wrap vf?printf.
53444         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53445         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53446         (xvprintf, xvfprintf): New functions.
53447
53448 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53449
53450         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53451         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53452
53453         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53454         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53455
53456 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53459         by Bruno Haible.
53460
53461 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53462
53463         * lib/getloadavg.c
53464         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53465         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53466
53467         * tests/test-i-ring.c: Work for C89.
53468
53469 2007-10-22  Bruno Haible  <bruno@clisp.org>
53470
53471         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53472         -1u, in preprocessor expression, so that we don't test for the bug
53473         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53475
53476 2007-10-22  Eric Blake  <ebb9@byu.net>
53477
53478         * tests/test-yesno.sh: Silence stderr during test.
53479
53480 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53481
53482         * modules/crypto/gc-camellia: New file.
53483
53484         * m4/gc-camellia.m4: New file.
53485
53486         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53487
53488         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53489
53490 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53491
53492         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53493         --help to stdout.  Reported by sms@antinode.org (Steven
53494         M. Schweda).
53495
53496 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53497
53498         * users.txt: Fix link to libksba.
53499
53500 2007-10-21  Ben Pfaff  <blp@gnu.org>
53501
53502         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53503         round.c roundf implementation that depends on floorf and ceilf to
53504         be tested unconditionally.
53505
53506 2007-10-21  Ben Pfaff  <blp@gnu.org>
53507
53508         * m4/check-libm-func.m4: Removed.
53509         * m4/check-math-lib.m4: New file.
53510         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53511         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53512         definition and lack of AC_LIBOBJ([roundf]).
53513         * m4/roundl.m4: Ditto, and similarly for roundl.
53514         * modules/round: Reference new m4 file.
53515         * modules/roundf: Ditto.
53516         * modules/roundl: Ditto.
53517         * tests/test-round2.c (main): Use ROUND instead of round.
53518         Bug report from Bruno Haible.
53519
53520 2007-10-21  Bruno Haible  <bruno@clisp.org>
53521
53522         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53523         context.
53524
53525 2007-10-21  Bruno Haible  <bruno@clisp.org>
53526
53527         * tests/test-wcwidth.c (main): Allow negative result for some control
53528         characters.
53529
53530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53531         Needed on OSF/1 5.1.
53532
53533 2007-10-21  Bruno Haible  <bruno@clisp.org>
53534
53535         * tests/test-floorf1.c: Include isnanf.h.
53536         (main): Use isnanf() instead of isnan().
53537         * tests/test-ceilf1.c: Include isnanf.h.
53538         (main): Use isnanf() instead of isnan().
53539         * tests/test-truncf1.c: Include isnanf.h.
53540         (main): Use isnanf() instead of isnan().
53541         * tests/test-roundf1.c: Include isnanf.h.
53542         (main): Use isnanf() instead of isnan().
53543
53544 2007-10-21  Eric Blake  <ebb9@byu.net>
53545
53546         * users.txt: Update URL for m4.
53547
53548 2007-10-21  Bruno Haible  <bruno@clisp.org>
53549
53550         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53551
53552 2007-10-21  Bruno Haible  <bruno@clisp.org>
53553
53554         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53555         Git's management files if the CVS files are not present.
53556
53557 2007-10-20  Bruno Haible  <bruno@clisp.org>
53558
53559         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53560         gcc-3.4.x.
53561
53562 2007-10-20  Ben Pfaff  <blp@gnu.org>
53563
53564         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53565         implementations.
53566         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53567         * lib/round.c: New file.
53568         * lib/roundf.c: New file.
53569         * lib/roundl.c: New file.
53570         * m4/round.m4: New file.
53571         * m4/roundf.m4: New file.
53572         * m4/roundl.m4: New file.
53573         * m4/check-libm-func-m4: New file.
53574         * modules/math: Replace round, roundf, roundl related @VARS@ in
53575         math.in.h.
53576         * modules/round: New file.
53577         * modules/round-tests: New file.
53578         * modules/roundf: New file.
53579         * modules/roundf-tests: New file.
53580         * modules/roundl: New file.
53581         * modules/roundl-tests: New file.
53582         * tests/test-round1.c: New file.
53583         * tests/test-round2.c: New file.
53584         * tests/test-roundf1.c: New file.
53585         * tests/test-roundf2.c: New file.
53586         * tests/test-roundl.c: New file.
53587         * doc/functions/round.texi: Mention round module.
53588         * doc/functions/roundf.texi: Mention roundf module.
53589         * doc/functions/roundl.texi: Mention roundl module.
53590         * MODULES.html.sh: Mention new modules.
53591         Thanks to Bruno Haible for suggestions.
53592
53593 2007-10-20  Jim Meyering  <meyering@redhat.com>
53594
53595         * lib/xprintf.c: Include <config.h> unconditionally.
53596
53597         Change xprintf's license to GPL.
53598         * modules/xprintf (License): s/LGPL/GPL/, since this module
53599         depends on modules (exit and exitfail) which are GPL.
53600         Suggestion from Bruno Haible.
53601
53602         xprintf fixes.
53603         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53604         Use a clearer diagnostic.
53605         Patch from Bruno Haible.
53606
53607 2007-10-20  Bruno Haible  <bruno@clisp.org>
53608
53609         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53610         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53611         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53612
53613 2007-10-20  Bruno Haible  <bruno@clisp.org>
53614
53615         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53616         precision in the comparison result > x - 1 or similar.
53617         * tests/test-ceilf2.c (correct_result_p): Likewise.
53618         * tests/test-truncf2.c (correct_result_p): Likewise.
53619         * tests/test-trunc2.c (correct_result_p): Likewise.
53620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53621
53622 2007-10-20  Bruno Haible  <bruno@clisp.org>
53623
53624         * modules/ceil: New file.
53625         * m4/ceil.m4: New file.
53626         * doc/functions/ceil.texi: Mention the 'ceil' module.
53627
53628 2007-10-20  Bruno Haible  <bruno@clisp.org>
53629
53630         * modules/floor: New file.
53631         * m4/floor.m4: New file.
53632         * doc/functions/floor.texi: Mention the 'floor' module.
53633
53634 2007-10-20  Bruno Haible  <bruno@clisp.org>
53635
53636         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53637         of %a.
53638         * modules/floorf-tests (Depends-on): Likewise.
53639         * modules/truncf-tests (Depends-on): Likewise.
53640         * modules/trunc-tests (Depends-on): Likewise.
53641         Reported by Ben Pfaff.
53642
53643 2007-10-19  Jim Meyering  <meyering@redhat.com>
53644
53645         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53646         Don't bother testing specific errno values.  Just test ferror.
53647
53648         New module: xprintf
53649         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53650
53651 2007-10-19  Bruno Haible  <bruno@clisp.org>
53652
53653         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53654         syntax.
53655         * modules/javaexec (Makefile.am): Likewise.
53656         * modules/relocatable-prog (Makefile.am): Likewise.
53657         Suggested by Jim Meyering.
53658
53659 2007-10-18  Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53662         Reported by Jim Meyering.
53663
53664 2007-10-18  Eric Blake  <ebb9@byu.net>
53665
53666         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53667
53668 2007-10-18  Bruno Haible  <bruno@clisp.org>
53669
53670         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53671         the format string into writable memory. Needed in Fortify conditions.
53672
53673 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53674             Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53677         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53678         * modules/trim (Depends-on): Add mbchar.
53679         (configure.ac): Add gl_FUNC_MBRTOWC.
53680         (Makefile.am): Augment lib_SOURCES.
53681
53682 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53683
53684         Modify glob.c to use fstatat and dirfd, to simplify it.
53685         Suggested by Eric Blake.
53686         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53687         Don't include <stdbool.h>; not used.
53688         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53689         (link_exists_p): Simplify implementation, since we can now assume
53690         dirfd and fstatat.
53691         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53692
53693 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53694
53695         * gnulib-tool (func_get_dependencies): Fix sed script to
53696         match only tests.
53697
53698 2007-10-17  Bruno Haible  <bruno@clisp.org>
53699
53700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53701         allow locale names without encoding suffix.
53702         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53703         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53704
53705 2007-10-16  Bruno Haible  <bruno@clisp.org>
53706
53707         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53708         * lib/getgroups.c (getgroups): Likewise.
53709         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53710
53711 2007-10-16  Bruno Haible  <bruno@clisp.org>
53712
53713         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53714         * modules/malloc-posix (License): Likewise.
53715         * modules/realloc-posix (License): Likewise.
53716         * modules/calloc-posix (License): Likewise.
53717         * modules/intprops (License): Change from GPL to LGPL, with
53718         Paul Eggert's approval.
53719
53720 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53721
53722         Merge glibc changes into lib/glob.c.
53723
53724         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53725         2007-10-15 04:59:03 UTC.  Here are the changes:
53726
53727         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53728
53729         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53730
53731         * lib/glob.c: Add some branch prediction throughout.
53732
53733         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53734
53735         [BZ #5103]
53736         * lib/glob.c (glob): Recognize patterns starting \/.
53737
53738         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53739
53740         [BZ #3996]
53741         * lib/glob.c (attribute_hidden): Define if not defined.
53742         (glob): Unescape dirname, filename or username when needed and not
53743         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53744         is NULL.  Handle unescaped [ in pattern without closing ].
53745         Don't pass GLOB_CHECK down to recursive glob for directories.
53746         (__glob_pattern_type): New function.
53747         (__glob_pattern_p): Implement using __glob_pattern_type.
53748         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53749         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53750         Remove unreachable code.
53751
53752         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53753
53754         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53755         explain why there are no leaks.
53756
53757         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53758
53759         [BZ #3253]
53760         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53761         time, rather allocate increasingly bigger arrays of pointers, if
53762         possible with alloca, if too large with malloc.
53763
53764 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53765
53766         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53767         Problem reported by H.Merijn Brand in
53768         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53769         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53770         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53771
53772 2007-10-15  Bruno Haible  <bruno@clisp.org>
53773
53774         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53775         with explicit rpl_ prefix.
53776         * lib/fopen.c (fopen): Likewise.
53777         * lib/freopen.c (freopen): Likewise.
53778         * lib/iconv.c (iconv): Likewise.
53779         * lib/iconv_close.c (iconv_close): Likewise.
53780
53781 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53782
53783         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53784
53785 2007-10-15  Bruno Haible  <bruno@clisp.org>
53786
53787         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53788         <stddef.h> instead of <stdlib.h> since we only need NULL.
53789         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53790
53791 2007-10-15  Bruno Haible  <bruno@clisp.org>
53792
53793         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53794         Replace paragraph talking about LIBOBJS.
53795         Reported by Colin Watson <cjwatson@debian.org>.
53796
53797 2007-10-15  Bruno Haible  <bruno@clisp.org>
53798
53799         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53800         <stdlib.h> before using NULL.
53801
53802 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53803
53804         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53805         Reported by Albert Chin <china@thewrittenword.com>.
53806
53807 2007-10-14  Bruno Haible  <bruno@clisp.org>
53808
53809         * modules/iconv_open-utf-tests: New file.
53810         * tests/test-iconv-utf.c: New file.
53811
53812         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53813         * modules/iconv_open-utf: New file.
53814         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53815         (iconv, iconv_close): New declarations.
53816         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53817         be defined.
53818         (iconv_open): Add special handling of conversion between UTF-8 and
53819         UTF-{16,32}{BE,LE}.
53820         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53821         * lib/iconv_close.c: New file.
53822         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53823         gl_FUNC_ICONV_OPEN.
53824         (gl_FUNC_ICONV_OPEN): Use it.
53825         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53826         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53827         and REPLACE_ICONV_UTF.
53828         * modules/iconv_open (Depends-on): Add c-strcase.
53829         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53830         ICONV_CONST.
53831         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53832
53833 2007-10-13  Albert Chin  <china@thewrittenword.com>
53834             Bruno Haible  <bruno@clisp.org>
53835
53836         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53837         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53838
53839 2007-10-13  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53842         defined, use the ISO C99 inline semantics.
53843         * lib/argp.h (ARGP_EI): Likewise.
53844
53845 2007-10-13  Bruno Haible  <bruno@clisp.org>
53846
53847         Handle 'inline' change in gcc 4.3.0.
53848         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53849         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53850         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53851         argp_fmtstream_point): Disable 'extern' declaration if the function
53852         definition is going to be provided inline.
53853         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53854         semantics, not the ISO C99 inline semantics.
53855         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53856         'extern' declaration if the function definition is going to be provided
53857         inline.
53858         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53859         the GNU C inline semantics, not the ISO C99 inline semantics. With
53860         GCC 4.2, avoid a warning.
53861
53862 2007-10-13  Bruno Haible  <bruno@clisp.org>
53863
53864         * lib/freading.h (freading): Enable the use of __freading for
53865         glibc >= 2.7.
53866         * lib/freading.c (freading): Likewise.
53867
53868 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53869
53870         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53871         "warning: C99 inline functions are not supported; using GNU89".
53872
53873 2007-10-12  Bruno Haible  <bruno@clisp.org>
53874
53875         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
53876         of 2.
53877         * tests/test-ceilf2.c: New file.
53878         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
53879
53880         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
53881         * modules/ceilf-tests: Update.
53882
53883 2007-10-12  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
53886         of 2.
53887         * tests/test-floorf2.c: New file.
53888         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
53889
53890         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
53891         * modules/floorf-tests: Update.
53892
53893 2007-10-12  Bruno Haible  <bruno@clisp.org>
53894
53895         * tests/test-trunc2.c: New file.
53896         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
53897
53898         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
53899         * modules/trunc-tests: Update.
53900
53901 2007-10-12  Bruno Haible  <bruno@clisp.org>
53902
53903         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
53904         of 2.
53905         * tests/test-truncf2.c: New file.
53906         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
53907
53908         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
53909         * modules/truncf-tests: Update.
53910
53911 2007-10-11  Eric Blake  <ebb9@byu.net>
53912
53913         Don't claim strerror is broken on Interix.
53914         * doc/functions/strerror.texi (strerror): Known broken systems are
53915         now Solaris 8, and not Interix.
53916         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53917         Interix on cross-compile.
53918         Reported by Martin Koeppe in
53919         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53920
53921 2007-10-11  Bruno Haible  <bruno@clisp.org>
53922
53923         * modules/i-ring-tests: New file.
53924         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53925         instead of assert.
53926
53927 2007-10-11  Bruno Haible  <bruno@clisp.org>
53928
53929         * modules/filenamecat-tests: New file.
53930         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53931         * lib/filenamecat.c: Remove test code.
53932
53933 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53934
53935         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53936
53937         * lib/strerror.c: Include <string.h> always, to test interface,
53938         and to remove the need for the dummy.
53939         Include intprops.h to compute width instead of doing it ourselves
53940         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53941         (strerror): Define it to return NULL if there's no system strerror.
53942         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53943         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53944         ancient pre-strerror Unix systems well any more.  Saying "unknown
53945         system error" is enough.
53946         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53947         simpler strerror.c implementation.
53948         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53949         Simplify the tests to reflect the simpler strerror implementation.
53950         * modules/strerror (Depends-on): Add intprops.
53951
53952 2007-10-09  Eric Blake  <ebb9@byu.net>
53953
53954         Silence test-fpending.
53955         * modules/fpending-tests (Files): Add wrapper script.
53956         * tests/test-fpending.sh: New file.
53957
53958 2007-10-09  Bruno Haible  <bruno@clisp.org>
53959
53960         * MODULES.html.sh (func_module): Don't create a hyperlink for
53961         function names like 'printf_frexp'.
53962         (Misc): Add crc, memxor.
53963         (Characteristics of floating types): New section.
53964         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53965         isnanf-nolibm, signbit, trunc, truncf, truncl.
53966         (Enhancements for ISO C 99 functions): New subsection Input/output.
53967         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53968         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53969         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53970         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53971         (Enhancements for POSIX:2001 functions): Add chdir-long.
53972         (File system functions): Add areadlink, chdir-safer, read-file.
53973         Remove cycle-check.
53974         (File system as inode set): New section.
53975         (Date and time): Add gethrxtime.
53976         (Multithreading): Add openmp.
53977         (Internationalization functions): Add localename.
53978         (Unicode string functions): Add unistr/u*-mbsnlen.
53979         (Support for maintaining and releasing projects): Add git-version-gen.
53980         (Lone files): Remove directories.
53981
53982 2007-10-08  Ben Pfaff  <blp@gnu.org>
53983
53984         * lib/xmalloca.h: Fix typo in comment.
53985
53986 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53989         when avoiding problems with integer overflow.  Use a portable test
53990         instead.
53991
53992 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53993
53994         * modules/dummy (License): Change to LGPLv2+.
53995         * modules/float (License): Likewise
53996         * modules/realloc (License): Likewise
53997         * modules/stdlib (License): Likewise
53998
53999 2007-10-07  Bruno Haible  <bruno@clisp.org>
54000
54001         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54002         * floor.c (TWO_MANT_DIG): Likewise.
54003         * ceil.c (TWO_MANT_DIG): Likewise.
54004         Reported by Ben Pfaff.
54005
54006 2007-10-07  Bruno Haible  <bruno@clisp.org>
54007
54008         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54009         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54010         * lib/frexp.c (FUNC): Likewise.
54011         * lib/printf-frexp.h (printf_frexp): Likewise.
54012         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54013         * lib/printf-frexp.c (FUNC): Likewise.
54014         Suggested by Jim Meyering.
54015
54016 2007-10-07  Jim Meyering  <meyering@redhat.com>
54017
54018         Make xnanosleep's integer overflow test more robust.
54019         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54020         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54021
54022 2007-10-07  Bruno Haible  <bruno@clisp.org>
54023
54024         * NEWS: Mention the license change.
54025
54026         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54027         abbreviations in the modules files.
54028
54029         Change copyright notice from GPLv2+ to GPLv3+.
54030         * README: Change copyright notice.
54031         * MODULES.html.sh: Likewise.
54032         * build-aux/bootstrap.conf: Likewise.
54033         * build-aux/config.libpath: Likewise.
54034         * build-aux/csharpcomp.sh.in: Likewise.
54035         * build-aux/csharpexec.sh.in: Likewise.
54036         * build-aux/install-reloc: Likewise.
54037         * build-aux/javacomp.sh.in: Likewise.
54038         * build-aux/javaexec.sh.in: Likewise.
54039         * build-aux/ldd.sh.in: Likewise.
54040         * build-aux/reloc-ldflags: Likewise.
54041         * build-aux/relocatable.sh.in: Likewise.
54042         * build-aux/x-to-1.in: Likewise.
54043         * check-module: Likewise.
54044         * config/srclistvars.sh: Likewise.
54045         * gnulib-tool: Likewise.
54046         * lib/acl-internal.h: Likewise.
54047         * lib/acl.c: Likewise.
54048         * lib/acl.h: Likewise.
54049         * lib/acl_entries.c: Likewise.
54050         * lib/areadlink-with-size.c: Likewise.
54051         * lib/areadlink.c: Likewise.
54052         * lib/areadlink.h: Likewise.
54053         * lib/argmatch.c: Likewise.
54054         * lib/argmatch.h: Likewise.
54055         * lib/argp-ba.c: Likewise.
54056         * lib/argp-eexst.c: Likewise.
54057         * lib/argp-fmtstream.c: Likewise.
54058         * lib/argp-fmtstream.h: Likewise.
54059         * lib/argp-fs-xinl.c: Likewise.
54060         * lib/argp-help.c: Likewise.
54061         * lib/argp-namefrob.h: Likewise.
54062         * lib/argp-parse.c: Likewise.
54063         * lib/argp-pin.c: Likewise.
54064         * lib/argp-pv.c: Likewise.
54065         * lib/argp-pvh.c: Likewise.
54066         * lib/argp-xinl.c: Likewise.
54067         * lib/argp.h: Likewise.
54068         * lib/at-func.c: Likewise.
54069         * lib/atanl.c: Likewise.
54070         * lib/backupfile.c: Likewise.
54071         * lib/backupfile.h: Likewise.
54072         * lib/basename.c: Likewise.
54073         * lib/binary-io.h: Likewise.
54074         * lib/byteswap.in.h: Likewise.
54075         * lib/c-stack.c: Likewise.
54076         * lib/c-stack.h: Likewise.
54077         * lib/c-strcasestr.c: Likewise.
54078         * lib/c-strcasestr.h: Likewise.
54079         * lib/c-strstr.c: Likewise.
54080         * lib/c-strstr.h: Likewise.
54081         * lib/c-strtod.c: Likewise.
54082         * lib/calloc.c: Likewise.
54083         * lib/canon-host.c: Likewise.
54084         * lib/canon-host.h: Likewise.
54085         * lib/canonicalize-lgpl.c: Likewise.
54086         * lib/canonicalize.c: Likewise.
54087         * lib/canonicalize.h: Likewise.
54088         * lib/ceil.c: Likewise.
54089         * lib/ceilf.c: Likewise.
54090         * lib/ceill.c: Likewise.
54091         * lib/chdir-long.c: Likewise.
54092         * lib/chdir-long.h: Likewise.
54093         * lib/chdir-safer.c: Likewise.
54094         * lib/chdir-safer.h: Likewise.
54095         * lib/chown.c: Likewise.
54096         * lib/classpath.c: Likewise.
54097         * lib/classpath.h: Likewise.
54098         * lib/clean-temp.c: Likewise.
54099         * lib/clean-temp.h: Likewise.
54100         * lib/cloexec.c: Likewise.
54101         * lib/close-stream.c: Likewise.
54102         * lib/closein.c: Likewise.
54103         * lib/closein.h: Likewise.
54104         * lib/closeout.c: Likewise.
54105         * lib/closeout.h: Likewise.
54106         * lib/concat-filename.c: Likewise.
54107         * lib/copy-file.c: Likewise.
54108         * lib/copy-file.h: Likewise.
54109         * lib/count-one-bits.h: Likewise.
54110         * lib/crc.c: Likewise.
54111         * lib/crc.h: Likewise.
54112         * lib/creat-safer.c: Likewise.
54113         * lib/csharpcomp.c: Likewise.
54114         * lib/csharpcomp.h: Likewise.
54115         * lib/csharpexec.c: Likewise.
54116         * lib/csharpexec.h: Likewise.
54117         * lib/cycle-check.c: Likewise.
54118         * lib/cycle-check.h: Likewise.
54119         * lib/diacrit.c: Likewise.
54120         * lib/diacrit.h: Likewise.
54121         * lib/diffseq.h: Likewise.
54122         * lib/dirchownmod.c: Likewise.
54123         * lib/dirent.in.h: Likewise.
54124         * lib/dirfd.c: Likewise.
54125         * lib/dirfd.h: Likewise.
54126         * lib/dirname.c: Likewise.
54127         * lib/dirname.h: Likewise.
54128         * lib/dummy.c: Likewise.
54129         * lib/dup-safer.c: Likewise.
54130         * lib/dup2.c: Likewise.
54131         * lib/eealloc.h: Likewise.
54132         * lib/error.c: Likewise.
54133         * lib/error.h: Likewise.
54134         * lib/euidaccess.c: Likewise.
54135         * lib/exclude.c: Likewise.
54136         * lib/exclude.h: Likewise.
54137         * lib/execute.c: Likewise.
54138         * lib/execute.h: Likewise.
54139         * lib/exitfail.c: Likewise.
54140         * lib/exitfail.h: Likewise.
54141         * lib/expl.c: Likewise.
54142         * lib/fatal-signal.c: Likewise.
54143         * lib/fatal-signal.h: Likewise.
54144         * lib/fbufmode.c: Likewise.
54145         * lib/fbufmode.h: Likewise.
54146         * lib/fchdir.c: Likewise.
54147         * lib/fchmodat.c: Likewise.
54148         * lib/fchownat.c: Likewise.
54149         * lib/fcntl--.h: Likewise.
54150         * lib/fcntl-safer.h: Likewise.
54151         * lib/fcntl.in.h: Likewise.
54152         * lib/fd-safer.c: Likewise.
54153         * lib/fflush.c: Likewise.
54154         * lib/file-has-acl.c: Likewise.
54155         * lib/file-set.c: Likewise.
54156         * lib/file-type.c: Likewise.
54157         * lib/file-type.h: Likewise.
54158         * lib/fileblocks.c: Likewise.
54159         * lib/filemode.c: Likewise.
54160         * lib/filemode.h: Likewise.
54161         * lib/filename.h: Likewise.
54162         * lib/filenamecat.c: Likewise.
54163         * lib/filenamecat.h: Likewise.
54164         * lib/findprog.c: Likewise.
54165         * lib/findprog.h: Likewise.
54166         * lib/float.in.h: Likewise.
54167         * lib/floor.c: Likewise.
54168         * lib/floorf.c: Likewise.
54169         * lib/floorl.c: Likewise.
54170         * lib/fopen-safer.c: Likewise.
54171         * lib/fopen.c: Likewise.
54172         * lib/fpending.c: Likewise.
54173         * lib/fpending.h: Likewise.
54174         * lib/fprintf.c: Likewise.
54175         * lib/fprintftime.h: Likewise.
54176         * lib/fpucw.h: Likewise.
54177         * lib/fpurge.c: Likewise.
54178         * lib/fpurge.h: Likewise.
54179         * lib/freadable.c: Likewise.
54180         * lib/freadable.h: Likewise.
54181         * lib/freadahead.c: Likewise.
54182         * lib/freadahead.h: Likewise.
54183         * lib/freading.c: Likewise.
54184         * lib/freading.h: Likewise.
54185         * lib/free.c: Likewise.
54186         * lib/freopen.c: Likewise.
54187         * lib/frexp.c: Likewise.
54188         * lib/frexpl.c: Likewise.
54189         * lib/fseek.c: Likewise.
54190         * lib/fseterr.c: Likewise.
54191         * lib/fseterr.h: Likewise.
54192         * lib/fstatat.c: Likewise.
54193         * lib/fstrcmp.c: Likewise.
54194         * lib/fstrcmp.h: Likewise.
54195         * lib/fsusage.c: Likewise.
54196         * lib/fsusage.h: Likewise.
54197         * lib/ftell.c: Likewise.
54198         * lib/ftello.c: Likewise.
54199         * lib/fts-cycle.c: Likewise.
54200         * lib/fts.c: Likewise.
54201         * lib/fts_.h: Likewise.
54202         * lib/full-read.c: Likewise.
54203         * lib/full-read.h: Likewise.
54204         * lib/full-write.c: Likewise.
54205         * lib/full-write.h: Likewise.
54206         * lib/fwritable.c: Likewise.
54207         * lib/fwritable.h: Likewise.
54208         * lib/fwriteerror.c: Likewise.
54209         * lib/fwriteerror.h: Likewise.
54210         * lib/fwriting.c: Likewise.
54211         * lib/fwriting.h: Likewise.
54212         * lib/gcd.c: Likewise.
54213         * lib/gcd.h: Likewise.
54214         * lib/getcwd.c: Likewise.
54215         * lib/getdate.h: Likewise.
54216         * lib/getdate.y: Likewise.
54217         * lib/getdomainname.c: Likewise.
54218         * lib/getdomainname.h: Likewise.
54219         * lib/getgroups.c: Likewise.
54220         * lib/gethostname.c: Likewise.
54221         * lib/gethrxtime.c: Likewise.
54222         * lib/gethrxtime.h: Likewise.
54223         * lib/getloadavg.c: Likewise.
54224         * lib/getndelim2.c: Likewise.
54225         * lib/getndelim2.h: Likewise.
54226         * lib/getnline.c: Likewise.
54227         * lib/getnline.h: Likewise.
54228         * lib/getopt.c: Likewise.
54229         * lib/getopt.in.h: Likewise.
54230         * lib/getopt1.c: Likewise.
54231         * lib/getopt_int.h: Likewise.
54232         * lib/getpagesize.h: Likewise.
54233         * lib/getsubopt.c: Likewise.
54234         * lib/gettime.c: Likewise.
54235         * lib/getugroups.c: Likewise.
54236         * lib/getugroups.h: Likewise.
54237         * lib/getusershell.c: Likewise.
54238         * lib/gl_anyavltree_list1.h: Likewise.
54239         * lib/gl_anyavltree_list2.h: Likewise.
54240         * lib/gl_anyhash_list1.h: Likewise.
54241         * lib/gl_anyhash_list2.h: Likewise.
54242         * lib/gl_anylinked_list1.h: Likewise.
54243         * lib/gl_anylinked_list2.h: Likewise.
54244         * lib/gl_anyrbtree_list1.h: Likewise.
54245         * lib/gl_anyrbtree_list2.h: Likewise.
54246         * lib/gl_anytree_list1.h: Likewise.
54247         * lib/gl_anytree_list2.h: Likewise.
54248         * lib/gl_anytree_oset.h: Likewise.
54249         * lib/gl_anytreehash_list1.h: Likewise.
54250         * lib/gl_anytreehash_list2.h: Likewise.
54251         * lib/gl_array_list.c: Likewise.
54252         * lib/gl_array_list.h: Likewise.
54253         * lib/gl_array_oset.c: Likewise.
54254         * lib/gl_array_oset.h: Likewise.
54255         * lib/gl_avltree_list.c: Likewise.
54256         * lib/gl_avltree_list.h: Likewise.
54257         * lib/gl_avltree_oset.c: Likewise.
54258         * lib/gl_avltree_oset.h: Likewise.
54259         * lib/gl_avltreehash_list.c: Likewise.
54260         * lib/gl_avltreehash_list.h: Likewise.
54261         * lib/gl_carray_list.c: Likewise.
54262         * lib/gl_carray_list.h: Likewise.
54263         * lib/gl_linked_list.c: Likewise.
54264         * lib/gl_linked_list.h: Likewise.
54265         * lib/gl_linkedhash_list.c: Likewise.
54266         * lib/gl_linkedhash_list.h: Likewise.
54267         * lib/gl_list.c: Likewise.
54268         * lib/gl_list.h: Likewise.
54269         * lib/gl_oset.c: Likewise.
54270         * lib/gl_oset.h: Likewise.
54271         * lib/gl_rbtree_list.c: Likewise.
54272         * lib/gl_rbtree_list.h: Likewise.
54273         * lib/gl_rbtree_oset.c: Likewise.
54274         * lib/gl_rbtree_oset.h: Likewise.
54275         * lib/gl_rbtreehash_list.c: Likewise.
54276         * lib/gl_rbtreehash_list.h: Likewise.
54277         * lib/gl_sublist.c: Likewise.
54278         * lib/gl_sublist.h: Likewise.
54279         * lib/group-member.c: Likewise.
54280         * lib/group-member.h: Likewise.
54281         * lib/hard-locale.c: Likewise.
54282         * lib/hard-locale.h: Likewise.
54283         * lib/hash-pjw.c: Likewise.
54284         * lib/hash-pjw.h: Likewise.
54285         * lib/hash-triple.c: Likewise.
54286         * lib/hash.c: Likewise.
54287         * lib/hash.h: Likewise.
54288         * lib/human.c: Likewise.
54289         * lib/human.h: Likewise.
54290         * lib/i-ring.c: Likewise.
54291         * lib/i-ring.h: Likewise.
54292         * lib/idcache.c: Likewise.
54293         * lib/imaxabs.c: Likewise.
54294         * lib/imaxdiv.c: Likewise.
54295         * lib/inet_pton.c: Likewise.
54296         * lib/inet_pton.h: Likewise.
54297         * lib/intprops.h: Likewise.
54298         * lib/inttostr.c: Likewise.
54299         * lib/inttostr.h: Likewise.
54300         * lib/inttypes.in.h: Likewise.
54301         * lib/isapipe.c: Likewise.
54302         * lib/isdir.c: Likewise.
54303         * lib/isnan.c: Likewise.
54304         * lib/isnan.h: Likewise.
54305         * lib/isnanf.c: Likewise.
54306         * lib/isnanf.h: Likewise.
54307         * lib/isnanl-nolibm.h: Likewise.
54308         * lib/isnanl.c: Likewise.
54309         * lib/isnanl.h: Likewise.
54310         * lib/javacomp.c: Likewise.
54311         * lib/javacomp.h: Likewise.
54312         * lib/javaexec.c: Likewise.
54313         * lib/javaexec.h: Likewise.
54314         * lib/javaversion.c: Likewise.
54315         * lib/javaversion.h: Likewise.
54316         * lib/javaversion.java: Likewise.
54317         * lib/lbrkprop.h: Likewise.
54318         * lib/lchmod.h: Likewise.
54319         * lib/lchown.c: Likewise.
54320         * lib/ldexpl.c: Likewise.
54321         * lib/linebreak.c: Likewise.
54322         * lib/linebreak.h: Likewise.
54323         * lib/linebuffer.c: Likewise.
54324         * lib/linebuffer.h: Likewise.
54325         * lib/locale.in.h: Likewise.
54326         * lib/logl.c: Likewise.
54327         * lib/long-options.c: Likewise.
54328         * lib/long-options.h: Likewise.
54329         * lib/lstat.c: Likewise.
54330         * lib/lstat.h: Likewise.
54331         * lib/math.in.h: Likewise.
54332         * lib/mbchar.c: Likewise.
54333         * lib/mbchar.h: Likewise.
54334         * lib/mbfile.h: Likewise.
54335         * lib/mbiter.h: Likewise.
54336         * lib/mbscasecmp.c: Likewise.
54337         * lib/mbscasestr.c: Likewise.
54338         * lib/mbschr.c: Likewise.
54339         * lib/mbscspn.c: Likewise.
54340         * lib/mbslen.c: Likewise.
54341         * lib/mbsncasecmp.c: Likewise.
54342         * lib/mbsnlen.c: Likewise.
54343         * lib/mbspbrk.c: Likewise.
54344         * lib/mbspcasecmp.c: Likewise.
54345         * lib/mbsrchr.c: Likewise.
54346         * lib/mbssep.c: Likewise.
54347         * lib/mbsspn.c: Likewise.
54348         * lib/mbsstr.c: Likewise.
54349         * lib/mbstok_r.c: Likewise.
54350         * lib/mbswidth.c: Likewise.
54351         * lib/mbswidth.h: Likewise.
54352         * lib/mbuiter.h: Likewise.
54353         * lib/memcasecmp.c: Likewise.
54354         * lib/memcasecmp.h: Likewise.
54355         * lib/memchr.c: Likewise.
54356         * lib/memcmp.c: Likewise.
54357         * lib/memcoll.c: Likewise.
54358         * lib/memcoll.h: Likewise.
54359         * lib/memcpy.c: Likewise.
54360         * lib/memrchr.c: Likewise.
54361         * lib/mkancesdirs.c: Likewise.
54362         * lib/mkdir-p.c: Likewise.
54363         * lib/mkdir-p.h: Likewise.
54364         * lib/mkdir.c: Likewise.
54365         * lib/mkdirat.c: Likewise.
54366         * lib/mkdtemp.c: Likewise.
54367         * lib/mkstemp-safer.c: Likewise.
54368         * lib/mkstemp.c: Likewise.
54369         * lib/modechange.c: Likewise.
54370         * lib/modechange.h: Likewise.
54371         * lib/mountlist.c: Likewise.
54372         * lib/mountlist.h: Likewise.
54373         * lib/mpsort.c: Likewise.
54374         * lib/nanosleep.c: Likewise.
54375         * lib/obstack.c: Likewise.
54376         * lib/obstack.h: Likewise.
54377         * lib/open-safer.c: Likewise.
54378         * lib/open.c: Likewise.
54379         * lib/openat-die.c: Likewise.
54380         * lib/openat-priv.h: Likewise.
54381         * lib/openat-proc.c: Likewise.
54382         * lib/openat.c: Likewise.
54383         * lib/openat.h: Likewise.
54384         * lib/pagealign_alloc.c: Likewise.
54385         * lib/pagealign_alloc.h: Likewise.
54386         * lib/physmem.c: Likewise.
54387         * lib/physmem.h: Likewise.
54388         * lib/pipe-safer.c: Likewise.
54389         * lib/pipe.c: Likewise.
54390         * lib/pipe.h: Likewise.
54391         * lib/posixtm.c: Likewise.
54392         * lib/posixtm.h: Likewise.
54393         * lib/posixver.c: Likewise.
54394         * lib/printf-frexp.c: Likewise.
54395         * lib/printf-frexp.h: Likewise.
54396         * lib/printf-frexpl.c: Likewise.
54397         * lib/printf-frexpl.h: Likewise.
54398         * lib/printf.c: Likewise.
54399         * lib/progname.c: Likewise.
54400         * lib/progname.h: Likewise.
54401         * lib/progreloc.c: Likewise.
54402         * lib/putenv.c: Likewise.
54403         * lib/quote.c: Likewise.
54404         * lib/quote.h: Likewise.
54405         * lib/quotearg.c: Likewise.
54406         * lib/quotearg.h: Likewise.
54407         * lib/raise.c: Likewise.
54408         * lib/readline.c: Likewise.
54409         * lib/readline.h: Likewise.
54410         * lib/readlink.c: Likewise.
54411         * lib/readtokens.c: Likewise.
54412         * lib/readtokens.h: Likewise.
54413         * lib/readtokens0.c: Likewise.
54414         * lib/readtokens0.h: Likewise.
54415         * lib/readutmp.c: Likewise.
54416         * lib/readutmp.h: Likewise.
54417         * lib/realloc.c: Likewise.
54418         * lib/relocwrapper.c: Likewise.
54419         * lib/rename-dest-slash.c: Likewise.
54420         * lib/rename.c: Likewise.
54421         * lib/rmdir.c: Likewise.
54422         * lib/rpmatch.c: Likewise.
54423         * lib/safe-read.c: Likewise.
54424         * lib/safe-read.h: Likewise.
54425         * lib/safe-write.c: Likewise.
54426         * lib/safe-write.h: Likewise.
54427         * lib/same-inode.h: Likewise.
54428         * lib/same.c: Likewise.
54429         * lib/same.h: Likewise.
54430         * lib/save-cwd.c: Likewise.
54431         * lib/save-cwd.h: Likewise.
54432         * lib/savedir.c: Likewise.
54433         * lib/savedir.h: Likewise.
54434         * lib/savewd.c: Likewise.
54435         * lib/savewd.h: Likewise.
54436         * lib/search.in.h: Likewise.
54437         * lib/setenv.c: Likewise.
54438         * lib/setenv.h: Likewise.
54439         * lib/settime.c: Likewise.
54440         * lib/sh-quote.c: Likewise.
54441         * lib/sh-quote.h: Likewise.
54442         * lib/sig2str.c: Likewise.
54443         * lib/sig2str.h: Likewise.
54444         * lib/signal.in.h: Likewise.
54445         * lib/signbitd.c: Likewise.
54446         * lib/signbitf.c: Likewise.
54447         * lib/signbitl.c: Likewise.
54448         * lib/sigprocmask.c: Likewise.
54449         * lib/sincosl.c: Likewise.
54450         * lib/sleep.c: Likewise.
54451         * lib/sprintf.c: Likewise.
54452         * lib/sqrtl.c: Likewise.
54453         * lib/stat-time.h: Likewise.
54454         * lib/stdio--.h: Likewise.
54455         * lib/stdio-safer.h: Likewise.
54456         * lib/stdlib--.h: Likewise.
54457         * lib/stdlib-safer.h: Likewise.
54458         * lib/stdlib.in.h: Likewise.
54459         * lib/stpcpy.c: Likewise.
54460         * lib/stpncpy.c: Likewise.
54461         * lib/strchrnul.c: Likewise.
54462         * lib/strcspn.c: Likewise.
54463         * lib/strerror.c: Likewise.
54464         * lib/strftime.c: Likewise.
54465         * lib/strftime.h: Likewise.
54466         * lib/striconveh.c: Likewise.
54467         * lib/striconveh.h: Likewise.
54468         * lib/striconveha.c: Likewise.
54469         * lib/striconveha.h: Likewise.
54470         * lib/stripslash.c: Likewise.
54471         * lib/strnlen1.c: Likewise.
54472         * lib/strnlen1.h: Likewise.
54473         * lib/strtod.c: Likewise.
54474         * lib/strtoimax.c: Likewise.
54475         * lib/strtok_r.c: Likewise.
54476         * lib/strtol.c: Likewise.
54477         * lib/strtoll.c: Likewise.
54478         * lib/strtoul.c: Likewise.
54479         * lib/strtoull.c: Likewise.
54480         * lib/sysexits.in.h: Likewise.
54481         * lib/tempname.c: Likewise.
54482         * lib/tempname.h: Likewise.
54483         * lib/timespec.h: Likewise.
54484         * lib/tls.c: Likewise.
54485         * lib/tls.h: Likewise.
54486         * lib/tmpdir.c: Likewise.
54487         * lib/tmpdir.h: Likewise.
54488         * lib/tmpfile-safer.c: Likewise.
54489         * lib/tmpfile.c: Likewise.
54490         * lib/trigl.c: Likewise.
54491         * lib/trigl.h: Likewise.
54492         * lib/trim.c: Likewise.
54493         * lib/trim.h: Likewise.
54494         * lib/trunc.c: Likewise.
54495         * lib/truncf.c: Likewise.
54496         * lib/truncl.c: Likewise.
54497         * lib/tsearch.c: Likewise.
54498         * lib/unicodeio.c: Likewise.
54499         * lib/unicodeio.h: Likewise.
54500         * lib/unistd--.h: Likewise.
54501         * lib/unistd-safer.h: Likewise.
54502         * lib/unistdio/ulc-fprintf.c: Likewise.
54503         * lib/unistdio/ulc-vfprintf.c: Likewise.
54504         * lib/unlinkdir.c: Likewise.
54505         * lib/unlinkdir.h: Likewise.
54506         * lib/unlocked-io.h: Likewise.
54507         * lib/unsetenv.c: Likewise.
54508         * lib/userspec.c: Likewise.
54509         * lib/utime.c: Likewise.
54510         * lib/utimecmp.c: Likewise.
54511         * lib/utimecmp.h: Likewise.
54512         * lib/utimens.c: Likewise.
54513         * lib/verify.h: Likewise.
54514         * lib/verror.c: Likewise.
54515         * lib/verror.h: Likewise.
54516         * lib/version-etc-fsf.c: Likewise.
54517         * lib/version-etc.c: Likewise.
54518         * lib/version-etc.h: Likewise.
54519         * lib/vfprintf.c: Likewise.
54520         * lib/vprintf.c: Likewise.
54521         * lib/vsprintf.c: Likewise.
54522         * lib/w32spawn.h: Likewise.
54523         * lib/wait-process.c: Likewise.
54524         * lib/wait-process.h: Likewise.
54525         * lib/wcwidth.c: Likewise.
54526         * lib/write-any-file.c: Likewise.
54527         * lib/xalloc-die.c: Likewise.
54528         * lib/xalloc.h: Likewise.
54529         * lib/xasprintf.c: Likewise.
54530         * lib/xgetcwd.c: Likewise.
54531         * lib/xgetcwd.h: Likewise.
54532         * lib/xgetdomainname.c: Likewise.
54533         * lib/xgetdomainname.h: Likewise.
54534         * lib/xgethostname.c: Likewise.
54535         * lib/xmalloc.c: Likewise.
54536         * lib/xmalloca.c: Likewise.
54537         * lib/xmalloca.h: Likewise.
54538         * lib/xmemcoll.c: Likewise.
54539         * lib/xnanosleep.c: Likewise.
54540         * lib/xreadlink.c: Likewise.
54541         * lib/xreadlink.h: Likewise.
54542         * lib/xsetenv.c: Likewise.
54543         * lib/xsetenv.h: Likewise.
54544         * lib/xstriconv.c: Likewise.
54545         * lib/xstriconv.h: Likewise.
54546         * lib/xstrndup.c: Likewise.
54547         * lib/xstrndup.h: Likewise.
54548         * lib/xstrtod.c: Likewise.
54549         * lib/xstrtod.h: Likewise.
54550         * lib/xstrtol-error.c: Likewise.
54551         * lib/xstrtol.c: Likewise.
54552         * lib/xstrtol.h: Likewise.
54553         * lib/xtime.h: Likewise.
54554         * lib/xvasprintf.c: Likewise.
54555         * lib/xvasprintf.h: Likewise.
54556         * lib/yesno.c: Likewise.
54557         * lib/yesno.h: Likewise.
54558         * posix-modules: Likewise.
54559         * tests/test-alloca-opt.c: Likewise.
54560         * tests/test-arcfour.c: Likewise.
54561         * tests/test-arctwo.c: Likewise.
54562         * tests/test-argmatch.c: Likewise.
54563         * tests/test-argp-2.sh: Likewise.
54564         * tests/test-argp.c: Likewise.
54565         * tests/test-arpa_inet.c: Likewise.
54566         * tests/test-array_list.c: Likewise.
54567         * tests/test-array_oset.c: Likewise.
54568         * tests/test-atexit.c: Likewise.
54569         * tests/test-avltree_list.c: Likewise.
54570         * tests/test-avltree_oset.c: Likewise.
54571         * tests/test-avltreehash_list.c: Likewise.
54572         * tests/test-base64.c: Likewise.
54573         * tests/test-binary-io.c: Likewise.
54574         * tests/test-byteswap.c: Likewise.
54575         * tests/test-c-ctype.c: Likewise.
54576         * tests/test-c-strcasecmp.c: Likewise.
54577         * tests/test-c-strcasestr.c: Likewise.
54578         * tests/test-c-strncasecmp.c: Likewise.
54579         * tests/test-c-strstr.c: Likewise.
54580         * tests/test-canonicalize-lgpl.c: Likewise.
54581         * tests/test-canonicalize.c: Likewise.
54582         * tests/test-carray_list.c: Likewise.
54583         * tests/test-ceilf.c: Likewise.
54584         * tests/test-ceill.c: Likewise.
54585         * tests/test-count-one-bits.c: Likewise.
54586         * tests/test-crc.c: Likewise.
54587         * tests/test-dirname.c: Likewise.
54588         * tests/test-fbufmode.c: Likewise.
54589         * tests/test-fcntl.c: Likewise.
54590         * tests/test-fflush.c: Likewise.
54591         * tests/test-floorf.c: Likewise.
54592         * tests/test-floorl.c: Likewise.
54593         * tests/test-fopen.c: Likewise.
54594         * tests/test-fprintf-posix.c: Likewise.
54595         * tests/test-fprintf-posix.h: Likewise.
54596         * tests/test-fpurge.c: Likewise.
54597         * tests/test-freadable.c: Likewise.
54598         * tests/test-freadahead.c: Likewise.
54599         * tests/test-freading.c: Likewise.
54600         * tests/test-freopen.c: Likewise.
54601         * tests/test-frexp.c: Likewise.
54602         * tests/test-frexpl.c: Likewise.
54603         * tests/test-fseek.c: Likewise.
54604         * tests/test-fseeko.c: Likewise.
54605         * tests/test-fseterr.c: Likewise.
54606         * tests/test-fstrcmp.c: Likewise.
54607         * tests/test-ftell.c: Likewise.
54608         * tests/test-ftello.c: Likewise.
54609         * tests/test-fwritable.c: Likewise.
54610         * tests/test-fwriting.c: Likewise.
54611         * tests/test-getaddrinfo.c: Likewise.
54612         * tests/test-getpass.c: Likewise.
54613         * tests/test-gettimeofday.c: Likewise.
54614         * tests/test-hmac-md5.c: Likewise.
54615         * tests/test-hmac-sha1.c: Likewise.
54616         * tests/test-iconv.c: Likewise.
54617         * tests/test-iconvme.c: Likewise.
54618         * tests/test-inttypes.c: Likewise.
54619         * tests/test-isnan.c: Likewise.
54620         * tests/test-isnanf.c: Likewise.
54621         * tests/test-isnanl-nolibm.c: Likewise.
54622         * tests/test-isnanl.c: Likewise.
54623         * tests/test-isnanl.h: Likewise.
54624         * tests/test-ldexpl.c: Likewise.
54625         * tests/test-linked_list.c: Likewise.
54626         * tests/test-linkedhash_list.c: Likewise.
54627         * tests/test-locale.c: Likewise.
54628         * tests/test-localename.c: Likewise.
54629         * tests/test-lock.c: Likewise.
54630         * tests/test-lseek.c: Likewise.
54631         * tests/test-malloca.c: Likewise.
54632         * tests/test-math.c: Likewise.
54633         * tests/test-mbscasecmp.c: Likewise.
54634         * tests/test-mbscasestr1.c: Likewise.
54635         * tests/test-mbscasestr2.c: Likewise.
54636         * tests/test-mbscasestr3.c: Likewise.
54637         * tests/test-mbscasestr4.c: Likewise.
54638         * tests/test-mbschr.c: Likewise.
54639         * tests/test-mbscspn.c: Likewise.
54640         * tests/test-mbsncasecmp.c: Likewise.
54641         * tests/test-mbspbrk.c: Likewise.
54642         * tests/test-mbspcasecmp.c: Likewise.
54643         * tests/test-mbsrchr.c: Likewise.
54644         * tests/test-mbsspn.c: Likewise.
54645         * tests/test-mbsstr1.c: Likewise.
54646         * tests/test-mbsstr2.c: Likewise.
54647         * tests/test-mbsstr3.c: Likewise.
54648         * tests/test-md5.c: Likewise.
54649         * tests/test-memmem.c: Likewise.
54650         * tests/test-netinet_in.c: Likewise.
54651         * tests/test-open.c: Likewise.
54652         * tests/test-printf-frexp.c: Likewise.
54653         * tests/test-printf-frexpl.c: Likewise.
54654         * tests/test-printf-posix.c: Likewise.
54655         * tests/test-printf-posix.h: Likewise.
54656         * tests/test-rbtree_list.c: Likewise.
54657         * tests/test-rbtree_oset.c: Likewise.
54658         * tests/test-rbtreehash_list.c: Likewise.
54659         * tests/test-read-file.c: Likewise.
54660         * tests/test-rijndael.c: Likewise.
54661         * tests/test-search.c: Likewise.
54662         * tests/test-signbit.c: Likewise.
54663         * tests/test-sleep.c: Likewise.
54664         * tests/test-snprintf-posix.c: Likewise.
54665         * tests/test-snprintf-posix.h: Likewise.
54666         * tests/test-snprintf.c: Likewise.
54667         * tests/test-sprintf-posix.c: Likewise.
54668         * tests/test-sprintf-posix.h: Likewise.
54669         * tests/test-stat-time.c: Likewise.
54670         * tests/test-stdbool.c: Likewise.
54671         * tests/test-stdint.c: Likewise.
54672         * tests/test-stdio.c: Likewise.
54673         * tests/test-stdlib.c: Likewise.
54674         * tests/test-stpncpy.c: Likewise.
54675         * tests/test-strcasestr.c: Likewise.
54676         * tests/test-striconv.c: Likewise.
54677         * tests/test-striconveh.c: Likewise.
54678         * tests/test-striconveha.c: Likewise.
54679         * tests/test-string.c: Likewise.
54680         * tests/test-sys_select.c: Likewise.
54681         * tests/test-sys_socket.c: Likewise.
54682         * tests/test-sys_stat.c: Likewise.
54683         * tests/test-sys_time.c: Likewise.
54684         * tests/test-sysexits.c: Likewise.
54685         * tests/test-time.c: Likewise.
54686         * tests/test-tls.c: Likewise.
54687         * tests/test-trunc.c: Likewise.
54688         * tests/test-truncf.c: Likewise.
54689         * tests/test-truncl.c: Likewise.
54690         * tests/test-unistd.c: Likewise.
54691         * tests/test-vasnprintf-posix.c: Likewise.
54692         * tests/test-vasnprintf-posix2.c: Likewise.
54693         * tests/test-vasnprintf.c: Likewise.
54694         * tests/test-vasprintf-posix.c: Likewise.
54695         * tests/test-vasprintf.c: Likewise.
54696         * tests/test-verify.c: Likewise.
54697         * tests/test-vfprintf-posix.c: Likewise.
54698         * tests/test-vprintf-posix.c: Likewise.
54699         * tests/test-vsnprintf-posix.c: Likewise.
54700         * tests/test-vsnprintf.c: Likewise.
54701         * tests/test-vsprintf-posix.c: Likewise.
54702         * tests/test-wchar.c: Likewise.
54703         * tests/test-wctype.c: Likewise.
54704         * tests/test-wcwidth.c: Likewise.
54705         * tests/test-xstrtol.c: Likewise.
54706         * tests/test-xvasprintf.c: Likewise.
54707         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54708         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54709         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54710         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54711         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54712         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54713         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54714         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54715         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54716         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54717         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54718         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54719         * tests/uniname/test-uninames.c: Likewise.
54720         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54721         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54722         * tests/unistdio/test-u16-printf1.h: Likewise.
54723         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54724         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54725         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54726         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54727         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54728         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54729         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54730         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54731         * tests/unistdio/test-u32-printf1.h: Likewise.
54732         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54733         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54734         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54735         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54736         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54737         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54738         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54739         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54740         * tests/unistdio/test-u8-printf1.h: Likewise.
54741         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54742         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54743         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54744         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54745         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54746         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54747         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54748         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54749         * tests/unistdio/test-ulc-printf1.h: Likewise.
54750         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54751         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54752         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54753         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54754         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54755         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54756         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54757         * tests/uniwidth/test-u16-width.c: Likewise.
54758         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54759         * tests/uniwidth/test-u32-width.c: Likewise.
54760         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54761         * tests/uniwidth/test-u8-width.c: Likewise.
54762         * tests/uniwidth/test-uc_width.c: Likewise.
54763         * config/srclist-update: Likewise.
54764         (fixlicense): Update to GPLv3+.
54765
54766         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54767         * tests/test-tsearch.c: Change copyright notice.
54768
54769         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54770         * lib/c-strcaseeq.h: Change copyright notice.
54771         * lib/streq.h: Likewise.
54772         * lib/uniconv.h: Likewise.
54773         * lib/uniconv/u-conv-from-enc.h: Likewise.
54774         * lib/uniconv/u-conv-to-enc.h: Likewise.
54775         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54776         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54777         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54778         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54779         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54780         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54781         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54782         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54783         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54784         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54785         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54786         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54787         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54788         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54789         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54790         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54791         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54792         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54793         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54794         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54795         * lib/uniname.h: Likewise.
54796         * lib/uniname/uniname.c: Likewise.
54797         * lib/unistdio.h: Likewise.
54798         * lib/unistdio/u-asnprintf.h: Likewise.
54799         * lib/unistdio/u-asprintf.h: Likewise.
54800         * lib/unistdio/u-printf-args.c: Likewise.
54801         * lib/unistdio/u-printf-args.h: Likewise.
54802         * lib/unistdio/u-printf-parse.h: Likewise.
54803         * lib/unistdio/u-snprintf.h: Likewise.
54804         * lib/unistdio/u-sprintf.h: Likewise.
54805         * lib/unistdio/u-vasprintf.h: Likewise.
54806         * lib/unistdio/u-vsnprintf.h: Likewise.
54807         * lib/unistdio/u-vsprintf.h: Likewise.
54808         * lib/unistdio/u16-asnprintf.c: Likewise.
54809         * lib/unistdio/u16-asprintf.c: Likewise.
54810         * lib/unistdio/u16-printf-parse.c: Likewise.
54811         * lib/unistdio/u16-snprintf.c: Likewise.
54812         * lib/unistdio/u16-sprintf.c: Likewise.
54813         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54814         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54815         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54816         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54817         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54818         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54819         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54820         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54821         * lib/unistdio/u16-vasnprintf.c: Likewise.
54822         * lib/unistdio/u16-vasprintf.c: Likewise.
54823         * lib/unistdio/u16-vsnprintf.c: Likewise.
54824         * lib/unistdio/u16-vsprintf.c: Likewise.
54825         * lib/unistdio/u32-asnprintf.c: Likewise.
54826         * lib/unistdio/u32-asprintf.c: Likewise.
54827         * lib/unistdio/u32-printf-parse.c: Likewise.
54828         * lib/unistdio/u32-snprintf.c: Likewise.
54829         * lib/unistdio/u32-sprintf.c: Likewise.
54830         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54831         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54832         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54833         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54834         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54835         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54836         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54837         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54838         * lib/unistdio/u32-vasnprintf.c: Likewise.
54839         * lib/unistdio/u32-vasprintf.c: Likewise.
54840         * lib/unistdio/u32-vsnprintf.c: Likewise.
54841         * lib/unistdio/u32-vsprintf.c: Likewise.
54842         * lib/unistdio/u8-asnprintf.c: Likewise.
54843         * lib/unistdio/u8-asprintf.c: Likewise.
54844         * lib/unistdio/u8-printf-parse.c: Likewise.
54845         * lib/unistdio/u8-snprintf.c: Likewise.
54846         * lib/unistdio/u8-sprintf.c: Likewise.
54847         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54848         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54849         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54850         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54851         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54852         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54853         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54854         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54855         * lib/unistdio/u8-vasnprintf.c: Likewise.
54856         * lib/unistdio/u8-vasprintf.c: Likewise.
54857         * lib/unistdio/u8-vsnprintf.c: Likewise.
54858         * lib/unistdio/u8-vsprintf.c: Likewise.
54859         * lib/unistdio/ulc-asnprintf.c: Likewise.
54860         * lib/unistdio/ulc-asprintf.c: Likewise.
54861         * lib/unistdio/ulc-printf-parse.c: Likewise.
54862         * lib/unistdio/ulc-snprintf.c: Likewise.
54863         * lib/unistdio/ulc-sprintf.c: Likewise.
54864         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54865         * lib/unistdio/ulc-vasprintf.c: Likewise.
54866         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54867         * lib/unistdio/ulc-vsprintf.c: Likewise.
54868         * lib/unistr.h: Likewise.
54869         * lib/unistr/u-cpy-alloc.h: Likewise.
54870         * lib/unistr/u-cpy.h: Likewise.
54871         * lib/unistr/u-endswith.h: Likewise.
54872         * lib/unistr/u-move.h: Likewise.
54873         * lib/unistr/u-set.h: Likewise.
54874         * lib/unistr/u-startswith.h: Likewise.
54875         * lib/unistr/u-stpcpy.h: Likewise.
54876         * lib/unistr/u-stpncpy.h: Likewise.
54877         * lib/unistr/u-strcat.h: Likewise.
54878         * lib/unistr/u-strcpy.h: Likewise.
54879         * lib/unistr/u-strcspn.h: Likewise.
54880         * lib/unistr/u-strdup.h: Likewise.
54881         * lib/unistr/u-strlen.h: Likewise.
54882         * lib/unistr/u-strncat.h: Likewise.
54883         * lib/unistr/u-strncpy.h: Likewise.
54884         * lib/unistr/u-strnlen.h: Likewise.
54885         * lib/unistr/u-strpbrk.h: Likewise.
54886         * lib/unistr/u-strspn.h: Likewise.
54887         * lib/unistr/u-strstr.h: Likewise.
54888         * lib/unistr/u-strtok.h: Likewise.
54889         * lib/unistr/u16-check.c: Likewise.
54890         * lib/unistr/u16-chr.c: Likewise.
54891         * lib/unistr/u16-cmp.c: Likewise.
54892         * lib/unistr/u16-cpy-alloc.c: Likewise.
54893         * lib/unistr/u16-cpy.c: Likewise.
54894         * lib/unistr/u16-endswith.c: Likewise.
54895         * lib/unistr/u16-mblen.c: Likewise.
54896         * lib/unistr/u16-mbsnlen.c: Likewise.
54897         * lib/unistr/u16-mbtouc-aux.c: Likewise.
54898         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
54899         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
54900         * lib/unistr/u16-mbtouc.c: Likewise.
54901         * lib/unistr/u16-mbtoucr.c: Likewise.
54902         * lib/unistr/u16-move.c: Likewise.
54903         * lib/unistr/u16-next.c: Likewise.
54904         * lib/unistr/u16-prev.c: Likewise.
54905         * lib/unistr/u16-set.c: Likewise.
54906         * lib/unistr/u16-startswith.c: Likewise.
54907         * lib/unistr/u16-stpcpy.c: Likewise.
54908         * lib/unistr/u16-stpncpy.c: Likewise.
54909         * lib/unistr/u16-strcat.c: Likewise.
54910         * lib/unistr/u16-strchr.c: Likewise.
54911         * lib/unistr/u16-strcmp.c: Likewise.
54912         * lib/unistr/u16-strcpy.c: Likewise.
54913         * lib/unistr/u16-strcspn.c: Likewise.
54914         * lib/unistr/u16-strdup.c: Likewise.
54915         * lib/unistr/u16-strlen.c: Likewise.
54916         * lib/unistr/u16-strmblen.c: Likewise.
54917         * lib/unistr/u16-strmbtouc.c: Likewise.
54918         * lib/unistr/u16-strncat.c: Likewise.
54919         * lib/unistr/u16-strncmp.c: Likewise.
54920         * lib/unistr/u16-strncpy.c: Likewise.
54921         * lib/unistr/u16-strnlen.c: Likewise.
54922         * lib/unistr/u16-strpbrk.c: Likewise.
54923         * lib/unistr/u16-strrchr.c: Likewise.
54924         * lib/unistr/u16-strspn.c: Likewise.
54925         * lib/unistr/u16-strstr.c: Likewise.
54926         * lib/unistr/u16-strtok.c: Likewise.
54927         * lib/unistr/u16-to-u32.c: Likewise.
54928         * lib/unistr/u16-to-u8.c: Likewise.
54929         * lib/unistr/u16-uctomb-aux.c: Likewise.
54930         * lib/unistr/u16-uctomb.c: Likewise.
54931         * lib/unistr/u32-check.c: Likewise.
54932         * lib/unistr/u32-chr.c: Likewise.
54933         * lib/unistr/u32-cmp.c: Likewise.
54934         * lib/unistr/u32-cpy-alloc.c: Likewise.
54935         * lib/unistr/u32-cpy.c: Likewise.
54936         * lib/unistr/u32-endswith.c: Likewise.
54937         * lib/unistr/u32-mblen.c: Likewise.
54938         * lib/unistr/u32-mbsnlen.c: Likewise.
54939         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54940         * lib/unistr/u32-mbtouc.c: Likewise.
54941         * lib/unistr/u32-mbtoucr.c: Likewise.
54942         * lib/unistr/u32-move.c: Likewise.
54943         * lib/unistr/u32-next.c: Likewise.
54944         * lib/unistr/u32-prev.c: Likewise.
54945         * lib/unistr/u32-set.c: Likewise.
54946         * lib/unistr/u32-startswith.c: Likewise.
54947         * lib/unistr/u32-stpcpy.c: Likewise.
54948         * lib/unistr/u32-stpncpy.c: Likewise.
54949         * lib/unistr/u32-strcat.c: Likewise.
54950         * lib/unistr/u32-strchr.c: Likewise.
54951         * lib/unistr/u32-strcmp.c: Likewise.
54952         * lib/unistr/u32-strcpy.c: Likewise.
54953         * lib/unistr/u32-strcspn.c: Likewise.
54954         * lib/unistr/u32-strdup.c: Likewise.
54955         * lib/unistr/u32-strlen.c: Likewise.
54956         * lib/unistr/u32-strmblen.c: Likewise.
54957         * lib/unistr/u32-strmbtouc.c: Likewise.
54958         * lib/unistr/u32-strncat.c: Likewise.
54959         * lib/unistr/u32-strncmp.c: Likewise.
54960         * lib/unistr/u32-strncpy.c: Likewise.
54961         * lib/unistr/u32-strnlen.c: Likewise.
54962         * lib/unistr/u32-strpbrk.c: Likewise.
54963         * lib/unistr/u32-strrchr.c: Likewise.
54964         * lib/unistr/u32-strspn.c: Likewise.
54965         * lib/unistr/u32-strstr.c: Likewise.
54966         * lib/unistr/u32-strtok.c: Likewise.
54967         * lib/unistr/u32-to-u16.c: Likewise.
54968         * lib/unistr/u32-to-u8.c: Likewise.
54969         * lib/unistr/u32-uctomb.c: Likewise.
54970         * lib/unistr/u8-check.c: Likewise.
54971         * lib/unistr/u8-chr.c: Likewise.
54972         * lib/unistr/u8-cmp.c: Likewise.
54973         * lib/unistr/u8-cpy-alloc.c: Likewise.
54974         * lib/unistr/u8-cpy.c: Likewise.
54975         * lib/unistr/u8-endswith.c: Likewise.
54976         * lib/unistr/u8-mblen.c: Likewise.
54977         * lib/unistr/u8-mbsnlen.c: Likewise.
54978         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54979         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54980         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54981         * lib/unistr/u8-mbtouc.c: Likewise.
54982         * lib/unistr/u8-mbtoucr.c: Likewise.
54983         * lib/unistr/u8-move.c: Likewise.
54984         * lib/unistr/u8-next.c: Likewise.
54985         * lib/unistr/u8-prev.c: Likewise.
54986         * lib/unistr/u8-set.c: Likewise.
54987         * lib/unistr/u8-startswith.c: Likewise.
54988         * lib/unistr/u8-stpcpy.c: Likewise.
54989         * lib/unistr/u8-stpncpy.c: Likewise.
54990         * lib/unistr/u8-strcat.c: Likewise.
54991         * lib/unistr/u8-strchr.c: Likewise.
54992         * lib/unistr/u8-strcmp.c: Likewise.
54993         * lib/unistr/u8-strcpy.c: Likewise.
54994         * lib/unistr/u8-strcspn.c: Likewise.
54995         * lib/unistr/u8-strdup.c: Likewise.
54996         * lib/unistr/u8-strlen.c: Likewise.
54997         * lib/unistr/u8-strmblen.c: Likewise.
54998         * lib/unistr/u8-strmbtouc.c: Likewise.
54999         * lib/unistr/u8-strncat.c: Likewise.
55000         * lib/unistr/u8-strncmp.c: Likewise.
55001         * lib/unistr/u8-strncpy.c: Likewise.
55002         * lib/unistr/u8-strnlen.c: Likewise.
55003         * lib/unistr/u8-strpbrk.c: Likewise.
55004         * lib/unistr/u8-strrchr.c: Likewise.
55005         * lib/unistr/u8-strspn.c: Likewise.
55006         * lib/unistr/u8-strstr.c: Likewise.
55007         * lib/unistr/u8-strtok.c: Likewise.
55008         * lib/unistr/u8-to-u16.c: Likewise.
55009         * lib/unistr/u8-to-u32.c: Likewise.
55010         * lib/unistr/u8-uctomb-aux.c: Likewise.
55011         * lib/unistr/u8-uctomb.c: Likewise.
55012         * lib/unitypes.h: Likewise.
55013         * lib/uniwidth.h: Likewise.
55014         * lib/uniwidth/cjk.h: Likewise.
55015         * lib/uniwidth/u16-strwidth.c: Likewise.
55016         * lib/uniwidth/u16-width.c: Likewise.
55017         * lib/uniwidth/u32-strwidth.c: Likewise.
55018         * lib/uniwidth/u32-width.c: Likewise.
55019         * lib/uniwidth/u8-strwidth.c: Likewise.
55020         * lib/uniwidth/u8-width.c: Likewise.
55021         * lib/uniwidth/width.c: Likewise.
55022
55023 2007-10-07  Bruno Haible  <bruno@clisp.org>
55024
55025         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55026         The file is still under LGPL (see modules/inttypes).
55027
55028 2007-10-06  Bruno Haible  <bruno@clisp.org>
55029
55030         * modules/trunc (Dependencies): Add 'extensions'.
55031         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55032         Reported by Ben Pfaff <blp@gnu.org>.
55033
55034 2007-10-06  Bruno Haible  <bruno@clisp.org>
55035
55036         * modules/freopen-tests: New file.
55037         * tests/test-freopen.c: New file.
55038
55039         * modules/fopen-tests: New file.
55040         * tests/test-fopen.c: New file.
55041
55042         * modules/fopen: New file.
55043         * lib/fopen.c: New file.
55044         * m4/fopen.m4: New file.
55045         * modules/freopen: New file.
55046         * lib/freopen.c: New file.
55047         * m4/freopen.m4: New file.
55048         * lib/stdio.in.h (fopen, freopen): New declarations.
55049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55050         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55051         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55052         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55053         * doc/functions/fopen.texi: Mention the 'fopen' module.
55054         * doc/functions/freopen.texi: Mention the 'freopen' module.
55055
55056 2007-10-06  Bruno Haible  <bruno@clisp.org>
55057
55058         * modules/open-tests: New file.
55059         * tests/test-open.c: New file.
55060
55061         * modules/open: New file.
55062         * lib/open.c: New file.
55063         * m4/open.m4: New file.
55064         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55065         lib/open.c does.
55066         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55067         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55068         macros.
55069         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55070         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55071         REPLACE_OPEN.
55072         * doc/functions/open.texi: Mention the 'open' module.
55073
55074 2007-10-04  Bruno Haible  <bruno@clisp.org>
55075
55076         * modules/ceill-tests: New file.
55077         * tests/test-ceill.c: New file.
55078
55079         * modules/ceill: New file.
55080         * lib/ceill.c: Replace entire file.
55081         * m4/ceill.m4: New file.
55082         * lib/math.in.h (ceill): Replace declaration.
55083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55084         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55085         * doc/functions/ceill.texi: Mention the 'ceill' module.
55086         * modules/mathl (Files): Remove lib/ceill.c.
55087         (Depends-on): Add ceill.
55088
55089 2007-10-04  Bruno Haible  <bruno@clisp.org>
55090
55091         * modules/ceilf-tests: New file.
55092         * tests/test-ceilf.c: New file.
55093
55094         * modules/ceilf: New file.
55095         * lib/ceil.c: New file.
55096         * lib/ceilf.c: New file.
55097         * m4/ceilf.m4: New file.
55098         * lib/math.in.h (ceilf): New declaration.
55099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55100         HAVE_DECL_CEILF.
55101         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55102         HAVE_DECL_CEILF.
55103         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55104
55105 2007-10-04  Bruno Haible  <bruno@clisp.org>
55106
55107         * modules/floorl-tests: New file.
55108         * tests/test-floorl.c: New file.
55109
55110         * modules/floorl: New file.
55111         * lib/floorl.c: Replace entire file.
55112         * m4/floorl.m4: New file.
55113         * lib/math.in.h (floorl): Replace declaration.
55114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55115         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55116         * doc/functions/floorl.texi: Mention the 'floorl' module.
55117         * modules/mathl (Files): Remove lib/floorl.c.
55118         (Depends-on): Add floorl.
55119
55120 2007-10-04  Bruno Haible  <bruno@clisp.org>
55121
55122         * modules/floorf-tests: New file.
55123         * tests/test-floorf.c: New file.
55124
55125         * modules/floorf: New file.
55126         * lib/floor.c: New file.
55127         * lib/floorf.c: New file.
55128         * m4/floorf.m4: New file.
55129         * lib/math.in.h (floorf): New declaration.
55130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55131         HAVE_DECL_FLOORF.
55132         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55133         HAVE_DECL_FLOORF.
55134         * doc/functions/floorf.texi: Mention the 'floorf' module.
55135
55136 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55137             Bruno Haible  <bruno@clisp.org>
55138
55139         Advertise for the Git server instead of the CVS server.
55140         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55141         repository instead of the CVS one.
55142         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55143         about all VCS systems generically.
55144         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55145
55146 2007-10-04  Bruno Haible  <bruno@clisp.org>
55147
55148         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55149         means.
55150         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55151
55152 2007-10-04  Bruno Haible  <bruno@clisp.org>
55153
55154         * modules/truncl-tests: New file.
55155         * tests/test-truncl.c: New file.
55156
55157         * modules/truncl: New file.
55158         * lib/truncl.c: New file.
55159         * m4/truncl.m4: New file.
55160         * lib/math.in.h (truncl): New declaration.
55161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55162         HAVE_DECL_TRUNCL.
55163         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55164         HAVE_DECL_TRUNCL.
55165         * doc/functions/truncl.texi: Mention the 'truncl' module.
55166
55167 2007-10-04  Bruno Haible  <bruno@clisp.org>
55168
55169         * modules/truncf-tests: New file.
55170         * tests/test-truncf.c: New file.
55171
55172         * modules/truncf: New file.
55173         * lib/trunc.c: Make paramerizable through USE_* macros.
55174         * lib/truncf.c: New file.
55175         * m4/truncf.m4: New file.
55176         * lib/math.in.h (truncf): New declaration.
55177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55178         HAVE_DECL_TRUNCF.
55179         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55180         HAVE_DECL_TRUNCF.
55181         * doc/functions/truncf.texi: Mention the 'truncf' module.
55182
55183 2007-10-03  Bruno Haible  <bruno@clisp.org>
55184
55185         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55186         augmentation also for tests modules.
55187         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55188         * modules/atexit-tests (Makefile.am): Likewise.
55189         * modules/binary-io-tests (Makefile.am): Likewise.
55190         * modules/c-strcase-tests (Makefile.am): Likewise.
55191         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55192         * modules/canonicalize-tests (Makefile.am): Likewise.
55193         * modules/closein-tests (Makefile.am): Likewise.
55194         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55195         * modules/freadahead-tests (Makefile.am): Likewise.
55196         * modules/fseek-tests (Makefile.am): Likewise.
55197         * modules/fseeko-tests (Makefile.am): Likewise.
55198         * modules/ftell-tests (Makefile.am): Likewise.
55199         * modules/ftello-tests (Makefile.am): Likewise.
55200         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55201         * modules/isnanl-tests (Makefile.am): Likewise.
55202         * modules/lseek-tests (Makefile.am): Likewise.
55203         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55204         * modules/mbscasestr-tests (Makefile.am): Likewise.
55205         * modules/mbschr-tests (Makefile.am): Likewise.
55206         * modules/mbscspn-tests (Makefile.am): Likewise.
55207         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55208         * modules/mbspbrk-tests (Makefile.am): Likewise.
55209         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55210         * modules/mbsrchr-tests (Makefile.am): Likewise.
55211         * modules/mbsspn-tests (Makefile.am): Likewise.
55212         * modules/mbsstr-tests (Makefile.am): Likewise.
55213         * modules/printf-posix-tests (Makefile.am): Likewise.
55214         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55215         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55216         * modules/tsearch-tests (Makefile.am): Likewise.
55217         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55218         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55219         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55220         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55221         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55222         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55223         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55224         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55225         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55226         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55227         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55228         * modules/xstrtol-tests (Makefile.am): Likewise.
55229         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55230         * modules/yesno-tests (Makefile.am): Likewise.
55231
55232 2007-10-03  Bruno Haible  <bruno@clisp.org>
55233
55234         * modules/trunc-tests: New file.
55235         * tests/test-trunc.c: New file.
55236
55237         * modules/trunc: New file.
55238         * lib/trunc.c: New file.
55239         * m4/trunc.m4: New file.
55240         * lib/math.in.h (trunc): New declaration.
55241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55242         HAVE_DECL_TRUNC.
55243         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55244         HAVE_DECL_TRUNC.
55245         * doc/functions/trunc.texi: Mention the 'trunc' module.
55246
55247 2007-10-03  Bruno Haible  <bruno@clisp.org>
55248
55249         * tests/test-fpending.c: New file, mostly copied
55250         from coreutils/lib/t-fpending.c.
55251         * modules/fpending-tests: New file.
55252
55253 2007-10-03  Bruno Haible  <bruno@clisp.org>
55254
55255         Port the stdio extensions to QNX (untested).
55256         * lib/fseterr.c (fseterr): Add support for QNX.
55257         * lib/fbufmode.c (fbufmode): Likewise.
55258         * lib/freadable.c (freadable): Likewise.
55259         * lib/fwritable.c (fwritable): Likewise.
55260         * lib/freading.c (freading): Likewise.
55261         * lib/fwriting.c (fwriting): Likewise.
55262         * lib/freadahead.c (freadahed): Likewise.
55263         * lib/fpurge.c (fpurge): Likewise.
55264         * lib/fseeko.c (rpl_fseeko): Likewise.
55265
55266 2007-10-03  Bruno Haible  <bruno@clisp.org>
55267             Jim Meyering  <jim@meyering.net>
55268             Eric Blake  <ebb9@byu.net>
55269
55270         * doc/relocatable.texi: Use @command instead of @program.
55271
55272 2007-10-02  Jim Meyering  <jim@meyering.net>
55273
55274         Perform one more "_.h" -> ".in.h" substitution.
55275         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55276         instead of unistd_.h here, too.
55277
55278 2007-10-01  Bruno Haible  <bruno@clisp.org>
55279
55280         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55281         Needed for the alloca-opt module.
55282
55283 2007-09-30  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55286         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55287         alloca_.h.
55288         * lib/argz.in.h: Renamed from lib/argz_.h.
55289         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55290         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55291         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55292         byteswap_.h.
55293         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55294         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55295         dirent_.h.
55296         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55297         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55298         fcntl_.h.
55299         * lib/float.in.h: Renamed from lib/float_.h.
55300         * modules/float (Files, Makefile.am): Use float.in.h instead of
55301         float_.h.
55302         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55303         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55304         fnmatch_.h.
55305         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55306         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55307         getopt_.h.
55308         * lib/glob.in.h: Renamed from lib/glob_.h.
55309         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55310         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55311         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55312         iconv_.h.
55313         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55314         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55315         inttypes_.h.
55316         * lib/locale.in.h: Renamed from lib/locale_.h.
55317         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55318         locale_.h.
55319         * lib/math.in.h: Renamed from lib/math_.h.
55320         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55321         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55322         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55323         of netinet_in_.h. Add dependency.
55324         * lib/poll.in.h: Renamed from lib/poll_.h.
55325         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55326         * lib/search.in.h: Renamed from lib/search_.h.
55327         * modules/search (Files, Makefile.am): Use search.in.h instead of
55328         search_.h.
55329         * lib/signal.in.h: Renamed from lib/signal_.h.
55330         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55331         _signal.h.
55332         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55333         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55334         stdbool_.h.
55335         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55336         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55337         stdint_.h.
55338         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55339         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55340         stdio_.h.
55341         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55342         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55343         stdlib_.h.
55344         * lib/string.in.h: Renamed from lib/string_.h.
55345         * modules/string (Files, Makefile.am): Use string.in.h instead of
55346         string_.h.
55347         * doc/gnulib-tool.texi (Initial import): Update.
55348         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55349         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55350         of sys_select_.h. Add dependency.
55351         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55352         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55353         of sys_socket_.h.
55354         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55355         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55356         sys_stat_.h.
55357         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55358         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55359         sys_time_.h.
55360         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55361         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55362         sysexits_.h.
55363         * lib/time.in.h: Renamed from lib/time_.h.
55364         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55365         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55366         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55367         unistd_.h.
55368         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55369         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55370         wchar_.h.
55371         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55372         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55373         wctype_.h.
55374         * build-aux/bootstrap (slurp): Update.
55375         * lib/.cppi-disable: Update.
55376
55377 2007-09-30  Bruno Haible  <bruno@clisp.org>
55378
55379         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55380         Needed on BeOS.
55381
55382 2007-09-30  Bruno Haible  <bruno@clisp.org>
55383
55384         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55385
55386 2007-09-29  Bruno Haible  <bruno@clisp.org>
55387
55388         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55389
55390 2007-09-29  Bruno Haible  <bruno@clisp.org>
55391
55392         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55393         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55394         * build-aux/install-reloc: Compile also areadlink.c.
55395         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55396
55397 2007-09-29  Bruno Haible  <bruno@clisp.org>
55398
55399         * gnulib-tool (func_emit_initmacro_done): Indentation.
55400
55401 2007-09-29  Bruno Haible  <bruno@clisp.org>
55402
55403         * README: Add CVS checkout update instructions.
55404         Info from Bob Proulx <bob@proulx.com>.
55405
55406 2007-09-28  Eric Blake  <ebb9@byu.net>
55407
55408         Provide move-if-change.
55409         * build-aux/move-if-change: New file, based on best practice
55410         rather than any canonical upstream location.
55411
55412 2007-09-28  Jim Meyering  <jim@meyering.net>
55413
55414         Fix canonicalize loop-detection corner case.
55415         Do not attempt to stat the symlink values stored via seen_triple.
55416         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55417         on linux-2.6.18, (but not 2.6.22).
55418         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55419         triple_compare.  The former compares dev,ino,filename, while the latter
55420         would actually stat dirname(filename) when dev and ino were equal.
55421         * lib/hash-triple.c: Install <string.h>.
55422         (STREQ): Define.
55423         (triple_compare_ino_str): New function.
55424         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55425
55426 2007-09-28  Eric Blake  <ebb9@byu.net>
55427
55428         Enforce that AC_REPLACE_FUNCS files exist.
55429         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55430         override check for typos.
55431
55432         Fix test-closein on Solaris 10.
55433         * tests/test-closein.c (main): Don't assume stdin can be inherited
55434         closed on all systems.
55435         * tests/test-closein.sh: Likewise.
55436         Reported by Piotr Tarnowski.
55437
55438 2007-09-28  Jim Meyering  <jim@meyering.net>
55439
55440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55441
55442 2007-09-27  Jim Meyering  <jim@meyering.net>
55443
55444         canonicalize: Avoid a false-positive cycle failure.
55445         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55446         Sort.  Remove cycle-check.
55447         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55448         not cycle-check.h.
55449         (seen_triple): New function.
55450         (canonicalize_filename_mode): Use it instead of cycle-check.
55451         * tests/test-canonicalize.c: Add a test for this bug.
55452         * tests/test-canonicalize.sh: Set up and run the test.
55453
55454         New module, file-set, from coreutils.
55455         * modules/file-set: Define it.
55456         * lib/file-set.c, lib/file-set.h: Implement.
55457
55458         New module, hash-triple, from coreutils.
55459         * modules/hash-triple: Define it.
55460         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55461
55462 2007-09-25  Eric Blake  <ebb9@byu.net>
55463
55464         Fix strerror on Interix.
55465         * lib/string_.h (strerror): Declare replacement.
55466         * doc/functions/strerror.texi (strerror): Document the Interix
55467         shortcoming.
55468         * modules/string (Makefile.am): Support new hooks.
55469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55470         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55471         gl_FUNC_STRERROR_SEPARATE.
55472         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55473         * lib/strerror.c (rpl_strerror): Provide replacement.
55474         * modules/strerror (Depends-on): Add string.
55475         (configure.ac): Detect use of module.
55476         * tests/test-strerror.c: New file.
55477         * modules/strerror-tests: New test module.
55478         * modules/argp (Depends-on): Add strerror.
55479         * modules/error (Depends-on): Likewise.
55480         Reported by Martin Koeppe.
55481
55482 2007-09-24  Bruno Haible  <bruno@clisp.org>
55483
55484         * README: Update git instructions.
55485
55486 2007-09-24  Eric Blake  <ebb9@byu.net>
55487
55488         Revert fpending breakage from 2007-09-08.
55489         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55490         __fpending.c.
55491
55492 2007-09-24  Jim Meyering  <jim@meyering.net>
55493
55494         filenamecat.c: Add a test.
55495         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55496         showing how the function works when DIR is the empty string.
55497
55498 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55499
55500         * tests/test-canonicalize.sh: Turn on executable bit.
55501
55502 2007-09-19  Eric Blake  <ebb9@byu.net>
55503
55504         * README: Update CVS instructions.
55505
55506 2007-09-18  Bruno Haible  <bruno@clisp.org>
55507
55508         * modules/areadlink: New file.
55509         * lib/areadlink.h (areadlink): New declaration.
55510         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55511
55512 2007-09-17  Jim Meyering  <jim@meyering.net>
55513
55514         * lib/savewd.c (ESTALE) [!defined]: Define.
55515         Reported to be required on Interix by Martin Koeppe.
55516
55517 2007-09-17  Bruno Haible  <bruno@clisp.org>
55518
55519         * gnulib-tool (func_version): Use $version.
55520
55521 2007-09-16  Bruno Haible  <bruno@clisp.org>
55522
55523         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55524         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55525         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55526         Reported by Greg Schafer <gschafer@zip.com.au>.
55527
55528 2007-09-15  Bruno Haible  <bruno@clisp.org>
55529
55530         * gnulib-tool (sed): Try a little harder to make bash understand the
55531         alias.
55532         Reported by Bruce Korb <bruce.korb@gmail.com>.
55533
55534 2007-09-13  Eric Blake  <ebb9@byu.net>
55535
55536         * ChangeLog: Remove conflict markers.
55537
55538 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55539
55540         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55541         Reported by Bruno Haible <bruno@clisp.org>.
55542
55543 2007-09-12  Bruno Haible  <bruno@clisp.org>
55544
55545         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55546         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55547         is not defined.
55548
55549 2007-09-12  Eric Blake  <ebb9@byu.net>
55550
55551         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55552         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55553         Autoconf definition.
55554         * modules/euidaccess (Depends-on): Add extensions, for
55555         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55556         * modules/fnmatch (Depends-on): Likewise.
55557         * modules/getaddrinfo (Depends-on): Likewise.
55558         * modules/getdelim (Depends-on): Likewise.
55559         * modules/getline (Depends-on): Likewise.
55560         * modules/getsubopt (Depends-on): Likewise.
55561         * modules/gettext (Depends-on): Likewise.
55562         * modules/group-member (Depends-on): Likewise.
55563         * modules/mbchar (Depends-on): Likewise.
55564         * modules/memmem (Depends-on): Likewise.
55565         * modules/mempcpy (Depends-on): Likewise.
55566         * modules/memrchr (Depends-on): Likewise.
55567         * modules/pagealign_alloc (Depends-on): Likewise.
55568         * modules/readutmp (Depends-on): Likewise.
55569         * modules/stpcpy (Depends-on): Likewise.
55570         * modules/stpncpy (Depends-on): Likewise.
55571         * modules/strchrnul (Depends-on): Likewise.
55572         * modules/strndup (Depends-on): Likewise.
55573         * modules/strsep (Depends-on): Likewise.
55574         * modules/strverscmp (Depends-on): Likewise.
55575         * modules/vasprintf (Depends-on): Likewise.
55576         * modules/wcwidth (Depends-on): Likewise.
55577         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55578         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55579         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55581         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55582         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55583         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55584         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55585         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55586         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55588         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55589         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55590         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55591         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55592         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55593         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55594         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55595         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55596         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55597         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55598         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55599         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55600         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55601         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55603         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55604         so that lock.m4 can be used in gettext without extensions module.
55605
55606 2007-09-11  Bruno Haible  <bruno@clisp.org>
55607
55608         * m4/isc-posix.m4: Remove file.
55609         Suggested by Eric Blake.
55610
55611 2007-09-11  Eric Blake  <ebb9@byu.net>
55612
55613         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55614
55615 2007-09-10  Bruno Haible  <bruno@clisp.org>
55616
55617         * posix-modules: Fix typo in error message.
55618         Reported by Matt <mkraai@beckman.com>.
55619
55620 2007-09-09  Bruno Haible  <bruno@clisp.org>
55621
55622         * doc/functions/getdelim.texi: Update list of platforms lacking the
55623         function.
55624         * doc/functions/getline.texi: Likewise.
55625
55626 2007-09-09  Jim Meyering  <jim@meyering.net>
55627
55628         * lib/hash.c (hash_initialize): Detect calloc failure.
55629         Reported by Bruno Haible.
55630
55631 2007-09-09  Bruno Haible  <bruno@clisp.org>
55632
55633         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55634         malloc or realloc fails.
55635
55636 2007-09-09  Bruno Haible  <bruno@clisp.org>
55637
55638         * modules/getcwd (Depends-on): Add malloc-posix.
55639         * modules/glob (Depends-on): Likewise.
55640         * modules/putenv (Depends-on): Likewise.
55641         * modules/strdup (Depends-on): Likewise.
55642         * modules/getdelim (Depends-on): Add realloc-posix.
55643         * modules/read-file (Depends-on): Likewise.
55644
55645 2007-09-09  Bruno Haible  <bruno@clisp.org>
55646
55647         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55648         (gl_FUNC_MALLOC_POSIX): Require it.
55649         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55650         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55651         * modules/realloc (Files): Add m4/malloc.m4.
55652         * modules/calloc (Files): Likewise.
55653
55654 2007-09-09  Bruno Haible  <bruno@clisp.org>
55655
55656         * modules/malloc-posix: New file.
55657         * modules/malloc (Depends-on): Add malloc-posix.
55658         * lib/malloc.c: Include errno.h.
55659         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55660         and a POSIX-compatible malloc into a single function. Set ENOMEM
55661         when returning NULL.
55662         * m4/malloc.m4: New file.
55663         * doc/functions/malloc.texi: Mention the malloc-posix module.
55664         * lib/stdlib_.h (malloc): New declaration.
55665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55666         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55667         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55668         and HAVE_MALLOC_POSIX.
55669
55670 2007-09-09  Bruno Haible  <bruno@clisp.org>
55671
55672         * modules/realloc-posix: New file.
55673         * modules/realloc (Depends-on): Add realloc-posix.
55674         * lib/realloc.c: Include errno.h.
55675         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55676         and a POSIX-compatible realloc into a single function. Set ENOMEM
55677         when returning NULL.
55678         * m4/realloc.m4: New file.
55679         * doc/functions/realloc.texi: Mention the realloc-posix module.
55680         * lib/stdlib_.h (realloc): New declaration.
55681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55682         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55683         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55684         and HAVE_REALLOC_POSIX.
55685
55686 2007-09-09  Bruno Haible  <bruno@clisp.org>
55687
55688         * modules/calloc-posix: New file.
55689         * modules/calloc (Depends-on): Add calloc-posix.
55690         * lib/calloc.c: Include errno.h.
55691         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55692         and a POSIX-compatible calloc into a single function. Set ENOMEM
55693         when returning NULL.
55694         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55695         * doc/functions/calloc.texi: Mention the calloc-posix module.
55696         * lib/stdlib_.h (calloc): New declaration.
55697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55698         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55699         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55700         and HAVE_CALLOC_POSIX.
55701
55702 2007-09-09  Bruno Haible  <bruno@clisp.org>
55703
55704         Allow for modules to show an arbitrary notice.
55705         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55706         * gnulib-tool: New option --extract-notice.
55707         (func_usage): Document it.
55708         (sed_extract_prog): Update.
55709         (func_get_notice): New function.
55710         (func_modules_notice): New function.
55711         (func_import, func_create_testdir): Invoke it.
55712         Suggested by Jim Meyering.
55713
55714 2007-09-09  Bruno Haible  <bruno@clisp.org>
55715
55716         * gnulib-tool: New options --verbose, --quiet.
55717         (func_usage): Document them.
55718         (verbose): New variable.
55719         (func_execute_command): New function.
55720         (func_import): Don't show the module list and the file list if
55721         $verbose < 0.
55722         (func_create_testdir): Likewise. Use func_execute_command.
55723         (func_create_megatestdir): Use func_execute_command.
55724
55725 2007-09-08  Bruno Haible  <bruno@clisp.org>
55726
55727         * gnulib-tool (func_import): Prefer rsync over wget when available,
55728         for fetching the PO files.
55729
55730 2007-09-08  Bruno Haible  <bruno@clisp.org>
55731
55732         * posix-modules: New file. Portions copied from gnulib-tool.
55733         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55734
55735 2007-09-08  Jim Meyering  <jim@meyering.net>
55736
55737         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55738         * lib/fpending.h: Rename from __fpending.h.
55739         * lib/fpending.c: Rename from __fpending.c.
55740         Include "fpending.h", not "__fpending.h".
55741         * lib/__fpending.h, lib/__fpending.c: Remove files.
55742         * modules/fpending (Files): Reflect new file names.
55743         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55744
55745 2007-09-08  Bruno Haible  <bruno@clisp.org>
55746
55747         * m4/inttypes-h.m4: Remove stub file.
55748
55749 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55750
55751         * doc/headers/stdint.texi: Discuss #include_next issue.
55752
55753 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55754
55755         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55756
55757 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55758
55759         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55760         in variable name.
55761
55762 2007-09-03  Jim Meyering  <jim@meyering.net>
55763
55764         New module: git-version-gen.
55765         * modules/git-version-gen: New file.
55766
55767         Import changes from coreutils for bootstrap script.
55768
55769         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55770
55771         bootstrap: uses rsync to download the .po files
55772         * build-aux/bootstrap (po_download_command_format): New global.
55773         (download_po_files): Use rsync.
55774         (update_po_files): Don't remove .po files after download,
55775         so future rsync runs can take advantage of the copies.
55776
55777         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55778
55779         Solve the unnecessary-.po-file-regeneration problem once and for all.
55780         * build-aux/bootstrap (download_po_files): New function, renamed from
55781         get_translations.  Now, downloads, but doesn't update LINGUAS.
55782         (update_po_files): New function.
55783
55784         bootstrap: Ignore more.
55785         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55786         uniwidth to e.g., lib/.gitignore.
55787         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55788
55789         * build-aux/bootstrap: New setting: vc_ignore.
55790         (insert_sorted_if_absent): Create $file if absent.
55791         Adapt to new, possibly empty, list: $vc_ignore.
55792
55793         bootstrap: generate more ignorable names
55794         * build-aux/bootstrap (slurp): When generating ignorable names,
55795         also map .sin to .sed, .gperf to .c, and .y to .c.
55796
55797 2007-09-03  Jim Meyering  <jim@meyering.net>
55798
55799         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55800         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55801
55802 2007-09-02  Bruno Haible  <bruno@clisp.org>
55803
55804         Fix mis-recognition of 'mcs' on QNX 6.
55805         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55806         output contains the string "Mono".
55807         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55808         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55809
55810 2007-09-01  Bruno Haible  <bruno@clisp.org>
55811
55812         Fix collision between uniwidth/* and linebreak modules.
55813         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55814         u32_width): Remove declarations.
55815         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55816         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55817         streq3, streq2, streq1, streq0): Remove functions.
55818         (STREQ): Remove macro.
55819         (is_cjk_encoding): Remove function.
55820         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55821         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55822         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55823         * NEWS: Document the change.
55824
55825 2007-09-01  Bruno Haible  <bruno@clisp.org>
55826
55827         * lib/streq.h: Add double-inclusion guard.
55828
55829 2007-09-01  Karl Berry  <karl@gnu.org>
55830
55831         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55832
55833 2007-08-28  Jim Meyering  <jim@meyering.net>
55834
55835         Rename mreadlink_with_size to areadlink_with_size.
55836         * NEWS: Document the change.
55837         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55838         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55839         * lib/mreadlink.h: Rename this to...
55840         * lib/areadlink.h: ...this.
55841         * modules/mreadlink-with-size: Rename this to...
55842         * modules/areadlink-with-size: ...this.
55843         * lib/canonicalize.c: Reflect the renaming.
55844         * modules/canonicalize: Likewise.
55845
55846 2007-08-26  Bruno Haible  <bruno@clisp.org>
55847
55848         * gnulib-tool (func_import): When deciding which files to remove,
55849         consider also dangling symbolic links.
55850         Reported by Eric Blake.
55851
55852 2007-08-26  Bruno Haible  <bruno@clisp.org>
55853
55854         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55855
55856 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55857
55858         * lib/readline.c: Don't include getline.h, the prototype is now
55859         found in stdio.h.
55860
55861 2007-08-23  Jim Meyering  <jim@meyering.net>
55862
55863         Getdelim touchup.
55864         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55865         around the funlockfile call, since funlockfile never sets errno.
55866         Don't set errno upon failed realloc.
55867
55868 2007-08-22  Eric Blake  <ebb9@byu.net>
55869
55870         Getline touchups.
55871         * lib/getdelim.c (getdelim): Revert regression that required *n to
55872         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55873         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
55874         getdelim, rather than whether implementation is missing.
55875         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
55876         * lib/stdio_.h (getline): Also declare if replacement is
55877         required.
55878         * doc/functions/getdelim.texi: New file.
55879         * doc/functions/getline.texi: Likewise.
55880         * doc/gnulib.texi (Function Substitutes): Add new files.
55881         Reported by Bruno Haible.
55882
55883 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
55884
55885         * users.txt: Add Guile.
55886
55887 2007-08-22  Eric Blake  <ebb9@byu.net>
55888
55889         * tests/test-getdelim.c (main): Use remove, not unlink.
55890         * tests/test-getline.c (main): Likewise.
55891
55892         Move getline and getdelim into stdio.h, per POSIX 200x.
55893         * modules/getline (Files): Remove getline.h.
55894         (Depends-on): Add stdio.
55895         (configure.ac): Add module indicator.
55896         * modules/getdelim (Files): Remove getdelim.h.
55897         (Depends-on): Add stdio.
55898         (configure.ac): Add module indicator.
55899         * modules/stdio (Makefile.am): Work with new indicators.
55900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55901         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
55902         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55903         * lib/getdelim.h: Delete.
55904         * lib/getline.h: Delete.
55905         * lib/stdio_.h (getdelim, getline): Declare.
55906         * modules/getdelim-tests: New module.
55907         * modules/getline-tests: Likewise.
55908         * tests/test-getdelim.c: New file.
55909         * tests/test-getline.c: Likewise.
55910         * NEWS: Document the change.
55911         * lib/getline.c: Update choice of header.
55912         * lib/csharpcomp.c: Likewise.
55913         * lib/getpass.c: Likewise.
55914         * lib/javacomp.c: Likewise.
55915         * lib/javaversion.c: Likewise.
55916         * lib/yesno.c: Likewise.
55917         * lib/getdelim.c: Likewise.
55918         (getdelim): Set errno on failure, and avoid memory leak.
55919
55920 2007-08-19  Bruno Haible  <bruno@clisp.org>
55921
55922         * modules/closein (Depends-on): Add freadahead.
55923         * lib/closein.c: Include freadahead.h.
55924         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55925         is zero.
55926
55927 2007-08-19  Bruno Haible  <bruno@clisp.org>
55928
55929         * modules/freadahead-tests: New file.
55930         * tests/test-freadahead.sh: New file.
55931         * tests/test-freadahead.c: New file.
55932
55933         * modules/freadahead: New file.
55934         * lib/freadahead.h: New file.
55935         * lib/freadahead.c: New file.
55936         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55937         fbufmode, fpurge, freadable, fwritable.
55938
55939 2007-08-19  Eric Blake  <ebb9@byu.net>
55940
55941         Test yesno in combination with closein.
55942         * lib/yesno.c (yesno): Document use of stdin.
55943         * modules/yesno-tests (Files): New module.
55944         * tests/test-yesno.c (main): New file.
55945         * tests/test-yesno.sh: Likewise.
55946
55947 2007-08-19  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55950         * lib/fseeko.c (rpl_fseeko): Likewise.
55951         * lib/fseterr.c (fseterr): Likewise.
55952
55953 2007-08-19  Bruno Haible  <bruno@clisp.org>
55954
55955         * tests/test-lseek.c (main): Disable a test for BeOS.
55956         * doc/functions/lseek.texi: Document the BeOS bug.
55957
55958 2007-08-19  Bruno Haible  <bruno@clisp.org>
55959             Eric Blake  <ebb9@byu.net>
55960
55961         * lib/lseek.c: Include <sys/stat.h>.
55962         (rpl_lseek): Add workaround code also for Unix platforms.
55963         Needed for BeOS.
55964         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55965         * doc/functions/lseek.texi: Document BeOS definiency.
55966
55967 2007-08-18  Bruno Haible  <bruno@clisp.org>
55968
55969         * modules/fstrcmp-tests: New file.
55970         * tests/test-fstrcmp.c: New file.
55971
55972 2007-08-18  Bruno Haible  <bruno@clisp.org>
55973
55974         * modules/fstrcmp: New file, from GNU gettext with modifications.
55975         * lib/fstrcmp.h: New file, from GNU gettext.
55976         * lib/fstrcmp.c: New file, from GNU gettext.
55977         * MODULES.html.sh (String handling): Add fstrcmp.
55978
55979 2007-08-18  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55982         'bool'.
55983         (diag, compareseq): Remove const from the ctxt argument.
55984         (USE_HEURISTIC): Undefine at the end.
55985
55986 2007-08-18  Jim Meyering  <jim@meyering.net>
55987
55988         New file: lib/idcache.h
55989         * NEWS: Mention the addition.
55990         * modules/idcache (Files): Add lib/idcache.h
55991         * lib/idcache.c: Include "idcache.h".
55992         Don't include <sys/types.h>.
55993         Add a FIXME comment.
55994         Move file-scoped "static" declarations to the top.
55995         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55996
55997 2007-08-17  Bruno Haible  <bruno@clisp.org>
55998         and Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         * MODULES.html.sh: Add diffseq.
56001         * modules/diffseq: New file.
56002         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56003         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56004
56005 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56006
56007         Import changes from coreutils for bootstrap script.
56008
56009         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56010
56011         * build-aux/bootstrap (slurp): Work even in environments where
56012         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56013         current code does not slurp files whose names start with ".", and
56014         this looks like it might be a troublesome area.
56015
56016         2007-07-11  Jim Meyering  <jim@meyering.net>
56017
56018         If there's a GPL vN copyright comment, require that N == 3.
56019
56020         2007-07-08  Jim Meyering  <jim@meyering.net>
56021
56022         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56023         * build-aux/bootstrap (mam_template): Move definition out of loop.
56024
56025         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56026
56027         * build-aux/bootstrap (symlink_to_dir): Rename function from
56028         symlink_to_gnulib.  Add a directory parameter.  Update all
56029         callers.
56030         (cp_mark_as_generated): Also check for -- and link to -- files in
56031         gl/.
56032
56033         2007-07-08  Jim Meyering  <jim@meyering.net>
56034
56035         Adapt to deeper hierarchy in gnulib.
56036         * build-aux/bootstrap (symlink_to_dir): If the destination
56037         directory doesn't exist, create it. This is required at least for
56038         "lib/uniwidth/cjk.h".
56039
56040         2007-05-15  Jim Meyering  <jim@meyering.net>
56041
56042         * build-aux/bootstrap: Now that generated Makefile.am files
56043         are no longer under version control, they must be created at
56044         bootstrap time.
56045
56046 2007-08-14  Ben Pfaff  <blp@gnu.org>
56047
56048         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56049
56050 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56051
56052         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56053         given the changes below.
56054         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56055         even on hosts that have padding bits beyond the supported 64.
56056
56057 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56058
56059         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56060         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56061         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56062         depends on it.
56063         (xstrtol_error): Remove.
56064         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56065         but with a different signature.
56066         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56067         * lib/xstrtol-error.c: Include exitfail.h.
56068         (xstrtol_fatal): New function, with a different signature from the
56069         old xstrtol_error, so that the caller need not worry about passing
56070         in an exit status, or about storage management of the option argument.
56071         (xstrtol_error): Now a static function.  Redo signature to
56072         implement xstrtol_fatal.  Output the correct number of hyphens in
56073         front of the option so that the caller need not worry about
56074         storage management.
56075         (N_): New macro.
56076         (_): Remove; not used now.
56077         * modules/xstrtol: Depend on getopt.
56078         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56079         of old STRTOL_FATAL_ERROR macro.
56080         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56081         of test program.
56082         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56083         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56084
56085 2007-08-08  Eric Blake  <ebb9@byu.net>
56086
56087         * lib/xstrtol-error.c: Add missing include.
56088
56089         Move xstrtol messages into gnulib domain, when --pobase is used.
56090         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56091         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56092         * modules/xstrtol (Files): Distribute new file.
56093         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56094         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56095         * tests/test-xstrtol.c: ...into new file.
56096         * tests/test-xstrtoul.c: Also test xstrtoul.
56097         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56098         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56099         * tests/test-xstrtol.sh: Drive the tests.
56100         * tests/test-xstrtoimax.sh: Likewise.
56101         * tests/test-xstrtoumax.sh: Likewise.
56102         * modules/xstrtol-tests: New module.
56103         * modules/xstrtoimax-tests: Likewise.
56104         * modules/xstrtoumax-tests: Likewise.
56105
56106 2007-08-08  Jim Meyering  <jim@meyering.net>
56107
56108         New function: mfile_name_concat.
56109         * lib/filenamecat.c (mfile_name_concat): New function, just like
56110         file_name_concat, but return NULL upon failure rather than exiting
56111         with a diagnostic.
56112         * lib/filenamecat.h: Declare it.
56113
56114 2007-08-07  Bruno Haible  <bruno@clisp.org>
56115
56116         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56117         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56118         warning from gcc.
56119         Reported by Eric Blake.
56120
56121 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56122
56123         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56124         * modules/crypto/arcfour (License): Likewise.
56125         * modules/crypto/des-tests (License): Likewise.
56126         * modules/crypto/gc-arctwo-tests (License): Likewise.
56127         * modules/crypto/gc-des-tests (License): Likewise.
56128         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56129         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56130         * modules/crypto/gc-md2-tests (License): Likewise.
56131         * modules/crypto/gc-md4-tests (License): Likewise.
56132         * modules/crypto/gc-md5-tests (License): Likewise.
56133         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56134         * modules/crypto/gc-rijndael-tests (License): Likewise.
56135         * modules/crypto/gc-sha1-tests (License): Likewise.
56136         * modules/crypto/gc-tests (License): Likewise.
56137         * modules/crypto/hmac-md5 (License): Likewise.
56138         * modules/crypto/hmac-sha1 (License): Likewise.
56139         * modules/crypto/md2-tests (License): Likewise.
56140         * modules/crypto/md4-tests (License): Likewise.
56141         * modules/crypto/md5 (License): Likewise.
56142         * modules/crypto/rijndael (License): Likewise.
56143         * modules/crypto/sha1 (License): Likewise.
56144         * modules/memxor (License): Likewise.
56145
56146 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56147         and Bruno Haible  <bruno@clisp.org>
56148
56149         * NEWS: Describe interface changes to human, xstrtol.
56150         * lib/human.h: Include <xstrtol.h>.
56151         (human_options): Return enum strtol_error, not int.  Remove
56152         bool arg; take int * instead.
56153         * lib/human.c: Don't include "gettext.h".
56154         (_): Remove; no longer used.
56155         Don't include <xstrtol.h>, since human.h does it.
56156         (human_options): Adjust to abovementioned interface changes.
56157         Do not report error to stderr; that's now the caller's
56158         responsibility.
56159         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56160         interface change.
56161         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56162         Str, Argument_type_string.  All uses changed.  Put " argument"
56163         in diagnostics to make them clearer.  Change wording of suffix
56164         message for clarity.
56165         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56166         Argument_type_string.
56167         (STRTOL_FATAL_WARN): Remove; no longer used.
56168         * modules/human (Depends-on): Remove gettext-h.
56169
56170 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56171
56172         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56173
56174 2007-07-31  Bruno Haible  <bruno@clisp.org>
56175
56176         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56177         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56178         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56179
56180 2007-07-31  Bruno Haible  <bruno@clisp.org>
56181
56182         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56183         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56184
56185 2007-07-30  Bruno Haible  <bruno@clisp.org>
56186
56187         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56188         * modules/c-ctype (License): Likewise.
56189         * modules/c-strcase (License): Likewise.
56190         * modules/check-version (License): Likewise.
56191         * modules/iconv (License): Likewise.
56192         * modules/iconv_open (License): Likewise.
56193         * modules/read-file (License): Likewise.
56194         * modules/striconv (License): Likewise.
56195         * modules/strverscmp (License): Likewise.
56196         * modules/vasprintf (License): Likewise.
56197         * modules/crypto/des (License): Likewise.
56198         * modules/crypto/gc (License): Likewise.
56199         * modules/crypto/gc-arcfour (License): Likewise.
56200         * modules/crypto/gc-arctwo (License): Likewise.
56201         * modules/crypto/gc-des (License): Likewise.
56202         * modules/crypto/gc-hmac-md5 (License): Likewise.
56203         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56204         * modules/crypto/gc-md2 (License): Likewise.
56205         * modules/crypto/gc-md4 (License): Likewise.
56206         * modules/crypto/gc-md5 (License): Likewise.
56207         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56208         * modules/crypto/gc-random (License): Likewise.
56209         * modules/crypto/gc-rijndael (License): Likewise.
56210         * modules/crypto/gc-sha1 (License): Likewise.
56211         * modules/crypto/md2 (License): Likewise.
56212         * modules/crypto/md4 (License): Likewise.
56213
56214 2007-07-30  Jim Meyering  <jim@meyering.net>
56215
56216         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56217         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56218         it has valid stat data.  This bug would cause du not to count the
56219         sizes of inaccessible directories.
56220         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56221         in <http://bugzilla.redhat.com/250077>.
56222
56223 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56224             Bruno Haible  <bruno@clisp.org>
56225
56226         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56227         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56228         #include_next, gives a diagnostic about it, but reports no error in
56229         the exit code.
56230         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56231
56232 2007-07-24  Ben Pfaff  <blp@gnu.org>
56233
56234         Improve name: "count-one-bits" is better than "popcount".
56235         * MODULES.html.sh: Update name.
56236         * lib/popcount.h: Renamed lib/count-one-bits.h.
56237         (popcount): Renamed count_one_bits.
56238         (popcountl): Renamed count_one_bits_l.
56239         (popcountll): Renamed count_one_bits_ll.
56240         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56241         * modules/popcount: Renamed module/count-one-bits.
56242         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56243         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56244
56245 2007-07-23  Ben Pfaff  <blp@gnu.org>
56246
56247         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56248         better code generation, and add U to large constants to avoid
56249         warnings, in non-GCC case.
56250         Suggested by Bruno Haible.
56251
56252 2007-07-23  Ben Pfaff  <blp@gnu.org>
56253
56254         * lib/popcount.h: Use verify_true instead of if...abort.
56255         * modules/popcount: Depend on verify module.
56256         Suggested by Jim Meyering.
56257
56258 2007-07-23  Bruno Haible  <bruno@clisp.org>
56259
56260         * gnulib-tool (func_import): Create a .cvsignore file also when the
56261         directory is not yet in CVS but the toplevel directory is. When
56262         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56263         Reported by Karl Berry.
56264
56265 2007-07-22  Ben Pfaff  <blp@gnu.org>
56266
56267         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56268         case.
56269         Suggested by Eric Blake.
56270
56271 2007-07-22  Ben Pfaff  <blp@gnu.org>
56272
56273         New module: popcount.
56274         * MODULES.html.sh: Add popcount.
56275         * modules/popcount: New file.
56276         * modules/popcount-tests: New file.
56277         * tests/test-popcount.c: New file.
56278         * lib/popcount.h: New file.
56279         * m4/popcount.m4: New file.
56280
56281 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56282
56283         * build-aux/announce-gen: Update to GPLv3.
56284
56285         * build-aux/config.guess: Update from config.
56286
56287 2007-07-21  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56290         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56291
56292 2007-07-20  Jim Meyering  <jim@meyering.net>
56293
56294         * check-module: Diagnose a self-dependency.
56295
56296 2007-07-19  Bruno Haible  <bruno@clisp.org>
56297
56298         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56299         empty.
56300         Reported by Eric Blake.
56301
56302 2007-07-18  Bruno Haible  <bruno@clisp.org>
56303
56304         * gnulib-tool: New options --po-base, --po-domain.
56305         (func_usage): Document them.
56306         (pobase, po_domain): New variables.
56307         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56308         DEFAULT_TEXT_DOMAIN.
56309         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56310         (func_import): Consider pobase and po_domain. Create a po/ directory.
56311         (func_create_testdir): Set pobase and po_domain to empty.
56312         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56313         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56314
56315 2007-07-18  Bruno Haible  <bruno@clisp.org>
56316
56317         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56318         EXTRA_DIST augmentation for files in build-aux/.
56319
56320 2007-07-16  Bruno Haible  <bruno@clisp.org>
56321
56322         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56323         * modules/getdelim (License): Likewise.
56324
56325 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56326
56327         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56328         * modules/d-type (License): Likewise.
56329         * modules/extensions (License): Likewise.
56330         * modules/fnmatch (License): Likewise.
56331         * modules/fseeko (License): Likewise.
56332         * modules/getaddrinfo (License): Likewise.
56333         * modules/getline (License): Likewise.
56334         * modules/getlogin_r (License): Likewise.
56335         * modules/getpass (License): Likewise.
56336         * modules/gettimeofday (License): Likewise.
56337         * modules/glob (License): Likewise.
56338         * modules/inet_ntop (License): Likewise.
56339         * modules/malloc (License): Likewise.
56340         * modules/malloca (License): Likewise.
56341         * modules/memmem (License): Likewise.
56342         * modules/mempcpy (License): Likewise.
56343         * modules/memset (License): Likewise.
56344         * modules/minmax (License): Likewise.
56345         * modules/mktime (License): Likewise.
56346         * modules/netinet_in (License): Likewise.
56347         * modules/pathmax (License): Likewise.
56348         * modules/poll (License): Likewise.
56349         * modules/regex (License): Likewise.
56350         * modules/snprintf (License): Likewise.
56351         * modules/stdbool (License): Likewise.
56352         * modules/stdint (License): Likewise.
56353         * modules/stdio (License): Likewise.
56354         * modules/strcase (License): Likewise.
56355         * modules/strcasestr (License): Likewise.
56356         * modules/strdup (License): Likewise.
56357         * modules/string (License): Likewise.
56358         * modules/strndup (License): Likewise.
56359         * modules/strnlen (License): Likewise.
56360         * modules/strpbrk (License): Likewise.
56361         * modules/strptime (License): Likewise.
56362         * modules/strsep (License): Likewise.
56363         * modules/sys_select (License): Likewise.
56364         * modules/sys_socket (License): Likewise.
56365         * modules/sys_stat (License): Likewise.
56366         * modules/sys_time (License): Likewise.
56367         * modules/time (License): Likewise.
56368         * modules/time_r (License): Likewise.
56369         * modules/timegm (License): Likewise.
56370         * modules/unistd (License): Likewise.
56371         * modules/vsnprintf (License): Likewise.
56372         * modules/wctype (License): Likewise.
56373
56374 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56375
56376         * modules/argz (License): LGPLv2+.
56377
56378 2007-07-15  Karl Berry  <karl@gnu.org>
56379
56380         * doc/gnulib.texi: revise node structure per new fdl.texi.
56381
56382 2007-07-14  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56385         the output file.
56386         * lib/uniname/uninames.h: Regenerated.
56387
56388 2007-07-14  Karl Berry  <karl@gnu.org>
56389
56390         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56391         omitting sectioning and index commands.
56392
56393 2007-07-13  Bruno Haible  <bruno@clisp.org>
56394
56395         New gnulib-tool option --more-symlinks.
56396         * gnulib-tool (func_usage): Document --more-symlinks.
56397         (do_copyrights): New variable.
56398         Recognize option --more-symlinks.
56399         (func_import): Don't add a copyright notice transform to
56400         sed_transform_lib_file if do_copyrights is empty.
56401
56402 2007-07-13  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/vasnprintf.c (decimal_point_char): Define also if
56405         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56406         && !NEED_PRINTF_DIRECTIVE_A.
56407         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56408         Gary V. Vaughan <gary@gnu.org>.
56409
56410 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         * lib/inttypes_.h: Undo previous change, since it was fixed
56413         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56414
56415 2007-07-13  Bruno Haible  <bruno@clisp.org>
56416
56417         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56418         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56419
56420 2007-07-13  Jim Meyering  <jim@meyering.net>
56421
56422         df: Don't fail for Tru64's "file-on-file mount".
56423         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56424         so we fall through and use statfs instead.  Details here:
56425         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56426         Reported by Albert Chin.
56427
56428 2007-07-13  Bruno Haible  <bruno@clisp.org>
56429
56430         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56431         * modules/configmake (License): Likewise.
56432         * modules/gettext (License): Likewise.
56433         * modules/gettext-h (License): Likewise.
56434         * modules/include_next (License): Likewise.
56435         * modules/link-warning (License): Likewise.
56436         * modules/localcharset (License): Likewise.
56437         * modules/localename (License): Likewise.
56438         * modules/lock (License): Likewise.
56439         * modules/relocatable-lib-lgpl (License): Likewise.
56440         * modules/size_max (License): Likewise.
56441         * modules/vasnprintf (License): Likewise.
56442         * modules/wchar (License): Likewise.
56443         * modules/xsize (License): Likewise.
56444
56445 2007-07-13  Bruno Haible  <bruno@clisp.org>
56446
56447         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56448         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56449
56450 2007-07-12  Bruno Haible  <bruno@clisp.org>
56451
56452         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56453         in the modules files.
56454
56455 2007-07-11  Karl Berry  <karl@gnu.org>
56456
56457         * MODULES.html.sh (func_module): use
56458          sed -e '\|^'"${includefile}"'$|d'
56459          instead of /.../d, to avoid errors on $includefile's containing /.
56460
56461 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56462
56463         * gnulib-tool (func_import): Avoid duplication of --avoid
56464         statements
56465         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56466         names to `_' in variable names.
56467
56468 2007-07-10  Eric Blake  <ebb9@byu.net>
56469
56470         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56471         * NEWS: Document this change.
56472
56473 2007-07-08  Bruno Haible  <bruno@clisp.org>
56474
56475         Update to Unicode 5.0.
56476         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56477         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56478         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56479         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56480         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56481         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56482         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56483         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56484         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56485         U+10A3F, U+1D242..U+1D244.
56486         (nonspacing_table_ind): Update.
56487         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56488         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56489
56490 2007-07-08  Bruno Haible  <bruno@clisp.org>
56491
56492         Update to Unicode 5.0.
56493         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56494         code transform. Extend the name index field of unicode_name_to_code and
56495         unicode_code_to_name from 16 to 24 bits.
56496         * lib/uniname/uniname.c (unicode_character_name,
56497         unicode_name_character): Add the range 0x12xxx to the code transform.
56498         * lib/uniname/uninames.h: Regenerated.
56499         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56500
56501 2007-07-07  Bruno Haible  <bruno@clisp.org>
56502
56503         * modules/wcwidth-tests: New file.
56504         * tests/test-wcwidth.c: New file.
56505
56506         Work around MacOS X wcwidth() bug.
56507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56508         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56509         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56510         original wcwidth in non-UTF-8 locales.
56511         * modules/wcwidth (Depends-on): Add localcharset, streq,
56512         uniwidth/width.
56513         * doc/functions/wcwidth.texi: Update.
56514
56515 2007-07-07  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56518         (wcwidth): New declaration.
56519         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56520         macros.
56521         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56522         here. Prepare for creating <wchar.h> unconditionally.
56523         * modules/wchar (Depends-on): Add link-warning.
56524         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56525         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56526         * lib/wcwidth.h: Remove file.
56527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56528         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56529         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56530         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56531         (Include): Replace wcwidth.h with <wchar.h>.
56532         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56533         * lib/mbchar.h: Don't include wcwidth.h.
56534         * lib/mbswidth.c: Likewise.
56535         * NEWS: Mention the change.
56536
56537 2007-07-07  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56540         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56541         definition with an external declaration.
56542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56543         defined as a function. Remove AC_C_INLINE requirement.
56544         * modules/wcwidth (Files): Add lib/wcwidth.c.
56545         (Makefile.am): Remove redundant statement.
56546
56547 2007-07-07  Bruno Haible  <bruno@clisp.org>
56548
56549         * MODULES.html.sh (Unicode string functions): Add the new modules.
56550
56551         * tests/uniwidth/test-u32-strwidth.c: New file.
56552         * modules/uniwidth/u32-strwidth-tests: New file.
56553
56554         * lib/uniwidth/u32-strwidth.c: New file.
56555         * modules/uniwidth/u32-strwidth: New file.
56556
56557         * tests/uniwidth/test-u16-strwidth.c: New file.
56558         * modules/uniwidth/u16-strwidth-tests: New file.
56559
56560         * lib/uniwidth/u16-strwidth.c: New file.
56561         * modules/uniwidth/u16-strwidth: New file.
56562
56563         * tests/uniwidth/test-u8-strwidth.c: New file.
56564         * modules/uniwidth/u8-strwidth-tests: New file.
56565
56566         * lib/uniwidth/u8-strwidth.c: New file.
56567         * modules/uniwidth/u8-strwidth: New file.
56568
56569         * tests/uniwidth/test-u32-width.c: New file.
56570         * modules/uniwidth/u32-width-tests: New file.
56571
56572         * lib/uniwidth/u32-width.c: New file.
56573         * modules/uniwidth/u32-width: New file.
56574
56575         * tests/uniwidth/test-u16-width.c: New file.
56576         * modules/uniwidth/u16-width-tests: New file.
56577
56578         * lib/uniwidth/u16-width.c: New file.
56579         * modules/uniwidth/u16-width: New file.
56580
56581         * tests/uniwidth/test-u8-width.c: New file.
56582         * modules/uniwidth/u8-width-tests: New file.
56583
56584         * lib/uniwidth/u8-width.c: New file.
56585         * modules/uniwidth/u8-width: New file.
56586
56587         * tests/uniwidth/test-uc_width.c: New file.
56588         * modules/uniwidth/width-tests: New file.
56589
56590         * lib/uniwidth/width.c: New file, from GNU libiconv.
56591         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56592         * modules/uniwidth/width: New file.
56593
56594         * lib/uniwidth.h: New file, from GNU libiconv.
56595         * modules/uniwidth/base: New file.
56596
56597 2007-07-07  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/uniname.h: New file, from GNU gettext.
56600         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56601         * lib/uniname/uninames.h: New file, from GNU gettext.
56602         * lib/uniname/uniname.c: New file, from GNU gettext.
56603         * tests/uniname/test-uninames.sh: New file.
56604         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56605         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56606         * modules/uniname/base: New file.
56607         * modules/uniname/uniname: New file.
56608         * modules/uniname/uniname-tests: New file.
56609         * MODULES.html.sh (Unicode string functions): Add the new modules.
56610
56611 2007-07-06  Bruno Haible  <bruno@clisp.org>
56612
56613         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56614
56615 2007-07-06  Bruno Haible  <bruno@clisp.org>
56616
56617         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56618         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56619         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56620         include <sys/time.h>.
56621         Reported by Eric Blake.
56622
56623 2007-07-06  Eric Blake  <ebb9@byu.net>
56624
56625         Fix testing canonicalize on cygwin.
56626         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56627         Revert patch from 2007-06-19.
56628         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56629         canonicalize module is also in use.
56630         * tests/test-canonicalize.c: New file.
56631         * tests/test-canonicalize.sh: Likewise.
56632         * modules/canonicalize-tests: Likewise.
56633
56634 2007-07-06  Jim Meyering  <jim@meyering.net>
56635
56636         * lib/getugroups.c (getugroups): Detect getgrent failure.
56637         Adjust comment to reflect reality: this function may return -1.
56638
56639 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56640
56641         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56642         the new TP address.
56643         (usage): Fix typo
56644         (gnulib_mk): New variable.
56645
56646 2007-07-05  Jim Meyering  <jim@meyering.net>
56647
56648         Don't let endgrent clobber errno, no matter how improbable.
56649         * lib/getugroups.c (getugroups): Save and restore errno around
56650         endgrent call.
56651
56652         Close the group DB even when failing with 2^31 or more members.
56653         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56654
56655 2007-07-04  Jim Meyering  <jim@meyering.net>
56656
56657         * lib/getugroups.h: New file.
56658         * lib/getugroups.c: Include "getugroups.h".
56659         Remove uses of "register" keyword.
56660         Move local variable, "cp", down into scope where used.
56661         Give "username" parameter the "const" attribute.
56662         * modules/getugroups (Files): Add lib/getugroups.h
56663
56664 2007-07-04  Karl Berry  <karl@gnu.org>
56665
56666         * MODULES.html.sh (func_all_modules): Complete rename of
56667         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56668
56669 2007-07-02  Bruno Haible  <bruno@clisp.org>
56670
56671         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56672         mode, when inttypes.h comes from gnulib.
56673         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56674
56675 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56676
56677         * NEWS: Mention lgpl module name change.
56678
56679         * modules/lgpl-2.1: Renamed from lgpl.
56680
56681         * NEWS: Mention gpl module name change.
56682
56683         * modules/gpl-3.0: New file, based on gpl-2.0.
56684
56685         * modules/gpl-2.0: Renamed from gpl.
56686
56687         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56688         doc/gpl-2.0.texi.
56689
56690 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56693         #define __STDC_LIMIT_MACROS temporarily while including
56694         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56695         Problem reported by Joel E. Denny in
56696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56697
56698 2007-07-01  Bruno Haible  <bruno@clisp.org>
56699
56700         * lib/unistdio.h: New file.
56701         * lib/unistdio/u-asnprintf.h: New file.
56702         * lib/unistdio/u-asprintf.h: New file.
56703         * lib/unistdio/u-printf-args.c: New file.
56704         * lib/unistdio/u-printf-args.h: New file.
56705         * lib/unistdio/u-printf-parse.h: New file.
56706         * lib/unistdio/u-snprintf.h: New file.
56707         * lib/unistdio/u-sprintf.h: New file.
56708         * lib/unistdio/u-vasprintf.h: New file.
56709         * lib/unistdio/u-vsnprintf.h: New file.
56710         * lib/unistdio/u-vsprintf.h: New file.
56711         * lib/unistdio/ulc-asnprintf.c: New file.
56712         * lib/unistdio/ulc-asprintf.c: New file.
56713         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56714         * lib/unistdio/ulc-printf-parse.c: New file.
56715         * lib/unistdio/ulc-snprintf.c: New file.
56716         * lib/unistdio/ulc-sprintf.c: New file.
56717         * lib/unistdio/ulc-vasnprintf.c: New file.
56718         * lib/unistdio/ulc-vasprintf.c: New file.
56719         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56720         * lib/unistdio/ulc-vsnprintf.c: New file.
56721         * lib/unistdio/ulc-vsprintf.c: New file.
56722         * lib/unistdio/u8-asnprintf.c: New file.
56723         * lib/unistdio/u8-asprintf.c: New file.
56724         * lib/unistdio/u8-printf-parse.c: New file.
56725         * lib/unistdio/u8-snprintf.c: New file.
56726         * lib/unistdio/u8-sprintf.c: New file.
56727         * lib/unistdio/u8-vasnprintf.c: New file.
56728         * lib/unistdio/u8-vasprintf.c: New file.
56729         * lib/unistdio/u8-vsnprintf.c: New file.
56730         * lib/unistdio/u8-vsprintf.c: New file.
56731         * lib/unistdio/u8-u8-asnprintf.c: New file.
56732         * lib/unistdio/u8-u8-asprintf.c: New file.
56733         * lib/unistdio/u8-u8-snprintf.c: New file.
56734         * lib/unistdio/u8-u8-sprintf.c: New file.
56735         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56736         * lib/unistdio/u8-u8-vasprintf.c: New file.
56737         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56738         * lib/unistdio/u8-u8-vsprintf.c: New file.
56739         * lib/unistdio/u16-asnprintf.c: New file.
56740         * lib/unistdio/u16-asprintf.c: New file.
56741         * lib/unistdio/u16-printf-parse.c: New file.
56742         * lib/unistdio/u16-snprintf.c: New file.
56743         * lib/unistdio/u16-sprintf.c: New file.
56744         * lib/unistdio/u16-vasnprintf.c: New file.
56745         * lib/unistdio/u16-vasprintf.c: New file.
56746         * lib/unistdio/u16-vsnprintf.c: New file.
56747         * lib/unistdio/u16-vsprintf.c: New file.
56748         * lib/unistdio/u16-u16-asnprintf.c: New file.
56749         * lib/unistdio/u16-u16-asprintf.c: New file.
56750         * lib/unistdio/u16-u16-snprintf.c: New file.
56751         * lib/unistdio/u16-u16-sprintf.c: New file.
56752         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56753         * lib/unistdio/u16-u16-vasprintf.c: New file.
56754         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56755         * lib/unistdio/u16-u16-vsprintf.c: New file.
56756         * lib/unistdio/u32-asnprintf.c: New file.
56757         * lib/unistdio/u32-asprintf.c: New file.
56758         * lib/unistdio/u32-printf-parse.c: New file.
56759         * lib/unistdio/u32-snprintf.c: New file.
56760         * lib/unistdio/u32-sprintf.c: New file.
56761         * lib/unistdio/u32-vasnprintf.c: New file.
56762         * lib/unistdio/u32-vasprintf.c: New file.
56763         * lib/unistdio/u32-vsnprintf.c: New file.
56764         * lib/unistdio/u32-vsprintf.c: New file.
56765         * lib/unistdio/u32-u32-asnprintf.c: New file.
56766         * lib/unistdio/u32-u32-asprintf.c: New file.
56767         * lib/unistdio/u32-u32-snprintf.c: New file.
56768         * lib/unistdio/u32-u32-sprintf.c: New file.
56769         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56770         * lib/unistdio/u32-u32-vasprintf.c: New file.
56771         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56772         * lib/unistdio/u32-u32-vsprintf.c: New file.
56773         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56774         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56775         * tests/unistdio/test-ulc-printf1.h: New file.
56776         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56777         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56778         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56779         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56780         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56781         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56782         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56783         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56784         * tests/unistdio/test-u8-asnprintf1.c: New file.
56785         * tests/unistdio/test-u8-asnprintf1.h: New file.
56786         * tests/unistdio/test-u8-printf1.h: New file.
56787         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56788         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56789         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56790         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56791         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56792         * tests/unistdio/test-u8-vasprintf1.c: New file.
56793         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56794         * tests/unistdio/test-u8-vsprintf1.c: New file.
56795         * tests/unistdio/test-u16-asnprintf1.c: New file.
56796         * tests/unistdio/test-u16-asnprintf1.h: New file.
56797         * tests/unistdio/test-u16-printf1.h: New file.
56798         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56799         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56800         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56801         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56802         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56803         * tests/unistdio/test-u16-vasprintf1.c: New file.
56804         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56805         * tests/unistdio/test-u16-vsprintf1.c: New file.
56806         * tests/unistdio/test-u32-asnprintf1.c: New file.
56807         * tests/unistdio/test-u32-asnprintf1.h: New file.
56808         * tests/unistdio/test-u32-printf1.h: New file.
56809         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56810         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56811         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56812         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56813         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56814         * tests/unistdio/test-u32-vasprintf1.c: New file.
56815         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56816         * tests/unistdio/test-u32-vsprintf1.c: New file.
56817         * modules/unistdio/base: New file.
56818         * modules/unistdio/u-printf-args: New file.
56819         * modules/unistdio/ulc-asnprintf: New file.
56820         * modules/unistdio/ulc-asprintf: New file.
56821         * modules/unistdio/ulc-fprintf: New file.
56822         * modules/unistdio/ulc-printf-parse: New file.
56823         * modules/unistdio/ulc-snprintf: New file.
56824         * modules/unistdio/ulc-sprintf: New file.
56825         * modules/unistdio/ulc-vasnprintf: New file.
56826         * modules/unistdio/ulc-vasprintf: New file.
56827         * modules/unistdio/ulc-vfprintf: New file.
56828         * modules/unistdio/ulc-vsnprintf: New file.
56829         * modules/unistdio/ulc-vsprintf: New file.
56830         * modules/unistdio/u8-asnprintf: New file.
56831         * modules/unistdio/u8-asprintf: New file.
56832         * modules/unistdio/u8-printf-parse: New file.
56833         * modules/unistdio/u8-snprintf: New file.
56834         * modules/unistdio/u8-sprintf: New file.
56835         * modules/unistdio/u8-vasnprintf: New file.
56836         * modules/unistdio/u8-vasprintf: New file.
56837         * modules/unistdio/u8-vsnprintf: New file.
56838         * modules/unistdio/u8-vsprintf: New file.
56839         * modules/unistdio/u8-u8-asnprintf: New file.
56840         * modules/unistdio/u8-u8-asprintf: New file.
56841         * modules/unistdio/u8-u8-snprintf: New file.
56842         * modules/unistdio/u8-u8-sprintf: New file.
56843         * modules/unistdio/u8-u8-vasnprintf: New file.
56844         * modules/unistdio/u8-u8-vasprintf: New file.
56845         * modules/unistdio/u8-u8-vsnprintf: New file.
56846         * modules/unistdio/u8-u8-vsprintf: New file.
56847         * modules/unistdio/u16-asnprintf: New file.
56848         * modules/unistdio/u16-asprintf: New file.
56849         * modules/unistdio/u16-printf-parse: New file.
56850         * modules/unistdio/u16-snprintf: New file.
56851         * modules/unistdio/u16-sprintf: New file.
56852         * modules/unistdio/u16-vasnprintf: New file.
56853         * modules/unistdio/u16-vasprintf: New file.
56854         * modules/unistdio/u16-vsnprintf: New file.
56855         * modules/unistdio/u16-vsprintf: New file.
56856         * modules/unistdio/u16-u16-asnprintf: New file.
56857         * modules/unistdio/u16-u16-asprintf: New file.
56858         * modules/unistdio/u16-u16-snprintf: New file.
56859         * modules/unistdio/u16-u16-sprintf: New file.
56860         * modules/unistdio/u16-u16-vasnprintf: New file.
56861         * modules/unistdio/u16-u16-vasprintf: New file.
56862         * modules/unistdio/u16-u16-vsnprintf: New file.
56863         * modules/unistdio/u16-u16-vsprintf: New file.
56864         * modules/unistdio/u32-asnprintf: New file.
56865         * modules/unistdio/u32-asprintf: New file.
56866         * modules/unistdio/u32-printf-parse: New file.
56867         * modules/unistdio/u32-snprintf: New file.
56868         * modules/unistdio/u32-sprintf: New file.
56869         * modules/unistdio/u32-vasnprintf: New file.
56870         * modules/unistdio/u32-vasprintf: New file.
56871         * modules/unistdio/u32-vsnprintf: New file.
56872         * modules/unistdio/u32-vsprintf: New file.
56873         * modules/unistdio/u32-u32-asnprintf: New file.
56874         * modules/unistdio/u32-u32-asprintf: New file.
56875         * modules/unistdio/u32-u32-snprintf: New file.
56876         * modules/unistdio/u32-u32-sprintf: New file.
56877         * modules/unistdio/u32-u32-vasnprintf: New file.
56878         * modules/unistdio/u32-u32-vasprintf: New file.
56879         * modules/unistdio/u32-u32-vsnprintf: New file.
56880         * modules/unistdio/u32-u32-vsprintf: New file.
56881         * modules/unistdio/ulc-asnprintf-tests: New file.
56882         * modules/unistdio/ulc-vasnprintf-tests: New file.
56883         * modules/unistdio/ulc-vasprintf-tests: New file.
56884         * modules/unistdio/ulc-vsnprintf-tests: New file.
56885         * modules/unistdio/ulc-vsprintf-tests: New file.
56886         * modules/unistdio/u8-asnprintf-tests: New file.
56887         * modules/unistdio/u8-vasnprintf-tests: New file.
56888         * modules/unistdio/u8-vasprintf-tests: New file.
56889         * modules/unistdio/u8-vsnprintf-tests: New file.
56890         * modules/unistdio/u8-vsprintf-tests: New file.
56891         * modules/unistdio/u16-asnprintf-tests: New file.
56892         * modules/unistdio/u16-vasnprintf-tests: New file.
56893         * modules/unistdio/u16-vasprintf-tests: New file.
56894         * modules/unistdio/u16-vsnprintf-tests: New file.
56895         * modules/unistdio/u16-vsprintf-tests: New file.
56896         * modules/unistdio/u32-asnprintf-tests: New file.
56897         * modules/unistdio/u32-vasnprintf-tests: New file.
56898         * modules/unistdio/u32-vasprintf-tests: New file.
56899         * modules/unistdio/u32-vsnprintf-tests: New file.
56900         * modules/unistdio/u32-vsprintf-tests: New file.
56901         * MODULES.html.sh (Unicode string functions): Add the new modules.
56902
56903 2007-07-01  Bruno Haible  <bruno@clisp.org>
56904
56905         * lib/sprintf.c (sprintf): Limit the available length estimation,
56906         to avoid address wraparound.
56907         * lib/vsprintf.c (vsprintf): Likewise.
56908         * modules/sprintf-posix (Dependencies): Add stdint.
56909         * modules/vsprintf-posix (Dependencies): Likewise.
56910
56911 2007-07-01  Bruno Haible  <bruno@clisp.org>
56912
56913         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56914         Windows PATH as well. Conservative double-quoting. Comments.
56915
56916 2007-07-01  Bruno Haible  <bruno@clisp.org>
56917             Eric Blake  <ebb9@byu.net>
56918             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56919
56920         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56921         empty components in $PATH, denoting '.'.
56922
56923 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56924
56925         * gnulib-tool: Fix indentation.
56926         (func_create_megatestdir): Likewise.
56927         Report by Bruno Haible.
56928
56929 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56930
56931         Sync from Automake.
56932         * build-aux/gnupload: Fix shell portability issues with for loops.
56933         Report by Karl Berry.
56934
56935 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56936
56937         * build-aux/maint.mk (POURL): Use translationproject.org.
56938
56939 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56940             Bruno Haible  <bruno@clisp.org>
56941
56942         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56943         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56944         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56945         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56946         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56947
56948 2007-06-27  Bruno Haible  <bruno@clisp.org>
56949
56950         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56951         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56952
56953 2007-06-26  Karl Berry  <karl@gnu.org>
56954
56955         * MODULES.html.sh: remove xreadlink-with-size.
56956
56957 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56960         method that I hope also handles the double-include problem noted
56961         by Bruno Haible in
56962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56963
56964 2007-06-23  Bruno Haible  <bruno@clisp.org>
56965
56966         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56967         Don't let the 'mostlyclean' target fail if the last subdirectory could
56968         not be removed.
56969         Reported by Karl Berry.
56970
56971 2007-06-23  Bruno Haible  <bruno@clisp.org>
56972
56973         * gnulib-tool (echo): Add a speedier workaround for ksh.
56974         * tests/test-echo.sh: Likewise.
56975
56976 2007-06-23  Bruno Haible  <bruno@clisp.org>
56977
56978         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56979         * tests/test-echo.sh: Likewise.
56980
56981 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56982
56983         * gnulib-tool (IFS): Initialize early, so we don't set it to
56984         empty later.
56985         (self_abspathname): Rewrite algorithm to set it, reindent.
56986         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56987         (func_create_megatestdir): Merge some sed scripts.
56988
56989 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56992         exposed by Sun Studio 11 cc on Solaris 8.
56993
56994 2007-06-22  Bruno Haible  <bruno@clisp.org>
56995
56996         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56997         backslashes.
56998         * tests/test-echo.sh: New file.
56999
57000 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57001
57002         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57003         simplify `sed_replace_build_aux' scripts, they are portable but
57004         echoing them with `echo' is not.
57005         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57006
57007 2007-06-21  Karl Berry  <karl@gnu.org>
57008
57009         * config/srclist.txt: guess we can't handle the licenses via
57010         srclist at the moment.
57011
57012 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57013
57014         * MODULES.html.sh: Add include_next.
57015         * modules/include_next: New file.
57016
57017 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57018
57019         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57020         INCLUDE_NEXT.
57021         (gl_CHECK_NEXT_HEADERS): New macro.
57022         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57023         the obsolescent gl_ABSOLUTE_HEADER.
57024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57025         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57026         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57027         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57028         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57029         * m4/math_h.m4 (gl_MATH_H): Likewise.
57030         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57031         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57032         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57033         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57034         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57035         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57036         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57037         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57038         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57040         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57041         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57042         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57043         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57044         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57045         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57046         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57047         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57048         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57049         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57050         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57051         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57052         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57053         * lib/float_.h: Likewise.
57054         * lib/inttypes_.h: Likewise.
57055         * lib/math_.h: Likewise.
57056         * lib/search_.h: Likewise.
57057         * lib/signal_.h: Likewise.
57058         * lib/stdint_.h: Likewise.
57059         * lib/stdio_.h: Likewise.
57060         * lib/stdlib_.h: Likewise.
57061         * lib/string_.h: Likewise.
57062         * lib/sys_stat_.h: Likewise.
57063         * lib/sys_time_.h: Likewise.
57064         * lib/time_.h: Likewise.
57065         * lib/unistd_.h: Likewise.
57066         * lib/wchar_.h: Likewise.
57067         * lib/wctype_.h: Likewise.
57068         * lib/dirent_.h: Likewise.
57069         * lib/iconv_.h: Likewise.
57070         * lib/locale_.h: Likewise.
57071         * lib/netinet_in_.h: Likewise.
57072         * lib/sys_select_.h: Likewise.
57073         * lib/sys_socket_.h: Likewise.
57074         * lib/sysexits_.h: Likewise.
57075         * modules/fcntl (Depends-on): Depend on include_next, not
57076         absolute_header.
57077         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57078         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57079         * modules/fchdir: Likewise.
57080         * modules/float: Likewise.
57081         * modules/iconv_open: Likewise.
57082         * modules/inttypes: Likewise.
57083         * modules/locale: Likewise.
57084         * modules/math: Likewise.
57085         * modules/netinet_in: Likewise.
57086         * modules/search: Likewise.
57087         * modules/signal: Likewise.
57088         * modules/stdint: Likewise.
57089         * modules/stdio: Likewise.
57090         * modules/stdlib: Likewise.
57091         * modules/string: Likewise.
57092         * modules/sys_select: Likewise.
57093         * modules/sys_socket: Likewise.
57094         * modules/sys_stat: Likewise.
57095         * modules/sys_time: Likewise.
57096         * modules/sysexits: Likewise.
57097         * modules/time: Likewise.
57098         * modules/unistd: Likewise.
57099         * modules/wchar: Likewise.
57100         * modules/wctype: Likewise.
57101         * modules/sys_stat: Change maintainer to "all".
57102         * modules/unistd: Likewise.
57103
57104 2007-06-20  Karl Berry  <karl@gnu.org>
57105
57106         * config/srclist.txt: track www changes in license files.
57107
57108 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57109
57110         * build-aux/bootstrap: Remove stray dot.
57111         Make sure build_aux settings are honored when linking
57112         gnulib_extra_files.
57113
57114 2007-06-19  Eric Blake  <ebb9@byu.net>
57115
57116         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57117         Allow compilation on cygwin.
57118
57119 2007-06-19  Jim Meyering  <jim@meyering.net>
57120
57121         xreadlink-with-size: Remove module.  No longer used.
57122         Ex-callers now use xreadlink or mreadlink-with-size.
57123         * modules/xreadlink-with-size: Remove module.
57124         * lib/xreadlink-with-size.c: Remove file.
57125         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57126         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57127         just before the function definition *is* accurate.
57128
57129         Eliminate one way canonicalize_filename_mode could exit.
57130         * lib/canonicalize.c (canonicalize_filename_mode):
57131         Use mreadlink_with_size, not xreadlink_with_size.
57132
57133 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57134
57135         Detect porting problems to FreeBSD/arm, which has time_t wider than
57136         long int.  Original problem reported for GNU diff by Xin Li in
57137         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57138         * modules/getdate (Depends-on): Add intprops, verify.
57139         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57140         is an integer type no wider than long int.
57141
57142 2007-06-18  Jim Meyering  <jim@meyering.net>
57143
57144         New module: mreadlink-with-size.
57145         * MODULES.html.sh: Add mreadlink-with-size.
57146         * modules/mreadlink-with-size: New module
57147         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57148         not xreadlink-with-size.
57149         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57150
57151 2007-06-16  Bruno Haible  <bruno@clisp.org>
57152
57153         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57154         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57155         Reported by Gary V. Vaughan <gary@gnu.org>.
57156
57157 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57158
57159         Revamp lchown so that it lives in unistd.h where it belongs.
57160         * lib/lchown.h: Remove.
57161         * lib/dirchownmod.c: Don't include lib/lchown.h.
57162         * lib/fchownat.c: Likewise.
57163         * lib/openat.c: Likewise.
57164         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57165         does not follow symlinks.
57166         (EOPNOTSUPP): Define if not defined.
57167         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57168         is defined to 0.
57169         (lchown): New decl.
57170         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57171         Do not check for lchown decl.
57172         Set REPLACE_LCHOWN.
57173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57174         REPLACE_LCHOWN.
57175         * modules/chown: Make it clear it follows symlinks.
57176         * modules/lchown: Make it clear it doesn't follow symlinks.
57177         (Files): Remove lib/lchown.h
57178         (Depends-on): Add unistd.
57179         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57180         (Include): Include <unistd.h>, not "lchown.h".
57181         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57182         REPLACE_LCHOWN.
57183
57184 2007-06-15  Jim Meyering  <jim@meyering.net>
57185
57186         Change license (GPL to LGPL) of fsusage and dependents.
57187         * modules/fsusage (License): Change to LGPL.
57188         * modules/full-read (License): Likewise.
57189         * modules/full-write (License): Likewise.
57190         * modules/safe-read (License): Likewise.
57191         * modules/safe-write (License): Likewise.
57192
57193 2007-06-14  Ben Pfaff  <blp@gnu.org>
57194
57195         Missing part of allocsa -> malloca transition.
57196         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57197         gl_MALLOCA.
57198
57199 2007-06-12  Bruno Haible  <bruno@clisp.org>
57200
57201         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57202         to ia64, x86_64, i386.
57203         Reported by Eric Blake.
57204
57205 2007-06-12  Bruno Haible  <bruno@clisp.org>
57206
57207         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57208         cross-compiling to x86_64.
57209
57210 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57211
57212         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57213         glitch reported by Ralf Wildenhues in
57214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57215
57216         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57217         Vin Shelton.
57218
57219 2007-06-11  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57222         replacement string.
57223         Reported by Eric Blake.
57224
57225 2007-06-10  Bruno Haible  <bruno@clisp.org>
57226
57227         Prepare vasnprintf code for use with Unicode strings.
57228         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57229         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57230         TYPE_U32_STRING.
57231         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57232         a_u32_string variants.
57233         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57234         * lib/printf-args.c: Don't include config.h and the specification
57235         header if PRINTF_FETCHARGS is already defined.
57236         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57237         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57238         TYPE_U16_STRING, TYPE_U32_STRING.
57239         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57240         u16_directive, u16_directives, u32_directive, u32_directives): New
57241         types.
57242         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57243         New declarations.
57244         * lib/printf-parse.c: Don't include config.h and the specification
57245         header if PRINTF_PARSE is already defined. Eliminate the set of
57246         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57247         them now. Include c-ctype.h.
57248         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57249         directive and CHAR_T_ONLY_ASCII.
57250         * lib/vasnprintf.c: Don't include config.h and the specification header
57251         if VASNPRINTF is already defined.
57252         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57253         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57254         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57255         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57256         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57257         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57258         code accordingly.
57259         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57260         pad_ourselves also in this case, with the 'c' and 's' directives, and
57261         with a different notion of "width".
57262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57263
57264 2007-06-10  Bruno Haible  <bruno@clisp.org>
57265
57266         * modules/unistr/u32-mbsnlen: New file.
57267         * lib/unistr/u32-mbsnlen.c: New file.
57268
57269         * modules/unistr/u16-mbsnlen: New file.
57270         * lib/unistr/u16-mbsnlen.c: New file.
57271
57272         * modules/unistr/u8-mbsnlen: New file.
57273         * lib/unistr/u8-mbsnlen.c: New file.
57274
57275         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57276         declarations.
57277
57278 2007-06-10  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/string_.h (mbsnlen): New declaration.
57281         * lib/mbsnlen.c: New file.
57282         * m4/mbsnlen.m4: New file.
57283         * modules/mbsnlen: New file.
57284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57285         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57286         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57287
57288 2007-06-10  Bruno Haible  <bruno@clisp.org>
57289
57290         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57291
57292 2007-06-10  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57295         * lib/mbuiter.h: Likewise.
57296
57297 2007-06-10  Bruno Haible  <bruno@clisp.org>
57298
57299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57300         declaration.
57301
57302 2007-06-10  Karl Berry  <karl@gnu.org>
57303
57304         * config/srclist.txt: remove gettext entries, Bruno prefers
57305         to update individually.
57306
57307 2007-06-10  Bruno Haible  <bruno@clisp.org>
57308
57309         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57310         'maxlen'. Ensure only length + width bytes are allocated, not
57311         length + 1 + width.
57312
57313 2007-06-09  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57316         (CHAR_T): Remove macro.
57317         (VASNPRINTF): Update.
57318
57319 2007-06-09  Bruno Haible  <bruno@clisp.org>
57320
57321         * MODULES.html.sh (Unicode string functions): Add the new modules.
57322
57323         * modules/uniconv/u32-conv-to-enc: New file.
57324         * lib/uniconv/u32-conv-to-enc.c: New file.
57325         * modules/uniconv/u32-conv-to-enc-tests: New file.
57326         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57327
57328         * modules/uniconv/u16-conv-to-enc: New file.
57329         * lib/uniconv/u16-conv-to-enc.c: New file.
57330         * lib/uniconv/u-conv-to-enc.h: New file.
57331         * modules/uniconv/u16-conv-to-enc-tests: New file.
57332         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57333
57334         * modules/uniconv/u8-conv-to-enc: New file.
57335         * lib/uniconv/u8-conv-to-enc.c: New file.
57336         * modules/uniconv/u8-conv-to-enc-tests: New file.
57337         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57338
57339         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57340         u32_conv_to_encoding): New declarations.
57341
57342 2007-06-09  Bruno Haible  <bruno@clisp.org>
57343
57344         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57345
57346 2007-06-09  Bruno Haible  <bruno@clisp.org>
57347
57348         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57349         * modules/malloca: Renamed from modules/allocsa, updated.
57350         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57351         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57352         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57353         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57354         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57355         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57356         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57357         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57358         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57359         * modules/c-strcasestr (Depends-on): Update.
57360         * lib/c-strcasestr.c: Update.
57361         * modules/c-strstr (Depends-on): Update.
57362         * lib/c-strstr.c: Update.
57363         * modules/canonicalize-lgpl (Depends-on): Update.
57364         * lib/canonicalize-lgpl.c: Update.
57365         * modules/clean-temp (Depends-on): Update.
57366         * lib/clean-temp.c: Update.
57367         * modules/csharpcomp (Depends-on): Update.
57368         * lib/csharpcomp.c: Update.
57369         * modules/csharpexec (Depends-on): Update.
57370         * lib/csharpexec.c: Update.
57371         * modules/javacomp (Depends-on): Update.
57372         * lib/javacomp.c: Update.
57373         * modules/javaexec (Depends-on): Update.
57374         * lib/javaexec.c: Update.
57375         * modules/mbscasestr (Depends-on): Update.
57376         * lib/mbscasestr.c: Update.
57377         * modules/mbsstr (Depends-on): Update.
57378         * lib/mbsstr.c: Update.
57379         * modules/setenv (Depends-on): Update.
57380         * lib/setenv.c: Update.
57381         * modules/strcasestr (Depends-on): Update.
57382         * lib/strcasestr.c: Update.
57383         * modules/striconveha (Depends-on): Update.
57384         * lib/striconveha.c: Update.
57385         * modules/relocatable-prog-wrapper (Files): Update.
57386         * lib/relocwrapper.c: Update.
57387         * build-aux/install-reloc: Update.
57388         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57389
57390 2007-06-08  Bruno Haible  <bruno@clisp.org>
57391
57392         Port to uClibc.
57393         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57394         * lib/fpurge.c (fpurge): Likewise.
57395         * lib/freading.c (freading): Likewise.
57396         * lib/fseeko.c (rpl_fseeko): Likewise.
57397         * lib/fseterr.c (fseterr): Likewise.
57398         * lib/fwriting.c (fwriting): Likewise.
57399         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57400
57401 2007-06-08  Bruno Haible  <bruno@clisp.org>
57402
57403         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57404         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57405         * modules/gettext (Files): Add m4/intlmacosx.m4.
57406
57407 2007-06-07  Bruno Haible  <bruno@clisp.org>
57408
57409         * modules/localename-tests: New file.
57410         * tests/test-localename.c: New file.
57411
57412         New module 'localename'.
57413         * lib/localename.h: New file.
57414         * lib/localename.c: New file, from GNU gettext.
57415         * m4/localename.m4: New file.
57416         * modules/localename: New file.
57417
57418 2007-06-07  Bruno Haible  <bruno@clisp.org>
57419
57420         Work around the lack of <wchar.h> on some builds of uClibc.
57421         * doc/headers/wchar.texi: Update.
57422         * lib/wchar_.h: Include <wchar.h> only if it exists.
57423         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57424         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57425         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57426         doesn't exist.
57427         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57428         * modules/mbfile (Depends-on): Add wchar.
57429         * modules/mbiter (Depends-on): Likewise.
57430         * modules/mbuiter (Depends-on): Likewise.
57431         Reported by Simon Josefsson.
57432
57433 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         Work around problem reported by Steven M. Schweda in
57436         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57437         Tru64 5.1B with the Compaq compiler environment installed declares
57438         an 'isblank' function but does not define it in the C library.
57439         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57440         * lib/regex_internal.h (isblank): Likewise.
57441         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57442         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57443
57444 2007-06-05  Bruno Haible  <bruno@clisp.org>
57445
57446         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57447         ia64.
57448         * modules/printf-safe: New file.
57449         * modules/fprintf-posix (Depends-on): Add printf-safe.
57450         * modules/printf-posix (Depends-on): Likewise.
57451         * modules/snprintf-posix (Depends-on): Likewise.
57452         * modules/sprintf-posix (Depends-on): Likewise.
57453         * modules/vasnprintf-posix (Depends-on): Likewise.
57454         * modules/vasprintf-posix (Depends-on): Likewise.
57455         * modules/vfprintf-posix (Depends-on): Likewise.
57456         * modules/vprintf-posix (Depends-on): Likewise.
57457         * modules/vsnprintf-posix (Depends-on): Likewise.
57458         * modules/vsprintf-posix (Depends-on): Likewise.
57459         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57460         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57461         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57462         "no" on i386, x86_64, ia64.
57463         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57464         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57465         on i386, x86_64, ia64.
57466         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57467         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57468         on i386, x86_64, ia64.
57469         * tests/test-vasnprintf-posix.c: Include float.h.
57470         (LDBL80_WORDS): New macro.
57471         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57472         on i386, x86_64, ia64.
57473         * tests/test-vasprintf-posix.c: Include float.h.
57474         (LDBL80_WORDS): New macro.
57475         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57476         on i386, x86_64, ia64.
57477         * tests/test-snprintf-posix.c: Include float.h.
57478         * tests/test-sprintf-posix.c: Likewise.
57479         * tests/test-vsnprintf-posix.c: Likewise.
57480         * tests/test-vsprintf-posix.c: Likewise.
57481
57482 2007-06-05  Bruno Haible  <bruno@clisp.org>
57483
57484         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57485         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57486         non-IEEE numbers on i386, x86_64, ia64.
57487         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57488         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57489         * tests/test-isnanl.h: Include float.h.
57490         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57491
57492 2007-06-05  Bruno Haible  <bruno@clisp.org>
57493
57494         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57495         also the %a / %A. Handle the %a / %A code before this extra handling.
57496
57497 2007-06-05  Bruno Haible  <bruno@clisp.org>
57498
57499         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57500         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57501
57502 2007-06-05  Bruno Haible  <bruno@clisp.org>
57503
57504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57505         typo in variable name.
57506
57507 2007-06-05  Eric Blake  <ebb9@byu.net>
57508
57509         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57510         Reported by Simon Josefsson.
57511
57512 2007-06-04  Bruno Haible  <bruno@clisp.org>
57513
57514         Avoid test failures on some PowerPC platforms.
57515         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57516         Define differently for PowerPC.
57517         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57518         Reported by Gary V. Vaughan <gary@gnu.org>.
57519
57520 2007-06-02  Bruno Haible  <bruno@clisp.org>
57521
57522         Fix test-stdint failure on FreeBSD/ia64.
57523         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57524         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57525         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57526         * doc/headers/stdint.texi: Update.
57527
57528 2007-06-01  Bruno Haible  <bruno@clisp.org>
57529
57530         * tests/test-binary-io.c (main): Pass a third argument to open().
57531         Reported by Gary V. Vaughan <gary@gnu.org>.
57532
57533 2007-06-01  Bruno Haible  <bruno@clisp.org>
57534
57535         * doc/functions/frexpl.texi: Update for mingw.
57536
57537 2007-06-01  Bruno Haible  <bruno@clisp.org>
57538
57539         * tests/test-lseek.c (main): Disable test of errno for invalid third
57540         argument.
57541         * doc/functions/lseek.texi: Update.
57542         Reported by Gary V. Vaughan <gary@gnu.org>.
57543
57544 2007-05-28  Bruno Haible  <bruno@clisp.org>
57545
57546         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57547
57548 2007-05-31  Eric Blake  <ebb9@byu.net>
57549
57550         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57551         cross compiling.
57552
57553 2007-05-30  Eric Blake  <ebb9@byu.net>
57554         and Bruno Haible  <bruno@clisp.org>
57555
57556         Work around mingw test failures exposed by m4-1.4.9b.
57557         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57558         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57559         moment.
57560
57561 2007-05-30  Bruno Haible  <bruno@clisp.org>
57562
57563         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57564         assuming that they are closed. Needed on HP-UX 11.
57565
57566 2007-05-29  Bruno Haible  <bruno@clisp.org>
57567
57568         Fix a problem with #include_next.
57569         * lib/dirent_.h: Split the double-inclusion guard.
57570         * lib/fcntl_.h: Likewise.
57571         * lib/float_.h: Likewise.
57572         * lib/iconv_.h: Likewise.
57573         * lib/inttypes_.h: Likewise.
57574         * lib/locale_.h: Likewise.
57575         * lib/math_.h: Likewise.
57576         * lib/netinet_in_.h: Likewise.
57577         * lib/search_.h: Likewise.
57578         * lib/signal_.h: Likewise.
57579         * lib/stdint_.h: Likewise.
57580         * lib/stdio_.h: Likewise.
57581         * lib/stdlib_.h: Likewise.
57582         * lib/string_.h: Likewise.
57583         * lib/sys_select_.h: Likewise.
57584         * lib/sys_socket_.h: Likewise.
57585         * lib/sys_stat_.h: Likewise.
57586         * lib/sys_time_.h: Likewise.
57587         * lib/sysexits_.h: Likewise.
57588         * lib/time_.h: Likewise.
57589         * lib/unistd_.h: Likewise.
57590         * lib/wchar_.h: Likewise.
57591         * lib/wctype_.h: Likewise.
57592
57593 2007-05-29  Bruno Haible  <bruno@clisp.org>
57594
57595         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57596         for the moment.
57597
57598 2007-05-29  Bruno Haible  <bruno@clisp.org>
57599
57600         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57601         invocation.
57602         Reported by Eric Blake.
57603
57604 2007-05-29  Bruno Haible  <bruno@clisp.org>
57605
57606         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57607         compiling case.
57608
57609 2007-05-29  Eric Blake  <ebb9@byu.net>
57610             Bruno Haible  <bruno@clisp.org>
57611
57612         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57613         cross compiles.
57614
57615 2007-05-28  Eric Blake  <ebb9@byu.net>
57616
57617         * modules/closein-tests (test_closein_LDADD): Support test on
57618         cygwin with libtool.
57619
57620 2007-05-28  Bruno Haible  <bruno@clisp.org>
57621
57622         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57623         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57624         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57625         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57626         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57627         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57628         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57629         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57630         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57631
57632 2007-05-28  Eric Blake  <ebb9@byu.net>
57633
57634         Unconditionally include <config.h> in unit tests.
57635         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57636         * tests/test-allocsa.c, tests/test-arcfour.c,
57637         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57638         tests/test-array_list.c, tests/test-array_oset.c,
57639         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57640         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57641         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57642         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57643         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57644         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57645         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57646         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57647         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57648         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57649         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57650         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57651         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57652         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57653         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57654         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57655         test-md5.c, test-memmem.c, test-printf-posix.c,
57656         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57657         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57658         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57659         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57660         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57661         test-vasnprintf-posix2.c, test-vasnprintf.c,
57662         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57663         test-vfprintf-posix.c, test-vprintf-posix.c,
57664         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57665         test-xvasprintf.c: Likewise.
57666
57667 2007-05-28  Bruno Haible  <bruno@clisp.org>
57668
57669         * gnulib-tool (func_import): Remember the --with-tests command-line
57670         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57671         Reported by Eric Blake.
57672
57673 2007-05-28  Bruno Haible  <bruno@clisp.org>
57674
57675         * modules/ftell-tests: New file.
57676         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57677         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57678
57679         * lib/ftell.c: New file.
57680         * modules/ftell: New file.
57681         * m4/ftell.m4: New file.
57682         * doc/functions/ftell.texi: Update.
57683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57684         REPLACE_FTELL.
57685         * lib/stdio_.h (rpl_ftell): New declaration.
57686         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57687         REPLACE_FTELL.
57688
57689 2007-05-28  Eric Blake  <ebb9@byu.net>
57690
57691         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57692
57693 2007-05-28  Bruno Haible  <bruno@clisp.org>
57694
57695         * modules/fseek-tests: New file.
57696         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57697         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57698
57699         * lib/fseek.c: New file.
57700         * modules/fseek: New file.
57701         * m4/fseek.m4: New file.
57702         * doc/functions/fseek.texi: Update.
57703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57704         REPLACE_FSEEK.
57705         * lib/stdio_.h (rpl_fseek): New declaration.
57706         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57707         REPLACE_FSEEK.
57708
57709 2007-05-28  Bruno Haible  <bruno@clisp.org>
57710
57711         * lib/stdio_.h (fflush): More comments.
57712
57713 2007-05-28  Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57716         runtime test.
57717
57718 2007-05-28  Eric Blake  <ebb9@byu.net>
57719
57720         Improve lseek module.
57721         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57722         * lib/unistd_.h (lseek): Scale back link warning message.
57723         * tests/test-lseek.c: Beef up test.
57724         * tests/test-lseek.sh: Exercise more facets of lseek.
57725         Reported by Bruno Haible.
57726
57727 2007-05-28  Bruno Haible  <bruno@clisp.org>
57728
57729         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57730         to define.
57731
57732 2007-05-27  Bruno Haible  <bruno@clisp.org>
57733
57734         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57735
57736 2007-05-27  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/openmp: New file.
57739         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57740         Noah Misch.
57741
57742 2007-05-26  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/chdir-long (Depends-on): Add fchdir.
57745         * modules/chdir-safer (Depends-on): Likewise.
57746         * modules/fts (Depends-on): Likewise.
57747         * modules/fts-lgpl (Depends-on): Likewise.
57748         * modules/openat (Depends-on): Likewise.
57749         * modules/savewd (Depends-on): Likewise.
57750
57751 2007-05-24  Eric Blake  <ebb9@byu.net>
57752
57753         Fix lseek on mingw.
57754         * modules/lseek: New module.
57755         * m4/lseek.m4: New file.
57756         * lib/lseek.c: New file.
57757         * modules/lseek-tests: New file.
57758         * tests/test-lseek.c: New file.
57759         * tests/test-lseek.sh: New file.
57760         * MODULES.html.sh: Document lseek module.
57761         * modules/fflush (Depends-on): Add lseek, fseeko.
57762         * modules/fseeko (Depends-on): Likewise.
57763         * modules/ftello (Depends-on): Likewise.
57764         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57765         broken.
57766         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57767         broken.
57768         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57769         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57770         * lib/ftello.c (rpl_ftello): Likewise.
57771         * tests/test-fseeko.c (main): Test this.
57772         * tests/test-fseeko.sh: Likewise.
57773         * tests/test-ftello.c (main): Likewise.
57774         * tests/test-ftello.sh: Likewise.
57775         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57776         implies replacing fseek.
57777         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57778         HAVE_FTELLO.
57779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57780         * modules/unistd (Makefile.am): Likewise.
57781         * lib/unistd_.h (lseek): Declare a replacement.
57782         * doc/functions/lseek.texi (lseek): Document this fix.
57783         * doc/functions/fseek.texi (fseek): Likewise.
57784         * doc/functions/ftell.texi (ftell): Likewise.
57785
57786 2007-05-24  Bruno Haible  <bruno@clisp.org>
57787
57788         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57789         in the printed representation of a NaN.
57790         * tests/test-vasprintf-posix.c (test_function): Likewise.
57791         * tests/test-snprintf-posix.h (test_function): Likewise.
57792         * tests/test-sprintf-posix.h (test_function): Likewise.
57793         Reported by Eric Blake.
57794
57795 2007-05-23  Eric Blake  <ebb9@byu.net>
57796
57797         Fix fseeko/ftello on cygwin 1.5.24.
57798         * doc/functions/fseeko.texi (fseeko): Document the fix.
57799         * doc/functions/ftello.texi (ftello): Document the fix.
57800         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57801         * doc/functions/stdout.text (stdout): New file.
57802         * doc/functions/stderr.text (stderr): New file.
57803         * doc/gnulib.texi (Function Substitutes): Use new files.
57804         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57805         prior to 1.7.0.
57806         * tests/test-ftello.c (main): Likewise for ftello.
57807         * tests/test-fseeko.sh: New file.
57808         * tests/test-ftello.sh: New file.
57809         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57810         with seekable stdin.
57811         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57813         (gl_REPLACE_FSEEKO): New macro.
57814         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57815         * modules/fseeko (Files): Distribute fseeko.c.
57816         * modules/ftello (Files): Distribute ftello.c.
57817         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57818         mode.
57819         * lib/ftello.c (rpl_ftello): New file.
57820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57821         fseeko, ftello.
57822         (gl_STDIN_LARGE_OFFSET): New macro.
57823         * modules/stdio (Makefile.am): Perform the replacement.
57824         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57825
57826 2007-05-23  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57829         GNULIB_POSIXCHECK is defined.
57830
57831 2007-05-21  Bruno Haible  <bruno@clisp.org>
57832
57833         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57834         Check also the output for NaN arguments. When cross-compiling, guess
57835         no on IRIX.
57836         * lib/vasnprintf.c: Update comments.
57837         * tests/test-vasnprintf-posix.c (strisnan): New function.
57838         (test_function): Use it.
57839         * tests/test-vasprintf-posix.c (strisnan): New function.
57840         (test_function): Use it.
57841         * tests/test-snprintf-posix.h (strisnan): New function.
57842         (test_function): Use it.
57843         * tests/test-sprintf-posix.h (strisnan): New function.
57844         (test_function): Use it.
57845         Reported by Eric Blake.
57846
57847 2007-05-20  Bruno Haible  <bruno@clisp.org>
57848
57849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57850         numbers that fails on BeOS.
57851         * doc/functions/frexpl.texi: Update.
57852
57853 2007-05-20  Jim Meyering  <jim@meyering.net>
57854
57855         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57856         forced upon us by glibc-2.6.
57857
57858 2007-05-20  Bruno Haible  <bruno@clisp.org>
57859
57860         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57861         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57862         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57863         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57864         NEED_PRINTF_INFINITE.
57865         (is_infinitel): New function.
57866         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57868         gl_PREREQ_VASNPRINTF_INFINITE.
57869         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57870         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57871         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57872         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57873         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
57874         gl_PREREQ_VASNPRINTF_INFINITE.
57875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57879         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57882         * doc/functions/fprintf.texi: Update.
57883         * doc/functions/printf.texi: Update.
57884         * doc/functions/snprintf.texi: Update.
57885         * doc/functions/sprintf.texi: Update.
57886         * doc/functions/vfprintf.texi: Update.
57887         * doc/functions/vprintf.texi: Update.
57888         * doc/functions/vsnprintf.texi: Update.
57889         * doc/functions/vsprintf.texi: Update.
57890
57891 2007-05-20  Bruno Haible  <bruno@clisp.org>
57892
57893         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
57894         was not found in libc.
57895         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
57896
57897 2007-05-20  Bruno Haible  <bruno@clisp.org>
57898
57899         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57900         printed as "-nan" instead of "nan".
57901         * tests/test-vasprintf-posix.c (test_function): Likewise.
57902         * tests/test-snprintf-posix.h (test_function): Likewise.
57903         * tests/test-sprintf-posix.h (test_function): Likewise.
57904         Needed for HP-UX 11.
57905
57906 2007-05-20  Jim Meyering  <jim@meyering.net>
57907
57908         Fix buggy test for the fchownat-deref bug.
57909         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
57910         symlink required for the run-test.  Without it, this test would
57911         always declare that fchownat doesn't work, and client code would
57912         unnecessarily use the replacement function with fixed libc.
57913         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57914         Reported by Greg Schafer.
57915
57916 2007-05-19  Bruno Haible  <bruno@clisp.org>
57917
57918         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57919         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57920         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57921         Needed for IRIX 6.5 and Solaris 2.5.1.
57922
57923 2007-05-19  Bruno Haible  <bruno@clisp.org>
57924
57925         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57926         (test_function): Skip tests involving -0.0 on platforms where
57927         -0.0 = 0.0.
57928         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57929         (test_function): Skip tests involving -0.0 on platforms where
57930         -0.0 = 0.0.
57931         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57932         (test_function): Skip tests involving -0.0 on platforms where
57933         -0.0 = 0.0.
57934         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57935         (test_function): Skip tests involving -0.0 on platforms where
57936         -0.0 = 0.0.
57937         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57938         tests.
57939         * tests/test-printf-posix.h (test_function): Likewise.
57940         * tests/test-printf-posix.output: Remove all -0.0 related results.
57941         Needed for IRIX 6.5.
57942
57943 2007-05-19  Bruno Haible  <bruno@clisp.org>
57944
57945         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57946         printed as "nan0x7fffffff" instead of "nan".
57947         * tests/test-vasprintf-posix.c (test_function): Likewise.
57948         * tests/test-snprintf-posix.h (test_function): Likewise.
57949         * tests/test-sprintf-posix.h (test_function): Likewise.
57950         * tests/test-fprintf-posix.h (NaN): Remove macro.
57951         (test_function): Remove all NaN related tests.
57952         * tests/test-printf-posix.h (NaN): Remove macro.
57953         (test_function): Remove all NaN related tests.
57954         * tests/test-printf-posix.output: Remove all NaN related results.
57955         Needed for IRIX 6.5.
57956
57957 2007-05-19  Bruno Haible  <bruno@clisp.org>
57958
57959         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57961
57962 2007-05-19  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/float_.h: New file.
57965         * m4/float_h.m4: New file.
57966         * modules/float: New file.
57967         * modules/isnanl (Dependencies): Add float.
57968         * modules/isnanl-nolibm (Dependencies): Likewise.
57969         * modules/mathl (Dependencies): Likewise.
57970         * modules/printf-frexpl (Dependencies): Likewise.
57971         * modules/signbit (Dependencies): Likewise.
57972         * modules/vasnprintf (Dependencies): Likewise.
57973         * doc/headers/float.texi: Update.
57974
57975 2007-05-19  Jim Meyering  <jim@meyering.net>
57976
57977         * lib/utimens.c (gl_futimens): Rename from futimens,
57978         now that glibc-2.6 declares futimens.
57979         * lib/utimens.h: Likewise.
57980
57981 2007-05-19  Bruno Haible  <bruno@clisp.org>
57982
57983         Avoid test failures on mingw.
57984         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57985         * tests/test-printf-posix.sh: Likewise.
57986         * tests/test-vfprintf-posix.sh: Likewise.
57987         * tests/test-vprintf-posix.sh: Likewise.
57988
57989 2007-05-19  Bruno Haible  <bruno@clisp.org>
57990
57991         Fix *printf result for NaN, Inf, -0.0 on mingw.
57992         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57993         * lib/vasnprintf.c: Include math.h and isnan.h.
57994         (is_infinite_or_zero): New function.
57995         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57996         values in the %f, %F, %e, %E, %g, %G directives.
57997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57998         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57999         gl_PRINTF_INFINITE and test its result. Invoke
58000         gl_PREREQ_VASNPRINTF_INFINITE.
58001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58008         * doc/functions/fprintf.texi: Update.
58009         * doc/functions/printf.texi: Update.
58010         * doc/functions/snprintf.texi: Update.
58011         * doc/functions/sprintf.texi: Update.
58012         * doc/functions/vfprintf.texi: Update.
58013         * doc/functions/vprintf.texi: Update.
58014         * doc/functions/vsnprintf.texi: Update.
58015         * doc/functions/vsprintf.texi: Update.
58016
58017 2007-05-19  Bruno Haible  <bruno@clisp.org>
58018
58019         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58020         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58021         Instead of multiplying with 10^k, set extra_zeroes to k.
58022         (scale10_round_long_double): Remove function.
58023
58024 2007-05-18  Bruno Haible  <bruno@clisp.org>
58025
58026         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58027         introduced on 2007-05-06.
58028
58029 2007-05-18  Bruno Haible  <bruno@clisp.org>
58030
58031         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58032         %g directives.
58033         * tests/test-vasprintf-posix.c (test_function): Likewise.
58034         * tests/test-snprintf-posix.h (test_function): Likewise.
58035         * tests/test-sprintf-posix.h (test_function): Likewise.
58036
58037 2007-05-18  Bruno Haible  <bruno@clisp.org>
58038
58039         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58040         (strmatch): New function.
58041         (test_function): Test the %f directive on numbers of various exponents.
58042         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58043         (strmatch): New function.
58044         (test_function): Test the %f directive on numbers of various exponents.
58045         * tests/test-snprintf-posix.h (strmatch): New function.
58046         (test_function): Test the %f directive on numbers of various exponents.
58047         * tests/test-sprintf-posix.h (strmatch): New function.
58048         (test_function): Test the %f directive on numbers of various exponents.
58049         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58050         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58051         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58052         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58053
58054 2007-05-18  Bruno Haible  <bruno@clisp.org>
58055
58056         Add support for 'long double' number output.
58057         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58058         * lib/vasnprintf.c: Include math.h and float+.h.
58059         (mp_limb_t): New type.
58060         (GMP_LIMB_BITS): New macro.
58061         (mp_twolimb_t): New type.
58062         (GMP_TWOLIMB_BITS): New macro.
58063         (mpn_t): New type.
58064         (multiply, divide, convert_to_decimal, decode_long_double,
58065         scale10_round_long_double, scale10_round_decimal_long_double,
58066         floorlog10l): New functions.
58067         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58068         for the %f, %F, %e, %E, %g, %G directives.
58069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58071         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58072         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58075         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58076         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58077         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58079         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58080         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58081         * modules/snprintf-posix (Depends-on): Likewise.
58082         * modules/sprintf-posix (Depends-on): Likewise.
58083         * modules/vasnprintf-posix (Depends-on): Likewise.
58084         * modules/vasprintf-posix (Depends-on): Likewise.
58085         * modules/vfprintf-posix (Depends-on): Likewise.
58086         * modules/vsnprintf-posix (Depends-on): Likewise.
58087         * modules/vsprintf-posix (Depends-on): Likewise.
58088         * modules/vasnprintf (Files): Add lib/float+.h.
58089         * doc/functions/fprintf.texi: Update.
58090         * doc/functions/printf.texi: Update.
58091         * doc/functions/snprintf.texi: Update.
58092         * doc/functions/sprintf.texi: Update.
58093         * doc/functions/vfprintf.texi: Update.
58094         * doc/functions/vprintf.texi: Update.
58095         * doc/functions/vsnprintf.texi: Update.
58096         * doc/functions/vsprintf.texi: Update.
58097
58098 2007-05-18  Bruno Haible  <bruno@clisp.org>
58099
58100         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58101
58102 2007-05-18  Bruno Haible  <bruno@clisp.org>
58103
58104         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58105         for printing 64-bit integers. Needed for mingw.
58106
58107 2007-05-18  Bruno Haible  <bruno@clisp.org>
58108
58109         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58110         gl_FUNC_FREXPL_WORKS.
58111         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58112
58113 2007-05-18  Bruno Haible  <bruno@clisp.org>
58114
58115         * modules/frexpl-nolibm-tests: New file.
58116
58117         * modules/frexpl-nolibm: New file.
58118         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58119
58120 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58121
58122         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58123         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58124         GCC 4.2, which otherwise issues a lot of warnings.
58125         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58126         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58127         Likewise.
58128         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58129         * modules/iconv_open (iconv.h): Likewise.
58130         * modules/locale (locale.h): Likewise.
58131         * modules/netinet_in (netinet/in.h): Likewise.
58132         * modules/sys_select (sys_select.h): Likewise.
58133         * modules/sys_socket (sys/socket.h): Likewise.
58134         * modules/sys_stat (sys/stat.h): Likewise.
58135         * modules/sysexits (sysexits.h): Likewise.
58136         * modules/unistd (unistd.h): Likewise.
58137
58138 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58139
58140         * modules/closein-tests (Makefile.am): Distribute
58141         `test-closein.sh'.
58142
58143 2007-05-17  Bruno Haible  <bruno@clisp.org>
58144
58145         * tests/test-printf-posix.output: Renamed from
58146         tests/test-fprintf-posix.out.
58147         * modules/fprintf-posix-tests: Update.
58148         * modules/printf-posix-tests: Update.
58149         * modules/vfprintf-posix-tests: Update.
58150         * modules/vprintf-posix-tests: Update.
58151         * tests/test-fprintf-posix.sh: Update.
58152         * tests/test-printf-posix.sh: Update.
58153         * tests/test-vfprintf-posix.sh: Update.
58154         * tests/test-vprintf-posix.sh: Update.
58155         Reported by Ralf Wildenhues.
58156
58157 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58158
58159         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58160         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58161         GCC 4.2, which otherwise issues a lot of warnings.
58162         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58163         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58164         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58165         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58166         it should no longer be needed.
58167         * lib/string_.h: Likewise.
58168         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58169         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58170         * modules/inttypes (inttypes.h): Likewise.
58171         * modules/math (math.h): Likewise.
58172         * modules/search (search.h): Likewise.
58173         * modules/signal (signal.h): Likewise.
58174         * modules/stdint (stdint.h): Likewise.
58175         * modules/stdio (stdio.h): Likewise.
58176         * modules/stdlib (stdlib.h): Likewise.
58177         * modules/string (string.h): Likewise.
58178         * modules/sys_time (sys/time.h): Likewise.
58179         * modules/time (time.h): Likewise.
58180         * modules/wchar (wchar.h): Likewise.
58181         * modules/wctype (wtype.h): Likewise.
58182
58183 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58184
58185         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58186
58187 2007-05-13  Bruno Haible  <bruno@clisp.org>
58188
58189         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58190         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58191         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58192         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58193         (gl_PREREQ_STRTOK_R): Don't require it here.
58194
58195 2007-05-13  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58198         when used in C++ mode.
58199
58200 2007-05-12  Bruno Haible  <bruno@clisp.org>
58201
58202         * lib/linebuffer.h: Tweak doc.
58203         * lib/linebuffer.c: Likewise.
58204
58205 2007-05-12  James Youngman  <jay@gnu.org>
58206
58207         * lib/linebuffer.c (readlinebuffer_delim): New function,
58208         like readlinebuffer, but use a caller-specified delimiter.
58209         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58210         as the delimiter.
58211         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58212
58213 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58214
58215         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58216         * modules/openat (Files): Remove openat-die.c.
58217         (Depends-on): Add openat-die.
58218         * modules/openat-die: New module.
58219
58220 2007-05-06  Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58223         Update with info about Cygwin.
58224         * doc/functions/fprintf.texi: Update.
58225         * doc/functions/printf.texi: Update.
58226         * doc/functions/snprintf.texi: Update.
58227         * doc/functions/sprintf.texi: Update.
58228         * doc/functions/vfprintf.texi: Update.
58229         * doc/functions/vprintf.texi: Update.
58230         * doc/functions/vsnprintf.texi: Update.
58231         * doc/functions/vsprintf.texi: Update.
58232         Reported by Eric Blake.
58233
58234 2007-05-06  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58237         padding ourselves for the floating-point directives.
58238         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58241         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58242         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
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 width
58251         and some flags in the %f directive.
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-06  Bruno Haible  <bruno@clisp.org>
58265
58266         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58267         pass the ' flag character to sprintf or snprintf.
58268         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58271         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58272         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58274         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58280         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58281         flag.
58282         * tests/test-sprintf-posix.h (test_function): Likewise.
58283         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58284         * tests/test-vasprintf-posix.c (test_function): Likewise.
58285         * doc/functions/fprintf.texi: Update.
58286         * doc/functions/printf.texi: Update.
58287         * doc/functions/snprintf.texi: Update.
58288         * doc/functions/sprintf.texi: Update.
58289         * doc/functions/vfprintf.texi: Update.
58290         * doc/functions/vprintf.texi: Update.
58291         * doc/functions/vsnprintf.texi: Update.
58292         * doc/functions/vsprintf.texi: Update.
58293
58294 2007-05-01  Bruno Haible  <bruno@clisp.org>
58295
58296         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58297
58298 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58299
58300         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58301         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58302
58303 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58306         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58308
58309 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58310
58311         * lib/argp-help.c (struct hol_entry): New member `ord'.
58312         (HOL_ENTRY_PTRCMP): Use ord for comparison
58313         (hol_sort): Initialize ord.
58314
58315 2007-05-01  Bruno Haible  <bruno@clisp.org>
58316
58317         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58318         Reported by Eric Blake.
58319         * doc/gnulib.texi (Function Substitutes): Update.
58320
58321 2007-05-01  Bruno Haible  <bruno@clisp.org>
58322
58323         * doc/functions.texi: Remove file, now redundant through
58324         doc/functions/*.texi.
58325
58326 2007-05-01  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/argp (Depends-on): Add sleep.
58329
58330 2007-05-01  Bruno Haible  <bruno@clisp.org>
58331
58332         * modules/sleep-tests: New file.
58333         * tests/test-sleep.c: New file.
58334
58335         * modules/sleep: New file.
58336         * lib/sleep.c: New file.
58337         * m4/sleep.m4: New file.
58338         * lib/unistd_.h (sleep): New declaration.
58339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58340         HAVE_SLEEP.
58341         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58342         * doc/functions/sleep.texi: Document the sleep module.
58343
58344 2007-05-01  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/sigprocmask.h: Remove file.
58347         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58348         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58349         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58350         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58351         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58352         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58353         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58354         HAVE_SIGSET_T as a shell variable.
58355         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58356         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58357         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58358         (Depends-on): Add signal. Remove verify.
58359         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58360         (Include): Mention <signal.h> instead of sigprocmask.h.
58361         * NEWS: Mention the change.
58362         * lib/fatal-signal.c: Don't include sigprocmask.h.
58363
58364 2007-05-01  Bruno Haible  <bruno@clisp.org>
58365
58366         * modules/signal: New file.
58367         * lib/signal_.h: New file.
58368         * m4/signal_h.m4: New file.
58369
58370 2007-05-01  Bruno Haible  <bruno@clisp.org>
58371
58372         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58373         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58374         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58375         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58376
58377 2007-05-01  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58380         configure time.
58381         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58382         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58383         * modules/sys_stat (Makefile.am): Substitute their values into
58384         sys/stat.h.
58385
58386 2007-05-01  Bruno Haible  <bruno@clisp.org>
58387
58388         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58389         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58390         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58391
58392 2007-05-01  Bruno Haible  <bruno@clisp.org>
58393
58394         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58395         'assert' module here.
58396
58397 2007-05-01  Bruno Haible  <bruno@clisp.org>
58398
58399         * doc/functions/*.texi: New files.
58400         * doc/functions/google-ranking.txt: New file.
58401         * doc/gnulib.texi (Function Substitutes): New chapter.
58402         (ctime, inet_ntoa): Remove sections.
58403         * doc/ctime.texi: Remove file.
58404         * doc/inet_ntoa.texi: Remove file.
58405         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58406         dependencies.
58407         (%.info): New rule, specifying a --reference-limit.
58408
58409 2007-05-01  Bruno Haible  <bruno@clisp.org>
58410
58411         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58412
58413 2007-05-01  Bruno Haible  <bruno@clisp.org>
58414
58415         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58416         the portability of 'mkdir' to mingw systems.
58417
58418 2007-05-01  Bruno Haible  <bruno@clisp.org>
58419
58420         * doc/headers/google-ranking.txt: New file.
58421
58422 2007-04-30  Eric Blake  <ebb9@byu.net>
58423
58424         Prefer fseeko to fseek.
58425         * modules/getpass (Depends-on): Add fseeko.
58426         * lib/getpass.c (getpass): Use fseeko, not fseek.
58427
58428 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58429
58430         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58431         assumes the sorting is stable, while most qsort implementations
58432         are not.  Use argument addresses to ensure they never compare as
58433         equal.
58434
58435         * tests/test-argp-2.sh (usage-indent test): Fix output
58436         (func_compare): Restore diff options
58437         * tests/test-argp.c: Restore #include "progname.h"
58438
58439 2007-04-29  Bruno Haible  <bruno@clisp.org>
58440
58441         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58443         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58445         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58446         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58447         (TESTS, check_PROGRAMS): Add test-snprintf.
58448         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58449         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58450         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58451         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58452         assertions that fail on HP-UX, OSF/1, or IRIX.
58453         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58454
58455 2007-04-29  Bruno Haible  <bruno@clisp.org>
58456
58457         * MODULES.html.sh (posix_functions): Remove 'contents'.
58458
58459 2007-04-29  Karl Berry  <karl@gnu.org>
58460
58461         * config/srclist.txt (gendocs_template_min): new entry.
58462
58463 2007-04-29  Bruno Haible  <bruno@clisp.org>
58464
58465         Work around fpurge bug on BSD systems.
58466         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58467         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58468         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58469         fpurge to rpl_fpurge if the system already has this function.
58470         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58471         the case where the system already has this function. Correct invariants
58472         on BSD systems.
58473         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58474         BSD systems.
58475
58476 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58477
58478         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58479         proposed by Sven Verdoolaege.
58480
58481         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58482         options.
58483         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58484         (usage and help tests): Update
58485
58486 2007-04-29  Bruno Haible  <bruno@clisp.org>
58487
58488         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58489         Print more information in case of failure. Disable a test on BeOS.
58490
58491 2007-04-29  Bruno Haible  <bruno@clisp.org>
58492
58493         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58494         This helps debugging on systems on which no gdb is available.
58495
58496 2007-04-29  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/freading.h: Improve comments.
58499         * lib/fwriting.h: Likewise.
58500         * tests/test-freading.c (main): Don't check freading immediately after
58501         repositioning. Needed for glibc.
58502
58503 2007-04-29  Bruno Haible  <bruno@clisp.org>
58504
58505         * lib/freading.c (freading): Trivial simplification.
58506
58507 2007-04-28  Bruno Haible  <bruno@clisp.org>
58508
58509         * tests/test-fwriting.c (main): Also test the interaction between
58510         fflush and fwriting.
58511         * modules/fwriting-tests (Depends-on): Add fflush.
58512
58513         * tests/test-freading.c (main): Also test the interaction between
58514         fflush and freading.
58515         * modules/freading-tests (Depends-on): Add fflush.
58516
58517 2007-04-28  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58520         fseeko and ftello.
58521         Suggested by Eric Blake.
58522
58523 2007-04-28  Jim Meyering  <jim@meyering.net>
58524
58525         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58526         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58527         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58528
58529 2007-04-27  Eric Blake  <ebb9@byu.net>
58530
58531         * doc/headers/assert.texi (assert.h): Document assert module use.
58532
58533 2007-04-27  Bruno Haible  <bruno@clisp.org>
58534
58535         * doc/headers/*.texi: New files.
58536         * doc/gnulib.texi (Header File Substitutes): New chapter.
58537         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58538         dependencies.
58539         (standards.info ,standards.html, standards.dvi): Update dependencies.
58540         (mostlyclean, clean): New targets.
58541
58542 2007-04-27  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58545         * modules/sysexits (Files, Makefile.am): Update.
58546
58547         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58548         * modules/sys_socket (Files, Makefile.am): Update.
58549
58550         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58551         * modules/sys_stat (Files, Makefile.am): Update.
58552
58553 2007-04-27  Eric Blake  <ebb9@byu.net>
58554
58555         * lib/freading.h: Improve comments.
58556         * lib/fwriting.h: Likewise.
58557         * lib/fflush.c: Likewise.
58558
58559         Fix closein for mingw.
58560         * modules/closein-tests: Add tests for closein.
58561         * tests/test-closein.c: New file.
58562         * tests/test-closein.sh: Likewise.
58563         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58564         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58565
58566 2007-04-27  Bruno Haible  <bruno@clisp.org>
58567
58568         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58569         version is < 6.
58570         * lib/math_.h [__DECC]: Likewise.
58571         * lib/stdio_.h [__DECC]: Likewise.
58572         * lib/stdlib_.h [__DECC]: Likewise.
58573         * lib/string_.h [__DECC]: Likewise.
58574         * lib/time_.h [__DECC]: Likewise.
58575         * lib/wchar_.h [__DECC]: Likewise.
58576         * lib/wctype_.h [__DECC]: Likewise.
58577
58578 2007-04-27  Bruno Haible  <bruno@clisp.org>
58579
58580         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58581
58582 2007-04-27  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/fflush.c: Add comments.
58585         * modules/fpurge-tests (Depends-on): Add fflush.
58586         * modules/freadable-tests (Depends-on): Likewise.
58587         * modules/fwritable-tests (Depends-on): Likewise.
58588
58589 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58590
58591         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58592         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58593         Report by Bruno Haible <bruno@clisp.org>.
58594
58595 2007-04-26  Eric Blake  <ebb9@byu.net>
58596
58597         Fix fflush on mingw.
58598         * modules/fflush (Depends-on): Add freading.
58599         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58600         but unread data.
58601
58602 2007-04-26  Eric Blake  <ebb9@byu.net>
58603         and Bruno Haible  <bruno@clisp.org>
58604
58605         Implement freading and fwriting.
58606         * lib/freading.c: New file.
58607         * lib/freading.h: Likewise.
58608         * m4/freading.m4: Likewise.
58609         * modules/freading: Likewise.
58610         * modules/freading-tests: Likewise.
58611         * tests/test-freading.c: Likewise.
58612         * lib/fwriting.c: New file.
58613         * lib/fwriting.h: Likewise.
58614         * m4/fwriting.m4: Likewise.
58615         * modules/fwriting: Likewise.
58616         * modules/fwriting-tests: Likewise.
58617         * tests/test-fwriting.c: Likewise.
58618         * MODULES.html.sh (File stream based Input/Output): Mention them.
58619
58620 2007-04-26  Bruno Haible  <bruno@clisp.org>
58621
58622         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58623         'long' when we assume it.
58624         Suggested by Eric Blake.
58625
58626 2007-04-26  Bruno Haible  <bruno@clisp.org>
58627
58628         Ensure fseeko, ftello are declared on glibc systems.
58629         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58630         * modules/fseeko (configure.ac-early): Likewise.
58631         * modules/ftello (configure.ac-early): Likewise.
58632         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58633         AC_FUNC_FSEEKO for this.
58634         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58635         (gl_CHECK_FSEEKO): Remove macro.
58636
58637 2007-04-26  Bruno Haible  <bruno@clisp.org>
58638
58639         * tests/test-fflush.c (main): Also check the ftell result after
58640         fflush and fseek/fseeko.
58641         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58642         file descriptor position cache in the stream.
58643         * lib/fseeko.c (rpl_fseeko): Likewise.
58644
58645 2007-04-26  Bruno Haible  <bruno@clisp.org>
58646
58647         * modules/fflush-tests (Depends-on): Add fseeko.
58648
58649 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58650             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58651
58652         * lib/argz_.h: ensure error_t definition is obtained in same
58653         mechanism system argz.h would have.
58654         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58655         argz facilities are known bad.  Err on the side of caution if
58656         cross-compiling.
58657
58658 2007-04-25  Eric Blake  <ebb9@byu.net>
58659
58660         * lib/fpurge.c (includes): Use stdlib.h for free.
58661         * tests/test-fflush.c (main): Also test fflush-fseeko.
58662
58663 2007-04-25  Bruno Haible  <bruno@clisp.org>
58664
58665         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58666         * lib/fseeko.c: New file.
58667         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58668         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58669         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58670         gl_FUNC_FSEEKO.
58671         (gl_FUNC_FSEEKO): Invoke it.
58672         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58673         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58674         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58675
58676 2007-04-25  Bruno Haible  <bruno@clisp.org>
58677
58678         * modules/fflush (Depends-on): Add ftello.
58679
58680 2007-04-25  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/ftello-tests: New file.
58683         * tests/test-ftello.c: New file.
58684
58685         * modules/ftello: New file.
58686         * m4/ftello.m4: New file.
58687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58688         HAVE_FTELLO.
58689         * lib/stdio_.h (ftello): New declaration.
58690         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58691         HAVE_FTELLO.
58692
58693 2007-04-25  Bruno Haible  <bruno@clisp.org>
58694
58695         * modules/fseeko-tests: New file.
58696         * tests/test-fseeko.c: New file.
58697
58698         * modules/fseeko: New file.
58699         * m4/fseeko.m4: New file.
58700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58701         HAVE_FSEEKO.
58702         * lib/stdio_.h (fseeko): New declaration.
58703         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58704         HAVE_FSEEKO.
58705
58706 2007-04-25  Bruno Haible  <bruno@clisp.org>
58707
58708         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58709
58710 2007-04-25  Bruno Haible  <bruno@clisp.org>
58711
58712         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58713         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58714         * tests/test-unistd.c: Likewise.
58715         * tests/test-fcntl.c: Likewise.
58716
58717 2007-04-23  Eric Blake  <ebb9@byu.net>
58718
58719         * lib/fflush.c: Fix missing include.
58720         Reported by Bruno Haible.
58721
58722 2007-04-23  Bruno Haible  <bruno@clisp.org>
58723
58724         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58725         Reported by Eric Blake.
58726
58727 2007-04-23  Bruno Haible  <bruno@clisp.org>
58728
58729         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58730
58731 2007-04-23  Bruno Haible  <bruno@clisp.org>
58732
58733         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58734
58735 2007-04-23  Bruno Haible  <bruno@clisp.org>
58736
58737         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58738         Needed on HP-UX 11.
58739
58740 2007-04-16  Eric Blake  <ebb9@byu.net>
58741
58742         Make fflush rely on fpurge.
58743         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58744         open coding all variants.
58745         * modules/fflush (Depends-on): Add fpurge and unistd.
58746         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58747         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58748
58749         Fix --with-tests compilation on cygwin.
58750         * modules/argmatch-tests (Makefile.am): List gnulib library first
58751         in LDADD.
58752         * modules/argp-tests (Makefile.am): Likewise.
58753         * modules/array-list-tests (Makefile.am): Likewise.
58754         * modules/array-oset-tests (Makefile.am): Likewise.
58755         * modules/avltree-list-tests (Makefile.am): Likewise.
58756         * modules/avltree-oset-tests (Makefile.am): Likewise.
58757         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58758         * modules/carray-list-tests (Makefile.am): Likewise.
58759         * modules/dirname-tests (Makefile.am): Likewise.
58760         * modules/frexp-tests (Makefile.am): Likewise.
58761         * modules/isnanl-tests (Makefile.am): Likewise.
58762         * modules/linked-list-tests (Makefile.am): Likewise.
58763         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58764         * modules/lock-tests (Makefile.am): Likewise.
58765         * modules/rbtree-list-tests (Makefile.am): Likewise.
58766         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58767         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58768         * modules/tls-tests (Makefile.am): Likewise.
58769         * modules/tsearch-tests (Makefile.am): Likewise.
58770         * modules/xvasprintf-tests (Makefile.am): Likewise.
58771
58772         Fix fpurge for cygwin.
58773         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58774         value.
58775         * modules/fpurge-tests (Depends-on): Clean up trash.
58776
58777 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58778
58779         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58780
58781         * m4/autobuild.m4: Re-indent.
58782
58783 2007-04-13  Bruno Haible  <bruno@clisp.org>
58784
58785         * modules/fpurge-tests: New file.
58786         * tests/test-fpurge.c: New file.
58787
58788         * modules/fpurge: New file.
58789         * lib/fpurge.h: New file.
58790         * lib/fpurge.c: New file.
58791         * m4/fpurge.m4: New file.
58792
58793 2007-04-13  Bruno Haible  <bruno@clisp.org>
58794
58795         * modules/fbufmode-tests: New file.
58796         * tests/test-fbufmode.c: New file.
58797
58798         * modules/fbufmode: New file.
58799         * lib/fbufmode.h: New file.
58800         * lib/fbufmode.c: New file.
58801         * m4/fbufmode.m4: New file.
58802
58803 2007-04-13  Bruno Haible  <bruno@clisp.org>
58804
58805         * modules/fwritable-tests: New file.
58806         * tests/test-fwritable.c: New file.
58807
58808         * modules/fwritable: New file.
58809         * lib/fwritable.h: New file.
58810         * lib/fwritable.c: New file.
58811         * m4/fwritable.m4: New file.
58812
58813 2007-04-13  Bruno Haible  <bruno@clisp.org>
58814
58815         * modules/freadable-tests: New file.
58816         * tests/test-freadable.c: New file.
58817
58818         * modules/freadable: New file.
58819         * lib/freadable.h: New file.
58820         * lib/freadable.c: New file.
58821         * m4/freadable.m4: New file.
58822
58823 2007-04-13  Bruno Haible  <bruno@clisp.org>
58824
58825         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58826         MOSTLYCLEANFILES.
58827
58828 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58829
58830         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58831         gzip bootstrap.conf to avoid dragging in i18n machinery.
58832         (gnulib_tool_option): Use it.
58833
58834 2007-04-13  Bruno Haible  <bruno@clisp.org>
58835
58836         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58837         %F directives.
58838         * tests/test-vasprintf-posix.c (test_function): Likewise.
58839         * tests/test-snprintf-posix.h (test_function): Likewise.
58840         * tests/test-sprintf-posix.h (test_function): Likewise.
58841         * tests/test-fprintf-posix.h (test_function): Likewise.
58842         * tests/test-printf-posix.h (test_function): Likewise.
58843         * tests/test-fprintf-posix.out: Likewise.
58844
58845 2007-04-13  Bruno Haible  <bruno@clisp.org>
58846
58847         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58848         * modules/tls-tests (configure.ac): Likewise.
58849         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58850
58851 2007-04-13  Bruno Haible  <bruno@clisp.org>
58852
58853         * lib/tls.c (glthread_tls_get): Fix return type.
58854         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58855
58856 2007-04-12  Eric Blake  <ebb9@byu.net>
58857
58858         * modules/gettime (Depends-on): Remove gettime.
58859         Reported by Dmitry V. Levin.
58860
58861 2007-04-12  Bruno Haible  <bruno@clisp.org>
58862
58863         * modules/fflush (Include): Mention <stdio.h>.
58864         * modules/strtoimax (Include): Mention <inttypes.h>.
58865         * modules/strtoumax (Include): Likewise.
58866
58867 2007-04-12  Eric Blake  <ebb9@byu.net>
58868
58869         * .cvsignore: New file.
58870         * .gitignore: Likewise.
58871
58872 2007-04-12  Bruno Haible  <bruno@clisp.org>
58873
58874         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
58875         not before, since $(LDADD) often contains libgnu.a.
58876         * modules/striconv-tests (test_striconv_LDADD): Likewise.
58877         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
58878         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
58879         Needed on Cygwin.
58880
58881 2007-04-12  Eric Blake  <ebb9@byu.net>
58882
58883         Work around glibc's failure to flush stdin on fclose.
58884         * lib/closein.c (close_stdin): Flush stdin before closing.
58885
58886         Work around glibc's failure to reset seekable stdin on exit.
58887         * modules/closein: New module.
58888         * lib/closein.c: New file.
58889         * lib/closein.h: Likewise.
58890         * m4/closein.m4: Likewise.
58891         * MODULES.html.sh (File stream based Input/Output): Document it.
58892
58893 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58894
58895         * gnulib-tool: Rename generated 'autobuild' script to
58896         'do-autobuild' in --create-megatestdir output.
58897
58898         * doc/gnulib.texi (Build robot for gnulib): Fix.
58899
58900 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58901
58902         * modules/sysexits (Depends-on): Add absolute-header.
58903
58904 2007-04-12  Eric Blake  <ebb9@byu.net>
58905
58906         No need to preserve errno on success.
58907         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
58908         Reported by Bruno Haible.
58909
58910 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58911
58912         * MODULES.html.sh (Support for maintaining and releasing
58913         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58914
58915 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58916
58917         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58918
58919 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58920
58921         * modules/autobuild: New module.
58922
58923         * m4/autobuild.m4: New file.
58924
58925 2007-04-11  Bruno Haible  <bruno@clisp.org>
58926
58927         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58928         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58929         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58931         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58932         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58933         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58935         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58936         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58937         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
58938         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58939         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
58941         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58942         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58943         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
58944         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58945         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58946         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
58947         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58948         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
58950         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58951         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
58953         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58954         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58955         Reported by Eric Blake.
58956
58957 2007-04-11  Bruno Haible  <bruno@clisp.org>
58958
58959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58960
58961 2007-04-10  Bruno Haible  <bruno@clisp.org>
58962
58963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58964         for NaN and Infinity. Needed on FreeBSD 6.1.
58965         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58966         regarding results for "%010a" of Infinity and NaN.
58967         * tests/test-vasprintf-posix.c (test_function): Likewise.
58968         * tests/test-snprintf-posix.h (test_function): Likewise.
58969         * tests/test-sprintf-posix.h (test_function): Likewise.
58970         * tests/test-fprintf-posix.h (test_function): Likewise.
58971         * tests/test-printf-posix.h (test_function): Likewise.
58972         * tests/test-fprintf-posix.out: Likewise.
58973
58974 2007-04-10  Bruno Haible  <bruno@clisp.org>
58975
58976         * modules/locale-tests: New file.
58977         * tests/test-locale.c: New file.
58978
58979         * modules/locale: New file.
58980         * lib/locale_.h: New file.
58981         * m4/locale_h.m4: New file.
58982
58983 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58984             Bruno Haible  <bruno@clisp.org>
58985
58986         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58987         be determined, test for availability of the copysignf, copysign,
58988         copysignl functions.
58989         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58990         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58991         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58992
58993 2007-04-09  Eric Blake  <ebb9@byu.net>
58994
58995         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58996         * modules/stdio (Makefile.am): Support fflush.
58997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58998         * modules/fflush: New file.
58999         * lib/fflush.c: Likewise.
59000         * m4/fflush.m4: Likewise.
59001         * modules/fflush-tests: New test.
59002         * tests/test-fflush.c: Likewise.
59003         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59004
59005 2007-04-06  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59008         (VASNPRINTF): Use signbit for faster determination whether to print a
59009         minus sign.
59010         * modules/vasnprintf (Files): Remove lib/float+.h.
59011         * modules/fprintf-posix (Depends-on): Add signbit.
59012         * modules/snprintf-posix (Depends-on): Likewise.
59013         * modules/sprintf-posix (Depends-on): Likewise.
59014         * modules/vasnprintf-posix (Depends-on): Likewise.
59015         * modules/vasprintf-posix (Depends-on): Likewise.
59016         * modules/vfprintf-posix (Depends-on): Likewise.
59017         * modules/vsnprintf-posix (Depends-on): Likewise.
59018         * modules/vsprintf-posix (Depends-on): Likewise.
59019
59020 2007-04-06  Bruno Haible  <bruno@clisp.org>
59021
59022         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59023         * tests/test-frexpl.c (main): Likewise.
59024         * tests/test-ldexpl.c (main): Likewise.
59025         * modules/frexp-tests (Depends-on): Add signbit.
59026         * modules/frexpl-tests (Depdends-on): Likewise.
59027         * modules/ldexpl-tests (Depdends-on): Likewise.
59028
59029 2007-04-06  Bruno Haible  <bruno@clisp.org>
59030
59031         * modules/signbit-tests: New file.
59032         * tests/test-signbit.c: New file.
59033
59034         * modules/signbit: New file.
59035         * lib/signbitf.c: New file.
59036         * lib/signbitd.c: New file.
59037         * lib/signbitl.c: New file.
59038         * m4/signbit.m4: New file.
59039         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59040         (signbit): New macro.
59041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59042         REPLACE_SIGNBIT.
59043         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59044         REPLACE_FREXPL into math.h.
59045
59046 2007-04-06  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/isnanf-nolibm-tests: New file.
59049         * tests/test-isnanf.c: New file.
59050
59051         * modules/isnanf-nolibm: New file.
59052         * lib/isnanf.h: New file.
59053         * lib/isnanf.c: New file.
59054         * lib/isnan.c: Consider the USE_FLOAT macro.
59055         * m4/isnanf.m4: New file.
59056
59057 2007-04-06  Bruno Haible  <bruno@clisp.org>
59058
59059         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59060         (Link): New section.
59061
59062         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59063
59064 2007-04-06  Bruno Haible  <bruno@clisp.org>
59065
59066         Assume the 'long double' type.
59067         * m4/longdouble.m4: Remove file.
59068         * config/srclist.txt: Don't mention longdouble.m4.
59069         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59070         * lib/float+.h: Likewise.
59071         * lib/frexp.c: Likewise.
59072         * lib/printf-args.h: Likewise.
59073         * lib/printf-args.c: Likewise.
59074         * lib/printf-frexp.c: Likewise.
59075         * lib/printf-parse.c: Likewise.
59076         * lib/vasnprintf.c: Likewise.
59077         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59078         * m4/intl.m4: Likewise.
59079         * m4/isnanl.m4: Likewise.
59080         * m4/printf.m4: Likewise.
59081         * m4/printf-frexpl.m4: Likewise.
59082         * m4/vasnprintf.m4: Likewise.
59083         * modules/allocsa (Files): Remove m4/longdouble.m4.
59084         * modules/gettext (Files): Likewise.
59085         * modules/relocatable-prog-wrapper (Files): Likewise.
59086         * modules/vasnprintf (Files): Likewise.
59087         * modules/isnanl (Files): Likewise.
59088         (Include): Simplify.
59089         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59090         (Include): Simplify.
59091         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59092         (Include): Simplify.
59093         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59094         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59095         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59096         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59097         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59098         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59099         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59100         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59101         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59102         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59103         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59104         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59105         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59106         * tests/test-isnanl.c: Likewise.
59107         * tests/test-snprintf-posix.h: Likewise.
59108         * tests/test-sprintf-posix.h: Likewise.
59109         * tests/test-vasnprintf-posix.c: Likewise.
59110         * tests/test-vasnprintf-posix2.c: Likewise.
59111         * tests/test-vasprintf-posix.c: Likewise.
59112
59113 2007-04-06  Bruno Haible  <bruno@clisp.org>
59114
59115         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59116         * lib/math_.h [__DECC]: Include the overridden include file through
59117         #include_next, outside the double-inclusion guard.
59118         * lib/stdio_.h [__DECC]: Likewise.
59119         * lib/stdlib_.h [__DECC]: Likewise.
59120         * lib/string_.h [__DECC]: Likewise.
59121         * lib/time_.h [__DECC]: Likewise.
59122         * lib/wchar_.h [__DECC]: Likewise.
59123         * lib/wctype_.h [__DECC]: Likewise.
59124         * lib/inttypes_.h [__DECC]: Likewise.
59125         Reported by Albert Chin <china@thewrittenword.com> in
59126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59127
59128 2007-04-04  Eric Blake  <ebb9@byu.net>
59129
59130         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59131         1.5.x.
59132
59133 2007-04-04  Bruno Haible  <bruno@clisp.org>
59134
59135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59136         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59137
59138 2007-04-04  Bruno Haible  <bruno@clisp.org>
59139
59140         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59141         results for "%010a" of Infinity and NaN.
59142         * tests/test-vasprintf-posix.c (test_function): Likewise.
59143         * tests/test-snprintf-posix.h (test_function): Likewise.
59144         * tests/test-sprintf-posix.h (test_function): Likewise.
59145         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59146         * tests/test-printf-posix.h (test_function): Likewise.
59147         * tests/test-fprintf-posix.out: Update.
59148         Needed for FreeBSD 6.1.
59149
59150 2007-04-04  Bruno Haible  <bruno@clisp.org>
59151
59152         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59153         directly used by the gnulib modules nor by gnulib-tool.
59154
59155 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59156
59157         * DEPENDENCIES: Give overall description of version dependency
59158         desirability.  Use more-typical names for apps.
59159         Add shell, coreutils, diffutils, grep, tar, gzip.
59160
59161 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59162
59163         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59164
59165 2007-04-04  Karl Berry  <karl@gnu.org>
59166
59167         * MODULES.html.sh (func_module): missing '.
59168
59169 2007-04-03  Bruno Haible  <bruno@clisp.org>
59170
59171         * modules/argmatch-tests (Makefile.am): New variable
59172         test_argmatch_LDADD.
59173         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59174         * modules/array-list-tests (Makefile.am): New variable
59175         test_array_list_LDADD.
59176         * modules/array-oset-tests (Makefile.am): New variable
59177         test_array_oset_LDADD.
59178         * modules/avltree-list-tests (Makefile.am): New variable
59179         test_avltree_list_LDADD.
59180         * modules/avltree-oset-tests (Makefile.am): New variable
59181         test_avltree_oset_LDADD.
59182         * modules/avltreehash-list-tests (Makefile.am): New variable
59183         test_avltreehash_list_LDADD.
59184         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59185         test_canonicalize_lgpl_LDADD.
59186         * modules/carray-list-tests (Makefile.am): New variable
59187         test_carray_list_LDADD.
59188         * modules/dirname-tests (Makefile.am): New variable
59189         test_dirname_LDADD.
59190         * modules/linked-list-tests (Makefile.am): New variable
59191         test_linked_list_LDADD.
59192         * modules/linkedhash-list-tests (Makefile.am): New variable
59193         test_linkedhash_list_LDADD.
59194         * modules/rbtree-list-tests (Makefile.am): New variable
59195         test_rbtree_list_LDADD.
59196         * modules/rbtree-oset-tests (Makefile.am): New variable
59197         test_rbtree_oset_LDADD.
59198         * modules/rbtreehash-list-tests (Makefile.am): New variable
59199         test_rbtreehash_list_LDADD.
59200         * modules/xvasprintf-tests (Makefile.am): New variable
59201         test_xvasprintf_LDADD.
59202         Reported by Eric Blake.
59203
59204 2007-04-03  Eric Blake  <ebb9@byu.net>
59205
59206         * DEPENDENCIES: Weaken m4 requirements.
59207
59208 2007-04-03  Bruno Haible  <bruno@clisp.org>
59209
59210         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59211         * modules/isnanl-tests (configure.ac): Likewise.
59212
59213 2007-04-03  Ben Pfaff  <blp@gnu.org>
59214
59215         * modules/iconv_open: Add $(srcdir)/ to source directory
59216         references in Makefile fragments that call gperf, to fix VPATH
59217         builds.
59218
59219 2007-04-03  Bruno Haible  <bruno@clisp.org>
59220
59221         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59222         * lib/ldexpl.c: Undo last change.
59223
59224 2007-04-03  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/printf-frexpl (Depends-on): Undo last change.
59227         (Files): Add m4/ldexpl.m4.
59228
59229 2007-04-03  Bruno Haible  <bruno@clisp.org>
59230
59231         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59232         * modules/isnanl (Link): New section.
59233
59234         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59235         * modules/frexp (Link): New section.
59236
59237         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59238         * modules/frexpl (Link): New section.
59239
59240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59241         * modules/ldexpl (Link): New section.
59242
59243 2007-04-03  Bruno Haible  <bruno@clisp.org>
59244
59245         * modules/TEMPLATE-EXTENDED: New file.
59246         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59247
59248 2007-04-03  Bruno Haible  <bruno@clisp.org>
59249
59250         * DEPENDENCIES: New file.
59251         Suggested by Simon Josefsson.
59252
59253 2007-04-03  Bruno Haible  <bruno@clisp.org>
59254
59255         * doc/gnulib.texi: Escape @.
59256
59257 2007-04-03  James Youngman  <jay@gnu.org>
59258         and Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59261         birthtime on all systems that have birthtime, not just those which
59262         use st_birthtimensec rather than st_birthtim.  Putting zero in
59263         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59264         that the birth time is not available for files on an NFS mount.
59265
59266 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59267
59268         * modules/memxor: Move back from crypto/, suggested by Bruno.
59269         * modules/crypto/hmac-sha1: Fix memxor dependency.
59270
59271         * modules/crypto/gc: Moved from ../.
59272
59273 2007-04-02  Eric Blake  <ebb9@byu.net>
59274
59275         * lib/ldexpl.c (includes): Avoid libm.
59276
59277         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59278
59279 2007-04-02  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59282         on IRIX.
59283
59284 2007-04-02  Bruno Haible  <bruno@clisp.org>
59285
59286         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59287         x86 or x86_64 platforms running MacOS X.
59288         Reported by Ryan Schmidt <@ryandesign.com>.
59289
59290 2007-04-02  Bruno Haible  <bruno@clisp.org>
59291
59292         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59293         i386.
59294
59295 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59296
59297         * modules/crypto/arcfour: Moved from ../.
59298         * modules/crypto/arcfour-tests: Moved from ../.
59299         * modules/crypto/arctwo: Moved from ../.
59300         * modules/crypto/arctwo-tests: Moved from ../.
59301         * modules/crypto/des: Moved from ../.
59302         * modules/crypto/des-tests: Moved from ../.
59303         * modules/crypto/gc-arcfour: Moved from ../.
59304         * modules/crypto/gc-arcfour-tests: Moved from ../.
59305         * modules/crypto/gc-arctwo: Moved from ../.
59306         * modules/crypto/gc-arctwo-tests: Moved from ../.
59307         * modules/crypto/gc-des: Moved from ../.
59308         * modules/crypto/gc-des-tests: Moved from ../.
59309         * modules/crypto/gc-hmac-md5: Moved from ../.
59310         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59311         * modules/crypto/gc-hmac-sha1: Moved from ../.
59312         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59313         * modules/crypto/gc-md2: Moved from ../.
59314         * modules/crypto/gc-md2-tests: Moved from ../.
59315         * modules/crypto/gc-md4: Moved from ../.
59316         * modules/crypto/gc-md4-tests: Moved from ../.
59317         * modules/crypto/gc-md5: Moved from ../.
59318         * modules/crypto/gc-md5-tests: Moved from ../.
59319         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59320         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59321         * modules/crypto/gc-random: Moved from ../.
59322         * modules/crypto/gc-rijndael: Moved from ../.
59323         * modules/crypto/gc-rijndael-tests: Moved from ../.
59324         * modules/crypto/gc-sha1: Moved from ../.
59325         * modules/crypto/gc-sha1-tests: Moved from ../.
59326         * modules/crypto/gc-tests: Moved from ../.
59327         * modules/crypto/hmac-md5: Moved from ../.
59328         * modules/crypto/hmac-md5-tests: Moved from ../.
59329         * modules/crypto/hmac-sha1: Moved from ../.
59330         * modules/crypto/hmac-sha1-tests: Moved from ../.
59331         * modules/crypto/md2: Moved from ../.
59332         * modules/crypto/md2-tests: Moved from ../.
59333         * modules/crypto/md4: Moved from ../.
59334         * modules/crypto/md4-tests: Moved from ../.
59335         * modules/crypto/md5: Moved from ../.
59336         * modules/crypto/md5-tests: Moved from ../.
59337         * modules/crypto/memxor: Moved from ../.
59338         * modules/crypto/rijndael: Moved from ../.
59339         * modules/crypto/rijndael-tests: Moved from ../.
59340         * modules/crypto/sha1: Moved from ../.
59341
59342 2007-03-30  James Youngman  <jay@gnu.org>
59343
59344         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59345         rename() to change the ctime of a file (because ctime is unaffected
59346         by rename on jfs2 on AIX 5.1).
59347         (main): Start by doing cleanup, in case a previous run failed leaving
59348         test files behind.
59349
59350 2007-03-31  Bruno Haible  <bruno@clisp.org>
59351
59352         Support old proprietary implementations of iconv.
59353         * modules/iconv_open: New file.
59354         * lib/iconv_.h: New file.
59355         * m4/iconv_h.m4: New file.
59356         * lib/iconv_open.c: New file.
59357         * lib/iconv_open-aix.gperf: New file.
59358         * lib/iconv_open-hpux.gperf: New file.
59359         * lib/iconv_open-irix.gperf: New file.
59360         * lib/iconv_open-osf.gperf: New file.
59361         * m4/iconv_open.m4: New file.
59362         * modules/linebreak (Depends-on): Add iconv_open.
59363         * modules/striconv (Depends-on): Likewise.
59364         * modules/striconveh (Depends-on): Likewise.
59365         * modules/unicodeio (Depends-on): Likewise.
59366         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59367         (iconv_t)(-1).
59368         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59369         conversion if cd is (iconv_t)(-1).
59370         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59371         is not possible.
59372
59373 2007-03-31  Bruno Haible  <bruno@clisp.org>
59374
59375         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59376         work on Solaris either. Protect also second use of "autodetect_jp".
59377
59378 2007-03-31  Bruno Haible  <bruno@clisp.org>
59379
59380         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59381         the function is not present.
59382
59383 2007-03-31  Bruno Haible  <bruno@clisp.org>
59384
59385         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59386         the function is not present.
59387
59388 2007-03-31  Bruno Haible  <bruno@clisp.org>
59389
59390         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59391         a bug in HP-UX iconv_open().
59392
59393 2007-03-31  Bruno Haible  <bruno@clisp.org>
59394
59395         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59396         (Mathematics <math.h>): New section, add fpieee.
59397         (Input/output <stdio.h>): Add fseterr.
59398         (Mathematics <math.h>): New section, add printf-frexp.
59399         (Container data structures): Add sublist.
59400         (Core language properties): Add fpucw, inline.
59401         (Functions for greatest-width integer types <inttypes.h>): Add
59402         imaxabs, imaxdiv, inttypes.
59403         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59404         isnanl-nolibm, ldexp.
59405         (Mathematics <math.h>): New section, add printf-frexpl.
59406         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59407         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59408         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59409         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59410         (Unicode string functions): Add unistr/u*-mbtoucr.
59411         (Java): Add javacomp-script, javaexec-script.
59412         (C#): Add csharpcomp-script, csharpexec-script.
59413         (Support for building libraries and executables): Add havelib,
59414         relocatable-*.
59415         (Support for maintaining and releasing projects): Renamed from
59416         'Support for maintaining and release projects'. Add announce-gen.
59417
59418 2007-03-31  Bruno Haible  <bruno@clisp.org>
59419
59420         * README: Talk primarily about git.
59421         (git and CVS): Renamed from CVS.
59422         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59423         gnulib is available through git.
59424         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59425
59426 2007-03-30  Bruno Haible  <bruno@clisp.org>
59427
59428         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59429         * lib/poll_.h: Likewise.
59430         * lib/stat_.h: Likewise.
59431         * lib/sys_time_.h: Likewise.
59432         * lib/sysexit_.h: Likewise.
59433         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59434         * lib/stdbool_.h: Likewise.
59435         * lib/byteswap_.h: Add double-inclusion guard.
59436
59437 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59438
59439         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59440
59441 2007-03-30  Karl Berry  <karl@gnu.org>
59442
59443         * config/srclist-update: double space after USA in the license
59444         substitution, since that's how it's usually (?) written.
59445
59446 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59449         reported by Bruno Haible.
59450
59451 2007-03-29  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59454         a bug in AIX iconv().
59455
59456 2007-03-29  Bruno Haible  <bruno@clisp.org>
59457
59458         * modules/ldexpl-tests: New file.
59459         * tests/test-ldexpl.c: New file.
59460
59461 2007-03-29  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/ldexpl.c: Include fpucw.h.
59464         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59465         multiplication.
59466         * modules/ldexpl (Depends-on): Add fpucw.
59467
59468 2007-03-29  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/ldexpl: New file.
59471         * m4/ldexpl.m4: New file.
59472         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59473         set.
59474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59475         REPLACE_LDEXPL.
59476         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59477         REPLACE_LDEXPL.
59478         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59479         gl_FUNC_LDEXPL_WORKS.
59480         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59481         * modules/mathl (Files): Remove lib/ldexpl.c.
59482         (Depends-on): Add ldexpl.
59483
59484 2007-03-29  Bruno Haible  <bruno@clisp.org>
59485
59486         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59487
59488 2007-03-29  Bruno Haible  <bruno@clisp.org>
59489
59490         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59491         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59492         and possibly also HP-UX.
59493         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59494         work on AIX, IRIX, HP-UX, OSF/1.
59495         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59496         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59497         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59498         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59499         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59500         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59501
59502 2007-03-29  Bruno Haible  <bruno@clisp.org>
59503
59504         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59505
59506 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59507
59508         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59509         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59510
59511 2007-03-29  Eric Blake  <ebb9@byu.net>
59512
59513         * lib/acl-internal.h: Remove redundant include.
59514         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59515         Cygwin when a file is locked.
59516
59517 2007-03-29  Bruno Haible  <bruno@clisp.org>
59518
59519         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59520         file.
59521         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59522
59523 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59524
59525         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59526         try to remove a parent directory if the child couldn't be removed
59527         (except for the first rmdir, which could fail because the child
59528         doesn't exist).  Problem reported by Jeff Blaine in
59529         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59530
59531 2007-03-28  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/striconveh.c (utf8conv_carefully): New function.
59534         (mem_cd_iconveh_internal): Invoke it.
59535
59536 2007-03-28  Bruno Haible  <bruno@clisp.org>
59537
59538         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59539         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59540         input.
59541         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59542         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59543         unistr/u8-uctomb.
59544
59545 2007-03-28  Bruno Haible  <bruno@clisp.org>
59546
59547         * modules/unistr/u8-mbtoucr: New file.
59548         * lib/unistr/u8-mbtoucr.c: New file.
59549         * modules/unistr/u16-mbtoucr: New file.
59550         * lib/unistr/u16-mbtoucr.c: New file.
59551         * modules/unistr/u16-mbtoucr: New file.
59552         * lib/unistr/u16-mbtoucr.c: New file.
59553         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59554
59555 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59556             Bruno Haible  <bruno@clisp.org>
59557
59558         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59559         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59560         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59561
59562         * m4/stdio_h.m4: Add stubs for vasprintf too.
59563
59564         * modules/stdio: Support vasprintf in sed command.
59565
59566         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59567         vasprintf.h.  Add stdio module indicator.
59568
59569         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59570         vasprintf.h.
59571
59572         * lib/vasprintf.h: File removed.
59573
59574         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59575         * lib/vasprintf.c: Ditto.
59576         * lib/xvasprintf.c: Ditto.
59577         * tests/test-vasprintf-posix.c: Ditto.
59578         * tests/test-vasprintf.c: Ditto.
59579
59580 2007-03-27  Bruno Haible  <bruno@clisp.org>
59581
59582         Make vasnprintf multithread-safe.
59583         * lib/vasnprintf.c (decimal_point_char): New function.
59584         (VASNPRINTF): Use it.
59585         Suggested by Simon Josefsson.
59586
59587 2007-03-27  Eric Blake  <ebb9@byu.net>
59588
59589         Support sub-second birthtime on cygwin.
59590         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59591         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59592         (get_stat_birthtime): Also work with st_birthtim.
59593
59594 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59595
59596         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59597         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59598         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59599         (get_stat_birthtime_ns): Simplify compile-time tests.
59600         (get_stat_birthtime): Change the API to look like
59601         get_stat_mtime etc., except return a negative tv_nsec on error.
59602         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59603         Don't check for "spare" fields.
59604         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59605         or for struct stat.st_birthtime, as these tests aren't used.
59606         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59607
59608 2007-03-27  Bruno Haible  <bruno@clisp.org>
59609
59610         * lib/stat-time.h: Include <sys/stat.h>.
59611
59612 2007-03-27  James Youngman  <jay@gnu.org>
59613
59614         * lib/stat-time.h (get_stat_birthtime): New function for
59615           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59616         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59617           and its variants.
59618         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59619         * modules/stat-time-test: New file.
59620         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59621
59622 2007-03-26  Bruno Haible  <bruno@clisp.org>
59623
59624         Better support of signalling NaNs.
59625         * lib/atanl.c: Include isnanl.h.
59626         (atanl): Perform test for NaN at the beginning of the function and
59627         through a call to isnanl.
59628         * lib/cosl.c: Include isnanl.h.
59629         (cosl): Perform test for NaN at the beginning of the function and
59630         through a call to isnanl.
59631         * lib/ldexpl.c: Include isnanl.h.
59632         (ldexpl): Perform test for NaN through a call to isnanl.
59633         * lib/logl.c: Include isnanl.h.
59634         (logl): Perform test for NaN at the beginning of the function and
59635         through a call to isnanl.
59636         * lib/sinl.c: Include isnanl.h.
59637         (sinl): Perform test for NaN at the beginning of the function and
59638         through a call to isnanl.
59639         * lib/sqrtl.c: Include isnanl.h.
59640         (sqrtl): Perform test for NaN at the beginning of the function and
59641         through a call to isnanl.
59642         * lib/tanl.c: Include isnanl.h.
59643         (tanl): Perform test for NaN at the beginning of the function and
59644         through a call to isnanl.
59645         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59646         * modules/mathl (Depends-on): Add isnanl.
59647
59648 2007-03-26  Eric Blake  <ebb9@byu.net>
59649
59650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59651         regression in logic sense of previous patch.
59652
59653 2007-03-26  Bruno Haible  <bruno@clisp.org>
59654
59655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59656         unportable shell command "if ! ...".
59657         Reported by Ralf Wildenhues.
59658
59659 2007-03-25  Bruno Haible  <bruno@clisp.org>
59660
59661         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59662         <sysexits.h> file, and only add EX_CONFIG.
59663         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59664         absolute file name and whether it is sufficient. Substitute also
59665         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59666         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59667         ABSOLUTE_SYSEXITS_H into sysexits.h.
59668
59669 2007-03-25  Bruno Haible  <bruno@clisp.org>
59670
59671         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59672         hints is NULL.
59673
59674 2007-03-25  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59677         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59678
59679 2007-03-25  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/vasnprintf.c: Include langinfo.h.
59682         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59683         multithread-safe.
59684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59685         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59688         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59690         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59691         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59692         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59693         Reported by Simon Josefsson.
59694
59695 2007-03-25  Bruno Haible  <bruno@clisp.org>
59696
59697         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59698         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59699         * modules/vasnprintf (Depends-on): Add stdint.
59700
59701 2007-03-25  Bruno Haible  <bruno@clisp.org>
59702
59703         * modules/fpieee: New file.
59704         * m4/fpieee.m4: New file.
59705         * modules/isnan-nolibm (Depends-on): Add fpieee.
59706         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59707         * modules/isnanl (Depends-on): Add fpieee.
59708
59709 2007-03-25  Bruno Haible  <bruno@clisp.org>
59710
59711         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59712
59713 2007-03-25  Bruno Haible  <bruno@clisp.org>
59714
59715         Avoid test failures on IRIX 6.5.
59716         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59717         (main): Use it.
59718         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59719         macros.
59720         (main): Use them.
59721
59722 2007-03-25  Bruno Haible  <bruno@clisp.org>
59723
59724         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59725         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59726         exists but doesn't work.
59727         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59728         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59730         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59731         math.h.
59732
59733 2007-03-25  Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59736         returns inf. Needed on IRIX 6.5.
59737
59738 2007-03-25  Bruno Haible  <bruno@clisp.org>
59739
59740         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59741         (main): Use isnanl instead of x != x idiom.
59742         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59743
59744         * tests/test-frexp.c: Include isnan.h.
59745         (main): Use isnan instead of x != x idiom.
59746         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59747
59748 2007-03-25  Bruno Haible  <bruno@clisp.org>
59749
59750         * tests/test-frexp.c (NaN): New function/macro.
59751         (main): Use it instead of 0.0 / 0.0.
59752         * tests/test-isnan.c (NaN): New function/macro.
59753         (main): Use it instead of 0.0 / 0.0.
59754         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59755         (test_function): Use it instead of 0.0 / 0.0.
59756         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59757         (test_function): Use it instead of 0.0 / 0.0.
59758         * tests/test-snprintf-posix.h (NaN): New function/macro.
59759         (test_function): Use it instead of 0.0 / 0.0.
59760         * tests/test-sprintf-posix.h (NaN): New function/macro.
59761         (test_function): Use it instead of 0.0 / 0.0.
59762         * tests/test-fprintf-posix.h (NaN): New function/macro.
59763         (test_function): Use it instead of 0.0 / 0.0.
59764         * tests/test-printf-posix.h (NaN): New function/macro.
59765         (test_function): Use it instead of 0.0 / 0.0.
59766
59767         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59768
59769 2007-03-25  Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59772
59773 2007-03-25  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/regexec.c (merge_state_with_log): Make static.
59776
59777 2007-03-25  Bruno Haible  <bruno@clisp.org>
59778
59779         * lib/trigl.c (kernel_rem_pio2): Make static.
59780
59781 2007-03-25  Bruno Haible  <bruno@clisp.org>
59782
59783         * lib/sincosl.c (sincosl_table): Make static.
59784
59785 2007-03-25  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59788         if the compiler does not support C99.
59789
59790 2007-03-25  Bruno Haible  <bruno@clisp.org>
59791
59792         * modules/time (Makefile.am): Ensure all rule action lines start with a
59793         tab.
59794
59795 2007-03-24  Bruno Haible  <bruno@clisp.org>
59796
59797         * modules/tsearch-tests: New file.
59798         * tests/test-tsearch.sh: New file.
59799         * tests/test-tsearch.c: New file, mostly copied from glibc.
59800
59801         * modules/search-tests: New file.
59802         * tests/test-search.c: New file.
59803
59804         * modules/search: New file.
59805         * lib/search_.h: New file, incorporating lib/tsearch.h.
59806         * m4/search_h.m4: New file.
59807         * lib/tsearch.h: Remove file.
59808         * lib/tsearch.c: Include search.h instead of tsearch.h.
59809         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59810         HAVE_TSEARCH.
59811         * modules/tsearch (Files): Remove lib/tsearch.h.
59812         (Depends-on): Add search.
59813         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59814         (Include): Change tsearch.h into search.h.
59815
59816 2007-03-24  Bruno Haible  <bruno@clisp.org>
59817
59818         * modules/fpucw: New file.
59819         * lib/fpucw.h: New file.
59820         * lib/frexp.c: Include fpucw.h.
59821         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59822         (FUNC): Use them.
59823         * lib/printf-frexp.c: Include fpucw.h.
59824         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59825         (FUNC): Use them.
59826         * lib/vasnprintf.c: Include fpucw.h.
59827         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59828         'long double' calculations.
59829         * tests/test-frexpl.c: Include fpucw.h.
59830         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59831         * tests/test-printf-frexpl.c: Include fpucw.h.
59832         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59833         * modules/frexpl (Depends-on): Add fpucw.
59834         * modules/printf-frexpl (Depends-on): Likewise.
59835         * modules/fprintf-posix (Depends-on): Likewise.
59836         * modules/snprintf-posix (Depends-on): Likewise.
59837         * modules/sprintf-posix (Depends-on): Likewise.
59838         * modules/vasnprintf-posix (Depends-on): Likewise.
59839         * modules/vasprintf-posix (Depends-on): Likewise.
59840         * modules/vfprintf-posix (Depends-on): Likewise.
59841         * modules/vsnprintf-posix (Depends-on): Likewise.
59842         * modules/vsprintf-posix (Depends-on): Likewise.
59843         * modules/frexpl-tests (Depends-on): Likewise.
59844         * modules/printf-frexpl-tests (Depends-on): Likewise.
59845
59846 2007-03-24  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/float+.h: New file.
59849         * lib/isnan.c: Include float+.h.
59850         (SIZE): New macro.
59851         (FUNC): Compare only SIZE bytes of the value.
59852         * lib/vasnprintf.c: Include float+.h.
59853         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59854         SIZEOF_LDBL or SIZEOF_DBL bytes.
59855         * modules/isnan-nolibm (Files): Add lib/float+.h.
59856         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59857         * modules/isnanl (Files): Add lib/float+.h.
59858         * modules/vasnprintf (Files): Add lib/float+.h.
59859
59860 2007-03-24  Bruno Haible  <bruno@clisp.org>
59861
59862         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59863         include isnanl-nolibm.h.
59864
59865 2007-03-24  Bruno Haible  <bruno@clisp.org>
59866
59867         * tests/test-read-file.c (main): Don't produce spurious output for
59868         expected situations. Make the test fail if it encountered unexpected
59869         results.
59870
59871 2007-03-24  Bruno Haible  <bruno@clisp.org>
59872
59873         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
59874         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
59875
59876 2007-03-24  Bruno Haible  <bruno@clisp.org>
59877
59878         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
59879
59880 2007-03-24  Bruno Haible  <bruno@clisp.org>
59881
59882         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
59883         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
59884
59885         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
59886         * modules/utf8-ucs4: Turn into a symbolic link to module
59887         unistr/u8-mbtouc.
59888
59889         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
59890         utf8-ucs4-unsafe.
59891         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
59892         unistr/u8-mbtouc-unsafe.
59893
59894         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
59895         * modules/utf16-ucs4: Turn into a symbolic link to module
59896         unistr/u16-mbtouc.
59897
59898         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
59899         utf16-ucs4-unsafe.
59900         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
59901         unistr/u16-mbtouc-unsafe.
59902
59903         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
59904         * modules/ucs4-utf8: Turn into a symbolic link to module
59905         unistr/u8-ubtomb.
59906
59907         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
59908         * modules/ucs4-utf16: Turn into a symbolic link to module
59909         unistr/u16-ubtomb.
59910
59911 2007-03-24  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59914         Enable the function only if HAVE_INLINE.
59915         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59916         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59917         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59918         Enable the function only if HAVE_INLINE.
59919         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59920         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59921         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59922         Enable the function only if HAVE_INLINE.
59923         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59924         Enable the function only if HAVE_INLINE.
59925         * modules/utf8-ucs4: Update.
59926         * modules/utf8-ucs4-unsafe: Update.
59927         * modules/utf16-ucs4: Update.
59928         * modules/utf16-ucs4-unsafe: Update.
59929         * modules/ucs4-utf8: Update.
59930         * modules/ucs4-utf16: Update.
59931
59932 2007-03-24  Bruno Haible  <bruno@clisp.org>
59933
59934         * lib/utf8-ucs4.h: Remove file.
59935         * lib/utf8-ucs4-unsafe.h: Remove file.
59936         * lib/utf16-ucs4.h: Remove file.
59937         * lib/utf16-ucs4-unsafe.h: Remove file.
59938         * lib/ucs4-utf8.h: Remove file.
59939         * lib/ucs4-utf16.h: Remove file.
59940         * lib/unistr.h: Include their previous contents.
59941         * m4/utf-ucs4.m4: Remove file.
59942         * m4/ucs4-utf.m4: Remove file.
59943         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59944         (Depends-on): Add unistr/base.
59945         (configure.ac): Remove gl_UTF_UCS4.
59946         (Makefile.am): Update.
59947         (Include): Change to unistr.h.
59948         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59949         (Depends-on): Add unistr/base.
59950         (configure.ac): Remove gl_UTF_UCS4.
59951         (Makefile.am): Update.
59952         (Include): Change to unistr.h.
59953         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59954         (Depends-on): Add unistr/base.
59955         (configure.ac): Remove gl_UTF_UCS4.
59956         (Makefile.am): Update.
59957         (Include): Change to unistr.h.
59958         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59959         (Depends-on): Add unistr/base.
59960         (configure.ac): Remove gl_UTF_UCS4.
59961         (Makefile.am): Update.
59962         (Include): Change to unistr.h.
59963         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59964         (Depends-on): Add unistr/base.
59965         (configure.ac): Remove gl_UCS4_UTF.
59966         (Makefile.am): Update.
59967         (Include): Change to unistr.h.
59968         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59969         (Depends-on): Add unistr/base.
59970         (configure.ac): Remove gl_UCS4_UTF.
59971         (Makefile.am): Update.
59972         (Include): Change to unistr.h.
59973         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59974         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59975         utf8-ucs4-unsafe.h.
59976         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59977         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59978         utf16-ucs4-unsafe.h.
59979         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59980         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59981         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59982         * lib/unistr/u8-strchr.c: Likewise.
59983         * lib/unistr/u8-strrchr.c: Likewise.
59984         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59985         * lib/unistr/u16-strchr.c: Likewise.
59986         * lib/unistr/u16-strrchr.c: Likewise.
59987         * lib/striconveh.c: Update.
59988         * lib/linebreak.c: Update.
59989
59990 2007-03-24  Bruno Haible  <bruno@clisp.org>
59991
59992         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59993         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59994
59995 2007-03-22  Bruno Haible  <bruno@clisp.org>
59996
59997         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59998
59999 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         * MODULES.html.sh (File system functions): New module write-any-file.
60002         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60003         * m4/write-any-file.m4: New files.
60004
60005 2007-03-23  Eric Blake  <ebb9@byu.net>
60006
60007         * gnulib-tool: Rearrange space-tab sequences, since some editors
60008         like to eat them.
60009
60010 2007-03-23  Eric Blake  <ebb9@byu.net>
60011
60012         * lib/version-etc.c (version_etc_va): Update license wording to
60013         be more concise.  Recommended by Richard Stallman.
60014
60015 2007-03-22  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/poll.c (MSG_PEEK): New fallback definition.
60018
60019 2007-03-22  Bruno Haible  <bruno@clisp.org>
60020
60021         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60022         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60023         (main): Update.
60024         Fixes a compilation error on BeOS.
60025
60026 2007-03-22  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/frexpl-tests: New file.
60029         * tests/test-frexpl.c: New file.
60030
60031         * modules/frexpl: New file.
60032         * m4/frexpl.m4: New file.
60033         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60034         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60036         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60037         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60038         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60039
60040 2007-03-22  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/frexpl.c: Share code with lib/frexp.c.
60043         * modules/mathl (Files): Add lib/frexp.c.
60044         (Depends-on): Add isnanl-nolibm.
60045
60046 2007-03-22  Bruno Haible  <bruno@clisp.org>
60047
60048         * modules/printf-frexp (Files): Add m4/frexp.m4.
60049         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60050         only if the found frexp function actually works.
60051
60052 2007-03-22  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/frexp.c: Remove older implementation that uses divisions.
60055
60056 2007-03-21  Bruno Haible  <bruno@clisp.org>
60057
60058         * modules/frexp-tests: New file.
60059         * tests/test-frexp.c: New file.
60060
60061         * modules/frexp: New file.
60062         * lib/frexp.c: New file.
60063         * m4/frexp.m4: New file.
60064         * lib/math_.h (frexp): New declaration.
60065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60066         REPLACE_FREXP.
60067         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60068
60069 2007-03-21  Bruno Haible  <bruno@clisp.org>
60070
60071         * modules/isnanl-tests: New file.
60072         * tests/test-isnanl.c: New file.
60073
60074         * modules/isnanl: New file.
60075         * lib/isnanl.h: New file.
60076         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60077         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60078         gl_FUNC_ISNANL_WORKS.
60079         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60080         New macros.
60081
60082 2007-03-21  Bruno Haible  <bruno@clisp.org>
60083
60084         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60085         lib/isnanl.h.
60086         (Include): Update.
60087         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60088         * lib/vasnprintf.c: Update.
60089         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60090         tests/test-isnanl.h, remove tests/test-isnanl.c.
60091         (Makefile.am): Update.
60092         * tests/test-isnanl-nolibm.c: New file.
60093         * tests/test-isnanl.h: New file.
60094         * tests/test-isnanl.c: Remove file.
60095
60096 2007-03-21  Jim Meyering  <jim@meyering.net>
60097
60098         When trying to open ".", treat ESTALE like EACCES.
60099         * lib/savewd.c (savewd_save): Resort to forking not just upon
60100         failure with EACCES, but also when errno is ESTALE.
60101
60102 2007-03-20  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60105         Needed on AIX 5.1. Reported by Matthew Woehlke.
60106
60107 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60108
60109         Suggestions by Bruno Haible:
60110         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60111         our own.
60112         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60113         * modules/acl (Depends-on): Add gettext.
60114
60115 2007-03-19  Bruno Haible  <bruno@clisp.org>
60116
60117         * modules/iconvme: Remove file.
60118         * lib/iconvme.h: Remove file.
60119         * lib/iconvme.c: Remove file.
60120         * m4/iconvme.m4: Remove file.
60121
60122 2007-03-19  Bruno Haible  <bruno@clisp.org>
60123
60124         * doc/relocatable-maint.texi: Break long shell script line.
60125         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60126
60127 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60130         handle file_has_acl.
60131         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60132         * lib/acl.c: Move header inclusions and related macro defns into
60133         lib/acl-internal.h.
60134         (S_ISLNK): Remove defn, since that's now done for us.
60135         (file_has_acl): Move to lib/file-has-acl.c.
60136         Call acl_trivial if available.  This is the crucial part of the fix.
60137         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60138         shared within the library.  Rewrite a bit, partly to make it compatible
60139         with the GNU coding style.
60140         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60141         Remove unnecessary double-quotes.
60142         Don't test for acl_to_text; the build will catch that.
60143         Replace acl_entries if it doesn't exist and it is needed.
60144         Check for -lsec and acl_trivial (as used on Solaris 10).
60145         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60146         lib/file-has-acl.c.
60147         (Depends-on): Add sys_stat, for S_ISLNK.
60148
60149 2007-03-19  Ben Pfaff  <blp@gnu.org>
60150
60151         * doc/gnulib.texi: Fix typos.
60152         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60153
60154 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60155
60156         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60157         If size is zero here, buf must be zero.
60158
60159 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60160
60161         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60162         <bruno@clisp.org>.
60163
60164 2007-03-18  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60167         Suggested by Eric Blake.
60168
60169 2007-03-18  Ben Pfaff  <blp@gnu.org>
60170
60171         * doc/relocatable.texi: Recommend using as prefix a directory
60172         that does not exist and will never be created.  Based on
60173         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60174         and others.
60175
60176 2007-03-17  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/fchownat.c: Include lchown.h.
60179
60180 2007-03-17  Bruno Haible  <bruno@clisp.org>
60181
60182         Fix endless loop when the given allocated size was > INT_MAX.
60183         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60184         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60185         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60186         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60187         * lib/sprintf.c (sprintf): Likewise.
60188
60189 2007-03-17  Bruno Haible  <bruno@clisp.org>
60190
60191         * tests/test-argp-2.sh (func_compare): Output a context diff.
60192
60193 2007-03-17  Bruno Haible  <bruno@clisp.org>
60194
60195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60196         locale's decimal-point character.
60197
60198 2007-03-17  Bruno Haible  <bruno@clisp.org>
60199
60200         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60201         before comparing it. Needed because on some platforms (e.g. x86) a
60202         'long double' occupies less bytes than sizeof (long double).
60203
60204 2007-03-17  Bruno Haible  <bruno@clisp.org>
60205
60206         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60207         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60208         * tests/test-getaddrinfo.c (simple): Likewise.
60209         * tests/test-read-file.c (main): Likewise.
60210
60211 2007-03-17  Bruno Haible  <bruno@clisp.org>
60212
60213         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60214
60215 2007-03-17  Bruno Haible  <bruno@clisp.org>
60216
60217         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60218         unused variable.
60219
60220 2007-03-17  Bruno Haible  <bruno@clisp.org>
60221
60222         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60223         * tests/test-c-strncasecmp.c: Likewise.
60224
60225 2007-03-17  Bruno Haible  <bruno@clisp.org>
60226
60227         * modules/stdlib (Depends-on): Add unistd.
60228         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60229         Needed for MacOS X 10.3.
60230
60231 2007-03-17  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60234
60235 2007-03-17  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60238
60239 2007-03-17  Bruno Haible  <bruno@clisp.org>
60240
60241         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60242         to reflect files copied from gnulib (with or without modifications).
60243         Suggested by Jim Meyering.
60244
60245 2007-03-17  Eric Blake  <ebb9@byu.net>
60246
60247         * NEWS: Document stdlib change from 2007-02-18.
60248
60249 2007-03-17  Jim Meyering  <jim@meyering.net>
60250
60251         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60252         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60253         someone uses a name containing shell meta-characters.
60254         Reported by Alfred M. Szmidt.
60255
60256         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60257
60258 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60259
60260         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60261         and copy gettext configuration files only if configure.ac contains
60262         a use of AM_GNU_GETTEXT_VERSION.
60263
60264 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60265
60266         * build-aux/bootstrap (gnulib_name): New variable.
60267         (gnulib_tool_options): Use it.
60268
60269 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60270
60271         * tests/test-des.c: Use new namespace.
60272
60273 2007-03-15  Bruno Haible  <bruno@clisp.org>
60274
60275         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60276         Reported by James Youngman <jay@gnu.org>.
60277
60278 2007-03-15  Bruno Haible  <bruno@clisp.org>
60279
60280         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60281         declared prototype. Needed with cc on OSF/1 5.1.
60282
60283 2007-03-15  Bruno Haible  <bruno@clisp.org>
60284
60285         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60286         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60287         (struct gl_list_implementation): Add dispose_fn argument to the
60288         'create_empty', 'create' methods.
60289         (struct gl_list_impl_base): Add field 'dispose_fn'.
60290         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60291         argument.
60292         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60293         dispose_fn argument.
60294         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60295         dispose_fn on the dropped values.
60296         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60297         dispose_fn argument.
60298         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60299         dropped values.
60300         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60301         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60302         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60303         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60304         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60305         argument.
60306         (gl_tree_list_free): Call dispose_fn on the dropped values.
60307         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60308         the dropped values.
60309         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60310         Add dispose_fn argument.
60311         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60312         Call dispose_fn on the dropped values.
60313         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60314         Add dispose_fn argument.
60315         (gl_sublist_create): Initialize the 'dispose_fn' field.
60316         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60317         * tests/test-array_list.c (main): Update.
60318         * tests/test-carray_list.c (main): Update.
60319         * tests/test-avltree_list.c (main): Update.
60320         * tests/test-rbtree_list.c (main): Update.
60321         * tests/test-avltreehash_list.c (main): Update.
60322         * tests/test-rbtreehash_list.c (main): Update.
60323         * tests/test-linked_list.c (main): Update.
60324         * tests/test-linkedhash_list.c (main): Update.
60325         * tests/test-array_oset.c (main): Update.
60326
60327 2007-03-15  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60330         (gl_oset_create_empty): Add dispose_fn argument.
60331         (struct gl_oset_implementation): Add dispose_fn argument to
60332         'create_empty' method.
60333         (struct gl_oset_impl_base): Add dispose_fn field.
60334         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60335         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60336         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60337         values.
60338         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60339         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60340         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60341         dropped value.
60342         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60343         dropped value.
60344         * tests/test-array_oset.c (main): Update.
60345         * tests/test-avltree_oset.c (main): Update.
60346         * tests/test-rbtree_oset.c (main): Update.
60347         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60348
60349 2007-03-13  Bruno Haible  <bruno@clisp.org>
60350
60351         * tests/test-stdbool.c (i): Update after last patch.
60352
60353 2007-03-12  Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60356         the iswprint macro. Needed on Solaris 2.5.1.
60357
60358 2007-03-12  Bruno Haible  <bruno@clisp.org>
60359
60360         * tests/test-printf-frexp.c (main): Declare x as volatile.
60361
60362 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60363
60364         * doc/gnulib.texi (Build robot for gnulib): New section.
60365
60366 2007-03-12  Jim Meyering  <jim@meyering.net>
60367
60368         * build-aux/bootstrap: New file.
60369         * build-aux/bootstrap.conf: New file, from coreutils.
60370
60371 2007-03-11  Bruno Haible  <bruno@clisp.org>
60372
60373         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60374
60375 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60376
60377         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60378         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60379         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60380
60381 2007-03-11  Bruno Haible  <bruno@clisp.org>
60382
60383         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60384         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60385
60386 2007-03-11  Bruno Haible  <bruno@clisp.org>
60387
60388         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60389         formula. Needed for SunPRO C 5.0.
60390
60391 2007-03-11  Bruno Haible  <bruno@clisp.org>
60392
60393         * modules/long-options (Depends-on): Add getopt.
60394
60395 2007-03-11  Bruno Haible  <bruno@clisp.org>
60396
60397         * modules/modechange (Depends-on): Add stdbool.
60398
60399 2007-03-11  Bruno Haible  <bruno@clisp.org>
60400
60401         * modules/i-ring (Depends-on): Add stdbool.
60402
60403 2007-03-11  Bruno Haible  <bruno@clisp.org>
60404
60405         * modules/gc-des (Depends-on): Add stdbool.
60406
60407 2007-03-11  Bruno Haible  <bruno@clisp.org>
60408
60409         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60410
60411 2007-03-11  Bruno Haible  <bruno@clisp.org>
60412
60413         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60414
60415 2007-03-11  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60418
60419 2007-03-11  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/vasnprintf.c (sprintf): Undefine.
60422
60423 2007-03-11  Bruno Haible  <bruno@clisp.org>
60424
60425         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60426         initializers in SunPRO C and Compaq C compilers.
60427
60428 2007-03-11  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60431         decrementing code ANSI C compliant.
60432
60433 2007-03-11  Bruno Haible  <bruno@clisp.org>
60434
60435         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60436         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60437
60438 2007-03-11  Bruno Haible  <bruno@clisp.org>
60439
60440         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60441         <stdbool.h> substitute doesn't pass.
60442
60443 2007-03-11  Bruno Haible  <bruno@clisp.org>
60444
60445         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60446
60447 2007-03-11  Bruno Haible  <bruno@clisp.org>
60448
60449         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60450         script, for submission to autobuild.josefsson.org.
60451
60452 2007-03-10  Bruno Haible  <bruno@clisp.org>
60453
60454         * modules/canonicalize-lgpl-tests: New file.
60455         * tests/test-canonicalize-lgpl.sh: New file.
60456         * tests/test-canonicalize-lgpl.c: New file.
60457
60458         * modules/c-strcase-tests: New file.
60459         * tests/test-c-strcase.sh: New file.
60460         * tests/test-c-strcasecmp.c: New file.
60461         * tests/test-c-strncasecmp.c: New file.
60462
60463         * modules/atexit-tests: New file.
60464         * tests/test-atexit.sh: New file.
60465         * tests/test-atexit.c: New file.
60466
60467 2007-03-10  Bruno Haible  <bruno@clisp.org>
60468
60469         * tests/test-binary-io.sh: Use temporary filenames that are not so
60470         likely to clash with those of other tests (in a parallel make).
60471         * tests/test-binary-io.c: Likewise.
60472
60473 2007-03-10  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60476         fallback; use #error instead.
60477         Suggested by Simon Josefsson.
60478
60479 2007-03-10  Bruno Haible  <bruno@clisp.org>
60480
60481         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60482         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60483         first and the last.
60484
60485 2007-03-10  Bruno Haible  <bruno@clisp.org>
60486
60487         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60488
60489 2007-03-10  Bruno Haible  <bruno@clisp.org>
60490
60491         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60492         "make distcheck".
60493         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60494         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60495         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60496
60497 2007-03-10  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60500         variable.
60501         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60502         variable.
60503
60504 2007-03-09  Eric Blake  <ebb9@byu.net>
60505         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60506
60507         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60508         types are not being provided by gnulib.
60509         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60510         types are supported.
60511
60512 2007-03-10  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/stdio_.h (__attribute__): New macro.
60515         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60516         vsprintf): Specify __attribute__ __format__ for GCC.
60517         Suggested by Eric Blake.
60518
60519 2007-03-09  Bruno Haible  <bruno@clisp.org>
60520
60521         * modules/printf-posix-tests: New file.
60522         * tests/test-printf-posix.sh: New file.
60523         * tests/test-printf-posix.c: New file.
60524
60525         * modules/printf-posix: New file.
60526         * lib/printf.c: New file.
60527         * m4/printf-posix-rpl.m4: New file.
60528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60529         REPLACE_PRINTF.
60530         * lib/stdio_.h (printf): New declaration.
60531         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60532         ____strfmon____): New macros.
60533         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60534         REPLACE_PRINTF.
60535
60536 2007-03-09  Bruno Haible  <bruno@clisp.org>
60537
60538         * tests/test-vasnprintf-posix2.sh: New file.
60539         * tests/test-vasnprintf-posix2.c: New file.
60540         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60541         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60542         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60543
60544         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60545         a locale dependent decimal point, rather than always '.'.
60546
60547 2007-03-09  Eric Blake  <ebb9@byu.net>
60548
60549         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60550         spite of platforms like Tandem/NSK that define it to -1.
60551
60552 2007-03-08  Bruno Haible  <bruno@clisp.org>
60553
60554         * modules/vprintf-posix-tests: New file.
60555         * tests/test-vprintf-posix.sh: New file.
60556         * tests/test-vprintf-posix.c: New file.
60557         * tests/test-printf-posix.h: New file.
60558
60559         * modules/vprintf-posix: New file.
60560         * lib/vprintf.c: New file.
60561         * m4/vprintf-posix.m4: New file.
60562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60563         REPLACE_VPRINTF.
60564         * lib/stdio_.h (vprintf): New declaration.
60565         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60566         REPLACE_VPRINTF.
60567
60568 2007-03-08  Bruno Haible  <bruno@clisp.org>
60569
60570         * modules/fprintf-posix-tests: New file.
60571         * tests/test-fprintf-posix.sh: New file.
60572         * tests/test-fprintf-posix.c: New file.
60573
60574         * modules/fprintf-posix: New file.
60575         * lib/fprintf.c: New file.
60576         * m4/fprintf-posix.m4: New file.
60577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60578         REPLACE_FPRINTF.
60579         * lib/stdio_.h (fprintf): New declaration.
60580         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60581         REPLACE_FPRINTF.
60582
60583 2007-03-08  Bruno Haible  <bruno@clisp.org>
60584
60585         * modules/vfprintf-posix-tests: New file.
60586         * tests/test-vfprintf-posix.sh: New file.
60587         * tests/test-vfprintf-posix.c: New file.
60588         * tests/test-fprintf-posix.h: New file.
60589         * tests/test-fprintf-posix.out: New file.
60590
60591         * modules/vfprintf-posix: New file.
60592         * lib/vfprintf.c: New file.
60593         * m4/vfprintf-posix.m4: New file.
60594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60595         REPLACE_VFPRINTF.
60596         * lib/stdio_.h (vfprintf): New declaration.
60597         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60598         REPLACE_VFPRINTF.
60599
60600 2007-03-08  Bruno Haible  <bruno@clisp.org>
60601
60602         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60603
60604 2007-03-08  Bruno Haible  <bruno@clisp.org>
60605
60606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60607         instead of 'expr' invocations.
60608         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60609         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60610         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60613         Suggested by Paul Eggert.
60614
60615 2007-03-08  Bruno Haible  <bruno@clisp.org>
60616
60617         * modules/fseterr-tests: New file.
60618         * tests/test-fseterr.c: New file.
60619
60620         * modules/fseterr: New file.
60621         * lib/fseterr.h: New file.
60622         * lib/fseterr.c: New file.
60623
60624 2007-03-08  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60627         * lib/getopt_.h: Likewise.
60628         * lib/mbswidth.h: Likewise.
60629         * lib/setenv.h: Likewise.
60630         * lib/vasnprintf.h: Likewise.
60631         * lib/vasprintf.h: Likewise.
60632         * lib/verror.h: Likewise.
60633         * lib/xsetenv.h: Likewise.
60634         * lib/xvasprintf.h: Likewise.
60635
60636 2007-03-08  Jim Meyering  <jim@meyering.net>
60637
60638         * users.txt: Add parted.
60639
60640         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60641
60642 2007-03-07  Bruno Haible  <bruno@clisp.org>
60643
60644         * m4/printf.m4: Make the shell script snippets copy&pastable.
60645
60646 2007-03-02  Bruno Haible  <bruno@clisp.org>
60647
60648         * lib/netinet_in_.h: New file.
60649         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60650         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60651         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60652         (Depends-on): Add absolute-header.
60653         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60654         into netinet/in.h.
60655
60656 2007-03-03  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/sys_select_.h: New file.
60659         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60660         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60661         * modules/sys_select (Files): Add lib/sys_select_.h.
60662         (Depends-on): Add absolute-header.
60663         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60664         into sys/select.h.
60665
60666 2007-03-02  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60669         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60670         values.
60671         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60672         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60673         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60674         * modules/sys_socket (Depends-on): Add absolute-header.
60675         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60676         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60677         (Include): Remove requirement of inclusion of <sys/types.h>.
60678
60679 2007-03-02  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/byteswap_.h (bswap_32): Fix formula.
60682
60683 2007-03-06  Bruno Haible  <bruno@clisp.org>
60684
60685         * modules/sprintf-posix-tests: New file.
60686         * tests/test-sprintf-posix.c: New file.
60687
60688         * modules/sprintf-posix: New file.
60689         * lib/sprintf.c: New file.
60690         * m4/sprintf-posix.m4: New file.
60691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60692         REPLACE_SPRINTF.
60693         * lib/stdio_.h (sprintf): New declaration.
60694         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60695         REPLACE_SPRINTF.
60696
60697 2007-03-06  Bruno Haible  <bruno@clisp.org>
60698
60699         * modules/vsprintf-posix-tests: New file.
60700         * tests/test-vsprintf-posix.c: New file.
60701         * tests/test-sprintf-posix.h: New file.
60702
60703         * modules/vsprintf-posix: New file.
60704         * lib/vsprintf.c: New file.
60705         * m4/vsprintf-posix.m4: New file.
60706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60707         REPLACE_VSPRINTF.
60708         * lib/stdio_.h (vsprintf): New declaration.
60709         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60710         REPLACE_VSPRINTF.
60711
60712 2007-03-06  Bruno Haible  <bruno@clisp.org>
60713
60714         * modules/vsnprintf (Depend-on): Remove minmax.
60715
60716 2007-03-06  Bruno Haible  <bruno@clisp.org>
60717
60718         * modules/snprintf-posix-tests: New file.
60719         * tests/test-snprintf-posix.c: New file.
60720
60721         * modules/snprintf-posix: New file.
60722         * m4/snprintf-posix.m4: New file.
60723         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60724         gl_FUNC_SNPRINTF.
60725         (gl_FUNC_SNPRINTF): Invoke it.
60726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60727         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60728         is set.
60729         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60730
60731 2007-03-06  Bruno Haible  <bruno@clisp.org>
60732
60733         * modules/vsnprintf-posix-tests: New file.
60734         * tests/test-vsnprintf-posix.c: New file.
60735         * tests/test-snprintf-posix.h: New file.
60736
60737         * modules/vsnprintf-posix: New file.
60738         * m4/vsnprintf-posix.m4: New file.
60739         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60740         gl_FUNC_VSNPRINTF.
60741         (gl_FUNC_VSNPRINTF): Invoke it.
60742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60743         * lib/stdio_.h (vsnprintf): Define as a replacement if
60744         REPLACE_VSNPRINTF is set.
60745         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60746
60747 2007-03-06  Bruno Haible  <bruno@clisp.org>
60748
60749         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60751
60752 2007-03-06  Bruno Haible  <bruno@clisp.org>
60753
60754         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60755         (asinl): Declare also if HAVE_DECL_ASINL is set.
60756         (atanl): Declare also if HAVE_DECL_ATANL is set.
60757         (ceill): Declare also if HAVE_DECL_CEILL is set.
60758         (cosl): Declare also if HAVE_DECL_COSL is set.
60759         (expl): Declare also if HAVE_DECL_EXPL is set.
60760         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60761         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60762         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60763         (logl): Declare also if HAVE_DECL_LOGL is set.
60764         (sinl): Declare also if HAVE_DECL_SINL is set.
60765         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60766         (tanl): Declare also if HAVE_DECL_TANL is set.
60767         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60769         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60770         declaration of frexpl, ldexpl.
60771         * modules/printf-frexpl (Depends-on): Add math.
60772         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60773
60774 2007-03-05  Bruno Haible  <bruno@clisp.org>
60775
60776         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60777         frexpl and ldexpl are declared.
60778         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60779
60780 2007-03-05  Bruno Haible  <bruno@clisp.org>
60781
60782         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60783         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60784
60785 2007-03-05  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/stdio_.h: Include <stddef.h>.
60788
60789 2007-03-05  Bruno Haible  <bruno@clisp.org>
60790
60791         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60792
60793 2007-03-05  Bruno Haible  <bruno@clisp.org>
60794
60795         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60796         NetBSD 4, from Ralf Wildenhues.
60797
60798 2007-03-04  Bruno Haible  <bruno@clisp.org>
60799
60800         * lib/vasprintf.h: Update #if logic for the case when the functions
60801         exist but are overridden.
60802
60803 2007-03-04  Bruno Haible  <bruno@clisp.org>
60804
60805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60806         implementations: glibc-2.4 and MacOS X 10.3.
60807         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60808         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60809         * tests/test-vasprintf-posix.c (test_function): Likewise.
60810
60811 2007-03-04  Bruno Haible  <bruno@clisp.org>
60812
60813         * modules/vasprintf-posix-tests: New file.
60814         * tests/test-vasprintf-posix.c: New file.
60815
60816         * modules/vasprintf-posix: New file.
60817         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60818         defined.
60819         * m4/vasprintf-posix.m4: New file.
60820         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60821         gl_FUNC_VASPRINTF.
60822         (gl_FUNC_VASPRINTF): Invoke it.
60823         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60824         here.
60825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60826
60827 2007-03-04  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60830         REPLACE_GETTIMEOFDAY.
60831         * modules/sys_time (Makefile.am): Likewise.
60832         * m4/sys_time_h.m4: Likewise.
60833         * m4/gettimeofday.m4: Likewise.
60834
60835 2007-03-04  Bruno Haible  <bruno@clisp.org>
60836
60837         * modules/vasnprintf-posix-tests: New file.
60838         * tests/test-vasnprintf-posix.c: New file.
60839
60840         * modules/vasnprintf-posix: New file.
60841         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60842         printf-frexpl.h.
60843         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60844         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60845         REPLACE_VASNPRINTF is defined.
60846         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60847         gl_FUNC_VASNPRINTF.
60848         (gl_FUNC_VASNPRINTF): Invoke it.
60849         * m4/vasnprintf-posix.m4: New file.
60850         * m4/printf.m4: New file.
60851
60852 2007-03-04  Bruno Haible  <bruno@clisp.org>
60853
60854         Compile progreloc.c only if --enable-relocatable is specified.
60855         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60856         if --enable-relocatable was specified.
60857         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60858         lib_SOURCES.
60859
60860 2007-03-04  Jim Meyering  <jim@meyering.net>
60861
60862         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60863         Use it consistently, rather than enumerating errno constants.
60864
60865 2007-03-04  Bruno Haible  <bruno@clisp.org>
60866
60867         * modules/xvasprintf-tests: New file.
60868         * tests/test-xvasprintf.c: New file.
60869
60870         * modules/vasprintf-tests: New file.
60871         * tests/test-vasprintf.c: New file.
60872
60873         * modules/vasnprintf-tests: New file.
60874         * tests/test-vasnprintf.c: New file.
60875
60876         * modules/vsnprintf-tests: New file.
60877         * tests/test-vsnprintf.c: New file.
60878
60879         * modules/snprintf-tests: New file.
60880         * tests/test-snprintf.c: New file.
60881
60882 2007-03-04  Bruno Haible  <bruno@clisp.org>
60883
60884         Compile relocatable.c only if --enable-relocatable is specified.
60885         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
60886         gl_RELOCATABLE_LIBRARY.
60887         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
60888         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
60889         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
60890         gl_RELOCATABLE_LIBRARY.
60891         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
60892         (Makefile.am): Remove lib_SOURCES.
60893         * modules/relocatable-lib-lgpl (configure.ac): Invoke
60894         gl_RELOCATABLE_LIBRARY.
60895         (Makefile.am): Remove lib_SOURCES.
60896         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
60897         always.
60898         * modules/relocatable-prog-wrapper (configure.ac): Invoke
60899         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
60900
60901 2007-03-04  Bruno Haible  <bruno@clisp.org>
60902
60903         * modules/argmatch-tests: New file.
60904         * tests/test-argmatch.c: New file.
60905
60906         * tests/test-allocsa.c (main): Halve the number of loop runs.
60907
60908         * modules/alloca-opt-tests: New file.
60909         * tests/test-alloca-opt.c: New file.
60910
60911 2007-03-04  Jim Meyering  <jim@meyering.net>
60912
60913         Work around difference between Linux ACLs and Solaris 10 ZFS.
60914         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60915         for EINVAL.
60916
60917 2007-03-03  Bruno Haible  <bruno@clisp.org>
60918
60919         * modules/relocatable-prog (Depends-on): Add back progreloc's
60920         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60921
60922 2007-03-03  Bruno Haible  <bruno@clisp.org>
60923
60924         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60925         * modules/relocatable-lib: New file.
60926
60927 2007-03-03  Bruno Haible  <bruno@clisp.org>
60928
60929         * modules/relocatable-prog: Renamed from modules/relocatable.
60930         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60931
60932 2007-03-03  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60935         m4/relocatable-lib.m4.
60936         (Depends-on): Remove 'relocatable'.
60937         (configure.ac): Add gl_RELOCATABLE_NOP.
60938
60939 2007-03-03  Bruno Haible  <bruno@clisp.org>
60940
60941         * modules/relocatable-prog-wrapper: New file.
60942         * modules/relocatable (Depends-on): Add it. Remove all other
60943         dependencies except progname.
60944         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60945
60946         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60947         (gl_FUNC_STRERROR): Nop.
60948         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60949
60950         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60951         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60952
60953         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60954         (gl_FUNC_READLINK): Update.
60955
60956         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60957
60958 2007-03-03  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60961         * modules/xreadlink (Depends-on): Add unistd.
60962         * modules/xreadlink-with-size (Depends-on): Likewise.
60963
60964 2007-03-03  Bruno Haible  <bruno@clisp.org>
60965
60966         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60967         extracted from gt_FUNC_SETENV.
60968         (gt_FUNC_SETENV): Remove macro.
60969         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60970         remove gt_FUNC_SETENV.
60971
60972 2007-03-03  Bruno Haible  <bruno@clisp.org>
60973
60974         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60975         ENABLE_RELOCATABLE here.
60976         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60977
60978 2007-03-03  Bruno Haible  <bruno@clisp.org>
60979
60980         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60981         * tests/test-rbtreehash_list.c: Include progname.h.
60982         (main): Call set_program_name.
60983
60984         * modules/rbtree-oset-tests (Depends-on): Add progname.
60985         * tests/test-rbtree_oset.c: Include progname.h.
60986         (main): Call set_program_name.
60987
60988         * modules/rbtree-list-tests (Depends-on): Add progname.
60989         * tests/test-rbtree_list.c: Include progname.h.
60990         (main): Call set_program_name.
60991
60992         * modules/linked-list-tests (Depends-on): Add progname.
60993         * tests/test-linked_list.c: Include progname.h.
60994         (main): Call set_program_name.
60995
60996 2007-03-03  Bruno Haible  <bruno@clisp.org>
60997
60998         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60999         All uses of __restrict changed to _Restrict_.
61000         * lib/glob_.h (__restrict): Remove macro.
61001
61002 2007-03-02  Bruno Haible  <bruno@clisp.org>
61003
61004         * modules/gettext (configure.ac): Require gettext infrastructure
61005         from version 0.16.1.
61006
61007 2007-03-02  Bruno Haible  <bruno@clisp.org>
61008
61009         * modules/linkedhash-list-tests (Depends-on): Add progname.
61010         * tests/test-linkedhash_list.c: Include progname.h.
61011         (main): Call set_program_name.
61012
61013         * modules/carray-list-tests (Depends-on): Add progname.
61014         * tests/test-carray_list.c: Include progname.h.
61015         (main): Call set_program_name.
61016
61017         * modules/avltreehash-list-tests (Depends-on): Add progname.
61018         * tests/test-avltreehash_list.c: Include progname.h.
61019         (main): Call set_program_name.
61020
61021         * modules/avltree-oset-tests (Depends-on): Add progname.
61022         * tests/test-avltree_oset.c: Include progname.h.
61023         (main): Call set_program_name.
61024
61025         * modules/avltree-list-tests (Depends-on): Add progname.
61026         * tests/test-avltree_list.c: Include progname.h.
61027         (main): Call set_program_name.
61028
61029         * modules/array-oset-tests (Depends-on): Add progname.
61030         * tests/test-array_oset.c: Include progname.h.
61031         (main): Call set_program_name.
61032
61033         * modules/array-list-tests (Depends-on): Add progname.
61034         * tests/test-array_list.c: Include progname.h.
61035         (main): Call set_program_name.
61036
61037         * modules/argp-tests (Depends-on): Add progname.
61038         * tests/test-argp.c: Include argp.h first. Include progname.h.
61039         (main): Call set_program_name.
61040
61041 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * doc/gnulib-tool.texi (Initial import): Reword description of
61044         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61045         limited effect even if defined after the first system include.
61046
61047 2007-03-01  Bruno Haible  <bruno@clisp.org>
61048
61049         * build-aux/config.libpath: Update to libtool-1.5.22.
61050         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61051
61052 2007-03-01  Bruno Haible  <bruno@clisp.org>
61053
61054         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61055         foo_CFLAGS.
61056         Reported by Ralf Wildenhues.
61057
61058 2007-03-01  Bruno Haible  <bruno@clisp.org>
61059
61060         * build-aux/install-reloc: Remove object files left over by some
61061         compilers.
61062         Reported by Ralf Wildenhues.
61063
61064 2007-03-01  Bruno Haible  <bruno@clisp.org>
61065
61066         * build-aux/install-reloc: Break long lines.
61067
61068 2007-03-01  Bruno Haible  <bruno@clisp.org>
61069
61070         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61071         Reported by Ralf Wildenhues.
61072
61073 2007-03-01  Bruno Haible  <bruno@clisp.org>
61074
61075         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61076         include ordering constraints.
61077
61078 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61079
61080         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61082         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61083         as another example.
61084         * lib/time_.h: Fix misspelling.
61085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61086         Require gl_HEADER_TIME_H_DEFAULTS.
61087         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61088         * m4/time_r.m4 (gl_TIME_R): Likewise.
61089         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61090
61091 2007-03-01  Bruno Haible  <bruno@clisp.org>
61092
61093         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61094         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61095
61096 2007-03-01  Jim Meyering  <jim@meyering.net>
61097
61098         * modules/xreadlink (Maintainer): Add my name.
61099         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61100
61101 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61102             Bruno Haible  <bruno@clisp.org>
61103
61104         * build-aux/install-reloc: Compile also c-ctype.c.
61105         * build-aux/relocatable.sh.in: New file.
61106         * doc/relocatable.texi: New file.
61107         * doc/relocatable-maint.texi: New file.
61108         * doc/gnulib.texi: Include relocatable-maint.texi.
61109         * lib/progreloc.c: Include unistd.h unconditionally.
61110         * lib/relocwrapper.c: Include unistd.h unconditionally.
61111         Include c-ctype.h.
61112         (add_dotbin): Use c_tolower.
61113         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61114         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61115         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61116         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61117         to m4/relocatable-lib.m4.
61118         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61119         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61120         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61121         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61122         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61123         * modules/relocatable: New file.
61124         * modules/relocatable-lib: New file.
61125         * modules/relocatable-script: New file.
61126
61127 2007-02-28  Bruno Haible  <bruno@clisp.org>
61128
61129         Import --enable-relocatable infrastructure.
61130         * build-aux/config.libpath: New file, from GNU gettext.
61131         * build-aux/install-reloc: New file, from GNU gettext.
61132         * build-aux/reloc-ldflags: New file, from GNU gettext.
61133         * lib/relocatable.h: New file, from GNU gettext.
61134         * lib/relocatable.c: New file, from GNU gettext.
61135         * lib/relocwrapper.c: New file, from GNU gettext.
61136         * m4/relocatable.m4: New file, from GNU gettext.
61137
61138 2007-02-28  Bruno Haible  <bruno@clisp.org>
61139
61140         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61141
61142         * modules/xreadlink: New file, from GNU gettext with modifications.
61143         * lib/xreadlink.c: New file, from GNU gettext.
61144         * lib/xreadlink.h: Add comments.
61145         (xreadlink): New declaration.
61146
61147         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61148         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61149         lib/xreadlink-with-size.c.
61150         (configure.ac): Remove gl_XREADLINK invocation.
61151         (Makefile.am): Augment lib_SOURCES.
61152         * m4/xreadlink.m4: Remove file.
61153         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61154         (xreadlink_with_size): Renamed from xreadink.
61155         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61156         * modules/canonicalize (Depends-on): Replace xreadlink with
61157         xreadlink-with-size.
61158         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61159
61160 2007-02-25  Jim Meyering  <jim@meyering.net>
61161
61162         * build-aux/announce-gen: When complaining about excess arguments,
61163         list them.
61164
61165 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61166
61167         * README: Document signed integer overflow situation more
61168         accurately.
61169
61170 2007-02-25  Bruno Haible  <bruno@clisp.org>
61171
61172         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61173         'a' or 'A' conversion.
61174
61175 2007-02-25  Bruno Haible  <bruno@clisp.org>
61176
61177         * modules/filename: Renamed from modules/pathname.
61178         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61179         lib/concatpath.c with lib/concat-filename.c.
61180         (Makefile.am): Update.
61181         (Include): Replace pathname.h with filename.h.
61182         * lib/filename.h: Renamed from lib/pathname.h.
61183         (concatenated_filename): Renamed from concatenated_pathname.
61184         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61185         (concatenated_filename): Renamed from concatenated_pathname.
61186         * lib/findprog.c: Include filename.h instead of pathname.h.
61187         (find_in_path): Update.
61188         * lib/javacomp.c: Include filename.h instead of pathname.h.
61189         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61190         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61191         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61192         is_oldgcj_14_13_usable, is_javac_usable): Update.
61193         * lib/javaexec.c: Include filename.h instead of pathname.h.
61194         (execute_java_class): Update.
61195         * modules/findprog: Update.
61196         * modules/javacomp: Update.
61197         * modules/javaexec: Update.
61198         * MODULES.html.sh (File system functions): Add 'filename', remove
61199         'pathname'.
61200
61201 2007-02-25  Bruno Haible  <bruno@clisp.org>
61202
61203         * modules/printf-frexpl-tests: New file.
61204         * tests/test-printf-frexpl.c: New file.
61205
61206         * modules/printf-frexpl: New file.
61207         * lib/printf-frexpl.h: New file.
61208         * lib/printf-frexpl.c: New file.
61209         * m4/printf-frexpl.m4: New file.
61210
61211 2007-02-25  Bruno Haible  <bruno@clisp.org>
61212
61213         * modules/printf-frexp-tests: New file.
61214         * tests/test-printf-frexp.c: New file.
61215
61216         * modules/printf-frexp: New file.
61217         * lib/printf-frexp.h: New file.
61218         * lib/printf-frexp.c: New file.
61219         * m4/printf-frexp.m4: New file.
61220
61221 2007-02-25  Bruno Haible  <bruno@clisp.org>
61222
61223         Assume automake >= 1.10 for the tests.
61224         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61225         * modules/arctwo-tests: Likewise.
61226         * modules/argp-tests: Likewise.
61227         * modules/avltree-list-tests: Likewise.
61228         * modules/avltree-oset-tests: Likewise.
61229         * modules/avltreehash-list-tests: Likewise.
61230         * modules/carray-list-tests: Likewise.
61231         * modules/crc-tests: Likewise.
61232         * modules/des-tests: Likewise.
61233         * modules/gc-arcfour-tests: Likewise.
61234         * modules/gc-arctwo-tests: Likewise.
61235         * modules/gc-des-tests: Likewise.
61236         * modules/gc-hmac-md5-tests: Likewise.
61237         * modules/gc-hmac-sha1-tests: Likewise.
61238         * modules/gc-md2-tests: Likewise.
61239         * modules/gc-md4-tests: Likewise.
61240         * modules/gc-md5-tests: Likewise.
61241         * modules/gc-pbkdf2-sha1-tests: Likewise.
61242         * modules/gc-rijndael-tests: Likewise.
61243         * modules/gc-sha1-tests: Likewise.
61244         * modules/gc-tests: Likewise.
61245         * modules/getaddrinfo-tests: Likewise.
61246         * modules/hmac-md5-tests: Likewise.
61247         * modules/hmac-sha1-tests: Likewise.
61248         * modules/linked-list-tests: Likewise.
61249         * modules/linkedhash-list-tests: Likewise.
61250         * modules/lock-tests: Likewise.
61251         * modules/md2-tests: Likewise.
61252         * modules/md4-tests: Likewise.
61253         * modules/md5-tests: Likewise.
61254         * modules/rbtree-list-tests: Likewise.
61255         * modules/rbtree-oset-tests: Likewise.
61256         * modules/rbtreehash-list-tests: Likewise.
61257         * modules/read-file-tests: Likewise.
61258         * modules/rijndael-tests: Likewise.
61259         * modules/stdint-tests: Likewise.
61260         * modules/tls-tests: Likewise.
61261
61262 2007-02-24  Bruno Haible  <bruno@clisp.org>
61263
61264         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61265         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61266         function; instead check whether isnan with a double argument links.
61267         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61268         function; instead check whether isnan with a 'long double' argument
61269         links.
61270         Reported by Eric Blake <ebb9@byu.net>.
61271
61272 2007-02-24  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61275         defined.
61276         * lib/isnanl.c: Remove all code. Just include isnan.c.
61277         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61278
61279 2007-02-25  Jim Meyering  <jim@meyering.net>
61280
61281         Avoid conflicting types for 'unsetenv' on FreeBSD.
61282         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61283         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61284         in stdlib.h.
61285
61286 2007-02-24  Bruno Haible  <bruno@clisp.org>
61287
61288         * modules/isnanl-nolibm-tests: New file.
61289         * tests/test-isnanl.c: New file.
61290
61291         * modules/isnanl-nolibm: New file.
61292         * lib/isnanl.h: New file.
61293         * lib/isnanl.c: New file.
61294         * m4/isnanl.m4: New file.
61295
61296 2007-02-24  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/isnan-nolibm-tests: New file.
61299         * tests/test-isnan.c: New file.
61300
61301         * modules/isnan-nolibm: New file.
61302         * lib/isnan.h: New file.
61303         * lib/isnan.c: New file.
61304         * m4/isnan.m4: New file.
61305
61306 2007-02-24  Bruno Haible  <bruno@clisp.org>
61307
61308         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61309         assume that an exponent fits in 20 bits.
61310
61311 2007-02-24  Jim Meyering  <jim@meyering.net>
61312
61313         * m4/regex.m4: Update the description of the configure-time option,
61314         --without-included-regex, to state accurately what the defaults are,
61315         and perhaps to give people an idea why using this option is risky.
61316
61317 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61320         loops on small arguments.  This attempts to avoid the problem
61321         Bruno Haible reported for AIX 4.3.2 in
61322         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61323
61324 2007-02-23  Bruno Haible  <bruno@clisp.org>
61325
61326         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61327         Needed for help2man.
61328
61329 2007-02-23  Karl Berry  <karl@gnu.org>
61330
61331         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61332         exists, foo.h should be cvs-ignored, not committed.
61333
61334 2007-02-23  Eric Blake  <ebb9@byu.net>
61335
61336         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61337         * lib/stat-time.h (includes): Likewise.
61338         * lib/utimecmp.c (includes): Likewise.
61339         * lib/utimens.h (includes): Likewise.
61340         * lib/getdate.y (includes): Also include "timespec.h" for use
61341         internal to the module.
61342         * modules/utimens (Depends-on): Revert yesterday's patch.
61343         * modules/nanosleep (Depends-on): Add missing dependency.
61344
61345 2007-02-22  Bruno Haible  <bruno@clisp.org>
61346
61347         * lib/glob.c: Don't include getlogin_r.h.
61348
61349 2007-02-22  Jim Meyering  <jim@meyering.net>
61350
61351         * modules/utimens (Depends-on): Add timespec, required for
61352         utimens.h's inclusion of timespec.h.
61353
61354 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61357         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61358         Schwab in
61359         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61360         I'll try to think of a better way to fix the Solaris problem.
61361
61362         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61363         like glibc; on Solaris 10, it fails with errno == EINVAL.
61364         POSIX says the behavior is unspecified if the first argument is NULL,
61365         so play it safe and never pass NULL to the system getcwd.
61366
61367 2007-02-21  Jim Meyering  <jim@meyering.net>
61368
61369         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61370         of gettimeofday.  It would conflict with the one now always
61371         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61372         an IRIX 6.5 build failure.
61373
61374 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         Minor fixups to port to Solaris 10 with Sun C 5.8.
61377         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61378         * modules/getcwd (Depends-on): Add dirfd.
61379         * lib/putenv.c (putenv): #undef it.
61380         (rpl_putenv): New decl.
61381         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61382
61383 2007-02-20  Bruno Haible  <bruno@clisp.org>
61384
61385         * modules/stdio-tests: New file.
61386         * tests/test-stdio.c: New file.
61387
61388         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61389         (Depends-on): Add stdio.
61390         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61391         (Include): Use <stdio.h> instead of vsnprintf.h.
61392         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61393         HAVE_DECL_VSNPRINTF.
61394         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61395
61396         * modules/snprintf (Files): Remove lib/snprintf.h.
61397         (Depends-on): Add stdio.
61398         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61399         (Include): Use <stdio.h> instead of snprintf.h.
61400         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61401         HAVE_DECL_SNPRINTF.
61402         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61403         * lib/getaddrinfo.c: Likewise.
61404
61405         * modules/stdio: New file.
61406         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61407         * lib/snprintf.h: Remove file.
61408         * lib/vsnprintf.h: Remove file.
61409         * lib/.cppi-disable: Remove snprintf.h.
61410         * m4/stdio_h.m4: New file.
61411         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61412
61413 2007-02-20  Jim Meyering  <jim@meyering.net>
61414
61415         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61416         used by e.g., mingw.  From Bruno Haible.
61417
61418 2007-02-19  Bruno Haible  <bruno@clisp.org>
61419
61420         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61421         warnings.
61422         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61423
61424 2007-02-19  Bruno Haible  <bruno@clisp.org>
61425
61426         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61427         from mingw users.
61428
61429 2007-02-19  Bruno Haible  <bruno@clisp.org>
61430
61431         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61432         warnings.
61433         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61434
61435 2007-02-19  Jim Meyering  <jim@meyering.net>
61436
61437         Don't use FD after a successful "fdopendir (fd)".
61438         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61439         Reset it by calling dirfd on the just-obtained DIR*.
61440
61441         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61442         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61443
61444 2007-02-18  Bruno Haible  <bruno@clisp.org>
61445
61446         * lib/readlink.c: Include <unistd.h>.
61447         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61448         HAVE_READLINK.
61449         * modules/readlink (Depends-on): Add unistd.
61450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61451         (Include): Add <unistd.h>.
61452
61453         * lib/getlogin_r.h: Remove file.
61454         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61455         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61456         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61457         HAVE_DECL_GETLOGIN_R.
61458         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61459         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61460         (Include): Use <unistd.h> instead of getlogin_r.h.
61461
61462         * lib/getcwd.h: Remove file.
61463         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61464         * lib/xgetcwd.c: Likewise.
61465         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61466         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61467         * modules/getcwd (Files): Remove lib/getcwd.h.
61468         (Depends-on): Add unistd.
61469         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61470         (Include): Use <unistd.h> instad of getcwd.h.
61471
61472         * lib/ftruncate.c: Include <unistd.h> first.
61473         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61474         Set HAVE_FTRUNCATE.
61475         * modules/ftruncate (Depends-on): Add unistd.
61476         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61477
61478         * lib/fchdir.c: Include <unistd.h> first.
61479         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61481         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61482         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61483         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61484
61485         * lib/dup2.c: Include <unistd.h> first.
61486         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61487         HAVE_DUP2.
61488         * modules/dup2 (Depends-on): Add unistd.
61489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61490
61491         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61492         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61493         REPLACE_CHOWN. Don't define chown as a macro here.
61494         * modules/chown (Depends-on): Add unistd.
61495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61496
61497         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61498         Add definition for GL_LINK_WARNING.
61499         (chown, dup2): New declarations.
61500         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61501         link warning.
61502         (ftruncate): New declaration.
61503         (getcwd): New declaration, taken from old getcwd.h.
61504         (getlogin_r): New declaration, taken from old getlogin_r.h.
61505         (readlink): New declaration.
61506         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61507         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61508         (gl_PREREQ_UNISTD): Remove macro.
61509         (gl_UNISTD_MODULE_INDICATOR): New macro.
61510         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61511         many new variables. Don't set UNISTD_H.
61512         * modules/unistd (Description): Change.
61513         (Depends-on): Add link-warning.
61514         (configure.ac): Update.
61515         (Makefile.am): Create unistd.h always. Substitute many new variables
61516         into it.
61517
61518 2007-02-18  Bruno Haible  <bruno@clisp.org>
61519
61520         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61521         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61522         HAVE_GETSUBOPT.
61523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61524         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61525         * lib/getsubopt.h: Remove file.
61526         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61527         (Depends-on): Add stdlib.
61528         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61529         (Includes): Use <stdlib.h> instead of getsubopt.h.
61530         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61531         Set HAVE_GETSUBOPT.
61532         * lib/getsubopt.c: Don't include getsubopt.h.
61533
61534 2007-02-18  Bruno Haible  <bruno@clisp.org>
61535
61536         * modules/fchdir (Depends-on): Add dup2.
61537
61538 2007-02-18  Bruno Haible  <bruno@clisp.org>
61539
61540         * lib/stdlib_.h: Handle glibc's special invocation convention
61541         specially.
61542
61543 2007-02-18  Bruno Haible  <bruno@clisp.org>
61544
61545         * modules/stdlib-tests: New file.
61546         * tests/test-stdlib.c: New file.
61547
61548         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61549         (Depends-on): Add stdlib.
61550         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61551         (Includes): Use <stdlib.h> instead of mkstemp.h.
61552         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61553         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61554         * lib/mkstemp.c: Don't include mkstemp.h.
61555         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61556         * lib/stdlib--.h: Don't include mkstemp.h.
61557
61558         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61559         (Depends-on): Add stdlib.
61560         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61561         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61562         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61563         HAVE_MKDTEMP.
61564         * lib/mkdtemp.c: Don't include mkdtemp.h.
61565         * lib/clean-temp.c: Don't include mkdtemp.h.
61566
61567         * modules/exit (Files): Remove lib/exit.h.
61568         (Depends-on): Add stdlib.
61569         (Makefile.am): Remove lib_SOURCES.
61570         (Include): Use <stdlib.h> instead of exit.h.
61571         * lib/argmatch.c: Don't include exit.h.
61572         * lib/execute.c: Likewise.
61573         * lib/pagealign_alloc.c: Likewise.
61574         * lib/pipe.c: Likewise.
61575         * lib/wait-process.c: Likewise.
61576         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61577         * lib/exitfail.c: Likewise.
61578         * lib/savewd.c: Likewise.
61579         * lib/xsetenv.c: Likewise.
61580
61581         * modules/stdlib: New file.
61582         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61583         and extra comments about mkstemp().
61584         * lib/exit.h: Remove file.
61585         * lib/mkdtemp.h: Remove file.
61586         * lib/mkstemp.h: Remove file.
61587         * m4/stdlib_h.m4: New file.
61588         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61589
61590 2007-02-18  Bruno Haible  <bruno@clisp.org>
61591
61592         * modules/math-tests: New file.
61593         * tests/test-math.c: New file.
61594
61595         * modules/math: New file.
61596         * modules/mathl (Files): Remove lib/mathl.h.
61597         (Depends-on): Add math.
61598         (Makefile.am): Don't mention mathl.h.
61599         (Include): Use <math.h> instead of mathl.h.
61600         * lib/math_.h: New file.
61601         * lib/mathl.h: Remove file.
61602         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61603         mathl.h.
61604         * lib/asinl.c: Likewise.
61605         * lib/atanl.c: Likewise.
61606         * lib/ceill.c: Likewise.
61607         * lib/cosl.c: Likewise.
61608         * lib/expl.c: Likewise.
61609         * lib/floorl.c: Likewise.
61610         * lib/frexpl.c: Likewise.
61611         * lib/ldexpl.c: Likewise.
61612         * lib/logl.c: Likewise.
61613         * lib/sincosl.c: Likewise.
61614         * lib/sinl.c: Likewise.
61615         * lib/sqrtl.c: Likewise.
61616         * lib/tanl.c: Likewise.
61617         * lib/trigl.c: Likewise.
61618         * m4/math_h.m4: New file.
61619         * MODULES.html.sh (Mathematics): Add math.
61620
61621 2007-02-17  Bruno Haible  <bruno@clisp.org>
61622
61623         * modules/wctype-tests: New file.
61624         * tests/test-wctype.c: New file.
61625
61626         * modules/wchar-tests: New file.
61627         * tests/test-wchar.c: New file.
61628
61629         * modules/unistd-tests: New file.
61630         * tests/test-unistd.c: New file.
61631
61632         * modules/time-tests: New file.
61633         * tests/test-time.c: New file.
61634
61635         * modules/sysexits-tests: New file.
61636         * tests/test-sysexits.c: New file.
61637
61638         * modules/sys_time-tests: New file.
61639         * tests/test-sys_time.c: New file.
61640
61641         * modules/sys_stat-tests: New file.
61642         * tests/test-sys_stat.c: New file.
61643
61644         * modules/sys_socket-tests: New file.
61645         * tests/test-sys_socket.c: New file.
61646
61647         * modules/sys_select-tests: New file.
61648         * tests/test-sys_select.c: New file.
61649
61650         * modules/string-tests: New file.
61651         * tests/test-string.c: New file.
61652
61653         * modules/stdbool-tests: New file.
61654         * tests/test-stdbool.c: New file.
61655
61656         * modules/netinet_in-tests: New file.
61657         * tests/test-netinet_in.c: New file.
61658
61659         * modules/inttypes-tests: New file.
61660         * tests/test-inttypes.c: New file.
61661
61662         * modules/fcntl-tests: New file.
61663         * tests/test-fcntl.c: New file.
61664
61665         * modules/byteswap-tests: New file.
61666         * tests/test-byteswap.c: New file.
61667
61668         * modules/arpa_inet-tests: New file.
61669         * tests/test-arpa_inet.c: New file.
61670
61671 2007-02-17  Bruno Haible  <bruno@clisp.org>
61672
61673         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61674         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61675         if the corresponding module is not enabled. Emit link warnings if
61676         the function is used nevertheless.
61677         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61678         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61679         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61680         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61681         * modules/inttypes (Depends-on): Add link-warning.
61682         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61683         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61684         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61685         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61686         * modules/imaxdiv (configure.ac): Likewise.
61687         * modules/strtoimax (configure.ac): Likewise.
61688         * modules/strtoumax (configure.ac): Likewise.
61689
61690 2007-02-17  Bruno Haible  <bruno@clisp.org>
61691
61692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61693         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61694         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61695         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61696
61697 2007-02-17  Bruno Haible  <bruno@clisp.org>
61698
61699         * modules/link-warning: New file.
61700         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61701         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61702         * modules/string (Depends-on): Add link-warning.
61703         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61704         string.h.
61705         * MODULES.html.sh (Support for building libraries and executables): Add
61706         link-warning.
61707
61708 2007-02-17  Bruno Haible  <bruno@clisp.org>
61709
61710         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61711         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61712         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61713         long lines.
61714
61715 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61716             Bruno Haible  <bruno@clisp.org>
61717
61718         * modules/tmpfile: New file.
61719         * lib/tmpfile.c: New file.
61720         * m4/tmpfile.m4: New file.
61721         * MODULES.html.sh (func_all_modules): New section "Input/output".
61722
61723 2007-02-15  Bruno Haible  <bruno@clisp.org>
61724
61725         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61726         (supports_delete_on_close): New function.
61727         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61728
61729 2007-02-14  Bruno Haible  <bruno@clisp.org>
61730
61731         * modules/mbspcasecmp-tests: New file.
61732         * tests/test-mbspcasecmp.sh: New file.
61733         * tests/test-mbspcasecmp.c: New file.
61734
61735         New module mbspcasecmp.
61736         * modules/mbspcasecmp: New file.
61737         * lib/mbspcasecmp.c: New file.
61738         * lib/string_.h (strncasecmp): Change warning message.
61739         (mbspcasecmp): New declaration.
61740         * m4/mbspcasecmp.m4: New file.
61741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61742         GNULIB_MBSPCASECMP.
61743         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61744         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61745
61746 2007-02-14  Bruno Haible  <bruno@clisp.org>
61747
61748         * modules/mbsncasecmp-tests: New file.
61749         * tests/test-mbsncasecmp.sh: New file.
61750         * tests/test-mbsncasecmp.c: New file.
61751
61752         New module mbsncasecmp.
61753         * modules/mbsncasecmp: New file.
61754         * lib/mbsncasecmp.c: New file.
61755         * lib/string_.h (mbsncasecmp): New declaration.
61756         * m4/mbsncasecmp.m4: New file.
61757         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61758         GNULIB_MBSNCASECMP.
61759         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61760         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61761
61762 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61765         Verify that it doesn't overlap with our flags.
61766         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61767         do not have the desired effect in multibyte locales; instead, use
61768         mbscasecmp.
61769         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61770         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61771         we don't require GNU fnmatch ourselves (if our users require it, they
61772         should do so explicitly).
61773
61774         Fix regex code so it doesn't rely on strcasecmp.
61775         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61776         Otherwise, include gnulib's langinfo.h.
61777         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61778         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61779         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61780         * modules/regex (FILES): Remove m4/codeset.m4.
61781         (Depends-on): Add localcharset.  Remove strcase.
61782
61783 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61784
61785         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61786         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61787
61788 2007-02-13  Bruno Haible  <bruno@clisp.org>
61789
61790         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61791         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61792
61793 2007-02-12  Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61796         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61797         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61798         time warning rather than a link error.
61799
61800 2007-02-12  Bruno Haible  <bruno@clisp.org>
61801
61802         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61803         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61805
61806 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61807
61808         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61809         args, not 2.
61810
61811 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61812
61813         New module 'time', so that apps can include <time.h> as per
61814         POSIX and GNU instead of separate include files like time_r.h
61815         and timegm.h.  This implementation tries out a simpler approach
61816         for replacing decls in standard include files (as compared to
61817         the string module), somewhat as an experiment.
61818
61819         * config/srclist.txt: Comment out mktime.c for now.
61820         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61821         since it doesn't apply any more.  Use generic wording instead.
61822         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61823         'time'.
61824         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61825         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61826         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61827         Don't include <sys/types.h>; no longer needed since we assume C89.
61828         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61829         * lib/strftime.c: Likewise.
61830         * lib/time_r.c: Likewise.
61831         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61832         * lib/nanosleep.c: Include <time.h> first, to check interface.
61833         * lib/strptime.c: Likewise.
61834         * lib/time_r.c: Likewise.
61835         * lib/timegm.c: Likewise.
61836         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61837         needed.
61838         * lib/timegm.c: Don't include timegm.h; no longer needed.
61839         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61840         time.h now handles any problems in that area.
61841         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61842         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61843         that time.h defines struct timespec.
61844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61845         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61846         handles that.
61847         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61848         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61849         needed.  Set REPLACE_LOCALTIME.
61850         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61851         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61852         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61853         nanosleep; time_h.m4 now does that.  Don't require
61854         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61855         module handles this now.
61856         * modules/getdate (Depends-on): Remove timespec.  Add time.
61857         * modules/nanosleep (Depends-on): Likewise.
61858         * modules/stat-time (Depends-on): Likewise.
61859         * modules/nanosleep (Include): Include time.h, not timespec.h.
61860         * modules/strptime (Files): Remove lib/strptime.h.
61861         (Depends-on): Add extensions, time.
61862         (Include): Include time.h, not strptime.h.
61863         * modules/time_r (Files): Remove lib/time_r.h.
61864         (Depends-on): Add time.
61865         (Include): Include time.h, not time_r.h.
61866         * modules/timegm: Likewise.
61867         * modules/timespec (Description): Now does timespec-related decls
61868         of our own, instead of struct timespec itself.
61869         (Depends-on): Add time; remove extensions.
61870         (Maintainer): Add self.
61871         * modules/utimecmp (Depends-on): Add time; remove timespec.
61872         * modules/utimens (Depends-on): Likewise.
61873         * modules/xnanosleep (Depends-on): Likewise.
61874
61875 2007-02-11  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/c-strstr.c: Include allocsa.h.
61878         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61879         * lib/c-strcasestr.c: Include allocsa.h.
61880         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61881         * lib/strcasestr.c: Include allocsa.h.
61882         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61883         * lib/mbsstr.c: Include allocsa.h.
61884         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61885         allocsa/freesa instead of malloc/free.
61886         * lib/mbscasestr.c: Include allocsa.h.
61887         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61888         allocsa/freesa instead of malloc/free.
61889         * modules/c-strstr (Depends-on): Add allocsa.
61890         * modules/c-strcasestr (Depends-on): Likewise.
61891         * modules/strcasestr (Depends-on): Likewise.
61892         * modules/mbsstr (Depends-on): Likewise.
61893         * modules/mbscasestr (Depends-on): Likewise.
61894
61895 2007-02-11  Bruno Haible  <bruno@clisp.org>
61896
61897         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
61898
61899         * modules/mbsspn-tests: New file.
61900         * tests/test-mbsspn.sh: New file.
61901         * tests/test-mbsspn.c: New file.
61902
61903 2007-02-11  Bruno Haible  <bruno@clisp.org>
61904
61905         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
61906
61907         * modules/mbspbrk-tests: New file.
61908         * tests/test-mbspbrk.sh: New file.
61909         * tests/test-mbspbrk.c: New file.
61910
61911 2007-02-11  Bruno Haible  <bruno@clisp.org>
61912
61913         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61914         unneeded cast.
61915
61916         * modules/mbscspn-tests: New file.
61917         * tests/test-mbscspn.sh: New file.
61918         * tests/test-mbscspn.c: New file.
61919
61920 2007-02-11  Bruno Haible  <bruno@clisp.org>
61921
61922         * modules/mbscasecmp-tests: New file.
61923         * tests/test-mbscasecmp.sh: New file.
61924         * tests/test-mbscasecmp.c: New file.
61925
61926 2007-02-11  Bruno Haible  <bruno@clisp.org>
61927
61928         Ensure O(n) worst-case complexity of mbscasestr.
61929         * lib/mbscasestr.c: Include stdbool.h.
61930         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61931         functions.
61932         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61933         the bookkeeping indicates that it's worth it.
61934         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61935
61936         * modules/mbscasestr-tests: New file.
61937         * tests/test-mbscasestr1.c: New file.
61938         * tests/test-mbscasestr2.sh: New file.
61939         * tests/test-mbscasestr2.c: New file.
61940         * tests/test-mbscasestr3.sh: New file.
61941         * tests/test-mbscasestr3.c: New file.
61942         * tests/test-mbscasestr4.sh: New file.
61943         * tests/test-mbscasestr4.c: New file.
61944         * m4/locale-tr.m4: New file.
61945
61946 2007-02-11  Bruno Haible  <bruno@clisp.org>
61947
61948         Ensure O(n) worst-case complexity of mbsstr.
61949         * lib/mbsstr.c: Include stdbool.h.
61950         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61951         functions.
61952         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61953         bookkeeping indicates that it's worth it.
61954         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61955
61956         * modules/mbsstr-tests: New file.
61957         * tests/test-mbsstr1.c: New file.
61958         * tests/test-mbsstr2.sh: New file.
61959         * tests/test-mbsstr2.c: New file.
61960         * tests/test-mbsstr3.sh: New file.
61961         * tests/test-mbsstr3.c: New file.
61962         * m4/locale-fr.m4: New file.
61963
61964 2007-02-11  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/mbsrchr.c (mbsrchr): Fix bug.
61967
61968         * modules/mbsrchr-tests: New file.
61969         * tests/test-mbsrchr.sh: New file.
61970         * tests/test-mbsrchr.c: New file.
61971
61972 2007-02-11  Bruno Haible  <bruno@clisp.org>
61973
61974         * lib/mbschr.c (mbschr): Fix bug.
61975
61976         * modules/mbschr-tests: New file.
61977         * tests/test-mbschr.sh: New file.
61978         * tests/test-mbschr.c: New file.
61979         * m4/locale-zh.m4: New file.
61980
61981 2007-02-11  Bruno Haible  <bruno@clisp.org>
61982
61983         Support for copying multibyte string iterators.
61984         * lib/mbiter.h: Include <string.h>.
61985         (mbiter_multi_copy): New function.
61986         (mbi_copy): New macro.
61987         * lib/mbuiter.h: Include <string.h>.
61988         (mbuiter_multi_copy): New function.
61989         (mbui_copy): New macro.
61990
61991 2007-02-11  Bruno Haible  <bruno@clisp.org>
61992
61993         New module mbslen.
61994         * modules/mbslen: New file.
61995         * lib/mbslen.c: New file.
61996         * lib/string_.h (mbslen): New declaration.
61997         * m4/mbslen.m4: New file.
61998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61999         GNULIB_MBSLEN.
62000         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62001         * MODULES.html.sh (Internationalization functions): Add mbslen.
62002
62003 2007-02-11  Bruno Haible  <bruno@clisp.org>
62004
62005         Ensure O(n) worst-case complexity of strcasestr substitute.
62006         * lib/strcasestr.c: Include stdbool.h.
62007         (knuth_morris_pratt): New function.
62008         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62009         bookkeeping indicates that it's worth it.
62010         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62011
62012         * modules/strcasestr-tests: New file.
62013         * tests/test-strcasestr.c: New file.
62014
62015 2007-02-11  Bruno Haible  <bruno@clisp.org>
62016
62017         Ensure O(n) worst-case complexity of c_strcasestr.
62018         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62019         (knuth_morris_pratt): New function.
62020         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62021         the bookkeeping indicates that it's worth it.
62022         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62023
62024         * modules/c-strcasestr-tests: New file.
62025         * tests/test-c-strcasestr.c: New file.
62026
62027 2007-02-11  Bruno Haible  <bruno@clisp.org>
62028
62029         Ensure O(n) worst-case complexity of c_strstr.
62030         * lib/c-strstr.c: Include stdbool.h, string.h.
62031         (knuth_morris_pratt): New function.
62032         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62033         bookkeeping indicates that it's worth it.
62034         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62035
62036         * lib/c-strstr.c: Complete rewrite for maintainability.
62037
62038         * modules/c-strstr-tests: New file.
62039         * tests/test-c-strstr.c: New file.
62040
62041 2007-02-11  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62044         5.2.1 and earlier, whereby \055 was treated just like the range
62045         delimiter '-'.
62046         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62047
62048 2007-02-08  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/regex (Depends-on): Add stdbool.
62051         Reported by Dalibor Topic <robilad@kaffe.org>.
62052
62053 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62056         Prefer returning from main to exiting from it.
62057         Remove unnecessary parens after sizeof.
62058
62059 2007-02-05  Bruno Haible  <bruno@clisp.org>
62060
62061         New module mbssep.
62062         * modules/mbssep: New file.
62063         * lib/mbssep.c: New file.
62064         * lib/string_.h (strsep): Add a conditional link warning.
62065         (mbssep): New declaration.
62066         * m4/mbssep.m4: New file.
62067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62068         GNULIB_MBSSEP.
62069         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62070         * MODULES.html.sh (Internationalization functions): Add mbssep.
62071
62072 2007-02-05  Bruno Haible  <bruno@clisp.org>
62073
62074         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62075         Optimize search in case of 1 delimiter.
62076
62077 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62078
62079         * lib/acl.h: Include sys/types.h before sys/acl.h.
62080
62081 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62082
62083         Merge upstream fix for glibc bugzilla #3957:
62084
62085         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62086
62087         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62088         bit for RE_HAT_LISTS_NOT_NEWLINE.
62089         (build_charclass_op): Remove bogus comment.
62090
62091 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62092
62093         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62094
62095 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62096
62097         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62098         * lib/memmem.c [!defined _LIBC]: Include config.h.
62099
62100 2007-02-04  Bruno Haible  <bruno@clisp.org>
62101
62102         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62103         warning message.
62104
62105 2007-02-04  Bruno Haible  <bruno@clisp.org>
62106
62107         New module mbstok_r.
62108         * modules/mbstok_r: New file.
62109         * lib/mbstok_r.c: New file.
62110         * lib/string_.h (strtok_r): Change argument names to match the
62111         comments. Add a conditional link warning.
62112         (mbstok_r): New declaration.
62113         * m4/mbstok_r.m4: New file.
62114         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62115         GNULIB_MBSTOK_R.
62116         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62117         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62118
62119 2007-02-04  Bruno Haible  <bruno@clisp.org>
62120
62121         New module mbsspn.
62122         * modules/mbsspn: New file.
62123         * lib/mbsspn.c: New file.
62124         * lib/string_.h (strspn): Add a conditional link warning.
62125         (mbsspn): New declaration.
62126         * m4/mbsspn.m4: New file.
62127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62128         GNULIB_MBSSPN.
62129         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62130         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62131
62132 2007-02-04  Bruno Haible  <bruno@clisp.org>
62133
62134         New module mbspbrk.
62135         * modules/mbspbrk: New file.
62136         * lib/mbspbrk.c: New file.
62137         * lib/string_.h (strpbrk): Add a conditional link warning.
62138         (mbspbrk): New declaration.
62139         * m4/mbspbrk.m4: New file.
62140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62141         GNULIB_MBSPBRK.
62142         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62143         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62144
62145 2007-02-04  Bruno Haible  <bruno@clisp.org>
62146
62147         New module mbscspn.
62148         * modules/mbscspn: New file.
62149         * lib/mbscspn.c: New file.
62150         * lib/string_.h (strcspn): Add a conditional link warning.
62151         (mbscspn): New declaration.
62152         * m4/mbscspn.m4: New file.
62153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62154         GNULIB_MBSCSPN.
62155         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62156         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62157
62158 2007-02-04  Bruno Haible  <bruno@clisp.org>
62159
62160         New module mbscasestr, reduced goal of strcasestr.
62161         * modules/mbscasestr: New file.
62162         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62163         (mbscasestr): Renamed from strcasestr.
62164         * lib/strcasestr.c: Don't include mbuiter.h.
62165         (strcasestr): Remove support for multibyte locales.
62166         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62167         Change the conditional link warning.
62168         (mbscasestr): New declaration.
62169         * m4/mbscasestr.m4: New file.
62170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62171         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62172         REPLACE_STRCASESTR.
62173         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62175         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62176         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62177         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62178         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62179         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62180         (Depends-on): Remove mbuiter.
62181         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62182
62183 2007-02-04  Bruno Haible  <bruno@clisp.org>
62184
62185         Simplify handling of strncasecmp.
62186         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62187         the conditional link warning.
62188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62189         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62190         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62191         * modules/strcase (configure.ac): Don't invoke
62192         gl_STRING_MODULE_INDICATOR.
62193         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62194
62195 2007-02-04  Bruno Haible  <bruno@clisp.org>
62196
62197         New module mbscasecmp, reduced goal of strcasecmp.
62198         * modules/mbscasecmp: New file.
62199         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62200         (mbscasecmp): Renamed from strcasecmp.
62201         * lib/strcasecmp.c: Don't include mbuiter.h.
62202         (strcasecmp): Remove support for multibyte locales.
62203         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62204         Change the conditional link warning.
62205         (mbscasecmp): New declaration.
62206         * m4/mbscasecmp.m4: New file.
62207         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62208         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62209         REPLACE_STRCASECMP.
62210         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62211         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62212         GNULIB_MBSCASECMP.
62213         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62214         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62215         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62216         (Depends-on): Remove mbuiter.
62217         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62218
62219 2007-02-04  Bruno Haible  <bruno@clisp.org>
62220
62221         New module mbsstr. Remove module strstr.
62222         * modules/mbsstr: New file.
62223         * modules/strstr: Remove file.
62224         * lib/mbsstr.c: Renamed from lib/strstr.c.
62225         (mbsstr): Renamed from strstr.
62226         * lib/string_.h (strstr): Remove declaration. Change the conditional
62227         link warning.
62228         (mbsstr): New declaration.
62229         * m4/mbsstr.m4: New file.
62230         * m4/strstr.m4: Remove file.
62231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62232         REPLACE_STRSTR.
62233         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62234         Don't initialize GNULIB_STRSTR.
62235         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62236         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62237         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62238         (Support for systems lacking ANSI C 89): Remove strstr.
62239
62240 2007-02-04  Bruno Haible  <bruno@clisp.org>
62241
62242         New module mbsrchr.
62243         * modules/mbsrchr: New file.
62244         * lib/mbsrchr.c: New file.
62245         * lib/string_.h (strrchr): Add a conditional link warning.
62246         (mbsrchr): New declaration.
62247         * m4/mbsrchr.m4: New file.
62248         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62249         GNULIB_MBSRCHR.
62250         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62251         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62252
62253 2007-02-04  Bruno Haible  <bruno@clisp.org>
62254
62255         New module mbschr.
62256         * modules/mbschr: New file.
62257         * lib/mbschr.c: New file.
62258         * lib/string_.h (strchr): Add a conditional link warning.
62259         (mbschr): New declaration.
62260         * m4/mbschr.m4: New file.
62261         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62262         GNULIB_MBSCHR.
62263         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62264         * MODULES.html.sh (Internationalization functions): Add mbschr.
62265
62266 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62267
62268         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62269
62270         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62271
62272 2007-02-04  Bruno Haible  <bruno@clisp.org>
62273
62274         New module description section 'configure.ac-early'.
62275         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62276         (func_get_autoconf_early_snippet): New function.
62277         (func_import, func_create_testdir): Use it. Remove special cases for
62278         modules 'extensions' and 'lock'.
62279         * modules/extensions (configure.ac-early): Require
62280         gl_USE_SYSTEM_EXTENSIONS.
62281         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62282
62283 2007-02-04  Bruno Haible  <bruno@clisp.org>
62284
62285         Make use of gcj-4.3's -fsource and -ftarget option.
62286         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62287         and if so try the options -fsource and -ftarget.
62288         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62289         source_version, ftarget_option, target_version arguments.
62290         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62291         (is_envjavac_oldgcj_14_14_usable): Renamed from
62292         is_envjavac_gcj_14_14_usable.
62293         (is_envjavac_oldgcj_14_13_usable): Renamed from
62294         is_envjavac_gcj_14_13_usable.
62295         (is_gcj_present): Update.
62296         (is_gcj_43, is_gcj43_usable): New functions.
62297         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62298         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62299         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62300         try the options -fsource and -ftarget.
62301
62302 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62303
62304         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62305         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62306         larger value.
62307
62308 2007-02-03  Jim Meyering  <jim@meyering.net>
62309
62310         Give tools a better chance to allocate space for very large buffers.
62311         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62312
62313         Make pwd and readlink work also when run with an unreadable parent dir
62314         on systems with openat support.
62315         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62316         provided getcwd function, even when we have openat support.
62317         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62318
62319 2007-02-02  Bruno Haible  <bruno@clisp.org>
62320
62321         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62322         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62323         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62324         portability problems if one of these functions is only used on specific
62325         platforms.
62326         Reported by Paul Eggert.
62327
62328 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62329
62330         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62331         is causing more trouble than it's curing.
62332         * lib/regex_internal.h (__mempcpy): Remove.
62333         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62334         (and make the code a tad smaller to boot).
62335         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62336
62337 2007-02-02  Jim Meyering  <jim@meyering.net>
62338
62339         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62340         section, not in the Makefile.am: one.
62341
62342 2007-02-02  Eric Blake  <ebb9@byu.net>
62343
62344         * lib/strchrnul.c: Always include config.h first.
62345
62346         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62347         gnulib strstr is not necessary here.
62348
62349 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62350
62351         * m4/socklen.m4: Fix typo.
62352
62353 2007-02-02  Eric Blake  <ebb9@byu.net>
62354
62355         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62356         * modules/netinet_in (Makefile.am): Likewise.
62357
62358 2007-02-01  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/string_.h (GL_LINK_WARNING): New macro.
62361         (strcasecmp, strstr, strcasestr): If provided by the system,
62362         conditionally define as a macro that leads to a warning instead of to
62363         an error.
62364         (strncasecmp): Conditionally define as a macro that leads to a warning.
62365
62366 2007-02-01  Karl Berry  <karl@gnu.org>
62367
62368         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62369
62370 2007-02-01  Bruno Haible  <bruno@clisp.org>
62371
62372         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62373         renamings.
62374
62375 2007-02-01  Eric Blake  <ebb9@byu.net>
62376
62377         * modules/regex (Depends-on): Revert dependence on mempcpy.
62378         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62379         module's definition of mempcpy.
62380         Reported by Paul Eggert.
62381
62382 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62383
62384         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62385         the symbol XYZ before redefining it.  This fixes a problem with
62386         programs that don't use XYZ, when compiled on systems that define
62387         XYZ to something else.
62388
62389 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62392         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62393         writeable to group or other and (2) is intended to have a special
62394         mode bit that is set or cleared.  In such a case, the directory
62395         should be neither group- nor other-writeable until the special
62396         mode bits are right.
62397
62398 2007-01-31  Eric Blake  <ebb9@byu.net>
62399
62400         * modules/mountlist (Depends-on): Add strstr.
62401
62402         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62403         bug.
62404         * modules/string (Makefile.am): Remove redundant replacement.
62405         * modules/regex (Depends-on): Add mempcpy.
62406
62407 2007-01-31  Bruno Haible  <bruno@clisp.org>
62408
62409         New module description field 'Link'.
62410         * gnulib-tool (func_usage): Document --extract-link-directive.
62411         (sed_extract_prog): Recognize 'Link' directive.
62412         (func_get_link_directive): New function.
62413         (func_import): Show summary of link directives.
62414         Handle --extract-link-directive option.
62415         * modules/acl (Link): New section.
62416         * modules/clock-time (Link): New section.
62417         * modules/euidaccess (Link): New section.
62418         * modules/gettext (Link): New section.
62419         * modules/iconv (Link): New section.
62420         * modules/lock (Link): New section.
62421         * modules/nanosleep (Link): New section.
62422         * modules/readline (Link): New section.
62423
62424 2007-01-27  Bruno Haible  <bruno@clisp.org>
62425
62426         Enforce the use of gnulib modules for unportable <string.h> functions.
62427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62428         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62429         (gl_HEADER_STRING_H_BODY): Require it.
62430         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62431         the symbol XYZ to one that gives a link error.
62432         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62433         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62434         * modules/mempcpy (configure.ac): Likewise.
62435         * modules/memrchr (configure.ac): Likewise.
62436         * modules/stpcpy (configure.ac): Likewise.
62437         * modules/stpncpy (configure.ac): Likewise.
62438         * modules/strcase (configure.ac): Likewise.
62439         * modules/strcasestr (configure.ac): Likewise.
62440         * modules/strchrnul (configure.ac): Likewise.
62441         * modules/strdup (configure.ac): Likewise.
62442         * modules/strndup (configure.ac): Likewise.
62443         * modules/strnlen (configure.ac): Likewise.
62444         * modules/strpbrk (configure.ac): Likewise.
62445         * modules/strsep (configure.ac): Likewise.
62446         * modules/strstr (configure.ac): Likewise.
62447         * modules/strtok_r (configure.ac): Likewise.
62448
62449 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62450
62451         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62452
62453 2007-01-30  Jim Meyering  <jim@meyering.net>
62454
62455         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62456
62457 2007-01-29  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62460         * lib/execute.c: Likewise.
62461         * lib/pipe.c: Likewise.
62462         * lib/printf-args.h: Likewise.
62463         * lib/printf-args.c: Likewise.
62464         * lib/printf-parse.c: Likewise.
62465         * lib/vasnprintf.c: Likewise.
62466
62467 2007-01-29  Eric Blake  <ebb9@byu.net>
62468
62469         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62470         declaration.
62471
62472 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * lib/strptime.h (strptime): Use 'restrict' for args where
62475         POSIX requires this.
62476         * lib/strptime.c (strptime): Likewise.
62477         Change license notice from LGPL to GPL, since gnulib-tool will
62478         change this as needed.
62479         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62480         defined.
62481         Include "strptime.h" first, to check interface.
62482         Do not #undef _LIBC and _NL_CURRENT.
62483         Do not include <stdlib.h>; no longer needed.
62484         Include "time_r.h" and declare ptime_locale_status
62485         only if _LIBC is not defined.
62486         (__P): Remove unused macro.
62487         (match_string): Bring back glibc version, but use it only if _LIBC
62488         is defined.
62489         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62490         Remove unnecessary assertion and abort() call.
62491         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62492         * m4/strptime.m4: Fix serial number comment.
62493         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62494         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62495         (Depends-on): Add time_r.
62496
62497 2007-01-29  Bruno Haible  <bruno@clisp.org>
62498
62499         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62500         strptime.
62501         * modules/strptime (Depends-on): Add stdbool.
62502         * lib/strptime.h: Include <time.h> always. Add comments.
62503
62504 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62505
62506         * modules/strptime: New file.
62507         * lib/strptime.h: New file.
62508         * lib/strptime.c: New file.
62509         * m4/strptime.m4: New file.
62510
62511 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62512
62513         * MODULES.html.sh: New module mpsort.
62514         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62515
62516         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62517         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62519         All uses changed.
62520         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62521         All uses changed.
62522         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62523         to _Restrict_.
62524         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62525         the parameter matches the prototype.
62526
62527 2007-01-28  Jim Meyering  <jim@meyering.net>
62528
62529         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62530         sys/time.h here, reverting that part of the previous patch:
62531         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62532
62533 2007-01-28  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62536         value of $(SYS_TIME_H).
62537         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62538         remove it conditionally, too. [added by Jim Meyering]
62539         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62540         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62541         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62542         GETTIMEOFDAY_REPLACEMENT to 1.
62543
62544 2007-01-28  Bruno Haible  <bruno@clisp.org>
62545
62546         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62547         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62549         Set UNISTD_H instead of UNISTD_H2.
62550         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62551
62552 2007-01-28  Bruno Haible  <bruno@clisp.org>
62553
62554         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62555         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62556
62557 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62558
62559         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62560         (func_create_testdir): Ensure C locale for `grep' and `tr'
62561         character ranges.
62562         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62563         ACLOCAL_AMFLAGS parsing state machine.
62564
62565 2007-01-27  Bruno Haible  <bruno@clisp.org>
62566
62567         * modules/unistr/base: Update.
62568
62569 2007-01-27  Bruno Haible  <bruno@clisp.org>
62570
62571         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62572         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62573         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62574         modules/unistr/u32-mbtouc.
62575         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62576         * lib/unistr.h: Update.
62577         * lib/linebreak.c: Update.
62578         * modules/unistr/u32-mbtouc: Renamed from
62579         modules/unistr/u32-mbtouc-safe.
62580         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62581         * lib/unistr.h: Update.
62582         * lib/unistr/u32-to-u8.c: Update.
62583         * lib/unistr/u32-to-u16.c: Update.
62584
62585 2007-01-27  Bruno Haible  <bruno@clisp.org>
62586
62587         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62588         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62589         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62590         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62591         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62592         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62593         modules/unistr/u16-mbtouc.
62594         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62595         * lib/unistr.h: Update.
62596         * lib/linebreak.c: Update.
62597         * modules/linebreak: Update.
62598         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62599         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62600         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62601         * modules/unistr/u16-mbtouc: Renamed from
62602         modules/unistr/u16-mbtouc-safe.
62603         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62604         * lib/unistr.h: Update.
62605         * lib/unistr/u16-to-u8.c: Update.
62606         * modules/unistr/u16-to-u8: Update.
62607         * lib/unistr/u16-to-u32.c: Update.
62608         * modules/unistr/u16-to-u32: Update.
62609
62610 2007-01-27  Bruno Haible  <bruno@clisp.org>
62611
62612         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62613         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62614         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62615         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62616         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62617         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62618         modules/unistr/u8-mbtouc.
62619         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62620         * lib/unistr.h: Update.
62621         * lib/striconveh.c: Update.
62622         * modules/striconveh: Update.
62623         * lib/linebreak.c: Update.
62624         * modules/linebreak: Update.
62625         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62626         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62627         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62628         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62629         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62630         * lib/unistr.h: Update.
62631         * lib/striconveh.c: Update.
62632         * modules/striconveh: Update.
62633         * lib/unistr/u8-to-u16.c: Update.
62634         * modules/unistr/u8-to-u16: Update.
62635         * lib/unistr/u8-to-u32.c: Update.
62636         * modules/unistr/u8-to-u32: Update.
62637
62638 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62639
62640         Sync from Libtool.
62641         * lib/argz.c: Do not include strings.h nor memory.h, include
62642         string.h unconditionally.  Patch by Simon Josefsson.
62643
62644 2007-01-27  Bruno Haible  <bruno@clisp.org>
62645
62646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62647         from gl_HEADER_STRING_H_BODY.
62648         (gl_HEADER_STRING_H_BODY): Require it.
62649         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62650         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62651         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62652         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62653         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62654         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62656         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62657         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62658         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62659         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62660         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62661         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62662         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62663         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62664
62665 2007-01-27  Bruno Haible  <bruno@clisp.org>
62666
62667         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62668         check_PROGRAMS into noinst_PROGRAMS.
62669         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62670         check_PROGRAMS in this case.
62671         (func_import): Set for_test to false.
62672         (func_create_testdir): Set for_test to true.
62673
62674 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62675             Bruno Haible  <bruno@clisp.org>
62676
62677         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62678         (Depends-on): Add string.
62679         (Includes): Use <string.h> instead of strcasestr.h.
62680         * modules/string (Makefile.am): Also substitute the value of
62681         REPLACE_STRCASESTR.
62682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62683         assume strcasestr is declared in <string.h> not <strings.h>. Also
62684         set REPLACE_STRCASESTR.
62685         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62686         REPLACE_STRCASESTR.
62687         * lib/strcasestr.h: Remove file.
62688         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62689         * lib/string_.h (strcasestr): New declaration.
62690
62691 2007-01-27  Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/string_.h: Use 'extern'.
62694
62695 2007-01-27  Jim Meyering  <jim@meyering.net>
62696
62697         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62698         of set-but-not-used local, "q".
62699
62700         * lib/mempcpy.c: Include <config.h> before <string.h>.
62701         This fixes a compilation error on HP-UX, due to the system's
62702         "restrict"-using mempcpy prototype.
62703
62704 2007-01-26  Bruno Haible  <bruno@clisp.org>
62705
62706         Small optimization.
62707         * lib/javacomp.c: Include c-strstr.h.
62708          (is_envjavac_gcj): Use c_strstr instead of strstr.
62709         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62710
62711 2007-01-26  Bruno Haible  <bruno@clisp.org>
62712
62713         * MODULES.html.sh (Unicode string functions): Add the new modules.
62714
62715         * modules/uniconv/u32-strconv-to-locale: New file.
62716         * lib/uniconv/u32-strconv-to-locale.c: New file.
62717
62718         * modules/uniconv/u16-strconv-to-locale: New file.
62719         * lib/uniconv/u16-strconv-to-locale.c: New file.
62720
62721         * modules/uniconv/u8-strconv-to-locale: New file.
62722         * lib/uniconv/u8-strconv-to-locale.c: New file.
62723
62724         * modules/uniconv/u32-strconv-from-locale: New file.
62725         * lib/uniconv/u32-strconv-from-locale.c: New file.
62726
62727         * modules/uniconv/u16-strconv-from-locale: New file.
62728         * lib/uniconv/u16-strconv-from-locale.c: New file.
62729
62730         * modules/uniconv/u8-strconv-from-locale: New file.
62731         * lib/uniconv/u8-strconv-from-locale.c: New file.
62732
62733         * modules/uniconv/u32-strconv-to-enc: New file.
62734         * lib/uniconv/u32-strconv-to-enc.c: New file.
62735         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62736         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62737
62738         * modules/uniconv/u16-strconv-to-enc: New file.
62739         * lib/uniconv/u16-strconv-to-enc.c: New file.
62740         * lib/uniconv/u-strconv-to-enc.h: New file.
62741         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62742         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62743
62744         * modules/uniconv/u8-strconv-to-enc: New file.
62745         * lib/uniconv/u8-strconv-to-enc.c: New file.
62746         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62747         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62748
62749         * modules/uniconv/u32-strconv-from-enc: New file.
62750         * lib/uniconv/u32-strconv-from-enc.c: New file.
62751         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62752         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62753
62754         * modules/uniconv/u16-strconv-from-enc: New file.
62755         * lib/uniconv/u16-strconv-from-enc.c: New file.
62756         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62757         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62758
62759         * modules/uniconv/u8-strconv-from-enc: New file.
62760         * lib/uniconv/u8-strconv-from-enc.c: New file.
62761         * lib/uniconv/u-strconv-from-enc.h: New file.
62762         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62763         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62764
62765         * modules/uniconv/u32-conv-from-enc: New file.
62766         * lib/uniconv/u32-conv-from-enc.c: New file.
62767         * modules/uniconv/u32-conv-from-enc-tests: New file.
62768         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62769
62770         * modules/uniconv/u16-conv-from-enc: New file.
62771         * lib/uniconv/u16-conv-from-enc.c: New file.
62772         * lib/uniconv/u-conv-from-enc.h: New file.
62773         * modules/uniconv/u16-conv-from-enc-tests: New file.
62774         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62775
62776         * modules/uniconv/u8-conv-from-enc: New file.
62777         * lib/uniconv/u8-conv-from-enc.c: New file.
62778         * modules/uniconv/u8-conv-from-enc-tests: New file.
62779         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62780
62781         * modules/uniconv/base: New file.
62782         * lib/uniconv.h: New file.
62783
62784 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         * doc/gnulib-tool.texi (Initial import): Update to match current
62787         behavior with strdup module.
62788         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62789         * lib/memmem.h: Remove; all uses removed.  This is now done
62790         by <string.h>.
62791         * lib/mempcpy.h: Likewise.
62792         * lib/memrchr.h: Likewise.
62793         * lib/stpcpy.h: Likewise.
62794         * lib/stpncpy.h: Likewise.
62795         * lib/strcase.h: Likewise.
62796         * lib/strchrnul.h: Likewise.
62797         * lib/strdup.h: Likewise.
62798         * lib/strndup.h: Likewise.
62799         * lib/strnlen.h: Likewise.
62800         * lib/strpbrk.h: Likewise.
62801         * lib/strsep.h: Likewise.
62802         * lib/strstr.h: Likewise.
62803         * lib/strtok_r.h: Likewise.
62804         * lib/string_.h: New file.
62805         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62806         Rely on <string.h> instead.
62807         * lib/canon-host.c: Likewise.
62808         * lib/chdir-long.c: Likewise.
62809         * lib/concatpath.c: Likewise.
62810         * lib/exclude.c: Likewise.
62811         * lib/fchdir.c: Likewise.
62812         * lib/getaddrinfo.c: Likewise.
62813         * lib/getcwd.c: Likewise.
62814         * lib/getsubopt.c: Likewise.
62815         * lib/glob.c: Likewise.
62816         * lib/hard-locale.c: Likewise.
62817         * lib/iconvme.c: Likewise.
62818         * lib/javacomp.c: Likewise.
62819         * lib/mempcpy.c: Likewise.
62820         * lib/memrchr.c: Likewise.
62821         * lib/regex_internal.h: Likewise.
62822         * lib/stpncpy.c: Likewise.
62823         * lib/strcasecmp.c: Likewise.
62824         * lib/strchrnul.c: Likewise.
62825         * lib/strdup.c: Likewise.
62826         * lib/striconv.c: Likewise.
62827         * lib/striconveh.c: Likewise.
62828         * lib/striconveha.c: Likewise.
62829         * lib/strncasecmp.c: Likewise.
62830         * lib/strndup.c: Likewise.
62831         * lib/strnlen.c: Likewise.
62832         * lib/strsep.c: Likewise.
62833         * lib/strstr.c: Likewise.
62834         * lib/strtok_r.c: Likewise.
62835         * lib/userspec.c: Likewise.
62836         * lib/w32spawn.h: Likewise.
62837         * lib/xstrndup.c: Likewise.
62838         * lib/mountlist.c (strstr): Remove decl.
62839         * m4/string_h.m4: New file.
62840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62841         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62842         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62843         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62844         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62845         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62846         Set REPLACE_STRCASECMP if necessary.
62847         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62848         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62849         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62850         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62851         HAVE_DECL_STRDUP if necessary.
62852         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62853         since gl_FUNC_STRNDUP does that now.
62854         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62855         Check for decl here...
62856         (gl_PREREQ_STRNLEN): ... not here.
62857         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62858         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62859         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62860         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62861         necessary.
62862         * modules/string: New file.
62863         * modules/memmem (Files): Remove special-purpose include file.
62864         (Depends-on): Add string.
62865         (Include): Include <string.h>, not the removed file.
62866         * modules/mempcpy: Likewise.
62867         * modules/memrchr: Likewise.
62868         * modules/stpcpy: Likewise.
62869         * modules/stpncpy: Likewise.
62870         * modules/strcase: Likewise.
62871         * modules/strchrnul: Likewise.
62872         * modules/strdup: Likewise.
62873         * modules/strndup: Likewise.
62874         * modules/strnlen: Likewise.
62875         * modules/strpbrk: Likewise.
62876         * modules/strsep: Likewise.
62877         * modules/strstr: Likewise.
62878         * modules/strtok_r: Likewise.
62879         * tests/test-dirname.c: Don't include "strdup.h", since
62880         <string.h> now suffices.
62881         * tests/test-memmem.c: Don't include "memmem.h", since
62882         <string.h> now suffices.
62883
62884 2007-01-25  Bruno Haible  <bruno@clisp.org>
62885
62886         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
62887         *resultp is 0.
62888
62889         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
62890         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
62891         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
62892         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
62893
62894         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
62895         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
62896         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
62897         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
62898         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
62899         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
62900
62901 2007-01-24  Bruno Haible  <bruno@clisp.org>
62902
62903         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
62904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
62905         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
62906         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
62907         gl_FUNC_FTS_CORE.
62908         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
62909         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
62910         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62911         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62912         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62913         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62914         gl_FUNC_FCHOWNAT.
62915         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62916         gl_FUNC_STRFTIME.
62917         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62918         Reported by Ralf Wildenhues.
62919
62920 2007-01-24  Bruno Haible  <bruno@clisp.org>
62921
62922         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62923         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62924         gl_GETADDRINFO.
62925         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62926         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62927         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62928
62929 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62932         Don't use 'exit'; just return from 'main'.
62933         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62934
62935         * lib/fnmatch_.h: Readjust white space and comments to match
62936         glibc, to avoid spurious diffs.
62937
62938 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62939
62940         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62941         2004-12-01 change by Jakub Jelinek, since this code won't compile
62942         if !LIBC.  Problem reported by Bob Proulx.
62943
62944 2007-01-23  Bruno Haible  <bruno@clisp.org>
62945
62946         * lib/striconveh.c: Include c-strcaseeq.h.
62947         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62948         * modules/striconveh (Depends-on): Add c-strcaseeq.
62949
62950 2007-01-23  Bruno Haible  <bruno@clisp.org>
62951
62952         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62953
62954         * modules/c-strcaseeq: New file.
62955         * lib/c-strcaseeq.h: New file.
62956
62957         * modules/streq: New file.
62958         * lib/streq.h: New file.
62959
62960 2007-01-23  Bruno Haible  <bruno@clisp.org>
62961
62962         * modules/striconveha-tests: New file.
62963         * tests/test-striconveha.c: New file.
62964
62965         * lib/striconveha.h: Include <stdbool.h>.
62966         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62967         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62968         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62969         (mem_iconveha): New function.
62970         (str_iconveha_notranslit): Renamed from str_iconveha.
62971         (str_iconveha): New function.
62972         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62973         c-strcase.
62974
62975 2007-01-23  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62978         encodings without forgiving before trying any encoding with handler.
62979         (str_iconveha): Try all encodings without forgiving before trying any
62980         encoding with handler.
62981
62982 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62983
62984         Import the following changes from libc.
62985
62986         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62987
62988         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62989
62990         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62991
62992         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62993         normal_bracket label.
62994
62995         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62996
62997         [BZ #361]
62998         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62999         to normal_bracket after fetching the next character.
63000
63001 2007-01-22  Bruno Haible  <bruno@clisp.org>
63002
63003         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63004         argument.
63005         * lib/striconveh.c (iconv_carefully_1): New function.
63006         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63007         argument.
63008         (str_cd_iconveh): Update.
63009         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63010         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63011         * tests/test-striconveh.c (MAGIC): New macro.
63012         (new_offsets): New function.
63013         (main): Test call with and without offsets.
63014
63015 2007-01-22  Bruno Haible  <bruno@clisp.org>
63016
63017         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63018         * modules/sys_select (Makefile.am): Likewise.
63019         * modules/sys_socket (Makefile.am): Likewise.
63020         * modules/sys_time (Makefile.am): Likewise.
63021
63022 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63023
63024         * modules/gettimeofday (License): Change from GPL to LGPL, since
63025         gettimeofday is a library function.
63026
63027 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63028
63029         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63030
63031 2007-01-21  Bruno Haible  <bruno@clisp.org>
63032
63033         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63034
63035 2007-01-21  Bruno Haible  <bruno@clisp.org>
63036
63037         * modules/striconveha: New file.
63038         * lib/striconveha.h: New file.
63039         * lib/striconveha.c: New file.
63040         * MODULES.html.sh (Internationalization functions): Add striconveha.
63041         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63042         string.
63043         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63044
63045 2007-01-21  Bruno Haible  <bruno@clisp.org>
63046
63047         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63048         * lib/striconveh.c (str_iconveh): Likewise.
63049
63050 2007-01-21  Bruno Haible  <bruno@clisp.org>
63051
63052         * lib/striconveh.h (mem_iconveh): New declaration.
63053         * lib/striconveh.c (mem_iconveh): New function.
63054         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63055
63056 2007-01-21  Bruno Haible  <bruno@clisp.org>
63057
63058         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63059
63060         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63061         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63062         original result buffer.
63063         (str_cd_iconveh): Update.
63064         * tests/test-striconveh.c (main): Update.
63065
63066         * lib/striconv.h (mem_cd_iconv): Change specification.
63067         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63068         result buffer.
63069         (str_cd_iconv): Update.
63070         * tests/test-striconv.c (main): Update.
63071
63072 2007-01-21  Bruno Haible  <bruno@clisp.org>
63073
63074         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63075
63076 2007-01-20  Jim Meyering  <jim@meyering.net>
63077
63078         * lib/userspec.c (parse_with_separator): If a user or group string
63079         starts with "+", skip the corresponding name-to-ID look-up, since
63080         such a look-up must fail: user and group names may not include "+".
63081
63082 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63085         since we now assume the sys_time module.
63086         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63087         check for sys/time.h; no longer needed.
63088         * modules/poll (Depends-on): Depend on sys_time.
63089
63090 2007-01-18  Bruno Haible  <bruno@clisp.org>
63091
63092         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63093         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63094
63095         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63096         gettimeofday.
63097
63098         * tests/test-gettimeofday.c: Include <time.h>.
63099         (dummy): Remove variable.
63100
63101         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63102         gl_HEADER_SYS_TIME_H.
63103         (gl_HEADER_SYS_TIME_H): New macro.
63104
63105         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63106         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63108         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63109         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63111         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63112         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63113         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63114         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63115         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63116
63117         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63118         last change; it caused a compilation error when cross-compiling to
63119         Cygwin.
63120
63121 2007-01-18  Jim Meyering  <jim@meyering.net>
63122
63123         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63124         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63125         than the race-prone "test -d sys || mkdir sys".
63126         (configure.ac): Use AC_PROG_MKDIR_P.
63127         * modules/sys_select: Likewise.
63128         * modules/sys_socket: Likewise.
63129         * modules/sys_time: Likewise.
63130
63131 2007-01-18  Eric Blake  <ebb9@byu.net>
63132
63133         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63134         replace gettimeofday.
63135         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63136         name, to avoid infinite recursion.
63137
63138 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63139
63140         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63141         module sys_time.
63142         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63143         assume timespec.h defines struct timeval.
63144         * lib/settime.c: Likewise.
63145         * lib/utimens.c: Likewise.
63146         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63147         since we now assume the gettimeofday module.
63148         * lib/tempname.c (__gen_tempname): Likewise.
63149         * lib/gettimeofday.h: Remove.
63150         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63151         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63152         Include <time.h>, for 'time()'.
63153         (localtime_buffer_addr): Also use this workaround if
63154         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63155         to simplify the uses.  All uses changed.
63156         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63157         that #undef is inside {}, and 'const' follows type name consistently.
63158         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63159         (gettimeofday): Do not use the maximum possible value for
63160         tv->tv_usec, since that might break usages other than ls.c.
63161         Instead, we'll leave ls.c alone.  This undoes today's patch
63162         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63163         we've never observed the problem but might as well keep the
63164         canary.
63165         * lib/nanosleep.c: Include timespec.h first, for interface check.
63166         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63167         now assume the sys_time module.
63168         * lib/tempname.c: Likewise.
63169         * lib/timespec.h: Likewise.
63170         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63171         needed.
63172         * lib/strftime.c: Likewise.
63173         * lib/timespec.h: Likewise.
63174         * lib/posixtm.c: Include posixtm.h first, for interface check.
63175         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63176         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63177         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63178         * lib/sys_time_.h: New file.
63179         * lib/timespec.h (struct timespec): Use long int, not long.
63180         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63181         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63182         Remove obsolescent call to AC_HEADER_TIME.
63183         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63185         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63186         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63187         Likewise.
63188         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63189         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63190         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63191         into the sys_time module.  Check for gettimeofday just once.
63192         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63193         for gettimeofday signature to just check the signature.  Merely
63194         compile it, since linking doesn't test signature.  Improve test for
63195         whether gettimeofday.o is actually needed.
63196         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63197         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63198         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63199         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63200         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63201         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63202         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63203         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63204         than worrying about sys/time.h.
63205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63206         Don't bother worrying about TIME_WITH_SYS_TIME.
63207         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63208         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63209         * m4/sys_time_h.m4: New file.
63210         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63211         Don't include sys/time.h.  Return from main rather than exiting.
63212         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63213         all uses changed.
63214         * modules/gethrxtime (Depends-on): Add sys_time.
63215         * modules/gettime (Depends-on): Likewise.
63216         * modules/gettimeofday (Depends-on): Likewise.
63217         * modules/nanosleep (Depends-on): Likewise.
63218         * modules/settime (Depends-on): Likewise.
63219         * modules/tempname (Depends-on): Likewise.
63220         * modules/utimens (Depends-on): Likewise.
63221         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63222         (Include): Change back to <sys/time.h>.
63223         (Maintainer): Add self.
63224         * modules/sys_time: New file.
63225         * modules/tempname (Depends-on): Add gettimeofday.
63226         * tests/test-gettimeofday.c: Include <sys/time.h>
63227         rather than gettimeofday.h.
63228
63229 2007-01-17  Bruno Haible  <bruno@clisp.org>
63230
63231         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63232         the license default to GPL.
63233         (func_create_testdir): Don't complain if a module is LGPL and its
63234         tests module depends on GPLed modules.
63235
63236 2007-01-17  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/gettimeofday.c (gettimeofday): Add code for the case
63239         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63240         maximum possible value for tv->tv_usec, rather than the minimum one.
63241
63242 2005-10-08  Martin Lambers  <marlam@marlam.de>
63243 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63244 2007-01-16  Bruno Haible  <bruno@clisp.org>
63245
63246         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63247         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63248         gl_FUNC_GETTIMEOFDAY.
63249         (Include): Add gettimeofday.h.
63250         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63251         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63252         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63253         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63254         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63255         * lib/gettimeofday.h: New file.
63256         * lib/gettimeofday.c: Include <sys/timeb.h>.
63257         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63258         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63259         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63260         fall back on time().
63261
63262         * tests/test-gettimeofday.c: New file.
63263         * modules/gettimeofday-tests: New file.
63264
63265 2007-01-16  Eric Blake  <ebb9@byu.net>
63266
63267         * modules/fnmatch (Depends-on): Depend on wchar.
63268         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63269         * m4/fnmatch.m4: Likewise.
63270         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63271         * m4/mbchar.m4: Likewise.
63272         * modules/mbswidth (Depends-on): Depend on wchar.
63273         * lib/mbswidth.c: Assume <wchar.h>.
63274         * m4/mbswidth.m4: Likewise.
63275         * modules/quotearg (Depends-on): Depend on wchar.
63276         * lib/quotearg.c: Assume <wchar.h>.
63277         * m4/quotearg.m4: Likewise.
63278         * modules/regex (Depends-on): Depend on wchar.
63279         * lib/regex_internal.h: Assume <wchar.h>.
63280         * m4/regex.m4: Likewise.
63281         * modules/stdint (Depends-on): Depend on wchar.
63282         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63283         * m4/stdint.m4: Likewise.
63284         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63285         * modules/strftime (Depends-on): Depend on wchar.
63286         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63287         * modules/strtol (Depends-on): Depend on wchar.
63288         * lib/strtol.c: Assume <wchar.h>.
63289         * modules/wcwidth (Depends-on): Depend on wchar.
63290         * lib/wcwidth.h: Assume <wchar.h>.
63291         * m4/wcwidth.m4: Likewise.
63292
63293 2007-01-16  Bruno Haible  <bruno@clisp.org>
63294
63295         * modules/csharpexec-script: New, created from...
63296         * modules/csharpexec: ... this.
63297
63298 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63299
63300         * modules/javaexec-script: New, created from...
63301         * modules/javaexec: ... this.
63302
63303 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63304
63305         * modules/poll (Dependencies): Add sys_select.
63306
63307 2007-01-15  Jim Meyering  <jim@meyering.net>
63308
63309         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63310         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63311         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63312         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63313
63314 2007-01-15  Bruno Haible  <bruno@clisp.org>
63315
63316         * modules/striconveh: New file.
63317         * lib/striconveh.h: New file.
63318         * lib/striconveh.c: New file.
63319         * MODULES.html.sh (Internationalization functions): Add striconveh.
63320
63321         * modules/striconveh-tests: New file.
63322         * tests/test-striconveh.c: New file.
63323
63324 2007-01-15  Bruno Haible  <bruno@clisp.org>
63325
63326         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63327         not from GNU libiconv or GNU libc.
63328
63329 2007-01-15  Bruno Haible  <bruno@clisp.org>
63330
63331         * doc/gnulib-intro.texi (Copyright): Explain the different license
63332         terms for module descriptions, autoconf macros, tests, documentation.
63333
63334 2007-01-14  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/striconv-tests: New file.
63337         * tests/test-striconv.c: New file.
63338
63339 2007-01-14  Bruno Haible  <bruno@clisp.org>
63340
63341         * modules/iconv-tests: New file.
63342         * tests/test-iconv.c: New file.
63343
63344 2007-01-14  Bruno Haible  <bruno@clisp.org>
63345
63346         * gnulib-tool (func_get_license): For test modules, use the license of
63347         the main module.
63348
63349 2007-01-14  Bruno Haible  <bruno@clisp.org>
63350
63351         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63352         if iconv is found to exist.
63353
63354 2007-01-14  Bruno Haible  <bruno@clisp.org>
63355
63356         * modules/c-ctype-tests: New file.
63357         * tests/test-c-ctype.c: New file.
63358
63359 2007-01-14  Bruno Haible  <bruno@clisp.org>
63360
63361         * modules/binary-io-tests: New file.
63362         * tests/test-binary-io.sh: New file.
63363         * tests/test-binary-io.c: New file.
63364
63365 2007-01-14  Bruno Haible  <bruno@clisp.org>
63366
63367         * modules/array-oset-tests: New file.
63368         * tests/test-array_oset.c: New file.
63369
63370 2007-01-14  Bruno Haible  <bruno@clisp.org>
63371
63372         * modules/array-list-tests: New file.
63373         * tests/test-array_list.c: New file.
63374
63375 2007-01-14  Bruno Haible  <bruno@clisp.org>
63376
63377         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63378         and make.
63379         Reported by Simon Josefsson in
63380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63381
63382 2007-01-14  Bruno Haible  <bruno@clisp.org>
63383
63384         * modules/allocsa-tests: New file.
63385         * tests/test-allocsa.c: New file.
63386
63387 2007-01-14  Bruno Haible  <bruno@clisp.org>
63388
63389         * modules/fchdir (Depends-on): Add absolute-header.
63390         * modules/unistd (Depends-on): Likewise.
63391
63392 2006-12-30  Bruno Haible  <bruno@clisp.org>
63393
63394         * modules/fchdir: New file.
63395         * modules/unistd (Files): Add lib/unistd_.h.
63396         (Makefile.am): Generate unistd.h from unistd_.h.
63397         * lib/fchdir.c: New file.
63398         * lib/dirent_.h: New file.
63399         * lib/unistd_.h: New file.
63400         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63401         * m4/fchdir.m4: New file.
63402         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63403         (gl_HEADER_UNISTD): Invoke it.
63404         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63405         function.
63406         * lib/backupfile.c (opendir, closedir): Undefine.
63407         * lib/chown.c (open, close): Undefine.
63408         * lib/clean-temp.c (open, close): Undefine.
63409         * lib/copy-file.c (open, close): Undefine.
63410         * lib/execute.c (open, close): Undefine.
63411         * lib/fsusage.c (open, close): Undefine.
63412         * lib/gc-gnulib.c (open, close): Undefine.
63413         * lib/getcwd.c (opendir, closedir): Undefine.
63414         * lib/glob.c (opendir, closedir): Undefine.
63415         * lib/javacomp.c (open, close): Undefine.
63416         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63417         * lib/openat-proc.c (open, close): Undefine.
63418         * lib/pagealign_alloc.c (open, close): Undefine.
63419         * lib/pipe.c (open, close): Undefine.
63420         * lib/progreloc.c (open, close): Undefine.
63421         * lib/savedir.c (opendir, closedir): Undefine.
63422         * lib/utime.c (open, close): Undefine.
63423         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63424
63425 2007-01-10  Bruno Haible  <bruno@clisp.org>
63426
63427         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63428
63429 2007-01-12  Eric Blake  <ebb9@byu.net>
63430
63431         Provide a robust <wchar.h>.  Further simplifications are now
63432         possible in other modules, but not included here.
63433         * modules/wchar: New module.
63434         * m4/wchar.m4: New file.
63435         * lib/wchar_.h: Likewise.
63436         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63437         of the new module.
63438         * MODULES.html.sh (Extended multibyte and wide character utilities):
63439         New section.
63440
63441 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63444         to a reasonable default for memory allocation.
63445         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63446         file system that reports garbage st_size values for symlinks.
63447         Problem reported by Liyang Hu.
63448
63449 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63450
63451         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63452         Emacs .#* auto-save files).
63453
63454 2007-01-11  Bruno Haible  <bruno@clisp.org>
63455
63456         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63457         directory.
63458
63459 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         Use @...@ consistently in lib/wctype_.h.
63462         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63463         on it being set to 1 or 0.
63464         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63465         go back to AC_SUBSTing it.
63466         * modules/wctype (Makefile.am): Undo previous change.
63467
63468 2007-01-10  Eric Blake  <ebb9@byu.net>
63469
63470         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63471         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63472         * modules/wctype (Makefile.am): Likewise.
63473         Reported by Chris McGuire.
63474
63475 2007-01-10  Jim Meyering  <jim@meyering.net>
63476
63477         fts.c: a small readability/maintainability improvement
63478         * lib/fts.c (fts_read): Make this code slightly more readable and
63479         maintainable by hoisting the "sp->fts_cur = p" assignments to
63480         immediately follow the statements that set P.  Derived from
63481         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63482
63483 2007-01-10  Eric Blake  <ebb9@byu.net>
63484
63485         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63486         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63488         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63489         Reported by Chris McGuire.
63490
63491 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63492
63493         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63494         in sed script.
63495
63496 2007-01-09  Bruno Haible  <bruno@clisp.org>
63497
63498         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63499         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63500         variables.
63501         (func_module): Use them.
63502
63503 2007-01-09  Bruno Haible  <bruno@clisp.org>
63504
63505         * modules/unistr/base: New file.
63506         * lib/unistr.h: New file.
63507
63508         * modules/unistr/u8-to-u16: New file.
63509         * lib/unistr/u8-to-u16.c: New file.
63510
63511         * modules/unistr/u8-to-u32: New file.
63512         * lib/unistr/u8-to-u32.c: New file.
63513
63514         * modules/unistr/u16-to-u8: New file.
63515         * lib/unistr/u16-to-u8.c: New file.
63516
63517         * modules/unistr/u16-to-u32: New file.
63518         * lib/unistr/u16-to-u32.c: New file.
63519
63520         * modules/unistr/u32-to-u8: New file.
63521         * lib/unistr/u32-to-u8.c: New file.
63522
63523         * modules/unistr/u32-to-u16: New file.
63524         * lib/unistr/u32-to-u16.c: New file.
63525
63526         * modules/unistr/u8-check: New file.
63527         * modules/unistr/u16-check: New file.
63528         * modules/unistr/u32-check: New file.
63529         * lib/unistr/u8-check.c: New file.
63530         * lib/unistr/u16-check.c: New file.
63531         * lib/unistr/u32-check.c: New file.
63532
63533         * modules/unistr/u8-chr: New file.
63534         * modules/unistr/u16-chr: New file.
63535         * modules/unistr/u32-chr: New file.
63536         * lib/unistr/u8-chr.c: New file.
63537         * lib/unistr/u16-chr.c: New file.
63538         * lib/unistr/u32-chr.c: New file.
63539
63540         * modules/unistr/u8-cmp: New file.
63541         * modules/unistr/u16-cmp: New file.
63542         * modules/unistr/u32-cmp: New file.
63543         * lib/unistr/u8-cmp.c: New file.
63544         * lib/unistr/u16-cmp.c: New file.
63545         * lib/unistr/u32-cmp.c: New file.
63546
63547         * modules/unistr/u8-cpy: New file.
63548         * modules/unistr/u16-cpy: New file.
63549         * modules/unistr/u32-cpy: New file.
63550         * lib/unistr/u8-cpy.c: New file.
63551         * lib/unistr/u16-cpy.c: New file.
63552         * lib/unistr/u32-cpy.c: New file.
63553         * lib/unistr/u-cpy.h: New file.
63554
63555         * modules/unistr/u8-cpy-alloc: New file.
63556         * modules/unistr/u16-cpy-alloc: New file.
63557         * modules/unistr/u32-cpy-alloc: New file.
63558         * lib/unistr/u8-cpy-alloc.c: New file.
63559         * lib/unistr/u16-cpy-alloc.c: New file.
63560         * lib/unistr/u32-cpy-alloc.c: New file.
63561         * lib/unistr/u-cpy-alloc.h: New file.
63562
63563         * modules/unistr/u8-endswith: New file.
63564         * modules/unistr/u16-endswith: New file.
63565         * modules/unistr/u32-endswith: New file.
63566         * lib/unistr/u8-endswith.c: New file.
63567         * lib/unistr/u16-endswith.c: New file.
63568         * lib/unistr/u32-endswith.c: New file.
63569         * lib/unistr/u-endswith.h: New file.
63570
63571         * modules/unistr/u8-mblen: New file.
63572         * modules/unistr/u16-mblen: New file.
63573         * modules/unistr/u32-mblen: New file.
63574         * lib/unistr/u8-mblen.c: New file.
63575         * lib/unistr/u16-mblen.c: New file.
63576         * lib/unistr/u32-mblen.c: New file.
63577
63578         * modules/unistr/u8-mbtouc: New file.
63579         * modules/unistr/u16-mbtouc: New file.
63580         * modules/unistr/u32-mbtouc: New file.
63581         * lib/unistr/u8-mbtouc.c: New file.
63582         * lib/unistr/u16-mbtouc.c: New file.
63583         * lib/unistr/u32-mbtouc.c: New file.
63584
63585         * modules/unistr/u8-mbtouc-safe: New file.
63586         * modules/unistr/u16-mbtouc-safe: New file.
63587         * modules/unistr/u32-mbtouc-safe: New file.
63588         * lib/unistr/u8-mbtouc-safe.c: New file.
63589         * lib/unistr/u16-mbtouc-safe.c: New file.
63590         * lib/unistr/u32-mbtouc-safe.c: New file.
63591
63592         * modules/unistr/u8-move: New file.
63593         * modules/unistr/u16-move: New file.
63594         * modules/unistr/u32-move: New file.
63595         * lib/unistr/u8-move.c: New file.
63596         * lib/unistr/u16-move.c: New file.
63597         * lib/unistr/u32-move.c: New file.
63598         * lib/unistr/u-move.h: New file.
63599
63600         * modules/unistr/u8-next: New file.
63601         * modules/unistr/u16-next: New file.
63602         * modules/unistr/u32-next: New file.
63603         * lib/unistr/u8-next.c: New file.
63604         * lib/unistr/u16-next.c: New file.
63605         * lib/unistr/u32-next.c: New file.
63606
63607         * modules/unistr/u8-prev: New file.
63608         * modules/unistr/u16-prev: New file.
63609         * modules/unistr/u32-prev: New file.
63610         * lib/unistr/u8-prev.c: New file.
63611         * lib/unistr/u16-prev.c: New file.
63612         * lib/unistr/u32-prev.c: New file.
63613
63614         * modules/unistr/u8-set: New file.
63615         * modules/unistr/u16-set: New file.
63616         * modules/unistr/u32-set: New file.
63617         * lib/unistr/u8-set.c: New file.
63618         * lib/unistr/u16-set.c: New file.
63619         * lib/unistr/u32-set.c: New file.
63620         * lib/unistr/u-set.h: New file.
63621
63622         * modules/unistr/u8-startswith: New file.
63623         * modules/unistr/u16-startswith: New file.
63624         * modules/unistr/u32-startswith: New file.
63625         * lib/unistr/u8-startswith.c: New file.
63626         * lib/unistr/u16-startswith.c: New file.
63627         * lib/unistr/u32-startswith.c: New file.
63628         * lib/unistr/u-startswith.h: New file.
63629
63630         * modules/unistr/u8-stpcpy: New file.
63631         * modules/unistr/u16-stpcpy: New file.
63632         * modules/unistr/u32-stpcpy: New file.
63633         * lib/unistr/u8-stpcpy.c: New file.
63634         * lib/unistr/u16-stpcpy.c: New file.
63635         * lib/unistr/u32-stpcpy.c: New file.
63636         * lib/unistr/u-stpcpy.h: New file.
63637
63638         * modules/unistr/u8-stpncpy: New file.
63639         * modules/unistr/u16-stpncpy: New file.
63640         * modules/unistr/u32-stpncpy: New file.
63641         * lib/unistr/u8-stpncpy.c: New file.
63642         * lib/unistr/u16-stpncpy.c: New file.
63643         * lib/unistr/u32-stpncpy.c: New file.
63644         * lib/unistr/u-stpncpy.h: New file.
63645
63646         * modules/unistr/u8-strcat: New file.
63647         * modules/unistr/u16-strcat: New file.
63648         * modules/unistr/u32-strcat: New file.
63649         * lib/unistr/u8-strcat.c: New file.
63650         * lib/unistr/u16-strcat.c: New file.
63651         * lib/unistr/u32-strcat.c: New file.
63652         * lib/unistr/u-strcat.h: New file.
63653
63654         * modules/unistr/u8-strchr: New file.
63655         * modules/unistr/u16-strchr: New file.
63656         * modules/unistr/u32-strchr: New file.
63657         * lib/unistr/u8-strchr.c: New file.
63658         * lib/unistr/u16-strchr.c: New file.
63659         * lib/unistr/u32-strchr.c: New file.
63660
63661         * modules/unistr/u8-strcmp: New file.
63662         * modules/unistr/u16-strcmp: New file.
63663         * modules/unistr/u32-strcmp: New file.
63664         * lib/unistr/u8-strcmp.c: New file.
63665         * lib/unistr/u16-strcmp.c: New file.
63666         * lib/unistr/u32-strcmp.c: New file.
63667
63668         * modules/unistr/u8-strcpy: New file.
63669         * modules/unistr/u16-strcpy: New file.
63670         * modules/unistr/u32-strcpy: New file.
63671         * lib/unistr/u8-strcpy.c: New file.
63672         * lib/unistr/u16-strcpy.c: New file.
63673         * lib/unistr/u32-strcpy.c: New file.
63674         * lib/unistr/u-strcpy.h: New file.
63675
63676         * modules/unistr/u8-strcspn: New file.
63677         * modules/unistr/u16-strcspn: New file.
63678         * modules/unistr/u32-strcspn: New file.
63679         * lib/unistr/u8-strcspn.c: New file.
63680         * lib/unistr/u16-strcspn.c: New file.
63681         * lib/unistr/u32-strcspn.c: New file.
63682         * lib/unistr/u-strcspn.h: New file.
63683
63684         * modules/unistr/u8-strdup: New file.
63685         * modules/unistr/u16-strdup: New file.
63686         * modules/unistr/u32-strdup: New file.
63687         * lib/unistr/u8-strdup.c: New file.
63688         * lib/unistr/u16-strdup.c: New file.
63689         * lib/unistr/u32-strdup.c: New file.
63690         * lib/unistr/u-strdup.h: New file.
63691
63692         * modules/unistr/u8-strlen: New file.
63693         * modules/unistr/u16-strlen: New file.
63694         * modules/unistr/u32-strlen: New file.
63695         * lib/unistr/u8-strlen.c: New file.
63696         * lib/unistr/u16-strlen.c: New file.
63697         * lib/unistr/u32-strlen.c: New file.
63698         * lib/unistr/u-strlen.h: New file.
63699
63700         * modules/unistr/u8-strmblen: New file.
63701         * modules/unistr/u16-strmblen: New file.
63702         * modules/unistr/u32-strmblen: New file.
63703         * lib/unistr/u8-strmblen.c: New file.
63704         * lib/unistr/u16-strmblen.c: New file.
63705         * lib/unistr/u32-strmblen.c: New file.
63706
63707         * modules/unistr/u8-strmbtouc: New file.
63708         * modules/unistr/u16-strmbtouc: New file.
63709         * modules/unistr/u32-strmbtouc: New file.
63710         * lib/unistr/u8-strmbtouc.c: New file.
63711         * lib/unistr/u16-strmbtouc.c: New file.
63712         * lib/unistr/u32-strmbtouc.c: New file.
63713
63714         * modules/unistr/u8-strncat: New file.
63715         * modules/unistr/u16-strncat: New file.
63716         * modules/unistr/u32-strncat: New file.
63717         * lib/unistr/u8-strncat.c: New file.
63718         * lib/unistr/u16-strncat.c: New file.
63719         * lib/unistr/u32-strncat.c: New file.
63720         * lib/unistr/u-strncat.h: New file.
63721
63722         * modules/unistr/u8-strncmp: New file.
63723         * modules/unistr/u16-strncmp: New file.
63724         * modules/unistr/u32-strncmp: New file.
63725         * lib/unistr/u8-strncmp.c: New file.
63726         * lib/unistr/u16-strncmp.c: New file.
63727         * lib/unistr/u32-strncmp.c: New file.
63728
63729         * modules/unistr/u8-strncpy: New file.
63730         * modules/unistr/u16-strncpy: New file.
63731         * modules/unistr/u32-strncpy: New file.
63732         * lib/unistr/u8-strncpy.c: New file.
63733         * lib/unistr/u16-strncpy.c: New file.
63734         * lib/unistr/u32-strncpy.c: New file.
63735         * lib/unistr/u-strncpy.h: New file.
63736
63737         * modules/unistr/u8-strnlen: New file.
63738         * modules/unistr/u16-strnlen: New file.
63739         * modules/unistr/u32-strnlen: New file.
63740         * lib/unistr/u8-strnlen.c: New file.
63741         * lib/unistr/u16-strnlen.c: New file.
63742         * lib/unistr/u32-strnlen.c: New file.
63743         * lib/unistr/u-strnlen.h: New file.
63744
63745         * modules/unistr/u8-strpbrk: New file.
63746         * modules/unistr/u16-strpbrk: New file.
63747         * modules/unistr/u32-strpbrk: New file.
63748         * lib/unistr/u8-strpbrk.c: New file.
63749         * lib/unistr/u16-strpbrk.c: New file.
63750         * lib/unistr/u32-strpbrk.c: New file.
63751         * lib/unistr/u-strpbrk.h: New file.
63752
63753         * modules/unistr/u8-strrchr: New file.
63754         * modules/unistr/u16-strrchr: New file.
63755         * modules/unistr/u32-strrchr: New file.
63756         * lib/unistr/u8-strrchr.c: New file.
63757         * lib/unistr/u16-strrchr.c: New file.
63758         * lib/unistr/u32-strrchr.c: New file.
63759
63760         * modules/unistr/u8-strspn: New file.
63761         * modules/unistr/u16-strspn: New file.
63762         * modules/unistr/u32-strspn: New file.
63763         * lib/unistr/u8-strspn.c: New file.
63764         * lib/unistr/u16-strspn.c: New file.
63765         * lib/unistr/u32-strspn.c: New file.
63766         * lib/unistr/u-strspn.h: New file.
63767
63768         * modules/unistr/u8-strstr: New file.
63769         * modules/unistr/u16-strstr: New file.
63770         * modules/unistr/u32-strstr: New file.
63771         * lib/unistr/u8-strstr.c: New file.
63772         * lib/unistr/u16-strstr.c: New file.
63773         * lib/unistr/u32-strstr.c: New file.
63774         * lib/unistr/u-strstr.h: New file.
63775
63776         * modules/unistr/u8-strtok: New file.
63777         * modules/unistr/u16-strtok: New file.
63778         * modules/unistr/u32-strtok: New file.
63779         * lib/unistr/u8-strtok.c: New file.
63780         * lib/unistr/u16-strtok.c: New file.
63781         * lib/unistr/u32-strtok.c: New file.
63782         * lib/unistr/u-strtok.h: New file.
63783
63784         * modules/unistr/u8-uctomb: New file.
63785         * modules/unistr/u16-uctomb: New file.
63786         * modules/unistr/u32-uctomb: New file.
63787         * lib/unistr/u8-uctomb.c: New file.
63788         * lib/unistr/u16-uctomb.c: New file.
63789         * lib/unistr/u32-uctomb.c: New file.
63790
63791         * MODULES.html.sh (Unicode string functions): Add the new modules.
63792
63793 2007-01-08  Bruno Haible  <bruno@clisp.org>
63794
63795         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63796         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63797         subdirectories.
63798
63799 2007-01-08  Karl Berry  <karl@gnu.org>
63800
63801         * doc/error.texi: mention that main() fns must set program_name
63802         when progname is used.
63803
63804 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63805
63806         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63807         WCTYPE_H is empty, for the benefit of builds from non-distclean
63808         directories.  Problem reported by Eric Blake in
63809         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63810
63811 2007-01-08  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63814         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63815         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63816         PROVIDE_CANONICALIZE_FILENAME_MODE.
63817         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63818
63819 2007-01-08  Bruno Haible  <bruno@clisp.org>
63820
63821         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63822         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63823         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63824         * lib/fts.c: Likewise.
63825         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63826
63827 2006-12-25  Bruno Haible  <bruno@clisp.org>
63828
63829         * modules/utf8-ucs4-safe: New file.
63830         * lib/utf8-ucs4-safe.h: New file.
63831         * lib/unistr/utf8-ucs4-safe.c: New file.
63832
63833         * modules/utf16-ucs4-safe: New file.
63834         * lib/utf16-ucs4-safe.h: New file.
63835         * lib/unistr/utf16-ucs4-safe.c: New file.
63836
63837         * MODULES.html.sh (Unicode string functions): Add the new modules.
63838
63839 2007-01-08  Bruno Haible  <bruno@clisp.org>
63840
63841         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63842         (Depends-on): Add unitypes.
63843         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63844         (u8_mbtouc_aux): Move out to separate file.
63845         (u8_mbtouc): Use ucs4_t, uint8_t types.
63846         * lib/unistr/utf8-ucs4.c: New file.
63847
63848         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63849         (Depends-on): Add unitypes.
63850         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63851         (u16_mbtouc_aux): Move out to separate file.
63852         (u16_mbtouc): Use ucs4_t, uint16_t types.
63853         * lib/unistr/utf16-ucs4.c: New file.
63854
63855         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63856         (Depends-on): Add unitypes.
63857         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63858         (u8_uctomb_aux): Move out to separate file.
63859         (u8_uctomb): Use ucs4_t, uint8_t types.
63860         * lib/unistr/ucs4-utf8.c: New file.
63861
63862         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63863         (Depends-on): Add unitypes.
63864         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63865         (u16_uctomb_aux): Move out to separate file.
63866         (u16_uctomb): Use ucs4_t, uint16_t types.
63867         * lib/unistr/ucs4-utf16.c: New file.
63868
63869 2006-12-25  Bruno Haible  <bruno@clisp.org>
63870
63871         * modules/unitypes: New file.
63872         * lib/unitypes.h: New file.
63873         * MODULES.html.sh (func_all_modules): New section "Unicode string
63874         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
63875         this section. Add unitypes.
63876
63877 2007-01-08  Bruno Haible  <bruno@clisp.org>
63878
63879         Avoid variable names that conflict with those from libtool.
63880         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
63881         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
63882         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
63883         library_names_spec to acl_library_names_spec, hardcode_* to
63884         acl_hardcode_*.
63885         Reported by Ralf Wildenhues.
63886
63887 2007-01-08  Bruno Haible  <bruno@clisp.org>
63888
63889         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
63890         definition.
63891         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
63892         definition.
63893         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
63894         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
63895         definition.
63896         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
63897         definition.
63898         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63899         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
63900         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
63901         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
63902         definition.
63903         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
63904         definition.
63905         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
63906         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
63907         GC_USE_<algorithm>.
63908         * lib/gc-libgcrypt.c: Likewise.
63909         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
63910         * modules/gc-arctwo (configure.ac): Likewise.
63911         * modules/gc-des (configure.ac): Likewise.
63912         * modules/gc-hmac-md5 (configure.ac): Likewise.
63913         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63914         * modules/gc-md2 (configure.ac): Likewise.
63915         * modules/gc-md4 (configure.ac): Likewise.
63916         * modules/gc-md5 (configure.ac): Likewise.
63917         * modules/gc-random (configure.ac): Likewise.
63918         * modules/gc-rijndael (configure.ac): Likewise.
63919         * modules/gc-sha1 (configure.ac): Likewise.
63920
63921 2007-01-08  Bruno Haible  <bruno@clisp.org>
63922
63923         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63924         macro definition.
63925         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63926         definition.
63927         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63928         definition.
63929         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63930         * modules/fcntl-safer (configure.ac): Likewise.
63931         * modules/fopen-safer (configure.ac): Likewise.
63932         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63933         GNULIB_FWRITEERROR macro definition.
63934
63935 2007-01-08  Bruno Haible  <bruno@clisp.org>
63936
63937         * m4/gnulib-common.m4: New file.
63938         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63939         (func_get_filelist): Add m4/gnulib-common.m4.
63940
63941 2007-01-08  Bruno Haible  <bruno@clisp.org>
63942
63943         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63944         command.
63945
63946 2007-01-08  Jim Meyering  <jim@meyering.net>
63947
63948         Use a more robust test for a "can't happen" condition.
63949         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63950         narrowed the st_size value.  Presuming the "can't happen" condition
63951         is true, that narrowing could conceivably convert an invalid st_size
63952         value into a valid one.  Instead, use a change based on Matthew
63953         Woehlke's original patch.
63954
63955         Slight readability improvement: use an assert-like macro
63956         in place of literal "abort ()" uses.
63957         * lib/fts.c (fts_assert): Define.
63958         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63959         Use this macro instead of a bare 'abort'.
63960
63961 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63964         simply work around them.
63965         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63966         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63967         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63968         declaring.
63969         Don't bother to define as macros, since the standard doesn't require it.
63970         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63971         longer worry about IRIX 5.3.
63972         (HAVE_WCTYPE_CTMP_BUG): Remove.
63973
63974 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63977         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63978         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63979         Problems reported by Georg Schwarz for IRIX 5.3.
63980
63981         * gnulib-tool (autoconf_minversion): Take the maximum version number
63982         found, not the minimum.  Problem reported by James Youngman.
63983
63984 2007-01-03  Karl Berry  <karl@gnu.org>
63985
63986         * doc/error.texi: new file, explaining interaction with progname.
63987         * doc/gnulib.texi: include it.  Update copyright.
63988
63989 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63990
63991         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63992         AC_CANONICAL_HOST, to improve autobuild outputs.
63993
63994 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63995             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63996
63997         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63998         sockets, server sockets, and other file descriptors.  Count errors
63999         to compute the return value.  Reorder the code a bit to be easier
64000         to follow.  Don't set event bits that were not requested (except
64001         POLLERR and POLLHUP).
64002
64003 2007-01-01  Bruno Haible  <bruno@clisp.org>
64004
64005         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64006
64007 2007-01-03  Jim Meyering  <jim@meyering.net>
64008
64009         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64010
64011 2007-01-02  Bruno Haible  <bruno@clisp.org>
64012
64013         * modules/settime (Include): Require timespec.h.
64014         * modules/nanosleep (Include): Likewise.
64015
64016 2007-01-01  Bruno Haible  <bruno@clisp.org>
64017
64018         * gnulib-tool (func_emit_copyright_notice): Bump year.
64019         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64020
64021 2007-01-01  Bruno Haible  <bruno@clisp.org>
64022
64023         Improve support for OpenBSD.
64024         * build-aux/config.rpath (libname_spec): Export.
64025         (library_names_spec): New variable. Export.
64026         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64027         library_names_spec from the config.rpath output. Locate shared library
64028         through the name pattern in library_names_spec.
64029
64030 2007-01-01  Eric Blake  <ebb9@byu.net>
64031
64032         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64033
64034 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64037         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64038         assume the C locale, and avoid an "eval" that could cause trouble.
64039         Problem with SORT reported by Bob Proulx.
64040
64041         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64042         Define.  Trivial patch from Henning Nielsen Lund, originally
64043         sent to bug-grep@gnu.org today.
64044
64045 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64048         struct stat.  Problem reported by Henning Nielsen Lund.
64049         * lib/acl.c: Include acl.h first, to check interface.  Don't
64050         bother to include sys/types.h and sys/stat.h again.
64051
64052 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         Import the following change from libc; problem reported by
64055         Sven Verdoolaege.
64056
64057         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64058
64059         [BZ #1373]
64060         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64061
64062 2006-12-28  Jim Meyering  <jim@meyering.net>
64063
64064         * build-aux/announce-gen: Do not assume that the package
64065         builds any of tar.gz, tar.bz2, and .xdelta files.
64066         Suggestion from Simon Josefsson.
64067
64068 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64069
64070         * modules/announce-gen: New file.
64071
64072 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64073
64074         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64075         handles its gotchas now.
64076         * lib/mbswidth.c: Likewise.
64077         * lib/wcwidth.h: Likewise.
64078         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64079         and iswcntrl; the wctype module does this stuff now.
64080         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64082         * modules/mbchar (Depends-on): Add wctype.
64083         * modules/mbswidth (Depends-on): Likewise.
64084         * modules/wcwidth (Depends-on): Likewise.
64085
64086 2006-12-27  Eric Blake  <ebb9@byu.net>
64087
64088         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64089         module uses more than what <wctype.h> is required to provide.
64090
64091 2006-12-26  Eric Blake  <ebb9@byu.net>
64092
64093         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64094
64095 2006-12-26  Eric Blake  <ebb9@byu.net>
64096
64097         * modules/absolute-header: New module.
64098         * modules/fcntl (Depends-on): Depend on it.
64099         * modules/inttypes (Depends-on): Likewise.
64100         * modules/stdint (Depends-on): Likewise.
64101         * modules/sys_stat (Depends-on): Likewise.
64102         * modules/wctype (Depends-on): Likewise.
64103         * MODULES.html.sh (Support for building libraries and
64104         executables): Document it.
64105
64106 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         * gnulib-tool (SED): Remove, undoing previous change.
64109         The problem was that it broke coreutils on Solaris, because
64110         "sed --posix" leaked into a makefile.
64111         (sed): New alias, if 'alias' and GNU sed.
64112
64113 2006-12-24  Jim Meyering  <jim@meyering.net>
64114
64115         Work around an fchownat bug in glibc-2.4:
64116         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64117         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64118         in spite of the -P option.
64119         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64120         New macros.
64121         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64122         * modules/openat (Files): Add lib/fchownat.c.
64123         * lib/openat.c (fchownat): Don't define here.  Move to...
64124         * lib/fchownat.c: ...this new file.
64125
64126 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         Fix bug reported by Bruno Haible in
64129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64130         where quotearg.c didn't compile on Mac OS X 10.2 because it
64131         lacks <wchar.h> and wint_t.
64132         * lib/wctype_.h (__wctype_wint_t): New type.
64133         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64134         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64135         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64136         Arg is now of type __wctype_wint_t, not wint_t.
64137         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64138         substitute HAVE_WINT_T.
64139         * modules/wctype (Files): Add m4/wint_t.m4.
64140         (wctype.h): Substitute HAVE_WINT_T.
64141
64142 2006-12-23  Bruno Haible  <bruno@clisp.org>
64143
64144         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64145
64146 2006-12-23  Bruno Haible  <bruno@clisp.org>
64147
64148         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64149         S_ISLNK.
64150         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64151         mingw.
64152
64153 2006-12-22  Bruno Haible  <bruno@clisp.org>
64154
64155         * lib/copy-file.c: Include acl.h.
64156         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64157         Close the file descriptors only after being done with copy_acl.
64158         * modules/copy-file (Depends-on): Add acl.
64159
64160 2006-12-22  Bruno Haible  <bruno@clisp.org>
64161
64162         * gnulib-tool (SED): New variable.
64163         Use $SED instead of sed everywhere.
64164
64165 2006-12-22  Bruno Haible  <bruno@clisp.org>
64166
64167         * modules/no-c++: New file.
64168         * m4/no-c++.m4: New file.
64169         * MODULES.html.sh (Support for building libraries and executables):
64170         Add no-c++.
64171
64172 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64175         Include <limits.h>, and use its INT_MAX to rewrite the
64176         j loop so that it does not overflow 'int'.  Problem reported by
64177         Ralf Wildenhues in
64178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64179         Play it safe by shifting left by 1 rather than multiplying by 2,
64180         as GCC is less likely to optimize this away when the value
64181         is signed (when it assumes overflow leads to undefined behavior).
64182         Also, don't assume time_t uses two's complement.
64183
64184 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64185
64186         * MODULES.html.sh: New module wctype.
64187         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64188         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64189         <wctype.h>, since the new wctype module should fix this.
64190         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64191         the wctype module should arrange for it.
64192         * lib/regex_internal.h: Likewise.
64193         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64194         since the wctype module should handle this now.
64195         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64196         * modules/fnmatch (Depends-on): Add wctype.
64197         * modules/quotearg (Depends-on): Likewise.
64198         * modules/regex (Depends-on): Likewise.
64199
64200 2006-12-19  Bruno Haible  <bruno@clisp.org>
64201
64202         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64203         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64204
64205 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64206
64207         * modules/savewd (Depends-on): Fix dependency on fcntl.
64208
64209 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64212         conforms to C99, rather than relying on the user's environment
64213         setting of STDINT_H.
64214
64215 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64216         and Eric Blake  <ebb9@byu.net>
64217
64218         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64219         This is more consistent with the other defines here.
64220         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64221         Port to z/OS.  Problem reported by Paul Gilmartin.
64222         Change local vars to use gl_ prefix rather than ac_.
64223         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64224         with other defines.
64225         * modules/double-slash-root: New module.
64226         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64227         (Depends-on): Add double-slash-root.
64228         * MODULES.html.sh (File system functions): Mention new module.
64229
64230 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64231
64232         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64233         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64234         This is for the benefit of gzip, which doesn't do i18n.
64235
64236 2006-12-12  Jim Meyering  <jim@meyering.net>
64237
64238         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64239         Reported by Andreas Schwab <schwab@suse.de>.
64240
64241 2006-12-12  Bruno Haible  <bruno@clisp.org>
64242
64243         Merge these changes.
64244         2006-09-05  Bruno Haible  <bruno@clisp.org>
64245         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64246         iconv_alloc succeeded.
64247         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64248         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64249         test for " && dest " at the end - dest is always != NULL there. Call
64250         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64251         with 2xNULL arguments, also to flush the state storage. Handle the
64252         IRIX iconv behaviour. Realloc the final result, to throw away unused
64253         memory.
64254
64255 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64256
64257         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64258         and fchmodat unconditionally, since glibc 2.4 has them.
64259         Problem reported by Arkadiusz Miskiewicz.
64260
64261 2006-12-10  Bruno Haible  <bruno@clisp.org>
64262
64263         * gnulib-tool (func_import): Show the include files only for those
64264         modules that are copied and specified.
64265         Reported by Karl Berry.
64266
64267 2006-12-08  Jim Meyering  <jim@meyering.net>
64268
64269         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64270         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64271
64272         * build-aux/announce-gen: Add two new options, both optional:
64273         --bootstrap-tools=TOOL_LIST
64274               a comma-separated list of tools, e.g.,
64275               autoconf,automake,bison,gnulib
64276         --gnulib-snapshot-date=DATE
64277               if gnulib is in the bootstrap tool list,
64278               then report this as the snapshot date.
64279               If not specified, use the current date/time.
64280               If you specify a date here, be sure it's UTC.
64281
64282 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64283
64284         * tests/test-argp-2.sh: Fix test to match actual output.
64285         (func_compare): Fix sed script to be portable.
64286
64287 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64288
64289         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64290         workaround for this case.  It is not autoconfigured now; offhand
64291         it's hard to see how to autoconfigure it.
64292
64293 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64294
64295         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64296         a directory that is about to be chowned.  Such a directory's
64297         initial file permissions should permit the owner only and this
64298         should not be changed until after the chown, since the group and
64299         other bits would be incorrect if they granted permission before
64300         the chown.
64301
64302         Fix porting problem for iswctype reported by Georg Schwarz in:
64303         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64304         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64305         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64306         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64307         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64308
64309 2006-12-03  Jim Meyering  <jim@meyering.net>
64310
64311         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64312         p->fts_statp may not yet be defined.
64313         (fts_read): Instead, set it in the caller, once p->fts_statp is
64314         sure to be defined, and corresponds to a top-level directory.
64315         This bug made du -x fail.  Here's the coreutils test case:
64316         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64317         Reported by Mike Frysinger.
64318
64319 2006-12-01  Jim Meyering  <jim@meyering.net>
64320
64321         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64322         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64323         Reported by Simon Josefsson.
64324
64325 2006-11-30  Jim Meyering  <jim@meyering.net>
64326
64327         * m4/warning.m4: Use the all-permissive copyright notice
64328         recommended by RMS (rather than LGPL).
64329         * m4/vararrays.m4: Likewise.
64330         * m4/flexmember.m4: Likewise.
64331
64332 2006-11-29  Bruno Haible  <bruno@clisp.org>
64333
64334         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64335         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64336         using +=.
64337         Reported by Simon Josefsson <simon@josefsson.org>.
64338
64339 2006-11-28  James Youngman <jay@gnu.org>
64340
64341         * README: Advise users that they might find the bug-gnulib@gnu.org
64342         and autotools-announce@gnu.org mailing lists useful.
64343
64344 2006-11-28  Bruno Haible  <bruno@clisp.org>
64345
64346         * m4/ptrdiff_max.m4: Remove file.
64347
64348 2006-11-21  Bruno Haible  <bruno@clisp.org>
64349
64350         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64351         _AC_COMPUTE_INT.
64352         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64353         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64354         _AC_COMPUTE_INT.
64355         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64356         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64357         _AC_COMPUTE_INT.
64358         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64359
64360 2006-11-28  Jim Meyering  <jim@meyering.net>
64361
64362         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64363         warning from "gcc -Wshadow" about shadowing the builtin.
64364
64365 2006-11-27  Bruno Haible  <bruno@clisp.org>
64366
64367         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64368         _AC_COMPUTE_INT.
64369         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64370
64371 2006-11-27  Bruno Haible  <bruno@clisp.org>
64372             Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64375
64376 2006-11-26  Bruno Haible  <bruno@clisp.org>
64377
64378         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64379         noinst_LTLIBRARIES.
64380
64381 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64382             Bruno Haible  <bruno@clisp.org>
64383
64384         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64385         if compiling with "gcc -ansi".
64386
64387 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64388
64389         Fix some incompatibilities with gcc -ansi -pedantic.
64390         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64391         if compiling pedantically with GCC, unless it's C99 or later.
64392         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64393         it mishandles gcc -ansi -pedantic as well.
64394         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64395         if gcc -pedantic.
64396         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64397         initializers for struct if -pedantic, unless it's C99 or later.
64398
64399 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64400
64401         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64402         Don't close an fd more than once. Identical atimes indicate
64403         success, not failure.
64404
64405 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64406
64407         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64408
64409 2006-11-23  Jim Meyering  <jim@meyering.net>
64410
64411         * build-aux/announce-gen: New file.  From coreutils.
64412
64413 2006-11-22  Jim Meyering  <jim@meyering.net>
64414
64415         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64416         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64417         (fts_read): Use a temporary to narrow the overused st_size member
64418         before using it in a switch statement.  Reported by Matthew Woehlke.
64419
64420         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64421         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64422
64423 2006-11-20  Bruno Haible  <bruno@clisp.org>
64424
64425         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64426         changequote instead of pairs of brackets.
64427         Reported by Andreas Schwab <schwab@suse.de>.
64428
64429 2006-11-21  Jim Meyering  <jim@meyering.net>
64430
64431         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64432         so as to remain compatible with older compilers.
64433         Patch from Michael Deutschmann.
64434
64435 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * MODULES.html.sh (File system functions): Add openat.
64438
64439         * lib/openat.h (rpl_fstatat): New macro, if
64440         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64441         (fstatat): Define to rpl_fstatat under the same conditions,
64442         unless COMPILING_FSTATAT.
64443         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64444         seems to have the bug.
64445         * lib/fstatat.c: New file.
64446         * modules/openat (Files): Add it.
64447
64448 2006-11-20  Bruno Haible  <bruno@clisp.org>
64449
64450         * Makefile: New file.
64451
64452 2006-11-20  Jim Meyering  <jim@meyering.net>
64453
64454         The beginnings of syntax-related checks for gnulib.
64455         * lib/Makefile: New file.
64456         * lib/t-idcache: New script.  Ensure that the two halves of
64457         idcache.c stay in sync.
64458
64459         * lib/idcache.c: Adjust comments in user- and group- portions to
64460         be more accurate, and to be consistent with one another.
64461
64462 2006-11-20  Jim Meyering  <jim@meyering.net>
64463
64464         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64465         continue using the flexible array member (thus, this module performs
64466         half as many malloc calls), with the addition that...
64467         (getgroup, getuser): Consistently record a non-match via an empty
64468         "name" string, and map an empty string match to a NULL return value.
64469         * modules/idcache (Depends-on): Re-add flexmember.
64470
64471         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64472         (getuidbyname, getgroup, getgidbyname): Likewise.
64473
64474         Use cleaner syntax: NULL rather than 0.
64475         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64476
64477 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64480         It mishandled the case where the group was missing.
64481         Problem reported by Greg Schafer.
64482         * modules/idcache: Likewise.
64483
64484 2006-11-18  Jim Meyering  <jim@meyering.net>
64485
64486         * check-module (%exempt_header): Add exception for some
64487         conditionally-included headers.
64488
64489         * modules/i-ring (Depends-on): Add verify.
64490         (License): Change to LGPL.
64491
64492 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64493
64494         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64495         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64496         and inttostr.h.  Use snprintf rather than uinttostr, so that
64497         LGPLed code doesn't depend on GPLed.
64498
64499 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * modules/inline (License): Change from GPL to LGPL.
64502
64503 2006-11-17  Jim Meyering  <jim@meyering.net>
64504
64505         * modules/d-type (License): Switch to LGPL.
64506
64507 2006-11-15  Bruno Haible  <bruno@clisp.org>
64508
64509         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64510
64511 2006-11-15  Eric Blake  <ebb9@byu.net>
64512
64513         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64514         the module dependency.
64515
64516 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64517             Bruno Haible  <bruno@clisp.org>
64518
64519         * gnulib-tool (func_create_testdir): Add license consistency check.
64520
64521 2006-11-15  Eric Blake  <ebb9@byu.net>
64522
64523         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64524         random "(cached)" in configure output.
64525
64526 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64527
64528         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64529         test for conforming inttypes.h is both announced and cached.
64530
64531         * MODULES.html.sh (seen_modules, seen_files): New variables.
64532         (func_module): Rewrite to use a few less gnulib-tool and sed
64533         invocations.  Avoid a couple of quadratic algorithms for ...
64534         (missed_modules, missed_files): ... these, with ...
64535         (func_append, func_tmpdir): ... these new functions, from
64536         gnulib-tool.  Analogously, install traps for cleanup.
64537
64538         * tests/test-gc.c (main): Remove unused variables.
64539         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64540
64541 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64542
64543         * modules/inttostr (License): Change to LGPL.
64544
64545 2006-11-14  Eric Blake  <ebb9@byu.net>
64546
64547         * modules/tempname (License): Change to LGPL.
64548
64549 2006-11-14  Eric Blake  <ebb9@byu.net>
64550
64551         * doc/functions.texi (Function Portability): *printf functions on
64552         Cygwin now understand all POSIX size specifiers.
64553
64554 2006-11-14  Bruno Haible  <bruno@clisp.org>
64555
64556         * modules/c-ctype (License): Change to LGPL.
64557
64558 2006-11-12  Bruno Haible  <bruno@clisp.org>
64559
64560         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64561         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64562         for GNOME libraries, for which the include files are installed in
64563         subdirectories of $prefix/include.
64564
64565 2006-11-12  Bruno Haible  <bruno@clisp.org>
64566
64567         * m4/lib-link.m4: Require at least autoconf-2.54.
64568         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64569         name to underscores for the --with option.
64570
64571 2006-11-13  Bruno Haible  <bruno@clisp.org>
64572
64573         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64574         the tests directory.
64575         Reported by Ralf Wildenhues.
64576
64577 2006-11-13  Bruno Haible  <bruno@clisp.org>
64578
64579         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64580         (func_emit_initmacro_end): Undo the override here.
64581         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64582         Works around the famous automake error in coreutils.
64583
64584 2006-11-13  Eric Blake  <ebb9@byu.net>
64585
64586         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64587         element, not its node.
64588
64589 2006-11-12  Bruno Haible  <bruno@clisp.org>
64590
64591         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64592         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64593
64594 2006-11-12  Bruno Haible  <bruno@clisp.org>
64595
64596         * gnulib-tool: New option --local-symlink.
64597         (func_usage): Document it.
64598         (lsymbolic): New variable.
64599         (func_import, func_create_testdir): If --symlink was not specified,
64600         test whether --local-symlink was specified and the file comes from
64601         the local_gnulib_dir.
64602
64603 2006-11-12  Bruno Haible  <bruno@clisp.org>
64604
64605         * gnulib-tool (func_ln): New function.
64606         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64607
64608 2006-11-12  Bruno Haible  <bruno@clisp.org>
64609
64610         Finish support for source files in subdirectories.
64611         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64612         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64613         AUTOMAKE_OPTIONS.
64614         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64615
64616 2006-11-12  Bruno Haible  <bruno@clisp.org>
64617
64618         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64619         EXTRA_lib_SOURCES augmentation.
64620         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64621
64622 2006-11-12  Jim Meyering  <jim@meyering.net>
64623
64624         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64625         file descriptors.  This also averts a failure on systems with
64626         native openat support when a traversed directory lacks "x" access.
64627         * lib/fts_.h: Include "i-ring.h"
64628         (struct FTS) [fts_fd_ring]: New member.
64629         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64630         (FCHDIR): Add parentheses.
64631         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64632         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64633         When descending, rather than simply closing the previous
64634         fts_cwd_fd value, push that file descriptor onto the ring.
64635         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64636         (fts_open): Initialize the new fd_ring member.
64637         (fts_close): Clear the ring.
64638         (fts_safe_changedir): When possible, use our new fd_ring to skip
64639         the diropen and fstat and dev/ino comparison that would normally
64640         accompany a virtual `chdir ("..")'.
64641
64642         * modules/fts (Depends-on): Add i-ring.
64643         * modules/i-ring: New module.
64644         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64645         * m4/i-ring.m4: New file.
64646
64647 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64648
64649         * gnulib-tool (func_create_testdir): Fix replacement of
64650         `build-aux' in configure.ac.  Run autotools in gltests
64651         subdirectory.
64652         (func_create_testdir, func_create_megatestdir, test): There is
64653         no need for '--force' in most autotool invocations in a new
64654         tree.  Actually fail the whole test if any of the tools, or the
64655         configure or make stages fail.
64656
64657         Sync from Automake.
64658         * build-aux/gnupload: Revert last change.  Add pointer to upload
64659         instructions of the GNU Maintenance Instructions.
64660         Suggestion by Karl Berry.
64661
64662 2006-11-10  Jim Meyering  <jim@meyering.net>
64663
64664         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64665
64666 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64667
64668         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64669         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64670         (bind_textdomain_codeset) [! ENABLE_NLS]:
64671         Evaluate all the arguments.  That way, callers get compatible behavior
64672         if the arguments have side effects.  Also, it avoids some GCC
64673         diagnostics in some cases; Joel E. Denny reported problems when Bison
64674         was configured with --enable-gcc-warnigs.
64675
64676 2006-11-10  Jim Meyering  <jim@meyering.net>
64677
64678         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64679         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64680         account.
64681
64682 2006-11-10  Jim Meyering  <jim@meyering.net>
64683
64684         * modules/inline: New file/module.
64685         * modules/xalloc (Files): Remove m4/inline.m4.
64686         (Depends-on): Add inline, instead.
64687         * modules/oset: Likewise.
64688         * modules/list: Likewise.
64689
64690 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64693         Problem reported by Matthew Woehlke.
64694
64695 2006-11-09  Bruno Haible  <bruno@clisp.org>
64696
64697         * lib/tempname.c (gen_tempname): Remove variant that invokes
64698         __gen_tempname.
64699         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64700         __gen_tempname.
64701
64702 2006-11-08  Bruno Haible  <bruno@clisp.org>
64703
64704         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64705         to 'yes' instead of 'cross-compiling'.
64706
64707 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * lib/quotearg.h (quotearg_free): New decl.
64710         * lib/quotearg.c (quotearg_free): New function.
64711         (slot0, nslots, slotvec0, slotvec):
64712         Now file-scope so that quotearg_free can get at them.
64713
64714 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64715
64716         Sync from Automake.
64717         * build-aux/gnupload: Add missing 'gnu' to example URL.
64718         Report by Karl Berry.
64719
64720 2006-11-08  Bruno Haible  <bruno@clisp.org>
64721
64722         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64723         Suggested by Paul Eggert.
64724
64725 2006-11-08  Jim Meyering  <jim@meyering.net>
64726
64727         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64728         It's already included if !_LIBC.
64729         (fts_safe_changedir): Add a comment.
64730
64731 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64734         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64735         Matthew Woehlke.
64736
64737         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64738         definitions up, to avoid colliding with change below.
64739         (static_inline) [HAVE_INLINE]: New macro.
64740         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64741         Provide extern decls when !HAVE_INLINE.  Do not define unless
64742         static_inline is defined, either by us or by xmalloc.c.  Use
64743         static_inline rather than static inline.
64744         (XCALLOC): Optimize sizeof(T) = 1 case.
64745         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64746
64747 2006-11-07  Bruno Haible  <bruno@clisp.org>
64748
64749         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64750         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64751         AC_C_INLINE.
64752         * modules/xalloc (Files): Add m4/inline.m4.
64753
64754 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64755
64756         * README: Fix typo.
64757         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64758         (Miscellanous Notes): ...from this.
64759
64760 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64761
64762         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64763         Mention that offsetof should be used instead of sizeof.
64764         From Bruno Haible.
64765
64766 2006-11-07  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64769
64770 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64773         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64774         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64775         (gl_tree_add_before, gl_tree_add_after):
64776         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64777         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64778         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64779         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64780         (gl_linked_add_after, gl_linked_add_at): Likewise.
64781         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64782         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64783         (gl_tree_add_before, gl_tree_add_after): Likewise.
64784         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64785         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64786         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64787
64788 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64789
64790         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64791
64792 2006-11-06  Bruno Haible  <bruno@clisp.org>
64793
64794         * m4/inline.m4: New file.
64795         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64796         * modules/list (Files): Add m4/inline.m4.
64797         * modules/oset (Files): Likewise.
64798
64799 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * lib/idcache.c: Include <stddef.h>, for offsetof.
64802         (struct userid.name): Change from char * to a flexible array member.
64803         All uses changed.
64804         * modules/idcache (Depends-on): Add flexmember.
64805
64806         * MODULES.html.sh (Core language properties): New module flexmember.
64807         * modules/flexmember, m4/flexmember.m4: New files.
64808
64809         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64810         inline functions that are identical with the old xnmalloc_inline,
64811         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64812         that we can avoid some unnecessary integer multiplications and
64813         divisions in the common case where the element size is known at
64814         compile time.
64815         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64816         needed.
64817         (xnboundedmalloc): Remove.
64818         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64819         arguments, for consistency with rest of this header.
64820         (xcharalloc): Rewrite using XNMALLOC.
64821         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64822         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64823         versions have been moved to lib/xalloc.h and renamed to be the
64824         non-*_inline versions.
64825         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64826         and xnrealloc functions, since those functions are now inline and
64827         now call us.
64828         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64829         renaming described above.
64830         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64831         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64832         captures the dependency in AC_C_INLINE.
64833
64834         New module canonicalize-lgpl, proposed by Charles Wilson in
64835         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64836         with a few small changes afterwards.
64837         * MODULES.html.sh (File system functions): New module
64838         canonicalize-lgpl.
64839         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64840         and canonicalize_file_name.
64841         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64842         * modules/canonicalize-lgpl: New files.
64843
64844 2006-11-05  Bruno Haible  <bruno@clisp.org>
64845
64846         * gnulib-tool (func_import, func_create_testdir): Create directories
64847         also for files in subdirectories of lib/.
64848
64849 2006-11-05  Bruno Haible  <bruno@clisp.org>
64850
64851         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64852         ANSI C compliant.
64853
64854 2006-11-03  Bruno Haible  <bruno@clisp.org>
64855
64856         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64857         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64858         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64859         (xnboundedmalloc): New inline function.
64860         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64861         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64862         xmalloc.
64863         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64864         xmalloc.
64865         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64866         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64867         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64868         xmalloc.
64869         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64870         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64871         xmalloc.
64872         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64873         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64874         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
64875         xmalloc.
64876         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64877         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
64878         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64879         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
64880         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
64881         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
64882         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
64883
64884 2006-11-03  Bruno Haible  <bruno@clisp.org>
64885
64886         * lib/c-ctype.h [C++]: Define functions without name mangling.
64887         * lib/fwriteerror.h [C++]: Likewise.
64888         * lib/gcd.h [C++]: Likewise.
64889         * lib/linebreak.h [C++]: Likewise.
64890
64891 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64892
64893         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
64894         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
64895         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
64896         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64897         Check for functions and headers just once.
64898         Check for declaration of canonicalize_file_name.
64899         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
64900
64901 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64902
64903         * gnulib-tool (func_import): Fix typo in actioncmd.
64904
64905 2006-11-02  Bruno Haible  <bruno@clisp.org>
64906
64907         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
64908         newline sequence in the Makefile.am snippet as a space, like "make"
64909         does.
64910         Reported by Roger Persson <perrog@gmail.com>.
64911
64912 2006-11-01  Bruno Haible  <bruno@clisp.org>
64913
64914         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64915         already declared in <string.h>.
64916         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64917
64918 2006-11-01  Bruno Haible  <bruno@clisp.org>
64919
64920         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64921         * lib/strcase.h: Include <string.h>.
64922         (strcasecmp): Define to rpl_strcasecmp here.
64923
64924 2006-11-01  Bruno Haible  <bruno@clisp.org>
64925
64926         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64927
64928 2006-11-01  Eric Blake  <ebb9@byu.net>
64929
64930         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64931
64932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64933
64934 2006-10-29  Bruno Haible  <bruno@clisp.org>
64935
64936         Make it compile in C++ mode.
64937         * lib/full-write.c (full_rw): Add a cast.
64938
64939 2006-11-01  Bruno Haible  <bruno@clisp.org>
64940
64941         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64942         be POSIX compliant.
64943         Reported by Roger Persson <perrog@gmail.com>.
64944
64945 2006-11-01  Eric Blake  <ebb9@byu.net>
64946
64947         * lib/getopt_.h: Fix comments.
64948
64949 2006-10-31  Eric Blake  <ebb9@byu.net>
64950
64951         * modules/tmpdir (Depends-on): Add sys_stat.
64952         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64953         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64954         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64955         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64956         tempname.
64957
64958 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         Avoid some C++ diagnostics reported by Bruno Haible.
64961         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64962         xmalloc.
64963         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64964         (struct slotvec): Move to top level.
64965         (quotearg_n_options): Rewrite to avoid xmalloc.
64966         * lib/xalloc.h (xcharalloc): New function.
64967         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64968         [defined __cplusplus]: Add function template that provides result
64969         type propagation.  This part of the change is from Bruno Haible.
64970
64971 2006-10-29  Bruno Haible  <bruno@clisp.org>
64972
64973         Make it compile in C++ mode.
64974         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64975         * lib/strnlen1.c (strnlen1): Cast memchr result.
64976         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64977         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64978         (create_temp_dir): Rename local variable 'template'.
64979         (compile_csharp_using_sscli): Add cast.
64980         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64981         * lib/findprog.c (find_in_path): Likewise.
64982         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64983         * lib/wait-process.c (register_slave_subprocess): Likewise.
64984
64985 2006-10-22  Bruno Haible  <bruno@clisp.org>
64986
64987         * modules/tsearch: New file.
64988         * lib/tsearch.h: New file.
64989         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64990         * m4/tsearch.m4: New file.
64991         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64992
64993 2006-10-29  Eric Blake  <ebb9@byu.net>
64994
64995         * lib/arcfour.c: Assume config.h.
64996         * lib/arctwo.c: Likewise.
64997         * lib/base64.c: Likewise.
64998         * lib/check-version.c: Likewise.
64999         * lib/crc.c: Likewise.
65000         * lib/des.c: Likewise.
65001         * lib/gc-gnulib.c: Likewise.
65002         * lib/gc-libgcrypt.c: Likewise.
65003         * lib/gc-pbkdf2-sha1.c: Likewise.
65004         * lib/getaddrinfo.c: Likewise.
65005         * lib/getdelim.c: Likewise.
65006         * lib/getline.c: Likewise.
65007         * lib/hmac-md5.c: Likewise.
65008         * lib/hmac-sha1.c: Likewise.
65009         * lib/iconvme.c: Likewise.
65010         * lib/md2.c: Likewise.
65011         * lib/md4.c: Likewise.
65012         * lib/memxor.c: Likewise.
65013         * lib/read-file.c: Likewise.
65014         * lib/readline.c: Likewise.
65015         * lib/rijndael-alg-fst.c: Likewise.
65016         * lib/rijndael-api-fst.c: Likewise.
65017         * lib/xgetdomainname.c: Likewise.
65018
65019 2006-10-28  Eric Blake  <ebb9@byu.net>
65020
65021         * lib/xstrndup.c: Assume config.h.
65022
65023 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65024
65025         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65026         stat-macros.h is now for our own macros, whereas stat_h is for
65027         macros in the <sys/stat.h> name space.
65028         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65029         (STAT_MACROS_H): Remove.
65030         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65031         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65032         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65033         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65034         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65035         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65036         Move these macros to ...
65037         * lib/stat_.h: here.  Don't include stat-macros.h.
65038         * lib/canonicalize.c: Don't include stat-macros.h.
65039         * lib/chown.c: Likewise.
65040         * lib/euidaccess.c: Likewise.
65041         * lib/file-type.c: Likewise.
65042         * lib/filemode.c: Likewise.
65043         * lib/glob.c: Likewise.
65044         * lib/isapipe.c: Likewise.
65045         * lib/lchown.c: Likewise.
65046         * lib/lstat.c: Likewise.
65047         * lib/mkdir-p.c: Likewise.
65048         * lib/rmdir.c: Likewise.
65049         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65051         unless mkdir isn't declared, to speed up 'configure'.
65052         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65053         would define all the S_* symbols.
65054         * modules/canonicalize (Depends-on):
65055         Depend on sys_stat, not stat-macros.
65056         * modules/chown: Likewise.
65057         * modules/euidaccess: Likewise.
65058         * modules/filemode: Likewise.
65059         * modules/file-type: Likewise.
65060         * modules/glob: Likewise.
65061         * modules/isapipe: Likewise.
65062         * modules/lchown: Likewise.
65063         * modules/lstat: Likewise.
65064         * modules/mkancesdirs: Likewise.
65065         * modules/rmdir: Likewise.
65066         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65067         * modules/modechange: Likewise.
65068         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65069         (configure.ac): Remove gl_STAT_MACROS.
65070         * modules/sys_stat (Depends-on): Remove stat-macros.
65071
65072 2006-10-27  Bruno Haible  <bruno@clisp.org>
65073
65074         * m4/signed.m4: Remove file.
65075         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65076         invocation.
65077         * modules/vasnprintf (Files): Remove m4/signed.m4.
65078
65079 2006-10-27  Bruno Haible  <bruno@clisp.org>
65080
65081         Update to GNU gettext 0.16.
65082         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65083         m4/inttypes-h.m4, m4/signed.m4.
65084         * m4/gettext.m4: Update to GNU gettext 0.16.
65085         * m4/intl.m4: New file, from GNU gettext.
65086         * m4/intldir.m4: New file, from GNU gettext.
65087         * config/srclist.txt: Update
65088
65089 2006-10-27  Eric Blake  <ebb9@byu.net>
65090
65091         * MODULES.html.sh: Document tempname.
65092         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65093         dependencies.
65094         (Files): Move lib/tempname.c...
65095         * modules/tempname: ...to this new module.
65096         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65097         (gl_PREREQ_TEMPNAME): Move...
65098         * m4/tempname.m4: ...to this new file.
65099         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65100         * modules/sys_stat (Depends-on): Add stat-macros.
65101         * lib/stat_.h (includes): Pick up stat macros.
65102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65103         if stat macros are broken.
65104         * lib/tempname.c (includes): No need to include "stat-macros.h".
65105         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65106         (direxists, __path_search) [!_LIBC]: Don't compile these in
65107         gnulib; the tmpdir module covers that.
65108         * lib/tempname.h: New file.
65109
65110 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * COPYING: Explain how gnulib-tool converts licence headers.
65113         Almost all wording by Eric Blake.
65114
65115 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65116
65117         * lib/mbchar.h (is_basic_table): Make read-only.
65118         * lib/mbchar.c (is_basic_table): Likewise.
65119         Reported by John Darrington.
65120
65121 2006-10-25  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/progname.h (set_program_name): Undefine before defining.
65124
65125 2006-10-25  Bruno Haible  <bruno@clisp.org>
65126
65127         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65128         false for non-gcc C++ compilers.
65129         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65130
65131 2006-10-24  Bruno Haible  <bruno@clisp.org>
65132
65133         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65134         iconv implementations like Irix iconv.
65135
65136 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65137
65138         * modules/vararrays: New file.
65139         * m4/vararrays.m4: New file, taken from diffutils.
65140         * MODULES.html.sh: New module vararrays.
65141
65142 2006-10-24  Karl Berry  <karl@gnu.org>
65143
65144         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65145         Don't call GNU Unix.
65146
65147 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65148
65149         * users.txt: Add Libtool.
65150
65151         Sync from Libtool:
65152
65153         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65154
65155         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65156         to gnulib's policy of including config.h unconditionally.
65157
65158 2006-10-24  Bruno Haible  <bruno@clisp.org>
65159
65160         * modules/wcwidth (Files): Add m4/wint_t.m4.
65161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65162         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65163
65164 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65167         to pacify GCC with some -W flags enabled.  Problem reported by
65168         Bruno Haible.
65169
65170 2006-10-24  Jim Meyering  <jim@meyering.net>
65171
65172         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65173         Reported by Karl Berry.
65174
65175 2006-10-23  Bruno Haible  <bruno@clisp.org>
65176
65177         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65178
65179 2006-10-24  Bruno Haible  <bruno@clisp.org>
65180
65181         * lib/gl_list.h: Use C comment style, not C++ comment style.
65182
65183 2006-10-23  Eric Blake  <ebb9@byu.net>
65184
65185         * lib/getaddrinfo.c (includes): Add missing include.
65186
65187 2006-10-23  Bruno Haible  <bruno@clisp.org>
65188             Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         Ability to rename obstack_free.
65191         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65192         obstack_free.
65193         (obstack_free): Invoke the __obstack_free macro.
65194         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65195
65196 2006-10-23  Bruno Haible  <bruno@clisp.org>
65197             Paul Eggert  <eggert@cs.ucla.edu>
65198
65199         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65200         __argc, __argv from the declaration. (They are defined as macros on
65201         mingw.)
65202
65203 2006-10-22  Bruno Haible  <bruno@clisp.org>
65204
65205         * doc/gnulib-intro.texi: New file.
65206         * doc/gnulib.texi: Include it.
65207
65208 2006-10-21  Bruno Haible  <bruno@clisp.org>
65209
65210         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65211         "Introduction", "Miscellanous Notes", "Particular Modules".
65212
65213 2006-10-21  Bruno Haible  <bruno@clisp.org>
65214
65215         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65216         Change mostlyclean-local rule to avoid sh syntax error from bash
65217         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65218
65219 2006-10-23  Jim Meyering  <jim@meyering.net>
65220
65221         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65222         in place of snprintf.
65223
65224         * modules/inttostr (Files): Add lib/uinttostr.c.
65225         * lib/uinttostr.c (inttostr): New file/function.
65226         * lib/inttostr.h (uinttostr): Declare.
65227         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65228         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65229         Add uinttostr.
65230         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65231
65232 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65233
65234         * lib/canonicalize.c (ELOOP): Define if not already defined.
65235         Problem reported by Bruno Haible in
65236         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65237
65238 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65239
65240         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65241         Problem reported by Perry Smith and Ville Laurikari.
65242
65243         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65244         uses.
65245
65246 2006-10-19  Bruno Haible  <bruno@clisp.org>
65247
65248         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65249         for mingw.
65250
65251 2006-10-19  Bruno Haible  <bruno@clisp.org>
65252
65253         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65254         Needed for mingw.
65255
65256 2006-10-19  Bruno Haible  <bruno@clisp.org>
65257
65258         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65259
65260 2006-10-19  Bruno Haible  <bruno@clisp.org>
65261
65262         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65263         it.
65264
65265 2006-10-19  Bruno Haible  <bruno@clisp.org>
65266
65267         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65268         invocation.
65269
65270 2006-10-19  Bruno Haible  <bruno@clisp.org>
65271
65272         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65273         mountlist by default.
65274
65275 2006-10-16  Bruno Haible  <bruno@clisp.org>
65276
65277         * lib/c-strstr.c: Include c-strstr.h.
65278
65279 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65280
65281         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65282         in a slash.
65283
65284 2006-10-18  Bruno Haible  <bruno@clisp.org>
65285
65286         * lib/lock.h [C++]: Wrap definitions in extern "C".
65287
65288 2006-10-18  Bruno Haible  <bruno@clisp.org>
65289
65290         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65291         gl_LIBOBJS list.
65292
65293 2006-10-18  Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65296
65297 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65298
65299         * lib/xstrtol.h: Include gettext.h.
65300         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65301         Problem reported by Eric Blake.
65302         * modules/xstrtol (Depends-on): Add gettext-h.
65303
65304 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65305
65306         * lib/strftime.c (advance): New macro.
65307         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65308         incomplete type, so you can't add 0 to it.  Problem and patch
65309         reported by Eelco Dolstra for dietlibc.
65310
65311 2006-10-18  Jim Meyering  <jim@meyering.net>
65312
65313         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65314         type for a local, and rename it: s/up/user_proc/.
65315
65316 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65317
65318         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65319         READ_UTMP_USER_PROCESS.
65320         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65321
65322 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65323
65324         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65325         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65326
65327 2006-10-17  Eric Blake  <ebb9@byu.net>
65328
65329         * lib/sigprocmask.c (sigprocmask): Fix typo.
65330
65331         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65332
65333         * modules/clean-temp (Makefile.am): Don't add to make output...
65334         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65335         config.h.
65336
65337 2006-10-17  Bruno Haible  <bruno@clisp.org>
65338
65339         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65340         differently if DEFAULT_TEXT_DOMAIN is set.
65341
65342 2006-10-16  Bruno Haible  <bruno@clisp.org>
65343
65344         * lib/clean-temp.c: Include fwriteerror.h.
65345
65346 2006-10-16  Bruno Haible  <bruno@clisp.org>
65347
65348         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65349
65350 2006-10-16  Bruno Haible  <bruno@clisp.org>
65351
65352         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65353         * lib/sigprocmask.h: Include <sys/types.h>.
65354         (sigset_t): Use the system's definition if present.
65355
65356 2006-10-17  Eric Blake  <ebb9@byu.net>
65357
65358         * lib/xvasprintf.c (includes): Assume config.h.
65359         * lib/xasprintf.c (includes): Likewise.
65360
65361 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65364         at least as wide as intmax_t.
65365
65366 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65367
65368         (Imported from Automake.)
65369         * build-aux/gnupload: Update to version 1.1 of directive file.
65370
65371 2006-10-16  Eric Blake  <ebb9@byu.net>
65372
65373         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65374         match Automake 1.10a.
65375
65376 2006-10-14  Bruno Haible  <bruno@clisp.org>
65377
65378         * modules/sigprocmask: New file.
65379         * lib/sigprocmask.h: New file.
65380         * lib/sigprocmask.c: New file.
65381         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65382         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65383         request sigprocmask.o.
65384         (gl_PREREQ_SIGPROCMASK): New macro.
65385         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65386         (Depends-on): Add sigprocmask.
65387         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65388         gt_SIGNALBLOCKING. Test for 'raise' only once.
65389         * lib/fatal-signal.c: Include sigprocmask.h.
65390         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65391         unblock_fatal_signals): Define always.
65392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65393         sigprocmask.
65394
65395 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65396
65397         Sync from Automake.
65398         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65399         which incorrectly sets the mode of an existing destination
65400         directory.  In some cases the unpatched install-sh could do the
65401         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65402         system.  We hope this is rare in practice, but it's clearly worth
65403         fixing.  Problem reported by Alex Unleashed in
65404         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65405         Also, don't bother to check for -m bugs unless we're using -m;
65406         suggested by Stepan Kasal.
65407
65408 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65409
65410         Sync from Automake.
65411         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65412         `-c' flag, so they appear at the same position as in %FASTDEP%
65413         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65414         which ignores unknown options only after the first non-option.
65415         Bug report against M4 by Nelson H. F. Beebe.
65416
65417 2006-10-13  Jim Meyering  <jim@meyering.net>
65418
65419         Fix a bug in yesterday's change.
65420         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65421         p->fts_statp->st_dev would be used uninitialized.
65422         Ensures that we always call fts_stat on the very first entry.
65423         Miklos Szeredi reported that find -xdev stopped working.
65424
65425 2006-10-12  Bruno Haible  <bruno@clisp.org>
65426
65427         * gnulib-tool (func_get_automake_snippet): Append an automatically
65428         computed EXTRA_DIST augmentation.
65429         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65430         * modules/alloca-opt (Makefile.am): Likewise.
65431         * modules/allocsa (Makefile.am): Likewise.
65432         * modules/arcfour (Makefile.am): Likewise.
65433         * modules/arctwo (Makefile.am): Likewise.
65434         * modules/argmatch (Makefile.am): Likewise.
65435         * modules/argz (Makefile.am): Likewise.
65436         * modules/atexit (Makefile.am): Likewise.
65437         * modules/backupfile (Makefile.am): Likewise.
65438         * modules/byteswap (Makefile.am): Likewise.
65439         * modules/c-strtod (Makefile.am): Likewise.
65440         * modules/c-strtold (Makefile.am): Likewise.
65441         * modules/calloc (Makefile.am): Likewise.
65442         * modules/canon-host (Makefile.am): Likewise.
65443         * modules/canonicalize (Makefile.am): Likewise.
65444         * modules/chdir-long (Makefile.am): Likewise.
65445         * modules/chdir-safer (Makefile.am): Likewise.
65446         * modules/check-version (Makefile.am): Likewise.
65447         * modules/chown (Makefile.am): Likewise.
65448         * modules/cloexec (Makefile.am): Likewise.
65449         * modules/close-stream (Makefile.am): Likewise.
65450         * modules/closeout (Makefile.am): Likewise.
65451         * modules/crc (Makefile.am): Likewise.
65452         * modules/csharpexec (Makefile.am): Likewise.
65453         * modules/cycle-check (Makefile.am): Likewise.
65454         * modules/des (Makefile.am): Likewise.
65455         * modules/dev-ino (Makefile.am): Likewise.
65456         * modules/dirfd (Makefile.am): Likewise.
65457         * modules/dirname (Makefile.am): Likewise.
65458         * modules/dup2 (Makefile.am): Likewise.
65459         * modules/eealloc (Makefile.am): Likewise.
65460         * modules/error (Makefile.am): Likewise.
65461         * modules/euidaccess (Makefile.am): Likewise.
65462         * modules/exclude (Makefile.am): Likewise.
65463         * modules/exitfail (Makefile.am): Likewise.
65464         * modules/fcntl-safer (Makefile.am): Likewise.
65465         * modules/fcntl (Makefile.am): Likewise.
65466         * modules/file-type (Makefile.am): Likewise.
65467         * modules/fileblocks (Makefile.am): Likewise.
65468         * modules/filemode (Makefile.am): Likewise.
65469         * modules/filenamecat (Makefile.am): Likewise.
65470         * modules/fnmatch (Makefile.am): Likewise.
65471         * modules/fopen-safer (Makefile.am): Likewise.
65472         * modules/fpending (Makefile.am): Likewise.
65473         * modules/fprintftime (Makefile.am): Likewise.
65474         * modules/free (Makefile.am): Likewise.
65475         * modules/fsusage (Makefile.am): Likewise.
65476         * modules/ftruncate (Makefile.am): Likewise.
65477         * modules/fts (Makefile.am): Likewise.
65478         * modules/gc-arcfour (Makefile.am): Likewise.
65479         * modules/gc-des (Makefile.am): Likewise.
65480         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65481         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65482         * modules/gc-md4 (Makefile.am): Likewise.
65483         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65484         * modules/gc-sha1 (Makefile.am): Likewise.
65485         * modules/gc (Makefile.am): Likewise.
65486         * modules/getaddrinfo (Makefile.am): Likewise.
65487         * modules/getcwd (Makefile.am): Likewise.
65488         * modules/getdelim (Makefile.am): Likewise.
65489         * modules/getdomainname (Makefile.am): Likewise.
65490         * modules/getgroups (Makefile.am): Likewise.
65491         * modules/gethostname (Makefile.am): Likewise.
65492         * modules/gethrxtime (Makefile.am): Likewise.
65493         * modules/getline (Makefile.am): Likewise.
65494         * modules/getloadavg (Makefile.am): Likewise.
65495         * modules/getlogin_r (Makefile.am): Likewise.
65496         * modules/getndelim2 (Makefile.am): Likewise.
65497         * modules/getopt (Makefile.am): Likewise.
65498         * modules/getpagesize (Makefile.am): Likewise.
65499         * modules/getpass-gnu (Makefile.am): Likewise.
65500         * modules/getpass (Makefile.am): Likewise.
65501         * modules/getsubopt (Makefile.am): Likewise.
65502         * modules/gettime (Makefile.am): Likewise.
65503         * modules/gettimeofday (Makefile.am): Likewise.
65504         * modules/getugroups (Makefile.am): Likewise.
65505         * modules/getusershell (Makefile.am): Likewise.
65506         * modules/glob (Makefile.am): Likewise.
65507         * modules/group-member (Makefile.am): Likewise.
65508         * modules/hard-locale (Makefile.am): Likewise.
65509         * modules/hash (Makefile.am): Likewise.
65510         * modules/hmac-md5 (Makefile.am): Likewise.
65511         * modules/hmac-sha1 (Makefile.am): Likewise.
65512         * modules/human (Makefile.am): Likewise.
65513         * modules/idcache (Makefile.am): Likewise.
65514         * modules/imaxabs (Makefile.am): Likewise.
65515         * modules/imaxdiv (Makefile.am): Likewise.
65516         * modules/inet_ntop (Makefile.am): Likewise.
65517         * modules/inet_pton (Makefile.am): Likewise.
65518         * modules/intprops (Makefile.am): Likewise.
65519         * modules/inttostr (Makefile.am): Likewise.
65520         * modules/inttypes (Makefile.am): Likewise.
65521         * modules/isapipe (Makefile.am): Likewise.
65522         * modules/javaversion (Makefile.am): Likewise.
65523         * modules/lchmod (Makefile.am): Likewise.
65524         * modules/lchown (Makefile.am): Likewise.
65525         * modules/localcharset (Makefile.am): Likewise.
65526         * modules/long-options (Makefile.am): Likewise.
65527         * modules/lstat (Makefile.am): Likewise.
65528         * modules/malloc (Makefile.am): Likewise.
65529         * modules/mathl (Makefile.am): Likewise.
65530         * modules/mbchar (Makefile.am): Likewise.
65531         * modules/md2 (Makefile.am): Likewise.
65532         * modules/md4 (Makefile.am): Likewise.
65533         * modules/md5 (Makefile.am): Likewise.
65534         * modules/memcasecmp (Makefile.am): Likewise.
65535         * modules/memchr (Makefile.am): Likewise.
65536         * modules/memcmp (Makefile.am): Likewise.
65537         * modules/memcoll (Makefile.am): Likewise.
65538         * modules/memcpy (Makefile.am): Likewise.
65539         * modules/memmem (Makefile.am): Likewise.
65540         * modules/memmove (Makefile.am): Likewise.
65541         * modules/mempcpy (Makefile.am): Likewise.
65542         * modules/memrchr (Makefile.am): Likewise.
65543         * modules/memset (Makefile.am): Likewise.
65544         * modules/memxor (Makefile.am): Likewise.
65545         * modules/mkancesdirs (Makefile.am): Likewise.
65546         * modules/mkdir-p (Makefile.am): Likewise.
65547         * modules/mkdir (Makefile.am): Likewise.
65548         * modules/mkdtemp (Makefile.am): Likewise.
65549         * modules/mkstemp (Makefile.am): Likewise.
65550         * modules/mktime (Makefile.am): Likewise.
65551         * modules/modechange (Makefile.am): Likewise.
65552         * modules/mountlist (Makefile.am): Likewise.
65553         * modules/nanosleep (Makefile.am): Likewise.
65554         * modules/obstack (Makefile.am): Likewise.
65555         * modules/openat (Makefile.am): Likewise.
65556         * modules/pagealign_alloc (Makefile.am): Likewise.
65557         * modules/pathmax (Makefile.am): Likewise.
65558         * modules/physmem (Makefile.am): Likewise.
65559         * modules/poll (Makefile.am): Likewise.
65560         * modules/posixtm (Makefile.am): Likewise.
65561         * modules/posixver (Makefile.am): Likewise.
65562         * modules/putenv (Makefile.am): Likewise.
65563         * modules/quote (Makefile.am): Likewise.
65564         * modules/quotearg (Makefile.am): Likewise.
65565         * modules/raise (Makefile.am): Likewise.
65566         * modules/read-file (Makefile.am): Likewise.
65567         * modules/readline (Makefile.am): Likewise.
65568         * modules/readlink (Makefile.am): Likewise.
65569         * modules/readtokens (Makefile.am): Likewise.
65570         * modules/readutmp (Makefile.am): Likewise.
65571         * modules/realloc (Makefile.am): Likewise.
65572         * modules/regex (Makefile.am): Likewise.
65573         * modules/rename-dest-slash (Makefile.am): Likewise.
65574         * modules/rename (Makefile.am): Likewise.
65575         * modules/rijndael (Makefile.am): Likewise.
65576         * modules/rmdir (Makefile.am): Likewise.
65577         * modules/rpmatch (Makefile.am): Likewise.
65578         * modules/safe-read (Makefile.am): Likewise.
65579         * modules/safe-write (Makefile.am): Likewise.
65580         * modules/same-inode (Makefile.am): Likewise.
65581         * modules/same (Makefile.am): Likewise.
65582         * modules/save-cwd (Makefile.am): Likewise.
65583         * modules/savedir (Makefile.am): Likewise.
65584         * modules/setenv (Makefile.am): Likewise.
65585         * modules/settime (Makefile.am): Likewise.
65586         * modules/sha1 (Makefile.am): Likewise.
65587         * modules/sig2str (Makefile.am): Likewise.
65588         * modules/snprintf (Makefile.am): Likewise.
65589         * modules/stat-macros (Makefile.am): Likewise.
65590         * modules/stat-time (Makefile.am): Likewise.
65591         * modules/stdbool (Makefile.am): Likewise.
65592         * modules/stdint (Makefile.am): Likewise.
65593         * modules/stdlib-safer (Makefile.am): Likewise.
65594         * modules/stpcpy (Makefile.am): Likewise.
65595         * modules/stpncpy (Makefile.am): Likewise.
65596         * modules/strcase (Makefile.am): Likewise.
65597         * modules/strcasestr (Makefile.am): Likewise.
65598         * modules/strchrnul (Makefile.am): Likewise.
65599         * modules/strcspn (Makefile.am): Likewise.
65600         * modules/strdup (Makefile.am): Likewise.
65601         * modules/strerror (Makefile.am): Likewise.
65602         * modules/strftime (Makefile.am): Likewise.
65603         * modules/strndup (Makefile.am): Likewise.
65604         * modules/strnlen (Makefile.am): Likewise.
65605         * modules/strpbrk (Makefile.am): Likewise.
65606         * modules/strsep (Makefile.am): Likewise.
65607         * modules/strstr (Makefile.am): Likewise.
65608         * modules/strtod (Makefile.am): Likewise.
65609         * modules/strtoimax (Makefile.am): Likewise.
65610         * modules/strtok_r (Makefile.am): Likewise.
65611         * modules/strtol (Makefile.am): Likewise.
65612         * modules/strtoll (Makefile.am): Likewise.
65613         * modules/strtoul (Makefile.am): Likewise.
65614         * modules/strtoull (Makefile.am): Likewise.
65615         * modules/strtoumax (Makefile.am): Likewise.
65616         * modules/strverscmp (Makefile.am): Likewise.
65617         * modules/sys_socket (Makefile.am): Likewise.
65618         * modules/sys_stat (Makefile.am): Likewise.
65619         * modules/sysexits (Makefile.am): Likewise.
65620         * modules/time_r (Makefile.am): Likewise.
65621         * modules/timegm (Makefile.am): Likewise.
65622         * modules/timespec (Makefile.am): Likewise.
65623         * modules/tmpfile-safer (Makefile.am): Likewise.
65624         * modules/trim (Makefile.am): Likewise.
65625         * modules/unistd-safer (Makefile.am): Likewise.
65626         * modules/unlinkdir (Makefile.am): Likewise.
65627         * modules/unlocked-io (Makefile.am): Likewise.
65628         * modules/userspec (Makefile.am): Likewise.
65629         * modules/utime (Makefile.am): Likewise.
65630         * modules/utimecmp (Makefile.am): Likewise.
65631         * modules/utimens (Makefile.am): Likewise.
65632         * modules/vasnprintf (Makefile.am): Likewise.
65633         * modules/vasprintf (Makefile.am): Likewise.
65634         * modules/vsnprintf (Makefile.am): Likewise.
65635         * modules/xalloc (Makefile.am): Likewise.
65636         * modules/xgetcwd (Makefile.am): Likewise.
65637         * modules/xnanosleep (Makefile.am): Likewise.
65638         * modules/xreadlink (Makefile.am): Likewise.
65639         * modules/xstrtod (Makefile.am): Likewise.
65640         * modules/xstrtol (Makefile.am): Likewise.
65641         * modules/xstrtold (Makefile.am): Likewise.
65642         * modules/yesno (Makefile.am): Likewise.
65643         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65644
65645 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * modules/error (Makefile.am): Distribute files through
65648         EXTRA_DIST, not lib_SOURCES.
65649
65650 2006-10-12  Eric Blake  <ebb9@byu.net>
65651
65652         * modules/error (Makefile.am): Distribute files in /lib.
65653         * modules/obstack (Makefile.am): Likewise.
65654
65655 2006-10-12  Bruno Haible  <bruno@clisp.org>
65656
65657         * modules/acl (Makefile.am): Distribute all files in lib/ through
65658         EXTRA_DIST.
65659         * modules/arcfour (Makefile.am): Likewise.
65660         * modules/arctwo (Makefile.am): Likewise.
65661         * modules/argmatch (Makefile.am): Likewise.
65662         * modules/argz (Makefile.am): Likewise.
65663         * modules/atexit (Makefile.am): Likewise.
65664         * modules/backupfile (Makefile.am): Likewise.
65665         * modules/c-strtod (Makefile.am): Likewise.
65666         * modules/c-strtold (Makefile.am): Likewise.
65667         * modules/calloc (Makefile.am): Likewise.
65668         * modules/canon-host (Makefile.am): Likewise.
65669         * modules/canonicalize (Makefile.am): Likewise.
65670         * modules/chdir-long (Makefile.am): Likewise.
65671         * modules/chdir-safer (Makefile.am): Likewise.
65672         * modules/check-version (Makefile.am): Likewise.
65673         * modules/chown (Makefile.am): Likewise.
65674         * modules/cloexec (Makefile.am): Likewise.
65675         * modules/close-stream (Makefile.am): Likewise.
65676         * modules/closeout (Makefile.am): Likewise.
65677         * modules/crc (Makefile.am): Likewise.
65678         * modules/cycle-check (Makefile.am): Likewise.
65679         * modules/des (Makefile.am): Likewise.
65680         * modules/dirfd (Makefile.am): Likewise.
65681         * modules/dirname (Makefile.am): Likewise.
65682         * modules/dup2 (Makefile.am): Likewise.
65683         * modules/euidaccess (Makefile.am): Likewise.
65684         * modules/exclude (Makefile.am): Likewise.
65685         * modules/exitfail (Makefile.am): Likewise.
65686         * modules/fcntl-safer (Makefile.am): Likewise.
65687         * modules/file-type (Makefile.am): Likewise.
65688         * modules/fileblocks (Makefile.am): Likewise.
65689         * modules/filemode (Makefile.am): Likewise.
65690         * modules/filenamecat (Makefile.am): Likewise.
65691         * modules/fnmatch (Makefile.am): Likewise.
65692         * modules/fopen-safer (Makefile.am): Likewise.
65693         * modules/fpending (Makefile.am): Likewise.
65694         * modules/fprintftime (Makefile.am): Likewise.
65695         * modules/free (Makefile.am): Likewise.
65696         * modules/fsusage (Makefile.am): Likewise.
65697         * modules/ftruncate (Makefile.am): Likewise.
65698         * modules/fts (Makefile.am): Likewise.
65699         * modules/gc (Makefile.am): Likewise.
65700         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65701         * modules/getaddrinfo (Makefile.am): Likewise.
65702         * modules/getcwd (Makefile.am): Likewise.
65703         * modules/getdelim (Makefile.am): Likewise.
65704         * modules/getdomainname (Makefile.am): Likewise.
65705         * modules/getgroups (Makefile.am): Likewise.
65706         * modules/gethostname (Makefile.am): Likewise.
65707         * modules/gethrxtime (Makefile.am): Likewise.
65708         * modules/getline (Makefile.am): Likewise.
65709         * modules/getloadavg (Makefile.am): Likewise.
65710         * modules/getlogin_r (Makefile.am): Likewise.
65711         * modules/getopt (Makefile.am): Likewise.
65712         * modules/getpass (Makefile.am): Likewise.
65713         * modules/getpass-gnu (Makefile.am): Likewise.
65714         * modules/getsubopt (Makefile.am): Likewise.
65715         * modules/gettime (Makefile.am): Likewise.
65716         * modules/gettimeofday (Makefile.am): Likewise.
65717         * modules/getugroups (Makefile.am): Likewise.
65718         * modules/getusershell (Makefile.am): Likewise.
65719         * modules/glob (Makefile.am): Likewise.
65720         * modules/group-member (Makefile.am): Likewise.
65721         * modules/hard-locale (Makefile.am): Likewise.
65722         * modules/hash (Makefile.am): Likewise.
65723         * modules/hmac-md5 (Makefile.am): Likewise.
65724         * modules/hmac-sha1 (Makefile.am): Likewise.
65725         * modules/human (Makefile.am): Likewise.
65726         * modules/idcache (Makefile.am): Likewise.
65727         * modules/imaxabs (Makefile.am): Likewise.
65728         * modules/imaxdiv (Makefile.am): Likewise.
65729         * modules/inet_ntop (Makefile.am): Likewise.
65730         * modules/inet_pton (Makefile.am): Likewise.
65731         * modules/inttostr (Makefile.am): Likewise.
65732         * modules/isapipe (Makefile.am): Likewise.
65733         * modules/lchown (Makefile.am): Likewise.
65734         * modules/long-options (Makefile.am): Likewise.
65735         * modules/lstat (Makefile.am): Likewise.
65736         * modules/malloc (Makefile.am): Likewise.
65737         * modules/mathl (Makefile.am): Likewise.
65738         * modules/mbchar (Makefile.am): Likewise.
65739         * modules/md2 (Makefile.am): Likewise.
65740         * modules/md4 (Makefile.am): Likewise.
65741         * modules/md5 (Makefile.am): Likewise.
65742         * modules/memcasecmp (Makefile.am): Likewise.
65743         * modules/memchr (Makefile.am): Likewise.
65744         * modules/memcmp (Makefile.am): Likewise.
65745         * modules/memcoll (Makefile.am): Likewise.
65746         * modules/memcpy (Makefile.am): Likewise.
65747         * modules/memmem (Makefile.am): Likewise.
65748         * modules/memmove (Makefile.am): Likewise.
65749         * modules/mempcpy (Makefile.am): Likewise.
65750         * modules/memrchr (Makefile.am): Likewise.
65751         * modules/memset (Makefile.am): Likewise.
65752         * modules/memxor (Makefile.am): Likewise.
65753         * modules/mkancesdirs (Makefile.am): Likewise.
65754         * modules/mkdir (Makefile.am): Likewise.
65755         * modules/mkdir-p (Makefile.am): Likewise.
65756         * modules/mkdtemp (Makefile.am): Likewise.
65757         * modules/mkstemp (Makefile.am): Likewise.
65758         * modules/mktime (Makefile.am): Likewise.
65759         * modules/modechange (Makefile.am): Likewise.
65760         * modules/mountlist (Makefile.am): Likewise.
65761         * modules/nanosleep (Makefile.am): Likewise.
65762         * modules/openat (Makefile.am): Likewise.
65763         * modules/pagealign_alloc (Makefile.am): Likewise.
65764         * modules/physmem (Makefile.am): Likewise.
65765         * modules/poll (Makefile.am): Likewise.
65766         * modules/posixtm (Makefile.am): Likewise.
65767         * modules/posixver (Makefile.am): Likewise.
65768         * modules/putenv (Makefile.am): Likewise.
65769         * modules/quote (Makefile.am): Likewise.
65770         * modules/quotearg (Makefile.am): Likewise.
65771         * modules/raise (Makefile.am): Likewise.
65772         * modules/read-file (Makefile.am): Likewise.
65773         * modules/readline (Makefile.am): Likewise.
65774         * modules/readlink (Makefile.am): Likewise.
65775         * modules/readtokens (Makefile.am): Likewise.
65776         * modules/readutmp (Makefile.am): Likewise.
65777         * modules/realloc (Makefile.am): Likewise.
65778         * modules/regex (Makefile.am): Likewise.
65779         * modules/rename (Makefile.am): Likewise.
65780         * modules/rename-dest-slash (Makefile.am): Likewise.
65781         * modules/rijndael (Makefile.am): Likewise.
65782         * modules/rmdir (Makefile.am): Likewise.
65783         * modules/rpmatch (Makefile.am): Likewise.
65784         * modules/safe-read (Makefile.am): Likewise.
65785         * modules/safe-write (Makefile.am): Likewise.
65786         * modules/same (Makefile.am): Likewise.
65787         * modules/save-cwd (Makefile.am): Likewise.
65788         * modules/savedir (Makefile.am): Likewise.
65789         * modules/setenv (Makefile.am): Likewise.
65790         * modules/settime (Makefile.am): Likewise.
65791         * modules/sha1 (Makefile.am): Likewise.
65792         * modules/sig2str (Makefile.am): Likewise.
65793         * modules/snprintf (Makefile.am): Likewise.
65794         * modules/stdlib-safer (Makefile.am): Likewise.
65795         * modules/stpcpy (Makefile.am): Likewise.
65796         * modules/stpncpy (Makefile.am): Likewise.
65797         * modules/strcase (Makefile.am): Likewise.
65798         * modules/strcasestr (Makefile.am): Likewise.
65799         * modules/strchrnul (Makefile.am): Likewise.
65800         * modules/strcspn (Makefile.am): Likewise.
65801         * modules/strdup (Makefile.am): Likewise.
65802         * modules/strerror (Makefile.am): Likewise.
65803         * modules/strftime (Makefile.am): Likewise.
65804         * modules/strndup (Makefile.am): Likewise.
65805         * modules/strnlen (Makefile.am): Likewise.
65806         * modules/strpbrk (Makefile.am): Likewise.
65807         * modules/strsep (Makefile.am): Likewise.
65808         * modules/strstr (Makefile.am): Likewise.
65809         * modules/strtod (Makefile.am): Likewise.
65810         * modules/strtoimax (Makefile.am): Likewise.
65811         * modules/strtok_r (Makefile.am): Likewise.
65812         * modules/strtol (Makefile.am): Likewise.
65813         * modules/strtoll (Makefile.am): Likewise.
65814         * modules/strtoul (Makefile.am): Likewise.
65815         * modules/strtoull (Makefile.am): Likewise.
65816         * modules/strtoumax (Makefile.am): Likewise.
65817         * modules/strverscmp (Makefile.am): Likewise.
65818         * modules/time_r (Makefile.am): Likewise.
65819         * modules/timegm (Makefile.am): Likewise.
65820         * modules/tmpfile-safer (Makefile.am): Likewise.
65821         * modules/unistd-safer (Makefile.am): Likewise.
65822         * modules/unlinkdir (Makefile.am): Likewise.
65823         * modules/userspec (Makefile.am): Likewise.
65824         * modules/utime (Makefile.am): Likewise.
65825         * modules/utimecmp (Makefile.am): Likewise.
65826         * modules/utimens (Makefile.am): Likewise.
65827         * modules/vasnprintf (Makefile.am): Likewise.
65828         * modules/vasprintf (Makefile.am): Likewise.
65829         * modules/vsnprintf (Makefile.am): Likewise.
65830         * modules/xalloc (Makefile.am): Likewise.
65831         * modules/xgetcwd (Makefile.am): Likewise.
65832         * modules/xnanosleep (Makefile.am): Likewise.
65833         * modules/xreadlink (Makefile.am): Likewise.
65834         * modules/xstrtod (Makefile.am): Likewise.
65835         * modules/xstrtol (Makefile.am): Likewise.
65836         * modules/xstrtold (Makefile.am): Likewise.
65837         * modules/yesno (Makefile.am): Likewise.
65838
65839 2006-10-12  Jim Meyering  <jim@meyering.net>
65840
65841         * m4/getloadavg.m4: Revert the change below.
65842
65843         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65844         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65845         fail with a symlink, which is what coreutils' ./bootstrap now
65846         creates by default.
65847
65848 2006-10-12  Bruno Haible  <bruno@clisp.org>
65849
65850         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65851         mingw.
65852         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65853         MSVC and mingw explicitly.
65854
65855 2006-10-11  Simon Josefsson  <jas@extundo.com>
65856             Bruno Haible  <bruno@clisp.org>
65857
65858         Add support for multiple gnulib-tool invocations in the scope of a
65859         single configure.ac file.
65860         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65861         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65862         with the same contents as the _LIBADD variable.
65863         (func_emit_initmacro_start, func_emit_initmacro_end,
65864         func_emit_initmacro_done): New functions.
65865         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65866         gl_LIBOBJS and gl_LTLIBOBJS.
65867
65868 2006-10-11  Bruno Haible  <bruno@clisp.org>
65869
65870         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65871         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65872         autoreconf. Instead, invoke autopoint explicitly but move back the
65873         *.m4 files from gnulib.
65874
65875 2006-10-11  Bruno Haible  <bruno@clisp.org>
65876
65877         * gnulib-tool (func_usage): Make module names after --create-testdir
65878         optional.
65879         (func_create_testdir): If no module was specified, use nearly all
65880         modules.
65881
65882 2006-10-12  Jim Meyering  <jim@meyering.net>
65883
65884         Big performance improvement for fts-based tools that use FTS_NOSTAT.
65885         Avoid spurious inode-mismatch problems on non-POSIX file systems.
65886         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
65887         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
65888         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
65889         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
65890         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
65891         (fts_set_stat_required): New function.
65892         (fts_open): Defer the calls to fts_stat, if possible or requested.
65893         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
65894         into fts_stat itself.
65895         (fts_read): Perform any required (deferred) fts_stat call.
65896         (fts_build): Likewise, for the directory we're about to open and read.
65897         In the readdir loop, carefully decide whether each entry will require
65898         an eventual call to fts_stat, using dirent.d_type info if available.
65899         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
65900         a command line argument into this function.  Update all callers.
65901         Map a return value of FTS_DOT to FTS_D for a command line argument.
65902         * modules/fts (Depends-on): Add d-type.  Alphabetize.
65903         Thanks to Miklos Szeredi for his tenacity and for the initial
65904         bug report about "find" failing on a FUSE-based file system.
65905
65906         * lib/fts.c (fts_open): Use consistent indentation.
65907
65908 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65909
65910         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
65911         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65912         reported by Jim Meyering.  All uses of cache variables renamed
65913         to match Autoconf's.
65914         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65915         the other one.
65916
65917         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65918         Fix misspelling in diagnostic.
65919
65920 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65923         defined.  Problem reported by Matthew Woehlke.
65924
65925         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65926         Add support for Tandem NonStop R series.
65927         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65928         Use new macro.
65929
65930         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65931         (has_trailing_slash): Omit size arg; all callers changed.
65932         Omit 'inline', since it doesn't help performance and we'd
65933         need to configure it.
65934         Don't count //, ///, etc. as having a trailing slash.
65935         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65936         (rpl_rename_dest_slash): On failure, use rename's errno rather
65937         than (in some cases) an incorrect or junk errno.
65938         Simplify code by removing need to compute length; this does
65939         cause it to make two passes instead of one over the file name,
65940         but it's worth it.
65941
65942         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65943         change, since Autoconf's version may no longer be appropriate now
65944         that we are using CVS Autoconf's version.  Add support for Tandem.
65945
65946 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65947             Bruno Haible  <bruno@clisp.org>
65948
65949         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65950         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65951         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65952         gl_AC_TYPE_LONG_LONG.
65953
65954         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65955         instead of HAVE_LONG_LONG.
65956         * lib/printf-args.c (printf_fetchargs): Likewise.
65957         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65958         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65959         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65960         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65961         gl_AC_TYPE_LONG_LONG.
65962
65963 2006-10-11  Bruno Haible  <bruno@clisp.org>
65964
65965         * m4/longlong.m4: Add comments.
65966         * m4/ulonglong.m4: Likewise.
65967
65968 2006-10-10  Bruno Haible  <bruno@clisp.org>
65969
65970         Make it possible to #define stpcpy, strdup to aliases.
65971         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65972         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65973
65974 2006-10-10  Bruno Haible  <bruno@clisp.org>
65975
65976         Make it possible to #define gcd to an alias.
65977         * lib/gcd.c: Include config.h.
65978
65979 2006-10-10  Bruno Haible  <bruno@clisp.org>
65980
65981         Make it possible to #define c_isascii to an alias.
65982         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65983         defined. Undefine the macros before defining them, to avoid gcc
65984         warnings.
65985         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65986         define NO_C_CTYPE_MACROS early.
65987
65988 2006-10-10  Bruno Haible  <bruno@clisp.org>
65989
65990         Make it possible to #define set_program_name to an alias.
65991         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65992         ENABLE_RELOCATABLE early.
65993
65994 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65995
65996         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65997         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65998         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65999         More generally, don't assume that 64-bit signed int is available
66000         if unsigned int is, and vice versa.
66001         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66002         unsigned symbols, not on their signed counterparts.
66003         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66004         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66005         (UINT64_C, UINTMAX_C):
66006         Likewise.
66007         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66008         unsigned counterparts.
66009         (Have_long_long, Unsigned): New macros.
66010         (Int): Renamed from INT.
66011         (strtoimax): Use the new macros.
66012         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66013         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66014         * modules/inttypes (inttypes.h): Substitute
66015         HAVE_UNSIGNED_LONG_LONG_INT.
66016         * modules/stdint (stdint.h): Likewise.
66017         (Files): Add m4/ulonglong.m4.
66018
66019 2006-10-10  Bruno Haible  <bruno@clisp.org>
66020
66021         Fix a gcc -Wshadow warning.
66022         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66023         to 'bucket'.
66024         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66025         gl_linked_indexof_from_to): Likewise.
66026         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66027         Likewise.
66028         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66029         Likewise.
66030         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66031         Reported by Eric Blake.
66032
66033 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66036         for NetBSD.  Problem reported by Bruno Haible.
66037
66038 2006-10-09  Jim Meyering  <jim@meyering.net>
66039
66040         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66041         Patch from Bruno Haible.
66042
66043 2006-10-09  Jim Meyering  <jim@meyering.net>
66044
66045         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66046         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66047         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66048
66049 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66050
66051         Don't include <config.h> twice; this doesn't work in some cases,
66052         e.g., when config.h has "#define intmax_t long long int" and
66053         we include <config.h>, <inttypes.h>, <config.h> in that order.
66054         Problem reported by Matthew Woehlke in:
66055         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66056         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66057         * lib/fts-cycle.c: Don't include config.h.
66058         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66059         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66060         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66061         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66062         inttypes.h.
66063         * lib/xstrtoumax.c: Likewise.
66064         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66065         __strtol and the like, so that this module is more like its siblings.
66066         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66067         Remove; no longer needed now that we assume gnulib inttypes.h.
66068
66069 2006-10-08  Bruno Haible  <bruno@clisp.org>
66070
66071         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66072         option.
66073
66074 2006-10-07  Jim Meyering  <jim@meyering.net>
66075
66076         * modules/inttypes (inttypes.h): Revert what seems to have been
66077         an inadvertent part of today's change: use "|", not "/" in the
66078         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66079
66080 2006-10-07  Bruno Haible  <bruno@clisp.org>
66081
66082         * modules/sublist: New file.
66083
66084 2006-10-07  Bruno Haible  <bruno@clisp.org>
66085
66086         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66087         * modules/argz (argz.h): Likewise.
66088         * modules/arpa_inet (arpa/inet.h): Likewise.
66089         * modules/byteswap (byteswap.h): Likewise.
66090         * modules/configmake (configmake.h): Likewise.
66091         * modules/fcntl (fcntl.h): Likewise.
66092         * modules/fnmatch (fnmatch.h): Likewise.
66093         * modules/getopt (getopt.h): Likewise.
66094         * modules/glob (glob.h): Likewise.
66095         * modules/inttypes (inttypes.h): Likewise.
66096         * modules/netinet_in (netinet/in.h): Likewise.
66097         * modules/poll (poll.h): Likewise.
66098         * modules/stdbool (stdbool.h): Likewise.
66099         * modules/stdint (stdint.h): Likewise.
66100         * modules/sys_select (sys/select.h): Likewise.
66101         * modules/sys_socket (sys/socket.h): Likewise.
66102         * modules/sys_stat (sys/stat.h): Likewise.
66103         * modules/sysexits (sysexits.h): Likewise.
66104         * modules/unistd (unistd.h): Likewise.
66105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66106         Add a "DO NOT EDIT" comment to the generated file.
66107         (func_import): Likewise for gnulib-comp.m4.
66108
66109 2006-10-07  Bruno Haible  <bruno@clisp.org>
66110
66111         * lib/gl_sublist.h: New file.
66112         * lib/gl_sublist.c: New file.
66113
66114 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66117         name (relative to the original working directory) and the file
66118         name component (relative to the temporary working directory).  All
66119         callers changed.
66120         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66121         * lib/mkdir-p.c (make_dir_parents): Likewise.
66122         * lib/mkdir-p.h (make_dir_parents): Likewise.
66123
66124 2006-10-06  Eric Blake  <ebb9@byu.net>
66125
66126         Define several macros for use by the clean-temp module.
66127         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66128         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66129         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66130
66131         * lib/clean-temp.h (close_stream_temp): New declaration.
66132         * lib/clean-temp.c (includes): Pull in headers according to what
66133         other modules are in use.
66134         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66135
66136 2006-10-06  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66139         instead of fopen, fwriteerror.
66140
66141 2006-10-06  Bruno Haible  <bruno@clisp.org>
66142
66143         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66144         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66145         int.
66146         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66147         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66148         Return an error indicator.
66149         Suggested by Eric Blake.
66150
66151 2006-10-06  Bruno Haible  <bruno@clisp.org>
66152
66153         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66154         Reported by Eric Blake.
66155
66156 2006-10-06  Bruno Haible  <bruno@clisp.org>
66157
66158         * modules/closeout (Description): Mention stderr too.
66159
66160 2006-10-06  Bruno Haible  <bruno@clisp.org>
66161         and Paul Eggert  <eggert@cs.ucla.edu>
66162
66163         * lib/closeout.c (close_stdout): Also close stderr.
66164         * lib/closeout.h: Update comment.
66165
66166 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66167
66168         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66169         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66170         * lib/dirchownmod.c: Include lchown.h.
66171         * lib/lchown.c: Don't include files that lchown.h now includes.
66172         Don't declare chown, since lchown.h now does that.
66173         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66174         (lchown): Define to rpl_chown if lchown is declared but
66175         does not exist.  Declare using a prototype if lchown is not
66176         declared.  Add a copyright notice.
66177         * lib/mkstemp.h: Include <unistd.h>.
66178         * lib/openat.c: Include lchown.h.
66179
66180         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66181         we now test for that separately.
66182         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66183         rather than O_NOFOLLOW, when testing whether it's possible to
66184         avoid a race condition reliably.
66185         * lib/savewd.c (savewd_chdir): Likewise.
66186
66187         Remove macros that are no longer needed now that stdint.h is
66188         reliable.
66189         * lib/fsusage.c (UINTMAX_MAX): Remove.
66190         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66191         * lib/utimecmp.c (SIZE_MAX): Remove.
66192
66193         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66194
66195         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66196         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66197         O_NOATIME works.
66198
66199 2006-10-05  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/gl_list.h (gl_sortedlist_search_from_to,
66202         gl_sortedlist_indexof_from_to): New declarations.
66203         (gl_list_implementation): New fields sortedlist_search_from_to,
66204         sortedlist_indexof_from_to.
66205         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66206         inline functions.
66207         * lib/gl_list.c (gl_sortedlist_search_from_to,
66208         gl_sortedlist_indexof_from_to): New functions.
66209         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66210         function.
66211         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66212         (gl_array_sortedlist_search_from_to): New function.
66213         (gl_array_list_implementation): Update.
66214         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66215         function.
66216         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66217         (gl_carray_sortedlist_search_from_to): New function.
66218         (gl_carray_list_implementation): Update.
66219         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66220         gl_linked_sortedlist_indexof_from_to): New functions.
66221         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66222         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66223         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66224         gl_tree_sortedlist_indexof_from_to): New functions.
66225         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66226         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66227         Update.
66228         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66229         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66230         Update.
66231
66232 2006-10-05  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66235         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66236         (struct gl_list_implementation): Add fields search_from_to,
66237         indexof_from_to. Remove fields search, indexof.
66238         (gl_list_search): Use the search_from_to method.
66239         (gl_list_search_from, gl_list_search_from_to): New functions.
66240         (gl_list_indexof): Use the indexof_from_to method.
66241         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66242         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66243         (gl_list_search_from, gl_list_search_from_to): New functions.
66244         (gl_list_indexof): Use the indexof_from_to method.
66245         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66246         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66247         gl_array_indexof. Add start_index, end_index arguments.
66248         (gl_array_search_from_to): Renamed from gl_array_search. Add
66249         start_index, end_index arguments.
66250         (gl_array_remove, gl_array_list_implementation): Update.
66251         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66252         gl_carray_indexof. Add start_index, end_index arguments.
66253         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66254         start_index, end_index arguments.
66255         (gl_carray_remove, gl_carray_list_implementation): Update.
66256         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66257         gl_linked_search. Add start_index, end_index arguments.
66258         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66259         start_index, end_index arguments.
66260         (gl_linked_remove): Update.
66261         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66262         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66263         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66264         field to 'size_t'.
66265         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66266         gl_tree_search. Add start_index, end_index arguments.
66267         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66268         start_index, end_index arguments.
66269         (gl_tree_remove): Update.
66270         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66271         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66272         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66273         function.
66274         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66275         gl_tree_search. Add start_index, end_index arguments.
66276         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66277         start_index, end_index arguments.
66278         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66279         Update.
66280         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66281
66282 2006-10-05  Bruno Haible  <bruno@clisp.org>
66283
66284         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66285
66286         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66287         fwriteerror_temp): New declarations.
66288         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66289         (descriptors): New variable.
66290         (cleanup): First, close the descriptors.
66291         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66292         fclose_temp, fwriteerror_temp): New functions.
66293
66294 2006-10-04  Jim Meyering  <jim@meyering.net>
66295
66296         * lib/fts.c (fts_open): Tiny comment change.
66297
66298 2006-10-04  Bruno Haible  <bruno@clisp.org>
66299
66300         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66301         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66302         gl_LOCK_BODY.
66303         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66304         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66305         gl_LOCK_EARLY_BODY.
66306         (gl_LOCK): Require gl_LOCK_BODY.
66307
66308 2006-10-04  Bruno Haible  <bruno@clisp.org>
66309
66310         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66311         (gl_oset_search_atleast): New declaration.
66312         (struct gl_oset_implementation): Add field 'search_atleast'.
66313         (gl_oset_search_atleast): New inline function.
66314         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66315         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66316         (gl_array_oset_implementation): Update.
66317         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66318         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66319         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66320
66321 2006-10-04  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66324
66325 2006-10-03  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66328         from gl_avltreehash_list_implementation.
66329
66330 2006-10-03  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/gl_oset.c (gl_oset_add): Fix return type.
66333
66334 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66335
66336         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66337
66338 2006-10-02  Eric Blake  <ebb9@byu.net>
66339
66340         * modules/strnlen (Depends-on): Add extensions.
66341
66342 2006-10-02  Eric Blake  <ebb9@byu.net>
66343
66344         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66345         definition in 2.60+.
66346
66347 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66348
66349         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66350         checks.
66351
66352 2006-10-02  Bruno Haible  <bruno@clisp.org>
66353
66354         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66355         to the AUTOMAKE_OPTIONS.
66356         Reported by Jim Meyering.
66357
66358 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66359
66360         Work around bug in Solaris 10 /proc file system:
66361         /proc/self/fd/NNN/.. isn't the parent directory of
66362         the directory whose file descriptor is NNN.  This needs to
66363         be worked around at run time, not compile time, since a
66364         program might be built on Solaris 8, where things work, and
66365         run on Solaris 10.
66366         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66367         to use the following interface instead:
66368         (OPENAT_BUFFER_SIZE): New macro.
66369         (openat_proc_name): New function.
66370         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66371         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66372         Likewise.
66373         * lib/openat-proc.c: New file.
66374         * modules/openat (Files): Add lib/openat-proc.c.
66375         (Depends-on): Add same-inode, stdbool.
66376         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66377
66378 2006-09-29  Bruno Haible  <bruno@clisp.org>
66379
66380         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66381         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66382         argument. Set stdout_closed before testing for ferror, not after.
66383         (fwriteerror, fwriteerror_no_ebadf): New functions.
66384
66385 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66386
66387         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66388
66389 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66390
66391         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66392         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66393
66394 2006-09-28  Jim Meyering  <jim@meyering.net>
66395
66396         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66397         Include <unistd.h>.
66398
66399 2006-09-28  Bruno Haible  <bruno@clisp.org>
66400
66401         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66402         * modules/linkedhash-list (Depends-on): Likewise.
66403         * modules/rbtreehash-list (Depends-on): Likewise.
66404
66405 2006-09-28  Bruno Haible  <bruno@clisp.org>
66406
66407         * lib/strndup.h: Simplify the redefinition of strndup.
66408         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66409         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66410
66411 2006-09-28  Bruno Haible  <bruno@clisp.org>
66412
66413         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66414         * lib/gl_linkedhash_list.c: Likewise.
66415         * lib/gl_rbtreehash_list.c: Likewise.
66416
66417 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66420         getaddrinfo.
66421
66422         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66423         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66424         it causes <stdio_ext.h> to cause a compile-time error.
66425         Problem reported by Nelson H. F. Beebe.
66426         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66427         of HAVE_DECL___PENDING.
66428
66429         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66430         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66431         declaration.
66432
66433 2006-09-27  Jim Meyering  <jim@meyering.net>
66434
66435         This file could end up with a definition for a function
66436         named __strndup, rather than rpl_strndup on a system with
66437         incomplete weak_alias support.
66438         * lib/strndup.c (strndup): Rename from __strndup.
66439         Remove #defines that used to map __strndup to strndup.
66440         Don't use K&R prototypes.
66441         Remove LIBC-related code, since this file is not sync'd with glibc.
66442         * lib/strndup.h: Revamp, accordingly.
66443         * m4/strndup.m4: Modernize.
66444
66445 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * modules/savewd (Depends-on): Add 'raise'.
66448         * lib/savewd.c: Include <signal.h>, for 'raise'.
66449
66450 2006-09-26  Jim Meyering  <jim@meyering.net>
66451
66452         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66453         when we detect Darwin 8.7.0's acl_get_file bug.
66454         Rearrange to perform the new (below) run-test while $LIBS
66455         contains any acl-related library.  Set USE_ACL at the end.
66456         (gl_ACL_GET_FILE): New function.
66457
66458 2006-09-26  Eric Blake  <ebb9@byu.net>
66459
66460         * lib/verror.c: Include <config.h> unconditionally.
66461
66462 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         * modules/clock-time (Maintainer): Add self.
66465         * modules/getlogin_r (Depends-on): Add extensions.
66466
66467 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66468
66469         * modules/clock-time: New module.
66470         * modules/nanosleep (Depends-on): Add clock-time.
66471         * modules/gethrxtime (Depends-on): Likewise.
66472         * modules/gettime (Depends-on): Likewise.
66473         * modules/settime (Depends-on): Likewise.
66474
66475         * modules/fts-lgpl: Depend on openat.
66476         * modules/mkancesdirs: Depend on savewd.
66477         * modules/mkdir-p: Likewise.
66478
66479 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66480
66481         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66482
66483         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66484         `gl_have_arbitrary_file_name_length_limit' to
66485         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66486         actually works between configure runs.
66487
66488 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66489             Bruno Haible  <bruno@clisp.org>
66490
66491         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66492
66493 2006-09-25  Jim Meyering  <jim@meyering.net>
66494
66495         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66496         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66497
66498 2006-09-25  Eric Blake  <ebb9@byu.net>
66499
66500         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66501         exec's in 2006-09-18 patch when shuffling fds.
66502
66503 2006-09-25  Bruno Haible  <bruno@clisp.org>
66504
66505         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66506         Reported by Jim Meyering.
66507
66508 2006-09-24  Jim Meyering  <jim@meyering.net>
66509
66510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66511         compare a pointer against a literal "0".  That caused failures with
66512         at least HP-UX's hpcc.
66513
66514 2006-09-22  Simon Josefsson  <jas@extundo.com>
66515
66516         * modules/gc-sha1:
66517         * modules/gc-md4:
66518         * modules/gc-hmac-sha1:
66519         * modules/gc-hmac-md5:
66520         * modules/gc-des:
66521         * modules/gc-arcfour: Distribute more files.
66522
66523 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66524
66525         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66526         (gl_linked_iterator_from_to): Initialize struct completely.
66527         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66528         (gl_tree_iterator_from_to): Likewise
66529         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66530         * lib/gl_array_list.c [lint] (gl_array_iterator)
66531         (gl_array_iterator_from_to): Likewise.
66532         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66533         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66534         (gl_carray_iterator_from_to): Likewise.
66535
66536         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66537         * lib/md4.c (md4_process_block): Remove unused variable.
66538         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66539         parentheses for clarity.
66540
66541 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66542
66543         * modules/bison-i18n (Depends-on): Add gettext.
66544
66545 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66546
66547         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66548         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66549         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66550         also add missing comma that caused broken test.
66551         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66552         stdlib.h, for `abort'.
66553         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66554         variables.
66555         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66556         include unistd.h if present, for `rmdir'.
66557         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66558         variables.
66559         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66560         in the process include standard headers for prototypes.
66561         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66562         gets declared on GNU/Linux.
66563         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66564         unistd.h, for `rmdir'.
66565         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66566
66567         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66568         always true.
66569         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66570
66571         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66572
66573 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66574
66575         * gnulib-tool (func_version): Create output all at once.  This
66576         may help avoid triggering unnecessary SIGPIPEs, and at any
66577         rate it doesn't hurt.
66578
66579 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66580             Bruno Haible  <bruno@clisp.org>
66581
66582         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66583         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66584         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66585
66586         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66587         (gl_FUNC_VASPRINTF): Invoke it.
66588
66589 2006-09-22  Bruno Haible  <bruno@clisp.org>
66590
66591         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66592         getloadavg.c as first argument.
66593
66594 2006-09-22  Bruno Haible  <bruno@clisp.org>
66595
66596         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66597         at the beginning of the gl_INIT macro.
66598         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66599         gl_GETLOADAVG.
66600
66601 2006-09-22  Bruno Haible  <bruno@clisp.org>
66602
66603         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66604         module.
66605         Suggested by Ralf Wildenhues.
66606
66607 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66608
66609         Import this patch from libc:
66610
66611         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66612
66613         * lib/regex_internal.c (re_string_reconstruct): Handle
66614         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66615         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66616         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66617         re_string_context_at.
66618
66619         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66620         now requires it.
66621         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66622         gl_REGEX now does it for us.
66623         (gl_REGEX): Add test taken from
66624         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66625
66626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66627         Check that large offsets work.  Modernize Autoconf usages.
66628         Prefer "yes" to mean a good thing rather than a bad.
66629         Don't put "#define mkstemp" in config.h, as this might interfere
66630         with standard system headers that "#define mkstemp mkstemp64".
66631
66632         * modules/mkstemp (Depends-on): Add extensions, so that
66633         mkstemp is visible on some platforms.
66634         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66635         (Include): Change to "mkstemp.h" from <stdlib.h>.
66636         (Files): Add mkstemp.h.
66637
66638         * lib/mkstemp.h: New file, since some standard headers
66639         #define mkstemp.
66640         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66641         Include "mkstemp.h".
66642         Make the _LIBC code resemble glibc original more,
66643         e.g., use K&R style.
66644         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66645         (mkstemp): Remove, since mkstemp.h does this for us.
66646         * lib/stdlib--.h: Include mkstemp.h.
66647
66648         Import this patch from libc:
66649
66650         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66651
66652         * lib/tempname.c (__gen_tempname): Change attempts_min
66653         into a macro.  Use preprocessor to decide how to initialize
66654         attempts [Coverity CID 67].
66655
66656 2006-09-20  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/mkdtemp.c: Import from libc.
66659         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66660                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66661                 attempts_min into a macro.  Use preprocessor to decide how to
66662                 initialize attempts [Coverity CID 67].
66663         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66664                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66665                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66666
66667 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66668
66669         * gnulib-tool (func_exit): New function, to allow to pass the
66670         exit status portably through the trap.  Use everywhere.
66671         (--help, --version): Signal a write error.
66672         (trap): catch SIGPIPE, for write errors.
66673         Exit at the end of the trap, with the correct exit status.
66674
66675 2006-09-19  Karl Berry  <karl@gnu.org>
66676
66677         * doc/gnulib.texi: note about the license texinfo files.
66678
66679 2006-09-19  Eric Blake  <ebb9@byu.net>
66680
66681         * gnulib-tool: Avoid space-tab.
66682
66683 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66684
66685         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66686         that prevented coreutils 6.1 from building.  Problem reported
66687         by Petter Reinholdtsen.
66688
66689 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66690
66691         * gnulib-tool (avoidlist): Fix typo that broke options like
66692         --avoid=lock that are used by coreutils bootstrap.
66693
66694 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66695
66696         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66697         more systematically.
66698
66699 2006-09-18  Jim Meyering  <jim@meyering.net>
66700
66701         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66702
66703 2006-09-18  Bruno Haible  <bruno@clisp.org>
66704
66705         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66706
66707 2006-09-18  Bruno Haible  <bruno@clisp.org>
66708
66709         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66710         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66711         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66712         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66713         * m4/gettext.m4: Require autoconf >= 2.52.
66714         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66715         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66716         of gl_cv_header_inttypes_h.
66717
66718 2006-09-18  Bruno Haible  <bruno@clisp.org>
66719
66720         * lib/javaversion.c: Include configmake.h.
66721
66722 2006-09-18  Bruno Haible  <bruno@clisp.org>
66723
66724         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66725         avoid that the while loops be executed in a subshell.
66726
66727 2006-09-18  Bruno Haible  <bruno@clisp.org>
66728
66729         * MODULES.html.sh (func_module): Break long lines.
66730         Suggested by Bruce Korb <bkorb@gnu.org>.
66731
66732 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66733
66734         Speed up by a factor of 1.12.
66735         * gnulib-tool (nl): New variable.
66736         (func_import): Rewrite include directive extraction to only read each
66737         directive once.
66738
66739 2006-09-17  Bruno Haible  <bruno@clisp.org>
66740
66741         * modules/javaversion (Makefile.am): Remove DEFS setting.
66742         (Depends-on): Add configmake, for PKGDATADIR definition.
66743
66744 2006-09-17  Bruno Haible  <bruno@clisp.org>
66745
66746         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66747
66748 2006-09-17  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66751         (func_modules_transitive_closure, func_modules_add_dummy,
66752         func_modules_to_filelist, func_import, func_create_testdir,
66753         func_create_megatestdir, ...): Use it wherever possible.
66754         Suggested by Ralf Wildenhues.
66755
66756 2006-09-16  Karl Berry  <karl@gnu.org>
66757
66758         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66759         to avoid sectioning errors.
66760         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66761         [ifinfo]: blank line after @center-ed titles.
66762         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66763         Spell FSF address consistently with others.
66764         (These changes approved by rms.)
66765
66766 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66767
66768         Speed up by a factor of 1.61.
66769         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66770         already checked module names again.
66771
66772 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66773
66774         Speed up by a factor of 1.13.
66775         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66776         for new_files, and the input to func_add_or_update.
66777
66778 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66779
66780         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66781         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66782
66783 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         * modules/mkancesdirs (Depends-on): Add fcntl.
66786         * modules/savewd: New file.
66787         * MODULES.html.sh (File system functions): Add savewd.
66788
66789         * modules/configmake (Makefile.am): Add support for the
66790         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66791
66792 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * m4/savewd.m4: New file.
66795
66796 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66797
66798         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66799         (dirchownmod): New arg FD.  All callers changed.
66800         Use FD rather than opening the directory ourself, as opening is
66801         now the caller's responsibility.
66802         * lib/dirchownmod.h: Likewise.
66803         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66804         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66805         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66806         (test_dir): Remove.
66807         (mkancesdirs): Return length of prefix of FILE that has already
66808         been made, or -2 if there is a child doing the work.  Redo
66809         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66810         ".", and treat ".." specially since it might stray back into
66811         already-created areas.  Use a subprocess if necessary.  New arg
66812         WD; all users changed.  MAKE_DIR function should now return 1
66813         if it creates a directory that is not readable.  Return -2 if
66814         a child process is spun off.
66815         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66816         Adjust signature to match code.
66817         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66818         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66819         all users changed.
66820         * lib/savewd.c, lib/savewd.h: New files.
66821
66822 2006-09-15  Jim Meyering  <jim@meyering.net>
66823
66824         * modules/rename-dest-slash: New module.
66825         * MODULES.html.sh (posix_compat): Add it here.
66826
66827         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66828
66829 2006-09-15  Jim Meyering  <jim@meyering.net>
66830
66831         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66832         file.
66833
66834         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66835
66836 2006-09-15  Jim Meyering  <jim@meyering.net>
66837
66838         * lib/rename-dest-slash.c (has_trailing_slash): Use
66839         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66840         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66841         test before testing whether SRC is a directory.
66842         Suggestions from Bruno Haible.
66843
66844         Avoid a warning about an unused variable.
66845         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66846         into the #ifdef block where it's used.
66847
66848         * lib/rename-dest-slash.c: New file.
66849
66850 2006-09-14  Bruno Haible  <bruno@clisp.org>
66851
66852         * lib/allocsa.c: Include <config.h> unconditionally.
66853         * lib/asnprintf.c: Likewise.
66854         * lib/asprintf.c: Likewise.
66855         * lib/c-strcasecmp.c: Likewise.
66856         * lib/c-strcasestr.c: Likewise.
66857         * lib/c-strncasecmp.c: Likewise.
66858         * lib/c-strstr.c: Likewise.
66859         * lib/classpath.c: Likewise.
66860         * lib/clean-temp.c: Likewise.
66861         * lib/concatpath.c: Likewise.
66862         * lib/copy-file.c: Likewise.
66863         * lib/csharpcomp.c: Likewise.
66864         * lib/csharpexec.c: Likewise.
66865         * lib/execute.c: Likewise.
66866         * lib/fatal-signal.c: Likewise.
66867         * lib/findprog.c: Likewise.
66868         * lib/fwriteerror.c: Likewise.
66869         * lib/gl_array_list.c: Likewise.
66870         * lib/gl_array_oset.c: Likewise.
66871         * lib/gl_avltree_list.c: Likewise.
66872         * lib/gl_avltree_oset.c: Likewise.
66873         * lib/gl_avltreehash_list.c: Likewise.
66874         * lib/gl_carray_list.c: Likewise.
66875         * lib/gl_linked_list.c: Likewise.
66876         * lib/gl_linkedhash_list.c: Likewise.
66877         * lib/gl_list.c: Likewise.
66878         * lib/gl_oset.c: Likewise.
66879         * lib/gl_rbtree_list.c: Likewise.
66880         * lib/gl_rbtree_oset.c: Likewise.
66881         * lib/gl_rbtreehash_list.c: Likewise.
66882         * lib/imaxabs.c: Likewise.
66883         * lib/imaxdiv.c: Likewise.
66884         * lib/javacomp.c: Likewise.
66885         * lib/javaexec.c: Likewise.
66886         * lib/javaversion.c: Likewise.
66887         * lib/linebreak.c: Likewise.
66888         * lib/localcharset.c: Likewise.
66889         * lib/lock.c: Likewise.
66890         * lib/mbchar.c: Likewise.
66891         * lib/mbswidth.c: Likewise.
66892         * lib/mkdtemp.c: Likewise.
66893         * lib/pipe.c: Likewise.
66894         * lib/printf-args.c: Likewise.
66895         * lib/printf-parse.c: Likewise.
66896         * lib/progname.c: Likewise.
66897         * lib/progreloc.c: Likewise.
66898         * lib/readlink.c: Likewise.
66899         * lib/sh-quote.c: Likewise.
66900         * lib/stpcpy.c: Likewise.
66901         * lib/stpncpy.c: Likewise.
66902         * lib/strcasecmp.c: Likewise.
66903         * lib/strcasestr.c: Likewise.
66904         * lib/strcspn.c: Likewise.
66905         * lib/striconv.c: Likewise.
66906         * lib/strncasecmp.c: Likewise.
66907         * lib/strnlen1.c: Likewise.
66908         * lib/strstr.c: Likewise.
66909         * lib/strtok_r.c: Likewise.
66910         * lib/tls.c: Likewise.
66911         * lib/tmpdir.c: Likewise.
66912         * lib/unicodeio.c: Likewise.
66913         * lib/unsetenv.c: Likewise.
66914         * lib/vasnprintf.c: Likewise.
66915         * lib/vasprintf.c: Likewise.
66916         * lib/wait-process.c: Likewise.
66917         * lib/xallocsa.c: Likewise.
66918         * lib/xsetenv.c: Likewise.
66919         * lib/xstriconv.c: Likewise.
66920
66921 2006-09-13  Simon Josefsson  <jas@extundo.com>
66922
66923         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66924         that internally, suggested by Ralf Wildenhues
66925         <Ralf.Wildenhues@gmx.de>.
66926
66927 2006-09-13  Simon Josefsson  <jas@extundo.com>
66928
66929         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66930         @LIBOBJS@.
66931         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66932
66933 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66934
66935         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66936         longer worry about uses that don't define HAVE_CONFIG_H.
66937         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66938         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66939         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66940         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66941         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66942         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66943         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66944         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66945         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66946         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66947         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66948         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66949         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66950         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66951         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66952         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66953         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66954         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66955         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66956         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66957         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66958         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66959         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66960         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66961         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66962         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66963         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66964         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66965         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66966         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66967         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66968         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66969         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66970         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66971         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66972         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66973         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66974         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66975         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66976         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66977         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66978         Likewise.
66979
66980 2006-09-13  Eric Blake  <ebb9@byu.net>
66981
66982         * lib/getopt.c: Fix typo in last commit.
66983
66984 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66985
66986         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66987         dgettext.
66988
66989 2006-09-12  Jim Meyering  <jim@meyering.net>
66990
66991         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66992         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66993         Reported by Nelson H. F. Beebe.
66994
66995 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66996
66997         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66998         program_invocation_name and program_invocation_short_name are
66999         initialized.
67000         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67001         and program_invocation_short_name to argp.h, so they are visible
67002         to user programs.
67003         * lib/argp.h: Likewise
67004
67005 2006-09-10  Bruno Haible  <bruno@clisp.org>
67006
67007         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67008         m4/inttypes_h.m4, m4/uintmax_t.m4.
67009
67010 2006-09-10  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67013         gl_AC_TYPE_UINTMAX_T.
67014
67015 2006-09-10  Bruno Haible  <bruno@clisp.org>
67016
67017         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67018
67019 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67020
67021         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67022         convention.  Text proposed by Bruno Haible.
67023         (struct argp_option): Document the use of N_() wrappers.
67024
67025         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67026         '\v', and translate the two parts separately, instead of feeding
67027         the whole string to gettext.  This allows to exclude
67028         '\v' from the strings visible to the translator by writing doc
67029         strings as N_("..") "\v" N_("..").
67030
67031 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67032
67033         * config/srclist.txt: Undo latest change; the bug was fixed.
67034
67035 2006-09-09  Bruno Haible  <bruno@clisp.org>
67036
67037         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67038         assignments if building a library without libtool.
67039         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67040         in func_emit_lib_Makefile_am.
67041         (func_import): When building a static library libfoo.a, arrange to
67042         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67043         (func_create_testdir): Likewise.
67044         * modules/gc (configure.ac, Makefile.am): If building statically,
67045         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67046         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67047         * modules/striconv (configure.ac, Makefile.am): Likewise.
67048         Based on a suggestion by Ralf Wildenhues.
67049
67050 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67053         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67054         Also:
67055
67056         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67057         Add year_2050_test to catch glibc bug 2821
67058         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67059
67060         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67061         Prefer #ifdef to #if.
67062
67063         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67064         Return from 'main' instead of calling 'exit'.
67065
67066 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67067
67068         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67069         returned the maximum time_t value rather than (time_t) -1.
67070         Problem originally reported by William Bardwell
67071         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67072
67073         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67074         Moved to here ...
67075         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67076         ... from here.
67077
67078 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67081         2821 is fixed.
67082
67083 2006-09-08  Jim Meyering  <jim@meyering.net>
67084
67085         Don't make generated files read-only.  That would bother too many
67086         people.  However, do retain the ability to work when targets are
67087         read-only: remove the destination and temporary files before writing
67088         them (when generated via sed or echo), or by using the -f option for
67089         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67090         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67091         * modules/byteswap, modules/configmake, modules/fcntl:
67092         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67093         * modules/localcharset, modules/netinet_in, modules/poll:
67094         * modules/stdbool, modules/stdint, modules/sys_select:
67095         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67096
67097 2006-09-08  Jim Meyering  <jim@meyering.net>
67098
67099         Avoid new build failure on FreeBSD 6.0.
67100         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67101         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67102         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67103
67104 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67105
67106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67107
67108 2006-09-07  Jim Meyering  <jim@meyering.net>
67109
67110         Fix global typo in last change: use chmod u-w, not chmod u-x.
67111         Spotted by Paul Eggert and Bruce Korb.
67112         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67113         * modules/byteswap, modules/configmake, modules/fcntl:
67114         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67115         * modules/localcharset, modules/netinet_in, modules/poll:
67116         * modules/stdbool, modules/stdint, modules/sys_select:
67117         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67118
67119 2006-09-06  Jim Meyering  <jim@meyering.net>
67120
67121         Make generated files be read-only.
67122         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67123         Ensure that each generated file is now read-only.
67124         * modules/argz: Likewise.
67125         * modules/arpa_inet: Likewise.
67126         * modules/byteswap: Likewise.
67127         * modules/configmake: Likewise.
67128         * modules/fcntl: Likewise.
67129         * modules/fnmatch: Likewise.
67130         * modules/getopt: Likewise.
67131         * modules/glob: Likewise.
67132         * modules/inttypes: Likewise.
67133         * modules/netinet_in: Likewise.
67134         * modules/poll: Likewise.
67135         * modules/stdbool: Likewise.
67136         * modules/stdint: Likewise.
67137         * modules/sys_select: Likewise.
67138         * modules/sys_socket: Likewise.
67139         * modules/sys_stat: Likewise.
67140         * modules/sysexits: Likewise.
67141         * modules/localcharset: Same as above, but continue using temporary
67142         file named "t-$@" (why different?) rather than the "$@-t" used
67143         everywhere else.
67144
67145         * modules/sysexits (Makefile.am): Replace literal occurrences
67146         of "sysexit.h" more readable, and more consistent, "$@".
67147
67148 2006-09-06  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/striconv: New file.
67151         * modules/xstriconv: New file.
67152         * MODULES.html.sh (Internationalization functions): Add striconv,
67153         xstriconv.
67154
67155 2006-09-06  Bruno Haible  <bruno@clisp.org>
67156
67157         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67158         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67159         not using libtool correctly.
67160
67161 2006-09-06  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/striconv.h: New file.
67164         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67165         iconvstring.c.
67166         * lib/xstriconv.h: New file.
67167         * lib/xstriconv.c: New file.
67168
67169 2006-09-06  Bruno Haible  <bruno@clisp.org>
67170
67171         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67172         lib_..._LDFLAGS.
67173
67174 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67175
67176         * lib/argz_.h: Sync from Libtool.
67177
67178         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67179                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67180
67181         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67182
67183 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67184
67185         * modules/trim: New file.
67186
67187 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67188
67189         * lib/trim.h: New file.
67190         * lib/trim.c: New file.
67191
67192 2006-09-05  Bruno Haible  <bruno@clisp.org>
67193
67194         * MODULES.html.sh (String handling): Add trim.
67195
67196 2006-09-04  Karl Berry  <karl@gnu.org>
67197
67198         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67199         until next release.
67200
67201 2006-09-03  Bruno Haible  <bruno@clisp.org>
67202
67203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67204         correctly.
67205
67206 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67209         not gl_GETLOADAVG.  Omit unneeded semicolons.
67210         Problems reported by Ralf Wildenhues in
67211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67212         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67213         at the end, which is the usual gnulib style.
67214
67215         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67216         of doing all the work ourselves.
67217         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67218         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67219
67220 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67223         Problem reported by Ralf Wildenhues in
67224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67225
67226         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67227         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67228
67229 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67230
67231         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67232         yesterday's patch by changing test -n to test -z.
67233
67234 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67237         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67238         the former is now obsolescent.
67239
67240         * modules/chdir-long (Depends-on): Add fcntl.
67241
67242 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67245         obsolescent, and programs should use gnulib instead.
67246         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67247         but with prefixes changed.
67248
67249 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67252         or stdbool.h, because they might not exist while configuring.
67253
67254         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67255         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67256         does that for us.
67257         (O_DIRECTORY): Remove.
67258
67259 2006-08-31  Eric Blake  <ebb9@byu.net>
67260
67261         * gnulib-tool: Don't let emacs change spaces to TAB.
67262
67263 2006-08-31  Bruno Haible  <bruno@clisp.org>
67264
67265         * gnulib-tool: When calling func_import more than once, do it in a
67266         subshell.
67267         Reported by Eric Blake <ebb9@byu.net>.
67268
67269 2006-08-31  Bruno Haible  <bruno@clisp.org>
67270
67271         * gnulib-tool (nl): Remove variable.
67272         (sed_transform_lib_file): Use more robust test for config-h module.
67273         (func_import): Fix typo in 2006-08-25 patch.
67274
67275 2006-08-31  Bruno Haible  <bruno@clisp.org>
67276
67277         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67278         specified, augment Makefile.am variables instead of assigning them.
67279
67280 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67281
67282         Work around a bug in both the Linux and SunOS 64-bit kernels:
67283         nanosleep mishandles sleeps for longer than 2**31 seconds.
67284         Problem reported by Frank v Waveren in
67285         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67287         Check for nanosleep bug.
67288         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67289
67290 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67291
67292         Work around a bug in both the Linux and SunOS 64-bit kernels:
67293         nanosleep mishandles sleeps for longer than 2**31 seconds.
67294         Problem reported by Frank v Waveren in
67295         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67296         * lib/nanosleep.c (BILLION): New constant.
67297         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67298         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67299         implementation.
67300
67301 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * modules/nanosleep (Depends-on): Add gettime.
67304
67305 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67306         and Simon Josefsson  <jas@extundo.com>
67307         and Oskar Liljeblad  <oskar@osk.mine.nu>
67308
67309         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67310         * gnulib-tool (func_import): New license type 'unmodifiable license
67311         text'.
67312         * modules/fdl: Use it.  Longer description.
67313         * module/gpl, module/lgpl: New files.
67314
67315 2006-08-30  Jim Meyering  <jim@meyering.net>
67316
67317         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67318         shadowing the parameter.
67319
67320 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67321
67322         Sync from Libtool:
67323
67324         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67325
67326         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67327         sharing with gnulib.  Report by Eric Blake.
67328
67329 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * modules/isapipe: New file.
67332         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67333
67334 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * modules/configmake (Makefile.am): Add a comment, and omit
67337         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67338         by Bruno Haible.
67339
67340 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67341
67342         * m4/isapipe.m4: New file.
67343
67344 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67345
67346         * lib/isapipe.c, lib/isapipe.h: New files.
67347
67348 2006-08-29  Jim Meyering  <jim@meyering.net>
67349
67350         * modules/configmake (Makefile.am): Make configmake.h depend on
67351         Makefile.  Otherwise, a stale configmake.h could hang around.
67352
67353 2006-08-29  Eric Blake  <ebb9@byu.net>
67354
67355         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67356         resolution of upstream bug 3044.
67357
67358 2006-08-29  Bruno Haible  <bruno@clisp.org>
67359
67360         * modules/localcharset (Depends-on): Add configmake.
67361         (Makefile.am): Remove setting of LIBDIR through DEFS.
67362
67363 2006-08-29  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67366         defined.
67367
67368 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67369
67370         * modules/fcntl: New file.
67371         * modules/chdir-safer (Depends-on): Add fcntl.
67372         * modules/fts: Likewise.
67373         * modules/mkdir-p: Likewise.
67374
67375         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67376         This undoes the most recent change, since we're now addressing the
67377         problem in a different way.
67378
67379         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67380         into output, since the output might be called Makefile.am even
67381         if $makefile_name is something different.
67382         (func_import): Use $makefile_am rather than
67383         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67384         empty.
67385
67386         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67387
67388 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67391         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67392         recent change to stdint.m4, since we're now addressing the problem in a
67393         different way.
67394
67395 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67396
67397         * m4/fcntl_h.m4: New file.
67398
67399 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * lib/fcntl_.h: New file.
67402         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67403         the fcntl module.
67404         * lib/dirchownmod.c: Likewise.
67405         * lib/fts.c: Likewise.
67406
67407         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67408         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67409         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67410         just before including <inttypes.h>, to avoid circular inclusion.
67411
67412 2006-08-28  Jim Meyering  <jim@meyering.net>
67413
67414         * doc/visibility.texi: Actually read and correct the grammar of the
67415         sentence affected by yesterday's change.
67416
67417 2006-08-28  Eric Blake  <ebb9@byu.net>
67418
67419         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67420         needs wrapper.
67421
67422 2006-08-28  Eric Blake  <ebb9@byu.net>
67423
67424         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67425
67426 2006-08-28  Eric Blake  <ebb9@byu.net>
67427
67428         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67429
67430 2006-08-28  Bruno Haible  <bruno@clisp.org>
67431
67432         * modules/c-strstr: New file, from GNU gettext.
67433         * MODULES.html.sh (String handling): Add c-strstr.
67434
67435 2006-08-28  Bruno Haible  <bruno@clisp.org>
67436
67437         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67438         macros.
67439         Reported by Eric Blake.
67440
67441 2006-08-28  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67444         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67445         * lib/vasprintf.c: Include errno.h, limits.h.
67446         (EOVERFLOW): New fallback definition.
67447         (vasprintf): Test here whether the string length is > INT_MAX.
67448         * lib/vsnprintf.c: Include errno.h, limits.h.
67449         (EOVERFLOW): New fallback definition.
67450         (vsnprintf): Fix bug when generated string was too long for the buffer.
67451         Test here whether the string length is > INT_MAX.
67452
67453 2006-08-28  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/inttypes_.h (SCNX*): Remove definitions.
67456         Reported by Eric Blake.
67457
67458 2006-08-28  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/c-strstr.h: New file, from GNU gettext.
67461         * lib/c-strstr.c: New file, from GNU gettext.
67462
67463 2006-08-28  Bruno Haible  <bruno@clisp.org>
67464
67465         * gnulib-tool: Reorder some statements.
67466
67467 2006-08-28  Bruno Haible  <bruno@clisp.org>
67468
67469         * gnulib-tool: New option --makefile-name.
67470         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67471         $makefile_name.
67472         (func_import): Write $makefile_name to the cache file, and read it from
67473         there unless explicitly specified. Use $makefile_name as file name
67474         instead of Makefile.am. Adjust the recommendations accordingly.
67475
67476 2006-08-28  Bruno Haible  <bruno@clisp.org>
67477
67478         * gnulib-tool (func_verify_module): Check against misapplying patch.
67479
67480 2006-08-28  Bruno Haible  <bruno@clisp.org>
67481
67482         * gnulib-tool (func_relativize, func_relconcat): New functions.
67483         Give an error if --local-dir is given with --update.
67484         Remove trailing slashes from $local_gnulib_dir.
67485         (func_import): Store the relativized $local_gnulib_dir in
67486         gnulib-cache.m4, and read it from there if not specified explicitly.
67487
67488 2006-08-28  Bruno Haible  <bruno@clisp.org>
67489
67490         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67491         is the current directory. Respect also $local_gnulib_dir.
67492
67493 2006-08-28  Bruno Haible  <bruno@clisp.org>
67494             Simon Josefsson  <jas@extundo.com>
67495
67496         BeOS portability.
67497         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67498
67499 2006-08-27  Jim Meyering  <jim@meyering.net>
67500
67501         * doc/visibility.texi: Remove duplicate word: "pointer".
67502
67503 2006-08-26  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67506         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67507         (Makefile.am): Create inttypes.h from inttypes_.h.
67508         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67509
67510         * modules/imaxabs: New file.
67511
67512         * modules/imaxdiv: New file.
67513
67514 2006-08-26  Bruno Haible  <bruno@clisp.org>
67515
67516         * m4/inttypes.m4: New file.
67517         * m4/_inttypes_h.m4: Remove file.
67518         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67519         PRI_MACROS_BROKEN.
67520         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67521
67522         * m4/imaxabs.m4: New file.
67523
67524         * m4/imaxdiv.m4: New file.
67525
67526 2006-08-26  Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/inttypes_.h: New file.
67529         * lib/inttypes.h: Remove file.
67530         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67531
67532         * lib/imaxabs.c: New file.
67533
67534         * lib/imaxdiv.c: New file.
67535
67536 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         New config-h module, so that "make" output needn't be cluttered
67539         by -DHAVE_CONFIG_H.
67540         * MODULES.html.sh (Support for building libraries and executables):
67541         Add config-h.
67542         * modules/config-h: New file.
67543         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67544         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67545         the config-h module is used.
67546
67547         New configmake module, so that "make" output needn't be cluttered
67548         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67549         * MODULES.html.sh (Support for building libraries and executables):
67550         Add configmake.
67551         * modules/configmake: New file.
67552
67553 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         * m4/config-h.m4: New file.
67556
67557 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67558
67559         * config/srclist.txt: Add elisp-comp.
67560
67561 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         * MODULES.html.sh (Support for building libraries and executables):
67564         Add elisp-comp.
67565         * build-aux/elisp-comp: New file.
67566         * modules/elisp-comp: New file.
67567
67568 2006-08-24  Bruno Haible  <bruno@clisp.org>
67569
67570         * gnulib-tool (func_create_testdir): Use non-default values of
67571         sourcebase and m4base.
67572
67573 2006-08-24  Bruno Haible  <bruno@clisp.org>
67574
67575         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67576         HTML structure.
67577
67578 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67579
67580         * modules/openat (Depends-on): Add lchown.
67581
67582 2006-08-23  Bruno Haible  <bruno@clisp.org>
67583
67584         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67585         of gl_LOCK_EARLY instead of gl_LOCK.
67586
67587 2006-08-23  Bruno Haible  <bruno@clisp.org>
67588
67589         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67590         on OSF/1 to no.
67591         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67592
67593 2006-08-23  Bruno Haible  <bruno@clisp.org>
67594
67595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67596         as unusable.
67597
67598         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67599         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67600         (gl_LOCK): New macro.
67601
67602 2006-08-22  Simon Josefsson  <jas@extundo.com>
67603
67604         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67605         to md5 module.
67606
67607 2006-08-22  Simon Josefsson  <jas@extundo.com>
67608
67609         * MODULES.html.sh: Add "Support for maintaining and release
67610         projects".
67611
67612         * build-aux/gnupload: New file, from coreutils.
67613
67614 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         Avoid the need for AC_LIBSOURCES in m4 macros.
67617         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67618         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67619         * modules/check-version (EXTRA_DIST): Add check-version.h.
67620         * modules/crc (EXTRA_DIST): Add crc.h.
67621         * modules/des (EXTRA_DIST): Add des.h.
67622         * modules/gc (EXTRA_DIST): Add gc.h.
67623         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67624         * modules/getline (EXTRA_DIST): Add getline.h.
67625         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67626         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67627         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67628         * modules/md2 (EXTRA_DIST): Add md2.h.
67629         * modules/md4 (EXTRA_DIST): Add md4.h.
67630         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67631         * modules/read-file (EXTRA_DIST): Add read-file.h.
67632         * modules/readline (EXTRA_DIST): Add readline.h.
67633         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67634         rijndael-api-fst.h.
67635
67636 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67637
67638         * m4/rijndael.m4 (gl_ARCFOUR):
67639         * m4/arctwo.m4 (gl_ARCTWO):
67640         * m4/check-version.m4 (gl_CHECK_VERSION):
67641         * m4/crc.m4 (gl_CRC):
67642         * m4/des.m4 (gl_DES):
67643         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67644         * m4/gc.m4 (gl_GC):
67645         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67646         * m4/getline.m4 (gl_FUNC_GETLINE):
67647         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67648         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67649         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67650         * m4/md2.m4 (gl_MD2):
67651         * m4/md4.m4 (gl_MD4):
67652         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67653         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67654         * m4/readline.m4 (gl_FUNC_READLINE):
67655         * m4/rijndael.m4 (gl_RIJNDAEL):
67656         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67657         to get the necessary .h files and whatnot.
67658
67659 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67660
67661         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67662         gnulib rather than the other way around.
67663         * config/srclistvars.sh (COREUTILS): Remove.
67664
67665 2006-08-22  Jim Meyering  <jim@meyering.net>
67666
67667         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67668
67669         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67670
67671 2006-08-22  Eric Blake  <ebb9@byu.net>
67672
67673         * modules/regexprops-generic: New file.
67674         * MODULES.html.sh (Support for building documentation): List it.
67675
67676 2006-08-22  Eric Blake  <ebb9@byu.net>
67677
67678         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67679         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67680         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67681         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67682
67683 2006-08-22  Bruno Haible  <bruno@clisp.org>
67684
67685         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67686         and lib_LTLIBRARIES like the other lib_* variables.
67687
67688 2006-08-22  Bruno Haible  <bruno@clisp.org>
67689
67690         * build-aux/x-to-1.in: New file, from GNU gettext.
67691
67692 2006-08-22  Bruno Haible  <bruno@clisp.org>
67693
67694         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67695         <utmpx.h> exists.
67696
67697 2006-08-22  Bruno Haible  <bruno@clisp.org>
67698
67699         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67700         <utmpx.h> exists.
67701
67702 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67703
67704         BeOS portability.
67705         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67706         exist.
67707         Problem reported by Bruno Haible.
67708
67709 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         Avoid the need for AC_LIBSOURCES in m4 macros.
67712         * modules/acl (EXTRA_DIST): Add acl.h.
67713         * modules/argmatch (Files): Add m4/argmatch.m4.
67714         (configure.ac): Add gl_ARGMATCH.
67715         (EXTRA_DIST): Renamed from lib_SOURCES, for
67716         consistency with the other modules.  Remove argmatch.c.
67717         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67718         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67719         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67720         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67721         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67722         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67723         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67724         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67725         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67726         * modules/closeout (EXTRA_DIST): Add closeout.h.
67727         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67728         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67729         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67730         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67731         dirname.h; remove basename.c and stripslash.c.
67732         * modules/exclude (EXTRA_DIST): Add exclude.h.
67733         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67734         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67735         * modules/file-type (EXTRA_DIST): Add file-type.h.
67736         * modules/filemode (EXTRA_DIST): Add filemode.h.
67737         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67738         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67739         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67740         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67741         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67742         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67743         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67744         * modules/getdate (EXTRA_DIST): Add getdate.c.
67745         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67746         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67747         * modules/getpass (EXTRA_DIST): Add getpass.h.
67748         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67749         * modules/group-member (EXTRA_DIST): Add group-member.h.
67750         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67751         * modules/hash (EXTRA_DIST): Add hash.h.
67752         * modules/human (EXTRA_DIST): Add human.h.
67753         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67754         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67755         * modules/lchown (EXTRA_DIST): Add lchown.h.
67756         * modules/long-options (EXTRA_DIST): Add long-options.h.
67757         * modules/lstat (EXTRA_DIST): Add lstat.h.
67758         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67759         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67760         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67761         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67762         * modules/memxor (EXTRA_DIST): Add memxor.h.
67763         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67764         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67765         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67766         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67767         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67768         * modules/physmem (EXTRA_DIST): Add physmem.h.
67769         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67770         * modules/posixver (EXTRA_DIST): Add posixver.h.
67771         * modules/quote (EXTRA_DIST): Add quote.h.
67772         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67773         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67774         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67775         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67776         regex_internal.h regexec.c.
67777         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67778         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67779         * modules/same (EXTRA_DIST): Add same.h.
67780         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67781         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67782         * modules/savedir (EXTRA_DIST): Add savedir.h.
67783         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67784         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67785         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67786         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67787         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67788         * modules/strdup (EXTRA_DIST): Add strdup.h.
67789         * modules/strftime (EXTRA_DIST): Add strftime.h.
67790         * modules/strndup (EXTRA_DIST): Add strndup.h.
67791         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67792         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67793         * modules/time_r (EXTRA_DIST): Add time_r.h.
67794         * modules/timespec (EXTRA_DIST): Add timespec.h.
67795         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67796         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67797         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67798         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67799         * modules/userspec (EXTRA_DIST): Add userspec.h.
67800         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67801         * modules/utimens (EXTRA_DIST): Add utimens.h.
67802         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67803         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67804         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67805         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67806         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67807         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67808         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67809         * modules/yesno (EXTRA_DIST): Add yesno.h.
67810
67811 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67812
67813         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67814
67815         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67816         * m4/dev-ino.m4, same-inode.m4: Remove.
67817
67818         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67819         * m4/acl.m4 (AC_FUNC_ACL):
67820         * m4/backupfile.m4 (gl_BACKUPFILE):
67821         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67822         * m4/canon-host.m4 (gl_CANON_HOST):
67823         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67824         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67825         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67826         * m4/cloexec.m4 (gl_CLOEXEC):
67827         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67828         * m4/closeout.m4 (gl_CLOSEOUT):
67829         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67830         * m4/dirname.m4 (gl_DIRNAME):
67831         * m4/exclude.m4 (gl_EXCLUDE):
67832         * m4/exitfail.m4 (gl_EXITFAIL):
67833         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67834         * m4/file-type.m4 (gl_FILE_TYPE):
67835         * m4/filemode.m4 (gl_FILEMODE):
67836         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67837         * m4/fpending.m4 (gl_FUNC_FPENDING):
67838         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67839         * m4/fts.m4 (gl_FUNC_FTS):
67840         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67841         * m4/getdate.m4 (gl_GETDATE):
67842         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67843         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67844         * m4/getpass.m4 (gl_FUNC_GETPASS):
67845         * m4/gettime.m4 (gl_GETTIME):
67846         * m4/getugroups.m4 (gl_GETUGROUPS):
67847         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67848         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67849         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67850         * m4/hash.m4 (gl_HASH):
67851         * m4/idcache.m4 (gl_IDCACHE):
67852         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67853         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67854         * m4/long-options.m4 (gl_LONG_OPTIONS):
67855         * m4/lstat.m4 (gl_FUNC_LSTAT):
67856         * m4/md5.m4 (gl_MD5):
67857         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67858         * m4/memcoll.m4 (gl_MEMCOLL):
67859         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67860         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67861         * m4/memxor.m4 (gl_MEMXOR):
67862         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67863         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67864         * m4/modechange.m4 (gl_MODECHANGE):
67865         * m4/mountlist.m4 (gl_MOUNTLIST):
67866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67867         * m4/openat.m4 (gl_FUNC_OPENAT):
67868         * m4/pathmax.m4 (gl_PATHMAX):
67869         * m4/physmem.m4 (gl_PHYSMEM):
67870         * m4/posixtm.m4 (gl_POSIXTM):
67871         * m4/posixver.m4 (gl_POSIXVER):
67872         * m4/quote.m4 (gl_QUOTE):
67873         * m4/quotearg.m4 (gl_QUOTEARG):
67874         * m4/readtokens.m4 (gl_READTOKENS):
67875         * m4/readutmp.m4 (gl_READUTMP):
67876         * m4/regex.m4 (gl_REGEX):
67877         * m4/safe-read.m4 (gl_SAFE_READ):
67878         * m4/safe-write.m4 (gl_SAFE_WRITE):
67879         * m4/same.m4 (gl_SAME):
67880         * m4/save-cwd.m4 (gl_SAVE_CWD):
67881         * m4/savedir.m4 (gl_SAVEDIR):
67882         * m4/settime.m4 (gl_SETTIME):
67883         * m4/sha1.m4 (gl_SHA1):
67884         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
67885         * m4/stat-macros.m4 (gl_STAT_MACROS):
67886         * m4/stat-time.m4 (gl_STAT_TIME):
67887         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
67888         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
67889         * m4/strdup.m4 (gl_FUNC_STRDUP):
67890         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
67891         * m4/strndup.m4 (gl_FUNC_STRNDUP):
67892         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
67893         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
67894         * m4/time_r.m4 (gl_TIME_R):
67895         * m4/timespec.m4 (gl_TIMESPEC):
67896         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
67897         * m4/unlinkdir.m4 (gl_UNLINKDIR):
67898         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
67899         * m4/userspec.m4 (gl_USERSPEC):
67900         * m4/utimecmp.m4 (gl_UTIMECMP):
67901         * m4/utimens.m4 (gl_UTIMENS):
67902         * m4/xalloc.m4 (gl_XALLOC):
67903         * m4/xgetcwd.m4 (gl_XGETCWD):
67904         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
67905         * m4/xreadlink.m4 (gl_XREADLINK):
67906         * m4/xstrtod.m4 (gl_XSTRTOD):
67907         * m4/yesno.m4 (gl_YESNO):
67908         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67909         to get the necessary .h files and whatnot.
67910
67911 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67912             Bruno Haible  <bruno@clisp.org>
67913
67914         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67915         /bin/sh understanding of '!' conditional negation.
67916
67917 2006-08-21  Jim Meyering  <jim@meyering.net>
67918
67919         * modules/openat (Depends-on): Really alphabetize.
67920
67921         * modules/acl (Depends-on): Add error and quote.
67922
67923         * check-module (find_included_lib_files): Add at-func.c to the
67924         ok-to-include-more-than-once white list.
67925
67926         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67927
67928 2006-08-21  Bruno Haible  <bruno@clisp.org>
67929
67930         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67931         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67932         Reported by Martin Lambers <marlam@marlam.de>.
67933
67934 2006-08-21  Bruno Haible  <bruno@clisp.org>
67935
67936         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67937         specify an installation location, don't emit a noinst_LIBRARIES or
67938         noinst_LTLIBRARIES assignment.
67939
67940 2006-08-21  Bruno Haible  <bruno@clisp.org>
67941
67942         BeOS portability.
67943         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67944         BeOS has mbrtowc() but no <wctype.h>.
67945
67946 2006-08-21  Bruno Haible  <bruno@clisp.org>
67947
67948         BeOS portability.
67949         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67950         exist.
67951
67952 2006-08-21  Bruno Haible  <bruno@clisp.org>
67953
67954         BeOS portability.
67955         * lib/mbchar.h: Include <wctype.h> only if it exists.
67956
67957 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         Remove files that are no longer needed by their respective modules.
67960         * m4/obstack.m4: Remove.
67961         * m4/strerror_r.m4: Remove.
67962         * m4/uint32_t.m4: Remove.
67963         * m4/uintptr_t.m4: Remove.
67964         * m4/ullong_max.m4: Remove.
67965         * m4/xstrtoimax.m4: Remove.
67966         * m4/xstrtoumax.m4: Remove.
67967
67968         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67969         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67970         dependencies now capture this.
67971
67972         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67973         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67974         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67975         * m4/human.m4 (gl_HUMAN): Likewise.
67976         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67977         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67978
67979         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67980
67981         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67982         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67983         stdint.
67984         * m4/human.m4 (gl_HUMAN): Likewise.
67985         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67986         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67987         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67988         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67989         * m4/xstrtol (gl_XSTRTOL): Likewise.
67990
67991         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67992         AC_TYPE_LONG_LONG_INT.
67993         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67994         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67995         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67996         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67997
67998         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67999         on stdbool.
68000
68001         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68002         (gl_PREREQ_XSTRTOUL): Remove.
68003
68004         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68005
68006         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68007         mode.
68008
68009 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         Add and change modules to make it easier for coreutils to use
68012         gnulib-tool.
68013         * modules/backupfile (Files): Remove m4/d-ino.m4.
68014         (Depends-on): Add d-ino.
68015         * modules/cycle-check (Depends-on): Add stdint.
68016         (lib_SOURCES): Add cycle-check.h.
68017         * modules/d-ino: New module.
68018         * modules/d-type: New module.
68019         * modules/error (Files): Remove m4/strerror_r.m4.
68020         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68021         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68022         m4/inttypes_h.m4, m4/uintmax_t.m4.
68023         (Depends-on): Add stdint.
68024         (lib_SOURCES): Add fsusage.h.
68025         * modules/getcwd (Files): Remove d-ino.m4.
68026         (Depends-on): Add d-ino.
68027         * modules/getndelim2 (Depends-on): Add stdint.
68028         * modules/glob (Files): Remove m4/d-type.m4.
68029         (Depends-on): Add d-type.
68030         * modules/host-os: New module.
68031         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68032         m4/inttypes_h.m4, m4/uintmax_t.m4.
68033         * Depends-on: Add stdint.
68034         (lib_SOURCES): Add human.h.
68035         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68036         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68037         m4/uintmax_t.m4, m4/ulonglong.m4.
68038         (Depends-on): Add stdint.
68039         (EXTRA_DIST): Add inttostr.h.
68040         * modules/lchmod: New module.
68041         * modules/link-follow: New module.
68042         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68043         (Depends-on): Add lchmod.
68044         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68045         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68046         (Depends-on): Add stdint.
68047         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68048         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68049         (Depends-on): Add stdint.
68050         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68051         * modules/perl: New module.
68052         * modules/regex (Depends-on): Add stdint.
68053         * modules/rmdir-errno: New module.
68054         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68055         m4/intmax_t.m4.
68056         (Depends-on): Add stdint.
68057         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68058         m4/uintmax_t.m4.
68059         (Depends-on): Add stdint.
68060         * modules/unlink-busy: New module.
68061         * modules/utimecmp (Depends-on): Add stdint.
68062         * modules/uptime: New module.
68063         * modules/winsz-ioctl: New module.
68064         * modules/winsz-termios: New module.
68065         * modules/xnanosleep (Depends-on): Add nanosleep.
68066         * modules/ullong_max: Remove.
68067         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68068         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68069         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68070         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68071         (Depends-on): Add inttypes.
68072         (lib_SOURCES): Add xstrtol.h.
68073         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68074         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68075         * MODULES.html.sh: Move 'assert' into the assert section.
68076         Move 'dummy' into the linking section.
68077         Remove ullong_max.
68078         Add section for compatibility checks for POSIX:2001 functions,
68079         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68080         winsz-ioctl, and winsz-termios into it.
68081         Add lchmod.
68082         Add top-level Misc section and put host-os, perl, and uptime
68083         into it.
68084
68085 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68088         now assume the stdint module.  Do not include inttypes.h.
68089         * lib/fsusage.h: Likewise.
68090         * lib/getndelim2.c: Likewise.
68091         * lib/human.h: Likewise.
68092         * lib/inttostr.h: Likewise.
68093         * lib/obstack.c: Likewise.
68094         * lib/regex_internal.h: Likewise.
68095         * lib/tempname.c: Likewise.
68096         * lib/utimecmp.c: Likewise.
68097         * lib/xstrtol.h: Likewise.
68098
68099         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68100
68101         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68102         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68103         * lib/xtime.h: Likewise.
68104
68105 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68106
68107         * modules/openat (Files): Add lib/fchmodat.c.
68108         Fixes problem reported by Jay Youngman.
68109
68110 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68113         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68114
68115 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68116             Bruno Haible  <bruno@clisp.org>
68117
68118         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68119         and is a script that invokes bison. Tighten the code. Add comments.
68120
68121 2006-08-18  Jim Meyering  <jim@meyering.net>
68122
68123         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68124         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68125         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68126         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68127
68128 2006-08-18  Bruno Haible  <bruno@clisp.org>
68129
68130         * modules/bison-i18n: New file.
68131         * MODULES.html.sh (Internationalization functions): Add it.
68132
68133 2006-08-18  Bruno Haible  <bruno@clisp.org>
68134
68135         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68136         sys/statvfs.h. When getmntinfo was found, check its declaration and
68137         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68138
68139 2006-08-18  Bruno Haible  <bruno@clisp.org>
68140
68141         * m4/bison-i18n.m4: New file, from bison.
68142
68143 2006-08-18  Bruno Haible  <bruno@clisp.org>
68144
68145         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68146         (ME_DUMMY): Treat "kernfs" as a dummy.
68147         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68148
68149 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         Update from coreutils.
68152
68153         2006-08-15  Jim Meyering  <jim@meyering.net>
68154
68155         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68156
68157         2006-01-17  Jim Meyering  <jim@meyering.net>
68158
68159         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68160
68161         2006-01-11  Jim Meyering  <jim@meyering.net>
68162
68163         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68164         Check for the lchmod function.
68165
68166 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         Update from coreutils.
68169
68170         * lib/__fpending.h: Add copyright notice.
68171         * lib/fprintftime.h: Likewise.
68172         * lib/savedir.c: Use (C) in copyright notice.
68173         * lib/savedir.h: Likewise.
68174
68175         2006-08-15  Jim Meyering  <jim@meyering.net>
68176
68177         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68178         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68179         in support of the EXPECTED_ERRNO macro.
68180         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68181         definitions.  Instead, define the appropriate symbols and include
68182         "at-func.c".
68183         * lib/mkdirat.c (mkdirat): Likewise.
68184         * lib/fchmodat.c (fchmodat): Likewise.
68185         (ENOSYS): Remove definition.
68186         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68187         it.  Don't include "unistd--.h" -- it wasn't ever used.
68188
68189         2006-01-17  Jim Meyering  <jim@meyering.net>
68190
68191         Rewrite fts.c not to change the current working directory,
68192         by using openat, fstatat, fdopendir, etc..
68193
68194         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68195         (HAVE_OPENAT_SUPPORT): Define.
68196         [_LIBC] (fchdir): Don't undef or define; no longer used.
68197         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68198         Now, this `function' always succeeds, and consumes its file descriptor
68199         parameter -- so callers must not close such FDs.  Update callers.
68200         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68201         (diropen): Add parameter, SP.  Adjust all callers.
68202         Implement using diropen_fd, rather than open.
68203         (fts_open): Initialize new member, fts_cwd_fd.
68204         Remove fts_rft-setting code.
68205         (fts_close): Close fts_cwd_fd, if necessary.
68206         (__opendir2): Define in terms of opendir or opendirat,
68207         depending on whether the FST_NOCHDIR flag is set.
68208         (fts_build): Since fts_safe_changedir consumes its FD, and since
68209         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68210         and close the dup'd file descriptor upon failure.
68211         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68212         (fts_safe_changedir): Tweak semantics to reflect that this function
68213         now calls cwd_advance_fd and hence consumes its FD argument.
68214         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68215         [struct FTS] (fts_rft): Remove now-unused member.
68216         [struct FTS] (fts_cycle.state): Improve comment.
68217
68218         * lib/openat.c (openat_needs_fchdir): New function.
68219         * lib/openat.h (openat_needs_fchdir): Declare it.
68220
68221 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68224         Problem and fix reported by Pádraig Brady in
68225         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68226
68227 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68230
68231 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68232
68233         * lib/memcoll.c (memcoll): Optimize for the common case where the
68234         arguments are bytewise equal.
68235
68236 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         * doc/regexprops-generic.texi: Add a copyright notice.
68239
68240 2006-08-15  Bruno Haible  <bruno@clisp.org>
68241
68242         * modules/tmpdir (License): Change to LGPL.
68243
68244 2006-08-15  Bruno Haible  <bruno@clisp.org>
68245
68246         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68247         module.
68248
68249 2006-08-14  Simon Josefsson  <jas@extundo.com>
68250
68251         * config/srclist.txt: Add gnupload.
68252
68253 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68254
68255         Change copyright notice from LGPL 2 to GPL 2, since that's the
68256         standard form used in the gnulib repository.
68257         * tests/test-lock.c: Likewise.
68258         * tests/test-stdint.c: Likewise.
68259         * tests/test-tls.c: Likewise.
68260
68261         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68262         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68263         Add copyright notice.
68264
68265         * check-module: Add copyright notice.  Output a copyright
68266         notice if "--version" is specified.
68267         * modules/COPYING: New file.
68268         * tests/test-getaddrinfo.c: Add copyright notice.
68269         * tests/test-verify.c: Likewise.
68270
68271 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         Change copyright notice from LGPL 2 to GPL 2, since that's the
68274         standard form used in the gnulib repository.
68275         * lib/lock.c: LGPL -> GPL.
68276         * lib/lock.h: Likewise.
68277         * lib/strnlen1.c: Likewise.
68278         * lib/strnlen1.h: Likewise.
68279         * lib/tls.c: Likewise.
68280         * lib/tls.h: Likewise.
68281         * lib/tmpdir.c: Likewise.
68282
68283         * lib/TODO: Remove; this belongs only in coreutils.
68284
68285 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68286
68287         Add copyright notices to long-enough files that lack them, since
68288         otherwise the files aren't clearly free.  Use the same notice that
68289         getdate.texi already uses.
68290         * doc/alloca-opt.texi: Add copyright notice.
68291         * doc/alloca.texi: Likewise.
68292         * doc/ctime.texi: Likewise.
68293         * doc/functions.texi: Likewise.
68294         * doc/gcd.texi: Likewise.
68295         * doc/gnulib-tool.texi: Likewise.
68296         * doc/inet_ntoa.texi: Likewise.
68297         * doc/visibility.texi: Likewise.
68298
68299         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68300         * doc/quote.texi: Add copyright notice.
68301
68302         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68303         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68304         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68305         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68306         is now obsolete, and give a pointer to the Sun list.
68307         Add copyright notice.
68308
68309 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         * config/srclistvars.sh: Add copyright notice.
68312
68313 2006-08-14  Eric Blake  <ebb9@byu.net>
68314
68315         Import the following change from libc:
68316
68317         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68318
68319         Upstream bug 2997.
68320         * lib/misc/error.c: Add space between program name and message if file
68321         name is missing.
68322
68323 2006-08-12  Karl Berry  <karl@gnu.org>
68324
68325         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68326         remove, these originate in gnulib now.
68327
68328 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68329
68330         * doc/Makefile (standards.info standards.html standards.dvi):
68331         Also depend on make-stds.texi.
68332
68333 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68334
68335         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68336         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68337
68338         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68339         in wchar_t.  Problem reported by Eric Blake.
68340
68341         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68342         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68343         Also, help the compiler to keep LEN in a register.
68344
68345 2006-08-11  Eric Blake  <ebb9@byu.net>
68346
68347         * users.txt: Sort.  Add tar.
68348
68349 2006-08-11  Bruno Haible  <bruno@clisp.org>
68350
68351         * users.txt: New file.
68352
68353 2006-08-11  Bruno Haible  <bruno@clisp.org>
68354
68355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68356         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68357
68358 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * modules/snprintf (Depends-on): Remove minmax.
68361         (Maintainer): Add self and Bruno.
68362
68363 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68364
68365         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68366         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68367         (EOVERFLOW): Define if the system does not.
68368         Do not include "minmax.h"; it wasn't used.
68369         (snprintf): Don't assume size_t promotes to an unsigned type.
68370         Fix bug when generated string was too long for the buffer: the
68371         buffer's contents are supposed to be the initial prefix of the
68372         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68373         exceeds INT_MAX; do the check ourselves.
68374
68375         Import the following changes from libc:
68376
68377         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68378
68379         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68380         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68381         set wc to the byte which couldn't be converted.
68382         (re_string_reconstruct): Don't clear valid_raw_len before calling
68383         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68384         tip_context using re_string_context_at.
68385
68386         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68387
68388         * lib/posix/regex.h: g++ still cannot handled [restrict].
68389
68390         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68391
68392         * lib/posix/regex.h: Remove special handling for VMS.
68393
68394 2006-08-10  Jim Meyering  <jim@meyering.net>
68395
68396         * modules/same-inode: New module.
68397         * modules/dev-ino: New module.
68398         * modules/cycle-check: Depend on these modules, rather than simply
68399         including their .h files.
68400         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68401         required via m4/cycle-check.m4.
68402         * modules/same: Depend on new same-inode module, rather than
68403         including same-inode.h.
68404         * modules/chdir-safer: New file.
68405
68406         * modules/chown (Depends-on): Add stat-macros.
68407
68408 2006-08-10  Jim Meyering  <jim@meyering.net>
68409
68410         * m4/cycle-check.m4: New file.
68411         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68412         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68413
68414 2006-08-10  Eric Blake  <ebb9@byu.net>
68415
68416         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68417         in from original proposal.
68418
68419 2006-08-10  Eric Blake  <ebb9@byu.net>
68420         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68421
68422         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68423         namespace.
68424
68425 2006-08-10  Bruno Haible  <bruno@clisp.org>
68426
68427         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68428         as well.
68429
68430 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         Sync from coreutils.
68433
68434         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68435
68436         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68437         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68438
68439 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68440
68441         * modules/restrict: Remove; no longer needed now that we assume
68442         Autoconf 2.59 or later.
68443         * MODULES.html.sh: Remove 'restrict'.
68444         * modules/argp (Depends-on): Remove 'restrict'.
68445         * modules/base64 (Depends-on): Likewise.
68446         * modules/gc (Depends-on): Likewise.
68447         * modules/getaddrinfo (Depends-on): Likewise.
68448         * modules/glob (Depends-on): Likewise.
68449         * modules/inet_ntop (Depends-on): Likewise.
68450         * modules/inet_pton (Depends-on): Likewise.
68451         * modules/memxor (Depends-on): Likewise.
68452         * modules/regex (Depends-on): Likewise.
68453         * modules/strtok_r (Depends-on): Likewise.
68454         * modules/time_r (Depends-on): Likewise.
68455
68456 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68457
68458         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68459         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68460         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68461         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68462         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68463         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68464         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68465         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68466
68467         Merge from coreutils.
68468         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68469         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68470         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68471         * m4/time_r.m4 (gl_TIME_R): Likewise.
68472
68473 2006-08-09  Karl Berry  <karl@gnu.org>
68474
68475         * config/srclist.txt: no more gettext-tools, per Bruno.
68476
68477 2006-08-08  Eric Blake  <ebb9@byu.net>
68478
68479         * modules/verror: New module.
68480         * MODULES.html.sh: Document it.
68481
68482 2006-08-08  Eric Blake  <ebb9@byu.net>
68483
68484         * lib/verror.h, lib/verror.c: New files.
68485
68486 2006-08-08  Eric Blake  <ebb9@byu.net>
68487
68488         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68489         verror_at_line output complies with GNU Coding Standards even when
68490         file is NULL.
68491
68492 2006-08-07  Bruno Haible  <bruno@clisp.org>
68493
68494         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68495         versions of AIX.
68496         Reported by Ralf Wildenhues.
68497
68498 2006-08-07  Bruno Haible  <bruno@clisp.org>
68499
68500         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68501         in an AC_DEFUN. Needed so that the autoconf snippets can use
68502         AC_REQUIRE.
68503
68504 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68505
68506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68507         Initialize pkgdata_DATA.
68508         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68509         overriding it.
68510
68511 2006-08-06  Eric Blake  <ebb9@byu.net>
68512
68513         * lib/error.h: Fold in some upstream changes from glibc.
68514         * lib/error.c: Likewise.
68515
68516 2006-08-04  Bruno Haible  <bruno@clisp.org>
68517
68518         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68519         Make the mostlyclean-local rule depend on mostlyclean-generic.
68520         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68521
68522 2006-07-31  Bruno Haible  <bruno@clisp.org>
68523
68524         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68525         <stdlib.h>, <string.h>.
68526
68527 2006-07-30  Bruno Haible  <bruno@clisp.org>
68528
68529         * modules/readlink (License): Change to LGPL.
68530
68531 2006-07-30  Bruno Haible  <bruno@clisp.org>
68532
68533         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68534         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68535         set PKGDATADIR to point to it.
68536
68537 2006-07-30  Bruno Haible  <bruno@clisp.org>
68538
68539         * modules/csharpexec (configure.ac): Comment out macro invocation.
68540         * modules/javaexec (configure.ac): Likewise.
68541         * modules/javacomp-script (configure.ac): Likewise.
68542
68543         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68544
68545 2006-07-30  Bruno Haible  <bruno@clisp.org>
68546
68547         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68548         linked-list.
68549
68550 2006-07-30  Bruno Haible  <bruno@clisp.org>
68551
68552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68553
68554 2006-07-30  Bruno Haible  <bruno@clisp.org>
68555
68556         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68557         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68558         get removed.
68559
68560 2006-07-29  Bruno Haible  <bruno@clisp.org>
68561
68562         Make it possible for gnulib-tool to work with locally modified or
68563         augmented gnulib repositories.
68564         * gnulib-tool (func_usage): Document --local-dir option.
68565         (local_gnulib_dir): New variable.
68566         Handle --local-dir option.
68567         (func_lookup_file): New function.
68568         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68569         (func_get_description, func_get_filelist, func_get_description,
68570         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68571         func_get_automake_snippet, func_get_include_directive,
68572         func_get_license, func_get_maintainer): Use func_lookup_file.
68573         (func_import, func_create_testdir): Use func_lookup_file.
68574
68575 2006-07-29  Bruno Haible  <bruno@clisp.org>
68576
68577         * modules/setenv (Depends-on): Add unistd.
68578
68579 2006-07-29  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68582
68583 2006-07-29  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68586
68587 2006-07-29  Bruno Haible  <bruno@clisp.org>
68588
68589         * gnulib-tool (import, update): If there is no Makefile.am, look at
68590         aclocal.m4, instead of bailing out.
68591
68592 2006-07-29  Bruno Haible  <bruno@clisp.org>
68593
68594         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68595         Categorize the options by when they are useful.
68596
68597 2006-07-29  Bruno Haible  <bruno@clisp.org>
68598
68599         * gnulib-tool (func_usage): Document option --no-libtool.
68600         Handle option --no-libtool.
68601         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68602         for changed semantics of $libtool variable.
68603         (func_import): Likewise. If libtool is not used, show this through
68604         an option --no-libtool.
68605         (func_create_testdir): Update.
68606
68607 2006-07-29  Bruno Haible  <bruno@clisp.org>
68608
68609         * gnulib-tool (func_import): Extend error message about missing
68610         --doc-base.
68611
68612 2006-07-29  Bruno Haible  <bruno@clisp.org>
68613
68614         * gnulib-tool (func_import): Don't create the $docbase directory if
68615         there is no file to store there.
68616
68617 2006-07-29  Bruno Haible  <bruno@clisp.org>
68618
68619         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68620         relevant, look for configure.ac there, not in the current directory.
68621         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68622
68623 2006-07-29  Bruno Haible  <bruno@clisp.org>
68624
68625         * gnulib-tool (SORT): New variable.
68626         (func_usage): Undocument --assume-autoconf option.
68627         Remove --assume-autoconf option handling.
68628         (autoconf_minversion): Determine from the contents of configure.ac.
68629         (func_import): Remove autoconf_minversion handling.
68630         Suggested by Eric Blake.
68631
68632 2006-07-29  Bruno Haible  <bruno@clisp.org>
68633
68634         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68635
68636 2006-07-29  Bruno Haible  <bruno@clisp.org>
68637
68638         * config/srclist.txt (*setenv.[ch]): Remove rules.
68639
68640 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68641
68642         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68643
68644 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68645
68646         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68647         arpa/inet.h.
68648
68649 2006-07-28  Simon Josefsson  <jas@extundo.com>
68650
68651         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68652         * modules/inet_pton (Depends-on): Likewise.
68653
68654 2006-07-28  Simon Josefsson  <jas@extundo.com>
68655
68656         * m4/netinet_in_h.m4: New file.
68657
68658 2006-07-28  Simon Josefsson  <jas@extundo.com>
68659
68660         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68661         #include's.
68662
68663 2006-07-28  Simon Josefsson  <jas@extundo.com>
68664
68665         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68666         #include's.
68667
68668 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68671         setgid on directories only if they set these bits.
68672         * lib/modechange.h: Remove obsolete comment about masks.
68673
68674 2006-07-28  Eric Blake  <ebb9@byu.net>
68675
68676         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68677         macro expansion.
68678
68679 2006-07-28  Bruno Haible  <bruno@clisp.org>
68680
68681         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68682
68683 2006-07-28  Bruno Haible  <bruno@clisp.org>
68684
68685         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68686
68687 2006-07-28  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68690         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68691         Define fallbacks.
68692         Avoids link error on FreeBSD 4.x.
68693         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68694
68695         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68696         encoding.
68697         * lib/mbswidth.c (iswcntrl): Likewise.
68698
68699 2006-07-27  Bruno Haible  <bruno@clisp.org>
68700
68701         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68702         test.
68703
68704 2006-07-27  Bruno Haible  <bruno@clisp.org>
68705
68706         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68707         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68708         defined.
68709
68710 2006-07-26  Eric Blake  <ebb9@byu.net>
68711
68712         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68713
68714 2006-07-26  Eric Blake  <ebb9@byu.net>
68715
68716         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68717         like mingw that lack mkstemp.
68718         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68719         avoid compilation warning on mingw.
68720
68721 2006-07-26  Bruno Haible  <bruno@clisp.org>
68722
68723         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68724         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68725         INT_FAST*_MIN, INTPTR_MIN.
68726
68727 2006-07-25  Bruno Haible  <bruno@clisp.org>
68728
68729         * modules/version-etc (Depends-on): Add stdarg.
68730
68731 2006-07-25  Bruno Haible  <bruno@clisp.org>
68732
68733         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68734         complex commands.
68735
68736 2006-07-25  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68739         defined in <stdarg.h> or config.h.
68740
68741 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68744         (gl_STDIO_SAFER): Remove.
68745
68746 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * MODULES.html.sh (File stream based Input/Output):
68749         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68750         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68751         * modules/fopen-safer, modules/tmpfile-safer: New files.
68752         * modules/stdio-safer: Remove.
68753
68754 2006-07-24  Bruno Haible  <bruno@clisp.org>
68755
68756         * modules/tmpdir: New file.
68757         * MODULES.html.sh (File system functions): Add it.
68758
68759 2006-07-24  Bruno Haible  <bruno@clisp.org>
68760
68761         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68762         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68763
68764 2006-07-24  Bruno Haible  <bruno@clisp.org>
68765
68766         * modules/clean-temp: New file.
68767
68768 2006-07-24  Bruno Haible  <bruno@clisp.org>
68769
68770         * m4/tmpdir.m4: New file, from GNU gettext.
68771
68772 2006-07-24  Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/tmpdir.h: New file, from GNU gettext.
68775         * lib/tmpdir.c: New file, from GNU gettext.
68776
68777 2006-07-24  Bruno Haible  <bruno@clisp.org>
68778
68779         * lib/clean-temp.h: New file, from GNU gettext.
68780         * lib/clean-temp.c: New file, from GNU gettext.
68781
68782 2006-07-23  Eric Blake  <ebb9@byu.net>
68783
68784         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68785         (Depends-on): Add binary-io.
68786
68787 2006-07-23  Eric Blake  <ebb9@byu.net>
68788
68789         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68790
68791 2006-07-23  Eric Blake  <ebb9@byu.net>
68792
68793         * lib/tmpfile-safer.c: New file.
68794         * lib/stdio-safer.h (fopen_safer): Add prototype.
68795         * lib/stdio--.h (tmpfile): Make safer.
68796
68797 2006-07-23  Bruno Haible  <bruno@clisp.org>
68798
68799         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68800         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68801         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68802         gl_linked_remove_at): Use it.
68803
68804 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68805         and Simon Josefsson <jas@extundo.com>
68806
68807         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68808
68809         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68810
68811 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68812
68813         * modules/close-stream: New file.
68814         * modules/closeout (Description): Make it clear that it exits
68815         with a diagnostic on error.
68816         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68817         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68818
68819 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * m4/close-stream.m4: New file.
68822
68823 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * lib/close-stream.c, lib/close-stream.h: New files.
68826
68827 2006-07-22  Bruno Haible  <bruno@clisp.org>
68828
68829         Merge from GNU gettext 0.15.
68830
68831         2006-05-01  Bruno Haible  <bruno@clisp.org>
68832
68833                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68834
68835         2006-07-22  Bruno Haible  <bruno@clisp.org>
68836
68837                 * modules/javaversion: New file.
68838                 * MODULES.html.sh (Java): Add javaversion.
68839
68840         2006-03-12  Bruno Haible  <bruno@clisp.org>
68841
68842                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68843
68844         2005-12-04  Bruno Haible  <bruno@clisp.org>
68845
68846                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68847                 (untested).
68848
68849         2006-06-21  Bruno Haible  <bruno@clisp.org>
68850
68851                 Avoid warnings from recent versions of mcs.
68852                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68853                 -o, -L, -r any more. Use options documented since mcs-1.0
68854                 instead. Similarly for -g.
68855
68856         2005-12-04  Bruno Haible  <bruno@clisp.org>
68857
68858                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68859                 .resources, not .resource.
68860
68861         2005-07-09  Bruno Haible  <bruno@clisp.org>
68862
68863                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68864                 add a .dll suffix.
68865                 Reported by Mark Junker <mjscod@gmx.de>.
68866
68867         2006-07-22  Bruno Haible  <bruno@clisp.org>
68868
68869                 * modules/gettext: Upgrade to gettext-0.15.
68870                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68871                 m4/visibility.m4.
68872                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68873
68874 2006-07-22  Bruno Haible  <bruno@clisp.org>
68875
68876         Merge from GNU gettext 0.15.
68877
68878         2006-03-25  Bruno Haible  <bruno@clisp.org>
68879
68880                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
68881
68882         2006-07-21  Bruno Haible  <bruno@clisp.org>
68883
68884                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
68885                 "1.1".
68886
68887         2006-05-09  Bruno Haible  <bruno@clisp.org>
68888
68889                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
68890                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
68891                 for the conftestver execution.
68892
68893         2006-05-01  Bruno Haible  <bruno@clisp.org>
68894
68895                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
68896                 optional target-version argument. Verify that the compiler
68897                 groks source of the specified source-version, or add -source
68898                 option as necessary. Verify that the compiler produces
68899                 bytecode in the specified target-version, or add -target and
68900                 -source options as necessary. Make the result of the test
68901                 available as variable CONF_JAVAC. Also log error output in
68902                 config.log.
68903
68904         2006-03-11  Bruno Haible  <bruno@clisp.org>
68905
68906                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
68907
68908         2006-05-09  Bruno Haible  <bruno@clisp.org>
68909
68910                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
68911                 CLASSPATH_SEPARATOR to a semicolon.
68912
68913         2006-03-12  Bruno Haible  <bruno@clisp.org>
68914
68915                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68916                 available as variable CONF_JAVA, for subsequent autoconf
68917                 tests. Also log error output in config.log.
68918
68919         2006-07-19  Bruno Haible  <bruno@clisp.org>
68920
68921                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68922                 that getline works on glibc2 systems. Needed to avoid trouble
68923                 in relocatable.c.
68924                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68925
68926         2005-12-04  Bruno Haible  <bruno@clisp.org>
68927
68928                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68929                 launcher (untested).
68930
68931         2005-12-04  Bruno Haible  <bruno@clisp.org>
68932
68933                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68934
68935         2006-07-22  Bruno Haible  <bruno@clisp.org>
68936
68937                 * gettext.m4: Update from GNU gettext-0.15.
68938                 * nls.m4: Likewise.
68939                 * po.m4: Likewise.
68940                 * inttypes-pri.m4: Likewise.
68941                 * inttypes-h.m4: Renamed from inttypes.m4.
68942                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68943
68944 2006-07-22  Bruno Haible  <bruno@clisp.org>
68945
68946         Merge from GNU gettext 0.15.
68947
68948         2005-07-05  Bruno Haible  <bruno@clisp.org>
68949
68950                 * printf-args.c (printf_fetchargs): Work around broken
68951                 definition of wint_t on mingw.
68952
68953         2005-02-12  Bruno Haible  <bruno@clisp.org>
68954
68955                 * xallocsa.h: Add extern "C" for C++.
68956
68957         2006-05-17  Bruno Haible  <bruno@clisp.org>
68958
68959                 Cygwin portability.
68960                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68961
68962         2006-04-30  Bruno Haible  <bruno@clisp.org>
68963
68964                 * progreloc.c: Include <mach-o/dyld.h> if available.
68965                 (find_executable): Use _NSGetExecutablePath when possible.
68966
68967         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68968
68969                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68970                 function.
68971
68972         2005-12-29  Bruno Haible  <bruno@clisp.org>
68973
68974                 * progreloc.c (set_program_name_and_installdir): Fix
68975                 compilation error.
68976
68977         2005-12-04  Bruno Haible  <bruno@clisp.org>
68978
68979                 Cygwin portability.
68980                 * progreloc.c: Include <windows.h> also on Cygwin.
68981                 (find_executable): Add support for Cygwin.
68982                 (set_program_name_and_installdir): Handle also platforms with
68983                 nonempty EXEEXT.
68984
68985         2006-07-11  Bruno Haible  <bruno@clisp.org>
68986
68987                 * javacomp.c: Fix a comment.
68988                 Reported by Jim Meyering.
68989
68990         2006-04-30  Bruno Haible  <bruno@clisp.org>
68991
68992                 * javacomp.h (compile_java_class): Add source_version,
68993                 target_version arguments.
68994                 * javacomp.c: Rewritten to choose only a compiler that
68995                 respects the specified source_version and target_version.
68996
68997         2006-06-27  Bruno Haible  <bruno@clisp.org>
68998
68999                 Assume correct S_ISDIR macro.
69000                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69001
69002         2006-07-22  Bruno Haible  <bruno@clisp.org>
69003
69004                 * javaversion.h: New file, from GNU gettext.
69005                 * javaversion.c: New file, from GNU gettext.
69006                 * javaversion.java: New file, from GNU gettext.
69007                 * javaversion.class: New file, from GNU gettext.
69008
69009         2006-05-17  Bruno Haible  <bruno@clisp.org>
69010
69011                 Cygwin portability.
69012                 * javaexec.c (execute_java_class): Test for jview program
69013                 also on Cygwin.
69014
69015         2006-04-09  Bruno Haible  <bruno@clisp.org>
69016
69017                 * fatal-signal.c: Don't include string.h.
69018                 (at_fatal_signal): Use a copying loop instead of memcpy.
69019
69020         2005-12-04  Bruno Haible  <bruno@clisp.org>
69021
69022                 * csharpexec.c: Add support for 'clix' launcher (untested).
69023                 (execute_csharp_using_sscli): New function.
69024                 (execute_csharp_program): Call it.
69025
69026         2006-06-21  Bruno Haible  <bruno@clisp.org>
69027
69028                 Avoid warnings from recent versions of mcs.
69029                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69030                 -o, -L, -r any more. Use options documented since mcs-1.0
69031                 instead. Similarly for -g.
69032
69033         2005-07-09  Bruno Haible  <bruno@clisp.org>
69034
69035                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69036                 add a .dll suffix.
69037                 Reported by Mark Junker <mjscod@gmx.de>.
69038
69039         2006-06-17  Bruno Haible  <bruno@clisp.org>
69040
69041                 * config.charset: Update for NetBSD 3.0.
69042
69043         2006-05-17  Bruno Haible  <bruno@clisp.org>
69044
69045                 Cygwin portability.
69046                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69047
69048         2006-05-16  Bruno Haible  <bruno@clisp.org>
69049
69050                 * localcharset.c [CYGWIN]: Include <windows.h>.
69051                 (get_charset_aliases): For Cygwin, return the same CPxxx
69052                 aliases list as under WIN32.
69053                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69054                 the environment variables. Fall back to GetACP().
69055
69056         2006-04-05  Bruno Haible  <bruno@clisp.org>
69057
69058                 * config.charset: Update Juan Manuel Guerrero's address.
69059
69060         2005-02-12  Bruno Haible  <bruno@clisp.org>
69061
69062                 * allocsa.h: Add extern "C" for C++.
69063
69064         2005-02-10  Bruno Haible  <bruno@clisp.org>
69065
69066                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69067                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69068
69069         2006-07-22  Bruno Haible  <bruno@clisp.org>
69070
69071                 * gettext.h: Update to GNU gettext-0.15.
69072
69073 2006-07-22  Bruno Haible  <bruno@clisp.org>
69074
69075         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69076         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69077         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69078
69079 2006-07-21  Eric Blake  <ebb9@byu.net>
69080
69081         * modules/stdlib-safer: New file.
69082         * MODULES.html.sh (File stream based Input/Output): Add
69083         stdlib-safer.
69084
69085 2006-07-21  Eric Blake  <ebb9@byu.net>
69086
69087         * lib/stdlib-safer.h: New file from coreutils, required by
69088         stdlib--.h.
69089
69090 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69091
69092         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69093
69094 2006-07-20  Bruno Haible  <bruno@clisp.org>
69095
69096         * gnulib-tool: Recognize new option --assume-autoconf.
69097         (autoconf_minversion): New variable.
69098         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69099
69100 2006-07-20  Bruno Haible  <bruno@clisp.org>
69101
69102         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69103
69104 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69105
69106         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69107         Reindent and repaginate.
69108
69109 2006-07-19  Derek Price  <derek@ximbiot.com>
69110
69111         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69112         Correct grammar.
69113
69114 2006-07-17  Bruno Haible  <bruno@clisp.org>
69115
69116         * modules/list: New file.
69117         * modules/array-list: New file.
69118         * modules/carray-list, modules/carray-list-tests: New files.
69119         * modules/linked-list, modules/linked-list-tests: New files.
69120         * modules/avltree-list, modules/avltree-list-tests: New files.
69121         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69122         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69123         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69124         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69125         * modules/oset: New file.
69126         * modules/array-oset: New file.
69127         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69128         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69129         * tests/test-carray_list.c: New file.
69130         * tests/test-linked_list.c: New file.
69131         * tests/test-avltree_list.c: New file.
69132         * tests/test-rbtree_list.c: New file.
69133         * tests/test-linkedhash_list.c: New file.
69134         * tests/test-avltreehash_list.c: New file.
69135         * tests/test-rbtreehash_list.c: New file.
69136         * tests/test-avltree_oset.c: New file.
69137         * tests/test-rbtree_oset.c: New file.
69138         * MODULES.html.sh (Container data structures): New section.
69139
69140 2006-07-17  Bruno Haible  <bruno@clisp.org>
69141
69142         * m4/gl_list.m4: New file.
69143
69144 2006-07-17  Bruno Haible  <bruno@clisp.org>
69145
69146         * lib/gl_list.h: New file.
69147         * lib/gl_list.c: New file.
69148         * lib/gl_array_list.h: New file.
69149         * lib/gl_array_list.c: New file.
69150         * lib/gl_carray_list.h: New file.
69151         * lib/gl_carray_list.c: New file.
69152         * lib/gl_linked_list.h: New file.
69153         * lib/gl_linked_list.c: New file.
69154         * lib/gl_anylinked_list1.h: New file.
69155         * lib/gl_anylinked_list2.h: New file.
69156         * lib/gl_avltree_list.h: New file.
69157         * lib/gl_avltree_list.c: New file.
69158         * lib/gl_anyavltree_list1.h: New file.
69159         * lib/gl_anyavltree_list2.h: New file.
69160         * lib/gl_rbtree_list.h: New file.
69161         * lib/gl_rbtree_list.c: New file.
69162         * lib/gl_anyrbtree_list1.h: New file.
69163         * lib/gl_anyrbtree_list2.h: New file.
69164         * lib/gl_anytree_list1.h: New file.
69165         * lib/gl_anytree_list2.h: New file.
69166         * lib/gl_linkedhash_list.h: New file.
69167         * lib/gl_linkedhash_list.c: New file.
69168         * lib/gl_anyhash_list1.h: New file.
69169         * lib/gl_anyhash_list2.h: New file.
69170         * lib/gl_avltreehash_list.h: New file.
69171         * lib/gl_avltreehash_list.c: New file.
69172         * lib/gl_rbtreehash_list.h: New file.
69173         * lib/gl_rbtreehash_list.c: New file.
69174         * lib/gl_anytreehash_list1.h: New file.
69175         * lib/gl_anytreehash_list2.h: New file.
69176
69177         * lib/gl_oset.h: New file.
69178         * lib/gl_oset.c: New file.
69179         * lib/gl_array_oset.h: New file.
69180         * lib/gl_array_oset.c: New file.
69181         * lib/gl_avltree_oset.h: New file.
69182         * lib/gl_avltree_oset.c: New file.
69183         * lib/gl_rbtree_oset.h: New file.
69184         * lib/gl_rbtree_oset.c: New file.
69185         * lib/gl_anytree_oset.h: New file.
69186
69187 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * m4/mkancesdirs.m4: New file.
69190         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69191         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69192         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69193         it.
69194
69195 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69198         * lib/mkancesdirs.h: New files.
69199         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69200         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69201         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69202         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69203         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69204         callers changed.  Revamp internals significantly, by not
69205         attempting to create directories that are temporarily more
69206         permissive than the final results.  Do not attempt to use
69207         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69208         This removes some race conditions, fixes some bugs, and simplifies
69209         things.  Use new dirchownmod function to do owner and mode changes.
69210         * lib/mkdir-p.h: Likewise.
69211         * lib/modechange.c (octal_to_mode): New function.
69212         (struct mode_change): New member mentioned.
69213         (make_node_op_equals): New arg mentioned.  All callers changed.
69214         (mode_compile): Keep track of which mode bits the user has explicitly
69215         mentioned.
69216         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69217         New arg PMODE_BITS, to keep track of which mode bits the user
69218         mentioned; it treats S_ISUID and S_ISGID speciall.
69219         All callers changed.
69220         * lib/modechange.h: Likewise.
69221
69222 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * MODULES.html.sh: Add mkancestors.
69225         * modules/mkancesdirs: New module.
69226         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69227         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69228         The chdir-safer and afs files are now orphans; I'll remove them
69229         unless someone speaks up.
69230         Add lib/dirchownmod.c, lib/dirchownmod.h.
69231         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69232         Add lchown, mkancesdirs.
69233         (Maintainer): Add self.
69234
69235 2006-07-15  Karl Berry  <karl@gnu.org>
69236
69237         * gnulib-tool: help message wording/arrangement.
69238
69239 2006-07-14  Simon Josefsson  <jas@extundo.com>
69240
69241         * doc/gnulib.texi (Libtool and Windows): New section.
69242
69243 2006-07-12  Simon Josefsson  <jas@extundo.com>
69244
69245         * modules/gendocs (License): Fix license, approved by Karl.
69246
69247 2006-07-12  Eric Blake  <ebb9@byu.net>
69248
69249         * MODULES.html.sh: Add gendocs.
69250
69251 2006-07-11  Eric Blake  <ebb9@byu.net>
69252
69253         * modules/fdl: New module, to install doc/fdl.texi.
69254         * MODULES.html.sh: Add new section for documentation modules.
69255         * gnulib-tool: Avoid space-tab.
69256         (--doc-base): New option, to manage files from doc.
69257
69258 2006-07-11  Eric Blake  <ebb9@byu.net>
69259
69260         * m4/absolute-header.m4: Fix comments to match recent change.
69261
69262 2006-07-11  Eric Blake  <ebb9@byu.net>
69263
69264         * gnulib-tool: List --doc-base before --tests-base.
69265
69266 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69267
69268         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69269
69270 2006-07-11  Bruno Haible  <bruno@clisp.org>
69271
69272         * README: Mention where to put documentation.
69273
69274 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69275
69276         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69277
69278 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69279
69280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69281         to stdint.m4.
69282
69283 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69286         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69287         "no/such/file/stdint.h" when there is no such file, so that
69288         the resulting C code can be parsed by dodgy compilers.
69289         Problems reported by Bob Proulx.
69290
69291 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69292
69293         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69294         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69295         macros into the GNU _D_EXACT_NAMLEN.
69296         * lib/savedir.c:  Likewise.
69297         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69298
69299 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69300         and Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69303         * m4/savedir.m4:
69304         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69305         macros into the GNU _D_EXACT_NAMLEN.
69306
69307 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69310         around the absolute name, to work around a problem with the HP-UX
69311         11.23 native C compiler, reported by Bob Proulx.
69312
69313 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * doc/maintain.texi, make-stds.texi: Sync from
69316         <http://savannah.gnu.org/projects/gnustandards>.
69317
69318 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69321
69322 2006-07-09  Jim Meyering  <jim@meyering.net>
69323
69324         * m4/glob.m4: Remove a doubled word in a comment.
69325
69326 2006-07-09  Jim Meyering  <jim@meyering.net>
69327
69328         * lib/argp-pv.c: Remove a doubled word in a comment.
69329         * lib/check-version.c (check_version): Likewise.
69330         * lib/javacomp.c (compile_java_class): Likewise.
69331
69332 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69335         for the benefit of people using Autoconf 2.60.  If you want to
69336         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69337         (or m4/onceonly.m4, if pre-2.57) manually.
69338
69339 2006-07-08  Jim Meyering  <jim@meyering.net>
69340
69341         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69342         comment.
69343         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69344         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69345         comment.
69346
69347 2006-07-08  Jim Meyering  <jim@meyering.net>
69348
69349         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69350
69351 2006-07-07  Simon Josefsson  <jas@extundo.com>
69352
69353         * tests/test-crc.c: Change expected crc value, the test vector
69354         were probably computed using the old broken crc.c?
69355
69356 2006-07-06  Simon Josefsson  <jas@extundo.com>
69357
69358         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69359         now the canonical place for the M4 file).
69360
69361         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69362         from the sys_socket dependency now.
69363
69364         * modules/inet_pton (Files): Ditto.
69365
69366         * modules/inet_ntop (Files): Ditto.
69367
69368 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69369
69370         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69371         not gl_PREREQ_GETUSERSHELL.
69372
69373 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69374
69375         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69376         with only one argument, for Autoconf 2.60.
69377         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69378         expand to nothing, so add a shell command to avoid syntax error.
69379         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69380
69381 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69382
69383         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69384
69385 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69388         no longer needed.  Check for isblank decl.
69389         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69390         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69391         of existence.
69392
69393 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * lib/getloadavg.c: Use __VMS, not VMS.
69396         * lib/getopt.c: Likewise.
69397         * lib/getpagesize.h: Likewise.
69398         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69399         and probably does not work.
69400
69401 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * lib/.cppi-disable: Add wcwidth.
69404         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69405         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69406         (ISGRAPH): Remove.  All uses changed to isgraph.
69407         (FOLD) [!defined _LIBC]: Remove special case.
69408         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69409         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69410         HAVE_ISBLANK.
69411         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69412         case.
69413
69414 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69415
69416         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69417         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69418         brackets.  Other minor changes to suppress some compiler
69419         warnings.
69420
69421 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69422         and Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69425         of invoking obsolescent AC_HEADER_DIRENT macro.
69426         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69427         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69428         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69429         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69430         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69431         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69432         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69433         * m4/readdir.m4: Remove; no longer needed.
69434
69435 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69436         and Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69439         Don't worry about this obsolete case any more.
69440         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69441         directories.
69442         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69443         worry about this obsolete case any more.
69444         * lib/fts.c: Likewise.
69445         * lib/getcwd.c: Likewise.
69446         * lib/glob.h: Likewise.
69447         * lib/savedir.c: Likewise.
69448
69449 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69452         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69453         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69454         needed.
69455         All uses removed.
69456         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69457         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69458         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69459         needed.
69460         * m4/getdate.m4 (gl_GETDATE): Likewise.
69461         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69462         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69463         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69464         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69465         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69466         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69467         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69468         needed.
69469
69470 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         * lib/memcasecmp.c: Include <limits.h>.
69473         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69474         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69475         Don't assume isdigit succeeds only on '0' through '9'.
69476
69477 2006-07-05  Eric Blake  <ebb9@byu.net>
69478
69479         * modules/getaddrinfo (Depends-on): Add snprintf.
69480
69481 2006-07-05  Eric Blake  <ebb9@byu.net>
69482
69483         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69484         to avoid 'header present but could not be compiled' on cygwin.
69485
69486 2006-07-05  Eric Blake  <ebb9@byu.net>
69487
69488         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69489         missing from netdb.h.
69490         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69491
69492 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69493
69494         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69495         no longer needed.
69496         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69497         * m4/getdate.m4 (gl_GETDATE): Likewise.
69498         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69499         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69500         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69501         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69502         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69503
69504 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69505
69506         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69507         All uses of is_space replaced by isspace.
69508         * lib/exit.h: Don't talk about STDC_HEADERS.
69509         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69510         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69511         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69512         replaced by isprint etc.
69513         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69514         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69515         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69516         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69517         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69518         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69519
69520 2006-07-05  Bruno Haible  <bruno@clisp.org>
69521
69522         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69523         the function exists, before testing against AIX.
69524         Reported by Martin Lambers <marlam@marlam.de>.
69525
69526 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69529         From Mark D. Baushke.
69530
69531 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69534         to the absolute name, not just one, to bypass Sun C 5.8's
69535         "warning: #include of /usr/include/... may be non-portable".
69536
69537 2006-07-04  Eric Blake  <ebb9@byu.net>
69538
69539         * modules/dirname-tests: New test module.
69540         * tests/test-dirname.c: New file, replacing dirname.c
69541         TEST_DIRNAME section that was recently deleted.
69542
69543 2006-07-04  Bruno Haible  <bruno@clisp.org>
69544
69545         Assume ANSI C header files and <ctype.h> functions.
69546         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69547         (mbsnwidth): Use isprint, iscntrl instead.
69548
69549 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         Merge from coreutils.
69552         * MODULES.html.sh: Add xstrtold.
69553         * modules/xstrtold: New file.
69554         * modules/cycle-check (Files): Add lib/same-inode.h.
69555         * modules/dirname (Files): Add m4/double-slash-root.m4.
69556         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69557         * modules/mkdir-p (Files): Add lib/same-inode.h.
69558         * modules/same (Files): Add lib/same-inode.h.
69559
69560 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69563         This is to keep the terminology clean; POSIX talks about
69564         "absolute pathnames", not "full pathnames", but the GNU
69565         Coding Standards say to use "path" for something else;
69566         so use "absolute" to keep both sides happy.
69567         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69568         Set gl_absolute_header, not gl_full_header_path.
69569         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69570         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69571         All uses changed.
69572
69573         Merge from coreutils.
69574
69575         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69578         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69579         want to require the building of c-strtod.o.
69580         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69581         needs -lm directly.
69582         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69583
69584         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69587         --as-needed option if available.  Problem reported by Albert Chin in
69588         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69589         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69590         cc merely issues a bunch of annoying warnings for --as-needed
69591         (this problem was reported by Bob Proulx).  Also, try linking with
69592         -lm to detect a bug in binutils 2.16 (this problem was reported
69593         by Ralf Wildenhues).
69594
69595         2006-06-18  Jim Meyering  <jim@meyering.net>
69596
69597         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69598         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69599         macro.
69600         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69601         also check for glibc-2.4's abort-inducing bug.
69602
69603         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69604         Low-probability clean-up should be to use rmdir to get rid of
69605         the just-created directory, not unlink.
69606
69607         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69608         configure fail, and request a bug report to inform us about it.
69609         Add a comment that, barring reports to the contrary, in 2007 we'll
69610         assume ftruncate is universally available.
69611
69612         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69615
69616         2006-03-12  Jim Meyering  <jim@meyering.net>
69617
69618         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69619         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69620         * m4/same.m4 (gl_SAME): Likewise.
69621         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69622
69623         2006-03-11  Eric Blake  <ebb9@byu.net>
69624
69625         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69626         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69627         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69628         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69629
69630 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69633         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69634         reported by Mark D. Baushke, one in
69635         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69636
69637         Merge from coreutils.
69638
69639         * lib/.cppi-disable: Add stdint_.h.
69640         * lib/.cvsignore: Add stdint.h.
69641
69642         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69643
69644         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69645         both double and long double versions.
69646         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69647         * lib/xstrtold.c: New file.
69648         * lib/xstrtod.h (xstrtold): New decl.
69649
69650         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         * lib/filemode.c (setst): Remove.
69653         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69654         (arguably) clearer, and the generated code is a bit smaller on my
69655         Debian GNU/Linux stable x86 host.
69656
69657         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69660         Assume that filemode.h includes sys/types.h and sys/stat.h.
69661         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69662         (ftypelet): Reorder to put common cases first, for efficiency.
69663         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69664         to do 'M'.
69665         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69666         of 10, for compatibility with FreeBSD.  All callers changed.
69667         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69668         types that can't be deduced solely from st_mode.  First arg is now a
69669         const pointer.
69670         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69671         (strmode): Renamed from mode_string.
69672         (filemodestring): New decl.
69673         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69674         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69675         needed.
69676         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69677
69678         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69679
69680         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69681         fsusage.h now does that.  Include fsusage.h first, to test interface.
69682         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69683         at most one method (the old code could have generated decls that
69684         didn't conform to C89, not that this was ever exercised).
69685         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69686
69687         2006-03-19  Jim Meyering  <jim@meyering.net>
69688
69689         Work even in a chroot where d_ino values for entries in "/"
69690         don't match the stat.st_ino values for the same names.
69691         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69692         number, iterate through all entries again, using lstat instead.
69693         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69694         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69695
69696         * lib/getcwd.c (__getcwd): Clarify a comment.
69697         Use memcpy in place of a call to strcpy.
69698
69699         2006-03-12  Jim Meyering  <jim@meyering.net>
69700
69701         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69702         matches that of the current directory (which we're about to chdir ".."
69703         out of), then save the dev-ino of the parent, instead.
69704
69705         * lib/same-inode.h (SAME_INODE): New file/macro.
69706         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69707         Include "same-inode.h", instead.
69708         * lib/same.c: Likewise.
69709         * lib/cycle-check.h: Include "same-inode.h".
69710         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69711         * lib/cycle-check.c (SAME_INODE): Remove definition.
69712         * lib/root-dev-ino.h: Include "same-inode.h".
69713
69714         2006-03-11  Eric Blake  <ebb9@byu.net>
69715
69716         * lib/same.c (same_name): s/base_name/last_component/
69717         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69718         * lib/filenamecat.c (file_name_concat): Likewise.
69719
69720         2006-03-11  Eric Blake  <ebb9@byu.net>,
69721                     Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69724         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69725         drive prefix.
69726         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69727         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69728         (last_component): New method.
69729         * lib/dirname.c (dir_len): Determine when drive letters need a
69730         subsequent slash.  Preserve // when it is special.
69731         (dir_name): Don't append dot when drive letter is absolute.
69732         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69733         * lib/basename.c (base_name): New semantics - malloc the result.
69734         Preserve // when it is special.  Preserve relative files that look
69735         like drive letters.
69736         (base_len): Preserve // when it is special.
69737         (last_component): New method, similar to old base_name semantics.
69738         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69739         base_name.  Strip redundant slashes from ///.
69740
69741 2006-07-03  Jim Meyering  <jim@meyering.net>
69742
69743         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69744         macro is used before the first cycle_check call.
69745
69746 2006-07-03  Eric Blake  <ebb9@byu.net>
69747
69748         * modules/dirname (Depends-on): Add xstrndup.
69749
69750 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69753         test cases, so that config.log is a bit easier to follow.
69754
69755 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69758         both are 64 bits, since this seems to be the tradition, and this
69759         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69760         we ever run into a host that prefers long long to long in this
69761         case, we'll need another configure-time test.  Problem reported by
69762         Jim Meyering.
69763
69764 2006-07-02  Eric Blake  <ebb9@byu.net>
69765
69766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69767
69768 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * modules/inttypes (Depends-on): No longer depends on stdint.
69771         * modules/stdint (Description): Say more about assumptions.
69772         Say that the fast types might differ.  Say macros are used.
69773         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69774         (Makefile.am): Revise list of substituted symbols to match
69775         new stdint.m4.
69776         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69777         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69778         * tests/test-stdint.c (verify_same_types)
69779         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69780         the code conforms to C99/C89.
69781         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69782         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69783
69784 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69787         but fix a bug, by requiring at least 64 bits.
69788         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69789         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69790         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69791         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69792
69793         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69794         changes.  Make 2.59 a prerequisite.  Check and substitute for
69795         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69796         inttypes.h.  Do not use special include files; just use the
69797         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69798         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69799         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69800         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69801         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69802         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69803         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69804         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69805         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69806         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69807         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69808         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69809         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69810         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69811         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69812         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69813         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69814         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69815         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69816         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69817         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69818         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69819         not check for things that C99 does not require, e.g., int8_t.  If
69820         a test isn't needed unless <stdint.h> isn't working, and is
69821         unlikely to be needed for any other reason, then don't do it
69822         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69823         size_t, since we assume C89 freestanding at least.  Do not check
69824         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69825         the right thing even if the types are not defined.  Instead use:
69826         (gl_STDINT_TYPE_PROPERTIES): New macro.
69827         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69828         testing whether <sys/types.h> clashes, as Autoconf does this for
69829         us now.  All uses removed.
69830         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69831         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69832         (gl_CHECK_TYPE_SAME):
69833         Remove; no longer needed.
69834         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69835         exists, since we'll return 0 anyway in that case.
69836         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69837
69838 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69839
69840         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69841         possible collision with system files.
69842         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69843         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69844         WCHAR_MIN and WCHAR_MAX in this case.
69845         (<stddef.h>): Do not include; no longer needed.
69846         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69847         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69848         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69849         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69850         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69851         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69852         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69853         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69854         !defined(__c99))]: Include in this case too, since it's harmless
69855         now.
69856         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69857         dangerous to do so.
69858         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69859         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69860         (_STDINT_MIN, _STDINT_MAX): New macros.
69861         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69862         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69863         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69864         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69865         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69866         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69867         macros, not typedefs; this simplifies things quite a bit.
69868         Use long int for all types narrower than int64_t.
69869         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69870         Define in terms of long long int or int64_t or long int,
69871         not int64_t or int32_t.  This saves some compile-time testing.
69872         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69873         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
69874         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
69875         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
69876         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
69877         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
69878         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
69879         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
69880         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
69881         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
69882         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69883         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69884         undef any previous version and define our own version, for
69885         simplicity and consistency with the new macros for types.
69886         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69887         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69888         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
69889         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
69890         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
69891         @WINT_T_SUFFIX@ to keep things simple here.
69892         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
69893         Simplify by assuming typical 8/16/32/64 host, since we're
69894         already doing that elsewhere anyway.
69895         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
69896         and assume long long int is 64 bits if available.  This
69897         speeds up 'configure'.
69898
69899 2006-07-01  Eric Blake  <ebb9@byu.net>
69900
69901         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
69902         Reported by Andreas Buening.
69903
69904 2006-07-01  Eric Blake  <ebb9@byu.net>
69905
69906         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
69907
69908 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69909
69910         * lib/getaddrinfo.c: fixed typo
69911
69912 2006-06-29  Jim Meyering  <jim@meyering.net>
69913
69914         * modules/strftime (Maintainer): Add my name, since with the
69915         FPRINTFTIME changes strftime.c has forked from glibc.
69916
69917 2006-06-29  Eric Blake  <ebb9@byu.net>
69918
69919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69920
69921 2006-06-29  Eric Blake  <ebb9@byu.net>
69922
69923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69924
69925 2006-06-29  Eric Blake  <ebb9@byu.net>
69926
69927         * lib/stat_.h: New file.
69928
69929 2006-06-29  Eric Blake  <ebb9@byu.net>
69930
69931         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69932         unused static function.
69933
69934 2006-06-29  Eric Blake  <ebb9@byu.net>
69935
69936         * doc/functions.texi (Function Portability): Document missing lstat
69937         on mingw.
69938
69939 2006-06-29  Eric Blake  <ebb9@byu.net>
69940
69941         * MODULES.html.sh: Add sys_stat.
69942         * modules/sys_stat: New module.
69943         * modules/mkstemp (Depends-on): Add sys_stat.
69944
69945 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69946
69947         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69948
69949 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69950
69951         * m4/c-bs-a.m4: Removed.
69952
69953 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69954
69955         * lib/strftime.c: Assume strftime() exists.
69956
69957 2006-06-29  Derek Price  <derek@ximbiot.com>
69958
69959         * modules/c-bs-a: Removed - \a is C89.
69960         * MODULES.html.sh: Remove c-bs-a.
69961
69962 2006-06-29  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/wcwidth (License): Change to LGPL.
69965
69966 2006-06-28  Simon Josefsson  <jas@extundo.com>
69967
69968         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69969         on _WIN32.
69970
69971         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69972         getnameinfo.
69973
69974 2006-06-28  Simon Josefsson  <jas@extundo.com>
69975
69976         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69977
69978 2006-06-28  Simon Josefsson  <jas@extundo.com>
69979
69980         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69981         functions there.  It will succeed on Windows XP, but on Windows
69982         2000 and (presumably) earlier, it will fail, and use the internal
69983         re-implementation.
69984         (use_win32_p): New function.
69985         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69986         Support AI_NUMERICSERV to disable getservbyname.
69987         (getnameinfo): New function, only supports
69988         NI_NUMERICHOST|NI_NUMERICSERV for now.
69989
69990         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69991         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69992         getnameinfo.
69993
69994 2006-06-28  Eric Blake  <ebb9@byu.net>
69995
69996         * modules/wcwidth: New file.
69997         * modules/mbchar (Depends-on): Add wcwidth.
69998         * modules/mbswidth (Depends-on): Add wcwidth.
69999         * MODULES.html.sh: Add wcwidth.
70000
70001 2006-06-28  Eric Blake  <ebb9@byu.net>
70002
70003         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70005
70006 2006-06-28  Eric Blake  <ebb9@byu.net>
70007
70008         * lib/xvasprintf.h: Fix comments.
70009
70010 2006-06-28  Eric Blake  <ebb9@byu.net>
70011
70012         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70013         * lib/mbswidth.c (wcwidth): Move from here...
70014         * lib/wcwidth.h: ...to this new file.
70015
70016 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70017
70018         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70019
70020         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70021         it's obsolete.
70022         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70023
70024 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70025
70026         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70027         Autoconf 2.60 says this stuff was obsolete.
70028
70029 2006-06-28  Bruno Haible  <bruno@clisp.org>
70030
70031         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70032
70033 2006-06-28  Bruno Haible  <bruno@clisp.org>
70034
70035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70036         gt_TYPE_WCHAR_T.
70037
70038 2006-06-28  Bruno Haible  <bruno@clisp.org>
70039
70040         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70041         declaration for wcwidth.
70042         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70043
70044 2006-06-28  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70047         (mkdir): Define using _mkdir.
70048
70049 2006-06-28  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/getaddrinfo.h: Fix POSIX URL.
70052         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70053         _WIN32.
70054         (use_win32_p): Make static.
70055         (getaddrinfo): Reject service name if it is empty or does not consist
70056         solely of decimal digits, or if its value is > 65535.
70057         (getnameinfo): Remove useless casts.
70058
70059 2006-06-27  Simon Josefsson  <jas@extundo.com>
70060
70061         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70062         Eggert and Martin Lambers.
70063
70064 2006-06-27  Simon Josefsson  <jas@extundo.com>
70065
70066         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70067         Eggert and Martin Lambers.
70068
70069 2006-06-27  Bruno Haible  <bruno@clisp.org>
70070
70071         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70072         result to 0, not to empty.
70073         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70074
70075 2006-06-27  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70078
70079 2006-06-26  Simon Josefsson  <jas@extundo.com>
70080
70081         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70082         present.
70083
70084 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70085
70086         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70087         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70088         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70089
70090 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70091
70092         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70093
70094 2006-06-26  Bruno Haible  <bruno@clisp.org>
70095
70096         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70097
70098 2006-06-26  Bruno Haible  <bruno@clisp.org>
70099
70100         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70101
70102 2006-06-26  Bruno Haible  <bruno@clisp.org>
70103
70104         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70105         SGI C compiler in pre-C99 mode.
70106         Suggested by Mark D. Baushke and Larry Jones.
70107
70108 2006-06-26  Bruno Haible  <bruno@clisp.org>
70109
70110         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70111         WCHAR_MAX.
70112         Reported by Mark D. Baushke and Larry Jones.
70113
70114 2006-06-26  Bruno Haible  <bruno@clisp.org>
70115
70116         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70117         in pre-C99 mode.
70118         Suggested by Mark D. Baushke and Larry Jones.
70119
70120 2006-06-23  Simon Josefsson  <jas@extundo.com>
70121             Bruno Haible  <bruno@clisp.org>
70122
70123         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70124         Emit mostlyclean-local rule.
70125         (func_emit_tests_Makefile_am): Likewise.
70126         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70127
70128 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70129
70130         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70131
70132 2006-06-23  Bruno Haible  <bruno@clisp.org>
70133
70134         * tests/test-stdint.c: Update to match ISO C 99 Technical
70135         Corrigendum 1.
70136
70137 2006-06-23  Bruno Haible  <bruno@clisp.org>
70138
70139         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70140
70141 2006-06-23  Bruno Haible  <bruno@clisp.org>
70142
70143         * lib/stdint_.h: Treat IRIX like OpenBSD.
70144
70145 2006-06-23  Bruno Haible  <bruno@clisp.org>
70146
70147         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70148         ISO C 99 Technical Corrigendum 1.
70149
70150 2006-06-22  Simon Josefsson  <jas@extundo.com>
70151
70152         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70153         MinGW.
70154
70155 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70158         needed.  Some compiler complained about some of them.  Problem reported
70159         by Larry Jones in
70160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70161
70162 2006-06-21  Simon Josefsson  <jas@extundo.com>
70163
70164         * tests/test-getaddrinfo.c: New file.
70165
70166         * modules/getaddrinfo-tests: New file.
70167
70168         * MODULES.html.sh: Add inet_pton.
70169
70170         * modules/inet_pton: New file.
70171
70172 2006-06-21  Simon Josefsson  <jas@extundo.com>
70173
70174         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70175         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70176         of using the (limited) gnulib implementation on Windows XP.
70177
70178         * m4/inet_pton.m4: New file.
70179
70180 2006-06-21  Simon Josefsson  <jas@extundo.com>
70181
70182         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70183         variable.
70184
70185         * lib/socket_.h: Don't define WINVER.
70186
70187         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70188         slightly modified to work in gnulib.
70189
70190 2006-06-21  Simon Josefsson  <jas@extundo.com>
70191
70192         * doc/gnulib.texi (Windows sockets): Add.
70193
70194 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70195
70196         * lib/read-file.c (fread_file): Start with buffer allocation of
70197         0 bytes rather than 1 byte; this simplifies the code.
70198         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70199         code to free buffer and save/restore errno.
70200         (internal_read_file): Remove unused local.
70201
70202 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70205         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70206         Problem reported by Denis Excoffier in
70207         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70208
70209 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70210
70211         * modules/sys_socket, modules/socklen: Include sys/types since
70212         FreeBSD 4.x's sys/socket.h needs it.
70213
70214 2006-06-19  Simon Josefsson  <jas@extundo.com>
70215
70216         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70217
70218 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70219
70220         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70221
70222 2006-06-19  Bruno Haible  <bruno@clisp.org>
70223
70224         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70225         and FULL_PATH_INTTYPES_H in angle brackets.
70226         Reported by Mark D. Baushke <mdb@gnu.org>.
70227
70228 2006-06-17  Eric Blake  <ebb9@byu.net>
70229
70230         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70231         errno.
70232
70233 2006-06-17  Bruno Haible  <bruno@clisp.org>
70234
70235         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70236         <sys/inttypes.h>.
70237
70238 2006-06-17  Bruno Haible  <bruno@clisp.org>
70239
70240         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70241         whether errno is declared. Assume <errno.h> declares errno.
70242
70243 2006-06-17  Bruno Haible  <bruno@clisp.org>
70244
70245         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70246
70247 2006-06-17  Bruno Haible  <bruno@clisp.org>
70248
70249         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70250         problem on Solaris 2.5.1.
70251
70252 2006-06-16  Eric Blake  <ebb9@byu.net>
70253
70254         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70255         * lib/unicodeio.c [!defined errno]: Likewise.
70256         * lib/strtol.c [!defined errno]: Likewise.
70257         * lib/strtod.c [!defined errno]: Likewise.
70258
70259 2006-06-15  Eric Blake  <ebb9@byu.net>
70260
70261         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70262
70263 2006-06-15  Eric Blake  <ebb9@byu.net>
70264
70265         * config/srclist.txt (ssize_t.m4): Lose sync.
70266
70267 2006-06-15  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/stdint (Files): Include m4/full-header-path.m4,
70270         m4/size_max.m4, m4/wchar_t.m4.
70271         (Makefile.am): Many more substitutions.
70272         * modules/stdint-tests: New file.
70273         * tests/test-stdint.c: New file.
70274
70275 2006-06-15  Bruno Haible  <bruno@clisp.org>
70276
70277         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70278         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70279         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70280         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70281         gl_CHECK_TYPE_SAME): New macros.
70282
70283 2006-06-15  Bruno Haible  <bruno@clisp.org>
70284
70285         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70286
70287 2006-06-15  Bruno Haible  <bruno@clisp.org>
70288
70289         * lib/stdint_.h: Rewritten to be fully auto-configured.
70290         Fixes bug on HP-UX/IA64.
70291
70292 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         * lib/getdate.y (__attribute__): Don't define if already defined.
70295         Problem reported by Larry Jones.
70296         * lib/utimens.c (__attribute__): Likewise.
70297
70298 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70301         reported by Andreas Schwab.
70302
70303 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70304             Bruno Haible  <bruno@clisp.org>
70305
70306         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70307         check for the declaration of strnlen and a run test that exposes the
70308         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70309         rpl_strndup.
70310
70311 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70312             Bruno Haible  <bruno@clisp.org>
70313
70314         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70315
70316 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70317
70318         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70319         compile test, for Tru64 4.0D.
70320
70321 2006-05-28  Karl Berry  <karl@gnu.org>
70322
70323         * config/srclist.txt (printf-args.c): lose sync.
70324
70325 2006-05-26  Martin Lambers  <marlam@marlam.de>
70326
70327         * lib/getpass.c: Updates the test for the native W32 API, and adds
70328         missing includes, thus fixing compilation warnings.
70329
70330 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70331
70332         * lib/exclude.c (exclude_fnmatch): New function.
70333         (excluded_file_name): Call exclude_fnmatch.
70334         * lib/exclude.h (excluded_file_name): New prototype
70335
70336 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70337
70338         * lib/tempname.c (small_open, large_open): New macros.
70339         (__open, __open64) [!_LIBC]: Remove.
70340         (__gen_tempname): Use small_open and large_open instead of __open
70341         and __open64.  This fixes a portability bug on HP-UX 11.11i
70342         reported by Simon Wing-Tang in
70343         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70344
70345 2006-05-24  Bruno Haible  <bruno@clisp.org>
70346
70347         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70348         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70349         Reported by Thorsten Maerz <torte@netztorte.de> via
70350         Aaron Stone <aaron@serendipity.cx>.
70351
70352 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70355         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70356         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70357         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70358         not really conditional on the cache.
70359         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70360
70361 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70364         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70365         (my_usleep): Don't mishandle maximum value.
70366
70367 2006-05-19  Jim Meyering  <jim@meyering.net>
70368
70369         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70370
70371 2006-05-17  Bruno Haible  <bruno@clisp.org>
70372
70373         Cygwin portability.
70374         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70375
70376 2006-05-17  Bruno Haible  <bruno@clisp.org>
70377
70378         * lib/stdint_.h: Fix recognition of Cygwin.
70379
70380 2006-05-15  Bruno Haible  <bruno@clisp.org>
70381
70382         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70383         on libtool patch by Ralf Wildenhues.
70384
70385 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70388         test for C99 conformance; (bool) 0.5 is an integer constant
70389         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70390         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70391
70392 2006-05-11  Simon Josefsson  <jas@extundo.com>
70393
70394         * m4/xvasprintf.m4: Fix obvious typo.
70395
70396 2006-05-11  Jim Meyering  <jim@meyering.net>
70397
70398         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70399         James Lemley.
70400
70401 2006-05-10  Simon Josefsson  <jas@extundo.com>
70402
70403         * lib/md4.c: Typo fix, update copyright years.
70404         (K1, K2): Don't use L because it turn computations into 64-bit on
70405         64-bit platforms.
70406
70407 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70410         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70411         unwanted sign propagation, e.g., on hosts with 64-bit int.
70412         There still are some problems with reeelly weird theoretical hosts
70413         (e.g., 33-bit int) but it's not worth worrying about now.
70414         * lib/sha1.c (rol): Likewise.
70415         (K1, K2, K3, K4): Remove unnecessary L suffix.
70416
70417 2006-05-10  Bruno Haible  <bruno@clisp.org>
70418
70419         * lib/des.c: Cast to avoid warnings.
70420
70421 2006-05-09  Bruno Haible  <bruno@clisp.org>
70422
70423         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70424         (Depends-on): Depend also on xsize, stdarg.
70425         (configure.ac): Add gl_XVASPRINTF.
70426
70427 2006-05-09  Bruno Haible  <bruno@clisp.org>
70428
70429         * m4/xvasprintf.m4: New file.
70430
70431 2006-05-09  Bruno Haible  <bruno@clisp.org>
70432
70433         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70434         (EOVERFLOW): Define fallback value.
70435         (xstrcat): New function.
70436         (xvasprintf): Recognize the special case of a string concatenation.
70437
70438 2006-05-08  Eric Blake  <ebb9@byu.net>
70439
70440         * gnulib-tool (func_version): Base copyright year on CVS date.
70441         (func_emit_copyright_notice): New function.
70442         (func_emit_lib_Makefile_am): Use it.
70443         (func_emit_tests_Makefile_am): Likewise.
70444         (func_import): Likewise.
70445
70446 2006-05-08  Bruno Haible  <bruno@clisp.org>
70447
70448         * modules/stdarg: New file.
70449         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70450
70451 2006-05-08  Bruno Haible  <bruno@clisp.org>
70452
70453         * m4/stdarg.m4: New file, from GNU gettext.
70454
70455 2006-05-08  Bruno Haible  <bruno@clisp.org>
70456
70457         * config/srclist.txt (build-aux/config.rpath): different from latest
70458         release.
70459
70460 2006-05-08  Bruno Haible  <bruno@clisp.org>
70461
70462         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70463
70464 2006-05-05  Jim Meyering  <jim@meyering.net>
70465
70466         * m4/warning.m4: New file, derived from bison's file by the same name.
70467
70468 2006-05-03  Bruno Haible  <bruno@clisp.org>
70469
70470         * lib/stdint_.h: Shorter URL.
70471         * lib/inttypes.h: Likewise.
70472
70473 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70476
70477 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * lib/verify.h: Document the internals better.  Most of this change
70480         was written by Bruno Haible.
70481
70482 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * doc/verify.texi: New file, partly based on a proposal by
70485         Bruno Haible.
70486
70487 2006-05-02  Bruno Haible  <bruno@clisp.org>
70488
70489         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70490         test from here...
70491         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70492
70493 2006-04-29  Bruno Haible  <bruno@clisp.org>
70494
70495         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70496         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70497
70498 2006-04-29  Bruno Haible  <bruno@clisp.org>
70499
70500         * gnulib-tool: Make --update option actually work.
70501
70502 2006-04-29  Bruno Haible  <bruno@clisp.org>
70503
70504         * doc/gcd.texi: New file.
70505         * doc/gnulib.texi: Include it.
70506
70507 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         * lib/getdate.y (get_date): When adding relative date, start with the
70510         initial time, not with the result of the first mktime call.
70511
70512 2006-04-25  Bruno Haible  <bruno@clisp.org>
70513
70514         * gnulib-tool (func_import): Output the include directives in three
70515         blocks, sorted separately.
70516         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70517
70518 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70519
70520         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70521         to define main with arguments, for C++.  Reported by Eric Blake.
70522         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70523         Prefer 'int main ()' to 'int main (void)', for C++.
70524         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70526         for 'main', for C99 and C++.
70527
70528 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70531         Don't assume that exit status -1 is valid.
70532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70533         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70534         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70535         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70536         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70537         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70538         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70539         functions can be used without declaring them, or that you can
70540         exit with status -1.
70541         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70542
70543 2006-04-24  Karl Berry  <karl@gnu.org>
70544
70545         * config/srclist.txt (longdouble.m4): sync lost.
70546
70547 2006-04-24  Eric Blake  <ebb9@byu.net>
70548
70549         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70550
70551 2006-04-24  Bruno Haible  <bruno@clisp.org>
70552
70553         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70554         poll() implementation in AIX.
70555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70556
70557 2006-04-24  Bruno Haible  <bruno@clisp.org>
70558
70559         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70560         assigned exactly once.
70561
70562 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70563             Bruno Haible  <bruno@clisp.org>
70564
70565         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70566         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70567         for AM_CPPFLAGS.
70568
70569 2006-04-23  Bruno Haible  <bruno@clisp.org>
70570
70571         * modules/copy-file: Depend on unistd.
70572         * modules/execute: Likewise.
70573         * modules/fatal-signal: Likewise.
70574         * modules/findprog: Likewise.
70575         * modules/mkdtemp : Likewise.
70576         * modules/pipe: Likewise.
70577         * modules/wait-process: Likewise.
70578
70579 2006-04-23  Bruno Haible  <bruno@clisp.org>
70580
70581         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70582         condition was already detected.
70583         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70584
70585 2006-04-23  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/copy-file.c: Include <unistd.h> unconditionally.
70588         * lib/execute.c: Likewise.
70589         * lib/fatal-signal.c: Likewise.
70590         * lib/findprog.c: Likewise.
70591         * lib/mkdtemp.c: Likewise.
70592         * lib/pipe.h: Likewise.
70593         * lib/pipe.c: Likewise.
70594         * lib/wait-process.h: Likewise.
70595
70596 2006-04-23  Bruno Haible  <bruno@clisp.org>
70597
70598         * gnulib-tool (func_usage): Fix --import description. Document
70599         --update.
70600         (func_import): Create temporary file in a temporary directory, if
70601         --dry-run is specified. Silence errors from 'grep' when there are no
70602         m4 files in $m4dir.
70603         (func_create_testdir): Silence errors from 'grep' when there are no
70604         m4 files in $m4dir.
70605         Reported by Karl Berry <karl@freefriends.org>.
70606
70607 2006-04-20  Bruno Haible  <bruno@clisp.org>
70608
70609         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70610         one argument, so that the code will be portable to Autoconf 2.60.
70611         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70612         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70613         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70614
70615 2006-04-19  Derek Price  <derek@ximbiot.com>
70616             Eric Blake  <ebb9@byu.net>
70617
70618         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70619         rather than "/full/path.h".  Update comment to match.  Shorten &
70620         generalize m4_translit call via AS_TR_CPP.
70621
70622 2006-04-19  Derek Price  <derek@ximbiot.com>
70623             Eric Blake  <ebb9@byu.net>
70624
70625         * lib/inttypes.h: Correct grammar in comment.
70626
70627 2006-04-18  Derek Price  <derek@ximbiot.com>
70628             Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         * modules/inttypes: New file.
70631         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70632
70633 2006-04-18  Derek Price  <derek@ximbiot.com>
70634             Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70637         New files.
70638
70639 2006-04-18  Derek Price  <derek@ximbiot.com>
70640             Paul Eggert  <eggert@cs.ucla.edu>
70641
70642         * lib/inttypes.h: New file.
70643         * lib/strtoimax.c: Assume <inttypes.h>.
70644
70645 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70648         isn't mounted.  Problem reported by Kir Kolyshkin.
70649
70650 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70653         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70654         Derek R. Price.
70655         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70656         implementation.
70657
70658 2006-04-12  Eric Blake  <ebb9@byu.net>
70659
70660         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70661         is now done automatically by the corresponding Autoconf macro.
70662
70663 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70666         time_r.h.
70667
70668 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70669
70670         Merge regex changes from libc, removing some of our
70671         POSIX-conformance changes that were rejected and redoing them in a
70672         less-intrusive way.
70673
70674         * lib/regcomp.c (re_compile_internal, init_dfa):
70675         Length arg is now size_t, not Idx.  All uses changed.
70676         (peek_token): Forward decl now says internal_function.
70677         (__re_error_msgid, __re_error_msgid_idx):
70678         Now static rather than extern with attribute_hidden.
70679         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70680         For some reason libc prefers K&R style defns for external functions.
70681         (regerror) [!defined _LIBC]: Likewise.
70682         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70683         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70684         (build_range_exp, build_collating_symbol):
70685         Use K&R-style defn.
70686         (re_compile_fastmap): Use '\0' to memset, not 0.
70687         (utf8_sb_map): Make the calculations more obvious.
70688         (init_dfa, parse_bracket_exp, build_charclass_op):
70689         Call calloc and cast result, as glibc does.
70690         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70691         (build_range_exp, build_collating_symbol):
70692         Now internal functions.
70693
70694         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70695
70696         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70697         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70698         Don't depend on VMS; depend on __VMS instead, for POSIX
70699         namespace cleanness.
70700         (regoff_t): Define to ssize_t, not long int.
70701
70702         Remove the REG_ macros named below.  Instead, make the old names
70703         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70704         __USE_GNU_REGEX.
70705         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70706         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70707         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70708         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70709         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70710         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70711         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70712         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70713         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70714         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70715         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70716         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70717         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70718         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70719         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70720         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70721         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70722         (REG_NREGS):
70723         Remove.  All uses replaced by the old RE_* names.
70724         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70725         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70726         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70727         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70728         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70729         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70730         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70731         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70732         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70733         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70734         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70735         Don't bother having these macros be independent of each others'
70736         values, since they no longer exist in the POSIX name space.
70737
70738         Rename the following member names back to their old names,
70739         unless !__USE_GNU_REGEX.  All uses changed back.
70740         (buffer): Renamed from re_buffer.
70741         (allocated): Renamed from re_allocated.
70742         (used): Renamed from re_used.
70743         (syntax): Renamed from re_syntax.
70744         (fastmap): Renamed from re_fastmap.
70745         (translate): Renamed from re_translate.
70746         (can_be_null): Renamed from re_can_be_null.
70747         (regs_allocated): Renamed from re_regs_allocated.
70748         (fastmap_accurate): Renamed from re_fastmap_accurate.
70749         (no_sub): Renamed from re_no_sub.
70750         (not_bol): Renamed from re_not_bol.
70751         (not_eol): Renamed from re_not_eol.
70752         (newline_anchor): Renamed from re_newline_anchor.
70753         (num_regs): Renamed from rm_num_regs.
70754         (start): Renamed from rm_start.
70755         (end): Renamed from rm_end.
70756
70757         (free_state): Move up a bit.
70758
70759         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70760         #define to be empty.
70761         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70762         when that is what is intended.
70763         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70764         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70765         (MAX): New macro.
70766         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70767         All uses changed back to re_malloc, etc.  It's now the caller's
70768         responsibility to check for overflow; all callers changed.
70769         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70770         (re_x2nrealloc): Remove.
70771         (free_state): Remove decl.
70772
70773         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70774         (re_set_registers, re_exec):
70775         Use K&R-style defn.
70776
70777         2006-01-31  Roland McGrath  <roland@redhat.com>
70778
70779         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70780         Reported by Mike Frysinger <vapier@gentoo.org>.
70781
70782         2006-01-15  Andreas Jaeger  <aj@suse.de>
70783
70784         [BZ #1950]
70785         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70786         build_wcs_upper_buffer change.
70787         (build_wcs_upper_buffer): Change return type.
70788
70789         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70790
70791         * lib/regex_internal.h: Include <stdint.h> if available.
70792
70793         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70794
70795         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70796
70797         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70798
70799         * lib/regcomp.c: Adjust for changed secondary hash function.
70800
70801         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70802
70803         * lib/regex.h: Pretty printing.
70804         Clean up namespace a bit.
70805
70806         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70807
70808         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70809         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70810
70811         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70812                     Ulrich Drepper  <drepper@redhat.com>
70813
70814         [BZ #1302]
70815         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70816         changed.
70817         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70818
70819         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70820
70821         [BZ #281]
70822         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70823         * lib/regcomp.c: Remove unnecessary uses of
70824         unsigned RE_TRANSLATE_TYPE.
70825         * lib/regex_internal.h: Likewise.
70826         * lib/regex_internal.c: Likewise.
70827         * lib/regexec.c: Likewise.
70828         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70829
70830         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70831
70832         * lib/regexec.c (find_recover_state): Remove unnecessary
70833         initialization.
70834         (transit_state_bkref): Make DFA a const pointer.
70835         (get_subexp): Likewise.
70836         (check_arrival): Likewise.
70837         (update_cur_sifted_state): Likewise.
70838         (re_search_internal): Likewise.
70839         (prune_impossible_nodes): Likewise.
70840         (acquire_init_state_context): Likewise.
70841         (proceed_next_node): Likewise.
70842         (set_regs): Likewise.
70843         (free_fail_stack_return): Likewise.
70844         (check_arrival_expand_ecl): Mark DFA parameter as const.
70845         (check_arrival_expand_ecl_sub): Likewise.
70846         (check_subexp_limits): Likewise.
70847         (sub_epsilon_src_nodes):  Likewise.
70848         (add_epsilon_src_nodes):  Likewise.
70849         (merge_state_array): Likewise.
70850         (update_regs): Likewise.
70851         (build_trtable): Likewise.
70852         (sift_states_backward): Mark MCTX parameter as const.
70853         (build_sifted_states): Likewise.
70854         (update_cur_sifted_state): Likewise.
70855         (sift_states_mkref): Likewise.
70856         (check_arrival_expand_ecl): Mark eclosure as const.
70857         (check_dst_limits_calc_pos_1): Likewise.
70858         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70859         pointer.
70860
70861         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70862
70863         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70864         (transit_state_sb): Likewise.
70865         (transit_state_mb): Likewise.
70866         (sift_states_iter_mb): Likewise.
70867         (check_arrival_add_next_nodes): Likewise.
70868         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70869         [_LIBC] (re_search_2_stub): Use mempcpy.
70870
70871         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70872         mbrtowc for very simple UTF-8 case.
70873
70874         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
70875         a pointer-to-const.
70876         (re_acquire_state_context): Likewise.
70877         * lib/regex_internal.h: Adjust prototypes.
70878
70879         * lib/regex.c: Prevent using C++ compilers.
70880
70881         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
70882         (re_acquire_state_context): Likewise.
70883
70884 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * modules/regex (Depends-on): Add ssize_t.
70887
70888 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70889
70890         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
70891         translation table.
70892
70893 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70894
70895         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
70896
70897 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
70898             Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
70901         <sys/types.h> and <inttypes.h>.
70902
70903 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70904
70905         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
70906         `__error_t_defined', so argp.h will not typedef the former.
70907
70908 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
70909
70910         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
70911         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70912         glibc names.  Even if glibc is changed to conform to POSIX, the
70913         traditional names will be available anyway, since regex depends on
70914         the extensions module.  Also, fix a longstanding typo in the
70915         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70916         reported by Emanuele Giaquinta.  Also, change sense of cached
70917         variable, so that the message makes sense.
70918
70919 2006-03-24  Simon Josefsson  <jas@extundo.com>
70920
70921         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70922         including some doc fixes.
70923         (base64_encode_alloc): Fix +1 bug on allocation failures.
70924
70925 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70926
70927         * lib/base64.c (base64_encode): Do not read past end of array with
70928         unsanitized input on systems with CHAR_BIT > 8.
70929
70930 2006-03-24  Eric Blake  <ebb9@byu.net>
70931
70932         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70933
70934 2006-03-22  Karl Berry  <karl@gnu.org>
70935
70936         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70937         * config/srclistvars.sh (COREUTILS): new var.
70938
70939 2006-03-17  Jim Meyering  <jim@meyering.net>
70940
70941         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70942         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70943
70944 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70947         no longer needs it.  Instead, check that regoff_t is as least
70948         as wide as ptrdiff_t.
70949
70950         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70951         so that our regex.h stays compatible with the installed regex.
70952         This is helpful for installers who configure --without-included-regex.
70953         Problem reported by Emanuele Giaquinta.
70954
70955 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70958         Typedef to long int, not to off_, as POSIX will likely change
70959         in that direction.
70960
70961 2006-03-15  Eric Blake  <ebb9@byu.net>
70962
70963         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70964
70965 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70966
70967         * lib/argp-help.c (validate_uparams): Fix typo
70968         * lib/argp-parse.c (argp_default_options): Consistently begin help
70969         messages with a lowercase letter.
70970
70971 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70972
70973         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70974         overrun buffers and shouldn't be used (much as gets shouldn't be
70975         used).
70976         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70977
70978 2006-03-08  Simon Josefsson  <jas@extundo.com>
70979
70980         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70981         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70982
70983 2006-03-08  Simon Josefsson  <jas@extundo.com>
70984
70985         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70986         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70987
70988 2006-03-08  Simon Josefsson  <jas@extundo.com>
70989
70990         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70991         signal that configure disabled the device.
70992
70993 2006-03-08  Simon Josefsson  <jas@extundo.com>
70994
70995         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70996         languages.
70997
70998 2006-03-07  Simon Josefsson  <jas@extundo.com>
70999
71000         * modules/getopt (Depends-on): Add unistd.
71001
71002         * modules/unistd: New file.
71003
71004 2006-03-07  Simon Josefsson  <jas@extundo.com>
71005
71006         * modules/gc-random: New file.
71007
71008 2006-03-07  Simon Josefsson  <jas@extundo.com>
71009
71010         * m4/unistd_h.m4: New file.
71011
71012 2006-03-07  Simon Josefsson  <jas@extundo.com>
71013
71014         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71015         test to be side-effect free by storing the result in the cache
71016         variable gl_cv_lib_readline, and moving the assignment of
71017         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71018         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71019
71020 2006-03-07  Simon Josefsson  <jas@extundo.com>
71021
71022         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71023         error on missing devices (the functions will return an error).
71024
71025         * m4/gc.m4: Move random stuff to gc-random.m4
71026
71027 2006-03-07  Simon Josefsson  <jas@extundo.com>
71028
71029         * lib/unistd_.h: New file.
71030
71031 2006-03-07  Simon Josefsson  <jas@extundo.com>
71032
71033         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71034
71035 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71038         Problem reported by Juan Manuel Guerrero.
71039
71040 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71041
71042         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71043         the unistd module.
71044         * lib/getlogin_r.c: Likewise.
71045         * lib/getlogin_r.h: Likewise.
71046         * lib/glob.c: Likewise.
71047         * lib/pagealign_alloc.c: Likewise.
71048         * lib/unistd_.h: Remove; no longer needed.
71049
71050 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71053         Add unistd.
71054         * modules/c-stack (Depends-on): Add unistd.
71055         * modules/getlogin_r: Likewise.
71056         * modules/glob: Likewise.
71057         * modules/pagealign_alloc: Likewise.
71058         * modules/unistd (Files): Remove lib/unistd_.h.
71059         (EXTRA_DIST): Remove.
71060         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71061         need unistd_.h.
71062         (MOSTLYCLEANFILES): Remove unistd.h-t.
71063
71064 2006-03-03  Simon Josefsson  <jas@extundo.com>
71065
71066         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71067
71068 2006-03-03  Simon Josefsson  <jas@extundo.com>
71069
71070         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71071         libidn and bison.
71072
71073 2006-03-03  Simon Josefsson  <jas@extundo.com>
71074
71075         * build-aux/maint.mk: Add indent target.
71076
71077 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71078
71079         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71080         our replacement poll.h in any case, to avoid a differing
71081         declaration from a system header.  Seen on AIX.
71082
71083 2006-03-01  Simon Josefsson  <jas@extundo.com>
71084
71085         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71086         <kasal@ucw.cz>.
71087
71088 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * modules/gettime (Depends-on): Add extensions module.
71091         * modules/nanosleep (Depends-on): Likewise.
71092         * modules/settime (Depends-on): Likewise.
71093
71094 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71097         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71098         pedantically.
71099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71100         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71101
71102         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71103         not "==".  Reported by Ralf Wildenhues.
71104
71105 2006-03-01  Karl Berry  <karl@gnu.org>
71106
71107         * doc/Copyright/request-*: new files, synced from gnuorg.
71108
71109 2006-03-01  Karl Berry  <karl@gnu.org>
71110
71111         * config/srclist.txt (Copyright/*): new entries.
71112
71113 2006-02-28  Simon Josefsson  <jas@extundo.com>
71114
71115         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71116
71117 2006-02-27  Simon Josefsson  <jas@extundo.com>
71118
71119         * lib/base64.h: Indent #define's.  From Jim Meyering
71120         <jim@meyering.net>.
71121
71122 2006-02-27  Jim Meyering  <jim@meyering.net>
71123
71124         Revert the change of 2006-02-24, so these files can continue
71125         to be sync'd from gettext.
71126         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71127         of `config.h'.
71128
71129 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * modules/intprops: New file.
71132         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71133         Add intprops.
71134         * modules/getloadavg (Files): Remove lib/intprops.h.
71135         (Depends-on): Add intprops.
71136         * modules/human: Likewise.
71137         * modules/inttostr: Likewise.
71138         * modules/openat: Likewise.
71139         * modules/sig2str: Likewise.
71140         * modules/userspec: Likewise.
71141         * modules/utimecmp: Likewise.
71142         * modules/xnanosleep: Likewise.
71143         * modules/xstrtol: Likewise.
71144
71145 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71146
71147         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71148         * modules/lock-tests (TESTS): Use $(EXEEXT).
71149         * modules/tls-tests: Likewise.
71150         * modules/argp-tests: Likewise.
71151         (check_PROGRAMS): New var, replacing...
71152         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71153
71154 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71155
71156         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71157         `config.h'.
71158
71159 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71160
71161         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71162
71163 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71164
71165         Sync from coreutils.
71166         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71167         gl_CHDIR_SAFER.
71168
71169 2006-02-22  Jim Meyering  <jim@meyering.net>
71170
71171         Sync from coreutils.
71172         * m4/chdir-safer.m4: New file.
71173
71174 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71177         AT_FDCWD exceeds INT_MAX.
71178         * lib/openat.h (AT_FDCWD): Likewise.
71179
71180 2006-02-17  Eric Blake  <address@hidden>
71181
71182         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71183
71184 2006-02-16  Simon Josefsson  <jas@extundo.com>
71185
71186         * modules/getaddrinfo (Depends-on): Add sys_socket.
71187
71188 2006-02-15  Simon Josefsson  <jas@extundo.com>
71189
71190         * build-aux/maint.mk: Add dsyntax-check rule.
71191
71192 2006-02-15  Eric Blake  <ebb9@byu.net>
71193
71194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71195         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71196         'present but cannot compile' warnings on cygwin.
71197         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71198         use ws2tcpip.h if sys/socket.h works.
71199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71200         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71201
71202 2006-02-14  Simon Josefsson  <jas@extundo.com>
71203
71204         * modules/maintainer-makefile (Files): Rename.
71205
71206         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71207         and (the local) Makefile.cfg to maint-cfg.mk.
71208
71209         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71210         to the latter.
71211
71212         * modules/maintainer-makefile: New module.
71213
71214         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71215         severaly stripped to make it possible to build it up from scratch
71216         with reliable tests.
71217
71218         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71219         fixes to permit overriding the default actions when configure and
71220         makefile are not available.
71221
71222 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71223
71224         Sync from coreutils.
71225         * modules/lstat (Depends-on): Don't depend on xalloc.
71226         (License): Change from GPL to LGPL, since this is now simply a
71227         replacement for a libc function.
71228
71229 2006-02-14  Jim Meyering  <jim@meyering.net>
71230
71231         Sync from coreutils.
71232
71233         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71234         failure on deficient systems, and simplify gnulib lgpl dependencies.
71235         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71236         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71237
71238         * lib/xalloc-die.c: Remove unused definition of N_.
71239
71240 2006-02-14  Jim Meyering  <jim@meyering.net>
71241
71242         Sync from coreutils.
71243         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71244         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71245         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71246         double-quote uses of that variable, to accommodate the rare case in
71247         which getmntent is available in none of the libraries checked.  This
71248         happens at least on FreeBSD 5.0.
71249
71250 2006-02-13  Simon Josefsson  <jas@extundo.com>
71251
71252         * gnulib-tool (Usage): Fix --import, from
71253         karl@freefriends.org (Karl Berry).
71254
71255 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71256
71257         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71258
71259 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71260
71261         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71262         "autoupdate" on 2005-12-12.
71263
71264 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * modules/closeout (Depends-on): Remove atexit.
71267
71268 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71269
71270         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71271         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71272
71273 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71276         __EXTENSIONS__ if this causes compilation to fail.  Problem
71277         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71278         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71279
71280 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71281
71282         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71283         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71285         All uses changed.
71286
71287 2006-01-26  Simon Josefsson  <jas@extundo.com>
71288
71289         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71290         prototype is visible on mingw32.
71291
71292         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71293         for mingw32.
71294
71295         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71296         mingw32).
71297
71298 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71299
71300         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71301         attempt to open for write; this always fails, at least on POSIX
71302         hosts.  This reinstates the 2006-01-09 change, which was
71303         inadvertently removed.
71304
71305 2006-01-26  Bruno Haible  <bruno@clisp.org>
71306
71307         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71308         Reported by Paul Eggert.
71309
71310 2006-01-26  Bruno Haible  <bruno@clisp.org>
71311             Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * lib/stdbool_.h (_Bool)
71314         [(! (defined __cplusplus || defined __BEOS__)
71315           && !defined __GNUC__
71316           && !(defined __HP_cc || defined __xlc__
71317                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71318                || defined __sgi))]:
71319         #define to signed char in these cases too; this simplifies
71320         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71321         etc., separately) and makes it more conservative.
71322
71323 2006-01-25  Simon Josefsson  <jas@extundo.com>
71324
71325         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71326         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71327         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71328
71329 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71330
71331         * lib/argp-namefrob.h: Bugfix. Remove stray #
71332
71333 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71336         so that we test the test.
71337         Check for yet another HP-UX cc bug involving *bool |= bool.
71338
71339 2006-01-25  Karl Berry  <karl@gnu.org>
71340
71341         * config/srclist.txt (vasnprintf.c): sync lost.
71342
71343 2006-01-25  Jim Meyering  <jim@meyering.net>
71344
71345         Sync from the stable (b5) branch of coreutils:
71346
71347         * lib/fts.c (fts_children): Don't let close() clobber errno from
71348         failed fchdir().
71349
71350         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71351         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71352         a dangling symlink.  That can also happen at least for ELOOP.
71353         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71354         FYI, this bug predates the inclusion of fts.c in coreutils.
71355
71356         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71357         in their own block, so pre-c99 compilers don't object.
71358
71359         Avoid the double-free (first in fts_read, second in fts_close) that
71360         would occur when an `active' directory is made inaccessible (e.g.,
71361         via chmod a-x) during a traversal.
71362         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71363         before returning.  Reproduce this failure by
71364         mkdir -p a/b; cd a; chmod a-x . b
71365         Reported by Stavros Passas.
71366
71367 2006-01-25  Jim Meyering  <jim@meyering.net>
71368
71369         * lib/fileblocks.c: Remove more useless parentheses.
71370         * lib/readutmp.h: Likewise.
71371
71372 2006-01-25  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71375         warnings.
71376         Reported by Paul Eggert.
71377
71378 2006-01-25  Bruno Haible  <bruno@clisp.org>
71379
71380         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71381         rid of a trap command. For Solaris sh.
71382         Reported by Mark D. Baushke <mdb@gnu.org>.
71383
71384 2006-01-24  Simon Josefsson  <jas@extundo.com>
71385
71386         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71387         Bruno.
71388
71389 2006-01-24  Karl Berry  <karl@gnu.org>
71390
71391         * config/srclist.txt (argp-namefrob.h): sync lost.
71392
71393 2006-01-24  Jim Meyering  <jim@meyering.net>
71394
71395         * modules/openat (Files): Add lib/intprops.h.
71396         From Mark D. Baushke.
71397
71398 2006-01-24  Jim Meyering  <jim@meyering.net>
71399
71400         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71401         Reported by Mark D. Baushke.
71402
71403 2006-01-24  Jim Meyering  <jim@meyering.net>
71404
71405         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71406
71407 2006-01-24  Bruno Haible  <bruno@clisp.org>
71408
71409         * modules/strnlen (Maintainer): Change from glibc to all.
71410
71411 2006-01-24  Bruno Haible  <bruno@clisp.org>
71412
71413         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71414         Patch by Paul Eggert.
71415
71416 2006-01-24  Bruno Haible  <bruno@clisp.org>
71417
71418         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71419         already has it.
71420         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71421         2005-11-26.
71422
71423         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71424         'signed char' to avoid problems with the built-in _Bool type.
71425         Reported by Paul Eggert on 2005-11-26.
71426
71427 2006-01-24  Bruno Haible  <bruno@clisp.org>
71428
71429         * gnulib-tool (func_import): Avoid constructing complicated sed
71430         expressions inside backquote.
71431         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71432
71433 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71434
71435         These changes imported from libc.
71436         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71437         test and two separate function calls.
71438         * lib/strndup.c (__strndup): Add libc_hidden_def.
71439
71440 2006-01-23  Simon Josefsson  <jas@extundo.com>
71441
71442         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71443         Remove the test_*_SOURCES variable: automake infers it by default.
71444         * modules/tls-tests: Likewise.
71445
71446 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         Work around porting bugs reported by Dieter in
71449         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71450         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71451         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71452         Include "getopt.h" first, to check interface.
71453         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71454         !HAVE_DECL_GETENV.
71455         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71456         (__strndup): Revert to K&R-style function dfns, the glibc style.
71457         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71458         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71459         Include strnlen.h first, to get prototype properly.
71460         (strnlen): Renamed from __strnlen.
71461         Remove weak alias.
71462
71463 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71466
71467 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * config/srclist.txt: Adjust to reflect glibc reorganization.
71470         This affects only comments.
71471
71472 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71473
71474          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71475          Reported by Bruce Korb <bkorb@gnu.org>.
71476
71477 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71480         to pacify gcc -Wswitch-default.
71481
71482 2006-01-22  Bruno Haible  <bruno@clisp.org>
71483
71484         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71485         temporary buffer for sprintf, take into account the precision also
71486         for 'd', 'i', 'u', 'o', 'x', 'X'.
71487
71488 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71489
71490         * modules/argp-tests: New module
71491         * tests/test-argp.c: New file
71492         * tests/test-argp-2.sh: New file
71493
71494 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71495
71496         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71497         (__argp_base_name): Removed
71498         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71499         typo.
71500         (__argp_base_name): Provide macro definition or extern declaration
71501         depending on the configuration
71502
71503 2006-01-20  Simon Josefsson  <jas@extundo.com>
71504
71505         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71506
71507 2006-01-20  Simon Josefsson  <jas@extundo.com>
71508
71509         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71510
71511 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71514         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71515         Suggested by Bruno Haible.
71516
71517 2006-01-20  Karl Berry  <karl@gnu.org>
71518
71519         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71520         until changes propagate, I guess.
71521
71522 2006-01-19  Simon Josefsson  <jas@extundo.com>
71523
71524         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71525
71526 2006-01-19  Simon Josefsson  <jas@extundo.com>
71527
71528         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71529
71530 2006-01-19  Simon Josefsson  <jas@extundo.com>
71531
71532         * gnulib-tool: Set check_PROGRAMS.
71533
71534         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71535         modules/des-tests, modules/gc-arcfour-tests,
71536         modules/gc-arctwo-tests, modules/gc-des-tests,
71537         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71538         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71539         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71540         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71541         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71542         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71543         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71544         test_*_SOURCES.
71545
71546 2006-01-18  Simon Josefsson  <jas@extundo.com>
71547
71548         * modules/socklen (Depends-on): Depend on sys_socket.
71549
71550 2006-01-18  Simon Josefsson  <jas@extundo.com>
71551
71552         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71553         modules/des-tests, modules/gc-arcfour-tests,
71554         modules/gc-arctwo-tests, modules/gc-des-tests,
71555         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71556         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71557         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71558         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71559         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71560         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71561         $(EXEEXT) to automake TESTS variable, for mingw32.
71562
71563 2006-01-17  Simon Josefsson  <jas@extundo.com>
71564
71565         * modules/socklen (Include): Need sys/socket.h.
71566
71567 2006-01-17  Bruno Haible  <bruno@clisp.org>
71568
71569         * modules/ssize_t (Include): Add <sys/types.h>.
71570
71571 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71572
71573         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71574         it's not portable and it doesn't work with cross-compiles.
71575         Problem reported by Bruno Haible.  Fix missing-$ typo in
71576         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71577         -zignore from being used with Sun's C compiler.
71578
71579 2006-01-12  Simon Josefsson  <jas@extundo.com>
71580
71581         * lib/base64.c: Fix warning, reported by Bruno Haible
71582         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71583
71584 2006-01-12  Bruno Haible  <bruno@clisp.org>
71585
71586         * modules/ldd: New file.
71587         * build-aux/ldd.sh.in: New file.
71588         * MODULES.html.sh (Support for building libraries and executables): Add
71589         ldd.
71590
71591 2006-01-12  Bruno Haible  <bruno@clisp.org>
71592
71593         * m4/ldd.m4: New file.
71594
71595 2006-01-12  Bruno Haible  <bruno@clisp.org>
71596
71597         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71598         endless loop while replacing $auxdir with build-aux.
71599
71600 2006-01-11  Simon Josefsson  <jas@extundo.com>
71601
71602         * lib/stdint_.h (SIZE_MAX): Add missing (.
71603
71604 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         Sync from coreutils.
71607         * lib/md5.c: Fix commentary typos.
71608         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71609         * lib/md5.h (__attribute__): Remove; unused.
71610         * lib/sha1.c: Fix commentary to match md5 better.
71611         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71612         so that we don't need to worry about alignment.  All uses changed.
71613         This merges the 2005-10-28 md5 change into sha1.
71614
71615 2006-01-11  Jim Meyering  <jim@meyering.net>
71616
71617         Sync from coreutils.
71618         * lib/md5.c (OP): Fix spacing.
71619
71620 2006-01-11  Bruno Haible  <bruno@clisp.org>
71621
71622         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71623         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71624         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71625
71626 2006-01-11  Bruno Haible  <bruno@clisp.org>
71627
71628         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71629         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71630         the "early" section as well.
71631
71632 2006-01-11  Bruno Haible  <bruno@clisp.org>
71633
71634         Avoid "ar: no archive members specified" error on MacOS X.
71635         * gnulib-tool (func_modules_add_dummy): New function.
71636         (func_import, func_create_testdir): Invoke it.
71637
71638 2006-01-11  Bruno Haible  <bruno@clisp.org>
71639
71640         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71641         with $auxdir in AC_CONFIG_FILES statements.
71642
71643 2006-01-11  Bruno Haible  <bruno@clisp.org>
71644
71645         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71646         Initialize also noinst_HEADERS to empty.
71647
71648 2006-01-11  Bruno Haible  <bruno@clisp.org>
71649
71650         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71651         variables.
71652         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71653         autoreconf.
71654
71655 2006-01-11  Bruno Haible  <bruno@clisp.org>
71656
71657         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71658         overridable by the user.
71659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71660
71661 2006-01-10  Simon Josefsson  <jas@extundo.com>
71662
71663         * modules/sys_socket: New file.
71664
71665 2006-01-10  Simon Josefsson  <jas@extundo.com>
71666
71667         * m4/sys_socket_h.m4: New file.
71668
71669 2006-01-10  Simon Josefsson  <jas@extundo.com>
71670
71671         * lib/socket_.h: New file.
71672
71673 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         * modules/readutmp (Maintainer): Add myself.
71676
71677 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71680         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71681         People who are still concerned with buggy memcmp implementations
71682         can invoke gl_FUNC_MEMCMP themselves.
71683
71684 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * lib/regex_internal.h (BITSET_WORD_BITS):
71687         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71688         preprocessor mishandles large unsigned values as if they were signed.
71689         Problem reported by Claudio Fontana in
71690         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71691
71692 2006-01-10  Jim Meyering  <jim@meyering.net>
71693
71694         Avoid the double-free (first in fts_read, second in fts_close) that
71695         would occur when an `active' directory is made inaccessible (e.g.,
71696         via chmod a-x) during a traversal.
71697         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71698         before returning.  Reproduce this failure by
71699         mkdir -p a/b; cd a; chmod a-x . b
71700         Reported by Stavros Passas.
71701
71702         Sync from coreutils.
71703         * lib/sha1.c: Tweak grammar in a comment.
71704
71705 2006-01-10  Jim Meyering  <jim@meyering.net>
71706
71707         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71708         Patch by Joerg Sonnenberger.
71709
71710 2006-01-10  Bruno Haible  <bruno@clisp.org>
71711
71712         * modules/readutmp: Depend on module free.
71713         * modules/strtok_r: Depend on module restrict.
71714
71715 2006-01-10  Bruno Haible  <bruno@clisp.org>
71716
71717         * modules/gettext (configure.ac): Add an invocation of
71718         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71719
71720 2006-01-10  Bruno Haible  <bruno@clisp.org>
71721
71722         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71723         Reported by Werner Lemberg <wl@gnu.org>.
71724
71725 2006-01-10  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/localcharset.c: Update from GNU gettext.
71728
71729 2006-01-10  Bruno Haible  <bruno@clisp.org>
71730
71731         * lib/argp.h (__const): Remove macro. Use const instead.
71732         * lib/argp-fmtstream.h (__const): Likewise.
71733         * lib/glob_.h (__const): Remove macro.
71734         * lib/glob-libc.h: Use const instead of __const.
71735
71736 2006-01-10  Bruno Haible  <bruno@clisp.org>
71737
71738         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71739         variable.
71740         Needed to avoid an automake error regarding the 'gettext' module.
71741
71742 2006-01-09  Simon Josefsson  <jas@extundo.com>
71743
71744         * modules/inet_ntop (Depends-on): Add restrict.
71745
71746 2006-01-09  Simon Josefsson  <jas@extundo.com>
71747
71748         * modules/gc-rijndael-tests (License): Put under LGPL.
71749
71750         * modules/gc-des-tests (License): Likewise.
71751
71752         * modules/gc-arcfour-tests (License): Likewise.
71753
71754         * modules/gc-arctwo-tests (License): Likewise.
71755
71756         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71757
71758         * modules/gc-hmac-sha1-tests (Files): Likewise.
71759
71760         * modules/gc-hmac-md5-tests (License): Likewise.
71761
71762         * modules/gc-sha1-tests (License): Likewise.
71763
71764         * modules/gc-md5-tests (License): Likewise.
71765
71766         * modules/gc-md4-tests (License): Likewise.
71767
71768         * modules/gc-md2-tests (License): Likewise.
71769
71770         * modules/gc-tests (License): Likewise.
71771
71772         * modules/des-tests (License): Likewise.
71773
71774         * modules/md4-tests (License): Likewise.
71775
71776         * modules/md2-tests (License): Likewise.
71777
71778 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71779
71780         Sync from coreutils:
71781
71782         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71783         * modules/lib-ignore: New file.
71784         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71785         chdir-safer.m4, lchmod.m4.
71786         * modules/openat: Add mkdirat.c, openat-priv.h.
71787
71788 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71789
71790         Sync from coreutils.
71791         * m4/lib-ignore.m4: New file.
71792         * m4/lchmod.m4: New file.
71793
71794 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         Sync from coreutils.
71797         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71798         for write access: POSIX says that must fail.
71799         * lib/fts.c (diropen): Likewise.
71800         * lib/save-cwd.c (save_cwd): Likewise.
71801         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71802         well, for minor improvements on hosts that lack O_DIRECTORY.
71803         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71804         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71805         Fall back on chown if open failed with EACCES.
71806
71807         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71808         Report an error at compile-time if only a 1-second nominal clock
71809         resolution is found.
71810
71811         * lib/lchmod.h: New file.
71812         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71813         (make_dir_parents): Use lchown rather than chown, and
71814         lchmod rather than chmod.
71815
71816         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71817         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71818         "proc" reported by n0dalus.
71819
71820         * lib/mountlist.c: Include <limits.h>.
71821         (dev_from_mount_options)
71822         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71823         New function.  It no longer assumes "dev=" has the System V meaning
71824         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71825         (read_file_system_list)
71826         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71827         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71828         dev= in that case.
71829
71830         * lib/posixtm.h (PDS_PRE_2000): New macro.
71831         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71832         allow_century.  All usages changed.  Reject dates outside the range
71833         1969-1999 if PDS_PRE_2000 is used.
71834
71835 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71836
71837         Sync from coreutils.
71838         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71839         (Time of day items): Mention the possibility of leap seconds.
71840         Problem reported by Dr. David Alan Gilbert.
71841
71842 2006-01-09  Jim Meyering  <jim@meyering.net>
71843
71844         Sync from coreutils.
71845
71846         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71847
71848         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71849
71850         * lib/modechange.c (mode_compile): Reject an invalid mode string
71851         that starts with an octal digit.  From Andreas Gruenbacher.
71852
71853         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71854         and dup to open_safer and dup_safer, respectively.
71855         (openat_permissive): Fix typo in comment.
71856
71857         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71858         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71859         (_): Remove; no longer needed.
71860         (openat): Renamed from rpl_openat; no need for rpl_openat
71861         since openat.h renames openat for us.
71862         Replace most of the body with a call to openat_permissive,
71863         to avoid duplicate code.
71864         Port to (probably hypothetical) environments were mode_t is
71865         wider than int.
71866         (openat_permissive): Require mode arg, so that we can check
71867         types better.  Put it just after flags.  Change cwd failure
71868         indicator from pointer-to-bool to pointer-to-errno-value.
71869         All callers changed.
71870         Invoke openat_save_fail and/or openat_restore_fail if
71871         cwd_errno is null, so that openat can call us.
71872         (openat_permissive, fdopendir, fstatat, unlinkat):
71873         Simplify errno handling to avoid some duplicate code,
71874         as it's OK to set errno on success.
71875         * lib/openat.h: Revamp code so that function macros depend on
71876         __OPENAT_PREFIX only, not also on AT_FDCWD.
71877         (openat_ro): Remove.  Caller changed to use openat_permissive.
71878         (openat_permissive): Now a macro, if not a function.
71879         (openat_restore_fail, openat_save_fail): Now always functions,
71880         since mkdirat needs them even if __OPENAT_PREFIX is defined.
71881
71882         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
71883         and openat.c.
71884         * lib/mkdirat.c: Include openat-priv.h.
71885         Remove definitions of macros defined therein.
71886         * lib/openat.c: Likewise.
71887
71888         * lib/mkdirat.c (mkdirat): New file and function.
71889         * lib/openat.h (mkdirat): Declare.
71890
71891         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
71892
71893         * lib/openat.h (openat_permissive): Declare.
71894         (openat_ro): Define.
71895
71896         * lib/openat.c (EXPECTED_ERRNO): New macro.
71897         (openat_permissive): New function -- used in remove.c rewrite.
71898         (all functions): Set errno just before returning, only if there
71899         was an actual failure.
71900         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
71901
71902         Emulate openat-family functions using Linux's procfs, if possible.
71903         Idea and some code based on Ulrich Drepper's glibc changes.
71904
71905         * lib/openat.c: (BUILD_PROC_NAME): New macro.
71906         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
71907         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
71908         before falling back on save_cwd and restore_cwd.
71909         (fdopendir, fstatat, unlinkat): Likewise.
71910
71911         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71912         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71913
71914         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71915         as second argument to va_arg.  Otherwise, some versions of gcc
71916         warn that `if this code is reached, the program will abort'.
71917
71918 2006-01-09  Jim Meyering  <jim@meyering.net>
71919
71920         Sync from coreutils.
71921         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71922         Require openat-priv.h.
71923
71924 2006-01-09  Bruno Haible  <bruno@clisp.org>
71925
71926         * modules/strnlen (Include): Use strnlen.h.
71927
71928 2006-01-09  Bruno Haible  <bruno@clisp.org>
71929
71930         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71931
71932 2006-01-09  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/sysexit_.h (EX_OK): New macro.
71935         Suggested by Martin Lambers <marlam@marlam.de>.
71936
71937 2006-01-09  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71940         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71941
71942 2006-01-09  Bruno Haible  <bruno@clisp.org>
71943
71944         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71945         numbers.
71946
71947 2006-01-09  Bruno Haible  <bruno@clisp.org>
71948
71949         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71950         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71951         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71952         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71953
71954 2006-01-09  Bruno Haible  <bruno@clisp.org>
71955
71956         * build-aux/javacomp.sh.in: New file, moved from lib/.
71957         * modules/javacomp-script (Files): Update.
71958         (configure.ac): Add AC_CONFIG_FILES invocation.
71959         (EXTRA_DIST): Remove variable.
71960
71961         * build-aux/javaexec.sh.in: New file, moved from lib/.
71962         * modules/javaexec (Files): Update.
71963         (configure.ac): Add AC_CONFIG_FILES invocation.
71964         (EXTRA_DIST): Remove javaexec.sh.in.
71965
71966         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71967         * modules/csharpcomp-script (Files): Update.
71968         (configure.ac): Add AC_CONFIG_FILES invocation.
71969         (EXTRA_DIST): Remove variable.
71970
71971         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71972         * modules/csharpexec (Files): Update.
71973         (configure.ac): Add AC_CONFIG_FILES invocation.
71974         (EXTRA_DIST): Remove csharpexec.sh.in.
71975
71976 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71977
71978         Sync from coreutils.
71979
71980         Add POSIX ACL support
71981         * lib/acl.h (copy_acl, set_acl): Add declarations.
71982         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71983         systems other than Linux.
71984         (chmod_or_fchmod): New function: use fchmod when possible,
71985         and chmod otherwise.
71986         (file_has_acl): Add a POSIX ACL implementation, with a
71987         Linux-specific subcase.
71988         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71989         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71990         acls are unsupported.
71991         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71992         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71993         are unsupported.
71994
71995 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71996
71997         Sync from coreutils.
71998         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71999
72000 2006-01-07  Bruno Haible  <bruno@clisp.org>
72001
72002         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72003         gl_EARLY.
72004
72005 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72008         Problem reported for Mingw by Mark Junker.
72009
72010 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * README: Gnulib normally doesn't generate a tarball.
72013
72014 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72017         long int, not int, for nanosecond counts, so that people who are
72018         used to POSIX struct timespec won't be surprised.  Reported by Jim
72019         Meyering.
72020
72021 2005-12-28  Bruno Haible  <bruno@clisp.org>
72022
72023         * build-aux/config.rpath: Update from GNU gettext.
72024
72025 2005-12-16  Jim Meyering  <jim@meyering.net>
72026
72027         * modules/fprintftime: New module.
72028         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72029
72030 2005-12-16  Jim Meyering  <jim@meyering.net>
72031
72032         * m4/fprintftime.m4: New file.
72033
72034 2005-12-16  Jim Meyering  <jim@meyering.net>
72035
72036         * lib/fprintftime.c, lib/fprintftime.h: New files.
72037
72038 2005-12-15  Simon Josefsson  <jas@extundo.com>
72039
72040         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72041         new m4/socklen.m4.
72042
72043 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72044
72045         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72046         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72047
72048 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72049
72050         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72051         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72052         struct uparams is valid. Fall back to the default values if it is
72053         not.
72054
72055 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72056
72057         * modules/argp (Files): Add argp-pin.c
72058         (Depends-on): dirname
72059         (lib_SOURCES): Add argp-pin.c
72060
72061 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72062
72063         * m4/argp.m4:  Check if program_invocation_name and
72064         program_invocation_short_name are declared and define appropriate
72065         macros if they are not.
72066
72067 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72068
72069         * lib/argp-help.c (__argp_base_name): New function
72070         (__argp_short_program_name): Rewrite using __argp_base_name
72071         * lib/argp-namefrob.h: Define program_invocation_name and
72072         program_invocation_short_name if requested
72073         (__argp_base_name): Add prototype
72074         * lib/argp-parse.c (argp_def): Use gettext wrappers
72075         (argp_default_parser): Use __argp_base_name
72076         * lib/argp-pin.c: New file. Defines program_invocation_name and
72077         program_invocation_short_name on systems that lack them.
72078
72079 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72082         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72083         porting problem reported by Georg Schwarz in
72084         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72085
72086 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72087
72088         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72089         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72090         porting problem reported by Georg Schwarz in
72091         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72092
72093 2005-12-05  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72096         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72097         Reported by Mark Junker <mjscod@gmx.de>.
72098
72099 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72102         Use implementation from Albert Chin, with some
72103         comments/corrections by Stepan Kasal and myself.
72104
72105 2005-12-02  Bruno Haible  <bruno@clisp.org>
72106
72107         * gnulib-tool (func_import): Accept GPLed build tool modules when
72108         --lgpl is given.
72109         * modules/csharpcomp-script: New file.
72110         * modules/csharpcomp: Depend on it.
72111         * modules/javacomp-script: New file.
72112         * modules/javacomp: Depend on it.
72113         Suggested by Simon Josefsson.
72114
72115 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72118         statement, to work around an HP-UX 10.20 compiler bug reported by
72119         Peter O'Gorman.
72120
72121 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72122
72123         * modules/savedir (Depends-on): Add openat.
72124
72125 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72128         (uintmax_t) [defined uintmax_t]: Do not declare.
72129         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72130         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72131         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72132         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72133         sake of portability to weird hosts that C allows (though we don't
72134         know of any practical examples).
72135
72136         * lib/savedir.h (fdsavedir): New decl.
72137         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72138         contains most of the former guts of savedir.
72139         (savedir): Use savedirstream.
72140         Include "openat.h".
72141
72142 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * modules/obstack (Files): Add m4/ulonglong.m4.
72145         Problem reported by Davide Angelocola.
72146
72147 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72148
72149         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72150         coreutils no longer futzes with rounding modes.
72151
72152 2005-11-14  Jim Meyering  <jim@meyering.net>
72153
72154         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72155         replacement of mkstemp.
72156
72157 2005-11-10  Simon Josefsson  <jas@extundo.com>
72158
72159         * lib/readline.c: Remove EOL.
72160
72161 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         * modules/gethrxtime (Depends-on): Add gettime.
72164
72165 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72168         or gettimeofday; no longer needed.
72169
72170 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72173         time business.
72174         (gethrxtime) [! (HAVE_NANOUPTIME
72175         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72176         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72177         our own approximation.
72178
72179 2005-11-08  Eric Blake  <ebb9@byu.net>
72180
72181         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72182
72183 2005-11-08  Eric Blake  <ebb9@byu.net>
72184
72185         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72186
72187 2005-11-04  Bruno Haible  <bruno@clisp.org>
72188
72189         * gnulib-tool: Implement --update mode.
72190
72191 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         Fix porting problem reported by Theodoros V. Kalamatianos.
72194         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72195         Don't assume that futimes failing means we must fail.
72196
72197 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72198
72199         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72200         variables to suggest the intended function of the PATH_MAX check.
72201
72202 2005-10-30  Kean Johnston  <jkj@sco.com>
72203
72204         Trivial changes to support SCO systems.
72205         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72206         as PATH_MAX.
72207         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72208         where __ptr is null when no I/O is pending.
72209
72210 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72213         leave errno alone.  Problem reported by Dmitry V. Levin.
72214
72215 2005-10-28  Simon Josefsson  <jas@extundo.com>
72216
72217         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72218         Test more.
72219
72220         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72221
72222         * modules/md2, modules/md2-tests: New files.
72223
72224 2005-10-28  Simon Josefsson  <jas@extundo.com>
72225
72226         * m4/inet_ntop.m4: More tests.
72227
72228         * m4/gc-md2.m4, md2.m4: New file.
72229
72230 2005-10-28  Simon Josefsson  <jas@extundo.com>
72231
72232         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72233         "restrict" keywords, as per POSIX.  Protect the function
72234         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72235         Don't use K&R prototypes.  Check the sprintf return values.
72236         Re-define EAFNOSUPPORT if not present.  Indent.
72237
72238         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72239         suggested by Bruno Haible <bruno@clisp.org>.
72240
72241         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72242
72243         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72244
72245         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72246         libgcrypt).
72247
72248         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72249
72250         * lib/md2.h, lib/md2.c: New files.
72251
72252 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72255         errno alone.  Problem reported by Frederic Jolliton.
72256
72257 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         * modules/verify (License): Change from GPL to LGPL.  This is a
72260         tiny module and there are apparently near-equivalents that are
72261         under the BSD license.
72262
72263 2005-10-24  Simon Josefsson  <jas@extundo.com>
72264
72265         * modules/sha1: Relicense to LGPL.
72266
72267 2005-10-24  Simon Josefsson  <jas@extundo.com>
72268
72269         * lib/md4.h: Shrink buffer size, now that we changed the type.
72270
72271 2005-10-23  Simon Josefsson  <jas@extundo.com>
72272
72273         * gnulib-tool (func_import): Fix --tests-base.
72274
72275 2005-10-22  Simon Josefsson  <jas@extundo.com>
72276
72277         * modules/arcfour (Depends-on): Need stdint.
72278
72279 2005-10-22  Simon Josefsson  <jas@extundo.com>
72280
72281         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72282         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72283
72284 2005-10-22  Simon Josefsson  <jas@extundo.com>
72285
72286         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72287         suggested by Bruno Haible <bruno@clisp.org>.
72288
72289 2005-10-22  Simon Josefsson  <jas@extundo.com>
72290
72291         * lib/crc.h: Include stddef.h, for size_t.
72292
72293 2005-10-22  Simon Josefsson  <jas@extundo.com>
72294
72295         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72296         arcfour_context struct (simplify test vector testing in GNU
72297         Shishi).
72298
72299 2005-10-21  Simon Josefsson  <jas@extundo.com>
72300
72301         * modules/des, modules/des-tests: New files.
72302
72303         * modules/gc-des, modules/gc-des-tests: New files.
72304
72305         * tests/test-des.c, tests/test-gc-des.c: New file.
72306
72307 2005-10-21  Simon Josefsson  <jas@extundo.com>
72308
72309         * modules/arctwo, modules/arctwo-tests: New files.
72310
72311         * tests/test-arctwo.c: New file.
72312
72313         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72314
72315         * tests/test-gc-arctwo.c: New file.
72316
72317 2005-10-21  Simon Josefsson  <jas@extundo.com>
72318
72319         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72320         Bruno Haible <bruno@clisp.org>.
72321
72322         * m4/gc-des.m4: New file.
72323
72324 2005-10-21  Simon Josefsson  <jas@extundo.com>
72325
72326         * m4/arctwo.m4: New file.
72327
72328         * m4/gc-arctwo.m4: New file.
72329
72330 2005-10-21  Simon Josefsson  <jas@extundo.com>
72331
72332         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72333         block.
72334
72335 2005-10-21  Simon Josefsson  <jas@extundo.com>
72336
72337         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72338         <bruno@clisp.org>.
72339
72340         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72341
72342         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72343         Bruno Haible <bruno@clisp.org>.
72344
72345         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72346         <bruno@clisp.org>.
72347
72348 2005-10-21  Simon Josefsson  <jas@extundo.com>
72349
72350         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72351
72352 2005-10-21  Simon Josefsson  <jas@extundo.com>
72353
72354         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72355
72356 2005-10-21  Simon Josefsson  <jas@extundo.com>
72357
72358         * lib/des.h, lib/des.c: New files.
72359
72360         * lib/gc-gnulib.c: Support DES.c
72361
72362 2005-10-21  Simon Josefsson  <jas@extundo.com>
72363
72364         * lib/arctwo.h, lib/arctwo.c: New files.
72365
72366         * lib/gc-gnulib.c: Support ARCTWO.
72367
72368 2005-10-21  Simon Josefsson  <jas@extundo.com>
72369
72370         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72371         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72372
72373 2005-10-21  Simon Josefsson  <jas@extundo.com>
72374
72375         * gnulib-tool (func_import, func_create_testdir): Define automake
72376         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72377         Makefile.am snippet),
72378         suggested by Bruno Haible <bruno@clisp.org>.
72379
72380         * modules/gc (Makefile.am): Use it.
72381
72382 2005-10-21  Bruno Haible  <bruno@clisp.org>
72383
72384         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72385         patch.
72386
72387 2005-10-19  Simon Josefsson  <jas@extundo.com>
72388
72389         * tests/test-gc-rijndael.c: New file.
72390
72391         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72392
72393 2005-10-19  Simon Josefsson  <jas@extundo.com>
72394
72395         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72396         interface too.
72397
72398 2005-10-19  Simon Josefsson  <jas@extundo.com>
72399
72400         * tests/test-gc-arcfour.c: New file.
72401
72402         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72403
72404 2005-10-19  Simon Josefsson  <jas@extundo.com>
72405
72406         * modules/gc-md4, modules/gc-md4-tests: New file.
72407
72408         * tests/test-gc-md4.c: New file.
72409
72410 2005-10-19  Simon Josefsson  <jas@extundo.com>
72411
72412         * m4/gc-md4.m4: New file.
72413
72414 2005-10-19  Simon Josefsson  <jas@extundo.com>
72415
72416         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72417         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72418         <kasal@ucw.cz>.
72419
72420 2005-10-19  Simon Josefsson  <jas@extundo.com>
72421
72422         * m4/gc-arcfour.m4: New file.
72423
72424         * m4/gc-rijndael.m4: New file.
72425
72426 2005-10-19  Simon Josefsson  <jas@extundo.com>
72427
72428         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72429
72430 2005-10-19  Simon Josefsson  <jas@extundo.com>
72431
72432         * lib/gc-gnulib.c: Support ARCFOUR.
72433
72434 2005-10-19  Simon Josefsson  <jas@extundo.com>
72435
72436         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72437         support.
72438
72439         * lib/gc.h: Add ECB enum type.
72440
72441         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72442
72443 2005-10-18  Simon Josefsson  <jas@extundo.com>
72444
72445         * tests/test-md5.c: New file.
72446
72447         * modules/md5-tests: New file.
72448
72449 2005-10-18  Simon Josefsson  <jas@extundo.com>
72450
72451         * tests/test-md4.c: New file.
72452
72453         * modules/md4, modules/md4-tests: New files.
72454
72455 2005-10-18  Simon Josefsson  <jas@extundo.com>
72456
72457         * m4/md4.m4: New file.
72458
72459 2005-10-18  Simon Josefsson  <jas@extundo.com>
72460
72461         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72462
72463 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72464
72465         * gnulib-tool (func_create_testdir): Omit the second check whether
72466         BUILT_SOURCES in nonempty.
72467
72468 2005-10-17  Simon Josefsson  <jas@extundo.com>
72469
72470         * tests/test-rijndael.c: New file.
72471
72472 2005-10-17  Simon Josefsson  <jas@extundo.com>
72473
72474         * modules/sha1: Depend on stdint instead of md5.
72475
72476         * modules/md5: Depend on stdint, remove uint32_t.
72477
72478 2005-10-17  Simon Josefsson  <jas@extundo.com>
72479
72480         * modules/gc-sha1-tests: New file.
72481
72482         * tests/test-gc-sha1.c: New file.
72483
72484 2005-10-17  Simon Josefsson  <jas@extundo.com>
72485
72486         * m4/md5.m4: Remove call to uint32_t.m4.
72487
72488 2005-10-17  Simon Josefsson  <jas@extundo.com>
72489
72490         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72491
72492         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72493         md5.h.
72494
72495         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72496
72497         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72498
72499 2005-10-17  Simon Josefsson  <jas@extundo.com>
72500
72501         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72502
72503 2005-10-17  Simon Josefsson  <jas@extundo.com>
72504
72505         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72506
72507 2005-10-17  Simon Josefsson  <jas@extundo.com>
72508
72509         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72510
72511         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72512
72513 2005-10-17  Bruno Haible  <bruno@clisp.org>
72514
72515         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72516         that it can also be used in a test.
72517
72518 2005-10-16  Bruno Haible  <bruno@clisp.org>
72519
72520         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72521         TESTS_ENVIRONMENT, so that individual tests can augment it.
72522
72523         * gnulib-tool (func_create_testdir): Use an intermediate target for
72524         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72525         macros, like $(ALLOCA_H), which cannot be passed through the command
72526         line.
72527
72528 2005-10-15  Simon Josefsson  <jas@extundo.com>
72529
72530         * modules/rijndael-tests: New file.
72531
72532         * modules/rijndael: New file.
72533
72534 2005-10-15  Simon Josefsson  <jas@extundo.com>
72535
72536         * m4/rijndael.m4: New file.
72537
72538 2005-10-15  Simon Josefsson  <jas@extundo.com>
72539
72540         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72541
72542         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72543
72544 2005-10-14  Simon Josefsson  <jas@extundo.com>
72545
72546         * tests/test-arcfour.c: New file.
72547
72548         * modules/arcfour, modules/arcfour-tests: New files.
72549
72550 2005-10-14  Simon Josefsson  <jas@extundo.com>
72551
72552         * m4/arcfour.m4: New file.
72553
72554 2005-10-14  Simon Josefsson  <jas@extundo.com>
72555
72556         * lib/arcfour.h, lib/arcfour.c: New files.
72557
72558 2005-10-14  Roland McGrath  <roland@redhat.com>
72559
72560         Import from libc.  [BZ #1331]
72561         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72562         macro argument.
72563         Reported by Matej Vela <vela@debian.org>.
72564
72565 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72566
72567         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72568         include <wchar.h>; no longer needed.
72569
72570 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72573
72574 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72575         and  Ulrich Drepper  <drepper@redhat.com>
72576
72577         Import from libc.
72578         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72579         instead of inline stream orientation test and two separate
72580         function calls.  Pay no attention to USE_IN_LIBIO.
72581
72582 2005-10-13  Simon Josefsson  <jas@extundo.com>
72583
72584         * modules/gc-hmac-md5-tests: New file.
72585
72586         * tests/test-gc-hmac-sha1.c: New file.
72587
72588         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72589
72590         * modules/gc-hmac-md5-tests: New file.
72591
72592         * tests/test-gc-md5.c: New file.
72593
72594         * modules/gc-md5-tests: New file.
72595
72596 2005-10-13  Simon Josefsson  <jas@extundo.com>
72597
72598         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72599         Move memory allocation outside of loop.
72600
72601 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72604         intermediate directory is in a read-only file system.  Problem
72605         reported by Eric Blake.
72606
72607 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72608
72609         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72610
72611 2005-10-12  Simon Josefsson  <jas@extundo.com>
72612
72613         * tests/test-hmac-sha1.c: New file.
72614
72615         * modules/hmac-sha1-tests: New file.
72616
72617         * modules/hmac-sha1: New file.
72618
72619 2005-10-12  Simon Josefsson  <jas@extundo.com>
72620
72621         * modules/gc-sha1: New file.
72622
72623 2005-10-12  Simon Josefsson  <jas@extundo.com>
72624
72625         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72626
72627         * tests/test-gc-pbkdf2-sha1.c: New file.
72628
72629 2005-10-12  Simon Josefsson  <jas@extundo.com>
72630
72631         * modules/gc-md5, modules/gc-hmac-md5: New files.
72632
72633         * modules/gc (Files): Remove md5, memxor and hmac files.
72634
72635 2005-10-12  Simon Josefsson  <jas@extundo.com>
72636
72637         * m4/gc-pbkdf2-sha1.m4: New file.
72638
72639         * m4/gc-hmac-sha1.m4: New file.
72640
72641         * m4/gc-sha1: New file.
72642
72643         * m4/hmac-sha1.m4: New file.
72644
72645 2005-10-12  Simon Josefsson  <jas@extundo.com>
72646
72647         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72648
72649         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72650
72651 2005-10-12  Simon Josefsson  <jas@extundo.com>
72652
72653         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72654         suggested by Bruno Haible <bruno@clisp.org>.
72655
72656 2005-10-12  Simon Josefsson  <jas@extundo.com>
72657
72658         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72659
72660 2005-10-12  Simon Josefsson  <jas@extundo.com>
72661
72662         * lib/gc-pbkdf2-sha1.c: New file.
72663
72664         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72665
72666 2005-10-12  Simon Josefsson  <jas@extundo.com>
72667
72668         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72669
72670         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72671
72672 2005-10-12  Simon Josefsson  <jas@extundo.com>
72673
72674         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72675         GC_USE_HMAC_MD5, respectively.
72676
72677         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72678         (gc_md5): Fix typo.
72679
72680         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72681
72682         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72683
72684         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72685
72686 2005-10-12  Bruno Haible  <bruno@clisp.org>
72687
72688         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72689         Reported by Stepan Kasal <kasal@ucw.cz>.
72690
72691 2005-10-11  Simon Josefsson  <jas@extundo.com>
72692
72693         * tests/test-crc.c: New file.
72694
72695         * modules/crc, modules/crc-tests: New files.
72696
72697 2005-10-11  Simon Josefsson  <jas@extundo.com>
72698
72699         * m4/crc.m4: New file.
72700
72701 2005-10-11  Simon Josefsson  <jas@extundo.com>
72702
72703         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72704
72705         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72706
72707         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72708
72709 2005-10-11  Simon Josefsson  <jas@extundo.com>
72710
72711         * lib/crc.h, lib/crc.c: New files.
72712
72713         * lib/gc.h (gc_hash_buffer): Add doc.
72714
72715 2005-10-11  Bruno Haible  <bruno@clisp.org>
72716
72717         * modules/c-strcasestr: New file.
72718         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72719
72720 2005-10-11  Bruno Haible  <bruno@clisp.org>
72721
72722         * modules/c-strcase: New file.
72723         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72724
72725 2005-10-11  Bruno Haible  <bruno@clisp.org>
72726
72727         * lib/strcasecmp.c: Include limits.h.
72728         (strcasecmp): Avoid integer overflow on exotic platforms.
72729         * lib/strncasecmp.c: Include limits.h.
72730         (strncasecmp): Avoid integer overflow on exotic platforms.
72731         Reported by Paul Eggert.
72732
72733 2005-10-11  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/c-strcasestr.h: New file, from GNU gettext.
72736         * lib/c-strcasestr.c: New file, from GNU gettext.
72737
72738 2005-10-11  Bruno Haible  <bruno@clisp.org>
72739
72740         * lib/c-strcase.h: New file, from GNU gettext.
72741         * lib/c-strcasecmp.c: New file, from GNU gettext.
72742         * lib/c-strncasecmp.c: New file, from GNU gettext.
72743
72744 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         * modules/mempcpy (License): GPL -> LGPL.
72747         * modules/strchrnul (License): Likewise.
72748         * modules/sysexits (License): Likewise.
72749
72750 2005-10-08  Simon Josefsson  <jas@extundo.com>
72751
72752         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72753
72754 2005-10-07  Simon Josefsson  <jas@extundo.com>
72755
72756         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72757
72758 2005-10-06  Simon Josefsson  <jas@extundo.com>
72759
72760         * tests/test-hmac-md5.c: New file.
72761
72762         * modules/hmac-md5-tests: New file.
72763
72764         * modules/hmac-md5: New file.
72765
72766 2005-10-06  Simon Josefsson  <jas@extundo.com>
72767
72768         * m4/hmac-md5.m4: New file.
72769
72770         * m4/memxor.m4: Require gl_C_RESTRICT.
72771
72772 2005-10-06  Simon Josefsson  <jas@extundo.com>
72773
72774         * lib/memxor.c (memxor): Avoid casts and warnings.
72775
72776 2005-10-06  Simon Josefsson  <jas@extundo.com>
72777
72778         * lib/hmac-md5.c: New file.
72779
72780         * lib/hmac.h: New file.
72781
72782 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72785         promotes to int, not unsigned int, to catch the AIX 5.3
72786         compiler bug.
72787
72788 2005-10-05  Simon Josefsson  <jas@extundo.com>
72789
72790         * modules/memxor: New file.
72791
72792         * modules/iconv (Files): Move config.rpath to havelib, it is used
72793         there.
72794
72795         * modules/havelib (Files): Add config.rpath.
72796
72797 2005-10-05  Simon Josefsson  <jas@extundo.com>
72798
72799         * m4/memxor.m4: New file.
72800
72801 2005-10-05  Simon Josefsson  <jas@extundo.com>
72802
72803         * lib/memxor.c (memxor): Fix compiler error.
72804
72805         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72806         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72807
72808         * lib/memxor.h, lib/memxor.c: New files.
72809
72810         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72811         we assume all systems have it, suggested by Jim Meyering
72812         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72813         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72814         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72815         same reasons.
72816
72817 2005-10-05  Simon Josefsson  <jas@extundo.com>
72818
72819         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72820
72821 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72824         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72825         needed, since the source code now assumes these .h files.
72826
72827 2005-10-05  Derek Price  <derek@ximbiot.com>
72828
72829         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72830
72831 2005-10-05  Bruno Haible  <bruno@clisp.org>
72832
72833         * modules/stdint (License): Change to LGPL.
72834
72835 2005-10-04  Simon Josefsson  <jas@extundo.com>
72836
72837         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72838         D. Baushke" <mdb@gnu.org>.
72839
72840 2005-10-04  Bruno Haible  <bruno@clisp.org>
72841
72842         * lib/verify.h (verify_true): Provide alternative definition for C++.
72843
72844 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72847         (SSIZE_MAX): New macro, if not already defined.
72848         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72849         than 2 GiB.
72850
72851 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         Sync from coreutils.
72854         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72855         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72856         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72857         ULLONG_MAX doesn't work with 2.7.2.1.
72858
72859 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72862         From Ben Pfaff.
72863
72864         * modules/exclude (Depends-on): Depend on verify.
72865         * modules/strtoimax (Depends-on): Likewise.
72866         * modules/utimecmp (Depends-on): Likewise.
72867
72868 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * lib/exclude.c: Include verify.h.
72871         (verify): Remove.  All callers changed to use verify.h's version.
72872         * lib/strtoimax.c: Likewise.
72873         * lib/utimecmp.c: Likewis.e
72874
72875         Sync from coreutils.
72876         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
72877         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
72878         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
72879         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
72880         bother returning ENOSYS if settimeofday or stime fails; just let
72881         them return whatever errno they want to return.
72882         * lib/utimens.c: Include unistd.h, for dup2.
72883         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
72884         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
72885
72886 2005-10-02  Jim Meyering  <jim@meyering.net>
72887
72888         Sync from coreutils.
72889         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
72890         from glibc-2.2.5 that fails for read-only files.
72891
72892 2005-10-02  Jim Meyering  <jim@meyering.net>
72893
72894         Sync from coreutils.
72895         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
72896         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
72897         `#if HAVE_CONFIG_H'.
72898         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
72899         Remove AT_FDCWD test.
72900         Do not consume the fd unless successful.
72901         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
72902         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
72903         block, so that we don't even try to compile it if settimeofday is
72904         available.  This works around a compilation failure on OSF1 V5.1,
72905         due to stime requiring a `long int*' while tv_sec is `int'.
72906
72907 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
72908
72909         Sync from coreutils.
72910         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
72911         against `yes', rather than just testing for nonempty.
72912
72913 2005-10-01  Simon Josefsson  <jas@extundo.com>
72914
72915         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72916         and Darwin.
72917
72918         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72919         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72920         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72921         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72922         Check if struct addrinfo is declared.
72923
72924 2005-10-01  Simon Josefsson  <jas@extundo.com>
72925
72926         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72927         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72928         AI_* and EAI_* definitions.  Protect function declarations.
72929
72930 2005-10-01  Jim Meyering  <jim@meyering.net>
72931
72932         Sync from coreutils.
72933
72934         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72935         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72936         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72937         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72938         in the inet and nsl libraries.  Required on Solaris 5.7.
72939
72940 2005-10-01  Jim Meyering  <jim@meyering.net>
72941
72942         Sync from coreutils.
72943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72944         in the inet and nsl libraries.  Required on Solaris 5.7.
72945
72946 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
72947
72948         * lib/getdelim.c (getdelim): Remove unused variables.
72949
72950 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72951
72952         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72953         so that the code works even with ancient cpp.  Portability problem
72954         with GCC 2.7.2.1 reported by Thomas M.Ott.
72955
72956 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * modules/regex (Depends-on): Add strcase.
72959
72960         * modules/gethostname (Licence): Change from GPL to LGPL, since
72961         gethostname.c is a trivial implementation of a standard library
72962         function.
72963         * modules/poll (License): Change from GPL to LGPL, since it's
72964         derived from LGPL code.
72965
72966 2005-09-27  Jim Meyering  <jim@meyering.net>
72967
72968         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72969         HAVE_CONFIG_H.
72970
72971         * lib/intprops.h (signed_type_or_expr__): Define.
72972         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72973         for unsigned types.
72974
72975 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72976
72977         * lib/verify.h (verify_expr): Remove, replacing with:
72978         (verify_true): New macro that returns true instead of void.
72979         (verify_type__): Remove.
72980         (verify): Use verify_true rather than verify_type__.
72981
72982 2005-09-26  Bruno Haible  <bruno@clisp.org>
72983
72984         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72985         is necessary.
72986         (lib_SOURCES): Remove mbchar.c.
72987         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72988         (Files): Add m4/mbrtowc.m4.
72989         * modules/mbiter: Likewise.
72990         * modules/mbuiter: Likewise.
72991
72992 2005-09-26  Bruno Haible  <bruno@clisp.org>
72993
72994         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72995         compile mbchar.c if they are not both present.
72996         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72997         * m4/mbiter.m4 (gl_MBITER): Likewise.
72998         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72999         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73000         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73001
73002 2005-09-25  Jim Meyering  <jim@meyering.net>
73003
73004         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73005         also uses socklen_t.
73006
73007 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         * lib/utimens.c (ENOSYS): Define if not already defined.
73010         (futimens): Support having a null PATH if the file descriptor
73011         is nonnegative.
73012
73013         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73014         Remove.
73015         (__attribute): Define to empty unless GCC 3.1 or later.
73016         This works around a core dump on OpenBSD 3.4, which has GCC
73017         2.95.3, which dumps core when given __attribute__(()).  It also
73018         simplifies other tests, since we really don't want to bother with
73019         worrying about which ancient version of GCC supported what.
73020         Original problem reported by Yoann Vandoorselaere, with part of
73021         the fix suggested by Derek Price.
73022
73023 2005-09-24  Jim Meyering  <jim@meyering.net>
73024
73025         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73026         so we can once again use a positive bitfield width of 1 -- now we
73027         don't have to explain why we were using a bitfield width of 2.
73028
73029 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73032         and similarly for the other external symbols.  Problem reported
73033         by James Gallager.
73034
73035         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73036         bug reported by Jim Meyering.
73037
73038         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73039         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73040         not needed, since socklen is a prerequisite module.
73041
73042 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73045         Problem reported by Eric Blake.
73046         (getaddrinfo): Initialize se so that it's not garbage.
73047         Redo internal storage allocation so that it doesn't make unportable
73048         assumptions about alignment.
73049         Fix a memory leak.
73050
73051         * lib/utimens.c (futimens): Use futimesat if available.
73052         Prefer it to futimes since it doesn't have the futimes bug.
73053
73054         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73055         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73056         Instead, declare a function that returns a pointer to an array,
73057         and use verify_type__ to declare the size of the array.
73058         Problem and germ of a solution reported by Bruno Haible.
73059         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73060         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73061
73062 2005-09-23  Jim Meyering  <jim@meyering.net>
73063
73064         Sync from coreutils.
73065         Correct build failure (socklen_t not defined) on at least
73066         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73068
73069 2005-09-23  Jim Meyering  <jim@meyering.net>
73070
73071         * modules/getaddrinfo (Depends-on): Add socklen.
73072
73073 2005-09-23  Bruno Haible  <bruno@clisp.org>
73074
73075         * tests/test-verify.c: New file.
73076
73077 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73078
73079         Sync from coreutils.
73080
73081         * modules/argmatch (Depends-on): Add verify.
73082         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73083         unistd-safer.
73084         * modules/save-cwd (Depends-on): Likewise.
73085
73086         * modules/openat (Files): Add lib/openat-die.c.
73087         (Depends-on): Remove error, exitfail.
73088         Add dirname.
73089
73090         * modules/verify: New file.
73091         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73092         with "verify" module.
73093
73094 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         Sync from coreutils.
73097
73098         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73099         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73100         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73101         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73102         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73103         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73104         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73105         Don't bother checking for string.h, stdlib.h, unistd.h.
73106         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73107         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73108         module's job.
73109         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73110         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73111
73112         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73113         (gl_GETDATE): Use it.
73114
73115         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73116
73117 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73118
73119         Sync from coreutils.
73120
73121         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73122         stat-time.h.
73123         * lib/argmatch.h: Include verify.h
73124         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73125         (ARGMATCH_ASSERT): Remove; unused.
73126         * lib/canonicalize.c: Assume STDC_HEADERS.
73127         * lib/exclude.c: Include "strcase.h".
73128         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73129         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73130         and stdio-safer.h.
73131         (getusershell): Call fopen, not fopen_safer.
73132         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73133         Do not include unistd-safer.h.
73134         (save_cwd): Don't call fd_safer; no longer needed
73135         now that we include fcntl--.h.
73136
73137         * lib/getdate.y (relative_time): New type.
73138         (RELATIVE_TIME_0): New constant.
73139         (parser_control): Use relative_time instead of doing it ourselves.
73140         (%union): Add new relative_time rel member.
73141         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73142         Now typeless.
73143         (relunit, relunit_snumber): Now of type rel.
73144         (zone, rel, relunit, get_date): Adjust to above changes.
73145
73146         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73147         Do not include unistd-safer.h.
73148         (getloadavg): Don't call fd_safer; no longer needed
73149         now that we include fcntl--.h.
73150
73151         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73152         (make_dir_parents): Treat ENOSYS like EEXIST.
73153
73154         Improve quality of diagnostics on restore_cwd failure.
73155         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73156         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73157         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73158         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73159         each time through the loop.  Do not diagnose restore_cwd failure;
73160         that is the caller's job (and perhaps the caller does not care).
73161
73162         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73163         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73164         If the file already exists but is not a directory, don't bother
73165         to try to make its parents.
73166         Close potential file descriptor leak if we can't chdir("/") (!).
73167         Don't always return true if chdir($PWD) fails; return true only
73168         if the requested action was done successfully (except for the
73169         chdir($PWD)).
73170         Don't log final directory unless we actually made it.
73171         Refactor to avoid duplicate code to fix up permissions.
73172         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73173
73174         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73175         to make it a bit faster and (I hope) clearer.
73176         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73177         Fix bug in formats like %2N.
73178
73179         * lib/verify.h: New file.
73180
73181 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73182
73183         Sync from coreutils.
73184         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73185
73186 2005-09-22  Jim Meyering  <jim@meyering.net>
73187
73188         Sync from coreutils.
73189
73190         * m4/lstat.m4 (gl_FUNC_LSTAT):
73191         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73192         Remove obsolete comment.
73193         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73194         * m4/xstrtod.m4: Likewise.
73195
73196         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73197
73198 2005-09-22  Jim Meyering  <jim@meyering.net>
73199
73200         Sync from coreutils.
73201
73202         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73203
73204         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73205         the .tm_year member, since otherwise gcc-4.0 would now warn about
73206         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73207
73208         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73209         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73210
73211         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73212         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73213         when run in a time zone for which daylight savings time is in effect
73214         for the starting date.
73215
73216         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73217         stop us from restricting permissions of just-created absolute-named
73218         directories.
73219         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73220         to restore initial working directory.
73221         * lib/mkdir-p.c (make_dir_parents): New parameter:
73222         different_working_dir, to tell caller if/when we change the working
73223         directory and are unable to return to the initial one.
73224         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73225         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73226         `return false'.  This fixes a bug introduced on 2004-07-30.
73227
73228         * lib/openat.c (fdopendir): Be sure to close the supplied
73229         file descriptor before returning.  This makes our replacement
73230         implementation a little closer to Solaris's, where fdopendir
73231         ties the file descriptor to the returned DIR* pointer.
73232         * lib/openat.c (unlinkat): New function.
73233         * lib/openat.h (unlinkat): Add prototype.
73234         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73235         (openat_restore_fail): Rename from openat_restore_die.
73236         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73237
73238         Provide an alternative to exiting immediately upon save_cwd or
73239         restore_cwd failure.  Now, an application can arrange e.g.,
73240         to perform a longjump in that case.
73241         * lib/openat.c: Include dirname.h.
73242         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73243         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73244         and openat_restore_die rather than calling error directly.
73245         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73246
73247         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73248         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73249         define.
73250
73251         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73252         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73253                             int utc, int nanoseconds);
73254         Background:
73255         date should not have to allocate a megabyte of virtual memory to
73256         handle a format argument like +%1048575T.  When implemented with
73257         strftime, it must allocate such a buffer, use strftime to fill it
73258         in, print it, then free it.
73259         With fprintftime, it simply prints everything and exits.
73260         With no need for memory allocation, that's one fewer way to fail.
73261         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73262         optional field width, not before, so we accept %9:z, not %:9z.
73263         (my_strftime): Be sure to use L_('x') for literals.
73264
73265         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73266         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73267         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73268         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73269         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73270         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73271         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73272         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73273         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73274         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73275         * lib/xgethostname.c, lib/xreadlink.c:
73276         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73277
73278         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73279         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73280         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73281         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73282         and don't include <sys/file.h>).
73283
73284 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73285
73286         Sync from coreutils.
73287
73288         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73289         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73290         [!LDAV_DONE]: Avoid unused variable warning.
73291
73292 2005-09-21  Bruno Haible  <bruno@clisp.org>
73293
73294         * lib/unicodeio.h (unicode_to_mb): New declaration.
73295
73296 2005-09-20  Derek Price  <derek@ximbiot.com>
73297
73298         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73299         getaddrinfo.h.
73300
73301 2005-09-20  Bruno Haible  <bruno@clisp.org>
73302
73303         * gnulib-tool: Remove trailing slashes from the values specified for
73304         --source-base, --m4-base, --tests-base, --aux-dir.
73305         Suggested by Simon Josefsson <jas@extundo.com>.
73306
73307 2005-09-20  Bruno Haible  <bruno@clisp.org>
73308
73309         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73310         func_modules_to_filelist, func_import, func_create_testdir): Make all
73311         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73312         change when gnulib-tool is invoked in a different locale.
73313
73314 2005-09-19  Simon Josefsson  <jas@extundo.com>
73315
73316         * m4/socklen.m4: Fix typo.
73317
73318 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73319
73320         Use a consistent style for including <config.h>.
73321         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73322         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73323         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73324         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73325         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73326         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73327         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73328         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73329         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73330         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73331         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73332         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73333         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73334         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73335         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73336         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73337         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73338         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73339         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73340         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73341         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73342         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73343         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73344         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73345         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73346         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73347         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73348         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73349         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73350         lib/xstrtoumax.c, lib/yesno.c:
73351         Standardize inclusion of config.h.
73352         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73353         lib/inttostr.h:  Removed inclusion of config.h from header files.
73354         * lib/inttostr.c:  Adjusted in-tree users.
73355         * lib/timespec.h: Remove superfluous warning to include config.h.
73356         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73357         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73358         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73359         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73360         config.h with HAVE_CONFIG_H.
73361
73362 2005-09-19  Jim Meyering  <jim@meyering.net>
73363
73364         * modules/pathmax (License): Change to LGPL.
73365
73366 2005-09-19  Derek Price  <derek@ximbiot.com>
73367
73368         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73369
73370 2005-09-19  Bruno Haible  <bruno@clisp.org>
73371
73372         * gnulib-tool (import): Provide default for --tests-base.
73373
73374 2005-09-19  Bruno Haible  <bruno@clisp.org>
73375
73376         * doc/quote.texi: New file, extracted from gnulib.texi.
73377         * doc/ctime.texi: New file, extracted from gnulib.texi.
73378         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73379         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73380         * doc/gnulib.texi: Include them.
73381
73382 2005-09-18  Bruno Haible  <bruno@clisp.org>
73383
73384         Portability fix.
73385         * gnulib-tool (func_readlink): New function.
73386         (func_ln_if_changed): Use it.
73387
73388 2005-09-18  Bruno Haible  <bruno@clisp.org>
73389
73390         * gnulib-tool: Support --with-tests also with --import.
73391         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73392         (func_import): Use variables $testsbase and $inctests. Emit a
73393         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73394         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73395         SUBDIRS += $testsdir.
73396         (func_create_testdir): Update.
73397
73398 2005-09-18  Bruno Haible  <bruno@clisp.org>
73399
73400         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73401         instead of $dry_run.
73402         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73403         (func_ln_if_changed): Don't handle dry-run here.
73404         (func_import): In dry-run mode, detect more precisely which actions
73405         would be performed, and don't use "...ing" verbs.
73406
73407 2005-09-18  Bruno Haible  <bruno@clisp.org>
73408
73409         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73410         (func_import): Use join on two temporary files instead of three nested
73411         loops, in order to determine which files are new or old.
73412
73413 2005-09-18  Bruno Haible  <bruno@clisp.org>
73414
73415         * gnulib-tool (func_import): Comment out code that spits out the
73416         new files with --dry-run.
73417
73418 2005-09-18  Bruno Haible  <bruno@clisp.org>
73419
73420         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73421
73422 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         * lib/stat-time.h: New file.
73425         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73426         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73427         in a different way.
73428         (timespec_cmp): New function.
73429         * lib/utimecmp.c: Include stat-time.h.
73430         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73431         members exist, not on the obsolescent ST_MTIM_NSEC.
73432         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73433
73434 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73437
73438 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         * MODULES.html.sh (File system functions): Add stat-time.
73441         * modules/stat-time: New file.
73442         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73443         is now done in a different way, by the stat-time module.
73444         * modules/utimecmp (Depends-on): Add stat-time.
73445
73446 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73447
73448         * m4/st_mtim.m4: Remove.  Superseded by...
73449         * m4/stat-time.m4: New file.
73450         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73451         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73452
73453 2005-09-15  Derek Price  <derek@ximbiot.com>
73454
73455         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73456
73457 2005-09-15  Derek Price  <derek@ximbiot.com>
73458
73459         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73460         * lib/regex_internal.c: Ditto, using this...
73461         (__GNUC_PREREQ): ...new macro.
73462         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73463         using...
73464         (__GNUC_PREREQ): ...this new macro.
73465
73466         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73467
73468 2005-09-15  Derek Price  <derek@ximbiot.com>
73469             Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73472         changes, consolidating in...
73473         * lib/regex_internal.h: ...this file.
73474
73475 2005-09-13  Jim Meyering  <jim@meyering.net>
73476
73477         * lib/canon-host.c: Filter through gnu indent and reword comments
73478         slightly.
73479         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73480
73481 2005-09-13  Derek Price  <derek@ximbiot.com>
73482
73483         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73484         failure.
73485         Reported by Jim Meyering  <jim@meyering.net>.
73486
73487 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73488
73489         * lib/base64.c: Typo.
73490         (base64_encode): Put b64str in initialized data section.
73491
73492 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         Merge glibc and coreutils changes into gnulib, plus a few
73495         extra fixes.
73496         * lib/md5.c: Use #error rather than a string.
73497         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73498         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73499         (__attribute__): Define to empty for non recent-GCC.
73500         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73501         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73502         Renamed from their non-__ counterparts, with new macros replacing
73503         them if not _LIBC.  Add __THROW attribute.
73504         (rol): Remove.
73505         (struct md5_ctx): Align buffer if using GCC.
73506         * lib/sha1.h (struct sha1_ctx): Likewise.
73507         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73508         The old name was backwards.
73509         (NOTSWAP): Remove; not used.
73510         (rol): New macro, moved here from md5.h.
73511         (sha1_process_block): Remove a FIXME that doesn't make sense.
73512
73513 2005-09-12  Derek Price  <derek@ximbiot.com>
73514
73515         Return usable errors from canon-host.
73516         * lib/canon-host.h: New file.
73517         * lib/canon-host.c (canon_host): Wrap...
73518         (canon_host_r): ...this new function, which now relies exclusively on
73519         getaddrinfo.
73520         (ch_strerror): New function.
73521         (last_cherror): New global.
73522         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73523         interface.
73524         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73525         void *.
73526         (freeaddrinfo): Free ai->ai_canonname when set.
73527
73528 2005-09-12  Derek Price  <derek@ximbiot.com>
73529
73530         Make canon-host require getaddrinfo.
73531         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73532         AC_LIBSOURCE canon-host.h.  Call...
73533         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73534         gl_GETADDRINFO.
73535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73536
73537 2005-09-12  Derek Price  <derek@ximbiot.com>
73538
73539         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73540         LGPL.
73541         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73542
73543 2005-09-12  Derek Price  <derek@ximbiot.com>
73544
73545         * lib/gai_strerror.c: Include config.h when available.  Include
73546         getaddrinfo.h before other headers to test interface.
73547         Reported by Larry Jones <lawrence.jones@ugs.com>.
73548
73549 2005-09-12  Derek Price  <derek@ximbiot.com>
73550             Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         * modules/glob (Files): Add glob-libc.h.
73553
73554 2005-09-12  Derek Price  <derek@ximbiot.com>
73555             Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73558         glob_.h, glob-libc.h.
73559         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73560
73561 2005-09-12  Derek Price  <derek@ximbiot.com>
73562             Paul Eggert  <eggert@cs.ucla.edu>
73563
73564         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73565         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73566         protecting things that should be done only in gnulib contexts.
73567         * lib/glob_.h: New file, containing only the glob things needed for
73568         gnulib.
73569         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73570         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73571         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73572         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73573         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73574         and to respect the namespace rules better.
73575
73576 2005-09-08  Simon Josefsson  <jas@extundo.com>
73577
73578         * modules/socklen: New file.
73579
73580 2005-09-08  Simon Josefsson  <jas@extundo.com>
73581
73582         * m4/socklen.m4: New file.
73583
73584 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * modules/utimens (Files): Add m4/utimbuf.m4, since
73587         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73588         Reported by Sergey Poznyakoff.
73589
73590 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73593         definitions, since that's the preferred style in glibc.
73594         Fix a minor spacing issue, and update copyright notice to match
73595         glibc's.
73596
73597 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73600
73601 2005-09-06  Simon Josefsson  <jas@extundo.com>
73602
73603         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73604         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73605
73606 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73607
73608         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73609         warning.
73610
73611 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * config/srclist.txt: Add glibc bug 1302.
73614
73615 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         Change bitset word type from unsigned int to unsigned long int,
73618         as this has better performance on typical 64-bit hosts.
73619         Port bitset code to hosts with unusual word sizes.
73620         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73621         (build_collating_symbol):
73622         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73623         argument is a bitset.  This is merely a style issue, but it makes
73624         it clearer that an entire array is expected.
73625         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73626         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73627         Port to the case where bitset_word is not the same as unsigned int.
73628         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73629         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73630         Likewise.
73631         * lib/regexec.c (check_dst_limits_calc_pos_1,
73632         check_subexp_matching_top):
73633         (build_trtable, group_nodes_into_DFAstates):
73634         Likewise.
73635         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73636         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73637         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73638         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73639         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73640         * lib/regcomp.c (optimize_subexps, lower_subexp):
73641         Work even if bitset_word has holes in its bitwise representation.
73642         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73643         * lib/regexec.c (check_dst_limits_calc_pos_1,
73644         check_subexp_matching_top):
73645         Likewise.
73646         * lib/regex_internal.c (re_string_reconstruct):
73647         Don't assume UCHAR_MAX == 255.
73648         * lib/regex_internal.h (bitset_set_all): Likewise.
73649         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73650         All uses changed.
73651         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73652         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73653         All uses changed.
73654         (BITSET_WORD_MAX): New macro.
73655         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73656         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73657         (bitset_empty, bitset_copy):
73658         Prefer sizeof (bitset) to multiplying it out ourselves.
73659         (bitset_not_merge): Remove; unused.
73660         (bitset_contain): Return bool, not unsigned int with one bit on.
73661         All callers changed.
73662         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73663         alignment than re_node_set; do this by defining a new internal
73664         type struct dests_alloc and using it to allocate memory.
73665
73666 2005-09-05  Bruno Haible  <bruno@clisp.org>
73667
73668         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73669         links.
73670
73671 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73672
73673         * modules/size_max (Makefile.am): Add size_max.h
73674
73675 2005-09-04  Derek Price  <derek@ximbiot.com>
73676
73677         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73678
73679 2005-09-03  Simon Josefsson  <jas@extundo.com>
73680
73681         * gnulib-tool: Fix typo.
73682
73683 2005-09-03  Simon Josefsson  <jas@extundo.com>
73684
73685         * config/srclist.txt: Add glibc bug 1293.
73686
73687 2005-09-03  Derek Price  <derek@ximbiot.com>
73688
73689         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73690         From Larry Jones <lawrence.jones@ugs.com>.
73691
73692 2005-09-02  Simon Josefsson  <jas@extundo.com>
73693
73694         * modules/socklen: New file.
73695
73696 2005-09-02  Simon Josefsson  <jas@extundo.com>
73697
73698         * modules/havelib: New module.
73699
73700         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73701         Use havelib.
73702
73703 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         Check for arithmetic overflow when calculating sizes, to prevent
73706         some buffer-overflow issues.  These patches are conservative, in the
73707         sense that when I couldn't determine whether an overflow was possible,
73708         I inserted a run-time check.
73709         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73710         macros.
73711         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73712         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73713         (re_xnrealloc, re_x2nrealloc): New inline functions.
73714         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73715         parse_bracket_exp):
73716         (build_equiv_class, build_charclass): Check for arithmetic overflow
73717         in size expression calculations.
73718         * lib/regex_internal.c (re_string_realloc_buffers):
73719         (build_wcs_upper_buffer, re_node_set_add_intersect):
73720         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73721         (re_dfa_add_node, register_state): Likewise.
73722         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73723         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73724         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73725         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73726
73727 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73728
73729         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73730         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73731
73732 2005-09-02  Bruno Haible  <bruno@clisp.org>
73733
73734         Support for lib vs. lib64 distinction on biarch platforms.
73735         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73736         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73737         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73738
73739 2005-09-02  Bruno Haible  <bruno@clisp.org>
73740
73741         * gnulib-tool (import): In the other first-use case, provide defaults
73742         as well.
73743
73744 2005-09-02  Bruno Haible  <bruno@clisp.org>
73745
73746         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73747         patches not yet found in the latest gettext release.
73748
73749 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73752         to avoid a collision with bits/local_lim.h in glibc.
73753         All uses changed.  Problem reported by Dmitry V. Levin in
73754         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73755
73756         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73757         bugs in int versus size_t comparisons.
73758         (re_string_context_at): Fix bug where the code assumed that
73759         Idx is signed.
73760
73761         Use bool where appropriate.
73762         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73763         All callers changed.
73764         (calc_eclosure_iter): Likewise, for ROOT arg.
73765         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73766         (build_charclass_op): Likewise, for NON_MATCH arg.
73767         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73768         (re_string_construct_common): Likewise, for ICASE arg.
73769         * lib/regexec.c (re_search_2_stub, re_search_stub):
73770         Likewise, for RET_LEN arg.
73771         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73772         (set_regs): Likewise, for FL_BACKTRACK arg.
73773         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73774         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73775         (calc_eclosure_iter, parse_bracket_exp):
73776         Use bool for internal variables that are booleans.
73777         * lib/regexec.c (re_search_internal, check_matching,
73778         proceed_next_node):
73779         (set_regs, build_sifted_states, sift_states_bkref):
73780         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73781         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73782         (find_collation_sequence_value):
73783         Likewise.
73784         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73785         (re_node_set_compare):
73786         Return bool, not int. All callers changed.
73787         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73788         (build_trtable, check_node_accept): Likewise.
73789         * lib/regex_internal.h: Include stdbool.h.
73790
73791         Fix bugs uncovered when converting to bool.
73792         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73793         failure instead of charging ahead blindly.
73794         * lib/regex_internal.c (register_state): Likewise.
73795         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73796         for freeing internal storage.
73797         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73798         bitset pieces used as boolean, to avoid undefined behavior
73799         on hosts that do int overflow checking.
73800
73801 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * config/srclist.txt: Add glibc bugs 1285-1287.
73804
73805 2005-09-01  Jim Meyering  <jim@meyering.net>
73806
73807         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73808         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73809         Require gl_STAT_MACROS, too.
73810
73811 2005-09-01  Bruno Haible  <bruno@clisp.org>
73812
73813         * gnulib-tool (import): In the first-use case, provide defaults.
73814
73815 2005-09-01  Bruno Haible  <bruno@clisp.org>
73816
73817         * gnulib-tool (func_import): Remove the .tmp files.
73818
73819 2005-09-01  Bruno Haible  <bruno@clisp.org>
73820
73821         * gnulib-tool (func_import): Fix handling of symbolic links.
73822
73823 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73826         old glibc regex code mishandles strings longer than 2**31 bytes.
73827         This patch fixes this when the regex code is used in gnulib
73828         (i.e., outside glibc).
73829
73830         This patch should not affect the use of the regex code inside
73831         glibc.  No doubt this problem also needs to be handled for glibc
73832         as well, but the result will be an incompatible change to the
73833         glibc ABI, and the old ABI will have to be supported too.  That
73834         can be the the subject for another patch.
73835
73836         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73837         governing whether the rest of this patch is active.  By default,
73838         the macro is disabled and the patch has no effect.
73839         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73840         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73841         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73842         (re_match_2, re_set_registers): Use the new types.
73843         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73844         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73845         New macros.
73846         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73847         (re_string_context_at, bin_tree_t, re_dfastate_t):
73848         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73849         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73850         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73851         (re_string_char_size_at, re_string_wchar_at):
73852         (re_string_elem_size_at):
73853         Use the new types and macros to port to 64-bit hosts.
73854         Use unsigned types for internal values, so that the code
73855         mostly works even for arrays larger than SSIZE_MAX.
73856         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73857         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73858         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73859         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73860         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73861         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73862         (calc_inveclosure, parse_dup_op, build_range_exp):
73863         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73864         (fetch_number, create_token_tree, mark_opt_subexp):
73865         Likewise.
73866         * lib/regex_internal.c (re_string_construct_common,
73867         create_ci_newstate):
73868         (create_cd_newstate, re_string_allocate, re_string_construct):
73869         (re_string_realloc_buffers, build_wcs_upper_buffer):
73870         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73871         (re_string_reconstruct, re_string_peek_byte_case):
73872         (re_string_fetch_byte_case, re_string_context_at):
73873         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73874         (re_node_set_init_copy, re_node_set_add_intersect):
73875         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73876         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73877         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73878         (re_acquire_state, re_acquire_state_context, register_state):
73879         Likewise.
73880         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
73881         search_cur_bkref_entry):
73882         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
73883         (re_search_internal, re_search_2_stub, re_search_stub)
73884         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
73885         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
73886         (update_cur_sifted_state, check_dst_limits):
73887         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73888         (check_subexp_limits, sift_states_bkref, merge_state_array):
73889         (check_subexp_matching_top, get_subexp, get_subexp_sub):
73890         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
73891         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73892         (expand_bkref_cache, check_node_accept_bytes):
73893         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
73894         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
73895         (acquire_init_state_context, check_halt_node_context):
73896         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
73897         (sift_states_backward, clean_state_log_if_needed):
73898         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
73899         (find_recover_state, transit_state_sb, transit_state_mb):
73900         (transit_state_bkref, build_trtable, match_ctx_clean):
73901         Likewise.
73902         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
73903         to work around an assumption that REG_MISSING is negative.
73904
73905         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
73906         (seek_collating_symbol_entry) [defined _LIBC]:
73907         (lookup_collation_sequence_value) [defined _LIBC]:
73908         (build_range_exp, build_collating_symbol) [defined _LIBC]:
73909         Use prototypes rather than old-style function definitions.
73910         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
73911         (transit_state_sb) [0]:
73912         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73913
73914         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73915         rm_eo.
73916
73917         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73918         (optimize_subexps, lower_subexp):
73919         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73920         since the signed shift might overflow.  Use 1u<<31 instead.
73921         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73922         Likewise.
73923         * lib/regexec.c (check_dst_limits_calc_pos_1,
73924         check_subexp_matching_top): Likewise.
73925
73926         * lib/regcomp.c (optimize_subexps, lower_subexp):
73927         Use CHAR_BIT rather than 8, for clarity.
73928         * lib/regexec.c (check_dst_limits_calc_pos_1):
73929         (check_subexp_matching_top): Likewise.
73930         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73931         have to worry about portability issues when shifting it left.
73932         Remove no-longer-needed test for table_size > 0.
73933         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73934         in a word, as the resulting behavior is undefined.
73935         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73936         in one case, a <= should have been an <, and in another case the
73937         whole test was missing.
73938         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73939         the standard name CHAR_BIT.
73940         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73941         this is not true on one's complement and signed-magnitude hosts.
73942
73943         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73944         next_last_offset.
73945         (struct re_dfa_t): Remove unused member states_alloc.
73946         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73947
73948 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73951         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73952         and large-file glibc and in 32-bit large-file Solaris.
73953
73954 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73955
73956         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73957         lengths fit in regoff_t; this isn't true if regoff_t is the same
73958         width as size_t.
73959         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73960         (= START + RANGE) instead of RANGE.  This avoids overflow
73961         problems when regoff_t is the same width as size_t.
73962         All callers changed.
73963         (re_search_2_stub): Check for overflow when adding the
73964         sizes of the two strings.
73965         (re_search_stub): Check for overflow when adding START
73966         to RANGE; if it occurs, substitute the extreme value.
73967
73968 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73969
73970         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73971
73972 2005-08-31  Jim Meyering  <jim@meyering.net>
73973
73974         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73975         a pointer-to-const.
73976         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73977         (register_state): Likewise.
73978         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73979         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73980         (group_nodes_into_DFAstates): Likewise.
73981
73982 2005-08-31  Jim Meyering  <jim@meyering.net>
73983
73984         * check-module: Add a FIXME comment.
73985
73986 2005-08-31  Eric Blake  <ebb9@byu.net>
73987
73988         * modules/unistd-safer (Files): Add unistd--.h.
73989         * modules/stdio-safer (Files): Add stdio--.h.
73990
73991 2005-08-31  Derek Price  <derek@ximbiot.com>
73992
73993         * lib/getdelim.c (getdelim): Return EOF on EOF.
73994         Reported by Larry Jones <lawrence.jones@ugs.com>.
73995
73996 2005-08-31  Bruno Haible  <bruno@clisp.org>
73997
73998         Avoid unnecessary diffs in the generated lib/Makefile.am.
73999         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74000         the generated files.
74001         (func_import): Don't set cmd.
74002
74003 2005-08-31  Bruno Haible  <bruno@clisp.org>
74004
74005         * lib/strstr.c: Include <stddef.h>, for NULL.
74006         * lib/strcasestr.c: Likewise.
74007         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74008
74009 2005-08-31  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool: New option --macro-prefix.
74012         (func_import): Use macro_prefix.
74013         (import): Handle option --macro-prefix.
74014
74015 2005-08-31  Bruno Haible  <bruno@clisp.org>
74016
74017         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74018         Also use new variables cached_lgpl, cached_libtool.
74019
74020 2005-08-31  Bruno Haible  <bruno@clisp.org>
74021
74022         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74023         always instantiating them.
74024
74025 2005-08-31  Bruno Haible  <bruno@clisp.org>
74026
74027         * gnulib-tool (func_import): Read the previous cached settings
74028         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74029         earlier added by gnulib but are now dropped. Warn when a gnulib file
74030         overwrites a non-gnulib file.
74031
74032 2005-08-31  Bruno Haible  <bruno@clisp.org>
74033
74034         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74035         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74036         projects that don't keep autogenerated files in CVS. Put into
74037         actioncmd only the specified modules, not the transitive closure.
74038
74039 2005-08-31  Bruno Haible  <bruno@clisp.org>
74040
74041         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74042         Create directories that shall be filled.
74043         (import): Don't look for gl_* macros in configure.ac. Recurse across
74044         all directories containing a gnulib-cache.m4 files, if meaningful.
74045
74046 2005-08-31  Bruno Haible  <bruno@clisp.org>
74047
74048         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74049         (import): Set seen_libtool when we see gl_LIBTOOL.
74050
74051 2005-08-31  Bruno Haible  <bruno@clisp.org>
74052
74053         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74054         declaration macro definitions from generated gnulib.m4.
74055
74056 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74057
74058         * lib/iconvme.h: Add prototype for iconv_alloc.
74059
74060 2005-08-29  Simon Josefsson  <jas@extundo.com>
74061
74062         * lib/iconvme.c: Fix errno.
74063
74064 2005-08-29  Bruno Haible  <bruno@clisp.org>
74065
74066         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74067         that it works when the directory contains spaces.
74068
74069 2005-08-29  Bruno Haible  <bruno@clisp.org>
74070
74071         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74072
74073 2005-08-29  Bruno Haible  <bruno@clisp.org>
74074
74075         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74076         Emit more advice.
74077
74078 2005-08-29  Bruno Haible  <bruno@clisp.org>
74079         and Stepan Kasal  <kasal@ucw.cz>
74080
74081         * check-module: If more parameters are given, check each of them
74082         separately; add more exceptions, as noted by Jim Meyering.
74083         (check_module): New procedure.
74084         (%exempt_header): Now contains all exceptions.
74085
74086 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74087
74088         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74089
74090 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74091
74092         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74093
74094 2005-08-28  Bruno Haible  <bruno@clisp.org>
74095
74096         * m4/gnulib-tool.m4: New file.
74097
74098 2005-08-27  Jim Meyering  <jim@meyering.net>
74099
74100         * modules/unistd-safer (Files): Add pipe-safer.c.
74101         * modules/fcntl-safer (Files): Add creat-safer.c.
74102
74103 2005-08-27  Jim Meyering  <jim@meyering.net>
74104
74105         * m4/stdlib-safer.m4: New file.  From coreutils.
74106         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74107         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74108         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74109         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74110         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74111
74112 2005-08-27  Jim Meyering  <jim@meyering.net>
74113
74114         * lib/fopen-safer.c: Merge minor changes from coreutils.
74115         * lib/dup-safer.c: Likewise.
74116         * lib/fd-safer.c: Likewise.
74117
74118         Merge from coreutils.
74119         * lib/stdio--.h: New file.
74120         * lib/stdlib--.h: New file.
74121         * lib/mkstemp-safer.c: New file.
74122
74123         GNU tar needs these.
74124         * lib/pipe-safer.c: New file.
74125         * lib/creat-safer.c: New file.
74126         * lib/fcntl--.h (creat): Define to creat_safer.
74127         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74128         * lib/unistd--.h (pipe): Define to pipe_safer.
74129         * lib/unistd-safer.h: Declare pipe_safer.
74130
74131 2005-08-26  Simon Josefsson  <jas@extundo.com>
74132
74133         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74134         Haible <bruno@clisp.org>.
74135
74136 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * lib/regex_internal.h: Remove all references to
74139         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74140         or better.
74141         (bitset_not, bitset_merge, bitset_not_merge):
74142         (bitset_mask, re_string_allocate, re_string_construct):
74143         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74144         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74145         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74146         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74147         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74148         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74149         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74150         (re_acquire_state_context):
74151         Remove unnecessary forward decls.
74152         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74153         Put __attribute at function definition,
74154         now that the function decl has been removed.
74155         * lib/regex_internal.c (re_string_peek_byte_case):
74156         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74157         Likewise.
74158
74159 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74160
74161         * m4/regex.m4: Add AC_PREREQ(2.50).
74162         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74163
74164 2005-08-25  Simon Josefsson  <jas@extundo.com>
74165
74166         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74167         __fsetlocking.
74168
74169 2005-08-25  Simon Josefsson  <jas@extundo.com>
74170
74171         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74172         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74173         GLIBC specific code.
74174
74175 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74176
74177         Make regex safe for g++.  This fixes one real bug (an "err"
74178         that should have been "*err").  g++ problem reported by
74179         Sam Steingold.
74180         * lib/regex_internal.h (re_calloc): New macro, consistent with
74181         re_malloc etc.  All callers of calloc changed to use re_calloc.
74182         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74183         not int.  All callers changed.
74184         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74185         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74186         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74187         (find_recover_state): Change "err" to "*err"; this fixes what
74188         appears to be a real bug.
74189         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74190         versus int.
74191
74192 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74193
74194         * modules/regex (Depends-on): Add malloc, since the code
74195         assumes that !malloc(0) means failure.
74196
74197 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74200
74201         alloca modernization/simplification for regex.
74202         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74203         needs to be at the start of the file, and can be moved into
74204         regex_internal.h and simplified.
74205         * lib/regex_internal.h: Include <alloca.h>.
74206         (__libc_use_alloca) [!defined _LIBC]: New macro.
74207         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74208         now works outside glibc.
74209
74210 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74211
74212         * config/srclist.txt: Add glibc bugs 1241, 1245.
74213
74214 2005-08-25  Jim Meyering  <jim@meyering.net>
74215
74216         * lib/open-safer.c: Include <config.h>.
74217         Otherwise, we'd lose LARGEFILE support in any file using
74218         e.g. "fcntl--.h"
74219
74220 2005-08-25  Bruno Haible  <bruno@clisp.org>
74221
74222         * m4/minmax.m4: Require autoconf 2.52.
74223         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74224         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74225         alternatives of translit over the alphabet.
74226         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74227
74228 2005-08-24  Simon Josefsson  <jas@extundo.com>
74229
74230         * tests/test-getpass.c: New file.
74231
74232 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74235         for GNU regex features.
74236
74237 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74238
74239         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74240         * lib/regex.h (regerror): Likewise.
74241
74242         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74243         requires this.  (The code never needed it.)
74244
74245         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74246         All uses of recently-renamed identifiers changed to use the new,
74247         POSIX-compliant names.  The code will build and run just fine
74248         without these changes, but it's better to eat our own dog food
74249         and use the standard-conforming names.
74250
74251         * lib/regex.h: Fix a multitude of POSIX name space violations.
74252         These changes have an effect only for programs that define
74253         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74254         do not change anything for programs compiled in the normal way.
74255         Also, there is no effect on the ABI.
74256
74257         (_REGEX_SOURCE): New macro.
74258         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74259         defined and _GNU_SOURCE is not; this fixes a name space violation.
74260
74261         Rename the following macros to obey POSIX requirements.
74262         The old names are still visible as macros if _REGEX_SOURCE is defined.
74263         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74264         RE_BACKSLASH_ESCAPE_IN_LISTS.
74265         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74266         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74267         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74268         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74269         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74270         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74271         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74272         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74273         (REG_INTERVALS): renamed from RE_INTERVALS.
74274         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74275         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74276         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74277         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74278         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74279         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74280         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74281         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74282         RE_UNMATCHED_RIGHT_PAREN_ORD.
74283         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74284         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74285         (REG_DEBUG): renamed from RE_DEBUG.
74286         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74287         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74288         unusual, since we can't clash with the POSIX REG_ICASE.
74289         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74290         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74291         (REG_NO_SUB): renamed from RE_NO_SUB.
74292         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74293         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74294         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74295         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74296         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74297         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74298         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74299         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74300         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74301         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74302         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74303         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74304         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74305         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74306         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74307         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74308         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74309         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74310         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74311         (REG_FIXED): Renamed from REGS_FIXED.
74312         (REG_NREGS): Renamed from RE_NREGS.
74313
74314         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74315         of other REG_* macros, since POSIX says the user is allowed to
74316         #undef these macros selectively.
74317
74318         (reg_errcode_t): Update comment stating what other tables need
74319         to be consistent.
74320
74321         Rename the following enum values to obey POSIX requirements.
74322         The old names are still visible as macros.
74323         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74324         is not defined, since GNU is supposed to be a superset of POSIX as
74325         much as possible, and since we want reg_errcode_t to be a signed
74326         type for implementation consistency.
74327         (_REG_NOERROR): Renamed from REG_NOERROR.
74328         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74329         (_REG_BADPAT): Renamed from REG_BADPAT.
74330         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74331         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74332         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74333         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74334         (_REG_EBRACK): Renamed from REG_EBRACK.
74335         (_REG_EPAREN): Renamed from REG_EPAREN.
74336         (_REG_EBRACE): Renamed from REG_EBRACE.
74337         (_REG_BADBR): Renamed from REG_BADBR.
74338         (_REG_ERANGE): Renamed from REG_ERANGE.
74339         (_REG_ESPACE): Renamed from REG_ESPACE.
74340         (_REG_BADRPT): Renamed from REG_BADRPT.
74341         (_REG_EEND): Renamed from REG_EEND.
74342         (_REG_ESIZE): Renamed from REG_ESIZE.
74343         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74344         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74345         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74346         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74347         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74348
74349         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74350         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74351         changed.  But support the old name if the new one is not defined
74352         and if _REGEX_SOURCE.
74353
74354         Change the following member names in struct re_pattern_buffer.
74355         The old names are still supported if !_REGEX_SOURCE.
74356         The new names are always supported, regardless of _REGEX_SOURCE.
74357         (re_buffer): Renamed from buffer.
74358         (re_allocated): Renamed from allocated.
74359         (re_used): Renamed from used.
74360         (re_syntax): Renamed from syntax.
74361         (re_fastmap): Renamed from fastmap.
74362         (re_translate): Renamed from translate.
74363         (re_can_be_null): Renamed from can_be_null.
74364         (re_regs_allocated): Renamed from regs_allocated.
74365         (re_fastmap_accurate): Renamed from fastmap_accurate.
74366         (re_no_sub): Renamed from no_sub.
74367         (re_not_bol): Renamed from not_bol.
74368         (re_not_eol): Renamed from not_eol.
74369         (re_newline_anchor): Renamed from newline_anchor.
74370
74371         Change the following member names in struct re_registers.
74372         The old names are still supported if !_REGEX_SOURCE.
74373         The new names are always supported, regardless of _REGEX_SOURCE.
74374         (rm_num_regs): Renamed from num_regs.
74375         (rm_start): Renamed from start.
74376         (rm_end): Renamed from end.
74377
74378         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74379         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74380         Prepend __ to parameter names.
74381
74382         Undo yesterday's changes.
74383
74384 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74385
74386         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74387         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74388         lib/regex.c.
74389
74390 2005-08-24  Jim Meyering  <jim@meyering.net>
74391
74392         Sync from coreutils.
74393         * m4/fcntl-safer.m4: New file.
74394
74395         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74396         and object files for this module.
74397
74398 2005-08-24  Jim Meyering  <jim@meyering.net>
74399
74400         Sync from coreutils.
74401         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74402
74403 2005-08-24  Jim Meyering  <jim@meyering.net>
74404
74405         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74406         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74407
74408 2005-08-24  Jim Meyering  <jim@meyering.net>
74409
74410         * modules/fcntl-safer: New module.
74411         * modules/fts (Depends-on): Add fcntl-safer.
74412         * MODULES.html.sh (File descriptor based Input/Output):
74413         Add fcntl-safer.
74414
74415 2005-08-24  Bruno Haible  <bruno@clisp.org>
74416
74417         Support for unit test modules.
74418         * modules/README: Mention tests modules.
74419         * modules/TEMPLATE-TESTS: New file.
74420         * gnulib-tool: New options --extract-tests-module, --with-tests and
74421         --tests-base (unused for the moment).
74422         (testsbase, inctests): New variables.
74423         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74424         (func_verify_module): Exclude TEMPLATE-TESTS.
74425         (func_verify_nontests_module, func_verify_tests_module): New functions.
74426         (func_get_dependencies): Add implicit dependency for tests modules.
74427         (func_get_tests_module): New function.
74428         (func_modules_transitive_closure): When --with-tests was specified,
74429         include the unit tests as well, unless explicitly avoided.
74430         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74431         (func_emit_tests_Makefile_am): New function.
74432         (func_create_testdir): When --with-tests was specified, emit a
74433         tests/ directory.
74434         * MODULES.html.sh (Future developments): Update.
74435
74436 2005-08-24  Bruno Haible  <bruno@clisp.org>
74437
74438         * modules/tls-tests: New file.
74439         * tests/test-tls.c: New file, from GNU gettext.
74440
74441 2005-08-24  Bruno Haible  <bruno@clisp.org>
74442
74443         * modules/lock-tests: New file.
74444         * tests/test-lock.c: New file, from GNU gettext.
74445
74446 2005-08-24  Bruno Haible  <bruno@clisp.org>
74447
74448         * lib/lock.h: Add multiple inclusion guard.
74449         * lib/tls.h: Add multiple inclusion guard.
74450
74451 2005-08-24  Bruno Haible  <bruno@clisp.org>
74452
74453         * gnulib-tool: Add support for the --aux-dir option to
74454         --create-testdir, --create-megatestdir, --test, --megatest.
74455         (func_create_testdir, func_create_megatestdir): Optionally emit a
74456         AC_CONFIG_AUX_DIR directive.
74457         (create-testdir, create-megatestdir, test, megatest): Provide a
74458         default value for $auxdir.
74459
74460 2005-08-24  Bruno Haible  <bruno@clisp.org>
74461
74462         * gnulib-tool (import): Use compound statement instead of subshell
74463         where possible.
74464
74465 2005-08-24  Bruno Haible  <bruno@clisp.org>
74466
74467         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74468
74469 2005-08-24  Bruno Haible  <bruno@clisp.org>
74470
74471         * gnulib-tool (func_version): Update.
74472
74473 2005-08-24  Bruno Haible  <bruno@clisp.org>
74474
74475         * gnulib-tool (func_import, func_create_testdir,
74476         func_create_megatestdir): Quote all autoconf macro arguments.
74477
74478 2005-08-24  Bruno Haible  <bruno@clisp.org>
74479
74480         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74481         option --force, because --force causes the aclocal.m4 of each
74482         subdirectory to be newer than the corresponding config.h.in.
74483
74484 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74485
74486         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74487         All contents moved to gl_REGEX.
74488         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74489         assume that it does.
74490
74491 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * lib/regex.h (REG_NOSYS)
74494         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74495         Define, since POSIX requires it as of 2001.
74496         (_REG_ENOSYS)
74497         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74498         New private symbol, used to keep the enum signed in all cases.
74499         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74500         Youngman in
74501         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74502
74503         * lib/regex_internal.c (re_string_skip_chars, register_state):
74504         (calc_state_hash):
74505         Remove forward decls; no longer needed now that we use prototypes.
74506         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74507         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74508         (clean_state_log_if_needed): Likewise.
74509
74510 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * config/srclist.txt: Add glibc bugs 1231-1233.
74513
74514 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         Fix problems reported by Sam Steingold in
74517         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74518         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74519         assumed that reg_errcode_t is a signed type, which is not
74520         necessarily true if _XOPEN_SOURCE is not defined.
74521         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74522         since some compilers warn about it otherwise.
74523
74524 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74527         (init_word_char, create_initial_state, duplicate_node_closure):
74528         (fetch_token, peek_token_bracket, build_range_exp):
74529         (build_collating_symbol): Remove forward decls; no longer needed
74530         now that we use prototypes.
74531
74532         * lib/regcomp.c:
74533         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74534         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74535         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74536         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74537         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74538         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74539         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74540         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74541         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74542         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74543         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74544         (build_charclass, build_charclass_op, fetch_number, create_tree):
74545         (create_token_tree, mark_opt_subexp, duplicate_tree):
74546         Use prototypes rather than old-style definitions.
74547
74548         * lib/regex_internal.c:
74549         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74550         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74551         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74552         (re_string_reconstruct, re_string_peek_byte_case):
74553         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74554         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74555         (re_node_set_init_copy, re_node_set_add_intersect):
74556         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74557         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74558         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74559         (re_acquire_state, re_acquire_state_context, register_state):
74560         (create_ci_newstate, create_cd_newstate, free_state):
74561         Likewise.
74562         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74563         re_search_2):
74564         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74565         (re_search_internal, prune_impossible_nodes):
74566         (acquire_init_state_context, check_matching, static):
74567         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74568         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74569         (update_regs, sift_states_backward, build_sifted_states):
74570         (clean_state_log_if_needed, merge_state_array):
74571         (update_cur_sifted_state, add_epsilon_src_nodes):
74572         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74573         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74574         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74575         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74576         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74577         (check_arrival, check_arrival_add_next_nodes):
74578         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74579         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74580         (check_node_accept_bytes, check_node_accept, extend_buffers):
74581         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74582         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74583         (sift_ctx_init):
74584         Likewise.
74585
74586         * lib/regex_internal.h:
74587         (re_string_allocate, re_string_construct, re_string_reconstruct):
74588         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74589         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74590         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74591         (re_string_context_at, re_string_peek_byte_case):
74592         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74593         is defined, since we now use prototypes always.
74594
74595         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74596         C89 or better.  All uses removed.
74597
74598 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * config/srclist.txt: Add glibc bugs 1220-1227.
74601
74602 2005-08-20  Jim Meyering  <jim@meyering.net>
74603
74604         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74605         of unused local, dfa.
74606
74607 2005-08-20  Bruno Haible  <bruno@clisp.org>
74608
74609         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74610
74611 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74614         (re_node_set_insert_last, re_dfa_add_node):
74615         Rename local variables to avoid GCC shadowing warnings.
74616
74617 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74620         [defined lint]: Suppress bogus uninitialized-variable warnings.
74621
74622         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74623         and let the caller return REG_ESPACE if out of space.  This
74624         removes an uninitialied-variable warning with GCC 4.0.1, and also
74625         avoids taking the address of a local variable.  All callers
74626         changed.
74627
74628 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74631         $LIBCSRC/posix/regexec.c.
74632         Add glibc bug 1217 for regcomp.c.
74633
74634 2005-08-19  Jim Meyering  <jim@meyering.net>
74635
74636         * lib/regexec.c (proceed_next_node): Redo local variables to
74637         avoid GCC shadowing warnings.
74638
74639 2005-08-18  Bruno Haible  <bruno@clisp.org>
74640
74641         * lib/strstr.c (strstr): Fix return value in multibyte case.
74642         * lib/strcasestr.c (strcasestr): Likewise.
74643
74644 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74647
74648 2005-08-17  Jim Meyering  <jim@meyering.net>
74649
74650         Make the %s format (seconds since the epoch) work for a negative
74651         number and when used with a zero-padded field width, e.g. %015s.
74652
74653         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74654         label so that it precedes the code to set `digits'.  Otherwise,
74655         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74656         print `00-22'.  Now, it prints `-0022', as it should.
74657
74658 2005-08-17  Bruno Haible  <bruno@clisp.org>
74659
74660         * modules/strstr (Files): Add m4/mbrtowc.m4.
74661         (Depends-on): Add mbuiter.
74662
74663 2005-08-17  Bruno Haible  <bruno@clisp.org>
74664
74665         * modules/strcasestr: New file.
74666         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74667         strcasestr.
74668
74669 2005-08-17  Bruno Haible  <bruno@clisp.org>
74670
74671         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74672
74673 2005-08-17  Bruno Haible  <bruno@clisp.org>
74674
74675         * modules/mbuiter: New file.
74676         * MODULES.html.sh (Extended multibyte and wide character utilities):
74677         Add mbuiter.
74678
74679 2005-08-17  Bruno Haible  <bruno@clisp.org>
74680
74681         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74682         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74683
74684 2005-08-17  Bruno Haible  <bruno@clisp.org>
74685
74686         * m4/strcasestr.m4: New file.
74687
74688 2005-08-17  Bruno Haible  <bruno@clisp.org>
74689
74690         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74691         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74692
74693 2005-08-17  Bruno Haible  <bruno@clisp.org>
74694
74695         * lib/strcasestr.h: New file.
74696         * lib/strcasestr.c: New file.
74697
74698 2005-08-17  Bruno Haible  <bruno@clisp.org>
74699
74700         * lib/strcasecmp.c: Use mbuiter.h.
74701
74702 2005-08-17  Bruno Haible  <bruno@clisp.org>
74703
74704         * lib/mbuiter.h: New file.
74705
74706 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74709         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74710         and gl_GETOPT are both invoked via different paths (as happens
74711         with GNU tar CVS because it uses both argp and getopt), the former
74712         wins.
74713
74714 2005-08-16  Bruno Haible  <bruno@clisp.org>
74715
74716         * modules/tls: New file.
74717         * MODULES.html.sh (Multithreading): Add tls.
74718
74719 2005-08-16  Bruno Haible  <bruno@clisp.org>
74720
74721         * modules/strnlen1: New file.
74722         * MODULES.html.sh (String handling): Add strnlen1.
74723
74724 2005-08-16  Bruno Haible  <bruno@clisp.org>
74725
74726         * modules/strcase (Files): Add m4/mbrtowc.m4.
74727         (Depends-on): Add strnlen1, mbchar.
74728
74729 2005-08-16  Bruno Haible  <bruno@clisp.org>
74730
74731         * modules/mbiter: New file.
74732         * MODULES.html.sh (Extended multibyte and wide character utilities):
74733         Add mbiter.
74734
74735 2005-08-16  Bruno Haible  <bruno@clisp.org>
74736
74737         * modules/mbfile: New file.
74738         * MODULES.html.sh (Extended multibyte and wide character utilities):
74739         Add mbfile.
74740
74741 2005-08-16  Bruno Haible  <bruno@clisp.org>
74742
74743         * modules/mbchar: New file.
74744         * MODULES.html.sh (Extended multibyte and wide character utilities):
74745         New section.
74746
74747 2005-08-16  Bruno Haible  <bruno@clisp.org>
74748
74749         * m4/tls.m4: New file, from GNU gettext.
74750
74751 2005-08-16  Bruno Haible  <bruno@clisp.org>
74752
74753         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74754         always.
74755         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74756
74757 2005-08-16  Bruno Haible  <bruno@clisp.org>
74758
74759         * m4/mbiter.m4: New file.
74760
74761 2005-08-16  Bruno Haible  <bruno@clisp.org>
74762
74763         * m4/mbfile.m4: New file.
74764
74765 2005-08-16  Bruno Haible  <bruno@clisp.org>
74766
74767         * m4/mbchar.m4: New file.
74768
74769 2005-08-16  Bruno Haible  <bruno@clisp.org>
74770
74771         * lib/tls.h: New file, from GNU gettext.
74772         * lib/tls.c: New file, from GNU gettext.
74773
74774 2005-08-16  Bruno Haible  <bruno@clisp.org>
74775
74776         * lib/strnlen1.h: New file.
74777         * lib/strnlen1.c: New file.
74778
74779 2005-08-16  Bruno Haible  <bruno@clisp.org>
74780
74781         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74782         (mbi_init): Update.
74783         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74784         NUL byte, not after it.
74785
74786 2005-08-16  Bruno Haible  <bruno@clisp.org>
74787
74788         * lib/strcase.h (strcasecmp): Add note in comments.
74789         * lib/strncasecmp.c: Use code from strcasecmp.c.
74790         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74791         (strcasecmp): Work correctly in multibyte locales.
74792
74793 2005-08-16  Bruno Haible  <bruno@clisp.org>
74794
74795         * lib/mbiter.h: New file.
74796
74797 2005-08-16  Bruno Haible  <bruno@clisp.org>
74798
74799         * lib/mbfile.h: New file.
74800
74801 2005-08-16  Bruno Haible  <bruno@clisp.org>
74802
74803         * lib/mbchar.h: New file.
74804         * lib/mbchar.c: New file.
74805
74806 2005-08-16  Bruno Haible  <bruno@clisp.org>
74807
74808         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74809         the valid ones. Makes the comparison operations transitive:
74810         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74811         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74812
74813 2005-08-15  Simon Josefsson  <jas@extundo.com>
74814
74815         * modules/ssize_t (License): Change to 'unlimited'.
74816
74817         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74818
74819 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74822         Add comments for each pending glibc patch.
74823
74824 2005-08-15  Bruno Haible  <bruno@clisp.org>
74825
74826         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74827         __cplusplus is defined.
74828
74829 2005-08-14  Jim Meyering  <jim@meyering.net>
74830
74831         Sync from coreutils.
74832
74833         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74834         Use the hash-table-based cycle-detection code not just when
74835         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74836         Reported by James Youngman in
74837         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74838         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74839         FTS_TIGHT_CYCLE_CHECK.
74840         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74841         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74842         once again.
74843         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74844         * lib/fts.c (fd_safer): Remove decl.
74845         Include fcntl--.h rather than unistd-safer.h
74846         (fts_safe_changedir): Don't call fd_safer; no longer needed
74847         now that we include fcntl--.h.
74848
74849 2005-08-12  Simon Josefsson  <jas@extundo.com>
74850
74851         * modules/getndelim2: Use ssize_t module.
74852         * modules/getnline: Likewise.
74853         * modules/safe-read: Likewise.
74854         * modules/xreadlink: Likewise.
74855
74856         * modules/ssize_t: New file.
74857
74858 2005-08-12  Simon Josefsson  <jas@extundo.com>
74859
74860         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74861
74862 2005-08-12  Simon Josefsson  <jas@extundo.com>
74863
74864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74865         ssize_t.
74866
74867 2005-08-12  Simon Josefsson  <jas@extundo.com>
74868
74869         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74870         readline, getdelim and check_version.
74871         (Support for systems lacking ISO C 99: Sizes of integer types):
74872         Add size_max.
74873
74874 2005-08-12  Bruno Haible  <bruno@clisp.org>
74875
74876         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
74877
74878 2005-08-11  Simon Josefsson  <jas@extundo.com>
74879
74880         * modules/readline: New file.
74881
74882         * modules/strnlen (Files): Add strnlen.h.
74883
74884 2005-08-11  Simon Josefsson  <jas@extundo.com>
74885
74886         * m4/readline.m4: New file.
74887
74888 2005-08-11  Simon Josefsson  <jas@extundo.com>
74889
74890         * lib/readline.h, readline.c: New file.
74891
74892 2005-08-11  Simon Josefsson  <jas@extundo.com>
74893
74894         * doc/gnulib.texi (Initial import, Finishing touches): Mention
74895         gl_AVOID.
74896
74897 2005-08-11  Bruno Haible  <bruno@clisp.org>
74898
74899         * lib/strnlen.h (strnlen): Change parameter name to match comment.
74900
74901 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
74902
74903         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
74904
74905 2005-08-10  Simon Josefsson  <jas@extundo.com>
74906
74907         * tests/test-iconvme.c: New file.
74908
74909 2005-08-10  Simon Josefsson  <jas@extundo.com>
74910
74911         * m4/strnlen.m4: New file.
74912
74913         * m4/strndup.m4: Don't check for strnlen declaration, done in
74914         strnlen.m4.
74915
74916 2005-08-10  Simon Josefsson  <jas@extundo.com>
74917
74918         * lib/strndup.c: Use strnlen.h.
74919
74920         * lib/strnlen.h: New file.
74921
74922 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74923
74924         * README: Typos.
74925
74926 2005-08-02  Simon Josefsson  <jas@extundo.com>
74927
74928         * modules/readline: New file.
74929
74930 2005-08-02  Simon Josefsson  <jas@extundo.com>
74931
74932         * modules/getdelim: New file.
74933
74934         * modules/getline: Rewrite, don't use getndelim2.
74935
74936 2005-08-02  Simon Josefsson  <jas@extundo.com>
74937
74938         * m4/getline.m4: Separate out getdelim stuff into separate module.
74939
74940         * m4/getdelim.m4: New file.
74941
74942 2005-08-02  Simon Josefsson  <jas@extundo.com>
74943
74944         * lib/getline.h, getline.c: Rewrite.
74945
74946         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74947
74948 2005-07-31  Bruno Haible  <bruno@clisp.org>
74949
74950         * lib/lock.h (gl_lock_initializer): New macro.
74951         (gl_lock_define_initialized): Use it.
74952         (gl_rwlock_initializer): New macro.
74953         (gl_rwlock_define_initialized): Use it.
74954         (gl_recursive_lock_initializer): New macro.
74955         (gl_recursive_lock_define_initialized): Use it.
74956
74957 2005-07-30  Karl Berry  <karl@gnu.org>
74958
74959         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74960         Report from Ben Pfaff, regarding getopt.
74961
74962 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74965         normal way.
74966         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74967         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74968         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74969         (gl_GETOPT): Use the new macros.  Most of the implementation
74970         is moved to the new macros.  This is for programs like Emacs
74971         that don't want all the functionality of gl_GETOPT.
74972
74973 2005-07-26  Bruno Haible  <bruno@clisp.org>
74974
74975         * m4/lock.m4: Update from GNU gettext.
74976
74977 2005-07-26  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/lock.h: Update from GNU gettext.
74980         * lib/lock.c: Update from GNU gettext.
74981
74982 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74985         obsolescent AC_TRY_RUN.  Include the default includes files, for
74986         'exit'.
74987
74988 2005-07-24  Bruno Haible  <bruno@clisp.org>
74989
74990         * modules/visibility: New file.
74991         * MODULES.html.sh (Misc): Add visibility.
74992
74993 2005-07-24  Bruno Haible  <bruno@clisp.org>
74994
74995         * m4/visibility.m4: New file.
74996
74997 2005-07-24  Bruno Haible  <bruno@clisp.org>
74998
74999         * doc/visibility.texi: New file.
75000
75001 2005-07-22  Bruno Haible  <bruno@clisp.org>
75002
75003         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75004         $(ALLOCA_H), redundant through BUILT_SOURCES.
75005         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75006         redundant through BUILT_SOURCES.
75007         * modules/byteswap (Makefile.am): Remove explicit dependency on
75008         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75009         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75010         $(FNMATCH_H), redundant through BUILT_SOURCES.
75011         * modules/getopt (Makefile.am): Remove explicit dependency on
75012         $(GETOPT_H), redundant through BUILT_SOURCES.
75013         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75014         redundant through BUILT_SOURCES.
75015         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75016         redundant through BUILT_SOURCES.
75017         * modules/stdbool (Makefile.am): Remove explicit dependency on
75018         $(STDBOOL_H), redundant through BUILT_SOURCES.
75019         * modules/stdint (Makefile.am): Remove explicit dependency on
75020         $(STDINT_H), redundant through BUILT_SOURCES.
75021         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75022         Remove explicit dependency on $(SYSEXITS_H).
75023         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75024
75025 2005-07-18  Simon Josefsson  <jas@extundo.com>
75026
75027         * lib/check-version.c (check_version): Accept identical versions too.
75028
75029 2005-07-18  Bruno Haible  <bruno@clisp.org>
75030
75031         * modules/lock: New file.
75032         * MODULES.html.sh (Multithreading): New section.
75033
75034 2005-07-18  Bruno Haible  <bruno@clisp.org>
75035
75036         * m4/lock.m4: New file, from GNU gettext.
75037
75038 2005-07-18  Bruno Haible  <bruno@clisp.org>
75039
75040         * lib/lock.h: New file, from GNU gettext.
75041         * lib/lock.c: New file, from GNU gettext.
75042
75043 2005-07-18  Bruno Haible  <bruno@clisp.org>
75044
75045         * lib/lock.h (gl_once_t): New type.
75046         (gl_once_define, gl_once): New macros.
75047         * lib/lock.c (fresh_once): New variable.
75048         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75049         functions.
75050
75051 2005-07-16  Simon Josefsson  <jas@extundo.com>
75052
75053         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75054         workaround, suggested by Bruno.
75055
75056 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         * modules/xalloc (Depends-on): Add xalloc-die.
75059         * modules/xvasprintf (Depends-on): Add xalloc-die.
75060
75061 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75062
75063         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75064         with a minor change.
75065
75066 2005-07-15  Bruno Haible  <bruno@clisp.org>
75067
75068         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75069         When using lib/poll.c, define poll as rpl_poll.
75070
75071 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75072
75073         * modules/argp (Depends-on): Remove unlocked-io.
75074
75075 2005-07-14  Derek Price  <derek@ximbiot.com>
75076
75077         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75078         for glob symlink bug.
75079
75080 2005-07-14  Bruno Haible  <bruno@clisp.org>
75081
75082         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75083         Instead, test for *_unlocked function declarations directly.
75084
75085 2005-07-11  Simon Josefsson  <jas@extundo.com>
75086
75087         * modules/size_max: New file.
75088
75089         * modules/xsize: Depend on size_max module for size_max.m4.
75090
75091 2005-07-11  Simon Josefsson  <jas@extundo.com>
75092
75093         * lib/size_max.h: New file.
75094
75095 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75098         copyright symbol and the year.
75099         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75100         (version_etc_va): Use parameterized copyright notice.
75101         Reword to conform to the current GNU coding standards.
75102
75103 2005-07-11  Karl Berry  <karl@gnu.org>
75104
75105         * doc/gnulib.texi (Quoting): new node.
75106         (Initial import): more info, from Patrice.
75107
75108 2005-07-11  Bruno Haible  <bruno@clisp.org>
75109
75110         * gnulib-tool (func_usage): Document option --avoid.
75111         (Command line options): Handle --avoid.
75112         (func_acceptable): New function.
75113         (func_modules_transitive_closure): Use it.
75114
75115 2005-07-11  Bruno Haible  <bruno@clisp.org>
75116
75117         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75118         Reported by Jim Meyering.
75119
75120 2005-07-10  Bruno Haible  <bruno@clisp.org>
75121
75122         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75123         Needed when size_t is smaller than 'unsigned int'.
75124         Reported by Paul Eggert.
75125
75126 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75127
75128         * modules/argp (Depends-on): Add unlocked-io
75129
75130 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75131
75132         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75133         block of defines.
75134
75135 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75138         fix now.
75139
75140 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75141         and Paul Eggert  <eggert@cs.ucla.edu>
75142
75143         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75144         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75145
75146 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * modules/regex (Files): Add lib/regex_internal.c,
75149         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75150         (Depends-on): Add extensions.
75151         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75152
75153 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75154
75155         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75156         pathconf.
75157         * m4/same.m4 (gl_SAME): Likewise.
75158         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75159
75160         * m4/regex.m4: Adjust to new libc regex implementation.
75161         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75162         all the .c and .h parts of (the new) regex.
75163         Quote the m4 stuff better.
75164         Check for RE_ICASE bug of old gnulib.
75165         Check for REG_STARTEND of recent libc.
75166         Rename local variables from jm_* to gl_*.
75167         Quote operand of "test -f".
75168         Say "recent enough" version of libc, not "version 2".
75169         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75170         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75171         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75172         Remove check for btowc, isascii.
75173         Require AM_LANGINFO_CODESET.
75174
75175 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * lib/regex.c, regex.h: Sync from libc.
75178         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75179         * lib/regexec.c:
75180         New files, synced from libc, except that regex_internal.h
75181         currently has a small porting fix.
75182
75183 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75186         regex_internal.c, regexec.c.
75187         Add regex_internal.h too, but as a comment, since the libc version
75188         is currently broken in gnulib mode.
75189
75190 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75191
75192         Support programs like Emacs that use gnulib but not gettext.
75193         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75194         * modules/gettext-h: New file.
75195         * modules/gettext (Files): Remove lib/gettext.h.
75196         (Depends-on): Add gettext-h.
75197         (Makefile.am): Remove lib_SOURCES.
75198         * modules/argmatch, modules/c-stack, modules/closeout:
75199         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75200         * modules/execute, modules/file-type, modules/getaddrinfo:
75201         * modules/getopt, modules/human, modules/javacomp:
75202         * modules/javaexec, modules/mkdir-p, modules/obstack:
75203         * modules/openat, modules/pagealign_alloc, modules/pipe:
75204         * modules/quotearg, modules/regex, modules/rpmatch:
75205         * modules/unicodeio, modules/userspec, modules/version-etc:
75206         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75207         * modules/xsetenv:
75208         Depend on gettext-h, not gettext.
75209
75210 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * gnulib-tool (func_import): Add support for 'public domain' license.
75213         * modules/alloca, modules/atexit, modules/memmove:
75214         Now public domain, not GPL.
75215         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75216         * modules/realloc, modules/strerror, modules/strtod:
75217         Now LGPL, not GPL.
75218
75219 2005-07-05  Bruno Haible  <bruno@clisp.org>
75220
75221         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75222         autoconf CVS. Needed for mingw.
75223
75224 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75225
75226         Remove the dependency of the strftime module on the tzset module.
75227         * modules/strftime (Depends-on): Remove dependency on tzset.
75228
75229 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75230
75231         Remove the dependency of the strftime module on the tzset module.
75232         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75233         gl_FUNC_TZSET_CLOBBER.
75234
75235 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75236
75237         Remove the dependency of the strftime module on the tzset module.
75238         * lib/strftime.c (my_strftime)
75239         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75240         Copy the input structure, to work around some of the bug with
75241         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75242         Solaris releases, you should also use the tzset module, but we won't
75243         require it as a dependency any more since we don't want LGPLed code
75244         to depend on GPLed code.
75245
75246 2005-07-02  Jim Meyering  <jim@meyering.net>
75247
75248         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75249         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75250         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75251         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75252
75253 2005-07-02  Jim Meyering  <jim@meyering.net>
75254
75255         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75256
75257 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75260         declares only 'struct timespec;' (!).
75261
75262 2005-07-01  Jim Meyering  <jim@meyering.net>
75263
75264         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75265         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75266         * lib/save-cwd.c, tempname.c:
75267         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75268         and don't include <sys/file.h>).
75269
75270 2005-06-29  Jim Meyering  <jim@meyering.net>
75271
75272         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75273         type name.  Use the variable name instead.
75274         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75275         Likewise.
75276
75277 2005-06-28  Simon Josefsson  <jas@extundo.com>
75278
75279         * modules/check-version (Files): Add check-version.m4.
75280
75281 2005-06-28  Simon Josefsson  <jas@extundo.com>
75282
75283         * m4/check-version.m4: New file, suggested by Jim Meyering
75284         <jim@meyering.net>.
75285
75286 2005-06-28  Simon Josefsson  <jas@extundo.com>
75287
75288         * lib/check-version.h, lib/check-version.c: New files.
75289
75290 2005-06-28  Simon Josefsson  <jas@extundo.com>
75291
75292         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75293         collision with global variable.  Better indentation.  Don't
75294         increment buffer pointer beyond buffer end.  Based on comments
75295         from Paul Eggert <eggert@cs.ucla.edu>.
75296
75297         * lib/base64.h: Indent.
75298
75299 2005-06-28  Simon Josefsson  <jas@extundo.com>
75300
75301         * doc/gnulib.texi (Library version handling): New section.
75302
75303 2005-06-28  Jim Meyering  <jim@meyering.net>
75304
75305         * check-module (find_included_lib_files): Hard-code another
75306         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75307         but modules/fts-lgpl (correctly) does not list those files.
75308
75309         * modules/canonicalize (Files): Add lib/pathmax.h.
75310
75311 2005-06-25  Simon Josefsson  <jas@extundo.com>
75312
75313         * modules/check-version: New file.
75314
75315 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75316
75317         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75318         initializer of struct addrinfo, as an indication that we don't
75319         care how many members the structure has.
75320
75321 2005-06-24  Derek Price  <derek@ximbiot.com>
75322         and Bruno Haible  <bruno@clisp.org>
75323
75324         Remove stat module & update lstat.
75325         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75326         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75327         * m4/stat.m4: Remove this file.
75328
75329 2005-06-24  Derek Price  <derek@ximbiot.com>
75330         and Bruno Haible  <bruno@clisp.org>
75331
75332         Remove stat module & update lstat.
75333         * lib/stat.c: Remove this file...
75334         (slash_aware_lstat): ...moving this content and its support...
75335         * lib/lstat.c (rpl_lstat): ...into here.
75336         * lib/lstat.h: New file.
75337
75338 2005-06-24  Derek Price  <derek@ximbiot.com>
75339         and Bruno Haible  <bruno@clisp.org>
75340
75341         Remove stat module & update lstat.
75342         * config/srclist.txt (libc sources): Remove stat.
75343
75344 2005-06-24  Derek Price  <derek@ximbiot.com>
75345         and Bruno Haible  <bruno@clisp.org>
75346
75347         Remove stat module & update lstat.
75348         * MODULES.html.sh (stat): Remove.
75349         * MODULES.html: Regenerated.
75350         * modules/lstat (Description): Correct function name.
75351         (Files): Add "lstat.h".
75352         (Depends-on): Remove stat, add xalloc, stat-macros.
75353         * modules/stat: Remove this file.
75354         (Include): Add "lstat.h", remove <sys/stat.h>.
75355
75356 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75359         (ranged_convert): Don't save conversion in a temporary struct.
75360         This causes a warning with GCC 4.0.0, and anyway in the typical
75361         case it's not worth the extra 100 bytes or so of code.
75362         (ranged_convert, __mktime_internal): When calling a function via a
75363         pointer P, use P () rather than (*P) (), as we now assume C89 or
75364         better.
75365
75366 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75367
75368         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75369         "who -r" failed to give output.  Problem reported by Tim Waugh.
75370
75371         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75372         (xcalloc): Use it to avoid needless tests.
75373         Problem reported by Jim Meyering.
75374
75375 2005-06-20  Derek Price  <derek@ximbiot.com>
75376
75377         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75378         unnecessary for Autoconfs > 2.59c.
75379
75380 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75381
75382         * lib/argp.h (__option_is_short): Check upper limit of
75383         __key. Isprint() requires its argument to have the value
75384         of an unsigned char or EOF.
75385
75386 2005-06-16  Jim Meyering  <jim@meyering.net>
75387
75388         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75389         when either N or S is zero.
75390
75391 2005-06-16  Derek Price  <derek@ximbiot.com>
75392
75393         * m4/bison.m4: Declare YACC & YFLAGS precious.
75394
75395 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75398         multibyte string or pattern, fall back on unibyte matching.
75399         Problem reported by James Youngman.
75400
75401 2005-06-08  Bruno Haible  <bruno@clisp.org>
75402
75403         * modules/csharpcomp: New file.
75404         * MODULES.html.sh (C#): Add csharpcomp.
75405
75406 2005-06-08  Bruno Haible  <bruno@clisp.org>
75407
75408         * m4/csharpcomp.m4: New file, from GNU gettext.
75409
75410 2005-06-08  Bruno Haible  <bruno@clisp.org>
75411
75412         * lib/csharpcomp.h: New file, from GNU gettext.
75413         * lib/csharpcomp.c: New file, from GNU gettext.
75414         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75415
75416 2005-06-08  Bruno Haible  <bruno@clisp.org>
75417
75418         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75419         warning on mingw.
75420
75421 2005-06-07  Derek Price  <derek@ximbiot.com>
75422
75423         Sync from CVS.
75424         * lib/glob_.h: Indent nested #ifdef.
75425
75426 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         Sync from coreutils.
75429         Use "file name" when talking about file names, instead of "filename"
75430         or "path", as per the GNU coding standards.
75431         * lib/mkdir-p.c: Renamed from makepath.c.
75432         (make_dir_parents): Renamed from make_path.  All callers changed.
75433         * lib/mkdir-p.h: Likewise.  All includers changed.
75434         * lib/filenamecat.c: Renamed from path-concat.c.
75435         (file_name_concat): Renamed from path_concat.  All callers changed.
75436         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75437         * lib/filenamecat.h: Likewise.  All includers changed.
75438         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75439         in comments or local variable names.
75440         * lib/basename.c: Likewise.
75441         * lib/canonicalize.c, canonicalize.h: Likewise.
75442         * lib/dirname.c, dirname.h: Likewise.
75443         * lib/euidaccess.c: Likewise.
75444         * lib/exclude.c: Likewise
75445         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75446         * lib/fsusage.c, fsuage.h: Likewise.
75447         * lib/fts.c, fts_.h: Likewise.
75448         * lib/getcwd.c: Likewise.
75449         * lib/getloadavg.c: Likewise.
75450         * lib/mkstemp.c: Likewise.
75451         * lib/mountlist.c, mountlist.h: Likewise.
75452         * lib/openat.c, openat.h: Likewise.
75453         * lib/readlink-stub.c: Likewise.
75454         * lib/readutmp.c, readutmp.h: Likewise.
75455         * lib/rename.c: Likewise.
75456         * lib/rmdir.c: Likewise.
75457         * lib/same.c: Likewise.
75458         * lib/savedir.c: Likewise.
75459         * lib/stripslash.c: Likewise.
75460         * lib/tempname.c: Likewise.
75461         * lib/xreadlink.c: Likewise.
75462         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75463         All uses changed.
75464         * lib/exclude.h: Likewise.
75465
75466         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75467         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75468         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75469         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75470         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75471         files have been getting away with it for years (MORE/BSD 4.3
75472         is extinct now).
75473         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75474         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75475
75476         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75477         Define to 256, not 255, as per modern POSIX.
75478
75479 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75480
75481         Sync from coreutils.
75482         Use "file name" when talking about file names, instead of "filename"
75483         or "path", as per the GNU coding standards.
75484         * MODULES.html.sh: mkdir-p renamed from makepath.
75485         filenamecat renamed from path-concat.
75486         * modules/filenamecat: Renamed from modules/path-concat.
75487         (Files): filenamecat.h and filenamecat.c renamed from
75488         path-concat.h and path-concat.c.
75489         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75490         (Include): filenamecat.h, not path-concat.h.
75491         * modules/mkdir-p: Renamed from modules/makepath.
75492         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75493         makepath.c.
75494         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75495         (Include): mkdir-p.h, not makepath.h.
75496
75497 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         Sync from coreutils.
75500         * m4/mkdir-p.m4: Renamed from makepath.m4.
75501         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75502         Rename files from makepath.c to mkdir-p.c, and from
75503         makepath.h to mkdir-p.h.
75504         * m4/filenamecat.m4: Renamed from path-concat.m4.
75505         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75506         Rename files from path-concat.c to filenamecat.c,
75507         and from path-concat.h to filenamecat.h.
75508         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75509         "file name" in local variables or comments.
75510         * m4/rename.m4: Likewise.
75511
75512 2005-06-01  Bruno Haible  <bruno@clisp.org>
75513
75514         * modules/csharpexec: New file.
75515         * MODULES.html.sh (C#): New section.
75516
75517 2005-06-01  Bruno Haible  <bruno@clisp.org>
75518
75519         * m4/csharp.m4: New file, from GNU gettext.
75520         * m4/csharpexec.m4: New file, from GNU gettext.
75521
75522 2005-06-01  Bruno Haible  <bruno@clisp.org>
75523
75524         * lib/csharpexec.h: New file, from GNU gettext.
75525         * lib/csharpexec.c: New file, from GNU gettext.
75526         * lib/csharpexec.sh.in: New file, from GNU gettext.
75527
75528 2005-05-31  Derek Price  <derek@ximbiot.com>
75529             Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         Sync from cvs.
75532         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75533
75534 2005-05-31  Derek Price  <derek@ximbiot.com>
75535             Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         Sync from cvs.
75538         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75539
75540 2005-05-29  Derek Price  <derek@ximbiot.com>
75541
75542         * config/srclist.txt (glob_.h, glob.c): Add these files.
75543
75544 2005-05-29  Derek Price  <derek@ximbiot.com>
75545
75546         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75547         * modules/glob: New file.
75548         * modules/getlogin_r: Add link to POSIX spec in description.
75549
75550 2005-05-29  Derek Price  <derek@ximbiot.com>
75551             Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         * m4/glob.m4: New file.
75554
75555 2005-05-29  Derek Price  <derek@ximbiot.com>
75556             Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * lib/glob_.h, lib/glob.c: New files.
75559
75560 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75561
75562         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75563         * modules/fts-lgpl (Depends-on): Remove gettext.
75564
75565 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75566
75567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75568         and don't require gt_INTTYPES_PRI.
75569
75570 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75573
75574         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75575         the configuration hassle isn't worth it.
75576         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75577         (LONGEST_MODIFIER, PRIuMAX): Remove.
75578
75579 2005-05-27  Bruno Haible  <bruno@clisp.org>
75580
75581         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75582
75583 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75586         _POSIX_PTHREAD_SEMANTICS for Solaris.
75587
75588 2005-05-25  Derek Price  <derek@ximbiot.com>
75589
75590         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75591
75592 2005-05-25  Derek Price  <derek@ximbiot.com>
75593             Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75596         * lib/getlogin_r.c, getlogin_r.h: New files.
75597
75598 2005-05-25  Bruno Haible  <bruno@clisp.org>
75599             Derek Price  <derek@ximbiot.com>
75600
75601         * lib/getlogin_r.h: Simplify API documentation.
75602
75603 2005-05-23  Derek Price  <derek@ximbiot.com>
75604
75605         * modules/minmax (Files): Add m4/minmax.m4.
75606         (configure.ac): Add gl_MINMAX.
75607
75608 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75611         so that unistd-safer.h (GPL'ed code) need not be included.
75612
75613 2005-05-22  Bruno Haible  <bruno@clisp.org>
75614
75615         * m4/minmax.m4: New file.
75616         Based on a patch by Derek Price <derek@ximbiot.com>.
75617
75618 2005-05-22  Bruno Haible  <bruno@clisp.org>
75619
75620         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75621         (INT64_MIN): Fix definition.
75622         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75623
75624         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75625         NEED_SIGNED_INT_TYPES.
75626
75627         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75628         HAVE_SYSTEM_INTTYPES.
75629
75630 2005-05-22  Bruno Haible  <bruno@clisp.org>
75631
75632         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75633         Also include <sys/param.h> if it defines MIN, MAX.
75634         Based on a patch by Derek Price <derek@ximbiot.com>.
75635
75636 2005-05-21  Jim Meyering  <jim@meyering.net>
75637
75638         * modules/fts (Files): Add m4/inttypes-pri.m4.
75639         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75640
75641 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         New fts module.
75644         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75645         (setup_dir, free_dir): New functions.
75646         (enter_dir, leave_dir): Define trivial
75647         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75648         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75649         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75650         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75651         Move to fts-cycle.c.
75652         (fts_open): Use setup_dir.
75653         (fts_close): Use free_dir.
75654         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75655         This adds a label and some gotos, but the alternatives were messier.
75656         Check for memory allocation failure when entering a dir.
75657         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75658         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75659         (FTS): New member fts_cycle, that is a union that contains the
75660         old active_dir_ht and cycle_state.  All uses changed to mention
75661         fts_cycle.ht and fts_cycle.state.
75662         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75663         fts.c, with the following changes:
75664         (setup_dir, free_dir): New functions.
75665         (enter_dir): Now returns bool.  Return true if successful, false
75666         if memory exhausted.  All callers changed.
75667         Do not bother partly cleaning up on
75668         memory allocation failure; that is free_dir's job.
75669         However, free ad if hash_insert fails, to avoid memory leak.
75670         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75671         fts->fts_options to see which union member to use.
75672
75673 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75676         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75677
75678 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75681
75682 2005-05-20  Jim Meyering  <jim@meyering.net>
75683
75684         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75685         Now a macro, to pacify GCC.
75686
75687 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75688
75689         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75690         of -1.
75691
75692 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75693
75694         * lib/chown.c (rpl_chown): Return -1 on failure.
75695
75696 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75699         Don't check for stddef.h.
75700         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75701         don't use its results.
75702         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75703         since we include them unconditionally.  Don't require
75704         AM_STDBOOL_H, since stdbool is a prerequisite.
75705         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75706         since we assume C89 or better.
75707         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75708         as we don't use their results.
75709         Don't check for fchdir, memmove, memset, strrchr, as we use
75710         them unconditionally.
75711         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75712         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75713
75714 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75715
75716         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75717         Include <stddef.h> unconditionally, since we assume C89 now.
75718         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75719         * lib/fts.c: Include fts_.h first, to check interface.
75720         Do not include intprops.h; no longer needed.
75721         Include cycle-check.h and hash.h, since fts_.h no longer does.
75722         Remove unnecessary casts of closedir to void.
75723         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75724         decide whether to decrement nlinks.
75725         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75726         (FTS): Use struct hash_table * instead of Hash_table, so that
75727         we no longer need to include hash.h here.
75728
75729 2005-05-18  Jim Meyering  <jim@meyering.net>
75730
75731         * modules/dirfd (License): Change to LGPL.  Most of the code
75732         is already in the public domain.
75733
75734 2005-05-18  Jim Meyering  <jim@meyering.net>
75735
75736         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75737         Reported by Yoann Vandoorselaere.
75738
75739 2005-05-17  Jim Meyering  <jim@meyering.net>
75740
75741         * m4/fts.m4: New file, from coreutils.
75742
75743 2005-05-17  Jim Meyering  <jim@meyering.net>
75744
75745         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75746
75747 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         Sync from coreutils.
75750         * m4/unlinkdir.m4: New file.
75751
75752 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         Sync from coreutils.
75755         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75756         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75757         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75758         White space changes only.
75759         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75760         special.
75761         * lib/yesno.c: Include getline.h, not ctype.h.
75762         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75763         Use getline to remove arbitrary restriction on response length.
75764
75765 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         * config/srclist-update: Spell out "Street" in FSF postal
75768         mail address; this is the style the FSF seems to prefer.
75769
75770         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75771         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75772         this updates FSF postal mail address.
75773
75774         Sync from coreutils.
75775         * modules/unlinkdir: New file.
75776         * modules/yesno (Depends-on): Add getline.
75777         * MODULES.html.sh (File system functions): Add unlinkdir.
75778
75779 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75780
75781         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75782         lib/strsep.h:
75783         Change the initial comment to refer to GPL, not LGPL.
75784         gnulib-tool will change it to LGPL as needed.
75785
75786         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75787         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75788         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75789         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75790         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75791         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75792         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75793         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75794         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75795         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75796         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75797         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75798         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75799         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75800         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75801         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75802         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75803         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75804         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75805         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75806         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75807         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75808         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75809         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75810         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75811         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75812         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75813         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75814         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75815         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75816         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75817         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75818         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75819         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75820         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75821         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75822         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75823         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75824         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75825         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75826         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75827         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75828         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75829         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75830         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75831         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75832         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75833         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75834         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75835         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75836         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75837         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75838         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75839         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75840         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75841         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75842         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75843         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75844         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75845         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75846         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75847         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75848         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75849         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75850         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75851         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75852         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75853         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75854         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75855         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75856         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75857         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75858         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75859         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75860         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75861         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75862         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75863         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75864         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75865         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75866         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75867         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75868         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75869         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75870         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75871         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75872         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75873         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
75874         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
75875         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
75876         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
75877         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
75878         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
75879         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
75880         lib/yesno.c, lib/yesno.h:
75881         Update FSF postal mail address.
75882
75883 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
75886         tests/test-memmem.c, tests/test-stpncpy.c:
75887         Update FSF postal mail address.
75888
75889 2005-05-13  Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
75892         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
75893         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
75894         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
75895         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
75896         Add support for 64-bit integers in the MSVC compiler.
75897
75898 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75899
75900         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
75901
75902 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
75903
75904         * gnulib-tool (func_import): Sort and uniquify recommended includes.
75905
75906 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * doc/getdate.texi (General date syntax): Don't say that date
75909         date --iso-8601=ns generates acceptable dates; it doesn't yet.
75910         Problem reported by Nic Ferrier.
75911
75912 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75913
75914         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75915         specified in ai_socktype. Fix invalid ai_protocol
75916         check. ai_protocol is usually set to 0 or depending on
75917         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75918         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75919         ai_socktype / ai_protocol in the returned addrinfo structure.
75920
75921 2005-05-10  Simon Josefsson  <jas@extundo.com>
75922
75923         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75924         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75925
75926 2005-05-10  Karl Berry  <karl@gnu.org>
75927
75928         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75929         (from http://www.gnu.org/licenses).
75930         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75931         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75932         fdl.texi suffices.
75933
75934 2005-05-10  Karl Berry  <karl@gnu.org>
75935
75936         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75937         (COPYING.DOC): remove.
75938
75939         * config/srclist-update: new FSF address.
75940
75941 2005-05-10  Derek Price  <derek@ximbiot.com>
75942
75943         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75944         possible.
75945
75946 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75947             Bruno Haible  <bruno@clisp.org>
75948
75949         * modules/inet_ntop: New file.
75950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75951         inet_ntop.
75952
75953 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75954             Bruno Haible  <bruno@clisp.org>
75955
75956         * m4/inet_ntop.m4: New file.
75957
75958 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75959             Bruno Haible  <bruno@clisp.org>
75960
75961         * lib/inet_ntop.h: New file.
75962         * lib/inet_ntop.c: New file, from glibc with modifications.
75963
75964 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75965
75966         * modules/time_r (License): Change to LGPL.
75967         * modules/extensions (License): Change to LGPL.  Actually,
75968         the license is more permissive than that, but currently gnulib-tool
75969         doesn't know how to handle more-permissive licenses.
75970
75971         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75972         Problem reported by Dave Love.
75973
75974 2005-05-08  Jim Meyering  <jim@meyering.net>
75975
75976         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75977         blank.
75978
75979 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * modules/argmatch (Depends-on): Add stdbool.
75982         * modules/backupfile (Depends-on): Likewise.
75983         * modules/chdir-long (Depends-on): Likewise.
75984         * modules/closeout (Depends-on): Likewise.
75985         * modules/cycle-check (Depends-on): Likewise.
75986         * modules/dirname (Depends-on): Likewise.
75987         * modules/fnmatch (Depends-on): Likewise.
75988         * modules/fsusage (Depends-on): Likewise.
75989         * modules/fwriteerror (Depends-on): Likewise.
75990         * modules/getcwd (Depends-on): Likewise.
75991         * modules/getloadavg (Depends-on): Likewise.
75992         * modules/hard-locale (Depends-on): Likewise.
75993         * modules/makepath (Depends-on): Likewise.
75994         * modules/mountlist (Depends-on): Likewise.
75995         * modules/nanosleep (Depends-on): Likewise.
75996         * modules/posixtm (Depends-on): Likewise.
75997         * modules/quotearg (Depends-on): Likewise.
75998         * modules/readtokens (Depends-on): Likewise.
75999         * modules/readtokens0 (Depends-on): Likewise.
76000         * modules/readutmp (Depends-on): Likewise.
76001         * modules/save-cwd (Depends-on): Likewise.
76002         * modules/strftime (Depends-on): Likewise.
76003         * modules/userspec (Depends-on): Likewise.
76004         * modules/utimecmp (Depends-on): Likewise.
76005         * modules/xgetcwd (Depends-on): Likewise.
76006         * modules/xnanosleep (Depends-on): Likewise.
76007         * modules/xstrtod (Depends-on): Likewise.
76008         * modules/yesno (Depends-on): Likewise.
76009
76010 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76013         needless checks.
76014
76015 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         Merge from coreutils.  Among other things,
76018         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76019         * lib/fd-safer.c: New file.
76020         * lib/fcntl-safer.h, open-safer.c: Remove.
76021         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76022         * lib/dup-safer.c: Include unistd-safer.h first.
76023         Don't include errno.h.
76024         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76025         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76026         * lib/file-type.c: Rely on file-type.h change.
76027         * lib/getloadavg.c: Include unistd-safer.h.
76028         (getloadavg): Use safer open.
76029         * lib/getusershell.c: Include "stdio-safer.h".
76030         (getusershell): Use safer fopen.
76031         * lib/long-options.c (long_options): Use NULL rather than 0.
76032         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76033         'free'.
76034         * lib/modechange.c: Likewise.
76035         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76036         (MODE_DONE): New constant.
76037         (struct mode_change): Remove 'next' member.
76038         (make_node_op_equals): New function; like the old one of the
76039         same name, except it allocates an array.
76040         (mode_compile, mode_create_from_ref): Use it.
76041         (mode_compile): Allocate result as an array, not a linked list.
76042         Parse octal string ourself, so that we catch mistakes like "+0".
76043         (mode_adjust): Arg is an array, not a linked list.
76044         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76045         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76046         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76047         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76048         Remove.  This is now stat-macros.h's job.
76049         (talloc): Remove.  All callers replaced by xalloc, so that
76050         our invokers don't have to worry about reporting memory failures.
76051         (make_node_op_equals): Remove.
76052         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76053         New constants.
76054         (struct mode_change): Moved here from modechange.h.
76055         (mode_append_entry): Remove.
76056         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76057         apps to have incorrect behavior.  Use simpler algorithm for head
76058         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76059         Detect more invalid usages rather than having somewhat-random behavior.
76060         Don't insert an "a=" action, as that leads to incorrect behavior.
76061         (mode_compile, mode_create_from_ref): Return NULL on error instead
76062         of an enum, since now there's only one way to have an error.  All
76063         callers changed.
76064         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76065         at the correct time.  Simplify calculation of "+u" and its ilk.
76066         Don't mishandle "+X".
76067         (mode_free): Remove "register" and localize decls.
76068         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76069         (struct mode_change): Move to modechange.c; callers don't
76070         need to see this stuff.
76071         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76072         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76073         (mode_change, mode_adjust): Reflect the new signatures noted above.
76074         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76075         that might redefine system include files.
76076         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76077         (my_usleep): Use NULL rather than (void *) 0.
76078         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76079         Use siginterrupt to specify that system calls should be interrupted.
76080         (rpl_nanosleep): Move initialization of suspended closer to call of
76081         my_usleep.
76082         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76083         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76084         (desirable_utmp_entry): New function.
76085         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76086         using x2nrealloc, to simplify logic.
76087         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76088         size calculation.  Do not assume utmp file is a regular file.
76089         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76090         (READ_UTMP_CHECK_PIDS): New constant.
76091         * lib/save-cwd.c: Include unistd-safer.h.
76092         (save_cwd): Use fd_safer.
76093         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76094         [!_LIBC] Include "stat-macros.h" instead.
76095         * lib/unistd-safer.h (fd_safer): New decl.
76096
76097 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76098
76099         * modules/getloadavg (Depends-on): Add unistd-safer.
76100         * modules/getusershell (Depends-on): Add stdio-safer.
76101         * modules/lstat (Depends-on): Remove xalloc.
76102         * modules/mkstemp (Depends-on): Add stat-macros.
76103         * modules/modechange (Depends-on): Remove xstrtol.
76104         Add stat-macros, xalloc.
76105         * modules/save-cwd (Depends-on): Add unistd-safer.
76106         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76107         * modules/unistd-safer (Files): Add lib/fd-safer.c
76108         (Makefile.am): Remove lib_SOURCES.
76109
76110         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76111         Remove fcntl-safer; unistd-safer supersedes it.
76112
76113 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76114
76115         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76116         AC_HEADER_STAT.
76117         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76118         (gl_PREREQ_CHOWN): Remove.
76119         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76120         it.  Don't require AC_HEADER_STAT.
76121         (gl_PREREQ_LSTAT): Remove.
76122         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76123         Don't require AC_HEADER_STAT.
76124         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76125         (gl_PREREQ_RMDIR): Remove.
76126         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76127         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76128         the stat-macros module a prerequisite.
76129         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76130         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76131         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76132         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76133         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76134         variable names.
76135         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76136         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76137         variable prefixes.
76138         * m4/fcntl-safer.m4: Remove.
76139         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76140         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76141         Invoke gl_PREREQ_FD_SAFER.
76142         (gl_PREREQ_FD_SAFER): New macro.
76143         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76144         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76145         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76146         Remove duplicate call to AC_LIBOBJ(readutmp).
76147         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76148
76149         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76150         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76151
76152 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * MODULES.html.sh (Misc): Add byteswap.
76155
76156 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76157
76158         * modules/getcwd (Depends-on): Add extensions.
76159         * modules/openat (Depends-on): Likewise.
76160
76161 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76162
76163         * modules/byteswap: New file.
76164
76165 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76166
76167         * m4/byteswap.m4: New file.
76168
76169 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76170
76171         * lib/byteswap_.h: New file.
76172
76173 2005-04-25  Karl Berry  <karl@gnu.org>
76174
76175         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76176
76177 2005-04-25  Albert Chin  <china@thewrittenword.com>
76178
76179         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76180         Toolkit C bug.
76181
76182 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76183
76184         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76185         (func_ln_if_changed): Remove forcibly for no error message
76186         in case file does not exist.
76187
76188 2005-04-19  Simon Josefsson  <jas@extundo.com>
76189
76190         * gnulib-tool (Options): Make --symlink mean --symbolic.
76191
76192 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76193
76194         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76195
76196 2005-04-16  Simon Josefsson  <jas@extundo.com>
76197
76198         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76199
76200 2005-04-15  Simon Josefsson  <jas@extundo.com>
76201
76202         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76203
76204 2005-04-15  Simon Josefsson  <jas@extundo.com>
76205
76206         * gnulib-tool: Rename --symlink to --symbolic.
76207
76208 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76209
76210         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76211         symbolic links to files instead of copying/moving.  Add --aux-dir,
76212         specifying directory relative --dir where auxiliary build tools
76213         are placed.
76214
76215 2005-04-14  Bruno Haible  <bruno@clisp.org>
76216
76217         * modules/allocsa (License): Change to LGPL.
76218         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76219
76220 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76223         that "UTC +1 second" continues to work.  Problem reported
76224         by Dmitry V. Levin.
76225         (relunit_snumber): New rule.
76226         (relunit): Use it.
76227
76228 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * lib/getdate.y (universal_time_zone_table): New constant.
76231         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76232         universal_time_zone_table.
76233         (lookup_zone): Prefer universal_time_zone_table to
76234         local_time_zone_table, so that "GMT" time stamps are allowed in
76235         London during the summer.  Problem reported by Ian Abbott.
76236
76237 2005-04-12  Jim Meyering  <jim@meyering.net>
76238
76239         * lib/human.c (humblock): Set *options even when returning due to
76240         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76241         warning from gcc-4.
76242
76243 2005-04-09  Jim Meyering  <jim@meyering.net>
76244
76245         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76246         -Wuninitialized: initialize tm0.tm_year.
76247
76248 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76249
76250         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76251         count, since there's no maximum.  All uses changed.
76252         Add member dsts_seen.
76253         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76254         not being INT_MAX.
76255         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76256         Use pc_rels_seen to decide whther a date is absolute.
76257
76258         * lib/getdate.y (number): Don't overwrite year.
76259         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76260         check.
76261
76262 2005-04-02  Simon Josefsson  <jas@extundo.com>
76263
76264         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76265         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76266
76267 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76268
76269         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76270         where no absolute path name can be longer than PATH_MAX.
76271
76272 2005-03-27  Jim Meyering  <jim@meyering.net>
76273
76274         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76275
76276 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76279         "one's complement" -> "ones' complement" in comment, as per Knuth.
76280         "value of type" -> "type or expression" in comment.
76281         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76282
76283 2005-03-26  Jim Meyering  <jim@meyering.net>
76284
76285         Comment nits.
76286         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76287         Correct typos: s/or/of/.
76288
76289 2005-03-26  Jim Meyering  <jim@meyering.net>
76290
76291         * modules/check-include-files: Move to ../ and rename to...
76292         * check-module: ...this.
76293
76294 2005-03-25  Jim Meyering  <jim@meyering.net>
76295
76296         * modules/xvasprintf (Files): Add xalloc.h.
76297
76298 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * modules/gettext (Files): config/config.rpath ->
76301         build-aux/config.rpath
76302         * modules/iconv (Files): Likewise.
76303         Problem reported by Oskar Liljeblad.
76304
76305 2005-03-23  Jim Meyering  <jim@meyering.net>
76306
76307         * modules/check-include-files: New script to check for
76308         missing dependencies, multiple includes, etc.
76309
76310         * modules/c-strtold (Depends-on): Add xalloc.
76311         * modules/c-strtod (Depends-on): Add xalloc.
76312         * modules/hash (Depends-on): Add xalloc.
76313         (Files): Remove lib/xalloc.h.
76314
76315         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76316         * modules/userspec (Files): Add lib/inttostr.h.
76317
76318 2005-03-23  Jim Meyering  <jim@meyering.net>
76319
76320         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76321
76322 2005-03-22  Jim Meyering  <jim@meyering.net>
76323
76324         * modules/stat-macros: New module.
76325         * modules/canonicalize, modules/euidaccess, modules/file-type,
76326         * modules/filemode, modules/lchown, modules/makepath,
76327         * modules/rmdir, modules/stat: Depend on new stat-macros module
76328         rather than listing lib/stat-macros.h manually.
76329         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76330
76331 2005-03-22  Jim Meyering  <jim@meyering.net>
76332
76333         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76334
76335 2005-03-22  Bruno Haible  <bruno@clisp.org>
76336
76337         * config/srclist.txt: Replace target directory 'config' with
76338         'build-aux'.
76339         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76340         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76341         ../build-aux/.
76342
76343 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * modules/chdir-long (Depends-on): Add mempcpy.
76346
76347         * modules/acl, modules/backupfile, modules/c-strtod,
76348         modules/c-strtold, modules/canon-host, modules/canonicalize,
76349         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76350         modules/exclude, modules/exitfail, modules/file-type,
76351         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76352         modules/getdate, modules/getline, modules/getpagesize,
76353         modules/getpass, modules/getugroups, modules/group-member,
76354         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76355         modules/inttostr, modules/long-options, modules/makepath,
76356         modules/md5, modules/memcasecmp, modules/memcoll,
76357         modules/modechange, modules/mountlist, modules/path-concat,
76358         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76359         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76360         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76361         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76362         modules/strftime, modules/strndup, modules/strverscmp,
76363         modules/timespec, modules/unlocked-io, modules/userspec,
76364         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76365         modules/yesno:
76366         Remove lib_SOURCES line from Makefile.am section, as this is now
76367         done automatically by the corresponding Autoconf macro.
76368
76369 2005-03-21  Jim Meyering  <jim@meyering.net>
76370
76371         Changes imported from coreutils.
76372
76373         * lib/cycle-check.c: Don't include xalloc.h.
76374
76375         * lib/path-concat.c: Don't include assert.h.
76376         (path_concat): Remove assertion that would have triggered
76377         for ABASE starting with more than one slash.
76378         Reported by Andreas Schwab.
76379
76380         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76381         properly when ABASE is an absolute file name.
76382         Correct the description of this function.
76383         Include <assert.h>.
76384         Add an assertion and a test driver.
76385         This fixes a bug introduced on 2004-07-02.
76386         Andreas Schwab reported the resulting failure of cp --parents:
76387         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76388
76389 2005-03-21  Jim Meyering  <jim@meyering.net>
76390
76391         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76392         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76393
76394 2005-03-21  Jim Meyering  <jim@meyering.net>
76395         and  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76398         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76399         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76400         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76401         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76402         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76403         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76404         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76405         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76406         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76407         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76408         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76409         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76410         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76411         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76412         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76413         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76414         for these modules.
76415
76416 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76419         (which shouldn't happen), generate nothing instead of returning 0
76420         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76421
76422 2005-03-16  Bruno Haible  <bruno@clisp.org>
76423
76424         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76425         HAVE_LONGLONG_64BIT.
76426
76427 2005-03-16  Bruno Haible  <bruno@clisp.org>
76428
76429         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76430         HAVE_LONGLONG_64BIT.
76431
76432 2005-03-16  Bruno Haible  <bruno@clisp.org>
76433
76434         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76435         HAVE_LONGLONG_64BIT.
76436
76437 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76440         reliably distinguish strftime failure from empty output on POSIX
76441         hosts.
76442
76443 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76446         (iconv_string): Don't guess a size-zero buffer, as that might cause
76447         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76448         result would be 'too large', where 'too large' is (heuristically)
76449         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76450         overflow concerns.  This will prevent some unwanted malloc failures
76451         when the inputs are very large.
76452
76453 2005-03-15  Karl Berry  <karl@gnu.org>
76454
76455         * config/srclist.txt (config.rpath): from gettext.
76456         * config/config.rpath: update.
76457
76458 2005-03-15  Bruno Haible  <bruno@clisp.org>
76459
76460         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76461         to 'negate'.
76462
76463         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76464         variable.
76465
76466         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76467         results.
76468
76469 2005-03-14  Simon Josefsson  <jas@extundo.com>
76470
76471         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76472         <fx@gnu.org>.
76473
76474 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76477         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76478         intprops.h.
76479         * lib/strtol.c: Likewise.
76480
76481 2005-03-14  Jim Meyering  <jim@meyering.net>
76482
76483         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76484         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76485         to be nonzero so that we (and caller) can detect the difference
76486         between a valid zero-length expansion and an error return, even
76487         when the underlying strftime fails before writing anything into
76488         that location.
76489
76490 2005-03-14  Bruno Haible  <bruno@clisp.org>
76491
76492         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76493         Update from GNU gettext 0.14.3.
76494
76495 2005-03-10  Jim Meyering  <jim@meyering.net>
76496
76497         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76498
76499 2005-03-10  Jim Meyering  <jim@meyering.net>
76500
76501         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76502         so that this module works on systems without fchdir.
76503
76504 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         Factor int-properties macros into a single file, except for
76507         glibc-related files.
76508         * lib/intprops.h: New file.
76509         * lib/getloadavg.c: Include it instead of limits.h.
76510         (INT_STRLEN_BOUND): Remove.
76511         * lib/human.c: Include intprops.h.
76512         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76513         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76514         302/1000.
76515         * lib/inttostr.h: Include intprops.h instead of limits.h.
76516         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76517         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76518         for consistency with intprops.h.
76519         (time_t_is_integer, twos_complement_arithmetic): Use them.
76520         * lib/sig2str.h: Include <signal.h>, intprops.h.
76521         (INT_STRLEN_BOUND): Remove.
76522         * lib/strftime.c (TYPE_SIGNED): Remove.
76523         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76524         * lib/strtol.c: Adjust comments to match intprops.h.
76525         * lib/userspec.c: Include intprops.h.
76526         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76527         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76528         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76529         instead of rolling our own expressions.
76530         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76531
76532         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76533         instead of int.
76534         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76535         the right thing even if adding 1900 would overflow.  Similarly
76536         for tm_mon + 1 and tm_yday + 1.
76537         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76538         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76539         (DO_SIGNED_NUMBER): New macro.
76540         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76541
76542 2005-03-07  Bruno Haible  <bruno@clisp.org>
76543
76544         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76545
76546 2005-03-07  Bruno Haible  <bruno@clisp.org>
76547
76548         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76549
76550 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76551
76552         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76553         (func_import): Only replace files via --import when they have actually
76554         changed.
76555
76556 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76557
76558         * m4/mmap-anon.m4: New file.
76559         * m4/pagealign_alloc.m4: New file.
76560
76561 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76562             Bruno Haible  <bruno@clisp.org>
76563
76564         * modules/pagealign_alloc: New file.
76565         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76566
76567 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76568             Bruno Haible  <bruno@clisp.org>
76569
76570         * lib/pagealign_alloc.h: New file.
76571         * lib/pagealign_alloc.c: New file.
76572
76573 2005-03-03  Bruno Haible  <bruno@clisp.org>
76574
76575         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76576         Use an all-permissive copyright notice, recommended by RMS.
76577
76578 2005-03-02  Bruno Haible  <bruno@clisp.org>
76579
76580         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76581         of AIX, the replacement has to be done only after <string.h> is
76582         included, therefore not in config.h. stpncpy.h does the replacement,
76583         and stpncpy.c uses it.
76584
76585 2005-03-02  Bruno Haible  <bruno@clisp.org>
76586
76587         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76588         stpncpy.c uses it.
76589
76590 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76593         The workaround isn't strictly needed for POSIX conformance, and
76594         it's too much of a pain to configure and maintain.  We'll ask
76595         people to fix their kernels instead.
76596         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76597         (NANOSLEEP_BUG_WORKAROUND): Remove.
76598         (xnanosleep): Remove the workaround.
76599
76600 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76603         Reported by Derek Price.
76604         (Include): Add "timespec.h".
76605
76606         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76607
76608 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76611         to detect nanosleep bug.
76612
76613 2005-03-01  Bruno Haible  <bruno@clisp.org>
76614
76615         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76616
76617 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         * modules/gethrxtime: New file.
76620         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76621         (Depends-on): Add gethrxtime.
76622         (configure.ac): Add gl_XNANOSLEEP.
76623         (Makefile.am): Remove lib_SOURCES line.
76624
76625 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76628         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76629
76630 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76633         * lib/timespec.h (gettime): Return void, since it always
76634         succeeds now.  All uses changed.
76635         * lib/gettime.c (gettime): Likewise.
76636         [HAVE_NANOTIME]: Prefer nanotime.
76637         Assume gettimeofday succeeds, as POSIX requires.
76638         Assime time () succeeds, since other code already does.
76639         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76640         (timespec_subtract): Remove.
76641         (NANOSLEEP_BUG_WORKAROUND): New constant.
76642         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76643         things considerably.  Use it only on GNU/Linux hosts, since the
76644         workaround shouldn't be needed elsewhere.
76645
76646 2005-02-24  Bruno Haible  <bruno@clisp.org>
76647
76648         * modules/gettext (Files): Add m4/glibc2.m4.
76649
76650 2005-02-24  Bruno Haible  <bruno@clisp.org>
76651
76652         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76653         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76654         * m4/progtest.m4:
76655         Update from GNU gettext 0.14.2.
76656         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76657
76658 2005-02-24  Bruno Haible  <bruno@clisp.org>
76659
76660         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76661         * lib/config.charset: Update from GNU gettext 0.14.2.
76662
76663 2005-02-24  Bruno Haible  <bruno@clisp.org>
76664
76665         * lib/gettext.h: Update from GNU gettext 0.14.2.
76666
76667 2005-02-23  Simon Josefsson  <jas@extundo.com>
76668
76669         * m4/iconvme.m4: New file.
76670
76671 2005-02-23  Jim Meyering  <jim@meyering.net>
76672
76673         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76674         change.
76675         Thanks to Bruno Haible for catching it.
76676
76677 2005-02-22  Simon Josefsson  <jas@extundo.com>
76678
76679         * modules/iconvme: New file.
76680
76681         * MODULES.html.sh: Add iconvme.
76682
76683 2005-02-22  Simon Josefsson  <jas@extundo.com>
76684
76685         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76686
76687 2005-02-22  Simon Josefsson  <jas@extundo.com>
76688
76689         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76690
76691 2005-02-22  Jim Meyering  <jim@meyering.net>
76692
76693         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76694         s/ifndef/ifdef/.
76695
76696 2005-02-20  Neil Conway  <neilc@samurai.com>
76697
76698         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76699         returned by OSX/Darwin if the specified buffer is not large
76700         enough for the hostname.
76701
76702 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76703
76704         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76705         pass it to _help, otherwise the latter coredumps trying to
76706         dereference state.root_argp.
76707
76708 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * modules/chdir-long (Depends-on): Add memrchr.
76711         * modules/memrchr (Files): Add lib/memrchr.h.
76712         (Include): "memrchr.h".
76713
76714 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76717
76718 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * lib/memrchr.h: New file.
76721         * lib/chdir-long.c: Include it.
76722         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76723         Don't bother including stddef.h.
76724
76725 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76728         inclusion.
76729         Include <sys/types.h>, for dev_t.
76730         (ME_DUMMY, ME_REMOTE): Move from here....
76731         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76732         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76733         Dmitry V. Levin.
76734         Include mountlist.h first, to test the interface.
76735
76736 2005-01-29  Bruno Haible  <bruno@clisp.org>
76737
76738         * lib/progname.c (program_name): Initialize.
76739         Needed when linking statically on MacOS X.
76740
76741 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         Sync from coreutils.
76744         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76745         (Depends-on): Add c-strtod.
76746         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76747
76748 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         Sync from coreutils.
76751         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76752
76753         Remove files that are specific to coreutils.
76754         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76755
76756 2005-01-28  Bruno Haible  <bruno@clisp.org>
76757
76758         * modules/javacomp: New file.
76759         * MODULES.html.sh (Java): Add javacomp.
76760
76761 2005-01-28  Bruno Haible  <bruno@clisp.org>
76762
76763         * m4/javacomp.m4: New file, from GNU gettext.
76764
76765 2005-01-28  Bruno Haible  <bruno@clisp.org>
76766
76767         * lib/javacomp.sh.in: New file, from GNU gettext.
76768         * lib/javacomp.h: New file, from GNU gettext.
76769         * lib/javacomp.c: New file, from GNU gettext.
76770
76771 2005-01-26  Simon Josefsson  <jas@extundo.com>
76772
76773         * lib/gai_strerror.c: Use GPL in header.
76774
76775 2005-01-26  Bruno Haible  <bruno@clisp.org>
76776
76777         * modules/javaexec: New file.
76778         * MODULES.html.sh (Java): Add javaexec.
76779
76780 2005-01-26  Bruno Haible  <bruno@clisp.org>
76781
76782         * m4/javaexec.m4: New file, from GNU gettext.
76783
76784 2005-01-26  Bruno Haible  <bruno@clisp.org>
76785
76786         * lib/javaexec.sh.in: New file, from GNU gettext.
76787         * lib/javaexec.h: New file, from GNU gettext.
76788         * lib/javaexec.c: New file, from GNU gettext.
76789
76790 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76791
76792         * modules/lchown (Depends-on): Remove lchown.h
76793
76794 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76795
76796         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76797         must be defined if the header file was not found, in order
76798         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76799
76800 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76801
76802         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76803         initializers for struct pentry_state.
76804         (__argp_error): Check return value of __asprintf
76805         (__argp_failure): Translate error message
76806
76807         * lib/argp-parse.c: Removed braces around the expansion of N_()
76808
76809 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76810
76811         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76812         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76813         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76814         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76815         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76816         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76817         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76818         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76819         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76820         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76821         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76822         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76823         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76824         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76825         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76826         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76827         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76828         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76829         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76830         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76831         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76832         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76833         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76834         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76835         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76836         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76837         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76838         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76839         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76840         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76841         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76842         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76843         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76844         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76845         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76846         Use an all-permissive copyright notice, recommended by RMS.
76847
76848 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * modules/chdir-long (Depends-on): Remove mempcpy.
76851
76852 2005-01-21  Jim Meyering  <jim@meyering.net>
76853
76854         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76855         same value as for Solaris 9.
76856
76857         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76858         component length.  This included changing the parameter to be
76859         of type `char *' rather than `char const *'.
76860         * lib/chdir-long.h (chdir_long): Update prototype.
76861
76862         * lib/openat.c (fdopendir, fstatat): New functions.
76863         * lib/openat.h: Include headers required for use of DIR and struct
76864         stat.
76865         [AT_SYMLINK_NOFOLLOW]: Define.
76866         (fdopendir, fstatat): Add prototypes.
76867
76868 2005-01-21  Bruno Haible  <bruno@clisp.org>
76869
76870         * modules/classpath: New file.
76871         * MODULES.html.sh (Java): Add classpath.
76872
76873 2005-01-21  Bruno Haible  <bruno@clisp.org>
76874
76875         * lib/classpath.h: New file, from GNU gettext.
76876         * lib/classpath.c: New file, from GNU gettext.
76877
76878 2005-01-20  Simon Josefsson  <jas@extundo.com>
76879
76880         * modules/version-etc-fsf: New file.
76881
76882 2005-01-20  Simon Josefsson  <jas@extundo.com>
76883
76884         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
76885         * lib/version-etc.c: Remove version_etc_copyright.
76886         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
76887         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
76888
76889 2005-01-20  Simon Josefsson  <jas@extundo.com>
76890
76891         * lib/base64.h (isbase64): Add.
76892
76893         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
76894         using a unsigned prototype, don't inline.
76895         (base64_decode): Use it.
76896
76897 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
76900         it.
76901
76902 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76903
76904         * lib/save-cwd.c (save_cwd): Remove code to support the case
76905         where fchdir is missing or flaky.
76906
76907 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
76910
76911 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76912
76913         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76914         AC_LIBSOURCES now does this.
76915         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76916         with new ullong_max module.
76917
76918 2005-01-19  Bruno Haible  <bruno@clisp.org>
76919
76920         * modules/sh-quote: New file.
76921         * MODULES.html.sh (Executing programs): Add sh-quote.
76922
76923 2005-01-19  Bruno Haible  <bruno@clisp.org>
76924
76925         * lib/sh-quote.h: New file, from GNU gettext.
76926         * lib/sh-quote.c: New file, from GNU gettext.
76927
76928 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         Merge from coreutils.
76931         * m4/ullong_max.m4: New file.
76932         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76933         (gl_MACROS): Assume localeconv exists.
76934
76935 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         Merge changes from coreutils, as described below in several
76938         changelogs dated today.
76939
76940         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76941         (O_DIRECTORY): Remove; not needed here, since "." must be
76942         a directory.  All uses removed.
76943         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76944         universal on Suns, and we also need to test for IRIX.
76945         Revamp code to use 'if' rather than '#if'.
76946         Avoid unnecessary comparison of cwd->desc to 0.
76947
76948         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76949         for known valid error numbers rather than observed invalid ones.
76950
76951 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * modules/ullong_max: New file.
76954
76955         * modules/chdir-long, modules/openat: New files.
76956         * modules/save-cwd (Depends-on): Depend on chdir-long.
76957         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76958
76959 2005-01-18  Jim Meyering  <jim@meyering.net>
76960
76961         Merge from coreutils.
76962         * m4/chdir-long.m4, m4/openat.m4: New files.
76963         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76964         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76965         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76966         is sane and DOES follow symlinks.  Besides, testing 20 different
76967         systems found no broken chown implementations.
76968         Prompted by a change in rsync's copy of this macro.
76969         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76970
76971         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76972
76973         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76974         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76975         NULL-means-set-to-current-time semantics.
76976         Remove temporary file immediately, rather than waiting
76977         for configure's at-exit trap code to do it.
76978
76979 2005-01-18  Jim Meyering  <jim@meyering.net>
76980
76981         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76982
76983         * lib/utimens.c (futimens): Account for the fact that futimes
76984         can also fail with errno == ENOSYS or errno == ENOENT.
76985         Patch from Dmitry V. Levin.
76986
76987         Change the name of the robust chdir function from chdir to chdir_long.
76988         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76989         (restore_cwd): Use chdir_long, not chdir.
76990         * lib/chdir-long.c: Renamed from chdir.c.
76991         * lib/chdir-long.h: Renamed from chdir.h.
76992         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76993         Hurd.
76994
76995 2005-01-18  Bruno Haible  <bruno@clisp.org>
76996
76997         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76998         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76999         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77000         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77001         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77002         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77003         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77004         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77005         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77006         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77007         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77008         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77009         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77010         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77011         Use an all-permissive copyright notice, recommended by RMS.
77012
77013 2005-01-18  Bob Proulx  <bob@proulx.com>
77014
77015         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77016         simplify offsetof() macro construct to avoid compile failure with
77017         native HP-UX 11.0 ANSI C compiler.
77018
77019 2005-01-17  Bruno Haible  <bruno@clisp.org>
77020
77021         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77022         redundant because stpncpy.m4 takes care of it.
77023
77024 2005-01-17  Bruno Haible  <bruno@clisp.org>
77025
77026         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77027
77028 2005-01-17  Bruno Haible  <bruno@clisp.org>
77029
77030         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77031         used.
77032
77033 2005-01-17  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/fwriteerror.h (fwriteerror): Change specification to include
77036         fclose.
77037         * lib/fwriteerror.c: Include <stdbool.h>.
77038         (fwriteerror): At the end, close the file stream. Record whether
77039         stdout was already closed.
77040
77041 2005-01-17  Bruno Haible  <bruno@clisp.org>
77042
77043         * lib/execute.c (environ): Declare if needed.
77044         * lib/pipe.c (environ): Likewise.
77045         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77046
77047 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77048
77049         * modules/argp: Depend on vsnprintf
77050
77051 2005-01-10  Jim Meyering  <jim@meyering.net>
77052
77053         * modules/closeout (Depends-on): Add atexit.
77054
77055 2005-01-06  Bruno Haible  <bruno@clisp.org>
77056
77057         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77058
77059 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77062         definitions to be after all include files, to avoid collisions.
77063         Problem reported by Bob Proulx.
77064
77065 2005-01-04  Jim Meyering  <jim@meyering.net>
77066
77067         Changes imported from coreutils.
77068         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77069         as the mkstemp template, use a temporary directory and an
77070         8.3-friendly template to avoid trouble on systems like DJGPP.
77071         Reported by Juan M. Guerrero via Stepan Kasal.
77072         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77073         close. Remove the temporary directory right away, rather than waiting
77074         for configure's at-exit trap code to do it.
77075         Suggestion from Stepan Kasal.
77076
77077 2005-01-01  Simon Josefsson  <jas@extundo.com>
77078
77079         * gnulib-tool: Print #include directives when --import'ing.
77080
77081 2004-12-28  Simon Josefsson  <jas@extundo.com>
77082
77083         * tests/test-base64.c: Include required header files.  Remove
77084         unused variables.
77085
77086 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * modules/error (Depends-on): Remove gettext.
77089
77090 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77091
77092         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77093         not needed.  This removes a dependency on the gettext module.
77094         [defined _LIBC]: Do not include <libintl.h>; not needed.
77095
77096 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77097
77098         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77099         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77100
77101 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77104         HAVE_DECL_STRTOLD.
77105
77106 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77107
77108         * modules/getdate (Depends-on): Remove alloca-opt.
77109
77110 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77111
77112         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77113
77114 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * lib/argp-parse.c: Include <stddef.h>.
77117         (alignof, alignto): New macros.
77118         (parser_init): Don't assume that void * is aligned sufficiently
77119         for struct option.
77120
77121         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77122         need to extend the stack.
77123         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77124         large.
77125
77126 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77127
77128         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77129
77130 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77133         (2004-10-24) change.  Apparently this was a false alarm.
77134
77135         * modules/getdate: Depend on alloca-opt, not alloca.
77136
77137 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77140         Remove now-obsolete comment about AIX.
77141         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77142         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77143         (YYMAXDEPTH): New macro.
77144
77145 2004-12-18  Simon Josefsson  <jas@extundo.com>
77146
77147         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77148
77149 2004-12-18  Bruno Haible  <bruno@clisp.org>
77150
77151         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77152
77153 2004-12-18  Bruno Haible  <bruno@clisp.org>
77154
77155         * lib/fatal-signal.c (fatal_signals): Make non-const.
77156         (init_fatal_signals): New function.
77157         (uninstall_handlers, install_handlers): Ignore signals that were set to
77158         SIG_IGN.
77159         (at_fatal_signal): Call init_fatal_signals.
77160         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77161         SIG_IGN.
77162         Reported by Paul Eggert.
77163
77164 2004-12-18  Bruno Haible  <bruno@clisp.org>
77165
77166         * doc/alloca.texi: New file.
77167         * doc/alloca-opt.texi: New file.
77168
77169 2004-12-17  Jim Meyering  <jim@meyering.net>
77170
77171         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77172         Otherwise, install-sh could exit with improper exit status when
77173         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77174
77175 2004-12-16  Simon Josefsson  <jas@extundo.com>
77176
77177         * tests/test-base64.c: Add license.
77178
77179 2004-12-15  Stepan Kasal  <address@hidden>
77180
77181         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77182
77183 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77184
77185         * modules/getcwd (Files): Add m4/d-ino.m4.
77186         Suggested by Mark D. Baushke.
77187
77188 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77189
77190         * lib/getdate.y (textint): New member "negative".
77191         (time_zone_hhmm): New function.
77192         Expect 14 shift-reduce conflicts, not 13.
77193         (o_colon_minutes): New rule.
77194         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77195         (yylex): Set the "negative" member of signed numbers.
77196
77197 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * doc/getdate.texi (Time of day items, Time zone items):
77200         Describe new formats +00:00, UTC+00:00.
77201
77202 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77205         spurious "-l"s.  Problem reported by Stepan Kasal.
77206
77207 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77210         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77211
77212 2004-12-04  Simon Josefsson  <jas@extundo.com>
77213
77214         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77215         Vandoorselaere <yoann@prelude-ids.org>.
77216
77217 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77218
77219         Changes imported from coreutils.
77220         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77221         exist.
77222         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77223
77224 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         Changes imported from coreutils.
77227         * lib/hard-locale.c: Assume <locale.h> exists.
77228         Include "strdup.h".
77229         (GLIBC_VERSION): New macro.
77230         (hard_locale): Assume setlocale exists.
77231         Rewrite to avoid #ifdef.
77232         Use strdup rather than malloc + strcpy.
77233         * lib/human.c: Assume <locale.h> exists.
77234         (human_readable): Assume localeconv exists.
77235
77236 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         * modules/hard-locale (Depends-on): Add strdup.
77239
77240 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77241
77242         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77243         convert T2, not T.  (Imported from libc.)
77244
77245 2004-11-30  Simon Josefsson  <jas@extundo.com>
77246
77247         * modules/restrict (License): Change to LGPL.
77248
77249 2004-11-30  Simon Josefsson  <jas@extundo.com>
77250
77251         * m4/restrict.m4: Add copyright and copying conditions.
77252
77253 2004-11-30  Simon Josefsson  <jas@extundo.com>
77254
77255         * m4/base64.m4: New file.
77256
77257 2004-11-30  Simon Josefsson  <jas@extundo.com>
77258
77259         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77260         base64.
77261
77262         * tests/test-base64.c: New file.
77263
77264         * modules/base64: New file.
77265
77266 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77269         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77270
77271         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77272
77273 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77274
77275         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77276         (__getcwd.c): Don't restore errno; glibc doesn't.
77277         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77278         first, falling back to our code only if its results look suspicious.
77279         Ensure that the resulting buffer is only as large as necessary.
77280
77281         * lib/readutmp.c: Include readutmp.h first.
77282         Include <errno.h>, since readutmp.h no longer does that.
77283         * lib/readutmp.h: Don't include <errno.h>,
77284         <sys/param.h>, <time.h>; not needed to establish interface.
77285         (errno): Remove decl.
77286         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77287         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77288         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77289
77290 2004-11-28  Simon Josefsson  <jas@extundo.com>
77291
77292         * lib/base64.h, base64.c: New file.
77293
77294 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77295
77296         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77297
77298 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77299
77300         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77301         (Depends-on): Remove pathmax, same.  Add mempcpy.
77302         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77303         (Makefile.am): Append getcwd.h to lib_SOURCES.
77304         (Include): Add getcwd.h.
77305         (Maintainer): Change from Jim Meyering to "all, glibc",
77306         since getdate now uses intended-for-glibc code.
77307         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77308         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77309
77310 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77313         HP's ANSI C compiler.
77314         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77315         Declaring int functions causes warnings on some modern systems and
77316         shouldn't be needed to compile on ancient ones.
77317         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77318         defined.
77319
77320         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77321         with the following changes.
77322         (__set_errno): Parenthesize properly.
77323         Include <stdbool.h>.
77324         (MIN, MAX, MATCHING_INO): New macros.
77325         (__getcwd): Define with prototype, not K&R form.
77326         Use heuristics to allocate default buffer on stack if possible.
77327         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77328         behavior, and to avoid the PATH_MAX limit when computing
77329         ../../../../...
77330         Use MATCHING_INO to compare inode number to file.
77331         Check for arithmetic overflow in size calculations.
77332         Fix bug in reallocation of dot array that caused getcwd to fail
77333         on directories nested deeper than 75.
77334         Be more careful about saving errno on error.
77335         Do not use realloc; use only free+malloc, as this is a bit
77336         more flexible and avoids a needless copy operation.
77337         Do not inspect st_dev and st_ino for symbolic links; POSIX
77338         doesn't specify the latter.
77339         Check for closedir errors.
77340         Avoid needless casts.
77341         Use "#ifdef weak_alias" around weak_alias, to be like other
77342         glibc code.
77343         The following changes to getcwd.c have effect only when used in
77344         gnulib; they have no effect inside glibc proper.
77345         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77346         as alloca isn't used.
77347         (alloca, __alloca): Likewise.
77348         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77349         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77350         unconditionally, as gnulib assumes C89 or better.
77351         Do not include <sys/param.h>.
77352         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77353         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77354         better.
77355         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77356         Include <dirent.h> in a way that is compatible with modern Autoconf.
77357         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77358         New macros, if not already defined.
77359         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77360         Use "_LIBC", not "defined _LIBC", for consistency.
77361         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77362         a mempcpy module.
77363         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77364         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77365         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77366         credit only to Jim Meyering and adjust the copyright dates.
77367         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77368         <stdlib.h>, <unistd.h>, "pathmax.h".
77369         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77370         (INITIAL_BUFFER_SIZE): Remove.
77371         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77372
77373 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77374
77375         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77376         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77377         Use the _ONCE methods, for efficiency.
77378         Check for fcntl.h.  In test program, include <errno.h>
77379         and <fcntl.h> if available.  Remove old K&R cruft from
77380         test program.  Check for common errors in GNU/Linux,
77381         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77382         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77383         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77384         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77385         name accordingly.
77386         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77387         accommodate new getcwd.c.
77388         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77389         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77390         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77391         that's all we need now.
77392
77393 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77394
77395         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77396         argp-parse.c depends on getopt internals, that means we should
77397         always use our getopt, to be on the safe side.
77398         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77399         order not to spoil the result of an eventual previous invocation
77400         of gl_GETOPT_SUBSTITUTE.
77401
77402 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77403
77404         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77405         redefinition warnings. To avoid them, include the defines
77406         in `#if !defined __need_getopt ... #endif'. The only place
77407         where __getopt_argv_const is used is in definitions
77408         of getopt_long and getopt_long_only below, which are as well
77409         protected by `#ifndef __need_getopt'.
77410         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77411         __need_getopt after including <stdio.h> and <unistd.h> These
77412         headers might have defined it.
77413
77414 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77417
77418 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77421         (futimens): New function, which uses futimes if available.
77422         (futimens, utimens): Support timespec==NULL, with same semantics
77423         as utime and utimens.
77424         * lib/utimens.h (futimens): New decl.
77425
77426 2004-11-23  Jim Meyering  <jim@meyering.net>
77427
77428         * lib/getopt_.h: Remove trailing blanks.
77429
77430 2004-11-23  Jim Meyering  <jim@meyering.net>
77431
77432         * lib/__fpending.c: Add comment.
77433
77434 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         * modules/canonicalize (Depends-on): Add xreadlink.
77437         Problem reported by James Youngman.
77438
77439 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77442         New macros.
77443         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77444         optopt): Use them instead of invoking ## directly; otherwise, the
77445         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77446
77447 2004-11-19  Bruno Haible  <bruno@clisp.org>
77448
77449         * lib/strtok_r.c: Move comments from here...
77450         * lib/strtok_r.h: ... to here.
77451
77452 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77455         implementations that mishandle size_t overflow.
77456
77457 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77460         might fail.  Problem reported by Yoann Vandoorselaere.
77461         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77462         implementations that mishandle size_t overflow.
77463
77464 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * modules/canon-host (Depends-on): Add strdup.
77467
77468 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77469
77470         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77471
77472 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * lib/canon-host.c: Include "strdup.h".
77475         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77476         Use strdup instead of malloc/strcpy to duplicate strings.
77477
77478         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77479         (human_space_before_unit): New constant.
77480         * lib/human.c (human_readable): Support it.
77481
77482         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77483         (xgetcwd): Set errno correctly when failing.
77484         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77485         the failure is actually due to a PATH_MAX problem.
77486
77487         Further getopt changes to make it more likely that glibc will
77488         buy the changes back.
77489         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77490         (getopt): Use it, so to preserve glibc semantic
77491         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77492         when compiling for libc.
77493         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77494         (getopt_long, getopt_long_only): Use it.
77495
77496         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77497         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77498         (getopt): Argv is now char * const *, as per standard.
77499         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77500         not char *__getopt_argv_const *.
77501         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77502         _getopt_long_only_r): Likewise.
77503         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77504         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77505         _getopt_long_r, _getopt_long_only_r): Likewise.
77506         * lib/getopt_.h (__getopt_argv_const): Remove.
77507         (getopt): Argv is now char * const *, as per standard.
77508
77509         * lib/getdate.y (tORDINAL): New token.
77510         (day, relunit): Allow it for relative times.
77511         (relative_time_table): Use tORDINAL for ordinals.
77512
77513 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77516         Document that "second" isn't allowed as an ordinal number.
77517
77518 2004-11-16  Jim Meyering  <jim@meyering.net>
77519
77520         * modules/closeout (Depends-on): Add fpending.
77521
77522 2004-11-15  Jim Meyering  <jim@meyering.net>
77523
77524         * lib/closeout.c: Include "__fpending.h" once again.
77525         Include <stdbool.h>.
77526         (close_stdout): Don't fail just because stdout was closed initially,
77527         since some programs don't write to stdout in the normal course of
77528         operation (other than --version and --help), and we don't want this
77529         function to make e.g. `touch file >&-' fail.
77530         But do fail if it was closed and someone has tried to write to it.
77531         E.g., `printf foo >&-' must fail.
77532
77533 2004-11-13  Jim Meyering  <jim@meyering.net>
77534
77535         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77536
77537 2004-11-12  Simon Josefsson  <jas@extundo.com>
77538
77539         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77540         small doc fix is still pending.
77541
77542 2004-11-11  Simon Josefsson  <jas@extundo.com>
77543
77544         * modules/strtok_r: New file.
77545
77546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77547         strtok_r.
77548
77549 2004-11-11  Simon Josefsson  <jas@extundo.com>
77550
77551         * m4/strtok_r.m4: New file.
77552
77553         * m4/getopt.m4: Replace opterr.
77554
77555 2004-11-11  Simon Josefsson  <jas@extundo.com>
77556
77557         * lib/strtok_r.h, strtok_r.c: New file.
77558
77559 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77560
77561         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77562         of replacing opterr, getopt, etc.  This should handle the
77563         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77564
77565 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77568         we can stop lying to compilers about the constness of argv when we
77569         are compiled outside glibc.
77570         (getopt, getopt_long, getopt_long_only): Use it.
77571         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77572         _getopt_internal, getopt): Likewise.
77573         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77574         _getopt_long_only_r): Likewise.
77575         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77576         _getopt_long_r, _getopt_long_only_r): Likewise.
77577
77578         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77579         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77580         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77581         the other external symbols.
77582         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77583         declaration, since the above renaming now works around collisions.
77584
77585 2004-11-11  Jim Meyering  <jim@meyering.net>
77586
77587         * lib/linebreak.c: Remove trailing blanks.
77588         * lib/alloca_.h: Likewise.
77589         * lib/acosl.c: Likewise.
77590         * lib/euidaccess.c: Likewise.
77591         * lib/allocsa.h: Likewise.
77592
77593 2004-11-10  Simon Josefsson  <jas@extundo.com>
77594
77595         * m4/getaddrinfo.m4: New file.
77596
77597 2004-11-10  Simon Josefsson  <jas@extundo.com>
77598
77599         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77600
77601 2004-11-10  Simon Josefsson  <jas@extundo.com>
77602
77603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77604         getaddrinfo.
77605
77606         * modules/getaddrinfo: New file.
77607
77608 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77609
77610         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77611
77612 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * lib/mktime.c (SHR): New macro, which is a portable
77615         substitute for >> that should work even on Crays.
77616         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77617         Problem reported by Mark D. Baushke in
77618         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77619         * lib/getdate.y (SHR): Likewise.
77620         (tm_diff): Use it.
77621         * lib/strftime.c (SHR): Likewise.
77622         (tm_diff): Use it.
77623         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77624         quote_these_too, so that right shifts are well defined.  All uses
77625         changed.
77626
77627 2004-11-10  Jim Meyering  <jim@meyering.net>
77628
77629         Ensure that no close failure goes unreported.
77630         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77631         return early when it seems there's nothing to flush.
77632         Don't include __fpending.h.
77633
77634 2004-11-10  Jim Meyering  <jim@meyering.net>
77635
77636         * modules/closeout (Depends-on): Remove fpending.
77637
77638 2004-11-10  Jim Meyering  <jim@meyering.net>
77639
77640         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77641
77642 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77643
77644         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77645         gl_FUNC_STRFTIME.
77646         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77647         and AC_REQUIRE when possible, to avoid duplicate checks.
77648         Check for <wchar.h>.
77649
77650 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77653
77654 2004-11-09  Bruno Haible  <bruno@clisp.org>
77655
77656         * m4/sockpfaf.m4: New file.
77657
77658 2004-11-05  Bruno Haible  <bruno@clisp.org>
77659
77660         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77661         Reported by Mark D. Baushke <mdb@cvshome.org>.
77662
77663 2004-11-04  Bruno Haible  <bruno@clisp.org>
77664
77665         2004-09-11  Bruno Haible  <bruno@clisp.org>
77666                 * allocsa.valgrind: New file.
77667         2004-02-06  Bruno Haible  <bruno@clisp.org>
77668                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77669                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77670                 Reported by Christopher Seip <chris.seip@hp.com>.
77671
77672 2004-11-04  Bruno Haible  <bruno@clisp.org>
77673
77674         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77675         (Makefile.am): Distribute it.
77676
77677 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77680         with errno == ERANGE if the buffer is too small.
77681         Problem reported by Mark D. Baushke.
77682
77683 2004-11-03  Albert Chin  <china@thewrittenword.com>
77684             Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77687         equivalent, substitute $ac_type for equivalent type rather than
77688         blindly using uint32_t *always* which won't work if uint32_t is not
77689         available.  Define _UINT32_T to work around typedef of uint32_t if
77690         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77691         2.5.1.
77692
77693 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * m4/jm-macros.m4: Sync from coreutils.
77696         (gl_MACROS): Check for mbrlen, for pathchk.
77697         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77698
77699 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * lib/xreadlink.c (MAXSIZE): New macro.
77702         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77703         size does not exceed MAXSIZE.  Avoid cast.
77704         As suggested by Mark D. Baushke in
77705         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77706         if readlink fails with buffer size just under MAXSIZE, try again
77707         with MAXSIZE.
77708
77709 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77712
77713 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77714         and  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77717         (get_date): Overparenthesize to avoid GCC warning.
77718
77719 2004-11-02  Bruno Haible  <bruno@clisp.org>
77720
77721         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77722         returns void.
77723
77724 2004-11-02  Bruno Haible  <bruno@clisp.org>
77725
77726         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77727         function returns void.
77728
77729 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77732         fflush_unlocked, flockfile, funlockfile, funlockfile,
77733         fputs_unlocked, putc_unlocked.
77734
77735 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77736
77737         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77738         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77739         already declared.
77740
77741 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * modules/getdate (Files): Add doc/getdate.texi.
77744         (Depends-on): Add setenv, xalloc.
77745
77746 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * lib/getdate.y: Add support for TZ="foo" within a date string.
77749         Fix some bugs near time_t boundaries.  Reject dates with
77750         out-of-range components, e.g., "Sept 31".
77751         Include <stdlib.h>, "setenv.h", "xalloc.h".
77752         (ISDIGIT_LOCALE): Remove; unused.
77753         Note that the TZ and time functions used here are not reentrant.
77754         (mktime_ok, get_tz): New functions.
77755         (TZBUFSIZE): New constant.
77756         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77757         This requires that we sometimes generate our own TZ="XXX..." setting.
77758
77759 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77760
77761         * doc/getdate.texi: New file, from coreutils with modifications for
77762         the new TZ parsing.
77763
77764 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77765
77766         * lib/mktime.c (not_equal_tm): Remove redundant check.
77767
77768 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * modules/regex (lib_SOURCES): Add regex.c.
77771         Reported by James Youngman in
77772         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77773
77774 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77775
77776         * lib/getdate.y: Use Bison 1.875 features, and some minor
77777         code cleanups.  This change does not affect semantics.
77778         Don't include <stdlib.h>; no longer needed.
77779         Don't include unlocked-io.h; only the "#if TEST" code uses
77780         stdio, and performance isn't crucial there.
77781         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77782         Bison 1.875 features as described below.
77783         All uses of "PC." replaced by "pc->".
77784         (YYSTYPE): Add a forward declaration.
77785         (yylex, yyerror): Use full prototypes in forward decls.
77786         Use "%pure-parser" rather than obsolescent "%pure_parser".
77787         Use %parse-param and %lex-param instead of obsolescent
77788         YYPARSE_PARAM and YYLEX_PARAM.
77789         (meridian_table, month_and_day_table, time_units_table,
77790         relative_time_table, time_zone_table, military_table,
77791         lookup_zone, lookup_word, get_date):
77792         Use NULL instead of 0 where appropriate.
77793         (to_hour): Avoid abort (), to avoid a dependency on
77794         stdlib.h.
77795         (yyerror, yylex): Now accepts parser_control * arg.
77796         (main) [TEST]: Use '\0' rather than 0 for char.
77797
77798 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77801
77802 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77803
77804         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77805         It's now the caller's responsibility to handle the case where
77806         !HAVE_GETPAGESIZE && !defined getpagesize.
77807
77808         * lib/mktime.c (leapyear): Arg is long int, not int.
77809
77810 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77813
77814 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77815
77816         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77817         missing.  Problem reported by James Youngman.
77818
77819 2004-10-16  Simon Josefsson  <jas@extundo.com>
77820
77821         * gnulib-tool: Fix comments.  Fix parse problem.
77822         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77823
77824 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77825
77826         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77827         implementation of getopt_long.  Problem reported by Alexander Taler in:
77828         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77829
77830 2004-10-15  Bruno Haible  <bruno@clisp.org>
77831
77832         * gnulib-tool: Untabify. Initialize supplied_libname.
77833         (func_usage): More homogenous output.
77834         (func_modules_transitive_closure, func_modules_to_filelist,
77835         func_emit_lib_Makefile_am): New functions.
77836         (func_import): New function, extracted from big case statement. Use
77837         func_get_license, func_modules_transitive_closure,
77838         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77839         opt_lgpl. Don't use test -a, as it's not portable.
77840         (func_create_testdir): Use func_modules_transitive_closure,
77841         func_modules_to_filelist, func_emit_lib_Makefile_am.
77842
77843 2004-10-15  Bruno Haible  <bruno@clisp.org>
77844
77845         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77846
77847 2004-10-15  Bruno Haible  <bruno@clisp.org>
77848
77849         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77850         the portions belonging to each module.
77851         Suggested by Derek Robert Price <derek@ximbiot.com>.
77852
77853 2004-10-12  Simon Josefsson  <jas@extundo.com>
77854
77855         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77856         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77857         to real functions.
77858
77859 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77860
77861         * modules/vsnprintf: New file.
77862
77863 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77864
77865         * m4/vsnprintf.m4: New file.
77866
77867 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77868
77869         * lib/vsnprintf.h: New file.
77870         * lib/vsnprintf.c: New file.
77871
77872 2004-10-11  Bruno Haible  <bruno@clisp.org>
77873
77874         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
77875         vsnprintf.
77876
77877 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
77880
77881 2004-10-07  Bruno Haible  <bruno@clisp.org>
77882
77883         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
77884         fits into the provided buffer.
77885
77886 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * lib/diacrit.c, diacrit.h: Add GPL notice.
77889
77890         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
77891         notice.
77892         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
77893         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
77894         This avoids a potential constant-folding bug.
77895
77896 2004-10-05  Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
77899         for the declaration of strsep.
77900
77901 2004-10-05  Bruno Haible  <bruno@clisp.org>
77902
77903         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
77904
77905 2004-10-04  Simon Josefsson  <jas@extundo.com>
77906
77907         * modules/memmem: New file.
77908         * tests/test-memmem.c: New file.
77909         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
77910
77911 2004-10-04  Simon Josefsson  <jas@extundo.com>
77912
77913         * m4/memmem.m4: New file.
77914
77915 2004-10-04  Simon Josefsson  <jas@extundo.com>
77916
77917         * lib/memmem.h: New file.
77918         * lib/memmem.c: New file, taken from glibc.
77919
77920 2004-10-04  Simon Josefsson  <jas@extundo.com>
77921
77922         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77923         '#ifdef USE_UNLOCKED_IO'.
77924
77925 2004-10-04  Simon Josefsson  <jas@extundo.com>
77926
77927         * config/srclist.txt: Add memmem from glibc.
77928
77929 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77932
77933         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77934         modules/exclude, modules/getdate, modules/getline,
77935         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77936         modules/getusershell, modules/linebuffer, modules/md5,
77937         modules/mountlist, modules/posixtm, modules/readtokens,
77938         modules/readutmp, modules/regex, modules/sha1,
77939         modules/version-etc, modules/yesno:
77940         Remove dependency on unlocked-io.
77941
77942 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77943
77944         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77945
77946         * m4/unlocked-io.m4: Add copyright notice.
77947         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77948
77949 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77952         * lib/xmalloc.c (xmemdup): Likewise.
77953         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77954         XFREE): Remove these long-obsolescent macros.
77955         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77956         * lib/xstrdup.c: Remove.
77957
77958         * lib/regex.c (re_comp): Cast gettext return value to char *,
77959         Problem reported by Martin Neitzel via Mark D. Baushke.
77960
77961 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77964         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77965         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77966         regex.c, sha1.c, version-etc.c, yesno.c:
77967         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77968         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77969         the includer's responsibility.
77970
77971         Sync from coreutils.
77972
77973         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77974         points to the start of a string, as the C Standard says the
77975         resulting behavior is undefined.
77976
77977         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77978         simple -> simple_backups, numbered_existing ->
77979         numbered_existing_backups, numbered -> numbered_backups
77980         to avoid shadowing problems.  All uses changed.
77981         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77982         * lib/backupfile.c (check_extension, numbered_backup):
77983         Rename locals to avoid shadowing 'basename'.
77984         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77985         once.
77986
77987         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77988         * lib/.cvsignore: Add getopt.h.
77989
77990 2004-10-04  Bruno Haible  <bruno@clisp.org>
77991
77992         * modules/README: New file.
77993         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77994         not a module.
77995
77996 2004-10-02  Jim Meyering  <jim@meyering.net>
77997
77998         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77999
78000 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78001
78002         * modules/strsep: New file.
78003
78004 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78005
78006         * m4/strsep.m4: New file.
78007
78008 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78009
78010         * lib/strsep.h: New file.
78011         * lib/strsep.c: New file.
78012
78013 2004-10-01  Simon Josefsson  <jas@extundo.com>
78014
78015         * lib/snprintf.c (snprintf): Handle size==0.
78016
78017 2004-10-01  Simon Josefsson  <jas@extundo.com>
78018             Bruno Haible  <bruno@clisp.org>
78019
78020         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78021         (snprintf): Declare 'args'.
78022
78023 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         * lib/snprintf.c: Remove comments as to why each header is needed.
78026
78027 2004-10-01  Bruno Haible  <bruno@clisp.org>
78028
78029         * MODULES.html.sh: Add strsep.
78030
78031 2004-09-30  Simon Josefsson  <jas@extundo.com>
78032
78033         * modules/snprintf: New file.
78034
78035 2004-09-30  Simon Josefsson  <jas@extundo.com>
78036
78037         * m4/snprintf.m4: New file.
78038
78039 2004-09-30  Simon Josefsson  <jas@extundo.com>
78040
78041         * lib/snprintf.h, lib/snprintf.c: New files.
78042
78043 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78044
78045         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78046         (hol_entry_help): Never translate an empty string.
78047         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78048         * lib/argp.h (OPTION_NO_TRANS): New option.
78049
78050 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * modules/argp (Maintainer): Replace Simon Josefsson
78053         by Sergey Poznyakoff.
78054
78055 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78058         changes merged back into glibc.
78059
78060 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78061
78062         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78063
78064 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78065
78066         * lib/xvasprintf.c: Include xalloc.h.
78067         (xvasprintf): Use xalloc_die, not xmalloc_die.
78068
78069 2004-09-29  Bruno Haible  <bruno@clisp.org>
78070
78071         * modules/alloca-opt: New file, derived from modules/alloca.
78072         * modules/allocsa: Depend on alloca-opt instead of alloca.
78073         * modules/setenv: Likewise.
78074         * modules/vasnprintf: Likewise.
78075         * MODULES.html.sh: Add alloca-opt.
78076
78077 2004-09-28  Simon Josefsson  <jas@extundo.com>
78078
78079         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78080         LGPL, and to replace license template from GPL to LGPL.
78081
78082 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78083
78084         * modules/dummy: Change license to LGPL.
78085
78086 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78089
78090 2004-09-24  Simon Josefsson  <jas@extundo.com>
78091
78092         * modules/minmax (License): Change from GPL to LGPL.
78093
78094 2004-09-23  Simon Josefsson  <jas@extundo.com>
78095
78096         * gnulib-tool (--import): Typo.
78097
78098 2004-09-23  Simon Josefsson  <jas@extundo.com>
78099
78100         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78101
78102 2004-09-22  Bruno Haible  <bruno@clisp.org>
78103
78104         * modules/*: Add 'License' field.
78105         * gnulib-tool: Accept --extract-license option.
78106         (func_get_license): New function.
78107
78108 2004-09-21  Bruno Haible  <bruno@clisp.org>
78109
78110         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78111         Reported by Simon Josefsson.
78112
78113 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78114
78115         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78116         gl_AC_TYPE_LONG_LONG.
78117
78118 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78121
78122 2004-09-18  Simon Josefsson  <jas@extundo.com>
78123         and  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78126         calls with autoreconf.  Define GL_LIB.
78127
78128 2004-09-14  Karl Berry  <karl@gnu.org>
78129
78130         * config/srclist.txt: unsync setenv.c, sigh.
78131
78132 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78133
78134         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78135         Problem reported by Bruno Haible in:
78136         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78137
78138 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78139
78140         * config/srclist.txt: Comment out argp-pvh.c.
78141
78142 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78145         in case some system header has #define'd it.  Problem reported by
78146         Soeren D. Schulze in
78147         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78148
78149 2004-09-09  Karl Berry  <karl@gnu.org>
78150
78151         * regex.[ch]: delete from the root.  These were supposed to be
78152                 synced with emacs cvs, but this has not happened for about
78153                 a year, and anyway nothing else uses emacs regex.[ch].
78154                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78155                 lib/regex[.ch] is untouched.
78156
78157 2004-09-09  Bruno Haible  <bruno@clisp.org>
78158
78159         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78160
78161 2004-09-09  Bruno Haible  <bruno@clisp.org>
78162
78163         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78164         modifications.
78165         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78166
78167 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78168
78169         * modules/xvasprintf: New file.
78170         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78171
78172 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78173
78174         * lib/xvasprintf.h: New file.
78175         * lib/xvasprintf.c: New file.
78176         * lib/xasprintf.c: New file.
78177
78178 2004-09-08  Bruno Haible  <bruno@clisp.org>
78179
78180         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78181
78182 2004-09-08  Bruno Haible  <bruno@clisp.org>
78183
78184         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78185         length is > INT_MAX.
78186         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78187         more.
78188
78189 2004-09-08  Bruno Haible  <bruno@clisp.org>
78190
78191         * lib/stdint_.h: New file, taken from GNU clisp.
78192
78193 2004-09-08  Bruno Haible  <bruno@clisp.org>
78194             Oskar Liljeblad  <oskar@osk.mine.nu>
78195
78196         * modules/stdint: New file.
78197         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78198
78199 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         Import from coreutils.
78202         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78203         strings on unbounded length.  alloca's performance benefits aren't
78204         that important here.
78205         (V_STRDUP): Remove.
78206         (parse_with_separator): New function, with most of the internals
78207         of the old parse_user_spec.  Allow user to omit both user and group,
78208         for compatibility with FreeBSD.
78209         Clone only the user name, not the entire spec.
78210         Do not set *uid, *gid unless entirely successful.
78211         Avoid memory leak in some failing cases.
78212         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78213         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78214         (parse_user_spec): Rewrite to use parse_with_separator.
78215
78216 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78217
78218         * modules/userspec: Don't depend on alloca.
78219
78220 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78221
78222         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78223
78224 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78227         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78228         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78229
78230 2004-08-16  Simon Josefsson  <jas@extundo.com>
78231
78232         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78233         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78234         Add --dry-run for --import.
78235         Let user provided command line parameters override configure.ac
78236         settings.
78237
78238 2004-08-12  Simon Josefsson  <jas@extundo.com>
78239
78240         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78241         as discussed with Paul Eggert in threads rooted at
78242         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78243         and
78244         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78245         Before, the test was empty, and relied on ELIDE_CODE in source
78246         code.)
78247         (gl_PREREQ_GETOPT): New macro.
78248         (gl_GETOPT): Use them.
78249
78250 2004-08-12  Simon Josefsson  <jas@extundo.com>
78251
78252         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78253         * lib/getopt_.h: Renamed from getopt.h.
78254
78255 2004-08-12  Simon Josefsson  <jas@extundo.com>
78256
78257         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78258         Change default library name from libfoo to libgnu.
78259         Now, if you have a configure.ac that says:
78260                 gl_SOURCE_BASE(gl)
78261                 gl_M4_BASE(gl/m4)
78262                 gl_MODULES(error getopt etcetera)
78263                 gl_INIT
78264         you can import all you need by running:
78265                 ../gnulib/gnulib-tool --import
78266
78267         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78268         (Makefile.am): Rewrite, use logic from argz.
78269         (Include): Use <getopt.h> instead of "getopt.h".
78270
78271 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * modules/argp (Files): Add m4/unlocked-io.m4.
78274         (Depends-on): Add extensions.
78275
78276 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78277
78278         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78279         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78280         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78281         Check for program_invocation_name, program_invocation_short_name,
78282         flockfile, funlockfile, features.h, _getopt_long_only_r.
78283
78284 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78287         its complicated substitute.
78288         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78289         and program_invocation_name.
78290         (__argp_basename) [!_LIBC]: Remove; the only use was
78291         replaced by its body.
78292         (__argp_short_program_name): Change condition from
78293         !defined __argp_short_program_name to
78294         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78295         to match argp-namefrob.h.
78296         (__argp_failure): Don't assume strerror_r returns char *.
78297         * lib/argp-parse.c (N_): Define unconditionally.
78298         (argp_default_options): Fill out initializers with 0 to avoid
78299         gcc warnings.
78300
78301 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78302
78303         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78304         getopt1.c.
78305
78306 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         Merge from coreutils.
78309
78310         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78311
78312         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78313         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78314
78315 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78316
78317         Merge from coreutils.
78318
78319         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78320         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78321         for Reliant Unix 5.43.
78322
78323         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78324         (union fooround): Use uintmax_t, not long int.
78325         The rest is a merge from libc:
78326         [defined _LIBC]: Include <shlib-compat.h>.
78327         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78328
78329         * lib/settime.c (settime): Recode to avoid warning with
78330         Sun Forte C 6U2.
78331
78332         * lib/strverscmp.c: Convert to UTF-8.
78333
78334 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78337         m4/uintmax_t.m4.
78338
78339 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78340
78341         * modules/xalloc-die: New file.
78342         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78343
78344         * modules/md5 (Files): Add m4/uint32_t.m4.
78345         * modules/sha1: Renamed from modules/sha.
78346         (Files):
78347         Rename lib/sha.h to lib/sha1.h.
78348         Rename lib/sha.c to lib/sha1.c.
78349         Rename m4/sha.m4 to m4/sha1.m4.
78350         (lib_SOURCES): Likewise.
78351         (configure.ac): Rename gl_SHA to gl_SHA1.
78352         (Include): sha.h -> sha1.h.
78353
78354 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78357         * m4/sha1.m4: Renamed from sha.m4.
78358         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78359
78360 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78361
78362         * lib/obstack.h (obstack_empty_p):
78363         Don't assume that chunk->contents is suitably aligned.
78364         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78365         Likewise. Problem reported by Benno in
78366         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78367
78368         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78369         readable.  This could be improved further but it'd take some work.
78370
78371 2004-08-08  Simon Josefsson  <jas@extundo.com>
78372
78373         * modules/xgethostname (Depends-on): Remove exit and error (not
78374         used).
78375
78376         * modules/getpass-gnu: Add getpass.h.
78377         (Depends-on): Add stdbool.
78378         * modules/getpass: Add getpass.h.
78379
78380 2004-08-08  Simon Josefsson  <jas@extundo.com>
78381
78382         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78383         Check getpass declaration.
78384
78385 2004-08-08  Simon Josefsson  <jas@extundo.com>
78386
78387         * lib/xgethostname.c: Don't include error.h (not used).
78388
78389         * lib/getpass.h: Add.
78390         * lib/getpass.c: Include getpass.h first.
78391
78392 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78393
78394         * lib/xalloc-die.c: New file.
78395         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78396         All uses removed.
78397         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78398         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78399         xalloc-die.c.
78400         (_, N_, xalloc_die): Move to xalloc-die.c.
78401         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78402         so that we needn't mess with xalloc_msg_memory_exhausted.
78403
78404         * lib/sha1.h: Renamed from sha.h.
78405         (SHA1_H): Renamed from _SHA_H.
78406         (sha1_ctx): Renamed from sha_ctx.
78407         (sha1_init_ctx): Renamed from sha_init_ctx.
78408         (sha1_process_block): Renamed from sha_process_block.
78409         (sha1_process_bytes): Renamed from sha_process_bytes.
78410         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78411         (sha1_read_ctx): Renamed from sha_read_ctx.
78412         (sha1_stream): Renamed from sha_stream.
78413         (sha1_buffer): Renamed from sha_buffer.
78414         * lib/sha1.c: Likewise; renamed from sha.c.
78415         Do not include <sys/types.h>.
78416         Include <stddef.h> rather than <stdlib.h>.
78417
78418 2004-08-08  Bruno Haible  <bruno@clisp.org>
78419
78420         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78421         FILESYSTEM_PREFIX_LEN.
78422         * lib/progreloc.c: Likewise.
78423         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78424
78425 2004-08-06  Simon Josefsson  <jas@extundo.com>
78426
78427         * modules/progname (Depends-on): Don't depend on stdbool.
78428
78429 2004-08-06  Simon Josefsson  <jas@extundo.com>
78430
78431         * modules/getsubopt: New file.
78432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78433         getsubopt.
78434
78435 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78436
78437         More merge from coreutils.
78438
78439         * m4/utimens.m4, m4/utimecmp.m4: New files.
78440         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78441         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78442         prereq.m4, sha.m4: Import changes from coreutils.
78443
78444 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         More merge from coreutils.
78447         * modules/raise, modules/readtokens0, modules/utimens:
78448         * modules/utimecmp, module/xnanosleep: New files.
78449         * modules/strftime: Add lib/strftime.h.
78450         Change include from <time.h> to "strftime.h".
78451         * modules/yesno: Add lib/yesno.h.
78452         * modules/backupfile: Remove lib/addext.c.
78453         * modules/euidaccess: Add stat-macros.h.
78454         * modules/canonicalize, modules/euidaccess,
78455         modules/filemode, modules/lchown, modules/makepath,
78456         modules/rmdir, modules/stat: Likewise.
78457
78458 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         Merge from tar.
78461         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78462         SIZE_MAX is a valid preprocessor constant.
78463         (__argp_basename): Change from "#ifndef _LIBC"
78464         to "#ifndef __argp_short_program_name", so that
78465         we don't compile these functions for tar.
78466
78467         More merges from coreutils.
78468         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78469         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78470         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78471         * lib/addext.c: Remove; no longer needed.
78472         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78473         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78474         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78475         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78476         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78477         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78478         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78479         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78480         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78481         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78482         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78483         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78484         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78485         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78486         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78487         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78488         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78489         Import changes from coreutils.
78490
78491 2004-08-05  Simon Josefsson  <jas@extundo.com>
78492
78493         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78494
78495 2004-08-05  Simon Josefsson  <jas@extundo.com>
78496
78497         * m4/getsubopt.m4: New file.
78498
78499 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         Merge from coreutils.
78502
78503         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78504         * m4/getcwd-path-max.m4: New files.
78505
78506         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78507         FILESYSTEM_PREFIX_LEN ->
78508         FILE_SYSTEM_PREFIX_LEN.
78509         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78510         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78511         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78512         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78513
78514         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78515         prerequisite modules now handle the DOS stuff.
78516         Don't check for unistd.h.
78517
78518 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         Merge from coreutils.
78521
78522         * lib/.gdb-history: Remove; this doesn't belong here.
78523
78524         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78525         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78526         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78527         * lib/getcwd.c: New files.
78528
78529         * lib/dirname.h: Include <stdbool.h>.
78530         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78531         for consistency with POSIX terminology.  All uses changed.
78532         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78533         (strip_trailing_slashes): Use bool for booleans.
78534         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78535
78536         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78537         sometimes returns a positive errno value even when it succeeds.
78538         (print_errno_message) [!LIBC]: Fall back on strerror if
78539         __strerror_r fails.
78540
78541         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78542         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78543         (longest_relative_suffix): New function.
78544         (path_concat): Use it.  Assume first argument is not NULL.
78545         Port to DOS.  Omit redundant separators.
78546         Report an error instead of returning NULL.
78547         Use mempcpy instead of memcpy.
78548         (xpath_concat): Remove: not declared or used.
78549
78550         * lib/same.h: Include <stdbool.h>
78551         (same_name): Return bool, not int.
78552         * lib/same.c (same_name): Likewise.
78553         (errno): Don't declare; we assume C89 or better now.
78554
78555         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78556         if not already defined.
78557
78558         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78559         * lib/dup-safer.c (errno): Likewise.
78560
78561 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78562
78563         Merge from coreutils.
78564         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78565         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78566         * modules/path-concat: Don't depend on strdup.
78567
78568 2004-08-03  Simon Josefsson  <jas@extundo.com>
78569
78570         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78571         * lib/progname.h: Don't include stdbool.h.
78572
78573 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78576         * MODULES.html.sh (func_all_modules): Remove fatal.
78577
78578 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78581
78582 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78585         working.
78586
78587 2004-08-02  Simon Josefsson  <jas@extundo.com>
78588
78589         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78590         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78591         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78592
78593 2004-08-01  Simon Josefsson  <jas@extundo.com>
78594
78595         * lib/xgetdomainname.c: Include stdlib.h, for free().
78596
78597 2004-07-19  Bruno Haible  <bruno@clisp.org>
78598
78599         * MODULES.html.sh (func_all_modules): Add dummy.
78600
78601 2004-07-16  Simon Josefsson  <jas@extundo.com>
78602
78603         * modules/dummy: New file.
78604
78605 2004-07-16  Simon Josefsson  <jas@extundo.com>
78606
78607         * lib/dummy.c: New file.
78608
78609 2004-07-16  Bruno Haible  <bruno@clisp.org>
78610
78611         * lib/backupfile.h: Add extern "C" for C++.
78612         * lib/closeout.h: Likewise.
78613         * lib/copy-file.h: Likewise.
78614         * lib/findprog.h: Likewise.
78615         * lib/full-write.h: Likewise.
78616         * lib/pathname.h: Likewise.
78617         * lib/progname.h: Likewise.
78618         * lib/stpcpy.h: Likewise.
78619         * lib/stpncpy.h: Likewise.
78620         * lib/strcase.h: Likewise.
78621         * lib/strstr.h: Likewise.
78622         * lib/xalloc.h: Likewise.
78623
78624         * lib/mbswidth.h: Add extern "C" for C++.
78625         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78626
78627 2004-07-13  Robert Millan  <robertmh@gnu.org>
78628
78629         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78630
78631 2004-07-09  Simon Josefsson  <jas@extundo.com>
78632
78633         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78634         failed without this.)
78635
78636 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * modules/chown (Files): Add lib/fchown-stub.c, since
78639         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78640
78641 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * lib/fchown-stub.c: New file.
78644
78645 2004-06-24  Jim Meyering  <jim@meyering.net>
78646
78647         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78648
78649 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * modules/argz: Omit "#include".
78652
78653         * MODULES.html.sh (func_all_modules): Add calloc, to match
78654         2004-06-01 addition of calloc module.
78655
78656 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * m4/argz.m4: New file, which is autoupdated from libtool.
78659
78660 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78663         libtool.
78664
78665 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * config/srclist-update: Don't insist on "USA." before the
78668         close-comment, as libtool omits the period and puts the */ on a
78669         separate line.
78670         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78671         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78672
78673 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78674
78675         * modules/argz: New file.
78676         * MODULES.html.sh (func_all_modules): Add argz.
78677
78678 2004-06-12  Jim Meyering  <jim@meyering.net>
78679         and  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * modules/hash (Files): Add lib/xalloc.h.
78682         * modules/pipe (Depends-on): Add wait-process.
78683         * modules/stat (Depends-on): Add xalloc.
78684         * modules/userspec (Files): Add lib/userspec.h.
78685         * modules/xstrto
78686
78687         Upgrade from gettext-0.13.
78688         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78689         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78690         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78691
78692 2004-06-10  Jim Meyering  <jim@meyering.net>
78693
78694         * lib/calloc.c: New file.
78695
78696 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78697
78698         * lib/getdate.y (yylex): Allow space between sign and number.
78699         Problem reported by Dan Jacobson.
78700
78701 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         Merge from coreutils CVS.
78704
78705         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78706         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78707         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78708         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78709         xstrtol.m4: Fix copyright date and/or serial number.
78710
78711         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78712         See if we need an fchown replacement.
78713         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78714         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78715         and use the replacement function if we detect either defect.
78716
78717         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78718         gl_UTIMECMP.
78719
78720 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78721         and  Jim Meyering  <jim@meyering.net>
78722
78723         Merge from coreutils CVS.
78724
78725         * lib/stat-macros.h: New file, with contents from file-type.h
78726         and coreutils' system.h.
78727         * lib/file-type.c: Include "stat-macros.h".
78728         * lib/file-type.h (file_type): Move all macro definitions to new file,
78729         stat-macros.h.
78730
78731         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78732         Wrap old code with this conditional.
78733         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78734         function that does not dereference symlinks.
78735         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78736
78737         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78738         dependency problems.
78739         (xreadlink): Accept new arg SIZE, for efficiency.
78740         All decls and uses changed.
78741         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78742
78743         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78744         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78745
78746         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78747         sysexits.h.
78748
78749 2004-06-01  Jim Meyering  <jim@meyering.net>
78750
78751         * m4/calloc.m4: New file.
78752
78753 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78756         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78757         Also, fix a typo in a diagnostic.
78758
78759 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78762         or AC_FUNC_REALLOC.
78763
78764 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78765
78766         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78767         macros to be defined.
78768         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78769         the allocator returns NULL because the requested size is zero.
78770
78771 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78774         var.  Add comment explaining why libc still defines it.  This
78775         merges the following patch from glibc:
78776         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78777
78778 2004-05-20  Andreas Schwab  <schwab@suse.de>
78779
78780         * m4/free.m4: Replace free if it not known to work, not the other
78781         way round.
78782
78783 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78786         present in glibc since revision 1.1 of this file.
78787         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78788         obstack_alignment_mask, obstack_alloc, obstack_base,
78789         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78790         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78791         obstack_grow0, obstack_init, obstack_int_grow,
78792         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78793         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78794         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78795         nonexistent functions.
78796
78797 2004-05-18  Karl Berry  <karl@gnu.org>
78798
78799         * config/srclist.txt: break link for vasnprintf.c.
78800
78801 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         Port obstack to the AS/400, where pointers are 16 bytes wide and
78804         you cannot cast an integer to a valid pointer.  This patch is
78805         currently waiting to be integrated into glibc; see
78806         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78807
78808         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78809         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78810         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78811         (struct obstack): temp member is now a union of a pointer and
78812         an integer, instead of an integer.  All integer uses changed.
78813         This does not affect the physical layout of struct obstack,
78814         except on hosts (like the AS/400) where the size or alignment of
78815         void * is greater than that of ptrdiff_t.
78816         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78817         __STDC__)]: Store temporary in pointer member of union, not
78818         integer member.
78819         * lib/obstack.c: Include <stddef.h>, for offsetof.
78820         (struct fooalign): Remove; it doesn't need a name.
78821         (union fooround): Change double to long double, and add void *.
78822         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78823         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78824         not a macro.  Hence the values are always int; so remove all
78825         casts-to-int in uses.
78826
78827 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78828
78829         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78830         we can get this patch merged into glibc.
78831
78832 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78833             Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * m4/argp: Depend on alloca.
78836
78837 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78838             Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78841         freecoding.
78842
78843 2004-05-17  Bruno Haible  <bruno@clisp.org>
78844
78845         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78846         precision that consists of a '.' followed by an empty digit string.
78847         Patch by Tor Lillqvist <tml@iki.fi>.
78848
78849 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78852         for backward compatibility with older code.  We need our own
78853         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78854         it under some other name, and our alloca.h will define it.
78855
78856 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78857             Derek Price  <derek@ximbiot.com>
78858
78859         * lib/alloca.c: Include <alloca.h>, to get our interface.
78860         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78861         include <alloca.h> first.  Use C89 prototype for alloca; this
78862         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78863         Use #elif for simplicity, since we can assume C89 now.
78864         Don't try to source the system alloca.h since it will not be found
78865         and to prevent recursively including its replacement.
78866         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78867         * lib/regex.c: Likewise.
78868
78869 2004-05-16  Derek Price  <derek@ximbiot.com>
78870             Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         getline cleanup.  This changes the getndelim2 API: both order of
78873         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
78874         no delimiter).
78875
78876         * lib/getline.c: Don't include stddef.h or stdio.h, since our
78877         interface does that.
78878         (getline): Always use getdelim, so that we don't have two
78879         copies of this code.
78880         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
78881         if available.
78882         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
78883         (GETNDELIM2_MAXIMUM): New macro.
78884         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
78885         instead of the old practice of delim2==0.  All callers changed.
78886         Return -1 on overflow, instead of returning junk.
78887         Do not set *linesize unless allocation succeeds.
78888         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
78889         that we include sys/types.h.
78890         * lib/getnline.h: Likewise.
78891         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
78892         (getndelim2): Reorder arguments.
78893         * lib/getnline.c (getnline, getndelim):
78894         Don't discard the NMAX argument.
78895         (getnline): Invoke getndelim, to avoid code duplication.
78896         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
78897         of (size_t) -1 by callers of the getnline family.
78898
78899 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78900
78901         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
78902         Check for gettimeofday.
78903         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
78904         Check for settimeofday, stime.
78905
78906 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * lib/nanosleep.c (suspended): Change its type from int to
78909         sig_atomic_t volatile.
78910         (first_call): Make it private to rpl_nanosleep, and have it
78911         be zero initially as that's a bit faster.
78912         (my_usleep): Round up fractional times instead of truncating them,
78913         as this is the usual meaning for 'sleep'.
78914
78915         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78916         doesn't work.
78917         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78918         (ENOSYS): Define if not defined.
78919         (settime): Fall back on stime if it exists and settimeofday fails.
78920         But don't bother with fallbacks if a method fails with errno == EPERM.
78921
78922 2004-05-11  Jim Meyering  <jim@meyering.net>
78923
78924         Prior to this change, the save_cwd caller required read access to the
78925         current directory on most systems (ones with the fchdir function).
78926
78927         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78928         fails, try write-only, and finally, resort to using xgetcwd.
78929
78930 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * lib/obstack.c, obstack.h: Import changes from libc.
78933
78934 2004-04-28  Bruno Haible  <bruno@clisp.org>
78935
78936         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78937         also implicitly appends .exe to executables.
78938         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78939         accepts Windows pathnames.
78940         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78941         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78942         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78943         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78944         Reported by Derek Robert Price <derek@ximbiot.com>.
78945
78946 2004-04-21  Karl Berry  <karl@gnu.org>
78947
78948         * config/srclist.txt (localcharset.c): break sync.
78949
78950 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78951
78952         * m4/host-os.m4: Add a copyright notice.
78953
78954 2004-04-20  Jim Meyering  <jim@meyering.net>
78955
78956         Change UTILS_ to gl_ in AC_DEFINE'd names.
78957         Change utils_- and jm_-prefixed variables, too.
78958         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78959         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78960         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78961
78962         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78963         Don't emit trailing blanks.
78964         Also rename jm_-prefixed variables to have gl_ prefix.
78965
78966         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78967         Also rename jm_-prefixed variables to have gl_ prefix.
78968
78969         * m4/jm-macros.m4: Reflect the renamings.
78970         * m4/prereq.m4: Likewise.
78971
78972 2004-04-20  Jim Meyering  <jim@meyering.net>
78973
78974         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78975         memory.
78976
78977 2004-04-20  Jim Meyering  <jim@meyering.net>
78978             Bruno Haible  <bruno@clisp.org>
78979
78980         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78981         memory when realloc fails.
78982
78983 2004-04-19  Jim Meyering  <jim@meyering.net>
78984
78985         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78986         now that readutmp.c may call `free (0)'.
78987
78988 2004-04-19  Bruno Haible  <bruno@clisp.org>
78989
78990         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78991         * m4/inttypes_h.m4: Likewise.
78992         * m4/stdint_h.m4: Likewise.
78993         * m4/intmax_t.m4: Likewise.
78994         * m4/uintmax_t.m4: Likewise.
78995
78996 2004-04-18  Jim Meyering  <jim@meyering.net>
78997
78998         * m4/prereq.m4: Don't forbid jm_ prefix.
78999
79000         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79001         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79002         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79003         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79004         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79005         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79006         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79007         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79008         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79009         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79010         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79011         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79012         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79013         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79014         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79015         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79016         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79017         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79018         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79019
79020 2004-04-18  Jim Meyering  <jim@meyering.net>
79021
79022         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79023         failure, don't leak memory and do call END_UTMP_ENT.
79024
79025 2004-04-16  Jim Meyering  <jim@meyering.net>
79026
79027         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79028         coreutils' stat program.
79029         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79030
79031 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79032
79033         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79034         C89.
79035         (CHAR_BIT): Remove, since we assume C89.
79036         Include <stdint.h> if available, as per current Autoconf CVS advice.
79037
79038 2004-03-31  Jim Meyering  <jim@meyering.net>
79039
79040         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79041         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79042         * m4/xalloc.m4: Likewise.
79043
79044 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79045
79046         Merge from coreutils.
79047
79048         * m4/inttostr.m4: New file.
79049         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79050         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79051         Require gl_CLOCK_TIME.
79052         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79053
79054 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79055
79056         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79057         not bool, to be more consistent with Unix conventions.
79058         Suggested by Bruno Haible.
79059
79060         Merge from coreutils.
79061
79062         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79063         * lib/umaxtostr.c: New files.
79064
79065         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79066         the usual <time.h> dance.
79067         (get_date): Change signature to support fractional time stamps.
79068         All callers changed.
79069         * lib/getdate.y: Include "getdate.h" first, as we can now
79070         assume C89 and don't need to worry about 'const'.
79071         Similarly, include "unlocked-io.h" near start, not in middle.
79072         Include <limits.h>.
79073         (textint.value): Use long int rather than int.
79074         (textint.digits): Use size_t rather than int.
79075         (BILLION, LOG10_BILLION): New constants.
79076         (parser_control): New member rel_ns.  Members day_ordinal,
79077         time_zone, month, day, hour, minutes, rel_year, rel_month,
79078         rel_day, rel_hour, rel_minutes, rel_seconds
79079         are now long int, not int.  Member seconds is now struct timespec,
79080         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79081         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79082         not int.
79083         (%union.intval): Now long int, not int.
79084         New member timespec.
79085         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79086         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79087         (spec): Now is a timespec or an item list.
79088         (timespec, items): New nonterminals.
79089         (time, rel, relunit, number, get_date):
79090         Add support for fractional seconds.
79091         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79092         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79093         (to_hour): First arg is now long int, not int.
79094         (to_year): Returns long int, not int.
79095         Don't treat year -70 like 70.
79096         (tm_diff): Returns long int, not int.
79097         (lookup_word): Use bool instead of int when appropriate.
79098         (yylex): Use size_t for count, not int.
79099         Detect overflow when parsing large integer constants.
79100         Add support for fractions.
79101         (get_date): Make pointers 'const' if possible.
79102         Use more-portable code to detect integer overflow.
79103         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79104         Don't use ctime; it's not reliable if the year has >4 digits.
79105
79106         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79107         This is for compatibility with BSD.
79108
79109         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79110         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79111         From coreutils' system.h.
79112
79113         * lib/userspec.c: Don't include "posixver.h".
79114         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79115         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79116         compatible extension.  Simplify code by removing a boolean int
79117         that was always nonzero if a string was nonnull.
79118
79119 2004-03-30  Jim Meyering  <jim@meyering.net>
79120
79121         Merge from coreutils.
79122
79123         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79124         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79125         on some systems one must include <grp.h> before it.
79126         Reported by Christian Krackowizer.
79127
79128 2004-03-30  Jim Meyering  <jim@meyering.net>
79129
79130         Merge from coreutils.
79131
79132         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79133
79134         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79135         an empty input stream.
79136
79137         * lib/readtokens.c: Include <stdbool.h>.
79138         (readtoken): Use `size_t' rather than int/long.
79139         All callers adjusted.
79140         Use `bool' rather than `int' where appropriate.
79141         Use memset rather than an explicit loop.
79142         Use x2nrealloc rather than xrealloc.
79143         Allow the use of `\0' as a delimiter.
79144         (readtokens): Likewise.
79145         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79146
79147 2004-03-30  Jim Meyering  <jim@meyering.net>
79148
79149         * m4/realloc.m4: Remove file, since now it does no more than
79150         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79151         the `configure.ac' section of module/realloc.
79152         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79153
79154 2004-03-30  Bruno Haible  <bruno@clisp.org>
79155
79156         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79157         nonnull.
79158
79159 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79160
79161         Merge changes to getloadavg.c from coreutils and Emacs.
79162
79163         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79164         Define to an expression, not to the empty string.
79165         Include cloexec.h and xalloc.h.
79166         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79167         Use set_cloexec_flag rather than rolling our own.
79168         * lib/cloexec.c, lib/cloexec.h: New files.
79169
79170 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79171
79172         * m4/cloexec.m4: New file.
79173
79174 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79175
79176         * lib/getopt.h: Sync with libc CVS.
79177
79178 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79179             Bruno Haible  <bruno@clisp.org>
79180
79181         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79182         mbswidth.
79183
79184 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79185             Bruno Haible  <bruno@clisp.org>
79186
79187         * lib/mbswidth.h: Include <wchar.h> only if
79188         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79189         <wchar.h>.
79190         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79191
79192 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79193
79194         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79195         Sync with libc CVS.
79196         * lib/getopt_int.h: New file, also synced from libc.
79197
79198 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79199
79200         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79201         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79202         Bring back getopt.c, getopt.h, getopt1.c.
79203
79204 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79205
79206         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79207         All uses changed.  Check for sa_sigaction member; this fixes
79208         a bug first reported by Jason Andrade in
79209         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79210
79211 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79212
79213         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79214         '#if' expressions.  Unlike the code it replaces, it does not
79215         depend on (defined _SC_PAGESIZE).  However, it does depend on
79216         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79217         first reported by Jason Andrade in
79218         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79219
79220 2004-02-25  Simon Josefsson  <jas@extundo.com>
79221
79222         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79223
79224 2004-02-25  Simon Josefsson  <jas@extundo.com>
79225
79226         * lib/strdup.h: New file.
79227         * lib/strdup.c: Include it.
79228         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79229         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79230
79231 2004-02-23  Karl Berry  <karl@gnu.org>
79232
79233         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79234         (from fencepost.gnu.org:/gd/gnuorg).
79235
79236 2004-02-23  Karl Berry  <karl@gnu.org>
79237
79238         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79239         * config/srclist.txt: add maintain/standards documents.
79240
79241 2004-02-18  Bruno Haible  <bruno@clisp.org>
79242
79243         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79244         Reported by Derek Robert Price <derek@ximbiot.com>.
79245
79246 2004-02-16  Karl Berry  <karl@gnu.org>
79247
79248         * config/mkinstalldirs, install-sh: update from automake.
79249
79250 2004-02-06  Karl Berry  <karl@gnu.org>
79251
79252         * m4/po.m4: update from gettext 0.14.1.
79253
79254 2004-02-06  Karl Berry  <karl@gnu.org>
79255
79256         * lib/config.charset: update from gettext 0.14.1.
79257
79258 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79259
79260         Add comments and code, prompted by suggestions from Bruno Haible
79261         for sh-quote.
79262         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79263         describing the enum quoting_style values.
79264         * lib/quotearg.c (quotearg_alloc): New function.
79265         (quotearg_buffer_restyled): Treat lone { and } as special.
79266         Treat = as special.  Work around bug with older shells
79267         that "see" a '\' that is really the 2nd byte of a multibyte char.
79268         Quote empty string with shell_quoting_style.
79269
79270 2004-02-03  Bruno Haible  <bruno@clisp.org>
79271
79272         * m4/pipe.m4: New file, from GNU gettext.
79273
79274 2004-02-03  Bruno Haible  <bruno@clisp.org>
79275
79276         * lib/pipe.h: New file, from GNU gettext.
79277         * lib/pipe.c: New file, from GNU gettext.
79278
79279 2004-01-27  Bruno Haible  <bruno@clisp.org>
79280
79281         * m4/execute.m4: New file, from GNU gettext.
79282
79283 2004-01-27  Bruno Haible  <bruno@clisp.org>
79284
79285         * lib/execute.h: New file, from GNU gettext.
79286         * lib/execute.c: New file, from GNU gettext.
79287         * lib/w32spawn.h: New file, from GNU gettext.
79288
79289 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79290
79291         Merge from diffutils.
79292
79293         * lib/file-type.c (file_type): Add typed memory objects.
79294         * lib/file-type.h (S_TYPEISTMO): New macro.
79295
79296         * lib/c-stack.h (c_stack_action): Remove argv argument.
79297         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79298         (die): Don't calculate message unless segv_action returns.
79299         (get_stack_location, min_address_from_argv, max_address_from_argv,
79300         volatile stack_base, volatile_stack_size): Remove.
79301         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79302         that every segmentation violation is a stack overflow.  (Ouch!)
79303         See Debian bug 136249 (still outstanding) for more info about why
79304         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79305
79306 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79307
79308         Exit-status fix from coreutils.
79309
79310         Use exit_failure consistently in place of EXIT_FAILURE,
79311         so that program exit statuses are consistent on failure.
79312
79313         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79314         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79315         * lib/argmatch.h: Comment fix to match the above.
79316         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79317         Now a macro referring to exit_failure, instead of a separate
79318         variable.  Include "exitfail.h" to get it.
79319         * lib/xstrtol.h: Include "exitfail.h".
79320         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79321
79322         * lib/long-options.c (parse_long_options): Use prototype
79323         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79324         for clarity.
79325
79326 2004-01-21  Jim Meyering  <jim@meyering.net>
79327
79328         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79329         so as not to conflict with a different-sized __mktime_internal
79330         function in GNU libc.
79331         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79332         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79333
79334 2004-01-20  Karl Berry  <karl@gnu.org>
79335
79336         * config/config.guess: update from config.
79337
79338         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79339
79340 2004-01-20  Bruno Haible  <bruno@clisp.org>
79341
79342         Safer stack allocation.
79343         * lib/setenv.c: Include allocsa.h.
79344         (alloca): Remove fallback definition.
79345         (freea): Remove macro.
79346         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79347         instead of freea.
79348
79349 2004-01-20  Bruno Haible  <bruno@clisp.org>
79350
79351         * m4/eealloc.m4: New file, from GNU gettext.
79352
79353 2004-01-20  Bruno Haible  <bruno@clisp.org>
79354
79355         * m4/allocsa.m4: New file, from GNU gettext.
79356
79357 2004-01-20  Bruno Haible  <bruno@clisp.org>
79358
79359         * lib/xallocsa.h: New file, from GNU gettext.
79360         * lib/xallocsa.c: New file, from GNU gettext.
79361
79362 2004-01-20  Bruno Haible  <bruno@clisp.org>
79363
79364         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79365
79366 2004-01-20  Bruno Haible  <bruno@clisp.org>
79367
79368         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79369         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79370         specially.
79371
79372 2004-01-20  Bruno Haible  <bruno@clisp.org>
79373
79374         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79375         patch.
79376
79377 2004-01-20  Bruno Haible  <bruno@clisp.org>
79378
79379         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79380
79381 2004-01-20  Bruno Haible  <bruno@clisp.org>
79382
79383         * lib/eealloc.h: New file.
79384
79385 2004-01-20  Bruno Haible  <bruno@clisp.org>
79386
79387         * lib/binary-io.h: Avoid warnings on Cygwin.
79388
79389 2004-01-20  Bruno Haible  <bruno@clisp.org>
79390
79391         * lib/allocsa.h: New file, from GNU gettext.
79392         * lib/allocsa.c: New file, from GNU gettext.
79393
79394 2004-01-18  Karl Berry  <karl@gnu.org>
79395
79396         * doc/gpl.texi, doc/lgpl.texi: new files.
79397
79398 2004-01-18  Karl Berry  <karl@gnu.org>
79399
79400         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79401         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79402
79403 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79404
79405         Merge from coreutils.
79406
79407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79408         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79409         (gl_DEFAULT_POSIX2_VERSION): Move
79410         the documentation from 'configure' into 'config.hin',
79411         so that 'configure --help' isn't burdened by it and
79412         we don't have to worry about its formatting there.
79413         Reword the documentation so that it's more succinct
79414         and can be run together into a single paragraph.
79415         * m4/same.m4 (gl_SAME): Check for pathconf.
79416
79417 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79418
79419         Merge from coreutils.
79420
79421         * lib/posixver.c: Include posixver.h.
79422
79423         * lib/same.c: Include <stdbool.h>, <limits.h>.
79424         (_POSIX_NAME_MAX): Define if not defined.
79425         (MIN): New macro.
79426         (same_name): If file names are silently truncated, report
79427         that the file names are the same if they are the same after
79428         the silent truncation.
79429
79430         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79431         conversion function.
79432         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79433         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79434         longer needed.
79435
79436 2004-01-15  Jim Meyering  <jim@meyering.net>
79437
79438         Merge from coreutils.
79439
79440         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79441         if no library is required.
79442         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79443         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79444         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79445         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79446         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79447         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79448         value, $ac_cv_search_crypt, if it's "none required".
79449         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79450         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79451         not gl_FUNC_GETLOADAVG.
79452         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79453         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79454
79455 2004-01-15  Jim Meyering  <jim@meyering.net>
79456
79457         Merge from coreutils.
79458
79459         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79460         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79461         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79462
79463         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79464         optional configure-time default.
79465
79466         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79467
79468         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79469
79470 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79471
79472         Merge from coreutils.
79473
79474         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79475         value, $ac_cv_search_nanosleep, if it's "none required".
79476
79477 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79478
79479         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79480         with like-named macro in fnmatch.c.
79481         (EXT): Use an internal constant instead.
79482
79483         Merge fnmatch patches from glibc.
79484         * lib/fnmatch.c (mbsinit): Remove define.
79485         Add libc_hidden_ver (__fnmatch, fnmatch).
79486         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79487         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79488
79489 2004-01-14  Karl Berry  <karl@gnu.org>
79490
79491         * config/install-sh: update from automake.
79492
79493 2004-01-13  Karl Berry  <karl@gnu.org>
79494
79495         * config/install-sh: update from automake.
79496
79497 2004-01-09  Karl Berry  <karl@gnu.org>
79498
79499         * config/install-sh: update from automake.
79500
79501 2004-01-05  Karl Berry  <karl@gnu.org>
79502
79503         * config/config.{sub,guess}: update from config.
79504
79505 2003-12-31  Karl Berry  <karl@gnu.org>
79506
79507         * config/depcomp: update from automake.
79508
79509 2003-12-14  Karl Berry  <karl@gnu.org>
79510
79511         * lib/config.charset: update from gettext-runtime.
79512
79513 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79514
79515         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79516         Bug reported by Alfred M. Szmidt.
79517
79518 2003-12-03  Bruno Haible  <bruno@clisp.org>
79519
79520         * m4/gettext.m4: Upgrade from gettext-0.13.
79521         * m4/po.m4: Upgrade from gettext-0.13.
79522         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79523         * m4/intmax.m4: New file, from gettext-0.13.
79524         * m4/printf-posix.m4: New file, from gettext-0.13.
79525
79526 2003-11-29  Karl Berry  <karl@gnu.org>
79527
79528         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79529
79530 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79531             Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/printf-parse.h: Don't include sys/types.h.
79534         (ARG_NONE): New macro.
79535         (char_directive): Change type of *arg_index fields to size_t.
79536         * lib/printf-parse.c: Don't include sys/types.h.
79537         (SSIZE_MAX): Remove macro.
79538         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79539         Remove unnecessary overflow check.
79540         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79541         fields.
79542
79543 2003-11-25  Bruno Haible  <bruno@clisp.org>
79544
79545         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79546
79547 2003-11-25  Bruno Haible  <bruno@clisp.org>
79548
79549         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79550         gt_TYPE_SSIZE_T.
79551
79552 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79553
79554         * modules/alloca: Remove dependency on xalloc.
79555
79556 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79557
79558         * lib/alloca.c: Remove dependency on xalloc module.
79559         (xalloc_die): Remove.
79560         (memory_full) [!defined emacs]: New macro.
79561         [!defined emacs]: Don't include xalloc.h.
79562         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79563         address arithmetic overflows.  Change datatypes a bit to avoid
79564         unnecessary casts.
79565
79566 2003-11-22  Jim Meyering  <jim@meyering.net>
79567
79568         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79569         s/size/size_t/.
79570
79571 2003-11-21  Karl Berry  <karl@gnu.org>
79572
79573         * config/config.{sub,guess}: update from config.
79574
79575 2003-11-18  Karl Berry  <karl@gnu.org>
79576
79577         * config/config.{sub,guess}: update from config.
79578
79579         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79580
79581 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79582
79583         * README: Mention that S+T cannot overflow if S is the size of
79584         an existing object and T is sufficiently small.
79585
79586 2003-11-17  Jim Meyering  <jim@meyering.net>
79587
79588         On systems without utime and without a utimes function capable of
79589         dealing with a NULL struct utimbuf* argument, this utime replacement
79590         could -- in unusual circumstances -- leak a file descriptor.
79591         * lib/utime.c: Include <unistd.h> and <errno.h>.
79592         (utime_null): Be sure to close `fd' and to preserve errno.
79593         Reported by Geoff Collyer via Arnold Robbins.
79594
79595 2003-11-17  Bruno Haible  <bruno@clisp.org>
79596
79597         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79598         (Depends-on): Add xsize.
79599
79600 2003-11-17  Bruno Haible  <bruno@clisp.org>
79601
79602         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79603
79604 2003-11-17  Bruno Haible  <bruno@clisp.org>
79605
79606         * lib/vasnprintf.c (alloca): Remove fallback definition.
79607         (freea): Remove definition.
79608         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79609         Reported by Paul Eggert.
79610
79611 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79612             Bruno Haible  <bruno@clisp.org>
79613
79614         Protect against address arithmetic overflow.
79615         * lib/printf-args.h: Include stddef.h.
79616         (arguments): Change type of field 'count' to size_t.
79617         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79618         'unsigned int' where appropriate.
79619         * lib/printf-parse.h: Include sys/types.h.
79620         (char_directive): Change type of *arg_index fields to ssize_t.
79621         (char_directives): Change type of fields 'count', max_*_length to
79622         size_t.
79623         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79624         (SSIZE_MAX): Define fallback value.
79625         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79626         instead of 'int' where appropriate. Check a_allocated, d_allocated
79627         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79628         * lib/vasnprintf.c: Include xsize.h.
79629         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79630         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79631         overflow. Avoid wraparound when converting a width or precision from
79632         decimal to binary.
79633
79634 2003-11-16  Bruno Haible  <bruno@clisp.org>
79635
79636         Update from GNU gettext.
79637         * lib/printf-parse.c: Generalize to it can be compiled for wide
79638         strings.
79639         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79640         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79641         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79642         SNPRINTF): New macros.
79643         Don't include <alloca.h> if the file is used inside libintl.
79644         (local_wcslen): New function, for Solaris 2.5.1.
79645         (VASNPRINTF): Use it instead of wcslen.
79646
79647 2003-11-16  Bruno Haible  <bruno@clisp.org>
79648
79649         * lib/xsize.h (xmax): New function.
79650         (xsum, xsum3, xsum4): Declare as "pure" functions.
79651
79652 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79653
79654         * modules/xalloc (Files): Undo latest change, since xalloc.h
79655         no longer needs SIZE_MAX or PTRDIFF_MAX.
79656
79657 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79658
79659         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79660         gl_PTRDIFF_MAX.
79661
79662 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79663
79664         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79665         "return", to pacify some unknown compiler.  Problem reported
79666         by Joerg Schilling.
79667
79668 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79669
79670         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79671         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79672         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79673         heuristic is just as accurate as far as we know, and it removes a
79674         dependency on size_max.m4 and ptrdiff_max.m4.
79675
79676 2003-11-11  Bruno Haible  <bruno@clisp.org>
79677
79678         * modules/xsize (Files): Add m4/size_max.m4.
79679         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79680
79681 2003-11-11  Bruno Haible  <bruno@clisp.org>
79682
79683         * m4/size_max.m4: New file.
79684         * m4/ptrdiff_max.m4: New file.
79685         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79686         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79687         (gl_XALLOC): Invoke it.
79688
79689 2003-11-11  Bruno Haible  <bruno@clisp.org>
79690
79691         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79692         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79693         defined.
79694
79695 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79696
79697         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79698         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79699         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79700         From Bruno Haible.
79701         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79702         not (size_t) -1, since it's defined here.
79703
79704 2003-11-09  Karl Berry  <karl@gnu.org>
79705
79706         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79707
79708 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79709
79710         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79711         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79712         Reject sizes of exactly SIZE_MAX bytes.
79713         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79714         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79715
79716 2003-11-05  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79719         SIZE_MAX defined in <limits.h> on Solaris.
79720
79721 2003-11-04  Jim Meyering  <jim@meyering.net>
79722
79723         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79724         variable names, rather than @VAR@.
79725         * modules/poll: Likewise.
79726
79727 2003-11-04  Bruno Haible  <bruno@clisp.org>
79728
79729         * modules/xsize: New file.
79730         * modules/linebreak: Depend on xsize.
79731         * MODULES.html.sh (func_all_modules): Add xsize.
79732
79733 2003-11-04  Bruno Haible  <bruno@clisp.org>
79734
79735         * m4/xsize.m4: New file.
79736
79737 2003-11-04  Bruno Haible  <bruno@clisp.org>
79738
79739         * lib/xsize.h: New file.
79740         * lib/linebreak.c: Include xsize.h.
79741         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79742         argument for overflow.
79743         Suggested by Paul Eggert.
79744
79745 2003-11-03  Karl Berry  <karl@gnu.org>
79746
79747         * config/config.{guess,sub}: update from config.
79748
79749 2003-11-03  Jim Meyering  <jim@meyering.net>
79750
79751         * modules/userspec (lib_SOURCES): Add userspec.h.
79752         (Include): Add "userspec.h".
79753         Improve description.
79754
79755 2003-11-03  Jim Meyering  <jim@meyering.net>
79756
79757         * lib/userspec.c: Include "userspec.h".
79758         * lib/userspec.h: New file.
79759
79760 2003-11-03  Bruno Haible  <bruno@clisp.org>
79761
79762         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79763
79764 2003-11-03  Bruno Haible  <bruno@clisp.org>
79765
79766         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79767         available, to avoid (extremely rare) race condition.
79768         Suggested by Paul Eggert.
79769
79770 2003-11-02  Karl Berry  <karl@gnu.org>
79771
79772         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79773
79774 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79775
79776         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79777         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79778         (read_filesystem_list): Set and use me_type_malloced.
79779         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79780         whatever the type happens to be), for brevity and consistency.
79781         Check for size calculation overflow on Alphas running OSF/1.
79782
79783 2003-10-31  Jim Meyering  <jim@meyering.net>
79784
79785         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79786
79787         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79788
79789 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79790             Bruno Haible  <bruno@clisp.org>
79791
79792         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79793         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79794
79795 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79798         netbsd*-gnu*.  Suggested by Robert Millan.
79799
79800 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79801
79802         * modules/group-member: Depend on stdbool.
79803
79804 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79805
79806         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79807
79808 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79809
79810         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79811         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79812         after the 'gnu' in these cases.  This fixes some bugs in the
79813         previous change, and is based on suggestions by Robert Millan.
79814
79815 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79816
79817         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79818         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79819         no longer needed.
79820         * lib/quotearg.c (quotearg_n_options): Use it.
79821         * lib/group-member.c: Include <stdbool.h>.
79822         (free_group_info): Arg is now const *; don't free arg.
79823         (get_group_info): Now returns bool and accepts struct group_info *,
79824         rather than returning a malloc'ed struct group_info *.
79825         All uses changed.  Check for overflow in internal size calculation.
79826
79827         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79828         rather than xmalloc/xrealloc.
79829         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79830         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79831         conformance bug: the old code used a pointer after freeing the
79832         storage that it addressed.
79833         * lib/hash.c (hash_initialize): Simplify the code by using
79834         xalloc_oversized rather than doing it by hand.
79835         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79836         the buffer preserved.  Use free and xmalloc instead.
79837         * lib/quotearg.c (quotearg_n_options): Likewise.
79838         Use a simpler test for size overflow.  Don't use xalloc_oversized
79839         because unsigned int might be wider than size_t (!); this suggests
79840         that we should switch from unsigned int to size_t for slot numbers.
79841
79842 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79843
79844         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79845         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79846         NetBSD kernels.  Requested by Richard Stallman.
79847
79848 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79849
79850         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79851         to allocate the returned structure.  Do not allocate a subarray,
79852         as x2nrealloc will do that.
79853         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79854         instead of xnrealloc.
79855         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79856
79857 2003-10-27  Bruno Haible  <bruno@clisp.org>
79858
79859         * lib/stdbool_.h: Better support for BeOS.
79860
79861 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79862
79863         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79864         now uses inline.
79865
79866 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79867
79868         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79869         callers that want to do their own size-overflow checking.  Include
79870         <stdbool.h>, since xalloc_oversized returns bool.
79871         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79872         to use xalloc_oversized.
79873
79874         Add two functions x2realloc, x2nrealloc, for programs that grow
79875         arrays dynamically by doubling their sizes.
79876         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
79877         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
79878         New functions.
79879
79880         Port to C99 semantics for 'inline' of external functions.
79881         Bug reported by Bruno Haible.
79882         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
79883         with the old contents of xnmalloc.
79884         (xnmalloc, xmalloc): Use it.
79885         (xnrealloc_inline): New static inline function,
79886         with the old contents of xnrealloc.
79887         (xnrealloc, xrealloc): Use it.
79888
79889         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
79890         that.
79891
79892 2003-10-26  Karl Berry  <karl@gnu.org>
79893
79894         * config/srclist.txt (COPYING.DOC): no longer available from
79895         /gd/gnuorg; don't know where the ultimate source is.
79896
79897 2003-10-25  Paul Eggert  <eggert@twinsun.com>
79898
79899         Fix several address-calculation bugs in the hash modules,
79900         plus some minor code cleanup.
79901
79902         * lib/hash.h: Include <stdbool.h>, for bool.
79903         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
79904         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
79905         hash_get_n_entries, hash_get_max_bucket_length,
79906         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
79907         hash_rehash): Use size_t rather than unsigned.
79908         * lib/hash.c (struct hash_table, hash_get_n_buckets,
79909         hash_get_n_buckets_used, hash_get_n_entries,
79910         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
79911         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79912         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79913         Likewise.
79914         (SIZE_MAX): Define if not defined.
79915         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79916         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79917         hash_print):
79918         Use const * when possible.
79919         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79920         (check_tuning): Fix bug: if tuning parameters were very close to
79921         0 or 1, rounding errors could have caused subscript violations.
79922         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79923         (hash_initialize): Add 'fail:' label
79924         to free table and return NULL, and use it to simplify code.
79925         Use calloc rather than clearing the storage ourself.
79926         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79927         buffer size calculations.
79928         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79929         Include <stddef.h>, for size_t.
79930         * lib/hash-pjw.c (hash_pjw): Likewise.
79931         Switch to method described by Bruno Haible.
79932         Include <limits.h>, for CHAR_BIT.
79933         (SIZE_BITS): New macro.
79934
79935 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79936
79937         * m4/getline.m4 (AM_FUNC_GETLINE):
79938         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79939         hosts.  Problem reported by Derek Robert Price in
79940         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79941         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79942         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79943
79944 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79945
79946         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79947         ceiling the allocation at NMAX bytes rather than silently
79948         discarding input bytes before NMAX is reached.  This makes
79949         a difference only if NMAX exceeds SIZE_MAX / 2.
79950
79951         * lib/obstack.c: Merge from glibc.
79952         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79953         Add libc_hidden_def (_obstack_newchunk).
79954         (_obstack_free) [! defined _LIBC]: Remove.
79955         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79956         a clone of the function body.
79957         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79958         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79959
79960         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79961         glibc.
79962         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79963         arg to memcpy.
79964
79965         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79966         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79967         Don't use lvalue casts, as GCC plans to remove support for them
79968         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79969         was also present in the non-GCC version, indicating that this
79970         code had always been buggy and had never been widely used.
79971         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79972         Use the fast variant of each macro, rather than copying the
79973         definiens of the fast variant; that way, we'll be more likely to
79974         catch future bugs in the fast variants.
79975
79976 2003-10-20  Bruno Haible  <bruno@clisp.org>
79977
79978         * modules/wait-process: New file.
79979         * MODULES.html.sh (func_all_modules): Add wait-process.
79980
79981 2003-10-20  Bruno Haible  <bruno@clisp.org>
79982
79983         * m4/wait-process.m4: New file.
79984
79985 2003-10-20  Bruno Haible  <bruno@clisp.org>
79986
79987         * lib/wait-process.h: New file, from GNU gettext.
79988         * lib/wait-process.c: New file, from GNU gettext.
79989
79990 2003-10-19  Jim Meyering  <jim@meyering.net>
79991
79992         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79993         HPUX 10.20.
79994
79995 2003-10-18  Karl Berry  <karl@gnu.org>
79996
79997         * config/config.guess: update from config.
79998
79999 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80000
80001         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80002         (getgroups): First arg is int, not size_t.
80003         Don't let 'free' mangle errno.
80004
80005 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80006
80007         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80008
80009 2003-10-16  Karl Berry  <karl@gnu.org>
80010
80011         * config/config.{guess,sub}: update from config.
80012
80013 2003-10-16  Jim Meyering  <jim@meyering.net>
80014
80015         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80016         memcpy.
80017
80018 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80019
80020         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80021         (SIZE_MAX): Remove.
80022         (new_exclude, add_exclude_file): Initial size no longer needs to
80023         be a power of 2.
80024         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80025         our own address arithmetic overflow checking.
80026
80027         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80028         (fnmatch): Do not alloca more than 2000 wide characters;
80029         instead, use malloc for large buffers.
80030         Check for address arithmetic overflow, and return -1
80031         with errno set to ENOMEM in that case.
80032         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80033         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80034         instead, return -1.  Check for address arithmetic overflow.
80035
80036 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80037
80038         Handle invalid suffixes and overflow independently, so that
80039         callers can treat them independently as needed.  Fix some bugs in
80040         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80041         suffix for a human-readable blocksize.  The major caller-visible
80042         change is the addition of a new
80043         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80044         that both overflow and suffix chars were found.
80045
80046         * lib/human.c (humblock): Don't check separately for invalid suffix
80047         char; that is xstrtoumax's job (now that its bug is fixed).
80048         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80049         INTMAX_MAX]: New macros.
80050         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80051         TYPE_MAXIMUM): New macros.
80052         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80053         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80054         if overflow occurs, as it's what __strtol does and it's more useful
80055         in practice.
80056         (__xstrtol): If __strtol reports some error other than ERANGE,
80057         reflect it to the caller as LONGINT_INVALID.  If it reports
80058         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80059         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80060         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80061         value.
80062         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80063         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80064         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80065         [defined UINTMAX_MAX]: New macros.
80066
80067 2003-10-14  Bruno Haible  <bruno@clisp.org>
80068
80069         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80070
80071 2003-10-14  Bruno Haible  <bruno@clisp.org>
80072
80073         * m4/sig_atomic_t: New file, from GNU gettext.
80074         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80075
80076 2003-10-14  Bruno Haible  <bruno@clisp.org>
80077
80078         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80079         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80080         Also use volatile where needed.
80081
80082 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80083
80084         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80085         Change maintainer from Bruno Haible to 'all'.
80086
80087 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80088
80089         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80090
80091 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80092
80093         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80094         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80095         and define in terms of the other primitives.
80096         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80097         (SIZE_MAX): Define if not already defined.
80098         (array_size_overflow): New function.
80099         (xalloc_die): Abort instead of exiting if 'error' returns.
80100         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80101         (xmalloc, xrealloc): Use them.
80102         (xcalloc): Check for address arithmetic overflow.
80103         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80104         a bit faster than strcpy.
80105
80106 2003-10-10  Simon Josefsson  <jas@extundo.com>
80107
80108         * modules/argp (Depends-on): Add restrict and strcase.
80109
80110 2003-10-10  Simon Josefsson  <jas@extundo.com>
80111
80112         * m4/argp.m4: Add AC_C_INLINE.
80113
80114 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80115
80116         Merge getpass from libc, plus a few fixes.
80117
80118         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80119         Include <stdbool.h>.
80120         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80121         __fsetlocking to empty.
80122         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80123         do include <bits/libc-lock.h>.
80124         Do not include <fcntl.h>; not needed.
80125         [_LIBC]: Include <wchar.h>.
80126         (NOTCANCEL_MODE): New macro.
80127         (flockfile, funlockfile) [_LIBC]: New macros.
80128         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80129         [!_LIBC]: New macros.
80130         (call_fclose): New function.
80131         (getpass): Use it.  Save tty stream separately; this simplifies the
80132         code and makes it more reliable if stdin happens to equal stdout.
80133         Invoke __fsetlocking on tty.
80134         Handle thread cancellation if needed.
80135         Namespace cleanup (use __tcgetattr, __getline).
80136         Use bool for Booleans.
80137         [USE_IN_LIBIO]: Handle wide streams.
80138         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80139         stream might go where.
80140
80141         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80142         doesn't have to include <stdio.h> before us.
80143         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80144         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80145         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80146         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80147         if not declared, so that we can use getpass.c code from libc without
80148         rewriting it.
80149         (flockfile, ftrylockfile, funlockfile): New macros.
80150
80151 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80152
80153         * modules/getpass: Depend on stdbool.
80154
80155 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80156
80157         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80158
80159 2003-10-07  Karl Berry  <karl@gnu.org>
80160
80161         * config/config.{guess,sub}: update from config.
80162
80163 2003-10-06  Jim Meyering  <jim@meyering.net>
80164             Bruno Haible  <bruno@clisp.org>
80165
80166         This lets translators provide better translations for the
80167         "Written by ..." part of --version output.
80168         * lib/version-etc.h: Include stdarg.h.
80169         (version_etc_copyright): Declare as readonly.
80170         (version_etc): Make this function variadic with a NULL-terminated list
80171         of author name strings.
80172         (version_etc_va): New declaration.
80173         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80174         (version_etc_copyright): Declare as readonly.
80175         (version_etc_va): New function. Provide a different translatable string
80176         for each possible number of authors < 10. Abbreviate when there are 10
80177         authors or more.
80178         (version_etc): Make this function variadic. Call version_etc_va.
80179         Suggestion from Gary V. Vaughan.
80180
80181         * lib/long-options.h (parse_long_options): Change prototype: the
80182         authors string is moved to the end and becomes variadic.
80183         * lib/long-options.c: Include stdarg.h.
80184         (parse_long_options): Make this function variadic, too.
80185         Call version_etc_va, not version_etc.
80186
80187 2003-10-06  Bruno Haible  <bruno@clisp.org>
80188
80189         * modules/version-etc-2: Remove file.
80190         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80191
80192 2003-10-06  Bruno Haible  <bruno@clisp.org>
80193
80194         * modules/fatal-signal: New file.
80195         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80196
80197 2003-10-06  Bruno Haible  <bruno@clisp.org>
80198
80199         * m4/fatal-signal.m4: New file.
80200         * m4/signalblocking.m4: New file, from GNU gettext.
80201
80202 2003-10-06  Bruno Haible  <bruno@clisp.org>
80203
80204         * lib/version-etc-2.h: Remove file.
80205         * lib/version-etc-2.c: Remove file.
80206
80207 2003-10-06  Bruno Haible  <bruno@clisp.org>
80208
80209         * lib/fatal-signal.h: New file, from GNU gettext.
80210         * lib/fatal-signal.c: New file, from GNU gettext.
80211
80212 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80213
80214         * README: Rework advice for preventing empty .o files.
80215         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80216         not <sys/types.h>.
80217
80218 2003-10-04  Karl Berry  <karl@gnu.org>
80219
80220         * lib/argp*: update from libc.
80221
80222 2003-10-04  Karl Berry  <karl@gnu.org>
80223
80224         * config/config.{guess,sub}: update from config.
80225
80226 2003-10-02  Bruno Haible  <bruno@clisp.org>
80227
80228         * modules/lchown (Include): Add lchown.h.
80229         * modules/time_r (Include): Use "..." syntax.
80230         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80231
80232 2003-10-01  Simon Josefsson  <jas@extundo.com>
80233
80234         * MODULES.html.sh (func_all_modules): Move gethostname from section
80235         'based on' to section 'lacking' POSIX:2001.
80236
80237 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80238
80239         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80240         to output mode on the same stream.
80241
80242 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80243
80244         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80245         Fix arg typo in previous patch.
80246
80247 2003-09-28  Jim Meyering  <jim@meyering.net>
80248
80249         * lib/error.c: Correct cpp indentation.
80250
80251 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80252
80253         * modules/free: New file.
80254
80255 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80256
80257         * m4/free.m4: New file.
80258
80259 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80260
80261         * lib/minmax.h (MIN, MAX)
80262         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80263         Omit the special code that used __typeof__, since we worry that
80264         it could be more trouble than it's worth.  See:
80265         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80266         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80267
80268         * lib/free.c: New file.
80269
80270 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80271
80272         Trivial fixes to Makefile.am parts of module listings.
80273         * modules/strstr: Append strstr.h to lib_SOURCES.
80274         * modules/strcase: Likewise, for strcase.h.
80275
80276 2003-09-27  Karl Berry  <karl@gnu.org>
80277
80278         * config/mkinstalldirs: update from automake.
80279
80280 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80281
80282         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80283         (error_tail): Do not loop, reallocating temporary buffer, since
80284         the output cannot contain more wide characters than the input
80285         contains bytes, the size must be big enough already.  This avoids
80286         one potential size overflow calculation.  Check for size overflow
80287         when calculating temporary buffer size.  Free temporary buffer
80288         when done, if it was allocated with malloc; this plugs a memory
80289         leak.  Remove casts from void * to pointers, that are no longer
80290         needed now that we're assuming C89 or better.
80291
80292         Merge error changes from glibc.
80293
80294         * lib/error.c, error.h: Update copyright notice header to match glibc.
80295         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80296         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80297         Disable cancellation while printing error.
80298         * lib/error.h: Prepend __ to parameter names.
80299
80300 2003-09-26  Jim Meyering  <jim@meyering.net>
80301
80302         * lib/error.c (error_tail): Move some declarations
80303         into inner scope where the local variables are used.
80304
80305 2003-09-26  Bruno Haible  <bruno@clisp.org>
80306
80307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80308         stpncpy().
80309         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80310
80311 2003-09-26  Bruno Haible  <bruno@clisp.org>
80312
80313         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80314         (stpncpy): Define as alias for gnu_stpncpy.
80315         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80316
80317 2003-09-25  Simon Josefsson  <jas@extundo.com>
80318
80319         * lib/xgetdomainname.h: New file.
80320         * lib/xgetdomainname.c: New file.
80321
80322 2003-09-25  Simon Josefsson  <jas@extundo.com>
80323             Bruno Haible  <bruno@clisp.org>
80324
80325         * modules/getdomainname: New file.
80326         * modules/xgetdomainname: New file.
80327         * MODULES.html.sh (func_all_modules): Add getdomainname,
80328         xgetdomainname.
80329
80330 2003-09-25  Simon Josefsson  <jas@extundo.com>
80331             Bruno Haible  <bruno@clisp.org>
80332
80333         * m4/getdomainname.m4: New file.
80334
80335 2003-09-25  Simon Josefsson  <jas@extundo.com>
80336             Bruno Haible  <bruno@clisp.org>
80337
80338         * lib/getdomainname.h: New file.
80339         * lib/getdomainname.c: New file.
80340
80341 2003-09-25  Karl Berry  <karl@gnu.org>
80342
80343         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80344
80345 2003-09-25  Karl Berry  <karl@gnu.org>
80346
80347         * config/install-sh: update from automake.
80348
80349 2003-09-25  Bruno Haible  <bruno@clisp.org>
80350
80351         * modules/version-etc-2: New file, from modules/version-etc with
80352         modifications.
80353         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80354
80355 2003-09-25  Bruno Haible  <bruno@clisp.org>
80356
80357         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80358         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80359
80360 2003-09-24  Simon Josefsson  <jas@extundo.com>
80361
80362         * modules/xgethostname: Add xgethostname.h.
80363
80364 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80365
80366         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80367         the buffer associated with the argument.  Bug reported by
80368         Simon Josefsson.
80369
80370 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80371
80372         * README: Document assumptions that 'int' is at least 32 bits
80373         wide, that integer arithmetic is 2's complement without overflow,
80374         that there are no holes in integer values, that adding sizes of
80375         two nonoverlapping objects can't overflow, and that all-bits-zero
80376         yields scalar zero.  Fix spelling and capitalization typos.
80377
80378 2003-09-19  Karl Berry  <karl@gnu.org>
80379
80380         * lib/argp.h: update from libc.
80381
80382 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80383
80384         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80385         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80386         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80387
80388 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80389
80390         * gnulib-tool: Use "test -h", not "test -L", for portability
80391         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80392         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80393         (sed_extract_prog): Issue s commands one-by-one, rather than
80394         using \| in one s command.
80395
80396 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80397
80398         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80399         input error, instead of returning NULL the next time we are called
80400         (and therefore losing track of errno).
80401
80402 2003-09-16  Bruno Haible  <bruno@clisp.org>
80403
80404         * gnulib-tool (func_create_testdir): Warn about duplicated
80405         dependencies.
80406
80407 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80408
80409         * modules/argmatch, modules/fatal, modules/obstack,
80410         modules/xalloc, modules/xgethostname: Sort dependencies by
80411         importance, not alphabetically.
80412
80413 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80414
80415         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80416         fails, so that the caller gets the proper errno.
80417
80418         * lib/readutmp.c (read_utmp): Likewise.
80419         Check for fstat error.  Close stream and free storage
80420         when failing.
80421
80422 2003-09-14  Karl Berry  <karl@gnu.org>
80423
80424         * config/srclist.txt (strdup.c): disable for c89 changes.
80425
80426 2003-09-14  Jim Meyering  <jim@meyering.net>
80427
80428         * lib/getloadavg.c: Correct cpp indentation.
80429         * lib/strdup.c: Likewise.
80430         * lib/vasnprintf.c: Likewise.
80431
80432 2003-09-14  Bruno Haible  <bruno@clisp.org>
80433
80434         * modules/fwriteerror: New file.
80435         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80436
80437 2003-09-14  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/fwriteerror.h: New file.
80440         * lib/fwriteerror.c: New file.
80441
80442 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80443
80444         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80445         modules/xgethostname, modules/xalloc: Depend on exit.
80446
80447 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80448
80449         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80450
80451         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80452         and AC_MINIX, too, so that their extensions are available.
80453
80454         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80455         This macro has been superseded by gl_BACKUPFILE.
80456
80457         More patches to assume C89 or better.
80458
80459         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80460
80461         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80462         unconditionally.
80463         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80464         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80465         Include <string.h>, <stdlib.h> unconditionally.
80466         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80467         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80468         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80469         headers or for string.h.
80470         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80471         or strtoul.
80472
80473         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80474         headers.
80475         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80476         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80477         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80478         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80479         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80480         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80481         memcpy, memset.
80482         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80483         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80484         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80485         strtol.
80486         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80487         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80488         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80489         strtoul.
80490
80491 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80492
80493         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80494         * lib/obstack.c [!defined _LIBC]: Likewise.
80495         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80496         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80497         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80498
80499         More changes to assume C89 or better.
80500
80501         * lib/error.c (error_tail): Assume vprintf.
80502
80503         * lib/argmatch.c (getenv): Remove decl.
80504         * lib/progreloc.c (get_full_program_name): Define via prototype.
80505         * lib/setenv.c (clearenv): Likewise.
80506         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80507         needed.
80508         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80509         (malloc, memcpy): Remove decls.
80510         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80511         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80512         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80513         (memcpy): Remove macro.
80514         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80515         (__P): Remove.  All uses removed.
80516         (PTR): Remove.  All uses changed to void *.
80517         (CHAR_BIT, NULL): Remove.
80518         (spaces, zeros, memset_space, memset_zero)
80519         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80520         Remove.
80521         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80522         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80523         Define with prototype.
80524         Remove now-unnecessary prototype decl.
80525         (extra_args_spec): Assume ANSI C.  All uses changed.
80526         (extra_args_spec_iso): Remove.
80527         (my_strftime, emacs_strftimeu): Define via prototype.
80528         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80529         unconditionally.
80530         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80531         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80532         (strtoul, strtol): Remove decls.
80533         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80534         LONG_MAX): Remove.
80535         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80536         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80537         (LOCALE_PARAM_PROTO): New macro.
80538         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80539         (INTERNAL (strtol), strtol): Define with a prototype.
80540         (PARAMS): Remove.  All uses removed.
80541         * lib/tempname.c: Include <string.h> unconditionally.
80542         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80543         * lib/xgethostname.c (main): Define with a prototype.
80544         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80545         Include <stdlib.h> unconditionally.
80546         (calloc, malloc, realloc, free): Remove decls.
80547         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80548         Include <stdlib.h> unconditionally.  Sort include file names.
80549         (strtod): Remove.
80550         (xstrtod): Define with a prototype.
80551         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80552         (strtol, strtoul): Remove decls.
80553
80554 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80555
80556         More patches to assume C89 or better.
80557         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80558         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80559         string.h, memchr, STDC_HEADERS.
80560
80561 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80562
80563         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80564         Include <stdlib.h>, <string.h> unconditionally.
80565         Remove now-unnecessary cast to char *.
80566         * lib/strnlen.c: Include <string.h> unconditionally.
80567         * lib/yesno.c (yesno): Define with a prototype.
80568
80569 2003-09-11  Bruno Haible  <bruno@clisp.org>
80570
80571         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80572
80573 2003-09-10  Jim Meyering  <jim@meyering.net>
80574
80575         * lib/error.c: Correct indentation of cpp directives.
80576
80577 2003-09-10  Bruno Haible  <bruno@clisp.org>
80578
80579         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80580         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80581         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80582         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80583         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80584         <stdlib.h> and <string.h> checks.
80585         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80586         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80587
80588 2003-09-10  Bruno Haible  <bruno@clisp.org>
80589
80590         * lib/strcspn.c: Include <string.h> unconditionally.
80591         * lib/strpbrk.c: Include <string.h> unconditionally.
80592         * lib/strstr.c: Include <string.h> unconditionally.
80593         * lib/unicodeio.c: Include <string.h> unconditionally.
80594         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80595         * lib/unsetenv.c: Likewise.
80596         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80597         * lib/yesno.c: Include <stdlib.h> unconditionally.
80598         (rpmatch): Add prototype.
80599
80600 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80601
80602         More patches to assume C89 or better.
80603         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80604         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80605         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80606         or for string.h.
80607         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80608         stdlib.h.
80609         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80610         C headers.
80611         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80612         string.h.
80613         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80614         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80615         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80616         or for string.h.
80617         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80618         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80619         C headers.
80620         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80621         memcpy.
80622         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80623         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80624         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80625         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80626         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80627         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80628         string.h, free.
80629         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80630         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80631         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80632         C headers, or for string.h.
80633         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80634         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80635         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80636         headers, memory.h, stdlib.h, string.h, strings.h.
80637         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80638         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80639         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80640         strchr.
80641         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80642         headers, memory.h, string.h.
80643         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80644         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80645         free.
80646         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80647         headers.
80648         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80649         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80650         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80651         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80652         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80653
80654 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80655
80656         More K&R removal.
80657
80658         * lib/acosl.c (main): Use a prototype.
80659         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80660         tanl.c: Likewise.
80661
80662         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80663
80664         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80665         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80666         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80667         with a prototype.
80668         * lib/getopt.c (const): Remove macro.
80669         Include <string.h> unconditionally.
80670         (my_index): Remove; all uses changed to strchr.
80671         (strlen): Remove decl.
80672         (exchange): Remove forward decl; no longer needed.
80673         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80674         Define with prototype.
80675         * lib/getopt1.c (const): Remove macro.
80676         (getopt_long, getopt_long_only, main): Define with prototype.
80677
80678         * lib/getugroups.c: Include <string.h> unconditionally.
80679
80680         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80681         (getusershell, setusershell, endusershell, readname, main):
80682         Define with prototypes.
80683
80684         * lib/group-member.c: Include group-member.h first.
80685         Include <stdlib.h> unconditionally.
80686
80687         * lib/hard-locale.c: Include hard-locale.h first.
80688         Include <stdlib.h>, <string.h> unconditionally.
80689
80690         * lib/hash.c (free, malloc): Remove decls.
80691         Include <stdlib.h> unconditionally.
80692
80693         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80694         (getenv): Do not declare.
80695
80696         * lib/idcache.c: Include <string.h> unconditionally.
80697
80698         * lib/long-options.c: Include long-options.h first, to test interface.
80699         Include <stdlib.h> unconditionally.
80700
80701         * lib/makepath.c: Include makepath.h first, to test interface.
80702         Include <stdlib.h> and <string.h> unconditionally.
80703
80704         * lib/linebuffer.c: Include <stdlib.h>.
80705         (free): Remove decl.
80706
80707         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80708         stddef.h. rpl_malloc returns void *, not char *.
80709         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80710         prototype.
80711
80712         * lib/md5.h: Include <limits.h> unconditionally.
80713         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80714         (__P): Remove; all uses removed.
80715         * lib/md5.c: Include "md5.h" first.
80716         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80717         md5_buffer, md5_process_bytes, md5_process_block):
80718         Define with prototypes.
80719         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80720         * lib/sha.c: Include "sha.h" first.
80721         Include <stdlib.h>, <string.h> unconditionally.
80722
80723         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80724         * lib/memcmp.c (__ptr_t): Likewise.
80725         * lib/memrchr.c (__ptr_t): Likewise.
80726         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80727         Include <string.h> unconditionally.
80728         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80729         * lib/memchr.c: Include <stdlib.h> unconditionally.
80730         * lib/memchr.c (LONG_MAX): Remove.
80731         * lib/memrchr.c (LONG_MAX): Likewise.
80732         * lib/memchr.c (__memchr): Define via a prototype.
80733         * lib/memrchr.c (__memrchr): Likewise.
80734         * lib/memcmp.c (__P): Remove, and remove all uses.
80735         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80736         Remove forward decls; no longer needed.
80737         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80738         Use types required by C89 in prototype.
80739
80740         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80741         * lib/savedir.c: Likewise.
80742         * lib/mkdir.c (free): Remove decl.
80743         * lib/rmdir.c (rmdir): Define with a prototype.
80744         * lib/savedir.c: Include savedir.h first, to test interface.
80745
80746         * lib/mktime.c (STDC_HEADERS): Remove.
80747         Include <stdlib.h>, <string.h> unconditionally.
80748
80749         * lib/modechange.c: Include <stdlib.h> unconditionally.
80750         (malloc): Remove decl.
80751
80752         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80753         (free): Remove decl.
80754
80755         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80756         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80757         (This type really should be intptr_t, but that's a C99ism.)
80758         (_obstack_memcpy): Remove: all uses changed to memcpy.
80759         Include <string.h> unconditionally.
80760         (struct obstack): Assume __STDC__ for types of members
80761         chunkfun, freefun, extra_arg.
80762         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80763         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80764         obstack_begin, obstack_specify_allocation,
80765         obstack_specify_allocation_with_arg, obstack_chunkfun,
80766         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80767         Remove unprototyped decls and the macros that use them.
80768         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80769         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80770         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80771         (defined __STDC__ && __STDC__)]:
80772         Remove nonprototyped code.
80773         Include <stdlib.h> unconditionally.
80774         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80775         _obstack_allocated_p, _obstack_free, obstack_free,
80776         _obstack_memory_used, print_and_abort):
80777         Define using prototypes.
80778         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80779         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80780         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80781         obstack_next_free, obstack_object_size, obstack_room) [0]:
80782         Remove unused, unprototyped code.
80783
80784         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80785
80786         * lib/physmem.c (physmem_total, physmem_available, main): Define
80787         with prototypes.
80788
80789         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80790         (main): Define with a prototype.
80791
80792         * lib/posixver.c (getenv): Remove decl.
80793
80794         * lib/putenv.c (malloc): Returns void *, not char *.
80795         Include <string.h> unconditionally.
80796         (strchr, memcpy, NULL): Do not define.
80797
80798         * lib/readtokens.c: Include readtokens.h first, to test interface.
80799         Include <stdlib.h>, <string.h> unconditionally.
80800         (init_tokenbuffer): Define with a prototype.
80801
80802         * lib/regex.c (PARAMS): Remove.  All uses removed.
80803         All uses of _RE_ARGS removed, too.
80804         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80805         unconditionally.
80806         (bzero): Assume memset exists.
80807         (memcmp, memcpy, NULL): Remove.
80808         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80809         char, or assignments to local vars of type signed char.
80810         (init_syntax_once, PREFIX(extract_number_and_incr),
80811         PREFIX(print_partial_compiled_pattern),
80812         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80813         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80814         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80815         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80816         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80817         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80818         wcs_compile_range, byte_compile_range, truncate_wchar,
80819         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80820         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80821         count_mbs_length, wcs_re_match_2_internal,
80822         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80823         PREFIX(alt_match_null_string_p),
80824         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80825         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80826         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80827         now-unnecessary declaration, if any.
80828         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80829         regcomp, regexec):
80830         Remove now-unnecessary casts among pointer types.
80831         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80832
80833         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80834         (free): Remove decl.
80835
80836         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80837
80838         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80839         (free): Remove decl.
80840
80841         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80842         * lib/xgetcwd.c: Likewise.
80843
80844         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80845         (free): Remove decl.
80846
80847         * lib/strchrnul.c (strchrnul): Define with a prototype.
80848         Fix bug: c_in was not converted to char before searching.
80849
80850         The following changes are not K&R related:
80851
80852         * lib/group-member.h: Include <sys/types.h>, so that this file is
80853         self-contained.
80854         * lib/makepath.h: Likewise.
80855
80856         * lib/getusershell.c (readname, default_index, line_size, readname):
80857         Use size_t, not int, for sizes.
80858         (readname): If the size overflows, report an error instead of
80859         looping forever.
80860
80861 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80862
80863         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80864         libc.
80865
80866 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80867
80868         * README: New section: portability guidelines.
80869
80870 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80871
80872         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80873         C89 spec.
80874
80875 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80876
80877         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
80878
80879 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80880
80881         Assume C89 or better; remove K&R cruft.
80882         A few of these changes were first proposed by Derek Robert Price
80883         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
80884
80885         * lib/addext.c: Include <string.h> unconditionally.
80886         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
80887         Don't declare getenv or malloc.
80888
80889         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
80890         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
80891         (NULL): Remove.
80892         (find_stack_direction, alloca): Use prototypes.
80893
80894         * lib/atexit.c (atexit): Define using a prototype.
80895
80896         * lib/basename.c, dirname.c, stripslash.c:
80897         Include <string.h> unconditionally.
80898
80899         * lib/bcopy.c: Include <stddef.h>.
80900         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
80901
80902         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
80903
80904         * lib/error.h (error, error_at_line, error_print_progname)
80905         [! (defined (__STDC__) && __STDC__)]: Remove decls.
80906         * lib/error.c: Include error.h first, to check interface.
80907         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80908         (VA_START): Remove; all uses changeed to va_start.
80909         (exit, strerror): Remove decls.
80910         (error_print_progname): Prototype uncondionally.
80911         Don't include <errno.h>; no longer needed.
80912         (private_strerror): Remove.
80913         (error_tail): Always define.
80914         (error, error_at_line): Assume C89 or better; always use prototypes.
80915         * lib/fatal.c: Include "fatal.h" first, to test interface.
80916         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80917         (VA_START): Remove; all uses changed to va_start.
80918         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80919         this case.
80920         (exit): Remove decl.
80921         (fatal): Prototype unconditionally.  Assume va_start works.
80922         Abort at end, to pacify gcc.
80923
80924         * lib/euidaccess.c (main): Define with a prototype.
80925
80926         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80927
80928         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80929
80930         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80931         prototypes.
80932         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80933         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80934         (getenv): Remove decl.
80935         (fnmatch): Define using a prototype.
80936         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80937         (FCT): Define using a prototype.
80938
80939         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80940
80941         * lib/gethostname.c: Include <stddef.h>.
80942         (gethostname): Define with prototype.  Length is size_t, not int.
80943
80944 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80945
80946         Assume C89 or better; remove K&R cruft.
80947         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80948         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80949         string.h, getenv, malloc.
80950         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80951         headers.
80952         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80953         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80954         do not check for strerror.
80955         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80956         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80957         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80958         do not check for doprnt or vprintf.
80959         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80960         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80961
80962 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80963
80964         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80965         getversion.c should have been removed then, but was accidentally
80966         preserved.
80967
80968         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80969         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80970
80971 2003-09-08  Karl Berry  <karl@gnu.org>
80972
80973         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80974                 config, forget about prep.
80975
80976         * config/depcomp, missing: update from automake.
80977
80978 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80979
80980         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80981         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80982
80983 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80984
80985         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80986         copy_tm_result.  Bug reported by Simon Josefsson in
80987         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80988
80989 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80990
80991         * m4/time_r.m4: New file.
80992         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80993         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80994         is. Check for timegm declaration.
80995         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80996         Do not check for gmtime_r.
80997         Replace mktime if __mktime_internal does not exist and if mktime
80998         hasn't been replaced already.
80999
81000 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81001
81002         * lib/time_r.c, lib/time_r.h: New files.
81003
81004         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81005         __localtime_r.
81006         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81007         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81008
81009         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81010         __gmtime_r.
81011         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81012         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81013         Include <time_r.h>.
81014
81015         * lib/timegm.c: Switch to glibc implementation, with the following
81016         changes:
81017         [defined HAVE_CONFIG_H]: Include <config.h>.
81018         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81019         (__mktime_internal) [!defined _LIBC]: New decl.
81020         (__gmtime_r) [!defined _LIBC]: New macro and function.
81021         (timegm): Use a prototype, since gnulib assumes C89.
81022         Do not bother declaring tmp to be const, as it's not really usefu.
81023         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81024         (timegm): Declare only if HAVE_DECL_TIMEGM.
81025
81026 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81027
81028         * MODULES.html.sh (func_all_modules): Add time_r.
81029         * modules/time_r: New file.
81030         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81031         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81032
81033 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81034
81035         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81036         Bug reported by Lute Kamstra in
81037         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81038
81039         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81040         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81041         course with correspondingly smaller numbers for tomorrow and
81042         yesterday.  From Tadayoshi Funaba.  Originally installed into
81043         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81044         coreutils merge?).
81045
81046 2003-08-31  Simon Josefsson  <jas@extundo.com>
81047
81048         * modules/timegm: New file.
81049         * MODULES.html.sh (func_all_modules): Add timegm.
81050
81051 2003-08-31  Simon Josefsson  <jas@extundo.com>
81052
81053         * m4/timegm.m4: New file.
81054
81055 2003-08-31  Simon Josefsson  <jas@extundo.com>
81056
81057         * lib/timegm.h: New file.
81058         * lib/timegm.c: New file.  Based on
81059         wget-1.8.2/src/http.c:mktime_from_utc.
81060
81061 2003-08-31  Karl Berry  <karl@gnu.org>
81062
81063         * lib/argp.h: update from libc.
81064
81065 2003-08-28  Bruno Haible  <bruno@clisp.org>
81066
81067         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81068         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81069         followed by '#define fnmatch fnmatch_posix' gives an error.
81070
81071 2003-08-28  Bruno Haible  <bruno@clisp.org>
81072
81073         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81074         warning on QNX, which defines O_BINARY to 000000.
81075
81076 2003-08-27  Jim Meyering  <jim@meyering.net>
81077
81078         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81079         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81080         would fail after 32.  Reported by Danny Levinson.  Details here:
81081         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81082
81083 2003-08-24  Bruno Haible  <bruno@clisp.org>
81084
81085         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81086         MSVC7 <stdio.h> is included later.
81087
81088 2003-08-22  Simon Josefsson  <jas@extundo.com>
81089
81090         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81091
81092 2003-08-20  Karl Berry  <karl@gnu.org>
81093
81094         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81095
81096 2003-08-20  Bruno Haible  <bruno@clisp.org>
81097
81098         * modules/progname: New file.
81099         * MODULES.html.sh (func_all_modules): Add progname.
81100
81101 2003-08-20  Bruno Haible  <bruno@clisp.org>
81102
81103         * lib/progname.h: New file, from GNU gettext.
81104         * lib/progname.c: New file, from GNU gettext.
81105         * lib/progreloc.c: New file, from GNU gettext.
81106
81107 2003-08-19  Jim Meyering  <jim@meyering.net>
81108
81109         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81110         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81111
81112 2003-08-19  Bruno Haible  <bruno@clisp.org>
81113
81114         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81115         more.
81116
81117 2003-08-19  Bruno Haible  <bruno@clisp.org>
81118
81119         * lib/xstrdup.c: Assume <string.h> exists.
81120
81121 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81122
81123         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81124         in makefile rules.
81125
81126 2003-08-18  Jim Meyering  <jim@meyering.net>
81127
81128         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81129         * m4/lib-ld.m4: Likewise.
81130
81131 2003-08-18  Jim Meyering  <jim@meyering.net>
81132
81133         * lib/setenv.h: Indent nested cpp directive.
81134         * lib/vasnprintf.c: Remove trailing blanks.
81135
81136 2003-08-17  Simon Josefsson  <jas@extundo.com>
81137
81138         * modules/xstrndup: New file.
81139         * MODULES.html.sh (func_all_modules): Add xstrndup.
81140
81141 2003-08-17  Simon Josefsson  <jas@extundo.com>
81142
81143         * modules/argp: Fix autoconf macro name. Add more dependencies.
81144
81145 2003-08-17  Simon Josefsson  <jas@extundo.com>
81146
81147         * m4/xstrndup.m4: New file.
81148
81149 2003-08-17  Simon Josefsson  <jas@extundo.com>
81150
81151         * m4/argp.m4: New file.
81152
81153 2003-08-17  Simon Josefsson  <jas@extundo.com>
81154             Bruno Haible  <bruno@clisp.org>
81155
81156         * lib/xstrndup.h: New file.
81157         * lib/xstrndup.c: New file.
81158
81159 2003-08-17  Bruno Haible  <bruno@clisp.org>
81160
81161         * modules/strndup (Files, Include): Add lib/strndup.h.
81162
81163 2003-08-17  Bruno Haible  <bruno@clisp.org>
81164
81165         * modules/euidaccess (Files): Add lib/euidaccess.h.
81166
81167 2003-08-17  Bruno Haible  <bruno@clisp.org>
81168
81169         * lib/strndup.h: New file.
81170
81171 2003-08-17  Bruno Haible  <bruno@clisp.org>
81172
81173         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81174         like AC_GNU_SOURCE.
81175         * modules/extensions (configure.ac): Comment out the invocation of
81176         gl_USE_SYSTEM_EXTENSIONS.
81177
81178 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81179
81180         Merges from coreutils, etc.
81181         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81182         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81183         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81184         fixing a typo.
81185         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81186         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81187
81188 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81189
81190         Document merge from coreutils.
81191         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81192         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81193         * modules/utime: Add m4/utimes-null.m4.
81194
81195 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81196
81197         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81198         space, undoing this 2003-08-12 change:
81199         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81200
81201 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81202
81203         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81204         strtoul.c from libc, undoing this 2003-08-12 change:
81205         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81206
81207 2003-08-16  Jim Meyering  <jim@meyering.net>
81208
81209         Merges from coreutils.
81210         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81211         prefix.  Adjust cache variables similarly.  Create 500 rather than
81212         just 300 files, to exercise bug on Darwin6.5, too.
81213         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81214         $missing_dir.
81215         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81216         AM_SYS_POSIX_TERMIOS.
81217         Reported by mkc@mathdogs.com.
81218         Also change use of $am_cv_sys_posix_termios
81219         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81220         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81221         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81222         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81223         in /proc/mounts until it finds one with matching device number.  This
81224         is unnecessary when the FILE argument *is* a mount point.  No stat call
81225         is necessary in that case.  So, disable the statvfs-testing code on
81226         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81227         as RedHat bug# 84846.
81228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81229         to 1MB, so as not to render systems with no stack size limit (e.g.,
81230         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81231         Include <unistd.h>.  On some systems,
81232         it is required for the definition of _SC_PAGESIZE.
81233
81234 2003-08-16  Jim Meyering  <jim@meyering.net>
81235
81236         Merge from coreutils.
81237         * lib/xstrtoimax.c: #else #if -> #elif.
81238         * lib/xstrtoumax.c: Likewise.
81239
81240 2003-08-16  Jim Meyering  <jim@meyering.net>
81241
81242         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81243         * m4/utimes.m4: Removed.
81244         * m4/utimes-null.m4: Renamed from utimes.m4.
81245
81246         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81247         to 1MB, so as not to render systems with no stack size limit (e.g.,
81248         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81249         Include <unistd.h>.  On some systems,
81250         it is required for the definition of _SC_PAGESIZE.
81251
81252 2003-08-16  Jim Meyering  <jim@meyering.net>
81253         and Paul Eggert  <eggert@cs.ucla.edu>
81254
81255         Merges from coreutils, etc.
81256
81257         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81258         using the latest version from cvs.  This avoids problems with #line
81259         directives using a vendor (Sun) compiler.
81260         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81261         Don't set GETGROUPS_LIB here; now it's
81262         done via getgroups.m4's wrapper function.
81263         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81264         rather than just in sh-util/configure.in, so that the
81265         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81266         same.
81267         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81268         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81269         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81270         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81271         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81272         Remove code that is now done by the newly-required macros.
81273         Append $(EXEEXT) to DF_PROG.
81274         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81275         Do not invoke or require the following here,
81276         since prereq.m4 or some gnulib .m4 now does this for us:
81277         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81278         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81279         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81280         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81281         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81282         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81283         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81284         AC_FUNC_OBSTACK.
81285         Do not replace the following functions, as this is now the job
81286         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81287         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81288         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81289         atexit getpass, strdup, getpagesize.
81290         Replace 'raise'.
81291         Do not check for the following functions, as this is now the job
81292         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81293         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81294         setregid.
81295         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81296         Check for sys/sysctl.h.
81297         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81298         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81299         of checking for ssize_t ourselves.
81300
81301         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81302         Require every macro that gnulib/modules/* suggests for us.
81303         (jm_PREREQ_ADDEXT): New macro.
81304         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81305         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81306
81307         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81308         (gl_PHYSMEM): Use it.
81309         Also check for `table' function.
81310         Check for new headers and functions.
81311         Add check for sys/sysmp.h.
81312         With suggestions from Kaveh Ghazi.
81313         Ignore headers that are present but cannot be compiled.  This
81314         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81315         C 5.4.
81316
81317 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81318
81319         Document merge from coreutils.
81320         * modules/userspec: Depend on posixver.
81321         * modules/strftime: Depend on tzset.
81322
81323 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81324
81325         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81326         rather than tab, after '#' in shell-script copyright notices.
81327         Suggested by Bruno Haible.
81328
81329 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81330
81331         * config/srclist-update: Use three spaces, rather than tab, after '#'
81332         in shell-script copyright notices.  Suggested by Bruno Haible.
81333         Remove unnecessary parenthesization in regular expression.
81334
81335 2003-08-15  Jim Meyering  <jim@meyering.net>
81336
81337         Merge from coreutils.
81338         * lib/xgethostname.c: Include <stdlib.h>.
81339         (xghostname): Don't exit for anything other than memory-related
81340         failure; just return NULL.
81341         * lib/userspec.c: Include "posixver.h".
81342         (parse_user_spec): Accept `.' as a separator only
81343         in pre-POSIX-200112 mode.
81344         * lib/strtoimax.c: Use #elif rather than #else #if.
81345         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81346         Remove function, now that we can rely on a working tzset function.
81347         [!_LIBC]: Ensure that the required autoconf test has been run.
81348         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81349         Use underlying_strftime for %r.
81350         * lib/sha.c: Merge in some clean-up and optimization changes from
81351         glibc.
81352         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81353         Ensure that it is a multiple of 64.
81354         Rearrange loop exit tests so as to avoid performing an
81355         additional fread after encountering an error or EOF.
81356         * lib/realloc.c: Update copyright date.
81357
81358 2003-08-15  Jim Meyering  <jim@meyering.net>
81359         and Paul Eggert  <eggert@twinsun.com>
81360
81361         Merge from coreutils.
81362         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81363         member but strut utmpx does not.  Needed for AIX 4.3.3.
81364         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81365
81366 2003-08-15  Jim Meyering  <jim@meyering.net>
81367         and Paul Eggert  <eggert@cs.ucla.edu>
81368
81369         Merges from coreutils, etc.
81370         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81371         Require gl_FUNC_TZSET_CLOBBER.
81372         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81373         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81374         members.
81375
81376 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81377
81378         Help the merge from coreutils.
81379         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81380         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81381         * m4/tzset.m4: Use it too.
81382
81383 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81384
81385         * modules/tzset: New file.
81386
81387 2003-08-14  Jim Meyering  <jim@meyering.net>
81388
81389         Merges from coreutils.
81390         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81391         variable names, rather than @FNMATCH_H@.
81392         * modules/alloca: Likewise for $(ALLOCA_H).
81393
81394         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81395         the three copies of the literal target, `fnmatch.h'.
81396         * modules/alloca (alloca.h): Likewise.
81397
81398 2003-08-14  Jim Meyering  <jim@meyering.net>
81399
81400         Merge from coreutils.
81401         * m4/tzset.m4: New file.
81402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81403         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81404         otherwise, AIX 5.1 systems would end up using the latter.
81405         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81406         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81407         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81408         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81409
81410 2003-08-14  Jim Meyering  <jim@meyering.net>
81411
81412         Merge from coreutils.
81413         * lib/obstack.h: Whitespace changes.
81414         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81415         and xcalloc return values.
81416         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81417         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81418         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81419         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81420         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81421         error from mntctl.
81422         Use mntctl's return value to drive the entry-processing loop, since
81423         we can't rely on the value of the vmt_length member in the last
81424         entry.  On some systems doing so could result in exhausting
81425         virtual memory.  Based in part on a patch from Mike Jetzer.
81426
81427 2003-08-14  Jim Meyering  <jim@meyering.net>
81428         and Paul Eggert  <eggert@twinsun.com>
81429
81430         Merges from coreutils, plus other fixes.
81431         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81432         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81433         for credits and details.  Thanks to Kaveh Ghazi for helping
81434         to keep these files in sync.
81435         (ARRAY_SIZE): Define it.
81436         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81437         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81438         (memcasecmp): Don't assume size_t fits in unsigned int.
81439         Remove casts and duplicate code.
81440         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81441         (memcpy): Remove definition.
81442         Merge in some clean-up and optimization changes from glibc.
81443         [BLOCKSIZE]: Move definition to top of file.
81444         Ensure that it is a multiple of 64.
81445         Rearrange loop exit tests so as to avoid performing an
81446         additional fread after encountering an error or EOF.
81447         * lib/md5.h (md5_uintptr): Define.
81448         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81449         return to the initial working directory.  Preserve errno
81450         for caller.
81451         * lib/idcache.c: Include "xalloc.h".
81452         (xmalloc, xrealloc): Remove decls.
81453         (getuser): Remove casts no longer required in C89.
81454         * lib/human.c: Include stdio.h, for sprintf.
81455         * lib/group-member.c: Include "xalloc.h".
81456         (xmalloc, xrealloc): Remove decls.
81457         (get_group_info): Remove casts no longer required in C89.
81458         * lib/getusershell.c (readname): Remove casts no longer required in
81459         C89.
81460         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81461         * lib/getline.c: Whitespace fix, from coreutils.
81462
81463 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81464
81465         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81466         Check for isascii.
81467
81468         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81469         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81470         Undo previous (whitespace-only) change.
81471
81472 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81473
81474         * lib/exclude.c: Include <ctype.h>
81475         (IN_CTYPE_DOMAIN): New macro.
81476         (is_space): New fn.
81477         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81478         and empty lines.
81479
81480         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81481         Undo previous (whitespace-only) change.
81482
81483 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81484
81485         * config/srclist-update: Change update back to the old behavior,
81486         leaving whitespace alone.  Use one 'sed' command rather than a
81487         pipeline.
81488         (fixlicense): Now a variable, not a function.
81489         (remove_trailing_blanks): Remove.
81490         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81491         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81492         Undo previous (whitespace-only) change.
81493
81494 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81495
81496         Merge from coreutils.
81497         * modules/euidaccess: Add lib_SOURCES, include for new
81498         file euidaccess.h
81499
81500 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81501
81502         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81503         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81504         Normalize leading white space and remove trailing white space.
81505
81506         Merge from coreutils
81507         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81508
81509         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81510         0.12.1.  These files are now being upgraded automatically by
81511         ../config/srclist-update.
81512
81513 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81514
81515         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81516         Normalize leading white space and remove trailing white space.
81517         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81518         notice, as per ../config/srclist-update.
81519
81520         Merge from coreutils.
81521         * lib/euidaccess.h: New file.
81522         * lib/euidaccess.c: Include it.
81523         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81524         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81525         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81526
81527 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81528
81529         * config/srclist-update: Add copyright notice.
81530         (remove_id_lines, remove_trailing_blanks): New constants.
81531         (fixfile): Use them to normalize spacing a bit in copied files.
81532         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81533         Normalize leading white space and remove trailing white space.
81534
81535         * config/texinfo.tex: Sync with texinfo.
81536
81537         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81538         strtoul.c from libc, to merge coreutils whitespace changes.
81539
81540         * config/srclist.txt: Get the following m4 files from gettext:
81541         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81542         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81543         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81544         wint_t.m4.
81545
81546 2003-08-12  Karl Berry  <karl@gnu.org>
81547
81548         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81549         been made.
81550
81551 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81552
81553         * modules/gnu-source, m4/gnu-source.m4:
81554         Remove; we're assuming Autoconf 2.54 or later now.
81555         Suggested by Bruno Haible.
81556         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81557
81558 2003-08-11  Bruno Haible  <bruno@clisp.org>
81559
81560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81561
81562 2003-08-11  Bruno Haible  <bruno@clisp.org>
81563
81564         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81565         (vasnprintf): Use it instead of wcslen.
81566
81567 2003-08-11  Bruno Haible  <bruno@clisp.org>
81568
81569         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81570         value to ensure that _Bool promotes to int. Use #define for _Bool when
81571         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81572
81573 2003-08-10  Karl Berry  <karl@gnu.org>
81574
81575         * lib/regex.h: update from libc (whitespace fix).
81576
81577 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81578
81579         Merge some files from coreutils.  These changes were
81580         originally made by Jim Meyering.
81581         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81582         many older Unixes require this.
81583         * lib/alloca.c (alloca): Remove cast to argument of free;
81584         no longer needed in C89.
81585         * lib/alloca_.h, regex.h: Fix white space to match
81586         what GNU indent does.
81587
81588 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81589
81590         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81591         apparently Emacs's Unicode mode got confused before my 2003-08-05
81592         checkin.
81593
81594 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81595
81596         * m4/extensions.m4: New file.
81597         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81598         Require gl_USE_SYSTEM_EXTENSIONS.
81599         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81600         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81601
81602 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81603
81604         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81605         * modules/extensions, modules/gnu-source: New files.
81606         * modules/timespec, modules/unlocked-io: Depend on extensions.
81607
81608 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81609
81610         * modules/restrict: New file.
81611         * MODULES.html.sh (func_all_modules): Add restrict.
81612         * modules/regex: Depend on restrict.
81613
81614 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81615
81616         * m4/restrict.m4: New file.
81617         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81618
81619 2003-08-07  Bruno Haible  <bruno@clisp.org>
81620
81621         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81622         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81623
81624 2003-08-07  Bruno Haible  <bruno@clisp.org>
81625
81626         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81627         makes the module 'getndelim2' compatible with the module 'getline'.
81628
81629 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81630
81631         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81632         byte with "\201" to avoid glitches when editing that source file
81633         with multi-gnome-terminal.
81634
81635 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81636
81637         * lib/bumpalloc.h: Remove.
81638
81639 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81640
81641         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81642         * modules/bumpalloc: Remove.
81643
81644 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81645
81646         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81647         GNU coding style.
81648
81649         Merge from coreutils.
81650         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81651         1. From glibc.
81652         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81653         from Karl Berry, implemented by Jim Meyering.
81654         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81655         from Dmitry V. Levin.
81656         Remove anachronistic cast of xrealloc.
81657         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81658         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81659         type. Otherwise, it wouldn't compile with at least /bin/cc on
81660         ymp-cray-unicos9.0.2.X.
81661         Combine two mostly-identical uses of alloca into one.
81662         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81663
81664 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81665
81666         [From Emacs.]
81667
81668         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81669         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81670         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81671         obsolete NLIST_NAME_UNION.
81672         [__GNU__]: Undef BSD and FSCALE.
81673         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81674
81675 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81676
81677         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81678         an enum type, so that it's guaranteed to promote to int.  See:
81679         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81680
81681 2003-08-03  Karl Berry  <karl@gnu.org>
81682
81683         * config/depcomp: update from automake.
81684
81685 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81686
81687         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81688         (strerror): Don't assume that a printable int fits in 14 bytes.
81689
81690 2003-07-31  Bruno Haible  <bruno@clisp.org>
81691
81692         * modules/getpass-gnu: New file.
81693         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81694
81695 2003-07-31  Bruno Haible  <bruno@clisp.org>
81696
81697         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81698
81699 2003-07-24  Karl Berry  <karl@gnu.org>
81700
81701         * config/missing: update from automake.
81702
81703 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81704             Bruno Haible  <bruno@clisp.org>
81705
81706         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81707         * lib/getline.c (getline, getdelim): Likewise.
81708         Remove _GNU_SOURCE define; now it's defined in config.h through
81709         m4/getline.m4.
81710
81711 2003-07-23  Karl Berry  <karl@gnu.org>
81712
81713         * config/config.sub: update from prep.
81714
81715 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81716
81717         * modules/xalloc (Depends-on): Add exitfail.
81718         * modules/xmemcoll: Likewise.
81719
81720 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81721
81722         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81723         over-parenthesization in macros.
81724
81725         Sync with coreutils.
81726
81727         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81728         required by C99.
81729
81730         Use `exit_failure' for xalloc and xmemcoll instead of their own
81731         private exit-failure variables.
81732         * lib/xalloc.h (xalloc_exit_failure): Remove.
81733         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81734         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81735         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81736         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81737         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81738
81739 2003-07-20  Jim Meyering  <jim@meyering.net>
81740
81741         * modules/closeout (Depends-on): Add exitfail.
81742         Suggestion from Bruno Haible.
81743
81744 2003-07-19  Karl Berry  <karl@gnu.org>
81745
81746         * config/config.sub: update from prep.
81747
81748 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81749
81750         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81751         Remove.
81752         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81753         to test that it can stand by itself.  Include "exitfail.h".
81754         Clients should set exit_failure instead.
81755         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81756
81757 2003-07-18  Bruno Haible  <bruno@clisp.org>
81758
81759         * modules/getndelim2: New file.
81760         * modules/getline: Share files with module getndelim2.
81761         * modules/getnline: Depend on getndelim2 instead of sharing files with
81762         it. Add getnline.c to lib_SOURCES.
81763         * MODULES.html.sh (func_all_modules): Add getndelim2.
81764
81765 2003-07-18  Bruno Haible  <bruno@clisp.org>
81766
81767         * m4/getndelim2.m4: New file.
81768         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81769         invoke gl_PREREQ_GETNDELIM2.
81770         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81771         gl_PREREQ_GETNDELIM2.
81772         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81773         gl_GETNDELIM2.
81774
81775 2003-07-18  Bruno Haible  <bruno@clisp.org>
81776
81777         * lib/getndelim2.h: New file.
81778         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81779         getndelim2.h.
81780         (getndelim2): Make non-static. Change return type to ssize_t.
81781         * lib/getline.h: Change argument names.
81782         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81783         * lib/getnline.c: Include getndelim2.h.
81784
81785 2003-07-18  Andreas Schwab  <schwab@suse.de>
81786
81787         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81788
81789 2003-07-17  Karl Berry  <karl@gnu.org>
81790
81791         * config/config.sub: update from prep.
81792
81793 2003-07-17  Bruno Haible  <bruno@clisp.org>
81794
81795         * modules/getnline: New file.
81796         * modules/getline: Add lib/getndelim2.c to source file list.
81797         * MODULES.html.sh (func_all_modules): Add getnline.
81798
81799 2003-07-17  Bruno Haible  <bruno@clisp.org>
81800
81801         * m4/getnline.m4: New file.
81802
81803 2003-07-17  Bruno Haible  <bruno@clisp.org>
81804
81805         * m4/Makefile.am.in: Remove file.
81806         * m4/Makefile.am: Remove file.
81807         * m4/Makefile.in: Remove file.
81808
81809 2003-07-17  Bruno Haible  <bruno@clisp.org>
81810
81811         * lib/getnline.h: New file.
81812         * lib/getnline.c: New file.
81813         * lib/getndelim2.c: New file, extracted from getline.c.
81814         (getndelim2): Renamed from getdelim2, with added nmax argument.
81815         * lib/getline.c: Include getndelim2.c.
81816         (getdelim2): Moved out to getndelim2.c.
81817         (getline, getdelim): Update.
81818
81819 2003-07-17  Bruno Haible  <bruno@clisp.org>
81820
81821         * lib/Makefile.am: Remove file.
81822         * lib/Makefile.in: Remove file.
81823
81824 2003-07-17  Bruno Haible  <bruno@clisp.org>
81825
81826         * configure.in: Remove file.
81827         * Makefile.in: Remove file.
81828
81829 2003-07-17  Bruno Haible  <bruno@clisp.org>
81830
81831         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81832
81833 2003-07-16  Karl Berry  <karl@gnu.org>
81834
81835         * config/srclist-update: was running fixlicense twice, which caused
81836                 texinfo.tex to be nullified for some reason.  Simplify,
81837                 $gplsrc is no longer needed as far as I can see?
81838
81839 2003-07-16  Jim Meyering  <jim@meyering.net>
81840
81841         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81842
81843 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81844
81845         * config/srclist.txt: Get the following files from gettext-runtime/intl
81846         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81847         ref-del.sin.  From Bruno Haible.
81848         * config/srclist-update (fixfile): Change grep pattern again, since the
81849         previous fix didn't work (there was another trailing $).  Use
81850         '[$]' to escape the $s.
81851
81852 2003-07-15  Karl Berry  <karl@gnu.org>
81853
81854         * lib/vasnprintf.c: update from gettext.
81855
81856 2003-07-15  Karl Berry  <karl@gnu.org>
81857
81858         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81859         gets expanded when surrounded by '$'.
81860
81861 2003-07-15  Jim Meyering  <jim@meyering.net>
81862
81863         * modules/save-cwd: Don't depend on error.  From Derek Price.
81864
81865 2003-07-15  Jim Meyering  <jim@meyering.net>
81866
81867         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81868
81869 2003-07-14  Simon Josefsson  <jas@extundo.com>
81870
81871         * modules/mempcpy: New file.
81872         * MODULES.html.sh (func_all_modules): Add mempcpy.
81873
81874 2003-07-14  Simon Josefsson  <jas@extundo.com>
81875
81876         * m4/mempcpy.m4: New file.
81877
81878 2003-07-14  Simon Josefsson  <jas@extundo.com>
81879
81880         * lib/mempcpy.h: New file.
81881         * lib/mempcpy.c: New file.
81882
81883 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81884
81885         * modules/getdate, modules/posixtm: Depend on mktime.
81886
81887 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81888
81889         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
81890         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
81891         unicodeio.c, unicodeio.h, unlocked-io.h:
81892         Switch from LGPL to GPL.
81893
81894 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81895
81896         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
81897         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
81898         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
81899         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
81900         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
81901         updated automatically by ../config/srclist-update.  This changes
81902         their license from LPGL to GPL.
81903
81904 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81905
81906         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
81907         assumed to refer to the root of the most recent stable gettext version.
81908         * config/srclistvars.sh: Add defaults for eggert.
81909         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
81910         Match "This program" as well as "The program".  This is needed
81911         for gettext.
81912
81913 2003-07-14  Jim Meyering  <jim@meyering.net>
81914
81915         Don't emit diagnostics.  Let callers do that.
81916         * lib/save-cwd.c: Don't include "error.h".
81917         (save_cwd): Don't call error.  Ensure that errno is valid
81918         when returning nonzero.
81919
81920         * lib/save-cwd.h (restore_cwd): Update prototype.
81921         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81922         Simplify.  Don't call error upon failure.  Let callers do that.
81923         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81924         when auditing is enabled.  But don't bother updating the #if.
81925
81926 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81927
81928         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81929         it breaks C++ compilation.
81930         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81931
81932 2003-07-10  Simon Josefsson  <jas@extundo.com>
81933
81934         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81935
81936 2003-07-10  Jim Meyering  <jim@meyering.net>
81937
81938         * m4/clock_time.m4: Remove trailing blank.
81939         * m4/intmax_t.m4: Likewise.
81940
81941 2003-07-10  Jim Meyering  <jim@meyering.net>
81942
81943         * lib/vasnprintf.c: Remove trailing blanks.
81944         Make cpp indentation consistent.
81945
81946 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81947
81948         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81949         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81950         Switch from LGPL to GPL.
81951
81952 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81953
81954         * config/srclist.txt: Sort sublists.  Add
81955         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81956         that differ from gnulib for one reason or another; we'd like this list
81957         to be smaller but for now let's document what we have.
81958
81959 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81960
81961         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81962         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81963         and sweeter "eval x=$x".
81964         * config/srclist.txt: Get lib/argp* from glibc.
81965
81966 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81967
81968         * lib/mktime.c: Fix some boundary cases and remove need for floating
81969         point.
81970
81971         Issue a compile-time diagnostic if time_t is floating point, or if
81972         two's complement arithmetic is not in effect, or if arithmetic
81973         right shift does not propagate the sign.  These assumptions were
81974         all in the original code but they weren't checked.
81975
81976         (TIME_T_MIDPOINT, verify): New macros.
81977         (__isleap): Remove; it has integer overflow problems.
81978         (leapyear): New function, without those problems.
81979         (ydhms_tm_diff): Remove; splitting into two parts.
81980         (ydhms_diff): New function, containing the arithmetic part of
81981         the old ydhms_tm_diff function.  Issue a compile-time
81982         diagnostic if we are not using C99 integer division.
81983         Avoid casts when possible.
81984         (guess_time_tm): New function, containing the checking part of
81985         the old ydhms_tm_diff function.  Return the new value, rather than
81986         the difference between it and the old.  Accept a new argument T
81987         so that *T specifies the old value.  Check for overflow in the result.
81988
81989         (__mktime_internal): Use a time_t offset, not a long int offset.
81990         This undoes the 2003-06-04 change, which is no longer needed now
81991         that we have better overflow checking.
81992         (localtime_offset): Likewise.
81993
81994         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81995         and long are 64-bit but int is only 32-bit.
81996         (ydhms_diff): Use long int to store year1 and yday1.
81997         Issue a compile-time diagnostic if long int is not wide enough.
81998
81999         (__mktime_internal): Use long int to store adjusted year and yday.
82000         Use plain C rather than preprocessor commands, if that doesn't
82001         affect efficiency.
82002         Check for overflow (and try to repair) after each probe
82003         rather than checking only at the very end.  This avoids some bugs
82004         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82005         does not equal GMT offset at maximum time).
82006         Use integer to check for overflow rather than floating point; this
82007         is more portable to non-IEEE hosts, and is a tad faster.
82008         When we detect that we are oscillating between two values,
82009         don't check whether tm_isdst has the requested value, since
82010         we already know the answer.  When tm_isdst has the wrong value,
82011         use a different heuristic to find the right one, based on the
82012         extreme values actually observed in practice in tz2003a,
82013         rather than the (overly optimistic) "previous 3 calendar quarters".
82014
82015         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82016         "T const" to accommodate glibc style.
82017         (check_result): Use less-confusing report format.  "long" -> "long int.
82018         (main): Likewise.
82019         Don't loop if the iteration overflows time_t.
82020         Allow a negative step in the iteration.
82021
82022 2003-07-06  Karl Berry  <karl@gnu.org>
82023
82024         * config/depcomp: update from automake.
82025         * config/config.sub: update from prep.
82026
82027 2003-07-03  Karl Berry  <karl@gnu.org>
82028
82029         * config/config.guess: update from prep.
82030
82031 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82032
82033         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82034         xreadlink.c now includes it unconditionally.
82035
82036 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82037
82038         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82039         having it depend on HAVE_SYS_TYPES_H.
82040
82041 2003-07-01  Bruno Haible  <bruno@clisp.org>
82042
82043         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82044         <sys/types.h> should be sufficient.
82045         Reported by Paul Eggert.
82046
82047 2003-06-26  Karl Berry  <karl@gnu.org>
82048
82049         * config/depcomp: update from automake.
82050
82051 2003-06-26  Bruno Haible  <bruno@clisp.org>
82052
82053         * modules/human: Depend on module stdbool.
82054
82055 2003-06-25  Bruno Haible  <bruno@clisp.org>
82056
82057         * modules/readlink: New file.
82058         * modules/xreadlink: Depend on it.
82059         * MODULES.html.sh (func_all_modules): Add readlink.
82060
82061 2003-06-25  Bruno Haible  <bruno@clisp.org>
82062
82063         * m4/readlink.m4: New file.
82064
82065 2003-06-25  Bruno Haible  <bruno@clisp.org>
82066
82067         * lib/readlink.c: New file.
82068
82069 2003-06-22  Karl Berry  <karl@gnu.org>
82070
82071         * config/srclist.txt: update mkinstalldirs from automake.
82072         * config/mkinstalldirs: update.
82073
82074 2003-06-22  Bruno Haible  <bruno@clisp.org>
82075
82076         Portability to mingw32.
82077         * m4/ssize_t.m4: New file, from GNU gettext.
82078         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82079         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82080
82081 2003-06-22  Bruno Haible  <bruno@clisp.org>
82082
82083         * modules/safe-read: Add m4/ssize_t.m4.
82084         * modules/xreadlink: Add m4/ssize_t.m4.
82085
82086 2003-06-20  Bruno Haible  <bruno@clisp.org>
82087
82088         Assume C89, so PARAMS isn't needed.
82089         * lib/unicodeio.h (PARAMS): Remove.
82090         * lib/unicodeio.c: Don't use PARAMS.
82091
82092 2003-06-18  Karl Berry  <karl@gnu.org>
82093
82094         * config/config.{guess,sub}: update from prep.
82095
82096 2003-06-18  Jim Meyering  <jim@meyering.net>
82097
82098         Merge changes from coreutils.
82099         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82100         Remove explicit declarations of xmalloc and realloc.
82101         Include xalloc.h.
82102         (read_utmp): Remove anachronistic cast of xmalloc.
82103
82104 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82105
82106         Assume C89, so PARAMS isn't needed.
82107         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82108         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82109         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82110         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82111         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82112         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82113         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82114         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82115         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82116         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82117         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82118         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82119         no longer needed. Anyway, config.h should always be included before any
82120         other file.
82121
82122 2003-06-11  Simon Josefsson  <jas@extundo.com>
82123
82124         * modules/sysexits: New file.
82125         * MODULES.html.sh (func_all_modules): Add sysexits.
82126
82127 2003-06-11  Simon Josefsson  <jas@extundo.com>
82128
82129         * lib/sysexit_.h: New file.
82130
82131 2003-06-11  Derek Price  <derek@ximbiot.com>
82132
82133         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82134         necessary.
82135
82136 2003-06-11  Bruno Haible  <bruno@clisp.org>
82137
82138         * m4/sysexits.m4: New file.
82139
82140 2003-06-10  Simon Josefsson  <jas@extundo.com>
82141
82142         * lib/argp.h: New file, from glibc.
82143         * lib/argp-ba.c: New file, from glibc.
82144         * lib/argp-eexst.c: New file, from glibc.
82145         * lib/argp-fmtstream.c: New file, from glibc.
82146         * lib/argp-fmtstream.h: New file, from glibc.
82147         * lib/argp-fs-xinl.c: New file, from glibc.
82148         * lib/argp-help.c: New file, from glibc.
82149         * lib/argp-namefrob.h: New file, from glibc.
82150         * lib/argp-parse.c: New file, from glibc.
82151         * lib/argp-pv.c: New file, from glibc.
82152         * lib/argp-pvh.c: New file, from glibc.
82153         * lib/argp-xinl.c: New file, from glibc.
82154
82155 2003-06-10  Simon Josefsson  <jas@extundo.com>
82156
82157         * modules/strchrnul: New file.
82158
82159 2003-06-10  Simon Josefsson  <jas@extundo.com>
82160
82161         * modules/argp: New file.
82162
82163 2003-06-10  Simon Josefsson  <jas@extundo.com>
82164
82165         * m4/strchrnul.m4: New file.
82166
82167 2003-06-10  Simon Josefsson  <jas@extundo.com>
82168
82169         * lib/strchrnul.h: New file.
82170         * lib/strchrnul.c: New file.
82171
82172 2003-06-10  Bruno Haible  <bruno@clisp.org>
82173
82174         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82175
82176 2003-06-07  Karl Berry  <karl@gnu.org>
82177
82178         * config/config.{guess,sub}: update from prep.
82179
82180 2003-06-07  Jim Meyering  <jim@meyering.net>
82181
82182         * modules/strtod: Use $(...) notation, not @...@ for
82183         AC_REPLACE'd variables.
82184         * modules/localcharset: Likewise.
82185
82186 2003-06-07  Jim Meyering  <jim@meyering.net>
82187
82188         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82189         in place of my name in the copyright comment.
82190         Remove definition and uses of __P.
82191
82192         From coreutils.
82193         * lib/stat.c: Don't declare xmalloc explicitly.
82194         Instead, include "xalloc.h".
82195         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82196         xrealloc, and xcalloc return values.
82197         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82198         Improve comment.
82199         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82200
82201 2003-06-07  Bruno Haible  <bruno@clisp.org>
82202
82203         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82204         avoid AC_CONFIG_LINKS.
82205         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82206         fnmatch.h, to avoid AC_CONFIG_LINKS.
82207         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82208
82209 2003-06-07  Bruno Haible  <bruno@clisp.org>
82210
82211         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82212         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82213         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82214         directory.
82215         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82216         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82217         directory.
82218
82219 2003-06-06  Jim Meyering  <jim@meyering.net>
82220
82221         Merge from coreutils.
82222         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82223         Consolidate declarations and initializations of *_base* locals.
82224
82225         Merge from coreutils.
82226         This avoids a core dump on systems without GNU putenv,
82227         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82228         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82229         (unsetenv): New static function, from GNU libc.
82230         (rpl_putenv): Use it.
82231
82232         * lib/modechange.c: Remove trailing blanks.
82233
82234         Merge from coreutils.
82235         * lib/fsusage.c: Remove declaration of statfs.
82236         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82237
82238         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82239
82240 2003-06-06  Jim Meyering  <jim@meyering.net>
82241
82242         * lib/stdbool_.h: Renamed from stdbool.h.in.
82243
82244 2003-06-06  Jim Meyering  <jim@meyering.net>
82245             Bruno Haible  <bruno@clisp.org>
82246
82247         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82248         Adjust Makefile.am snippet not to redirect directly to target.
82249         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82250
82251 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82252
82253         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82254         mismatch, look in future quarters as well as past.  This fixes a
82255         bug when processing fall-backwards gaps immediately after a long
82256         period of daylight-saving time.
82257
82258         * lib/mktime.c: Assume freestanding C89 or better.
82259         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82260         (__P): Remove; not used.
82261         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82262         (mktime, not_equal_tm, print_tm, check_result,
82263         main): Use prototypes.  Use const * where appropriate.
82264         (main): Fix typo in testing code that uncovered by above changes.
82265         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82266
82267 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82268
82269         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82270         locale.h, localeconv.  This merges changes from coreutils.
82271
82272         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82273         It can be removed after the next Autoconf is released.
82274         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82275         needed.
82276
82277 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82278
82279         * lib/mktime.c: Fix Debian bug 177940
82280         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82281         (localtime_offset): Now long int, not time_t, because we want it
82282         to be guaranteed to be signed.  All uses changed.
82283         (__mktime_internal): If overflow would occur when adding offset,
82284         don't add it.
82285
82286         Merge 'human' changes from coreutils.  Rewrite to support
82287         locale-specific notations like thousands separators.
82288         * lib/human.c: Simplify authorship notice.
82289         Include human.h immediately after config.h.
82290         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82291         <limits.h>: Do not include, since human.h does.
82292         (SIZE_MAX, UINTMAX_MAX): New macros.
82293         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82294         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82295         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82296         (power_letter): Renamed from suffixes.
82297         (generate_suffix_backwards): Remove.
82298         (adjust_value): Now takes int style (because of human.h changes)
82299         and long double value (for greater precision on some platforms).
82300         (group_number): New function.
82301         (human_readable): Use it.  Use integer options, not enum.
82302         Put the options before the sizes in the arg list.
82303         Support all the new options.
82304         The old human_readable function has been removed;
82305         use inttostr.h instead.
82306         (human_readable, default_block_size, humblock):
82307         Use uintmax_t, not int, for block sizes.
82308         (human_readable_inexact, block_size_types): Remove.
82309         (block_size_opts): New constant.
82310         (human_options): Renamed from human_block_size, with new signature
82311         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82312         * lib/human.h: Add copyright and authorship notice.
82313         Include <limits.h> and <stdbool.h> unconditionally.
82314         (PARAMS): Remove.  All uses removed.
82315         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82316         (enum human_inexact_style): Remove tag; now a nameless enum.
82317         (human_floor, human_ceiling, human_round_to_even): Now have
82318         values 2, 0, 1 rather than -1, 1, 0.
82319         (human_group_digits, human_suppress_point_zero, human_autoscale,
82320         human_base_1024, human_SI, human_B): New constants.
82321         (human_readable_inexact, human_block_size): Remove.
82322         (human_readable): Size args are now uintmax_t, not int.
82323         (human_options): New decl.
82324
82325         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82326         unnecessary now that we assume C89 or better.  This change
82327         imported from coreutils.
82328
82329         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82330         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82331         in the 2003-05-30 sync from glibc.
82332
82333         .h files should stand alone, but we shouldn't include <sys/types.h>
82334         if we can get away with just <stddef.h>.
82335
82336         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82337         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82338         rather than <sys/types.h>, as we merely need size_t.
82339         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82340         to get size_t.
82341         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82342         Include <stdio.h>, to get FILE.
82343         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82344         memcasecmp.h has included <stddef.h> and all we need is size_t.
82345         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82346         our interface, instead of including <sys/types.h>
82347
82348 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82349
82350         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82351         now, as glibc mktime is buggy on non-glibc systems.
82352
82353 2003-06-03  Karl Berry  <karl@gnu.org>
82354
82355         * config/config.sub: update from prep.
82356
82357 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82358
82359         [from coreutils]
82360         Fix some minor time-related bugs with POSIX time arguments.
82361         Some valid time stamps were being rejected (notably -1, and
82362         time stamps before 1900 on 64-bit hosts).  And some invalid
82363         time stamps were being accepted, e.g. September 31.
82364
82365         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82366         that we can return (time_t) -1 successfully.
82367         * lib/posixtm.c: Likewise.
82368         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82369         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82370         (t): Remove static var.
82371         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82372         of static var.  All uses changed.
82373         (year): Do not reject years before 1900; they can occur with
82374         64-bit time_t.
82375         (posix_time_parse): Do not check for out-of-range components;
82376         that is now the caller's responsibility, since our checks were
82377         only approximations.
82378         (posixtime): Use mktime to check for out-of-range components,
82379         since it knows them exactly.
82380         If mktime returns (time_t) -1, check whether an error actually occurred
82381         by invoking localtime on -1.
82382         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82383         posixtime failures better.
82384         Improve the test data (in comments only).
82385
82386 2003-06-02  Karl Berry  <karl@gnu.org>
82387
82388         * config/mkinstalldirs (version): new variable.
82389         (--version): new option.
82390         (usage): improve message.
82391
82392 2003-05-30  Karl Berry  <karl@gnu.org>
82393
82394         * lib/mktime.c: update from libc.
82395
82396 2003-05-30  Bruno Haible  <bruno@clisp.org>
82397
82398         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82399         * config/config.rpath: Upgrade to gettext-0.12.1.
82400
82401 2003-05-30  Bruno Haible  <bruno@clisp.org>
82402
82403         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82404         * m4/nls.m4: New file, from gettext-0.12.1.
82405         * m4/po.m4: New file, from gettext-0.12.1.
82406         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82407
82408 2003-05-30  Bruno Haible  <bruno@clisp.org>
82409
82410         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82411         * lib/localcharset.h: Likewise.
82412         * lib/localcharset.c: Likewise.
82413
82414 2003-05-29  Karl Berry  <karl@gnu.org>
82415
82416         * config/config.rpath: update from gettext.
82417
82418 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82419
82420         Assume the headers required for C89 freestanding compilers.
82421         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82422         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82423         * m4/human.m4 (gl_HUMAN): Likewise.
82424         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82425         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82426         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82427         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82428         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82429         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82430
82431 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82432
82433         Assume the headers required for C89 freestanding compilers.
82434         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82435         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82436         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82437         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82438         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82439         define, since <limits.h> is guaranteed to do that.
82440         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82441         * lib/exclude.c: Include <stdbool.h> unconditionally.
82442         * lib/tempname.c: Include <stddef.h> unconditionally.
82443         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82444         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82445         <stddef.h> does that.
82446         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82447         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82448         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82449         needed.
82450         * lib/xstrtol.c: Likewise.
82451         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82452         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82453
82454         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82455         warnings on some platforms.
82456
82457         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82458         arbitrarily.
82459
82460 2003-05-26  Jim Meyering  <jim@meyering.net>
82461
82462         Merge in a change from coreutils:
82463         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82464         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82465         that condition, rather than `-1' which is slightly misleading.
82466         Change the name of the cache variable to have the gl_ prefix.
82467         Prompted by a patch from Richard Dawe for DJGPP.
82468
82469 2003-05-24  Karl Berry  <karl@gnu.org>
82470
82471         * config/config.guess: update from prep.
82472
82473 2003-05-22  Karl Berry  <karl@gnu.org>
82474
82475         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82476
82477 2003-05-20  Karl Berry  <karl@gnu.org>
82478
82479         * config/config.guess: update from prep.
82480
82481 2003-05-18  Karl Berry  <karl@gnu.org>
82482
82483         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82484         might actually be set by the user.
82485
82486         * config/depcomp, install-sh, mdate-sh: update from automake.
82487
82488 2003-05-17  Bruno Haible  <bruno@clisp.org>
82489
82490         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82491         invalid expansion for AC_EGREP_CPP.
82492         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82493         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82494         Suggested by Akim Demaille <akim@epita.fr> in
82495         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82496
82497 2003-05-12  Jim Meyering  <jim@meyering.net>
82498
82499         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82500         the space-padded-by-default conversion specifiers, %e, %k, %l.
82501
82502 2003-05-12  Bruno Haible  <bruno@clisp.org>
82503
82504         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82505         the string is longer than 4 KB.
82506
82507 2003-05-11  Karl Berry  <karl@gnu.org>
82508
82509         * config/config.{guess,sub}: update from prep.
82510
82511 2003-05-09  Bruno Haible  <bruno@clisp.org>
82512
82513         * modules/error: Add m4/strerror_r.m4 to file list.
82514
82515 2003-05-03  Bruno Haible  <bruno@clisp.org>
82516
82517         Upgrade to Unicode-4.0.
82518         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82519         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82520         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82521         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82522         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82523         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82524         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82525         Change width of U+E0100..U+E01EF from 1 to 0.
82526
82527 2003-04-25  Jim Meyering  <jim@meyering.net>
82528
82529         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82530         of type size_t, not int.
82531
82532 2003-04-25  Bruno Haible  <bruno@clisp.org>
82533
82534         * lib/copy-file.c: Include <stddef.h>, for size_t.
82535
82536 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82537
82538         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82539         code which expansion is under static control.  Patch imported from
82540         Akim Demaille's patch to Bison; see
82541         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82542
82543 2003-04-14  Bruno Haible  <bruno@clisp.org>
82544
82545         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82546
82547 2003-04-11  Jim Meyering  <jim@meyering.net>
82548
82549         Merge changes from Coreutils.
82550
82551         2003-03-22  Jim Meyering  <jim@meyering.net>
82552
82553         * lib/strftime.c (widen): Cast alloca return value to proper type.
82554
82555         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82556
82557         From GNU libc.
82558         * lib/strftime.c (my_strftime): Handle very large width
82559         specifications for numeric values correctly.  Improve checks for
82560         overflow.
82561
82562         2003-01-19  Jim Meyering  <jim@meyering.net>
82563
82564         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82565         definitions.
82566         (nl_get_alt_digit) [! defined my_strftime]: Define.
82567         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82568         _nl_get_alt_digit and _nl_get_walt_digit.
82569
82570         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82571         libc. These changes have no effect outside of _LIBC.
82572
82573 2003-04-10  Bruno Haible  <bruno@clisp.org>
82574
82575         * modules/findprog: New file.
82576         * MODULES.html.sh (func_all_modules): Add it.
82577
82578 2003-04-10  Bruno Haible  <bruno@clisp.org>
82579
82580         * m4/findprog.m4: New file.
82581         * m4/eaccess.m4: New file.
82582
82583 2003-04-10  Bruno Haible  <bruno@clisp.org>
82584
82585         * lib/findprog.h: New file, from GNU gettext.
82586         * lib/findprog.c: New file, from GNU gettext.
82587
82588 2003-04-05  Jim Meyering  <jim@meyering.net>
82589
82590         Merge changes from Coreutils.
82591
82592         * lib/exclude.h (PARAMS): Remove definition and uses.
82593         * lib/exclude.c: Remove uses of `PARAMS'.
82594
82595         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82596         Add test-cases for DOS filenames. Declare program_name.
82597         (main): Set up program_name.  Patch by Rich Dawe.
82598
82599         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82600         error from mntctl.
82601         Use mntctl's return value to drive the entry-processing loop, since
82602         we can't rely on the value of the vmt_length member in the last
82603         entry.  On some systems doing so could result in exhausting
82604         virtual memory.  Based in part on a patch from Mike Jetzer.
82605
82606 2003-04-04  Bruno Haible  <bruno@clisp.org>
82607
82608         * modules/linebreak: New file.
82609         * MODULES.html.sh (func_all_modules): Add it.
82610
82611 2003-04-04  Bruno Haible  <bruno@clisp.org>
82612
82613         * m4/linebreak.m4: New file.
82614
82615 2003-04-04  Bruno Haible  <bruno@clisp.org>
82616
82617         * lib/linebreak.h: New file, from GNU gettext.
82618         * lib/linebreak.c: New file, from GNU gettext with slight
82619         modifications.
82620         * lib/lbrkprop.h: New file, from GNU gettext.
82621
82622 2003-04-03  Bruno Haible  <bruno@clisp.org>
82623
82624         * modules/utf8-ucs4: New file.
82625         * modules/utf16-ucs4: New file.
82626         * modules/ucs4-utf8: New file.
82627         * modules/ucs4-utf16: New file.
82628         * MODULES.html.sh (func_all_modules): Add them.
82629
82630 2003-04-03  Bruno Haible  <bruno@clisp.org>
82631
82632         * m4/utf-ucs4.m4: New file.
82633         * m4/ucs4-utf.m4: New file.
82634
82635 2003-04-03  Bruno Haible  <bruno@clisp.org>
82636
82637         * lib/utf8-ucs4.h: New file, from GNU gettext.
82638         * lib/utf16-ucs4.h: New file, from GNU gettext.
82639         * lib/ucs4-utf8.h: New file, from GNU gettext.
82640         * lib/ucs4-utf16.h: New file, from GNU gettext.
82641
82642 2003-04-02  Bruno Haible  <bruno@clisp.org>
82643
82644         * modules/binary-io: New file.
82645         * MODULES.html.sh (func_all_modules): Add it.
82646
82647 2003-04-02  Bruno Haible  <bruno@clisp.org>
82648
82649         * lib/binary-io.h: New file, from GNU gettext.
82650
82651 2003-04-01  Bruno Haible  <bruno@clisp.org>
82652
82653         * modules/pathname: New file.
82654         * MODULES.html.sh (func_all_modules): Add it.
82655
82656 2003-04-01  Bruno Haible  <bruno@clisp.org>
82657
82658         * lib/pathname.h: New file, from GNU gettext.
82659         * lib/concatpath.c: New file, from GNU gettext.
82660
82661 2003-03-30  Bruno Haible  <bruno@clisp.org>
82662
82663         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82664
82665 2003-03-30  Bruno Haible  <bruno@clisp.org>
82666
82667         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82668         function chown() doesn't exist.
82669
82670 2003-03-28  Bruno Haible  <bruno@clisp.org>
82671
82672         * modules/copy-file: New file.
82673         * MODULES.html.sh (func_all_modules): Add it.
82674
82675 2003-03-28  Bruno Haible  <bruno@clisp.org>
82676
82677         * m4/copy-file.m4: New file.
82678
82679 2003-03-28  Bruno Haible  <bruno@clisp.org>
82680
82681         * lib/copy-file.h: New file, from GNU gettext.
82682         * lib/copy-file.c: New file, from GNU gettext.
82683
82684 2003-03-18  Jim Meyering  <jim@meyering.net>
82685
82686         * lib/quote.c (quote_n): Fix typo in comment.
82687
82688 2003-03-18  Bruno Haible  <bruno@clisp.org>
82689
82690         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82691         checking.
82692         * m4/onceonly_2_57.m4: Likewise.
82693
82694 2003-03-17  Bruno Haible  <bruno@clisp.org>
82695
82696         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82697         (m4_quote): Remove macro.
82698         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82699
82700 2003-03-14  Jim Meyering  <jim@meyering.net>
82701
82702         Merge changes from Coreutils.
82703         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82704         to be const, in order to avoid warnings.
82705         (obstack_room): Likewise.
82706         (obstack_empty_p): Likewise.
82707
82708 2003-03-14  Bruno Haible  <bruno@clisp.org>
82709
82710         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82711         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82712
82713 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82714
82715         Merge changes from Bison.
82716         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82717         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82718         when compiling Bison 1.875's `bitset bset = obstack_alloc
82719         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82720         * lib/hash.c: Include <stdbool.h> unconditionally.
82721
82722 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82723
82724         * m4/onceonly.m4 (m4_quote): New macro.
82725         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82726         Quote AC_FOREACH variable-expansions properly.
82727
82728 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82729
82730         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82731
82732 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82733
82734         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82735         Reported by Bruce Becker; see:
82736         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82737
82738 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82739             Bruno Haible  <bruno@clisp.org>
82740
82741         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82742         Reported by John Hughes, see
82743         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82744
82745 2003-02-20  Bruno Haible  <bruno@clisp.org>
82746
82747         * MODULES.html.sh (func_all_modules): Add poll.
82748
82749 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82750
82751         * modules/poll: New file.
82752
82753 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82754
82755         * lib/poll_.h: New file.
82756         * lib/poll.c: New file.
82757
82758 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82759
82760         * m4/poll.m4: New file.
82761
82762 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82763
82764         * modules/mathl: New file.
82765
82766 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82767
82768         * lib/mathl.h: New file.
82769         * lib/acosl.c: New file.
82770         * lib/asinl.c: New file.
82771         * lib/atanl.c: New file.
82772         * lib/ceill.c: New file.
82773         * lib/cosl.c: New file.
82774         * lib/expl.c: New file.
82775         * lib/floorl.c: New file.
82776         * lib/frexpl.c: New file.
82777         * lib/ldexpl.c: New file.
82778         * lib/logl.c: New file.
82779         * lib/sincosl.c: New file.
82780         * lib/sinl.c: New file.
82781         * lib/sqrtl.c: New file.
82782         * lib/tanl.c: New file.
82783         * lib/trigl.c: New file.
82784         * lib/trigl.h: New file.
82785
82786 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82787
82788         * m4/mathl.m4: New file.
82789
82790 2003-02-18  Bruno Haible  <bruno@clisp.org>
82791
82792         * MODULES.html.sh (func_all_modules): Add mathl.
82793
82794 2003-02-17  Bruno Haible  <bruno@clisp.org>
82795
82796         * modules/mkdtemp: New module.
82797         * MODULES.html.sh (func_all_modules): Add it.
82798
82799 2003-02-17  Bruno Haible  <bruno@clisp.org>
82800
82801         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82802
82803 2003-02-17  Bruno Haible  <bruno@clisp.org>
82804
82805         * lib/mkdtemp.h: New file, from GNU gettext.
82806         * lib/mkdtemp.c: New file, from GNU gettext.
82807
82808 2003-02-02  Jim Meyering  <jim@meyering.net>
82809
82810         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82811         e.g. glibc-2.2.93.
82812
82813 2003-01-31  Bruno Haible  <bruno@clisp.org>
82814
82815         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82816         'rpl_rename'.
82817         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82818         'rpl_strnlen'.
82819         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82820         'rpl_strtod'.
82821         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82822         'rpl_utime'.
82823
82824 2003-01-31  Bruno Haible  <bruno@clisp.org>
82825
82826         * lib/rename.c: #undef rename before defining rpl_rename.
82827         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82828
82829 2003-01-30  Bruno Haible  <bruno@clisp.org>
82830
82831         * modules/vasnprintf, modules/vasprintf: New modules.
82832         * MODULES.html.sh (func_all_modules): Add them.
82833
82834 2003-01-30  Bruno Haible  <bruno@clisp.org>
82835
82836         * m4/signed.m4: New file, from GNU gettext.
82837         * m4/longdouble.m4: New file, from GNU gettext.
82838         * m4/wchar_t.m4: New file, from GNU gettext.
82839         * m4/wint_t.m4: New file, from GNU gettext.
82840         * m4/vasnprintf.m4: New file.
82841         * m4/vasprintf.m4: New file.
82842
82843 2003-01-30  Bruno Haible  <bruno@clisp.org>
82844
82845         * lib/printf-args.h: New file, from GNU gettext.
82846         * lib/printf-args.c: New file, from GNU gettext.
82847         * lib/printf-parse.h: New file, from GNU gettext.
82848         * lib/printf-parse.c: New file, from GNU gettext.
82849         * lib/vasnprintf.h: New file, from GNU gettext.
82850         * lib/vasnprintf.c: New file, from GNU gettext.
82851         * lib/asnprintf.c: New file, from GNU gettext.
82852         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82853         * lib/vasprintf.c: New file, from GNU gettext.
82854         * lib/asprintf.c: New file, from GNU gettext.
82855
82856 2003-01-29  Bruno Haible  <bruno@clisp.org>
82857
82858         * modules/stpncpy: New module.
82859         * MODULES.html.sh (func_all_modules): Add it.
82860
82861 2003-01-29  Bruno Haible  <bruno@clisp.org>
82862
82863         * m4/stpncpy.m4: New file.
82864
82865 2003-01-29  Bruno Haible  <bruno@clisp.org>
82866
82867         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82868         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82869
82870 2003-01-28  Bruno Haible  <bruno@clisp.org>
82871
82872         * modules/c-ctype: New module.
82873         * MODULES.html.sh (func_all_modules): Add it.
82874
82875 2003-01-28  Bruno Haible  <bruno@clisp.org>
82876
82877         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
82878         Paul Eggert.
82879         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
82880         Paul Eggert.
82881
82882 2003-01-27  Bruno Haible  <bruno@clisp.org>
82883
82884         * modules/xsetenv: New module.
82885         * MODULES.html.sh (func_all_modules): Add it.
82886
82887 2003-01-27  Bruno Haible  <bruno@clisp.org>
82888
82889         * lib/xsetenv.h: New file, from GNU gettext.
82890         * lib/xsetenv.c: New file, from GNU gettext.
82891
82892 2003-01-23  Jim Meyering  <jim@meyering.net>
82893
82894         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
82895         from working on systems without dirfd (at least Irix and OSF1/Tru64).
82896
82897 2003-01-23  Bruno Haible  <bruno@clisp.org>
82898
82899         * modules/minmax: New module.
82900         * MODULES.html.sh (func_all_modules): Add it.
82901
82902 2003-01-23  Bruno Haible  <bruno@clisp.org>
82903
82904         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
82905         Eggert.
82906
82907 2003-01-22  Bruno Haible  <bruno@clisp.org>
82908
82909         * modules/exit: New module.
82910         * MODULES.html.sh (func_all_modules): Add it.
82911
82912 2003-01-22  Bruno Haible  <bruno@clisp.org>
82913
82914         * lib/exit.h: New file, from GNU gettext.
82915
82916 2003-01-19  Bruno Haible  <bruno@clisp.org>
82917
82918         * gnulib-tool: Recognize option --extract-maintainer.
82919         (func_get_maintainer): New function.
82920         * modules/*: Add Maintainer entry.
82921
82922 2003-01-16  Jim Meyering  <jim@meyering.net>
82923
82924         * m4/regex.m4: The `regex' struct is both input and output.
82925         Initialize it before each use.  Patch by Tim Waugh.
82926
82927 2003-01-16  Bruno Haible  <bruno@clisp.org>
82928
82929         * MODULES.html.sh: Add a table of contents. Add the module name as
82930         leftmost column. Add hyperlinks.
82931
82932 2003-01-15  Bruno Haible  <bruno@clisp.org>
82933
82934         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82935
82936 2003-01-15  Bruno Haible  <bruno@clisp.org>
82937
82938         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82939         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82940         suffix.
82941
82942 2003-01-15  Bruno Haible  <bruno@clisp.org>
82943
82944         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82945
82946 2003-01-15  Bruno Haible  <bruno@clisp.org>
82947
82948         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82949         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82950
82951 2003-01-14  Jim Meyering  <jim@meyering.net>
82952
82953         * lib/same.c (same_name): Tweak a comment.
82954
82955 2003-01-14  Bruno Haible  <bruno@clisp.org>
82956
82957         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82958         when a string comparison is sufficient.
82959
82960 2003-01-14  Bruno Haible  <bruno@clisp.org>
82961
82962         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82963         'unsigned int'.
82964
82965 2003-01-14  Bruno Haible  <bruno@clisp.org>
82966
82967         * lib/hash-pjw.c: Add comment about low quality of this function.
82968
82969 2003-01-13  Bruno Haible  <bruno@clisp.org>
82970
82971         * modules/stpcpy: Distribute lib/stpcpy.h.
82972         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82973
82974 2003-01-13  Bruno Haible  <bruno@clisp.org>
82975
82976         * modules/*: Add a description.
82977         * modules/strpbrk: Fix Makefile.am snippet.
82978         * modules/strtoimax: Fix dependencies.
82979         * modules/strtoumax: Likewise.
82980
82981 2003-01-13  Bruno Haible  <bruno@clisp.org>
82982
82983         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82984         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82985         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82986
82987 2003-01-13  Bruno Haible  <bruno@clisp.org>
82988
82989         * gnulib-tool (func_create_testdir): Store config/* files in the main
82990         directory.
82991         * config.rpath: Move to ...
82992         * config/config.rpath: ... here.
82993         * modules/gettext: Contains config/config.rpath, not config.rpath.
82994         * modules/iconv: Likewise.
82995
82996 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82997
82998         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82999         to avoid collisions with libcurses and libreadline.
83000
83001         * m4/getstr.m4: Remove.
83002         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83003
83004 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83005
83006         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83007         to avoid collisions with libcurses and libreadline.
83008
83009         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83010         * lib/getstr.h, getstr.c: Remove.
83011         * lib/getline.c: Include "getline.h", to check interface.
83012         Move body of old getstr.c here: this defines MIN_CHUNK and
83013         declares getdelim2, which is renamed from getstr.
83014         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83015
83016         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83017         All uses changed.
83018         * lib/linebuffer.h: Likewise.
83019         (readline): Remove backward-compatibility macro.
83020
83021 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83022
83023         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83024         to avoid collisions with libcurses and libreadline.
83025         * getstr: Remove.
83026         * MODULES.html.sh: Remove getstr.
83027         * modules/getline: Depend on unlocked-io, not getstr.
83028
83029 2003-01-12  Jim Meyering  <jim@meyering.net>
83030
83031         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83032
83033 2003-01-10  Bruno Haible  <bruno@clisp.org>
83034
83035         * modules/alloca: Change Makefile.am requirements. Simplify Include
83036         requirements. Add lib/alloca_.h to file list.
83037
83038 2003-01-10  Bruno Haible  <bruno@clisp.org>
83039
83040         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83041
83042 2003-01-10  Bruno Haible  <bruno@clisp.org>
83043
83044         * lib/alloca_.h: New file.
83045         * lib/getdate.y: Unconditionally include alloca.h.
83046         * lib/makepath.c: Likewise.
83047         * lib/setenv.c: Likewise.
83048         * lib/userspec.c: Likewise.
83049
83050 2003-01-09  Karl Berry  <karl@gnu.org>
83051
83052         * MODULES.html.sh: include `dirname $0` in PATH, to find
83053         gnulib-tool.
83054
83055 2003-01-09  Bruno Haible  <bruno@clisp.org>
83056
83057         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83058         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83059
83060 2003-01-09  Bruno Haible  <bruno@clisp.org>
83061
83062         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83063
83064 2003-01-09  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/stdbool.h.in: New file.
83067
83068 2003-01-09  Bruno Haible  <bruno@clisp.org>
83069
83070         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83071         * MODULES.html.sh: Likewise.
83072
83073 2003-01-08  Jim Meyering  <jim@meyering.net>
83074
83075         * lib/full-write.c: Undefine and define-away `const' after inclusion
83076         of errno.h, not before.  Suggestion from Bruno Haible.
83077
83078 2003-01-08  Bruno Haible  <bruno@clisp.org>
83079
83080         * modules/full-read: Depend on full-write.
83081
83082 2003-01-08  Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/safe-read.c: Include specification header first, to ensure its
83085         selfcontainedness.
83086         * lib/full-write.c: Likewise.
83087
83088 2003-01-07  Jim Meyering  <jim@meyering.net>
83089
83090         * lib/full-write.c: Rework so that it may serve to define full_read,
83091         too.
83092         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83093
83094 2003-01-07  Bruno Haible  <bruno@clisp.org>
83095
83096         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83097         <inttypes.h>.
83098         * lib/xstrtol.h: Likewise.
83099         * lib/xstrtoimax.c: Likewise.
83100         * lib/xstrtoumax.c: Likewise.
83101         * lib/human.h: Likewise.
83102
83103         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83104         on systems that have <inttypes.h> but not <stdint.h>.
83105
83106 2003-01-07  Bruno Haible  <bruno@clisp.org>
83107
83108         * MODULES.html.sh: Add copyright notice.
83109         (missed_files): Omit CVS directory entries.
83110         (func_module): Make it work with sed-3.02.
83111         * MODULES.txt: Remove file.
83112
83113 2003-01-06  Jim Meyering  <jim@meyering.net>
83114
83115         * lib/version-etc.c: Update year in translatable copyright string.
83116
83117 2003-01-03  Karl Berry  <karl@gnu.org>
83118
83119         * config/config.{guess,sub}: update from prep.
83120
83121 2003-01-02  Karl Berry  <karl@gnu.org>
83122
83123         * doc/COPYING.DOC: belatedly updated to 1.2.
83124
83125 2003-01-01  Karl Berry  <karl@gnu.org>
83126
83127         * gnulib-tool (func_verify_module): report module name $module in
83128         error message, not $1.
83129         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83130         be created, only if it doesn't exist.
83131         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83132
83133 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83134
83135         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83136
83137 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83138
83139         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83140         memcmp if strcoll doesn't work.
83141
83142 2002-12-31  Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83145         nonempty.
83146
83147 2002-12-31  Bruno Haible  <bruno@clisp.org>
83148
83149         * lib/memcoll.c (STRCOLL): New macro.
83150         (memcoll): Use it.
83151
83152 2002-12-31  Bruno Haible  <bruno@clisp.org>
83153
83154         * lib/localcharset.h: New file.
83155         * lib/localcharset.c: Include it.
83156         * lib/unicodeio.c: Likewise.
83157
83158 2002-12-31  Bruno Haible  <bruno@clisp.org>
83159
83160         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83161         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83162
83163 2002-12-31  Bruno Haible  <bruno@clisp.org>
83164
83165         * lib/getline.h: Include <stddef.h>, for size_t.
83166
83167         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83168         * lib/unicodeio.c: Don't include <stddef.h>.
83169
83170 2002-12-31  Bruno Haible  <bruno@clisp.org>
83171
83172         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83173         HAVE_TM_ZONE.
83174
83175 2002-12-24  Karl Berry  <karl@gnu.org>
83176
83177         * config/config.guess: update from prep.
83178
83179 2002-12-24  Bruno Haible  <bruno@clisp.org>
83180
83181         General infrasructure.
83182         * m4/README: Rewritten.
83183         * m4/onceonly.m4: New file.
83184         * m4/onceonly_2_57.m4: New file.
83185
83186         Module atexit.
83187         * m4/atexit.m4: New file.
83188
83189         Module strtod.
83190         * m4/strtod.m4: New file.
83191
83192         Module strtol.
83193         * m4/strtol.m4: New file.
83194
83195         Module strtoul.
83196         * m4/strtoul.m4: New file.
83197
83198         Module memchr.
83199         * m4/memchr.m4: New file.
83200
83201         Module memcmp.
83202         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83203         (jm_FUNC_MEMCMP): Invoke it.
83204
83205         Module memcpy.
83206         * m4/memcpy.m4: New file.
83207
83208         Module memmove.
83209         * m4/memmove.m4: New file.
83210
83211         Module memset.
83212         * m4/memset.m4: New file.
83213
83214         Module strcspn.
83215         * m4/strcspn.m4: New file.
83216
83217         Module strpbrk.
83218         * m4/strpbrk.m4: New file.
83219
83220         Module strstr.
83221         * m4/strstr.m4: New file.
83222
83223         Module strerror.
83224         * m4/strerror.m4: New file.
83225
83226         Module mktime.
83227         * m4/mktime.m4: Renamed from jm-mktime.m4.
83228         (gl_PREREQ_MKTIME): New macro.
83229         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83230
83231         Module malloc.
83232         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83233         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83234         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83235
83236         Module realloc.
83237         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83238         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83239         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83240
83241         Module strftime.
83242         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83243         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83244         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83245         gl_TM_GMTOFF.
83246         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83247
83248         Module xalloc.
83249         * m4/xalloc.m4: New file.
83250
83251         Module alloca.
83252         * m4/alloca.m4: New file.
83253
83254         Module putenv.
83255         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83256         (jm_FUNC_PUTENV): Invoke it.
83257
83258         Module setenv.
83259         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83260         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83261         when invoked twice.
83262         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83263         gt_FUNC_SETENV.
83264
83265         Module memrchr.
83266         * m4/memrchr.m4: New file.
83267
83268         Module stpcpy.
83269         * m4/stpcpy.m4: New file.
83270
83271         Module strcase.
83272         * m4/strcase.m4: New file.
83273
83274         Module strdup.
83275         * m4/strdup.m4: New file.
83276
83277         Module strnlen.
83278         * m4/strnlen.m4: New file.
83279
83280         Module strndup.
83281         * m4/strndup.m4: New file.
83282
83283         Module xstrtod.
83284         * m4/xstrtod.m4: New file.
83285
83286         Module xstrtol.
83287         * m4/xstrtol.m4: New file.
83288
83289         Module getdate.
83290         * m4/getdate.m4: New file.
83291
83292         Module unlocked-io.
83293         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83294         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83295         * m4/jm-glibc-io.m4n: Remove file.
83296
83297         Module long-options.
83298         * m4/long-options.m4: New file.
83299
83300         Module md5.
83301         * m4/md5.m4: New file.
83302
83303         Module sha.
83304         * m4/sha.m4: New file.
83305
83306         Module getstr.
83307         * m4/getstr.m4: New file.
83308
83309         Module getline.
83310         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83311         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83312         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83313         simply getline. Infoke gl_PREREQ_GETLINE.
83314
83315         Module obstack.
83316         * m4/obstack.m4: New file.
83317
83318         Module hash.
83319         * m4/hash.m4: New file.
83320
83321         Module readtokens.
83322         * m4/readtokens.m4: New file.
83323
83324         Module strverscmp.
83325         * m4/strverscmp.m4: New file.
83326
83327         Module stdbool.
83328         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83329         OSF/1.
83330
83331         Module strtoll.
83332         * m4/strtoll.m4: New file.
83333
83334         Module strtoull.
83335         * m4/strtoull.m4: New file.
83336
83337         Module strtoimax.
83338         * m4/strtoimax.m4: New file.
83339
83340         Module strtoumax.
83341         * m4/strtoumax.m4: New file.
83342
83343         Module xstrtoimax.
83344         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83345         jm_AC_PREREQ_XSTRTOIMAX.
83346         Moved the strtol prerequisites to strtol.m4.
83347         Moved the strtoll prerequisites to strtoll.m4.
83348         Moved the strtoimax prerequisites to strtoimax.m4.
83349
83350         Module xstrtoumax.
83351         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83352         jm_AC_PREREQ_XSTRTOUMAX.
83353         Moved the strtoul prerequisites to strtoul.m4.
83354         Moved the strtoull prerequisites to strtoull.m4.
83355         Moved the strtoumax prerequisites to strtoumax.m4.
83356
83357         Module chown.
83358         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83359         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83360
83361         Module dup2.
83362         * m4/dup2.m4: New file.
83363
83364         Module ftruncate.
83365         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83366         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83367
83368         Module getgroups.
83369         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83370         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83371
83372         Module gettimeofday.
83373         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83374         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83375         gl_PREREQ_GETTIMEOFDAY.
83376
83377         Module mkdir.
83378         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83379         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83380
83381         Module mkstemp.
83382         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83383         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83384         jm_AC_TYPE_UINTMAX_T.
83385         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83386
83387         Module stat.
83388         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83389         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83390
83391         Module lstat.
83392         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83393         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83394
83395         Module timespec.
83396         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83397         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83398         * m4/st_mtim.m4: Indentation.
83399
83400         Module nanosleep.
83401         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83402         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83403         gl_PREREQ_NANOSLEEP.
83404
83405         Module regex.
83406         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83407         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83408         (gl_REGEX): New macro.
83409
83410         Module rename.
83411         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83412         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83413
83414         Module rmdir.
83415         * m4/rmdir.m4: New file.
83416
83417         Module utime.
83418         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83419         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83420         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83421
83422         Module dirname.
83423         * m4/dirname.m4: New file.
83424
83425         Module getopt.
83426         * m4/getopt.m4: New file.
83427
83428         Module unistd-safer.
83429         * m4/unistd-safer.m4: New file.
83430
83431         Module fnmatch.
83432         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83433         declaration.
83434         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83435         (gl_FUNC_FNMATCH_POSIX): New macro.
83436         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83437         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83438         simply fnmatch.
83439
83440         Module exclude.
83441         * m4/exclude.m4: New file.
83442
83443         Module human.
83444         * m4/human.m4: New file.
83445
83446         Module acl.
83447         * m4/acl.m4: Nop.
83448
83449         Module backupfile.
83450         * m4/backupfile.m4: New file.
83451         * m4/d-ino.m4: Indentation.
83452
83453         Module fsusage.
83454         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83455         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83456         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83457
83458         Module dirfd.
83459         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83460         requirements.
83461
83462         Module euidaccess.
83463         * m4/euidaccess.m4: New file.
83464
83465         Module file-type.
83466         * m4/file-type.m4: New file.
83467
83468         Module fileblocks.
83469         * m4/fileblocks.m4: New file.
83470
83471         Module filemode.
83472         * m4/filemode.m4: New file.
83473
83474         Module isdir.
83475         * m4/isdir.m4: New file.
83476
83477         Module lchown.
83478         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83479         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83480
83481         Module makepath.
83482         * m4/makepath.m4: New file.
83483
83484         Module modechange.
83485         * m4/modechange.m4: New file.
83486
83487         Module mountlist.
83488         * m4/mountlist.m4: New file.
83489         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83490         Indentation.
83491
83492         Module path-concat.
83493         * m4/path-concat.m4: New file.
83494
83495         Module pathmax.
83496         * m4/pathmax.m4: New file.
83497
83498         Module same.
83499         * m4/same.m4: New file.
83500
83501         Module save-cwd.
83502         * m4/save-cwd.m4: New file.
83503
83504         Module savedir.
83505         * m4/savedir.m4: New file.
83506
83507         Module xgetcwd.
83508         * m4/xgetcwd.m4: New file.
83509         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83510
83511         Module xreadlink.
83512         * m4/xreadlink.m4: New file.
83513
83514         Module safe-read.
83515         * m4/safe-read.m4: New file.
83516
83517         Module safe-write.
83518         * m4/safe-write.m4: New file.
83519
83520         Module closeout.
83521         * m4/closeout.m4: New file.
83522
83523         Module stdio-safer.
83524         * m4/stdio-safer.m4: New file.
83525
83526         Module getpass.
83527         * m4/getpass.m4: New file.
83528
83529         Module getugroups.
83530         * m4/getugroups.m4: New file.
83531
83532         Module group-member.
83533         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83534         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83535
83536         Module idcache.
83537         * m4/idcache.m4: New file.
83538
83539         Module userspec.
83540         * m4/userspec.m4: New file.
83541
83542         Module gettime.
83543         * m4/clock_time.m4: New file.
83544         * m4/gettime.m4: New file.
83545
83546         Module settime.
83547         * m4/settime.m4: New file.
83548
83549         Module posixtm.
83550         * m4/posixtm.m4: New file.
83551
83552         Module gethostname.
83553         * m4/gethostname.m4: New file.
83554
83555         Module canon-host.
83556         * m4/canon-host.m4: New file.
83557
83558         Module gettext.
83559         * m4/codeset.m4: New file, from gettext-0.11.5.
83560         * m4/gettext.m4: New file, from gettext-0.11.5.
83561         * m4/glibc21.m4: New file, from gettext-0.11.5.
83562         * m4/iconv.m4: New file, from gettext-0.11.5.
83563         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83564         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83565         * m4/inttypes.m4: New file, from gettext-0.11.5.
83566         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83567         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83568         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83569         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83570         * m4/lib-link.m4: New file, from gettext-0.11.5.
83571         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83572         * m4/progtest.m4: New file, from gettext-0.11.5.
83573         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83574         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83575         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83576
83577         Module localcharset.
83578         * m4/localcharset.m4: New file.
83579
83580         Module hard-locale.
83581         * m4/hard-locale.m4: New file.
83582
83583         Module mbswidth.
83584         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83585         onceonly macros.
83586         * m4/mbrtowc.m4: Add comment.
83587
83588         Module memcasecmp.
83589         * m4/memcasecmp.m4: New file.
83590
83591         Module memcoll.
83592         * m4/memcoll.m4: New file.
83593
83594         Module unicodeio.
83595         * m4/unicodeio.m4: New file.
83596
83597         Module rpmatch.
83598         * m4/rpmatch.m4: New file.
83599
83600         Module yesno.
83601         * m4/yesno.m4: New file.
83602
83603         Module exitfail.
83604         * m4/exitfail.m4: New file.
83605
83606         Module c-stack.
83607         * m4/c-stack.m4 (gl_C_STACK): New macro.
83608         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83609
83610         Module error.
83611         * m4/error.m4 (gl_ERROR): New macro.
83612         (jm_PREREQ_ERROR): Use onceonly macros.
83613
83614         Module fatal.
83615         * m4/fatal.m4: New file.
83616
83617         Module getloadavg.
83618         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83619         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83620
83621         Module getpagesize.
83622         * m4/getpagesize.m4: New file.
83623
83624         Module getusershell.
83625         * m4/getusershell.m4: New file.
83626
83627         Module physmem.
83628         * m4/physmem.m4: New file.
83629
83630         Module posixver.
83631         * m4/posixver.m4: New file.
83632
83633         Module quotearg.
83634         * m4/quotearg.m4: New file.
83635
83636         Module quote.
83637         * m4/quote.m4: New file.
83638
83639         Module readutmp.
83640         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83641
83642         Module sig2str.
83643         * m4/sig2str.m4: New file.
83644
83645         Other.
83646         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83647         ulonglong.m4.
83648         * m4/intmax_t.m4: New file.
83649         * m4/d-type.m4: Indentation.
83650         * m4/jm-macros.m4: Update.
83651         * m4/prereq.m4 (jm_PREREQ): Update.
83652         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83653         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83654         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83655         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83656         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83657         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83658         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83659         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83660         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83661         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83662         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83663         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83664         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83665         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83666         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83667         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83668         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83669         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83670         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83671
83672 2002-12-24  Bruno Haible  <bruno@clisp.org>
83673
83674         * MODULES.txt: Update according to m4/ changes.
83675
83676         Module gettext.
83677         * config.rpath: New file, from gettext-0.11.5.
83678
83679         * modules/*: New module descriptions.
83680         * gnulib-tool: New file.
83681         * MODULES.html.sh: New file.
83682
83683 2002-12-21  Karl Berry  <karl@gnu.org>
83684
83685         * doc/fdl.texi: update to version 1.2.
83686
83687 2002-12-19  Karl Berry  <karl@gnu.org>
83688
83689         * config/config.guess: update from prep.
83690
83691 2002-12-18  Bruno Haible  <bruno@clisp.org>
83692
83693         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83694         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83695
83696 2002-12-17  Bruno Haible  <bruno@clisp.org>
83697
83698         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83699         stdlib.h, string.h.
83700
83701 2002-12-17  Bruno Haible  <bruno@clisp.org>
83702
83703         * lib/canon-host.c (strdup): Remove unused declaration.
83704
83705         * lib/fsusage.c: Include full_read.h.
83706         (get_fs_usage): Use full_read instead of safe_read.
83707
83708         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83709
83710 2002-12-12  Karl Berry  <karl@gnu.org>
83711
83712         * config/config.guess: update from prep.
83713
83714 2002-12-11  Bruno Haible  <bruno@clisp.org>
83715
83716         * m4/setenv.m4: New file, from gettext-0.11.5.
83717
83718 2002-12-11  Bruno Haible  <bruno@clisp.org>
83719
83720         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83721         not unsetenv().
83722         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83723         modifications:
83724
83725         2002-12-11  Bruno Haible  <bruno@clisp.org>
83726
83727                 * setenv.c (alloca): Fall back to malloc.
83728                 (freea): New macro.
83729                 (setenv): Use freea() to free memory allocated with alloca().
83730
83731         2002-11-13  Bruno Haible  <bruno@clisp.org>
83732
83733                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83734                 function declarations.
83735                 * unsetenv.c (unsetenv): Likewise.
83736
83737         2002-03-04  Bruno Haible  <bruno@clisp.org>
83738
83739                 Portability to AIX 4.3.3.
83740                 * unsetenv.c: New file, extracted from setenv.c.
83741                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83742
83743         2001-12-20  Bruno Haible  <bruno@clisp.org>
83744
83745                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83746                 use malloc instead. For SunOS 4.
83747
83748         2001-12-11  Bruno Haible  <bruno@clisp.org>
83749
83750                 * setenv.c: Declare alloca.
83751                 (compar_fn_t): New typedef.
83752                 (KNOWN_VALUE, STORE_VALUE): Use it.
83753
83754         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83755         setenv.h.
83756
83757 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83758
83759         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83760         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83761         Choose values that are less likely to collide with system fnmatch
83762         options.
83763         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83764         defined (e.g., a pure POSIX system).
83765         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83766         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83767
83768 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83769
83770         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83771         a pain in practice to deal with generated m4 files.  This change
83772         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83773
83774         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83775         and jm-glibc-io.m4, as they are no longer a special case.
83776         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83777         kludge and the auto-generation stuff.  Check only whether the
83778         functions are declared, not whether they exist, since older hosts
83779         that don't declare the functions can't use the optimization anyway.
83780
83781 2002-12-06  Jim Meyering  <jim@meyering.net>
83782
83783         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83784
83785         Merge in changes from libc's misc/error.c, in preparation
83786         for the merge of gnulib's changes back into libc.
83787
83788         * lib/error.c (_): Define only if not already defined.
83789         Move definition to follow all #include directives.
83790         Include unlocked-io.h only if !_LIBC.
83791         [_LIBC]: Include <libio/libioP.h>.
83792         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83793         (fflush): Tweak definition to use INTUSE.
83794         (putc): Define.
83795
83796 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83797
83798         * lib/alloca.c [defined emacs]: Include "lisp.h".
83799         (xalloc_die) [defined emacs]: New macro.
83800         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83801         [! defined emacs]: Include <xalloc.h>.
83802         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83803         (pointer): Typedef to POINTER_TYPE *.
83804         (malloc): Remove decl; we now always use xmalloc.
83805         (alloca): Use old-style definition, since Emacs needs this.
83806         Check for arithmetic overflow when computing combined size.
83807
83808 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83809
83810         Do not generate unlocked-io.h automatically, since it's easier to
83811         maintain it by hand.
83812
83813         * lib/unlocked-io.h: New file, from GNU diffutils,
83814         but with proper copyright notice and attribution.
83815         * lib/gen-uio: Remove.
83816         * lib/Makefile.am: Add copyright notice.
83817         (libfetish_a_SOURCES): Add unlocked-io.h.
83818         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83819         (DISTCLEANFILES, io_functions): Remove macros.
83820         (EXTRA_DIST): Remove gen_uio.
83821         (unlocked-io.h): Remove rule.
83822
83823 2002-12-04  Jim Meyering  <jim@meyering.net>
83824
83825         Reflect the fact that stat.c and lstat.c are no longer generated.
83826         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83827         (DISTCLEANFILES): Likewise.
83828         (EXTRA_DIST): Likewise.
83829         (all_local): Don't depend on stat.c or lstat.c.
83830         (stat.c, lstat.c): Remove rules.
83831         (EXTRA_DIST): Remove xstat.in.
83832
83833         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83834         * lib/stat.c: New file.  Contents mostly from xstat.in.
83835         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83836         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83837
83838         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83839         too.
83840         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83841
83842 2002-12-03  Jim Meyering  <jim@meyering.net>
83843
83844         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83845         but not semantics, to minimize the differences between these two files.
83846         (safe_read): Change comment to mention SAFE_READ_ERROR.
83847
83848         * lib/safe-read.c (IS_EINTR): Define.
83849         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83850
83851 2002-12-02  Jim Meyering  <jim@meyering.net>
83852
83853         * lib/safe-read.c (EINTR): Define.
83854         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83855         (INT_MAX): Provide fallback.
83856         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83857
83858         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83859
83860 2002-12-02  Bruno Haible  <bruno@clisp.org>
83861
83862         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83863         Define, taken from safe-read.c.
83864         (INT_MAX): Provide fallback.
83865         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83866         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83867
83868         * lib/safe-read.c (EINTR): Remove definition.
83869         (safe_read): Don't use EINTR if it is absent.
83870
83871 2002-12-01  Jim Meyering  <jim@meyering.net>
83872
83873         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
83874         zero.
83875         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
83876
83877 2002-11-27  Paul Eggert  <eggert@twinsun.com>
83878
83879         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
83880         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
83881         with `if (! (value < limit)) abort ();', for readability.
83882
83883 2002-11-26  Karl Berry  <karl@gnu.org>
83884
83885         * lib/strdup.c: copy from libc again, with jim's ok.
83886         * lib/.cppi-disable: re-add strdup.c
83887
83888 2002-11-25  Karl Berry  <karl@gnu.org>
83889
83890         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
83891         instead of "strtol.c".
83892
83893 2002-11-25  Karl Berry  <karl@gnu.org>
83894
83895         * config/install-sh: update from automake for variable quoting, $0 in
83896         error msgs, etc.
83897
83898         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
83899         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
83900         entry.
83901
83902 2002-11-25  Jim Meyering  <jim@meyering.net>
83903
83904         * lib/mktime.c: Sync from libc, now that it has the latest fix.
83905
83906 2002-11-24  Karl Berry  <karl@gnu.org>
83907
83908         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
83909         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
83910
83911 2002-11-24  Jim Meyering  <jim@meyering.net>
83912
83913         Update from coreutils:
83914
83915         * lib/mktime.c: Merge in changes from libc.
83916
83917         Avoid a link-time failure on some Linux systems.
83918         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83919         (otherwise).
83920         (__mon_yday): Declare with the STATIC attribute.
83921         (__mktime_internal): Likewise.
83922         Based on a report from Greg Schafer.
83923
83924 2002-11-23  Jim Meyering  <jim@meyering.net>
83925
83926         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83927         Use `unsigned', not `int', as type of index.
83928
83929         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83930
83931         * lib/fsusage.c: Remove unneeded parentheses around operands of
83932         `defined'.
83933
83934 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83935
83936         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83937         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83938         so that we can be included first.
83939         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83940         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83941         No need to include stddef.h or sys/types.h any more.
83942         Surround local include files with "", not "<>".
83943         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83944         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83945         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83946         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83947         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83948         (ISPRINT): Remove; no longer needed now that we assume C89.
83949
83950         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83951         Preserve errno.
83952
83953         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83954         quotearg_char): Use SIZE_MAX rather than
83955         (size_t) -1 when we are talking about "infinity".
83956
83957         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83958
83959 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83960
83961         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83962         hint that one should use `if (! x) abort ();' rather than `assert
83963         (x);', and anyway it's one less thing to worry about configuring.
83964         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83965         hash_rehash, hash_insert): Use abort rather than assert.
83966
83967 2002-11-22  Bruno Haible  <bruno@clisp.org>
83968
83969         * lib/safe-read.h: Assume C89. Add comments.
83970         (safe_read): Change return type to size_t.
83971         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83972         byte counts > SSIZE_MAX correctly.
83973         * lib/safe-write.h: New file.
83974         * lib/safe-write.c: New file.
83975         * lib/full-read.h: New file.
83976         * lib/full-read.c: New file.
83977         * lib/full-write.h: Assume C89. Add comments.
83978         * lib/full-write.c: Include safe-write.h.
83979         (full_write): Rewritten to use safe_write.
83980         Suggested by Jim Meyering and Paul Eggert.
83981
83982 2002-11-21  Jim Meyering  <jim@meyering.net>
83983
83984         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83985
83986         Merge in changes from the coreutils.
83987
83988         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83989         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83990         <stdint.h>.
83991         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83992         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83993         int.  Work more efficiently if X is the same width as uintmax_t.
83994         Do not compare X to -1, to avoid bogus compiler warning.
83995         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83996         Don't assume that f_frsize and f_bsize are the same type.
83997
83998         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83999         warning on FreeBSD.
84000
84001         * lib/makepath.c (make_path): Restore umask *before* creating the final
84002         component.
84003         (make_path): Minor reformatting.
84004
84005         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84006         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84007         HAVE_MALLOC/HAVE_REALLOC.
84008
84009         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84010         dummy ones.  At least on GNU/Linux systems, `auto' means something
84011         else.
84012         From Michael Stone.
84013
84014 2002-11-21  Bruno Haible  <bruno@clisp.org>
84015
84016         Remove case insensitive option matching.
84017         * lib/argmatch.h (argcasematch): Remove declaration.
84018         (ARGCASEMATCH): Remove macro.
84019         (__xargmatch_internal): Remove case_sensitive argument.
84020         (XARGMATCH): Update.
84021         (XARGCASEMATCH): Remove macro.
84022         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84023         case_sensitive argument.
84024         (argcasematch): Remove function.
84025         (__xargmatch_internal): Remove case_sensitive argument.
84026         (main): Use XARGMATCH instead of XARGCASEMATCH.
84027
84028         * lib/xmalloc.c: Change compile-time error message. Add comment about
84029         required autoconf version.
84030
84031 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84032
84033         Merge argmatch cleanups from Bison.  Assume C89.
84034
84035         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84036         Include stdlib.h, for EXIT_FAILURE.
84037         Always include <string.h>, since we assume C89.
84038         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84039         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84040         Include <stddef.h> instead, since it's all we need for size_t.
84041         (PARAMS): Remove.  All uses removed.
84042         (ARRAY_CARDINALITY): Do not bother to #undef.
84043         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84044         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84045         Remove unnecessary parentheses.
84046         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84047         Insert necessary parentheses.
84048         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84049         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84050
84051 2002-11-19  Bruno Haible  <bruno@clisp.org>
84052
84053         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84054         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84055
84056         * lib/mbswidth.h (PARAMS): Remove macro.
84057         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84058         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84059
84060         * lib/gcd.h (PARAMS): Remove macro.
84061         (gcd): Use ANSI C function declarations.
84062         * lib/gcd.c (gcd): Likewise.
84063
84064 2002-11-15  Bruno Haible  <bruno@clisp.org>
84065
84066         * lib/strcspn.c: Include <stddef.h>.
84067         (strcspn): Use ANSI C function declaration. Change return type to
84068         size_t. Use NULL.
84069         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84070         (strpbrk): Use NULL.
84071         * lib/strpbrk.h (PARAMS): Remove macro.
84072         (strpbrk): Use ANSI C function declaration.
84073         * lib/strstr.c: Don't include <sys/types.h>.
84074         * lib/strstr.h (PARAMS): Remove macro.
84075         (strstr): Use ANSI C function declarations.
84076
84077 2002-11-14  Karl Berry  <karl@gnu.org>
84078
84079         * config/mkinstalldirs: `do' on separate line, instead of
84080         `for var; do'.
84081
84082 2002-11-06  Bruno Haible  <bruno@clisp.org>
84083
84084         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84085         * lib/gcd.c (gcd): Likewise.
84086
84087 2002-11-05  Bruno Haible  <bruno@clisp.org>
84088
84089         * lib/gcd.h: New file, from gettext-0.11.5.
84090         * lib/gcd.c: New file, from gettext-0.11.5.
84091
84092 2002-11-05  Bruno Haible  <bruno@clisp.org>
84093
84094         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84095         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84096         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84097         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84098
84099         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84100         <libintl.h>.
84101         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84102         <libintl.h>.
84103
84104         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84105         * lib/human.c: Include gettext.h instead of <libintl.h>.
84106         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84107         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84108         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84109         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84110         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84111         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84112         (textdomain): Remove definition.
84113         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84114
84115         * lib/long-options.c: Remove include of <libintl.h> and definition of
84116         _.
84117         * lib/same.c: Remove include of <libintl.h> and definition of _.
84118
84119 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84120
84121         * lib/config.charset: A few additions for Solaris.
84122
84123 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84124
84125         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84126         * lib/localcharset.c (locale_charset): Declare as extern "C".
84127
84128 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84129
84130         * lib/config.charset: msdos in uk_UA uses CP1125.
84131
84132 2002-11-04  Bruno Haible  <bruno@clisp.org>
84133
84134         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84135         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84136         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84137         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84138         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84139
84140 2002-11-04  Bruno Haible  <bruno@clisp.org>
84141
84142         * lib/localcharset.c (locale_charset): Don't return an empty string.
84143
84144 2002-11-04  Bruno Haible  <bruno@clisp.org>
84145
84146         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84147         aliases.
84148
84149 2002-11-04  Bruno Haible  <bruno@clisp.org>
84150
84151         * lib/config.charset: Update for newest glibc. Add canonical names
84152         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84153
84154 2002-11-04  Bruno Haible  <bruno@clisp.org>
84155
84156         * lib/config.charset: Add support for NetBSD.
84157
84158 2002-11-04  Bruno Haible  <bruno@clisp.org>
84159
84160         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84161
84162 2002-11-01  Bruno Haible  <bruno@clisp.org>
84163
84164         * configure.in: Add AC_CONFIG_AUX_DIR call.
84165         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84166         test/Makefile.
84167         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84168
84169 2002-09-28  Karl Berry  <karl@gnu.org>
84170
84171         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84172         installed automake until the next release, since changes have been
84173         made.
84174
84175 2002-09-25  Karl Berry  <karl@gnu.org>
84176
84177         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84178         * lib/getopt*: copy from libc/posix.
84179         * lib/gettext.h: copy from gettext.
84180         * lib/.cppi-disable: add strdup.c, gettext.h.
84181
84182 2002-09-25  Karl Berry  <karl@gnu.org>
84183
84184         * config/srclist.txt: enable gettext.h check.
84185         * config/config.{guess,sub}: update from prep.
84186         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84187                 from automake 1.6.3.
84188         See srclist*.
84189
84190 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84191
84192         * regex.c (PATFETCH): Remove the translating fetch.
84193         (PATFETCH_RAW): Rename to PATFETCH.
84194         (set_image_of_range): New fun.
84195         (SET_RANGE_TABLE_WORK_AREA): Use it.
84196         (regex_compile): Don't translate the pattern chars so eagerly.
84197         Only do it when inserting an `exactn' bytecode or when handling
84198         a char-range.
84199         (mutually_exclusive_p): Avoid empty statement.
84200
84201 2002-07-06  Jim Meyering  <meyering@lucent.com>
84202
84203         * m4/README: Don't mention Makefile.am.in.
84204         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84205
84206 2002-07-01  Jim Meyering  <meyering@lucent.com>
84207
84208         * lib/c-stack.c: Include sys/time.h.
84209         From Volker Borchert.
84210
84211 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84212
84213         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84214
84215 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84216
84217         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84218         New macro.  Use it uniformly instead of
84219         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84220         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84221         reported by Vin Shelton.
84222
84223 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84224
84225         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84226         Do not assume SA_SIGINFO behavior.
84227         Bug reported by Jim Meyering on NetBSD 1.5.2.
84228
84229 2002-06-22  Jim Meyering  <meyering@lucent.com>
84230
84231         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84232         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84233
84234         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84235         now that configure.ac uses AC_GNU_SOURCE.
84236         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84237         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84238
84239         Update to latest tools.  Suggestions from Paul Eggert.
84240         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84241         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84242         * m4/fnmatch.m4: Likewise.
84243         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84244         to AC_HEADER_STDBOOL
84245
84246 2002-06-22  Jim Meyering  <meyering@lucent.com>
84247
84248         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84249         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84250
84251 2002-06-22  Jim Meyering  <meyering@lucent.com>
84252
84253         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84254
84255         * lib/exitfail.c, exitfail.h: Likewise.
84256         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84257
84258         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84259         of fnmatch.h.
84260         (EXTRA_DIST): Add fnmatch_loop.c.
84261         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84262
84263         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84264         * lib/fnmatch.c: Update from diffutils-2.8.2.
84265         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84266         * lib/fnmatch.h: Remove file.
84267
84268 2002-06-21  Jim Meyering  <meyering@lucent.com>
84269
84270         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84271         * m4/mbrtowc.m4: Likewise.
84272
84273         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84274         * m4/mbswidth.m4: Reflect name change:
84275         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84276         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84277
84278         * m4/lib-link.m4: Update from gettext-0.11.2.
84279         * m4/gettext.m4: Likewise.
84280
84281         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84282         From Alfred M. Szmidt.
84283
84284 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84285
84286         * lib/file-type.h: Report an error if neither S_ISREG nor
84287         S_IFREG is defined, instead of using a test specific to glibc
84288         2.2.  This should be safe, since POSIX requires S_ISREG and
84289         Unix Version 7 had S_IFREG.  We don't need to check for
84290         <sys/types.h> since we don't use any symbols that it defines.
84291
84292 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84293
84294         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84295         $@-t, so that each temporary file name is unique and valid in the first
84296         8 characters, for operation under DOS.
84297
84298 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84299
84300         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84301
84302 2002-06-15  Jim Meyering  <meyering@lucent.com>
84303
84304         Work even with DJGPP 2.03, which lacks support for symlinks.
84305         From Richard Dawe.
84306         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84307         is defined.
84308         * lib/lchown.c (S_ISLNK): Likewise.
84309
84310 2002-06-15  Jim Meyering  <meyering@lucent.com>
84311
84312         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84313         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84314         have been included before this file.
84315
84316 2002-06-14  Jim Meyering  <meyering@lucent.com>
84317
84318         * lib/file-type.h: Use the version from diffutils-2.8.2.
84319         * lib/file-type.c: Likewise.
84320
84321 2002-06-07  Jim Meyering  <meyering@lucent.com>
84322
84323         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84324         They're needed at least for NetBSD 1.5.2.
84325         ($statxfs_includes): Include those same headers.
84326         ($statxfs_includes): Include sys/vfs.h if available.
84327         ($statxfs_includes): Likewise for sys/statvfs.h.
84328         Check for the following members in both structs statfs and statvfs:
84329         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84330
84331 2002-06-01  Jim Meyering  <meyering@lucent.com>
84332
84333         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84334         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84335
84336 2002-05-28  Jim Meyering  <meyering@lucent.com>
84337
84338         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84339         Reported by Volker Borchert.
84340
84341 2002-05-27  Jim Meyering  <meyering@lucent.com>
84342
84343         Fix a problem seen only on nonconforming systems whereby ls.c's
84344         use of localtime, and then of gettimeofday would cause trouble:
84345         the localtime call used to initialize rpl_gettimeofday's save
84346         mechanism would clobber ls's current local time information so
84347         that in any long listing the first file would always be listed
84348         with date 1970-01-01.  Analysis by Volker Borchert.
84349
84350         * lib/gettimeofday.c (localtime): Undefine.
84351         (rpl_localtime): New function.
84352
84353 2002-05-27  Jim Meyering  <meyering@lucent.com>
84354
84355         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84356         localtime.
84357
84358         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84359         use the replacement function; it wouldn't resolve at link time.
84360         Reported by Volker Borchert.
84361
84362 2002-05-22  Jim Meyering  <meyering@lucent.com>
84363
84364         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84365         file-type.h.
84366         * lib/file-type.h: New file.
84367         * lib/file-type.c (file_type): New file/function.  Extracted from
84368         diffutils.
84369
84370 2002-04-30  Jim Meyering  <meyering@lucent.com>
84371
84372         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84373
84374 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84375
84376         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84377
84378 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84379
84380         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84381         Do not check for alloca.h (no longer used) or stdbool.h (was never
84382         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84383
84384 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84385
84386         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84387
84388 2002-04-29  Jim Meyering  <meyering@lucent.com>
84389
84390         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84391         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84392         Use AC_FUNC_STRNLEN here instead.
84393
84394         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84395         With autoconf-2.53a, it's part of AC_PROG_CC.
84396
84397 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84398
84399         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84400         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84401
84402 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84403
84404         * lib/sig2str.h, lib/sig2str.c: New files.
84405         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84406
84407 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84408
84409         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84410         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84411         of 127, since 64 is the largest conceivable number for ancient
84412         nonstandard hosts.
84413         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84414
84415 2002-04-28  Jim Meyering  <meyering@lucent.com>
84416
84417         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84418
84419 2002-04-24  Jim Meyering  <meyering@lucent.com>
84420
84421         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84422         (jm_PREREQ): Use it.
84423
84424         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84425         mach/mach.h fcntl.h.
84426         Check for this function: setlocale.
84427
84428 2002-04-24  Jim Meyering  <meyering@lucent.com>
84429
84430         * lib/gettext.h: New file, from Gettext.
84431         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84432         (libfetish_a_SOURCES): Add gettext.h.
84433
84434 2002-04-16  Jim Meyering  <meyering@lucent.com>
84435
84436         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84437         ut_pid, ut_id, ut_exit.
84438
84439 2002-04-16  Jim Meyering  <meyering@lucent.com>
84440
84441         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84442         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84443         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84444
84445 2002-04-12  Jim Meyering  <meyering@lucent.com>
84446
84447         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84448         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84449         existence of the getmntinfo function.  Needed for Darwin 5.3.
84450
84451         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84452         This is necessary at least on Darwin 5.3.
84453
84454         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84455         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84456         strnlen.o in the library, and that makes some versions of ranlib
84457         object.
84458
84459 2002-04-12  Jim Meyering  <meyering@lucent.com>
84460
84461         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84462
84463 2002-04-09  Jim Meyering  <meyering@lucent.com>
84464
84465         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84466         to be more precise.  Rather than saying we're checking whether the
84467         function `works', say what we're testing.
84468         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84469         Reported by Bruno Haible.
84470
84471 2002-03-10  Jim Meyering  <meyering@lucent.com>
84472
84473         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84474         Suggestion from Santiago Vila.
84475
84476 2002-03-08  Jim Meyering  <meyering@lucent.com>
84477
84478         * lib/rename.c: Mention that this wrapper is needed also on
84479         mips-dec-ultrix4.4 systems.
84480
84481 2002-03-02  Jim Meyering  <meyering@lucent.com>
84482
84483         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84484         not HAVE_CLOCK_SETTIME.
84485
84486 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84487
84488         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84489         Check for clock_settime.
84490
84491 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84492
84493         * lib/nanosleep.h: Rename to....
84494         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84495
84496         * lib/gettime.c: New file.
84497         * lib/settime.c: New file.
84498         * lib/stime.c: Remove.
84499
84500         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84501         timespec.h.  Remove nanosleep.h.
84502
84503 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84504
84505         * m4/acl.m4: New file.
84506         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84507         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84508
84509 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84510
84511         * lib/acl.c, lib/acl.h: New files.
84512         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84513
84514 2002-02-24  Jim Meyering  <meyering@lucent.com>
84515
84516         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84517         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84518         cause trouble.  Reported by Nelson Beebe.
84519
84520 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84521
84522         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84523         compilers that don't know that xalloc_die never returns.
84524
84525 2002-02-20  Jim Meyering  <meyering@lucent.com>
84526
84527         * lib/getdate.c: Regenerate using bison-1.33.
84528
84529 2002-02-17  Jim Meyering  <meyering@lucent.com>
84530
84531         * config/config.guess (main): Don't use `head -1'; it's no longer
84532         portable. Use `sed 1q' instead.
84533
84534 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84535
84536         * m4/codeset.m4: Upgrade to gettext-0.11.
84537         * m4/gettext.m4: Upgrade to gettext-0.11.
84538         * m4/glibc21.m4: Upgrade to gettext-0.11.
84539         * m4/iconv.m4: Upgrade to gettext-0.11.
84540         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84541         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84542         * m4/lib-ld.m4: New file, from gettext-0.11.
84543         * m4/lib-link.m4: New file, from gettext-0.11.
84544         * m4/lib-prefix.m4: New file, from gettext-0.11.
84545         * m4/progtest.m4: Upgrade to gettext-0.11.
84546
84547 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84548
84549         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84550         (jm_PREREQ): Use it.
84551
84552 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84553
84554         * lib/posixver.c, lib/posixver.h: New files.
84555         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84556
84557 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84558             Bruno Haible  <bruno@clisp.org>
84559
84560         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84561         (fwrite_success_callback): New declaration.
84562         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84563         print_unicode_char. Call failure callback instead of error.
84564         (fwrite_success_callback): New function.
84565         (exit_failure_callback): New function.
84566         (fallback_failure_callback): New function.
84567         (print_unicode_char): Call unicode_to_mb.
84568
84569 2002-01-26  Jim Meyering  <meyering@lucent.com>
84570
84571         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84572         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84573
84574 2002-01-26  Jim Meyering  <meyering@lucent.com>
84575
84576         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84577
84578 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84579
84580         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84581
84582 2002-01-22  Jim Meyering  <meyering@lucent.com>
84583
84584         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84585         Otherwise, some versions of automake would omit the rule that makes
84586         Makefile from Makefile.in.
84587
84588 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84589
84590         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84591         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84592         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84593         (memcoll): Set errno to zero if there is no error.
84594
84595         * lib/quotearg.c (quotearg_buffer_restyled):
84596         Fix bug with quoting buffers containing NUL when backslashing escapes.
84597         This bug was exposed by the other changes in this patch.
84598         (quotearg_n_options): New arg ARGSIZE.
84599         All callers changed.
84600         (quoting_options_from_style): New function.
84601         (quotearg_n_style): Use it.
84602         (quotearg_n_style_mem): New function.
84603
84604         * lib/quotearg.h (quotearg_n_style_mem): New function.
84605
84606 2002-01-19  Jim Meyering  <meyering@lucent.com>
84607
84608         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84609         Remove useless quotes: DF_PROG="df".
84610         * m4/strnlen.m4: New file.
84611
84612 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84613
84614         * lib/backupfile.c (ISDIGIT): Comment fix.
84615         * lib/getdate.y (ISDIGIT): Likewise.
84616         * lib/posixtm.c (ISDIGIT, year): Likewise.
84617         * lib/strverscmp.c (ISDIGIT): Likewise.
84618         * lib/userspec.c (ISDIGIT): Likewise.
84619
84620 2002-01-16  Jim Meyering  <meyering@lucent.com>
84621
84622         * lib/getdate.y: Add three semicolons, each just before a closing
84623         brace. Bison (as of version 1.31) no longer papers over that mistake.
84624
84625 2002-01-05  Jim Meyering  <meyering@lucent.com>
84626
84627         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84628
84629 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84630
84631         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84632         not silently exit merely because the output buffer happens to
84633         have nothing pending.
84634
84635 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84636
84637         See the big note in ../ChangeLog.
84638         * lib/human.c (suffixes): Prefer K to k for 1024.
84639         (generate_suffix_backwards): New function.
84640         (human_readable_inexact): Use it.
84641         * lib/xstrtol.c (__xstrtol): If there is no number but there
84642         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84643         Accept 'K' as well as 'k'.
84644
84645 2001-12-15  Jim Meyering  <meyering@lucent.com>
84646
84647         * lib/regex.h (__restrict_arr): Update from libc.
84648
84649         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84650         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84651         (STREQ): Define.
84652
84653 2001-12-14  Jim Meyering  <meyering@lucent.com>
84654
84655         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84656         Suggestion from Bruno Haible.
84657
84658 2001-12-10  Jim Meyering  <meyering@lucent.com>
84659
84660         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84661         xrealloc, Instead, include "xalloc.h".
84662         (initbuffer): Don't cast xmalloc return value to char*.
84663         (readline): Reword comment.
84664         Don't cast xrealloc return value to char*
84665         Return NULL, not 0.
84666
84667 2001-12-09  Jim Meyering  <meyering@lucent.com>
84668
84669         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84670         about `signed and unsigned type in conditional expression'.
84671         * lib/posixtm.c (posix_time_parse): Likewise.
84672
84673         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84674
84675         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84676         to avoid a pedantic warning.
84677
84678         * lib/getstr.c: Don't include assert.h.
84679         (getstr): Remove warning-evoking assertions.
84680         Return -1 if offset parameter is out of bounds.
84681         Change the type of a local from int to size_t.
84682
84683         * lib/strftime.c (my_strftime_localtime_r): Include this function
84684         definition in the `#if ! HAVE_TM_GMTOFF' block.
84685
84686         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84687         Include xalloc.h instead.
84688
84689 2001-12-02  Jim Meyering  <meyering@lucent.com>
84690
84691         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84692         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84693         included.
84694
84695         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84696         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84697
84698 2001-11-30  Akim Demaille  <akim@epita.fr>
84699
84700         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84701         before being defined.
84702
84703 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84704
84705         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84706         First arg is int, not unsigned.
84707         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84708         (SIZE_MAX, UINT_MAX): New macros.
84709         (quotearg_n_options): Abort if N is negative.
84710         Avoid overflow check on hosts where size_t is 64 bits and int
84711         is 32 bits, as overflow is impossible there.
84712         Fix off-by-one typo that caused unnecessary reallocation.
84713
84714 2001-11-27  Jim Meyering  <meyering@lucent.com>
84715
84716         * lib/tempname.c: Merge with version from libc.
84717         * lib/regex.c: Likewise.
84718
84719         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84720         systems for which STDC_HEADERS is 0, it was not included, resulting in
84721         a warning about an integer-to-pointer conversion problem with getenv.
84722         Reported by Volker Borchert.
84723
84724 2001-11-26  Jim Meyering  <meyering@lucent.com>
84725
84726         * lib/gtod.h: Remove file.
84727         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84728         * lib/gettimeofday.c: Don't include gtod.h.
84729         (GTOD_init): Remove function.
84730         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84731         Suggestion from Volker Borchert.
84732
84733 2001-11-23  Jim Meyering  <meyering@lucent.com>
84734
84735         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84736         it.
84737         * lib/hash.c (struct hash_table): Define it here instead.
84738
84739 2001-11-22  Jim Meyering  <meyering@lucent.com>
84740
84741         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84742
84743 2001-11-20  Jim Meyering  <meyering@lucent.com>
84744
84745         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84746         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84747
84748 2001-11-19  Jim Meyering  <meyering@lucent.com>
84749
84750         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84751         directory.  Use "conftestXXXXXX" as the template.
84752         Suggestion from Paul Eggert.
84753
84754         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84755         immediately, so the test doesn't mistakenly hit the max-open-files
84756         limit.
84757
84758 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84759
84760         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84761         (TEMPORARIES): New macro.
84762         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84763         removes an artificial limitation (e.g. HP-UX 10.20, where
84764         TMP_MAX is 17576).
84765
84766 2001-11-18  Jim Meyering  <meyering@lucent.com>
84767
84768         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84769
84770 2001-11-18  Jim Meyering  <meyering@lucent.com>
84771
84772         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84773         on SunOS 4.
84774
84775         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84776         files will be created before anything else.
84777
84778 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84779
84780         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84781         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84782
84783 2001-11-17  Jim Meyering  <meyering@lucent.com>
84784
84785         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84786         Prompted by a report from Bob Proulx.
84787
84788         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84789         Instead, require UTILS_FUNC_MKSTEMP.
84790
84791 2001-11-17  Jim Meyering  <meyering@lucent.com>
84792
84793         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84794         Now, that's done as part of AC_FUNC_STRTOD.
84795
84796 2001-11-17  Jim Meyering  <meyering@lucent.com>
84797
84798         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84799         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84800         rather than group writable.  Patch by Juan F. Codagnone.
84801
84802         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84803         xrealloc, Instead, include "xalloc.h".
84804
84805         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84806         Remove explicit declarations of xmalloc, xrealloc,
84807         and xstrdup.  Instead, include "xalloc.h".
84808
84809         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84810         unlocked-io.h.
84811         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84812         Likewise.
84813         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84814
84815         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84816         Reported by Padraig Brady.
84817
84818         * lib/mkstemp.c: #undef mkstemp.
84819         Include config.h.
84820         (rpl_mkstemp): Rename from mkstemp.
84821         Protoize.
84822
84823 2001-11-16  Jim Meyering  <meyering@lucent.com>
84824
84825         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84826         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84827         determine the amount of total physical memory, use pstat_getstatic.
84828         HPUX-11 doesn't define _SC_PHYS_PAGES.
84829         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84830         If sysconf couldn't be used to determine the amount of available
84831         physical memory, use both pstat_getstatic and pstat_getdynamic.
84832         Based on a patch from Bob Proulx.
84833
84834 2001-11-10  Jim Meyering  <meyering@lucent.com>
84835
84836         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84837         (jm_PREREQ): Use it.
84838
84839 2001-11-09  Jim Meyering  <meyering@lucent.com>
84840
84841         * m4/jm-macros.m4: Require autoconf-2.52f.
84842         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84843         Use these AC_-prefixed names, not the AM_-prefixed ones.
84844
84845         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84846
84847 2001-11-05  Jim Meyering  <meyering@lucent.com>
84848
84849         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84850
84851 2001-11-04  Jim Meyering  <meyering@lucent.com>
84852
84853         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84854         $DEFS.
84855
84856 2001-11-03  Jim Meyering  <meyering@lucent.com>
84857
84858         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84859         of AC_DEFUN.
84860
84861         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84862         know the name of the variable in the macro definition.
84863
84864 2001-11-03  Jim Meyering  <meyering@lucent.com>
84865
84866         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84867         in argmatch_to_argument call.
84868
84869         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84870         argument.
84871
84872         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84873         e.g., a fault due to an attempt to free a NULL pointer.
84874
84875 2001-11-01  Jim Meyering  <meyering@lucent.com>
84876
84877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
84878         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
84879
84880 2001-11-01  Jim Meyering  <meyering@lucent.com>
84881
84882         * lib/dirfd.c, lib/dirfd.h: New files.
84883         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
84884
84885         * lib/hash.c (hash_print) [TESTING]: Clean up.
84886
84887 2001-10-22  Paul Eggert  <eggert@twinsun.com>
84888
84889         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
84890         to avoid a warning if -Wall.
84891
84892 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
84893
84894         * README: New file
84895         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
84896         (per RMS's instructions, this is now the canonical source)
84897         * lgpl/, gpl/: New directories.
84898
84899 2001-10-21  Paul Eggert  <eggert@twinsun.com>
84900
84901         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
84902
84903 2001-10-21  Jim Meyering  <meyering@lucent.com>
84904
84905         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
84906         this code would end up calling gettext even in packages built
84907         with --disable-nls.
84908         * lib/getopt.c (_): Likewise.
84909         * lib/regex.c (_): Likewise.
84910
84911 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84912
84913         * m4/error.m4 (jm_PREREQ_ERROR):
84914         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84915         AC_FUNC_STRERROR_R does that.
84916         Check for strerror declaration.
84917
84918         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84919         are supposed to have them these days.
84920         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84921         Merge changes from latest Autoconf CVS.
84922         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84923         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84924         POSIX decided to standardize on the int flavor of strerror_r.
84925
84926 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84927
84928         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84929         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84930         Use strerror_r that is only a macro, even if it is not a function.
84931         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84932         (private_strerror): Use prototypes, not old-style function definition.
84933         (print_errno_message): New function.
84934         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84935         char*-flavored one.
84936         (error_tail, error, error_at_line): Use it.
84937
84938 2001-10-11  Jim Meyering  <meyering@lucent.com>
84939
84940         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84941         and quote_n (1, ... to avoid clobbering a buffer.
84942
84943 2001-10-05  Jim Meyering  <meyering@lucent.com>
84944
84945         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84946         hash-pjw.h.
84947         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84948         * lib/hash-pjw.h: New file.
84949
84950 2001-09-30  Jim Meyering  <meyering@lucent.com>
84951
84952         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84953         `struct fsstat' has the `f_fstypename' member.
84954         Use that to define FS_TYPE, which is now used to make
84955         the getfsstat link test tighter.
84956
84957 2001-09-30  Jim Meyering  <meyering@lucent.com>
84958
84959         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84960         Include <sys/ucred.h>, for Apple Darwin.
84961         Include sys/mount.h and sys/fs_types.h only if available.
84962         (FS_TYPE): Define.
84963         (read_filesystem_list): Use FS_TYPE.
84964
84965 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84966
84967         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84968         a boolean context.
84969
84970 2001-09-29  Jim Meyering  <meyering@lucent.com>
84971
84972         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84973         [one-argument getmntent function]): Include stdio.h before mntent.h.
84974         SunOS 4.1.x needs it for the declaration of `FILE'.
84975         Patch by Volker Borchert.
84976
84977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84978         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84979         sys/fs_types.h, and make the link-test for getfsstat guard #include
84980         directives with appropriate #if HAVE_*_H tests so that we can
84981         detect getfsstat on Apple Darwin1.3.7 systems.
84982         Reported by Nelson Beebe.
84983         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84984
84985 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84986
84987         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84988         #defines strtoimax.  Also treat the other strto* functions
84989         like strtoimax.
84990
84991         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84992         Check for strtoul and strtoumax,
84993         as those declarations are made even in the signed case.
84994         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84995         Likewise, for strtol and strtoimax.
84996
84997 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84998
84999         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85000         #defines strtoimax.  Also treat the other strto* functions
85001         like strtoimax.
85002
85003         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85004         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85005         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85006
85007 2001-09-26  Jim Meyering  <meyering@lucent.com>
85008
85009         Most macros in unlocked-io.h had the wrong number of arguments.
85010         * lib/gen-uio: New script.
85011         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85012         * lib/unlocked-io.hin: Remove file.
85013         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85014         rather than trying to embed it here.
85015         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85016         Reported by Padraig Brady.
85017
85018 2001-09-25  Volker Borchert  <bt@teknon.de>
85019
85020         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85021         `result'.
85022
85023 2001-09-24  Jim Meyering  <meyering@lucent.com>
85024
85025         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85026
85027 2001-09-23  Jim Meyering  <meyering@lucent.com>
85028
85029         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85030         instead of the mere test for existence of mntent.h.  The latter
85031         would get a false-positive on AIX 3.4 systems.
85032         In the outer getmntent if-block, don't die if neither of the getmntent
85033         tests succeeds.  Instead, just fall through and continue with the
85034         remaining tests.
85035
85036 2001-09-23  Jim Meyering  <meyering@lucent.com>
85037
85038         * lib/mountlist.c: Remove useless parentheses in #if directives.
85039         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85040         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85041
85042 2001-09-22  Jim Meyering  <meyering@lucent.com>
85043
85044         * m4/gettext.m4: New file.  From gettext.
85045         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85046         * m4/progtest.m4: Likewise
85047         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85048         * m4/glibc21.m4: Likewise.
85049
85050         * m4/libintl.m4: Remove.  No longer used.
85051
85052 2001-09-22  Jim Meyering  <meyering@lucent.com>
85053
85054         * lib/localcharset.c: Update from latest gettext.
85055         * lib/config.charset: Likewise.
85056
85057 2001-09-20  Jim Meyering  <meyering@lucent.com>
85058
85059         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85060         strtoimax.
85061         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85062         strtoumax.
85063
85064 2001-09-20  Jim Meyering  <meyering@lucent.com>
85065
85066         * lib/xstrtol.c (strtoimax): Guard declaration with
85067         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85068         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85069         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85070         (strtoumax): Likewise, for completeness (it wasn't necessary).
85071
85072 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85073
85074         * lib/strtoimax.c (HAVE_LONG_LONG):
85075         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85076         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85077         to work around bug in IBM C compiler.
85078
85079 2001-09-17  Jim Meyering  <meyering@lucent.com>
85080
85081         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85082         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85083         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85084         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85085         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85086         whenever the right hand side need not be expanded by the shell.
85087
85088 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85089
85090         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85091         library.  It's not correct, as some older glibcs are buggy.
85092         fnmatch wasn't fixed until glibc 2.2.
85093
85094         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85095         special shell magic here.
85096
85097 2001-09-16  Jim Meyering  <meyering@lucent.com>
85098
85099         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85100         * m4/jm-macros.m4: Require it.
85101
85102 2001-09-16  Jim Meyering  <meyering@lucent.com>
85103
85104         * lib/mkdir.c: New file.
85105
85106 2001-09-15  Jim Meyering  <meyering@lucent.com>
85107
85108         * m4/jm-macros.m4: Check for help2man.
85109
85110 2001-09-11  Jim Meyering  <meyering@lucent.com>
85111
85112         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85113         The body, by Paul Eggert, was moved here from configure.in.
85114         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85115
85116 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85117
85118         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85119         (jm_PREREQ): Use it.
85120
85121 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85122
85123         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85124         Use ssize_t, not int, to store result of readlink.
85125         Check for ssize_t overflow as well as size_t overflow,
85126         as POSIX says the result of readlink is implementation-defined
85127         when ssize_t overflows.
85128         Remove unnecessary cast to char*.
85129         Use free+malloc instead of realloc, as the storage doesn't need
85130         to be preserved and it's clearer and can be more efficient that way.
85131         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85132         * lib/xreadlink.h (xreadlink): Update prototype.
85133
85134 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85135
85136         * lib/xgetcwd.c: Revert some of the previous change; intead,
85137         fix the HAVE_GETCWD_NULL code to behave more like the
85138         !HAVE_GETCWD_NULL code used to.
85139
85140         Include "xalloc.h".
85141         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85142         invoke xalloc_die.
85143
85144 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85145
85146         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85147         sys/param.h, as pathmax.h includes them.
85148
85149 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85150
85151         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85152         (jm_PREREQ_XGETCWD): New macro.
85153
85154         * m4/getcwd.m4: New file.
85155
85156 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85157
85158         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85159         like the HAVE_GETCWD_NULL code.
85160         Include pathmax.h if not HAVE_GETCWD.
85161         Do not include xalloc.h.
85162         (INITIAL_BUFFER_SIZE): New symbol.
85163         Do not use xmalloc / xrealloc, since the caller is responsible for
85164         handling errors.  Preserve errno around `free' during failure.
85165         Do not overrun buffer when using getwd.
85166
85167 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85168
85169         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85170         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85171         getcwd (NULL, 0).
85172
85173 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85174
85175         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85176         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85177         spotted by Jim Meyering.
85178
85179 2001-09-03  Jim Meyering  <meyering@lucent.com>
85180
85181         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85182         failure.
85183
85184 2001-09-02  Jim Meyering  <meyering@lucent.com>
85185
85186         * lib/error.c: Update from GNU libc.
85187
85188 2001-09-01  Jim Meyering  <meyering@lucent.com>
85189
85190         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85191         Used by df.
85192
85193 2001-09-01  Jim Meyering  <meyering@lucent.com>
85194
85195         * lib/xreadlink.c: New file.
85196         * lib/xreadlink.h: New file.
85197         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85198         xreadlink.h.
85199
85200         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85201         doesn't conflict with sparc Solaris 7's definition in
85202         /usr/include/sys/int_types.h.
85203
85204         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85205         files.
85206         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85207         and strncasecmp as r-values.  Unixware didn't have declarations.
85208
85209 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85210
85211         * lib/xstrtol.h: Add copyright notice.
85212         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85213         LONGINT_INVALID_SUFFIX_CHAR.
85214
85215 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85216
85217         * lib/xstrtol.c (strtoimax): New decl.
85218
85219 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85220
85221         * lib/xgetcwd.c: Don't include pathmax.h.
85222         Include stdlib.h and unistd.h if available.
85223         Include xalloc.h.
85224         (xmalloc, xstrdup, free): Remove decls.
85225         (xgetcwd): Don't assume sizes fit in unsigned.
85226         Check for overflow when computing sizes.
85227         Simplify reallocation code.
85228
85229 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85230
85231         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85232         a directory's st_size can have an arbitrary value, so the old
85233         usage could waste an arbitrary amount of memory.  All uses
85234         changed.
85235         * lib/savedir.h: Update prototype.
85236
85237 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85238
85239         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85240
85241         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85242         old strtoimax.c.
85243
85244         Also, make the following further changes to make this file's
85245         configuration more similar to that of strtol.c:
85246         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85247         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85248         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85249         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85250         changed to signed values.
85251
85252         And make the following changes as well:
85253         Fix copyright notice, as 1999 was missing.
85254         (verify): New macro.
85255         (strtoimax): Check sizes at compile-time, not run-time.
85256         Prefer strtol to strtoll if both work.
85257         (main): Remove; it was not that useful and was a pain to maintain.
85258
85259         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85260
85261 2001-08-31  Jim Meyering  <meyering@lucent.com>
85262
85263         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85264         Use an initial, malloc'd, buffer of length 128 rather than
85265         a statically allocated one of length 1024.
85266
85267 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85268
85269         Simplify code, partly by assuming autoconf 2.52 semantics.
85270
85271         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85272
85273         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85274         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85275         All uses removed.
85276         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85277         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85278         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85279         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85280         jm_AC_HEADER_INTTYPES_H.
85281         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85282
85283         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85284
85285         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85286         Quote first arg of AC_DEFUN.
85287         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85288         since they are needed to parse the include file even if we need
85289         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85290         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85291         but with opposite signedness.
85292
85293 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85294
85295         Merge 'exclude' changes from tar 1.13.22.
85296         This fixes one or two unlikely storage allocation overflow bugs,
85297         but doesn't change user-visible behavior otherwise.
85298
85299 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85300
85301         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85302         (jm_PREREQ_EXCLUDE): New macro.
85303
85304 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85305
85306         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85307         tm to be declared.
85308
85309 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85310
85311         * lib/hash.c: Remove '2001' from copyright notice.
85312
85313 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85314
85315         * lib/full-write.h: New file.
85316         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85317         * lib/full-write.c: Correct credits, as cccp.c no longer
85318         exists and anyway it was so heavily changed from the old cccp
85319         code as to be unrecognizable.  Include full-write.h.
85320         (full_write): Return size_t, with short writes meaning failure.
85321         All callers changed.  This fixes a bug with large buffers
85322         on 64-bit hosts.
85323         * lib/utime.c: Include full-write.h.
85324
85325 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85326
85327         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85328         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85329         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85330         Include if available.
85331         (<xalloc.h>): Include
85332         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85333         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85334         collide with FNM macros.
85335         (struct patopts): New struct.
85336         (struct exclude): Use it, as exclude patterns now come with options.
85337         (new_exclude): Support above changes.
85338         (new_exclude, add_exclude_file):
85339         Initial size must now be a power of two to simplify overflow checking.
85340         (free_exclude, fnmatch_no_wildcards): New function.
85341         (excluded_filename): No longer requires options arg, as the options
85342         are determined by add_exclude.  Now returns bool, not int.
85343         (excluded_filename, add_exclude):
85344         Add support for the fancy new exclusion options.
85345         (add_exclude, add_exclude_file): Now takes int options arg.
85346         Check for arithmetic overflow when computing sizes.
85347         (add_exclude_file): xrealloc might modify errno, so don't
85348         realloc until after errno might be used.
85349
85350         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85351         New macros.
85352         (free_exclude): New decl.
85353         (add_exclude, add_exclude_file): Now takes int options arg.
85354         (excluded_filename): No longer requires options arg, as the options
85355         are determined by add_exclude.  Now returns bool, not int.
85356
85357 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85358
85359         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85360
85361 2001-08-27  Jim Meyering  <meyering@lucent.com>
85362
85363         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85364
85365         * lib/version-etc.c (N_): Remove definition.
85366         Revert most of last change.
85367         Instead, simply don't mark the `Copyright...' string for translation.
85368         Based on advice from Paul Eggert.
85369
85370         * lib/strtoxmax.c: Tweak comment.
85371
85372 2001-08-26  Jim Meyering  <meyering@lucent.com>
85373
85374         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85375
85376         * m4/xstrtoimax.m4: New file.
85377         * m4/xstrtoumax.m4: Add comments explaining why we
85378         AC_REPLACE_FUNCS(strtol).
85379
85380 2001-08-26  Jim Meyering  <meyering@lucent.com>
85381
85382         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85383         of copyright with `%s' so translators don't get an untranslated
85384         message in 2002.
85385         (COPYRIGHT_YEAR): Define.
85386         (version_etc): Use fprintf rather than fputs.
85387         Suggestion from Ulrich Drepper.
85388
85389         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85390
85391         * lib/strtoll.c: New file, from GNU libc.
85392         * lib/xstrtoimax.c: New file.
85393
85394         * lib/xstrtol.h: Add xstrtoimax.
85395         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85396         * lib/strtoimax.c: New file.  Likewise, but first define
85397         STRTOUXMAX_SIGNED.
85398
85399         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85400         ...
85401         * lib/strtoxmax.c: ... then renamed to this.
85402
85403 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85404
85405         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85406         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85407         (jm_AC_TYPE_INTMAX_T): New macro.
85408         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85409
85410         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85411
85412         * m4/longlong.m4: Renamed from ulonglong.m4.
85413         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85414         * m4/uintmax_t.m4: Removed.
85415
85416 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85417
85418         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85419         Port to Solaris 8, where 'sed' requires a space after the 'r'
85420         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85421         Redirect output to $tmp just once.
85422
85423 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85424
85425         * lib/addext.c (<errno.h>): Include.
85426         (errno): Declare if not defined.
85427         (addext): Work correctly when pathconf returns -1 and leaves
85428         errno alone because there is no limit.  Also, work even if
85429         pathconf returns a value greater than SIZE_MAX.
85430
85431 2001-08-12  Jim Meyering  <meyering@lucent.com>
85432
85433         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85434         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85435         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85436         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85437         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85438         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85439         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85440         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85441         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85442         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85443         utime.m4, utimes.m4, xstrtoumax.m4:
85444         Quote the first argument in each use of AC_DEFUN.
85445
85446 2001-08-12  Jim Meyering  <meyering@lucent.com>
85447
85448         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85449         Simply `return getcwd (NULL, 0);'.
85450         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85451         Use 1300 as initial value for length, not PATH_MAX.
85452
85453         * lib/pathmax.h: Clean up cpp syntax.
85454
85455 2001-08-12  Jim Meyering  <meyering@lucent.com>
85456
85457         * lib/gettimeofday.c: New file.
85458         * lib/gtod.h: New file.
85459         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85460
85461 2001-08-05  Jim Meyering  <meyering@lucent.com>
85462
85463         * m4/jm-macros.m4: Require autoconf-2.52.
85464
85465 2001-08-04  Jim Meyering  <meyering@lucent.com>
85466
85467         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85468         stmt, to get in sync with glibc.
85469
85470 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85471
85472         The following changes are from gettext 0.10.39 as maintained by
85473         Bruno Haible.
85474
85475         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85476         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85477         with inverted sense.  All uses changed.
85478
85479         * lib/mbswidth.c: Don't include <limits.h>.
85480         Include <stdlib.h> and <string.h> unconditionally.
85481         (iswcntrl, mbsinit, ISCNTRL): New macros.
85482         (mbsnwidth): Use K&R style function declarations.
85483         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85484         can optimize it when MB_CUR_MAX == 1.
85485         The width of control characters is zero, not 1.
85486
85487 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85488
85489         The following changes are from gettext 0.10.39 as maintained by
85490         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85491
85492         * m4/codeset.m4: Upgrade to serial AM1.
85493         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85494         all uses changed.  Quote first arg of AC_DEFUN.
85495         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85496
85497         * m4/iconv.m4: Upgrade to serial AM2.
85498         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85499         Add --with-libconv-prefix.
85500         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85501         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85502         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85503         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85504         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85505
85506         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85507         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85508         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85509         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85510         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85511         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85512         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85513         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85514         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85515
85516         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85517         string.h any more.
85518
85519         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85520         not the default value.
85521
85522         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85523         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85524         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85525         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85526         Also check for iswcntrl, used for wcwidth fallback.
85527         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85528         to Autoconf 2.13.
85529
85530 2001-08-03  Jim Meyering  <meyering@lucent.com>
85531
85532         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85533         as it was in the original.  Reported by Paul Eggert.
85534
85535 2001-07-16  Jim Meyering  <meyering@lucent.com>
85536
85537         * m4/gettimeofday.m4: New file.
85538         Prompted by a report from Bernhard Baehr.
85539
85540 2001-07-15  Jim Meyering  <meyering@lucent.com>
85541
85542         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85543         stuff. Now it's in ../Makefile.cfg.
85544
85545 2001-07-15  Jim Meyering  <meyering@lucent.com>
85546
85547         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85548         (BUILT_SOURCES): Add unlocked-io.h.
85549         (io_functions): Define.
85550         (unlocked-io.h): New rule.
85551         (DISTCLEANFILES): Add unlocked-io.h.
85552         (all-local): Depend on unlocked-io.h, to ensure it is created.
85553
85554         * lib/unlocked-io.hin: New file
85555
85556         * lib/regex.c: Update from glibc.
85557
85558 2001-07-05  Jim Meyering  <meyering@lucent.com>
85559
85560         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85561         recommendation.
85562         (libfetish_a_SOURCES): Put all .h files here instead.
85563         Remove a thus-exposed (better checks in automake) duplicate and
85564         two unnecessary .h files.
85565
85566 2001-07-04  Jim Meyering  <meyering@lucent.com>
85567
85568         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85569         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85570         distcheck failure.
85571
85572 2001-07-02  Jim Meyering  <meyering@lucent.com>
85573
85574         The following changes were prompted by suggestions from Bruno Haible.
85575
85576         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85577         is now generated.
85578         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85579         definition of EXTRA_DIST.
85580         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85581         ensure that the generated file is created/updated whenever the list
85582         of $(unlocked_functions) is changed.
85583         (jm-glibc-io.m4): New rule.
85584         (unlocked-io.h): New rule -- currently unused.
85585
85586 2001-06-24  Jim Meyering  <meyering@lucent.com>
85587
85588         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85589         unmatched right bracket, rather than kludging it with an extra,
85590         falsely-matching quote in a comment.  Patch by Akim Demaille.
85591
85592 2001-06-11  Jim Meyering  <meyering@lucent.com>
85593
85594         * lib/regex.c: Update from GNU libc.
85595
85596 2001-05-27  Jim Meyering  <meyering@lucent.com>
85597
85598         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85599         Check for ut_type in struct utmp.
85600
85601 2001-05-27  Jim Meyering  <meyering@lucent.com>
85602
85603         * lib/readutmp.h (UT_TYPE): Define.
85604
85605 2001-05-24  Jim Meyering  <meyering@lucent.com>
85606
85607         * lib/argmatch.c: Include "quote.h".
85608         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85609         quote function.  Reported by Göran Uddeborg.
85610
85611 2001-05-22  Jim Meyering  <meyering@lucent.com>
85612
85613         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85614         now that we use the package-supplied version unconditionally.
85615         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85616
85617 2001-05-21  Jim Meyering  <meyering@lucent.com>
85618
85619         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85620         shell syntax errors.
85621
85622 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85623
85624         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85625
85626 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85627
85628         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85629         Don't bother to check library strftime, since
85630         we'll be using our own my_strftime function anyway.
85631         Define my_strftime instead of strftime.
85632
85633 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85634
85635         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85636         which is not yet declared.
85637
85638 2001-05-15  Jim Meyering  <meyering@lucent.com>
85639
85640         * m4/regex.m4: Use proper quoting so brackets appear in the test
85641         program.
85642         Reported by, and with help from, Bruno Haible.
85643
85644 2001-05-13  Jim Meyering  <meyering@lucent.com>
85645
85646         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85647         undefined.
85648
85649 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85650
85651         dirname code cleanup.  base_name now behaves more compatibly
85652         with POSIX basename when given file names that have trailing
85653         slashes, and similarly for dir_name.  Add new primitives
85654         base_len and dir_len.  Put the directory-name-related decls
85655         into dirname.h.
85656
85657         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85658         * lib/backupfile.c (base_name): Likewise.
85659         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85660         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85661         * lib/makepath.c (strip_trailing_slashes): Likewise.
85662         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85663         ISSLASH): Likewise.
85664         * lib/rename.c (strip_trailing_slashes): Likewise.
85665         * lib/same.c (base_name): Likewise.
85666         * lib/stripslash.c (ISSLASH): Likewise.
85667
85668         * lib/addext.c: Include <dirname.h> after size_t is defined.
85669         * lib/backupfile.c: Likewise.
85670
85671         * lib/addext.c (addext): Use base_len to trim redundant
85672         trailing slashes instead of doing it ourselves.
85673         But do not trim the last slash if it is not redundant.
85674
85675         * lib/backupfile.c (find_backup_file_name,
85676         max_backup_version): Use base_len instead of rolling it ourselves.
85677         Handle the case of "" and (on DOS) "C:" correctly.
85678
85679         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85680         needed. Include <string.h>, <dirname.h>.
85681         (base_name): Allow file names ending in slashes, other than names
85682         that are all slashes.  In this case, return the basename followed
85683         by the slashes.  This is more general, and can be used in places
85684         where the original base_name purposely had an assertion failure.
85685         (base_len): New function.
85686
85687         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85688         Do not include <assert.h>; no longer needed.
85689         Include xalloc.h.
85690         (memrchr): Remove decl.
85691         (dir_name_r): Remove.
85692         (dir_len): Renamed from dirlen.  All callers changed.
85693         Rewrite in terms of base_name, for simplicity and consistency.
85694         (dir_name): Never return NULL.  All callers changed.
85695         Do not include <stdlib.h> in test program; no longer needed.
85696         return 0; is fine for test program.
85697
85698         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85699         New macros.
85700         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85701
85702         * lib/path-concat.c (path_concat): Use base_len to compute
85703         base length, not strlen; this means we cannot rely on memcpy
85704         to null-terminate.
85705
85706         * lib/same.c (STREQ): Remove.
85707         (same_name): Handle the case where the basename ends in trailing '/'.
85708
85709         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85710         a slash was stripped.  Do not strip the last slash after a
85711         file system prefix.
85712
85713 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85714
85715         * lib/Makefile.am (libfetish_a_SOURCES):
85716         Add strftime.c, since we now compile it on all hosts.
85717
85718         * lib/strftime.c (my_strftime):
85719         Define to nstrftime if emacs, but only if my_strftime is not defined.
85720         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85721         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85722         Add one more extra argument: a nanoseconds value.
85723         All uses changed.
85724         (ns): New macro.
85725         (my_strftime function): Add %N format.
85726         (emacs_strftimeu): Renamed from emacs_strftime,
85727         with extra ut argument.
85728
85729 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85730
85731         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85732
85733 2001-04-21  Jim Meyering  <meyering@lucent.com>
85734
85735         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85736         doesn't interfere.
85737
85738 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85739
85740         * m4/ftruncate.m4: Check for chsize.
85741         Link with ftruncate.o unconditionally if ftruncate is missing.
85742         This was required when cross-compiling to i586-mingw32msvc.
85743
85744 2001-04-08  Jim Meyering  <meyering@lucent.com>
85745
85746         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85747         recomputed; that's necessary when the offset spans a DST transition.
85748         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85749
85750 2001-04-02  Jim Meyering  <meyering@lucent.com>
85751
85752         * lib/regex.h, regex.c: Update from GNU libc.
85753
85754 2001-03-24  Jim Meyering  <meyering@lucent.com>
85755
85756         * m4/jm-macros.m4: Require autoconf-2.49d.
85757
85758 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85759
85760         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85761
85762 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85763
85764         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85765
85766 2001-03-17  Jim Meyering  <meyering@lucent.com>
85767
85768         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85769         now that the version in autoconf is equivalent.
85770         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85771
85772         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85773         Suggestion from Akim Demaille.
85774
85775         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85776         (jm_PREREQ_TEMPNAME): New function.
85777
85778 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85779
85780         * lib/tempname.c (uint64_t): Define to uintmax_t if
85781         not defined, and if UINT64_MAX is not defined.
85782         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85783         Reported by John David Anglin.
85784
85785 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85786
85787         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85788         resolve alias if codeset is empty.
85789         * lib/config.charset (BeOS): Use wildcard syntax.
85790
85791 2001-03-13  Jim Meyering  <meyering@lucent.com>
85792
85793         * lib/path-concat.c (path_concat)
85794         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85795         concatenating e.g., `C:' and `foo'.
85796         From Bruno Haible.
85797
85798 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85799
85800         * lib/localcharset.c (locale_charset): Don't use
85801         setlocale(LC_CTYPE,NULL). Don't return NULL.
85802         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85803
85804 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85805
85806         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85807         support for DOS/DJGPP.
85808
85809 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85810
85811         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85812         lacks mkstemp.  Compile our own tempname.c if we compile our own
85813         mkstemp.c, as mkstemp relies on tempname.
85814
85815 2001-03-01  Jim Meyering  <meyering@lucent.com>
85816
85817         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85818         AH_VERBATIM really does output its argument verbatim.
85819
85820 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85821
85822         * lib/Makefile.am (libfetish_a_SOURCES):
85823         Add dup-safer.c, fopen-safer.c.
85824         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85825
85826         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85827         * lib/unistd-safer.h: New files.
85828
85829 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85830
85831         The mkstemp replacement is taken from glibc 2.2.2, with some
85832         portability fixes for use outside glibc, as follows:
85833
85834         * lib/tempname.c (struct_stat64): New macro.
85835         (direxists, __gen_tempname): Use it.
85836         This avoids a portability problem with Solaris 8.
85837
85838         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85839         (<stddef.h>, <stdint.h>, <string.h>):
85840         Include only if STDC_HEADERS || _LIBC.
85841         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85842         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85843         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85844         (__set_errno): Define this macro if <errno.h> doesn't.
85845         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85846         Define these macros if <stdio.h> doesn't.
85847         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85848         Define these macros if <sys/stat.h>
85849         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85850         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85851         __xstat64): Define if not _LIBC.
85852         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85853         (__gen_tempname): Invoke gettimeofday only if
85854         HAVE_GETTIMEOFDAY || _LIBC;
85855         otherwise, fall back on plain "time".
85856         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85857
85858         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85859
85860         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85861
85862 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85863
85864         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85865
85866 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85867
85868         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85869         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85870         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85871         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85872
85873 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85874
85875         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
85876         Remove workaround macros for hosts that have mbrtowc but not
85877         mbstate_t, as we now insist on proper declarations for both
85878         before using mbrtowc.
85879
85880 2001-02-17  Jim Meyering  <meyering@lucent.com>
85881
85882         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
85883         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
85884         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
85885         UnixWare 7.1.1.
85886
85887         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
85888         rather than AC_CACHE_VAL.
85889
85890 2001-02-17  Jim Meyering  <meyering@lucent.com>
85891
85892         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
85893         around included file name.
85894
85895         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
85896
85897         * lib/strftime.c: Update from GNU libc (the only changes were to
85898         comments).
85899
85900 2001-02-17  Jim Meyering  <meyering@lucent.com>
85901
85902         * lib/regex.c: Update from libc.
85903
85904 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
85905
85906         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
85907         clash.
85908
85909 2001-02-16  Paul Eggert  <eggert@twinsun.com>
85910
85911         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85912         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85913         Reported by Mark Hounschell via Paul Eggert.
85914
85915 2001-02-07  Jim Meyering  <meyering@lucent.com>
85916
85917         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85918
85919 2001-02-05  Jim Meyering  <meyering@lucent.com>
85920
85921         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85922         it includes the patch required for `large file' support with at least
85923         HP-UX's 10.20 /bin/cc.
85924
85925 2001-02-03  Jim Meyering  <meyering@lucent.com>
85926
85927         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85928         AS_IF, now that it works once again (mysteriously).
85929         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85930
85931 2001-01-30  Jim Meyering  <meyering@lucent.com>
85932
85933         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85934         * m4/chown.m4: Rename conftestchown to conftest.chown.
85935         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85936         s/conftestdir2/conftest.d2/.
85937         * m4/utimes.m4: s/conftestdata/conftest.data/
85938         Inspired by Pavel Roskin's change in autoconf.
85939
85940 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85941
85942         * lib/config.charset: Update for FreeBSD 4.2.
85943
85944 2001-01-27  Jim Meyering  <meyering@lucent.com>
85945
85946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85947         a use of AS_IF.
85948         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85949
85950 2001-01-26  Jim Meyering  <meyering@lucent.com>
85951
85952         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85953         quotearg.c includes it.
85954
85955 2001-01-26  Jim Meyering  <meyering@lucent.com>
85956
85957         * lib/quotearg.c: Include stddef.h.
85958         * lib/quote.c: Include stddef.h.
85959         Reported by Axel Kittenberger.
85960
85961         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85962         line in double quotes so that it evokes a better diagnostic.
85963         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85964         Reported by Axel Kittenberger.
85965
85966 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85967
85968         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85969         as if it was a `charset'.
85970
85971 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85972
85973         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85974         has const.
85975
85976 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85977
85978         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85979         to avoid a warning.  Add back 'const' to inptr.
85980
85981 2001-01-20  Jim Meyering  <meyering@lucent.com>
85982
85983         Be sure that headers are checked before used in code compiled
85984         for the type checks.
85985         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85986         In place of that, invoke jm_CHECK_ALL_TYPES.
85987         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85988         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85989         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85990         The check for ssize_t was mistakenly run before the test for unistd.h.
85991
85992         The configure-time check for stdbool.h was missing.
85993         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85994         (jm_PREREQ_HASH): New function.
85995
85996 2001-01-17  Jim Meyering  <meyering@lucent.com>
85997
85998         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85999         for autoconf-2.49c.
86000         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86001
86002 2001-01-16  Jim Meyering  <meyering@lucent.com>
86003
86004         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86005         From Bruno Haible.
86006
86007 2001-01-14  Jim Meyering  <meyering@lucent.com>
86008
86009         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86010         foo and bar.  Create conftestdir/ in the script, not in the C code.
86011         Remove directories in the script, not in the C code.
86012         Remove conftestdir{,2} before trying to create the directory.
86013         Make the entire configure script fail if the mkdir fails.
86014
86015 2001-01-14  Jim Meyering  <meyering@lucent.com>
86016
86017         * lib/rename.c: New file.  From Volker Borchert.
86018         Include stdlib.h, string.h or strings.h, and xalloc.h.
86019         Use strip_trailing_slashes rather than open-coding it.
86020
86021 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86022
86023         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86024
86025 2001-01-03  Jim Meyering  <meyering@lucent.com>
86026
86027         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86028         of local `inptr' to avoid warning with some system declarations of
86029         iconv.
86030
86031 2001-01-02  Volker Borchert  <bt@teknon.de>
86032
86033         * m4/rename.m4: New file.
86034         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86035
86036 2001-01-01  Jim Meyering  <meyering@lucent.com>
86037
86038         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86039         even on systems with utmpx.h.  It's necessary for the declaration of
86040         utmp's ut_user member.  Reported by Andreas Jaeger.
86041
86042         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86043         available. They are required for the declarations of getgrgid and
86044         getpwuid resp.
86045         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86046         Reported by Andreas Jaeger.
86047
86048 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86049
86050         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86051         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86052         so `make install' also works in VPATH builds.
86053
86054 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86055
86056         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86057         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86058         can be used in subdirectories.
86059
86060 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86061
86062         * lib/modechange.c: Do not assume that mode_t uses the
86063         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86064         the other-execute bit of FOO even if S_IXOTH != 1.
86065
86066         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86067         WOTH, XOTH, ALLM): New macros.
86068         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86069          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86070         Use them.
86071         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86072         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86073         (mode_compile):
86074         No need to use uintmax_t; unsigned long is long enough.
86075         Don't bother to get suffix since we don't use it.
86076
86077 2000-12-26  Jim Meyering  <meyering@lucent.com>
86078
86079         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86080         better with autoheader.
86081
86082 2000-12-24  Jim Meyering  <meyering@lucent.com>
86083
86084         * lib/hash.c (is_prime): Return explicit boolean values.
86085         (hash_get_first): Return NULL to appease Irix5.6's 89.
86086         Reported by Nelson Beebe.
86087
86088 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86089
86090         * lib/localcharset.c (locale_charset): Add support for Win32.
86091
86092 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86093
86094         * lib/physmem.h, lib/physmem.c: New files.
86095
86096         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86097         (noinst_HEADERS): Add physmem.h.
86098
86099         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86100         't' for compatibility with Solaris 8 sort.
86101
86102 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86103
86104         * lib/config.charset: Add support for BeOS.
86105
86106 2000-12-17  Jim Meyering  <meyering@lucent.com>
86107
86108         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86109         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86110
86111 2000-12-16  Jim Meyering  <meyering@lucent.com>
86112
86113         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86114         N and M) would have treated it like `chown N:N FILE'.
86115
86116         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86117
86118 2000-12-16  Jim Meyering  <meyering@lucent.com>
86119
86120         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86121         SHELLS_FILE to a file name that's useful on djgpp systems.
86122         Include stdlib.h.
86123         (ADDITIONAL_DEFAULT_SHELLS): Define.
86124         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86125         Based mostly on a patch from Prashant TR.
86126
86127 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86128
86129         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86130         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86131         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86132
86133 2000-12-08  Andreas Schwab  <schwab@suse.de>
86134
86135         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86136         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86137
86138 2000-12-07  Jim Meyering  <meyering@lucent.com>
86139
86140         * lib/stripslash.c (ISSLASH): Define.
86141         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86142         `/'.
86143         From Prashant TR.
86144
86145         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86146         (dir_name_r): Declare this function as static.
86147         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86148         manifest itself on a name containing a mix of slashes and
86149         backslashes.
86150         Make this function work with names starting with a DOS-style
86151         drive letter and colon prefix.
86152         (dir_name): Append `.' if necessary.
86153         Based mostly on patches from Prashant TR and Eli Zaretskii.
86154
86155         * lib/dirname.h (dir_name_r): Remove prototype.
86156
86157 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86158
86159         * m4/off_t-format.m4: Remove this file.
86160         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86161
86162 2000-12-06  Jim Meyering  <meyering@lucent.com>
86163
86164         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86165         replacement strtoull, we may well need the replacement strtoul, too.
86166         Check for declarations of strtoul and strtoull.
86167         Check for strtol.  Mainly as a cue to cause automake to include
86168         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86169         Check for limits.h -- strtol.c needs it.
86170
86171 2000-12-05  Jim Meyering  <meyering@lucent.com>
86172
86173         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86174
86175 2000-12-04  Jim Meyering  <meyering@lucent.com>
86176
86177         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86178         Also include memory.h, stdlib.h, unistd.h if appropriate.
86179         Reported by Andreas Jaeger (conflicting declaration of malloc).
86180
86181 2000-12-02  Jim Meyering  <meyering@lucent.com>
86182
86183         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86184         * m4/jm-macros.m4 (jm_MACROS): require it.
86185
86186 2000-12-02  Jim Meyering  <meyering@lucent.com>
86187
86188         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86189
86190 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86191
86192         * lib/memrchr.c: Include <config.h> before any system include file.
86193
86194 2000-11-30  Jim Meyering  <meyering@lucent.com>
86195
86196         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86197
86198 2000-11-30  Jim Meyering  <meyering@lucent.com>
86199
86200         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86201
86202 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86203
86204         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86205
86206 2000-11-26  Jim Meyering  <meyering@lucent.com>
86207
86208         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86209
86210 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86211
86212         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86213         size of (size_t) -1; it's not portable.
86214
86215 2000-11-17  Jim Meyering  <meyering@lucent.com>
86216
86217         * lib/strstr.c: Update from GNU libc.
86218
86219 2000-11-17  Akim Demaille  <akim@epita.fr>
86220
86221         * lib/obstack.h: Formatting changes.
86222         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86223         prevent type checking.
86224         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86225         cast the value to (void *): assigning a `foo *' to a `void *'
86226         variable is valid.
86227         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86228
86229 2000-11-16  Jim Meyering  <meyering@lucent.com>
86230
86231         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86232
86233 2000-11-11  Jim Meyering  <meyering@lucent.com>
86234
86235         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86236
86237 2000-11-10  Jim Meyering  <meyering@lucent.com>
86238
86239         * lib/obstack.h: Update from GNU libc.
86240         * lib/obstack.c: Likewise.
86241
86242 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86243
86244         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86245
86246 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86247
86248         * lib/getusershell.c (setusershell): Use rewind rather than
86249         fseek/fseeko, to avoid configuration hassles with fseeko.
86250         Don't bother opening SHELLS_FILE if shellstream is NULL;
86251         it's not necessary.
86252
86253 2000-11-05  Jim Meyering  <meyering@lucent.com>
86254
86255         * lib/makepath.h (make_dir): Declare.
86256         * lib/makepath.c (make_dir): Remove `static' attribute.
86257         Tweak a comment.
86258
86259 2000-11-04  Jim Meyering  <meyering@lucent.com>
86260
86261         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86262
86263 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86264
86265         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86266         last one in a bucket, advance to the next bucket.
86267
86268 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86269
86270         * lib/fnmatch.c: Do not comment out all the code if we are using
86271         the GNU C library, because in some cases we are replacing buggy
86272         code in the GNU C library itself.
86273
86274 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86275
86276         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86277         (regex_compile): Catch bogus \(\1\).
86278
86279 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86280
86281         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86282         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86283         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86284
86285 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86286
86287         * lib/error.h, getline.h, modechange.h:
86288         Remove "2000" from Copyright line, as the file hasn't been
86289         changed this year other than in the copyright notice.
86290
86291         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86292         was changed this year.
86293
86294 2000-10-29  Jim Meyering  <meyering@lucent.com>
86295
86296         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86297         renaming.
86298         * m4/ls-mntd-fs.m4: Likewise
86299
86300 2000-10-29  Jim Meyering  <meyering@lucent.com>
86301
86302         * lib/xstat.in: Fix grammar in comment.
86303
86304 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86305
86306         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86307         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86308         doesn't define __restrict_arr.
86309
86310 2000-10-28  Jim Meyering  <meyering@lucent.com>
86311
86312         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86313         (jm_PREREQ_MEMCHR): New function.
86314
86315 2000-10-28  Jim Meyering  <meyering@lucent.com>
86316
86317         * lib/memchr.c: Update from libc.
86318         Adjust for portability:
86319         [HAVE_STDLIB_H]: Include stdlib.h.
86320         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86321         Undef __memchr, too.
86322         [!weak_alias]: Define __memchr to memchr.
86323
86324         * lib/regex.c: Update from libc.
86325         * lib/regex.h: Likewise.
86326         * lib/getopt1.c: Likewise.
86327         * lib/memcmp.c: Likewise.
86328
86329         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86330         Avoid using fseek, when possible -- it's broken by design.
86331         Patch by Ulrich Drepper.
86332
86333 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86334
86335         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86336         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86337         Giving in to popular pressure to shut up the compiler with casts.
86338
86339 2000-10-26  Jim Meyering  <meyering@lucent.com>
86340
86341         * lib/strftime.c: Update from libc.
86342
86343 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86344
86345         * regex.c: More `unsigned char' -> `re_char' changes.
86346         Also change several `int' into `re_wchar_t'.
86347         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86348         (PUSH_FAILURE_POINTER): Don't cast any more.
86349         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86350         We want GCC to complain, since this piece of code makes
86351         re_match non-reentrant, which *should* be fixed.
86352         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86353         (EXTEND_BUFFER): Use RETALLOC.
86354         (SET_LIST_BIT): Don't cast.
86355         (re_wchar_t): New type.
86356         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86357         that those two functions will always properly return.
86358         (IMMEDIATE_QUIT_CHECK): Cast to void.
86359         (analyse_first): Use recursion rather than an explicit stack.
86360         (re_compile_fastmap): Can't fail anymore.
86361         (re_search_2): Don't check re_compile_fastmap for failure.
86362         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86363         Now also sets the new value (passed in a new argument).
86364         (re_match_2_internal): Use it.
86365         Also, use a new var `reg' of type size_t when looping through regs
86366         rather than reuse the inappropriate `mcnt'.
86367
86368 2000-10-25  Jim Meyering  <meyering@lucent.com>
86369
86370         * lib/obstack.c: Update from libc.
86371
86372 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86373
86374         * regex.c (regex_compile): Change the way of handling a range from
86375         a char less than 256 to a char not less than 256.
86376
86377 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86378
86379         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86380         NT-Emacs only.
86381         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86382         so that re_search functions only quit when callers expect them to.
86383
86384 2000-10-23  Jim Meyering  <meyering@lucent.com>
86385
86386         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86387         wrong.  That set_locale call must not have any side effects.
86388         From Paul Eggert.
86389
86390 2000-10-22  Jim Meyering  <meyering@lucent.com>
86391
86392         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86393         [CYCLIC]: Remove now-unused definition.
86394
86395         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86396         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86397         Suggestion from Ulrich Drepper.
86398
86399 2000-10-21  Jim Meyering  <meyering@lucent.com>
86400
86401         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86402         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86403         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86404
86405 2000-10-21  Jim Meyering  <meyering@lucent.com>
86406
86407         * lib/dirname.c (memrchr): Declare if necessary.
86408         (dir_name): Remove the restriction that there be no
86409         trailing slashes.  Now, this code skips past them, effectively
86410         ignoring them.
86411         [TEST_DIRNAME] (main): New unit tests.
86412
86413         * lib/memrchr.c: New file from GNU libc.
86414         Undef __memrchr, too.
86415         [!weak_alias]: Define __memrchr to memrchr.
86416         Guard weak_alias use with `#ifdef weak_alias'.
86417
86418 2000-10-21  Jim Meyering  <meyering@lucent.com>
86419
86420         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86421         (dir_name): Use dir_name_r.
86422         * lib/dirname.h (dir_name_r): Declare it.
86423
86424 2000-10-17  Jim Meyering  <meyering@lucent.com>
86425
86426         * lib/quote.h (PARAMS): Define and use.
86427         Reported by Akim Demaille.
86428
86429         * lib/getopt.c: Update from libc.
86430
86431 2000-10-16  Jim Meyering  <meyering@lucent.com>
86432
86433         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86434         setlocale.
86435         From Jan Fedak.
86436
86437 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86438
86439         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86440
86441 2000-09-25  Jim Meyering  <meyering@lucent.com>
86442
86443         * lib/md5.h (rol): Define (from GnuPG).
86444
86445         * lib/sha.c: Give credit (GnuPG) where due.
86446         (M): Use rol rather than open-coding it.
86447         Add a FIXME comment.
86448
86449 2000-09-21  Jim Meyering  <meyering@lucent.com>
86450
86451         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86452         Reported by Michael Stone.
86453
86454 2000-09-20  Jim Meyering  <meyering@lucent.com>
86455
86456         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86457         (noinst_HEADERS): Add sha.h.
86458         Based on code from Scott G. Miller and from GnuPG.
86459
86460 2000-09-18  Jim Meyering  <meyering@lucent.com>
86461
86462         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86463         LIBS. Otherwise, everyone ends up linking with -lelf for some
86464         configurations.
86465         Reported by Mike Stone.
86466
86467 2000-09-15  Jim Meyering  <meyering@lucent.com>
86468
86469         * lib/regex.c: Update from libc.
86470
86471 2000-09-10  Jim Meyering  <meyering@lucent.com>
86472
86473         * lib/getopt.c (_getopt_internal): Update from glibc.
86474
86475 2000-09-09  Jim Meyering  <meyering@lucent.com>
86476
86477         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86478         think it should be used as a general replacement for isascii.
86479         * lib/fnmatch.c: Likewise.
86480         * lib/mbswidth.c: Likewise
86481         * lib/regex.c: Likewise.
86482
86483         Don't use atoi.
86484         * lib/userspec.c: Include sys/param.h and limits.h.
86485         Include xstrtol.h.
86486         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86487         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86488         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86489         UID, GID.  Check range.
86490
86491 2000-09-06  Jim Meyering  <meyering@lucent.com>
86492
86493         * lib/getopt.c (_getopt_internal): Update from glibc.
86494
86495 2000-08-30  Jim Meyering  <meyering@lucent.com>
86496
86497         * lib/strftime.c: Merge in changes from GNU libc.
86498
86499 2000-08-26  Jim Meyering  <meyering@lucent.com>
86500
86501         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86502         * m4/fpending.m4: New file.
86503
86504 2000-08-26  Jim Meyering  <meyering@lucent.com>
86505
86506         * lib/closeout.c: Include "__fpending.h".
86507         (close_stdout_status): Return right away if there's nothing to flush.
86508
86509         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86510         * lib/__fpending.c: New file.
86511         * lib/__fpending.h: New file.
86512
86513 2000-08-20  Jim Meyering  <meyering@lucent.com>
86514
86515         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86516         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86517         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86518
86519 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86520
86521         Improve fileutils installation on systems where running
86522         programs (like install) can't be unlinked.
86523         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86524         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86525
86526 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86527
86528         Standardize on "memory exhausted" instead of "Memory exhausted"
86529         or "virtual memory exhausted".
86530         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86531         "virtual memory exhausted".
86532         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86533         our own message.
86534         * lib/userspec.c (parse_user_spec): Likewise.
86535         * lib/bumpalloc.h: comment fix
86536         * lib/same.c, userspec.c: Include xalloc.h.
86537
86538         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86539         not char *const and pointing to a constant array.
86540         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86541         (xrealloc): Comment fix.
86542
86543         * lib/userspec.c (parse_user_spec):
86544         Don't translate a message until just before returning,
86545         to avoid unnecessary translation.
86546
86547 2000-08-07  Jim Meyering  <meyering@lucent.com>
86548
86549         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86550         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86551         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86552         getgroups.c, gethostname.c, getopt.h, group-member.c,
86553         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86554         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86555         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86556         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86557         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86558         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86559         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86560         yesno.c: Back out Copyright date changes for each file with no change
86561         this year.  This eases coordination with other programs using the same
86562         source code modules.  From Paul Eggert.
86563
86564 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86565
86566         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86567         not char, for compatibility with glibc 2.1.3 strftime.c.
86568
86569 2000-08-03  Greg McGary  <greg@mcgary.org>
86570
86571         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86572         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86573         (EXTEND_BUFFER): Use them.
86574
86575 2000-08-01  Jim Meyering  <meyering@lucent.com>
86576
86577         * lib/dirname.c (ISSLASH): Define.
86578         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86579         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86580         both `\' and `/' may be use as path separators.
86581         Based on a patch from Prashant TR.
86582
86583 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86584
86585         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86586         slot vector a constant, since it might get modified.
86587
86588 2000-07-31  Jim Meyering  <meyering@lucent.com>
86589
86590         * lib/xmalloc.c: Use `virtual memory exhausted', not
86591         `Memory exhausted'.
86592         * lib/obstack.c (print_and_abort): Likewise.
86593
86594 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86595
86596         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86597         buffer, so that the caller can always quote one small
86598         component of a "memory exhausted" message in slot 0.
86599         From a suggestion by Jim Meyering.
86600
86601 2000-07-30  Jim Meyering  <meyering@lucent.com>
86602
86603         * lib/makepath.c (make_path): Quote the other instance, too.
86604
86605         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86606         (STATIC_BUF_SIZE): Define.
86607         (quotearg_n_options): Use only statically allocated storage when
86608         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86609         than STATIC_BUF_SIZE.
86610
86611 2000-07-29  Jim Meyering  <meyering@lucent.com>
86612
86613         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86614         * lib/dirname.c (dir_name): Likewise.
86615
86616         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86617         `/'.
86618
86619         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86620         (dir_name): Assert that there are no trailing slashes.
86621
86622 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86623
86624         * lib/mbswidth.h (mbswidth): Add a flags argument.
86625         (mbswidth): New declaration.
86626         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86627         * lib/mbswidth.c (mbswidth): Add a flags argument.
86628         (mbsnwidth): New function.
86629
86630 2000-07-24  Jim Meyering  <meyering@lucent.com>
86631
86632         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86633
86634 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86635
86636         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86637
86638 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86639
86640         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86641         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86642         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86643         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86644         invoke multibyte primitives.
86645
86646 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86647
86648         * lib/quotearg.c:
86649         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86650         so that mbstate_t is always defined.
86651
86652         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86653         be 1 in at least one GCC installation, and this configuration
86654         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86655         performance on hosts that have mbrtowc but have only unibyte
86656         locales, but I assume these hosts are rare.
86657
86658 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86659
86660         * lib/mbswidth.c (_XOPEN_SOURCE):
86661         Don't define; this causes problems on Solaris 7.
86662         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86663
86664 2000-07-23  Jim Meyering  <meyering@lucent.com>
86665
86666         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86667         too: getgrgid, getpwuid, getuid.
86668
86669 2000-07-23  Jim Meyering  <meyering@lucent.com>
86670
86671         * lib/basename.c (base_name): Add an assertion.
86672
86673 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86674
86675         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86676         shadow its mbsinit function.
86677
86678 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86679
86680         * lib/mbswidth.h: New file.
86681         * lib/mbswidth.c: New file.
86682         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86683         (noinst_HEADERS): Add mbswidth.h.
86684
86685 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86686
86687         * lib/config.charset: Add support for FreeBSD. Improve support for
86688         HP-UX and IRIX 6.
86689
86690 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86691
86692         * m4/mbswidth.m4: New file.
86693         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86694
86695 2000-07-15  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/makepath.c: Include quote.h.
86698         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86699         corresponding argument in a `quote (...)' call.
86700         Give better diagnostics.
86701
86702         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86703         (noinst_HEADERS): Add quote.h.
86704
86705         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86706         from tar's src/misc.c.
86707         * lib/quote.h: New file.  Prototypes for same.
86708
86709 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86710
86711         From a suggestion by Bruno Haible.
86712         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86713         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86714         to decide whether to define the BeOS workaround macro;
86715         this adjusts to the change to AC_MBSTATE_T.
86716
86717 2000-07-14  Jim Meyering  <meyering@lucent.com>
86718
86719         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86720         jm_AC_TYPE_UINTMAX_T.
86721
86722 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86723
86724         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86725
86726         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86727         quotearg_buffer_restyled): Add support for
86728         clocale_quoting_style.  Undo previous change to
86729         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86730         and "{RIGHT QUOTATION MARK}" msgids.
86731
86732 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86733
86734         From a suggestion by Bruno Haible.
86735         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86736         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86737         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86738         and mbstate_t, to a single-part test that simply defines mbstate_t.
86739         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86740         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86741
86742 2000-07-10  Jim Meyering  <meyering@lucent.com>
86743
86744         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86745
86746         * m4/gnu-source.m4: Output to confdefs.h directly.
86747         Suggestion from Akim Demaille.
86748
86749 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86750
86751         The old behavior of quoting `like this' doesn't look good with
86752         newer, ISO-style fonts.  See:
86753         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86754
86755         Instead, quote "like this" by default.  Let the translator
86756         tailor the locale-specific quoting behavior by providing
86757         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86758
86759         * lib/quotearg.c (N_): New macro.
86760         (gettext_default): New function.
86761         (quotearg_buffer_restyled): Use
86762         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86763         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86764
86765 2000-07-09  Jim Meyering  <meyering@lucent.com>
86766
86767         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86768         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86769
86770         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86771         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86772
86773 2000-07-09  Jim Meyering  <meyering@lucent.com>
86774
86775         * lib/Most files: Update copyright dates to include 2000.
86776
86777 2000-07-08  Jim Meyering  <meyering@lucent.com>
86778
86779         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86780         if not defined.
86781         (xgethostname): Remove now-unnecessary #ifdef.
86782         Move declaration of `err' into loop where it's used.
86783
86784 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86785         and Bruno Haible  <haible@clisp.cons.org>
86786
86787         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86788         only if the test for an object-type mbstate_t fails.  This
86789         prevents us from mistakenly reporting that mbstate_t is a
86790         system object type after we "#define mbstate_t int" to work
86791         around its lack.
86792
86793 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86794         and Bruno Haible  <haible@clisp.cons.org>
86795
86796         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86797
86798 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86799
86800         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86801         to strerror_r.
86802         Include <ctype.h> for use of isalpha.
86803
86804 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86805
86806         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86807         by allocating a larger buffer. Test the gethostname return value for
86808         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86809         returns an error and ENAMETOOLONG isn't defined.
86810
86811 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86812
86813         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86814         dimension.
86815
86816 2000-07-04  Jim Meyering  <meyering@lucent.com>
86817
86818         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86819         of the deprecated AC_CHECKING.
86820
86821 2000-07-04  Jim Meyering  <meyering@lucent.com>
86822
86823         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86824         Reported by Bruno Haible.
86825
86826 2000-07-04  Jim Meyering  <meyering@lucent.com>
86827
86828         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86829         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86830         lacks mbrtowc.
86831
86832 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86833
86834         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86835         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86836
86837 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86838         and Bruno Haible  <haible@clisp.cons.org>
86839
86840         * lib/quotearg.c (mbrtowc):
86841         Assign to *pwc, and return 1 only if result is nonzero.
86842         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86843
86844 2000-07-03  Jim Meyering  <meyering@lucent.com>
86845
86846         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86847
86848 2000-07-03  Jim Meyering  <meyering@lucent.com>
86849
86850         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86851         This is necessary to get a definition of e.g., UTMP_FILE on
86852         HP-UX 10.20.
86853         From Bob Proulx.
86854
86855 2000-07-02  Jim Meyering  <meyering@lucent.com>
86856
86857         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86858
86859         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86860         AC_LIBOBJ(function_name).
86861         * m4/chown.m4: Likewise.
86862         * m4/fnmatch.m4: Likewise.
86863         * m4/ftruncate.m4: Likewise.
86864         * m4/getgroups.m4: Likewise.
86865         * m4/getline.m4: Likewise.
86866         * m4/group-member.m4: Likewise.
86867         * m4/jm-macros.m4: Likewise.
86868         * m4/lstat.m4: Likewise.
86869         * m4/malloc.m4: Likewise.
86870         * m4/memcmp.m4: Likewise.
86871         * m4/nanosleep.m4: Likewise.
86872         * m4/putenv.m4: Likewise.
86873         * m4/realloc.m4: Likewise.
86874         * m4/regex.m4: Likewise.
86875         * m4/stat.m4: Likewise.
86876         * m4/strftime.m4: Likewise.
86877
86878 2000-07-02  Jim Meyering  <meyering@lucent.com>
86879
86880         * lib/quotearg.c (mbstate_t): Don't define here.
86881
86882 2000-07-02  Jim Meyering  <meyering@lucent.com>
86883
86884         * lib/nanosleep.c (SIGCONT): Define if not already defined.
86885
86886 2000-07-01  Jim Meyering  <meyering@lucent.com>
86887
86888         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
86889
86890 2000-07-01  Jim Meyering  <meyering@lucent.com>
86891
86892         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
86893         problem.
86894
86895 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86896
86897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
86898         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
86899
86900 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86901
86902         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
86903         per change in ../m4/ls-mntd-fs.m4.
86904         (read_filesystem_list): Ignore symbolic links.
86905
86906 2000-06-29  Jim Meyering  <meyering@lucent.com>
86907
86908         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
86909         for declaration of strcmp.
86910
86911         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86912
86913         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86914         Avoid warning by casting result to `char *' to remove `const'.
86915
86916 2000-06-28  Jim Meyering  <meyering@lucent.com>
86917
86918         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86919         included by quotearg.c, for which we perform this test.  From
86920         Bruno Haible.
86921
86922 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86923
86924         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86925         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86926         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86927
86928 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86929
86930         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86931
86932 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86933
86934         savedir now sets errno on failure and invokes xmalloc to get memory.
86935         Fix a couple of other minor bugs while we're at it.
86936
86937         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86938         (NAMLEN): Remove macro.
86939         (malloc, realloc): Remove decls.
86940         (stpcpy): Likewise.
86941         ("xalloc.h"): Include.
86942         (NAME_SIZE_DEFAULT): New macro.
86943         (savedir): Use xmalloc / xrealloc to allocate memory.
86944         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86945         Skip "" directory entries.
86946         Use strlen to calculate directory entry length, since the old method
86947         is rarely used these days and isn't worth supporting.
86948         Don't use a pointer after freeing it.
86949         Check for integer overflow when calculating allocation size.
86950         Use memcpy to copy entries, instead of stpcpy.
86951         Set errno properly when returning NULL.
86952         Check for readdir error.
86953
86954 2000-06-26  Jim Meyering  <meyering@lucent.com>
86955
86956         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86957
86958 2000-06-25  Jim Meyering  <meyering@lucent.com>
86959
86960         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86961         Linux header bug when _XOPEN_SOURCE is defined to 500.
86962
86963 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86964
86965         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86966         deficiency.
86967
86968 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86969
86970         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86971         Include xalloc.h.
86972         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86973
86974 2000-06-24  Jim Meyering  <meyering@lucent.com>
86975
86976         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86977         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86978         for which strerror does return char*, but which lacks a conveniently
86979         accessible declaration of the function.  If the compile-test says
86980         strerror_r doesn't work, then resort to a `run'-test that works on
86981         BeOS and segfaults on DEC Unix.
86982
86983 2000-06-24  Jim Meyering  <meyering@lucent.com>
86984
86985         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86986
86987 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86988
86989         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86990         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86991
86992 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86993
86994         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86995         (mbrtowc, mbstate_t): Define substitutes if
86996         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86997         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86998         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86999
87000 2000-06-23  Jim Meyering  <meyering@lucent.com>
87001
87002         * m4/afs.m4: Add missing AC_MSG_RESULT.
87003         Reported by Bruno Haible.
87004
87005         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87006         Suggestion from Bruno Haible.
87007
87008 2000-06-23  Jim Meyering  <meyering@lucent.com>
87009
87010         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87011
87012 2000-06-21  Jim Meyering  <meyering@lucent.com>
87013
87014         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87015
87016 2000-06-21  Jim Meyering  <meyering@lucent.com>
87017
87018         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87019         (noinst_HEADERS): Add getstr.h.
87020
87021         * lib/getline.c (getstr): Move into a separate file.
87022         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87023         the following changes: new parameter, delim2; both delim[12]
87024         parameters have type `int', not `char'.  The latter would lose
87025         with 8-bit delimiters.
87026         * lib/getstr.h: New file.
87027
87028 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87029
87030         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87031         than 1024, return a memory chunk of least possible size, instead
87032         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87033         Use free/xmalloc instead of xrealloc to avoid copying for very long
87034         paths.
87035
87036 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87037
87038         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87039         the empty string.
87040
87041 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87042
87043         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87044         address, not strdup.  Include <stdlib.h> and don't declare free().
87045
87046 2000-06-19  Jim Meyering  <meyering@lucent.com>
87047
87048         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87049
87050 2000-06-18  Jim Meyering  <meyering@lucent.com>
87051
87052         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87053
87054         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87055         `checking whether...' message to be consistent with that of the
87056         lstat test.
87057
87058 2000-06-18  Jim Meyering  <meyering@lucent.com>
87059
87060         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87061         Besides, these days every porting target provides a mkdir function.
87062
87063         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87064         needed. (this snippet comes from src/system.h).
87065
87066 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87067
87068         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87069
87070 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87071
87072         * lib/human.c (adjust_value): New function.
87073         (human_readable_inexact): Apply rounding style even when
87074         printing approximate values.
87075
87076 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87077
87078         * lib/human.c (human_readable_inexact): Allow an input block
87079         size that is not a multiple of the output block size, and vice versa.
87080         Reported by Piergiorgio Sartor.
87081
87082 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87083
87084         * lib/getdate.y (get_date): Apply relative times after time
87085         zone indicator, not before.  Reported by Todd A. Jacobs.
87086
87087 2000-06-13  Jim Meyering  <meyering@lucent.com>
87088
87089         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87090
87091         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87092
87093 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87094
87095         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87096
87097 2000-06-12  Jim Meyering  <meyering@lucent.com>
87098
87099         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87100         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87101         optional argument.
87102         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87103         the optional argument, `lib'.
87104
87105 2000-06-08  Jim Meyering  <meyering@lucent.com>
87106
87107         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87108
87109 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87110
87111         Rewrite largefile configuration so that we don't need to run
87112         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87113         AC_CANONICAL_HOST in configure.in -- jmm]
87114
87115         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87116         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87117         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87118         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87119         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87120         All uses changed.
87121         Instead of inspecting the output of getconf, try to compile the
87122         test program without and with the macro definition.
87123         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87124         for getconf.  Instead, check for the needed flags by compiling
87125         test programs.
87126
87127 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87128
87129         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87130
87131 2000-06-04  Jim Meyering  <meyering@lucent.com>
87132
87133         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87134         SunOS 4.1.4 for which gid_t is an unsigned type.
87135
87136 2000-06-03  Jim Meyering  <meyering@lucent.com>
87137
87138         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87139         now that autoconf requires that.
87140
87141         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87142         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87143         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87144
87145 2000-06-03  Jim Meyering  <meyering@lucent.com>
87146
87147         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87148
87149 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87150
87151         * m4/glibc21.m4: New file.
87152         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87153
87154 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87155
87156         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87157         newer, don't install charset.alias.
87158         * lib/config.charset: Change the Linux/glibc rules so they become empty
87159         on glibc-2.1 or newer.
87160
87161 2000-06-02  Jim Meyering  <meyering@lucent.com>
87162
87163         * lib/mountlist.c: Back out last change.  Instead, do this...
87164         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87165         me_dummy member using the same `ignore'-testing code.
87166         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87167         fs_type strings.
87168         From Mark D. Roth.
87169
87170 2000-05-29  Jim Meyering  <meyering@lucent.com>
87171
87172         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87173         mounts with the `ignore' attribute.  Based on a patch from
87174         Mark D. Roth.
87175
87176 2000-05-28  Jim Meyering  <meyering@lucent.com>
87177
87178         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87179         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87180         * m4/stat.m4: Likewise.
87181         * m4/lstat.m4: Likewise.
87182         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87183
87184         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87185         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87186
87187 2000-05-26  Jim Meyering  <meyering@lucent.com>
87188
87189         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87190
87191 2000-05-24  Jim Meyering  <meyering@lucent.com>
87192
87193         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87194         autoconf requires that.
87195         * m4/lib-check.m4: Likewise.
87196         * m4/jm-macros.m4: Likewise.
87197         * m4/strftime.m4: Likewise.
87198
87199         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87200         AC_CHECK_DECLS, now that autoconf requires that.
87201
87202 2000-05-22  Jim Meyering  <meyering@lucent.com>
87203
87204         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87205         * m4/lstat.m4: Likewise.
87206
87207 2000-05-22  Jim Meyering  <meyering@lucent.com>
87208
87209         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87210
87211 2000-05-20  Jim Meyering  <meyering@lucent.com>
87212
87213         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87214         (jm_PREREQ): Use it.
87215
87216 2000-05-18  Jim Meyering  <meyering@lucent.com>
87217
87218         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87219         back, too, since it may have been modified by allocate_entry.
87220         (hash_delete): Rewrite to use neither the assignment operator
87221         nor the comma operator in an if-expression.
87222
87223 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87224
87225         * lib/closeout.c:
87226         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87227         Remove; no longer needed.
87228         "quotearg.h": Add include.
87229         (file_name): Do not bother to explicitly initialize to NULL; it's less
87230         efficient on some hosts.
87231         (close_stdout_status): Remove test as to whether stdout was already
87232         closed; it breaks for the case "echo x | sort >&-".
87233         Quote file name colons.
87234         Do not assume that _("write error") lacks format strings.
87235
87236 2000-05-15  Jim Meyering  <meyering@lucent.com>
87237
87238         * lib/version-etc.c (version_etc_copyright): Update the copyright
87239         string used in all --version output.
87240
87241 2000-05-14  Jim Meyering  <meyering@lucent.com>
87242
87243         * lib/closeout.c (close_stdout_set_file_name): New function.
87244         (close_stdout_status): Use new file-scoped global.
87245         Return right away if fstat says the stdout file descriptor is invalid.
87246         * lib/closeout.h (close_stdout_set_file_name): Declare.
87247
87248 2000-05-10  Jim Meyering  <meyering@lucent.com>
87249
87250         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87251         (close_stdout_set_status): New function.
87252         * lib/closeout.h (close_stdout_set_status): Declare.
87253
87254 2000-05-09  Jim Meyering  <meyering@lucent.com>
87255
87256         * m4/gettext.m4: Rename this...
87257         * m4/libintl.m4: ...to this.
87258
87259 2000-05-08  Jim Meyering  <meyering@lucent.com>
87260
87261         * lib/long-options.c: Don't include closeout.h.
87262         (parse_long_options): Don't call close_stdout for --version.
87263
87264 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87265
87266         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87267         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87268         2.1.3 bug.  This avoids a clash when files like regex.c define
87269         _GNU_SOURCE.
87270
87271 2000-05-06  Jim Meyering  <meyering@lucent.com>
87272
87273         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87274         (AC_REPLACE_FUNCS): Add strnlen.
87275
87276         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87277         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87278
87279         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87280         AC_SEARCH_LIBS call for nanosleep.
87281         (LIB_NANOSLEEP): Set and AC_SUBST.
87282
87283 2000-05-06  Jim Meyering  <meyering@lucent.com>
87284
87285         * lib/strnlen.c: Undefine __strnlen and strnlen.
87286         [!weak_alias]: Define __strnlen to strnlen.
87287
87288         * lib/atexit.c: New file, from libiberty.
87289
87290 2000-05-06  Jim Meyering  <meyering@lucent.com>
87291
87292         * lib/closeout.c (close_stdout_status): Also check for errors on the
87293         stderr stream.
87294
87295 2000-05-05  Jim Meyering  <meyering@lucent.com>
87296
87297         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87298         AC_SEARCH_LIBS call for clock_gettime.
87299         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87300
87301         * m4/search-libs.m4: Update from autoconf.
87302
87303         su doesn't work on Solaris 2.6.
87304         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87305         <shadow.h>.  Reported by Dragos Harabor.
87306
87307 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87308
87309         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87310         memcpy instead of xmalloc, xrealloc, path_concat.
87311         (locale_charset): Treat empty environment variables as absent.
87312         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87313
87314 2000-05-04  Jim Meyering  <meyering@lucent.com>
87315
87316         * lib/getopt.c: Update from glibc.
87317         * lib/obstack.c: Likewise.
87318         * lib/obstack.h: Likewise.
87319         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87320         file
87321
87322         * lib/regex.h: Likewise.
87323         * lib/strndup.c: Likewise.
87324         * lib/strnlen.c: New file, from glibc.
87325
87326 2000-05-03  Jim Meyering  <meyering@lucent.com>
87327
87328         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87329
87330 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87331
87332         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87333         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87334         compile-time test, rather than inspecting host and OS, to
87335         decide whether to define _LARGEFILE_SOURCE.
87336
87337 2000-05-01  Jim Meyering  <meyering@lucent.com>
87338
87339         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87340
87341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87342         Based on a patch from Bruno Haible.
87343
87344 2000-05-01  Jim Meyering  <meyering@lucent.com>
87345
87346         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87347
87348 2000-04-29  Jim Meyering  <meyering@lucent.com>
87349
87350         * lib/path-concat.c: Declare strdup only if it's not defined.
87351         * lib/canon-host.c: Likewise.
87352
87353 2000-04-28  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87356         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87357         is included first, then limits.h is included by locale.h by libintl.h.
87358         From John David Anglin.
87359
87360 2000-04-25  Jim Meyering  <meyering@lucent.com>
87361
87362         * lib/makepath.c (S_IRWXUGO): Define.
87363         (make_path): Always perform explicit chmod if MODE specifies any
87364         of the `special' permission bits.  Prompted by a bug report against
87365         install from Mate Wierdl and Joost van Baal.
87366
87367 2000-04-18  Jim Meyering  <meyering@lucent.com>
87368
87369         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87370         (jm_PREREQ): Use it.
87371
87372 2000-04-18  Jim Meyering  <meyering@lucent.com>
87373
87374         * lib/README: New file.
87375
87376         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87377         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87378
87379 2000-04-17  Jim Meyering  <meyering@lucent.com>
87380
87381         Get it right :-)
87382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87383         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87384         Suggestion from Akim Demaille.
87385
87386 2000-04-17  Jim Meyering  <meyering@lucent.com>
87387
87388         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87389         the definition of it to rpl_strftime also defined-away the system's
87390         declaration.
87391
87392 2000-04-15  Jim Meyering  <meyering@lucent.com>
87393
87394         Use `C' to denote so-called `contiguous' files, the same way
87395         that tar does.
87396         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87397         (ftypelet): Use S_ISCTG.
87398         From Michael Deutschmann.
87399
87400 2000-04-14  Jim Meyering  <meyering@lucent.com>
87401
87402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87403         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87404         clobbered.
87405
87406 2000-04-14  Jim Meyering  <meyering@lucent.com>
87407
87408         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87409
87410 2000-04-13  Jim Meyering  <meyering@lucent.com>
87411
87412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87413         AH_VERBATIM to insert required #ifndef into config.h.in.
87414         Suggestion from Akim Demaille.
87415
87416 2000-04-12  Jim Meyering  <meyering@lucent.com>
87417
87418         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87419         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87420         Christian Krackowizer.
87421
87422         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87423         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87424         (AC_SYS_LARGEFILE): Require.
87425         (AM_C_PROTOTYPES): Require.
87426
87427 2000-04-08  Jim Meyering  <meyering@lucent.com>
87428
87429         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87430         names don't conflict.  Reported by Eli Zaretskii.
87431
87432 2000-04-07  Jim Meyering  <meyering@lucent.com>
87433
87434         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87435         sys/types.h, to work around system header problems on AIX 3.2.5.
87436         From Bruno Haible.
87437
87438 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87439
87440         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87441         bug.  Deal with the different error behavior of Irix iconv.
87442
87443 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87444
87445         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87446         IRIX if the installer said otherwise.
87447
87448 2000-04-05  Jim Meyering  <meyering@lucent.com>
87449
87450         Portability tweaks required for ultrix4.3.
87451         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87452         (jm_CHECK_DECLS): Add getutent to the list of functions.
87453         (_jm_DECL_HEADERS): Add utmpx.h.
87454         From John David Anglin.
87455
87456         * m4/strftime.m4: Back out the 2000-04-02 change.
87457         Instead of that change, simply undefine putenv in the test program.
87458
87459 2000-04-05  Jim Meyering  <meyering@lucent.com>
87460
87461         Portability tweaks required for ultrix4.3.
87462         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87463         getutent.
87464         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87465         * lib/canon-host.c: Declare strdup.
87466         * lib/path-concat.c: Likewise.
87467         From John David Anglin.
87468
87469 2000-04-04  Jim Meyering  <meyering@lucent.com>
87470
87471         Be more DOS 8.3-friendly.
87472         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87473         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87474         * lib/Makefile.am: Reflect renaming.
87475         Reported by Eli Zaretskii.
87476
87477         Use a temporary file name that won't clash with `charset.alias'
87478         in the DOS 8.3 name space.
87479         * lib/Makefile.am (charset_tmp): Define.
87480         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87481         (uninstall-local): Likewise.
87482         Reported by Eli Zaretskii.
87483
87484 2000-04-03  Jim Meyering  <meyering@lucent.com>
87485
87486         * m4/gettext.m4: Fix typo in comment.
87487
87488         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87489         textutils/configure.in).  Suggestion from Paul Eggert.
87490         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87491
87492 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87493
87494         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87495         variable in the shell rather than using putenv, which isn't
87496         portable.  This avoids the configure-time inter-test dependency
87497         on the potentially-renamed putenv function.
87498
87499 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87500
87501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87502         before checking struct stat.st_blksize, so that
87503         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87504
87505 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87506
87507         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87508         since strftime.c uses HAVE_STRFTIME to decide whether to use
87509         the underlying strftime.
87510
87511 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87512
87513         * lib/time/strftime.c (my_strftime): Make sure we call the system
87514         strftime, not ourselves, when invoking the underlying strftime.
87515
87516 2000-03-24  Jim Meyering  <meyering@lucent.com>
87517
87518         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87519         (charset_alias): Define.
87520         (install-exec-local): Factor out common code.
87521         (uninstall-local): Split lines longer than 80.
87522         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87523         (SUFFIXES): Define.
87524         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87525         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87526
87527 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87528
87529         * lib/config.charset: Output a line containing "Packages using this
87530         file".
87531         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87532         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87533         ref-del.sed): New rules.
87534
87535 2000-03-17  Jim Meyering  <meyering@lucent.com>
87536
87537         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87538         Otherwise, include <strings.h>
87539
87540 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87541
87542         * lib/unicodeio.c (utf8_wctomb): New function.
87543         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87544         format instead of in UCS-4 with platform dependent endianness.
87545
87546 2000-03-10  Jim Meyering  <meyering@lucent.com>
87547
87548         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87549         From Marco Franzen.
87550
87551 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87552
87553         * lib/savedir.c (savedir): Work even if directory size is
87554         negative; this can happen with some screwy NFS configurations.
87555
87556 2000-03-06  Jim Meyering  <meyering@lucent.com>
87557
87558         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87559         if it's NULL (because we ran out of memory).  From Bruno Haible.
87560
87561 2000-03-05  Jim Meyering  <meyering@lucent.com>
87562
87563         * lib/localcharset.c ("path-concat.h"): Include.
87564         (get_charset_aliases): Use path_concat instead of ANSI string
87565         concatenation.
87566
87567         * lib/unicodeio.h (PARAMS): Define.
87568         Use it to guard prototype.
87569
87570 2000-03-04  Jim Meyering  <meyering@lucent.com>
87571
87572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87573         for lib/localcharset.c.
87574
87575 2000-03-04  Jim Meyering  <meyering@lucent.com>
87576
87577         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87578         installing into it.
87579         (uninstall-local): Uncomment this rule so `make distcheck' works
87580         once again.
87581
87582         * lib/unicodeio.c (<errno.h>): Include it.
87583         (errno): Declare if not defined.
87584
87585         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87586
87587         * lib/config.charset: New version, incorporating remarks from a linux
87588         i18n mailing list.  From Bruno Haible.
87589
87590 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87591
87592         * m4/codeset.m4: New file.
87593         * m4/iconv.m4: New file.
87594         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87595
87596 2000-03-03  Jim Meyering  <meyering@lucent.com>
87597
87598         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87599
87600 2000-03-02  Jim Meyering  <meyering@lucent.com>
87601
87602         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87603         the messages come out on separate lines.
87604
87605         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87606         rather than jm_CHECK_DECLARATIONS.
87607         * m4/decl.m4: Remove now-unused file.
87608
87609         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87610         geteuid.
87611
87612 2000-03-02  Jim Meyering  <meyering@lucent.com>
87613
87614         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87615
87616 2000-03-01  Jim Meyering  <meyering@lucent.com>
87617
87618         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87619         * lib/unicodeio.c: Likewise.
87620
87621 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87622
87623         * lib/config.charset: New file.
87624         * lib/localcharset.c: New file.
87625         * lib/unicodeio.h, lib/unicodeio.c: New files.
87626         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87627         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87628         (noinst_HEADERS): Add unicodeio.h.
87629         (all-local, install-exec-local, charset.alias): New targets.
87630
87631 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87632
87633         * lib/quotearg.c (ALERT_CHAR): New macro.
87634         (quotearg_buffer_restyled): Use it.
87635
87636 2000-02-27  Jim Meyering  <meyering@lucent.com>
87637
87638         * m4/check-decl.m4: Add getenv to the list.
87639
87640 2000-02-27  Jim Meyering  <meyering@lucent.com>
87641
87642         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87643         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87644
87645         * lib/backupfile.c: Guard inclusion of stdlib.h with
87646         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87647         Declare malloc if needed.
87648
87649         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87650         `#ifndef HAVE_DECL..'
87651         now that autoconf always defines the HAVE_DECL_ symbols.
87652         * lib/human.c: Likewise.
87653         * lib/same.c: Likewise.
87654         * lib/strtoumax.c: Likewise.
87655
87656         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87657         declaration check was not run.
87658         * lib/hash.c: Likewise.
87659         * lib/human.c: Likewise.
87660         * lib/same.c: Likewise.
87661         * lib/strtoumax.c: Likewise.
87662
87663         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87664         `.', then first look up the entire `.'-containing string as a login
87665         name.
87666
87667 2000-02-23  Jim Meyering  <meyering@lucent.com>
87668
87669         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87670         in place of my hack.
87671
87672 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87673
87674         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87675         (textint): New typedef.
87676         (parser_control): Member year changed from int to textint.
87677         All uses changed.
87678         (YYSTYPE): Removed; replaced by %union with int and textint members.
87679         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87680         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87681         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87682         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87683         (date, number, to_year): Use width of number in digits, not its value,
87684         to determine whether it's a 2-digit year, or a 2-digit time.
87685         (yylex): Store number of digits of numeric tokens.
87686         Reported by John Kendall.
87687
87688         (parser_control): Changed from struct parser_control to typedef (for
87689         consistency).  All uses changed.
87690
87691         (tID): Removed; not used.
87692         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87693
87694 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87695
87696         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87697         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87698
87699 2000-02-12  Jim Meyering  <meyering@lucent.com>
87700
87701         * lib/userspec.c (ISDIGIT): Define it.
87702         (isdigit): Remove definition.
87703         (is_number): Use ISDIGIT, not isdigit.
87704         <libintl.h>: Include.
87705         (_ and N_): Define.
87706         (parse_user_spec): Mark translatable strings.
87707
87708 2000-02-10  Jim Meyering  <meyering@lucent.com>
87709
87710         With these changes, nanosleep.[ch] are finally enough like the other
87711         lib/* replacement files to compile on a few more losing systems.
87712
87713         * lib/nanosleep.h: Don't include config.h.
87714         Remove prototype from declaration of nanosleep.
87715         (PARAMS): Remove now-unneeded definition.
87716         * lib/nanosleep.c: #undef nanosleep.
87717         (rpl_nanosleep): Rename from nanosleep.
87718
87719 2000-02-10  Jim Meyering  <meyering@lucent.com>
87720
87721         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87722         gnu_nanosleep to rpl_nanosleep.
87723
87724 2000-02-09  Jim Meyering  <meyering@lucent.com>
87725
87726         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87727         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87728
87729 2000-02-08  Akim Demaille  <akim@epita.fr>
87730
87731         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87732         `[' and `]' and remove uses of `changequote'.
87733         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87734         (AC_SYS_LARGEFILE): Likewise.
87735         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87736         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87737         of changequote.
87738         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87739         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87740         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87741         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87742
87743 2000-02-05  Jim Meyering  <meyering@lucent.com>
87744
87745         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87746         Remove explicit use of AC_HEADER_TIME.  It is required by
87747         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87748         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87749         in autoconf whereby the expansion of the latter ended up preceding
87750         the expansion of its prerequisite, AC_HEADER_TIME.
87751         Reported by Volker Borchert.
87752
87753 2000-02-03  Jim Meyering  <meyering@lucent.com>
87754
87755         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87756
87757 2000-02-03  Jim Meyering  <meyering@lucent.com>
87758
87759         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87760         rather than with `#if HAVE_UTMPNAME'.
87761
87762 2000-02-02  Jim Meyering  <meyering@lucent.com>
87763
87764         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87765         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87766         Reported by Eli Zaretskii.
87767
87768 2000-02-01  Jim Meyering  <meyering@lucent.com>
87769
87770         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87771
87772 2000-01-31  Jim Meyering  <meyering@lucent.com>
87773
87774         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87775         functions.  Add the time.h and sys/time.h headers along with the
87776         AC_REQUIRE'ment of AC_HEADER_TIME.
87777
87778 2000-01-31  Jim Meyering  <meyering@lucent.com>
87779
87780         * lib/nanosleep.h (nanosleep): Guard declaration with
87781         `#if ! HAVE_DECL_NANOSLEEP'.
87782         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87783         the declaration in that vendor's sys/timers.h.
87784         Reported by Christian Krackowizer.
87785
87786         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87787         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87788         (ISPRINT): Likewise.
87789         Reported by Tom Tromey.
87790
87791 2000-01-30  Jim Meyering  <meyering@lucent.com>
87792
87793         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87794
87795         * m4/prereq.m4 (utmp_includes): Define.
87796         Check for ut_user and ut_name members in both struct utmpx
87797         and struct utmp.
87798
87799 2000-01-30  Jim Meyering  <meyering@lucent.com>
87800
87801         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87802         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87803         header files where only utmpx.ut_user is declared.
87804
87805         * lib/readutmp.h (UT_USER): Define.
87806
87807 2000-01-29  Jim Meyering  <meyering@lucent.com>
87808
87809         * m4/lib-check.m4: New file containing library-related checks from
87810         fileutils and sh-utils (textutils had none).
87811
87812 2000-01-28  Jim Meyering  <meyering@lucent.com>
87813
87814         * m4/perl.m4: Change format of warning message to look more like that
87815         from the missing script.  Suggestion from François Pinard.
87816
87817 2000-01-25  Jim Meyering  <meyering@lucent.com>
87818
87819         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87820         well as time.h in the compile check.
87821         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87822         Fix typo in cross-compiling case: s/yes/no/.
87823
87824 2000-01-23  Jim Meyering  <meyering@lucent.com>
87825
87826         * m4/jm-macros.m4: Move df-related tests here from
87827         fileutils/configure.in
87828
87829         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87830         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87831
87832         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87833         s/space/ac_fsusage_space/.
87834         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87835
87836         * m4/ftruncate.m4: New file (derived from part of
87837         fileutils/configure.in).
87838         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87839         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87840
87841         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87842         AC_SUBST these here, rather than just in sh-util/configure.in, so
87843         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87844         all the same.
87845         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87846         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87847         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87848         (AC_SUBST(POW_LIBM)): Likewise.
87849         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87850
87851 2000-01-23  Jim Meyering  <meyering@lucent.com>
87852
87853         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87854         obstack.c.
87855
87856 2000-01-22  Jim Meyering  <meyering@lucent.com>
87857
87858         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87859
87860         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87861
87862         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87863         configure.in
87864         (AC_CHECK_HEADERS): Likewise for sh-utils.
87865         (AC_CHECK_HEADERS): Likewise for textutils.
87866         Merge the three lists of headers.
87867
87868         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87869         from fileutils' configure.in.
87870
87871         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87872         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87873         check-decl.m4.
87874
87875         * m4/check-decl.m4: Use #if rather than #ifdef.
87876         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
87877         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
87878         (_jm_DECL_HEADERS): Define new function.
87879         (jm_CHECK_DECLARATIONS): Require it.
87880
87881 2000-01-22  Jim Meyering  <meyering@lucent.com>
87882
87883         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
87884         [! HAVE_DECL_STRTOULL]: Declare strtoull.
87885         Required for some AIX systems.  Reported by Christian Krackowizer.
87886         [TESTING] (main): New function.
87887
87888         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
87889         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
87890         letters.
87891
87892         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
87893         iswprint.
87894
87895         * lib/strverscmp.c (ISDIGIT): Define.
87896         (strverscmp): Use ISDIGIT, not isdigit.
87897
87898 2000-01-19  Jim Meyering  <meyering@lucent.com>
87899
87900         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
87901         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
87902         defines `struct timespec' in <sys/time.h>
87903
87904         * m4/c-bs-a.m4: Remove uses of changequote altogether.
87905         Thanks to Akim for explaining.
87906
87907 2000-01-17  Paul Eggert  <eggert@twinsun.com>
87908
87909         * lib/nanosleep.c (nanosleep):
87910         Don't use SA_INTERRUPT to decide whether to call sigaction, as
87911         POSIX.1 doesn't require SA_INTERRUPT and some systems
87912         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87913         it's been part of POSIX.1 since day 1 (in 1988).
87914
87915 2000-01-17  Jim Meyering  <meyering@lucent.com>
87916
87917         * lib/interlock: Remove unused file.  Reported by François Pinard.
87918
87919 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87920
87921         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87922         alert, backslash, formfeed, and vertical tab unnecessarily in
87923         shell quoting style.
87924
87925 2000-01-16  Jim Meyering  <meyering@lucent.com>
87926
87927         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87928         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87929         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87930         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87931
87932 2000-01-16  Jim Meyering  <meyering@lucent.com>
87933
87934         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87935         because the latter didn't work.
87936
87937 2000-01-15  Jim Meyering  <meyering@lucent.com>
87938
87939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87940         (AC_REPLACE_FUNCS): Add memcpy and memset.
87941         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87942         Add strpbrk.
87943         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87944
87945 2000-01-12  Jim Meyering  <meyering@lucent.com>
87946
87947         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87948         (jm_PREREQ): Use it.
87949         (jm_PREREQ_READUTMP): New macro.
87950         (jm_PREREQ): Use it.
87951
87952 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87953
87954         Quote multibyte characters correctly.
87955         * m4/c-bs-a.m4: New file.
87956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87957         (jm_PREREQ): Use it.
87958
87959 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87960
87961         * m4/uintmax_t.m4: Port to autoconf 2.13.
87962
87963 2000-01-08  Jim Meyering  <meyering@ascend.com>
87964
87965         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87966         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87967
87968 2000-01-04  Jim Meyering  <meyering@ascend.com>
87969
87970         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87971         jm_STRUCT_DIRENT_D_TYPE.
87972         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87973         jm_STRUCT_DIRENT_D_INO.
87974         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87975         jm_STRUCT_UTIMBUF.
87976         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87977         renamings.
87978         * m4/utime.m4: Likewise.
87979
87980         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87981         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87982
87983 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87984
87985         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87986         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87987
87988 2000-01-02  Jim Meyering  <meyering@ascend.com>
87989
87990         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87991         remember if this is necessary.
87992
87993 1999-12-26  Jim Meyering  <meyering@ascend.com>
87994
87995         * m4/jm-macros.m4: Use it here.
87996         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87997
87998 1999-12-23  Jim Meyering  <meyering@ascend.com>
87999
88000         * m4/jm-macros.m4: Check for clock_gettime (moved from
88001         fileutils/configure.in)
88002         Check for gettimeofday.
88003
88004 1999-12-20  Jim Meyering  <meyering@ascend.com>
88005
88006         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88007         autoconf-2.14a-1999-12-20.
88008
88009 1999-12-19  Jim Meyering  <meyering@ascend.com>
88010
88011         * m4/lstat-slash.m4: New file.
88012         * m4/jm-macros.m4: Use the new macro:
88013         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88014
88015 1999-12-07  Jim Meyering  <meyering@ascend.com>
88016
88017         * m4/perl.m4: Require that File::Compare be available, too.
88018         Too many systems seem to lack it.
88019
88020         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88021         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88022
88023 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88024
88025         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88026         problem with the QNX 4.25 shell, which doesn't propagate exit
88027         status of failed commands inside shell assignments.
88028
88029 1999-11-17  Jim Meyering  <meyering@ascend.com>
88030
88031         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88032
88033 1999-11-07  Jim Meyering  <meyering@ascend.com>
88034
88035         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88036
88037 1999-11-06  Jim Meyering  <meyering@ascend.com>
88038
88039         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88040         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88041
88042 1999-11-05  Jim Meyering  <meyering@ascend.com>
88043
88044         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88045         configure.in of textutils, fileutils, and sh-utils into this one
88046         (shared between those packages) file.
88047         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88048         AC_STRUCT_ST_BLKSIZE.
88049
88050 1999-11-03  Jim Meyering  <meyering@ascend.com>
88051
88052         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88053         of AC_CHECK_TYPE checks includes unistd.h.
88054         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88055         Suggestion from Akim Demaille.
88056
88057 1999-10-30  Jim Meyering  <meyering@ascend.com>
88058
88059         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88060         m4-quoted string.
88061         * m4/ls-mntd-fs.m4: Likewise.
88062         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88063         * m4/jm-winsz1.m4: Likewise.
88064
88065         * m4/const.m4: Remove file, since the fix made it into the experimental
88066         version of autoconf.
88067         * m4/mktime.m4: Likewise.
88068
88069         * m4/check-type.m4: Remove file, now that the latest version of
88070         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88071
88072         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88073         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88074         AC_CHECK_TYPE.
88075
88076 1999-10-04  Jim Meyering  <meyering@ascend.com>
88077
88078         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88079
88080 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88081
88082         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88083         2.95.1 bug with HP-UX 10.20.
88084
88085 1999-09-17  Jim Meyering  <meyering@ascend.com>
88086
88087         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88088         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88089         due to missing strdup (against sh-utils-2.0).
88090
88091 1999-08-29  Jim Meyering  <meyering@ascend.com>
88092
88093         * m4/jm-macros.m4: Require jm_BISON.
88094         * m4/bison.m4: New file.
88095
88096 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88097
88098         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88099         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88100
88101 1999-08-05  Jim Meyering  <meyering@ascend.com>
88102
88103         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88104         to avoid conflicts with `conftest' on 8+3 filesystems.
88105         Suggestion from Eli Zaretskii.
88106
88107 1999-08-04  Jim Meyering  <meyering@ascend.com>
88108
88109         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88110         fileutils and sh-utils (textutils's getline test was inadequate).
88111         (AM_FUNC_GETLINE): Run this test.
88112         (AC_CHECK_FUNCS): Check for getdelim.
88113         Reported by Bob Proulx.
88114
88115 1999-08-02  Jim Meyering  <meyering@ascend.com>
88116
88117         * m4/jm-macros.m4: Add a comment.
88118
88119 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88120
88121         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88122         <inttypes.h> defines strtoumax as a macro (and not as a
88123         function).
88124
88125 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88126
88127         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88128         that we can shift, multiply and divide unsigned long long
88129         values; Ultrix cc can't do it.
88130
88131 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88132
88133         * m4/mktime.m4: New file, which is a preview of what should appear
88134         in the next public autoconf release.
88135
88136 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88137
88138         * m4/lfs.m4: Remove this file.
88139         * m4/largefile.m4: New file.  It contains the old contents of
88140         lfs.m4, except that all names with prefix AC_LFS have been
88141         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88142         compatible with future autoconf versions.  Also, some minor m4
88143         quoting problems have been fixed.
88144
88145 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88146
88147         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88148         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88149         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88150         and simplify the shell code.
88151
88152 1999-08-01  Jim Meyering  <meyering@ascend.com>
88153
88154         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88155         m4.
88156
88157 1999-07-20  Jim Meyering  <meyering@ascend.com>
88158
88159         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88160
88161 1999-07-15  Jim Meyering  <meyering@ascend.com>
88162
88163         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88164
88165 1999-05-22  Jim Meyering  <meyering@ascend.com>
88166
88167         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88168
88169 1999-05-20  Jim Meyering  <meyering@ascend.com>
88170
88171         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88172         Add a colon after each `then' in case $4 is empty.
88173
88174 1999-05-16  Jim Meyering  <meyering@ascend.com>
88175
88176         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88177
88178 1999-05-10  Jim Meyering  <meyering@ascend.com>
88179
88180         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88181
88182         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88183         AC_FUNC_MKTIME.
88184
88185 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88186
88187         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88188
88189 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88190
88191         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88192         not CPPFLAGS, so that linking works correctly in IRIX.
88193
88194 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88195
88196         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88197
88198 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88199
88200         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88201         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88202         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88203         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88204         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88205
88206         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88207
88208 1999-04-20  Jim Meyering  <meyering@ascend.com>
88209
88210         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88211         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88212         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88213
88214 1999-04-18  Jim Meyering  <meyering@ascend.com>
88215
88216         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88217         * m4/jm-macros.m4: Use it.
88218
88219 1999-04-06  Jim Meyering  <meyering@ascend.com>
88220
88221         * m4/strftime.m4: Remove test for %f.
88222
88223 1999-03-29  Jim Meyering  <meyering@ascend.com>
88224
88225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88226         superset of the AC_TYPE_* checks in the textutils, fileutils,
88227         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88228         AC_TYPE_PID_T.
88229
88230 1999-03-28  Jim Meyering  <meyering@ascend.com>
88231
88232         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88233         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88234         replaced e.g., in the *.sh files of the sh-utils.
88235
88236 1999-03-20  Jim Meyering  <meyering@ascend.com>
88237
88238         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88239         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88240         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88241
88242 1999-03-19  Jim Meyering  <meyering@ascend.com>
88243
88244         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88245
88246 1999-03-12  Jim Meyering  <meyering@ascend.com>
88247
88248         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88249
88250 1999-03-07  Jim Meyering  <meyering@ascend.com>
88251
88252         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88253         declared.
88254
88255 1999-02-17  Jim Meyering  <meyering@ascend.com>
88256
88257         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88258         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88259
88260 1999-02-07  Jim Meyering  <meyering@ascend.com>
88261
88262         * m4/group-member.m4: New file -- extracted from sh-utils'
88263         configure.in.
88264
88265         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88266         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88267
88268 1999-02-06  Jim Meyering  <meyering@ascend.com>
88269
88270         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88271         * m4/fnmatch.m4: Likewise.
88272         * m4/getgroups.m4: Likewise.
88273         * m4/lstat.m4: Likewise.
88274         * m4/malloc.m4: Likewise.
88275         * m4/putenv.m4: Likewise.
88276         * m4/realloc.m4: Likewise.
88277         * m4/regex.m4: Likewise.
88278         * m4/stat.m4: Likewise.
88279         * m4/strftime.m4: Likewise.
88280         Suggestion from Alain Magloire.
88281
88282         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88283         * m4/fnmatch.m4: Likewise.
88284         * m4/getgroups.m4: Likewise.
88285         * m4/getline.m4: Likewise.
88286         * m4/lstat.m4: Likewise.
88287         * m4/malloc.m4: Likewise.
88288         * m4/memcmp.m4: Likewise.
88289         * m4/putenv.m4: Likewise.
88290         * m4/realloc.m4: Likewise.
88291         * m4/regex.m4: Likewise.
88292         * m4/stat.m4: Likewise.
88293         * m4/strftime.m4: Likewise.
88294         Suggestion from Alain Magloire.
88295
88296         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88297         an argument.
88298
88299         * m4/regex.m4: Add a run-time Test for proper operation of
88300         re_compile_pattern.
88301
88302 1999-01-31  Jim Meyering  <meyering@ascend.com>
88303
88304         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88305
88306 1999-01-30  Jim Meyering  <meyering@ascend.com>
88307
88308         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88309
88310         * m4/jm-mktime.m4: Make this a wrapper around the official
88311         AM_FUNC_MKTIME rather than my private copy, now that the official one
88312         is up to date.
88313         * m4/mktime.m4: Remove file.
88314
88315         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88316         * m4/uptime.m4: Likewise.
88317         * m4/uintmax_t.m4: Likewise.
88318
88319 1999-01-28  Jim Meyering  <meyering@ascend.com>
88320
88321         * m4/jm-macros.m4: Use jm_AFS.
88322         * m4/afs.m4: New file (from fileutils' configure.in).
88323
88324         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88325         * m4/chown.m4: Likewise.
88326         * m4/d-ino.m4: Likewise.
88327         * m4/d-type.m4: Likewise.
88328         * m4/fnmatch.m4: Likewise.
88329         * m4/getgroups.m4: Likewise.
88330         * m4/gettext.m4: Likewise.
88331         * m4/jm-mktime.m4: Likewise.
88332         * m4/jm-winsz2.m4: Likewise.
88333         * m4/lcmessage.m4: Likewise.
88334         * m4/ls-mntd-fs.m4: Likewise.
88335         * m4/malloc.m4: Likewise.
88336         * m4/memcmp.m4: Likewise.
88337         * m4/putenv.m4: Likewise.
88338         * m4/realloc.m4: Likewise.
88339         * m4/st_mtim.m4: Likewise.
88340         * m4/strftime.m4: Likewise.
88341
88342 1999-01-16  Jim Meyering  <meyering@ascend.com>
88343
88344         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88345         (ARGMATCH_DIE_DECL): Define.
88346
88347 1999-01-12  Jim Meyering  <meyering@ascend.com>
88348
88349         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88350         Reported by Lars Hecking.
88351
88352 1999-01-10  Jim Meyering  <meyering@ascend.com>
88353
88354         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88355         gross kludge.
88356         * m4/inttypes_h.m4: Likewise.
88357         * m4/lstat.m4: Likewise.
88358         * m4/malloc.m4: Likewise.
88359         * m4/readdir.m4: Likewise.
88360         * m4/realloc.m4: Likewise.
88361         * m4/st_dm_mode.m4: Likewise.
88362         * m4/stat.m4: Likewise.
88363         * m4/utimbuf.m4: Likewise.
88364         * m4/utimes.m4: Likewise.
88365
88366         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88367         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88368         comments in config.h.in are meaningful.
88369
88370         * m4/jm-macros.m4: Require autoconf-2.13 here.
88371
88372         * m4/regex.m4: By default, don't use the included regex.c on systems
88373         with glibc 2.  Suggestion from Uli Drepper.
88374
88375 1999-01-02  Jim Meyering  <meyering@ascend.com>
88376
88377         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88378
88379 1998-12-18  Jim Meyering  <meyering@ascend.com>
88380
88381         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88382         Based on a suggestion from Lars Hecking.
88383
88384 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88385
88386         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88387
88388 1998-11-16  Jim Meyering  <meyering@ascend.com>
88389
88390         * m4/lfs.m4: Double-quote the `uname...` expression.
88391
88392 1998-11-14  Jim Meyering  <meyering@ascend.com>
88393
88394         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88395         * m4/stat.m4: Likewise.
88396
88397 1998-11-03  Jim Meyering  <meyering@ascend.com>
88398
88399         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88400         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88401
88402 1998-10-18  Jim Meyering  <meyering@ascend.com>
88403
88404         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88405
88406 1998-10-17  Jim Meyering  <meyering@ascend.com>
88407
88408         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88409         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88410         calls for those previously hard-coded headers.  Instead, take a new
88411         parameter.
88412         (jm_CHECK_DECLARATIONS): Reflect interface change.
88413         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88414         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88415
88416         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88417
88418 1998-10-14  Jim Meyering  <meyering@ascend.com>
88419
88420         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88421         instead of "TZ=America/Vancouver".  From Paul Eggert.
88422
88423 1998-10-11  Jim Meyering  <meyering@ascend.com>
88424
88425         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88426         This adds a test for a recently added compatibility fix for mktime.c.
88427         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88428
88429 1998-09-27  Jim Meyering  <meyering@ascend.com>
88430
88431         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88432
88433         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88434         ../configure.in, including a change from Gordon Matzigkeit to allow
88435         cross-compiling for the Hurd.
88436
88437         * m4/glibc.m4: New file/macro to test for the GNU C Library
88438         versions 1 and 2.  From Gordon Matzigkeit.
88439         Indent.
88440
88441 1998-09-21  Jim Meyering  <meyering@ascend.com>
88442
88443         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88444
88445 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88446
88447         Port nanosecond-resolution times to UnixWare 2.1.2 and
88448         pedantic Solaris 2.6.
88449
88450         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88451         AC_STRUCT_ST_MTIM.
88452         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88453         Generate name of ns member, instead of just 1 or undef.
88454         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88455
88456 1998-08-15  Jim Meyering  <meyering@ascend.com>
88457
88458         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88459         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88460         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88461         instead of jm_TYPE_SSIZE_T.
88462
88463 1998-08-12  Jim Meyering  <meyering@ascend.com>
88464
88465         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88466
88467 1998-08-02  Jim Meyering  <meyering@ascend.com>
88468
88469         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88470         in acconfig.h manually.
88471
88472 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88473
88474         * m4/st_mtim.m4: New file.
88475
88476 1998-07-28  Jim Meyering  <meyering@ascend.com>
88477
88478         * m4/utimes.m4: Undef stat.
88479
88480 1998-07-25  Jim Meyering  <meyering@ascend.com>
88481
88482         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88483         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88484
88485 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88486
88487         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88488         uid and gid actually remain unchanged.
88489
88490 1998-07-07  Jim Meyering  <meyering@ascend.com>
88491
88492         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88493
88494 1998-07-04  Jim Meyering  <meyering@ascend.com>
88495
88496         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88497         to prove that this macro can be used in packages without regex.c.
88498
88499 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88500
88501         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88502         is to be used.
88503
88504 1998-07-03  Jim Meyering  <meyering@ascend.com>
88505
88506         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88507
88508         * m4/gettext.m4: New file -- from gettext-0.10.35.
88509         * m4/lcmessage.m4: Likewise.
88510         * m4/progtest.m4: Likewise.
88511
88512         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88513         * m4/jm-macros.m4: Require the new macro.
88514
88515 1998-06-29  Jim Meyering  <meyering@ascend.com>
88516
88517         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88518         for the definition of NGROUPS (used in a system header included
88519         by sys/mount.h).
88520
88521 1998-06-28  Jim Meyering  <meyering@ascend.com>
88522
88523         * m4/ls-mntd-fs.m4: New file.
88524         * m4/fstypename.m4: New file.
88525
88526         * m4/jm-macros.m4: Require the new macro.
88527         * m4/jm-glibc-io.m4: New file.
88528
88529 1998-05-19  Jim Meyering  <meyering@ascend.com>
88530
88531         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88532         * m4/lchown.m4: New file.
88533
88534         * m4/Makefile.am.in: New file.
88535         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88536
88537 1998-05-14  Jim Meyering  <meyering@ascend.com>
88538
88539         * m4/Makefile.am (EXTRA_DIST): Add them.
88540         * m4/jm-macros.m4: New file.
88541         * m4/utimbuf.m4: New file.
88542
88543 1998-05-12  Jim Meyering  <meyering@ascend.com>
88544
88545         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88546
88547 1998-05-11  Jim Meyering  <meyering@ascend.com>
88548
88549         * m4/isc-posix.m4: New file.
88550
88551 1998-05-10  Jim Meyering  <meyering@ascend.com>
88552
88553         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88554
88555 1998-05-09  Jim Meyering  <meyering@ascend.com>
88556
88557         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88558         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88559         with automake.
88560
88561         * m4/ssize_t.m4: New file.
88562         * m4/mktime.m4: Remove file -- the new automake has this now.
88563
88564 1998-04-26  Jim Meyering  <meyering@ascend.com>
88565
88566         * m4/assert.m4: New file.
88567         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88568
88569 1998-04-05  Jim Meyering  <meyering@ascend.com>
88570
88571         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88572         (jm_PREREQ): Use it here.
88573
88574 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88575
88576         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88577         in acconfig.h.
88578
88579 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88580
88581         * m4/prereq.m4: New file.
88582         * m4/error.m4: New file.
88583         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88584
88585 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88586
88587         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88588         cache-check for the same variable -- that defeated the purpose of
88589         the test; the test program was never run.  This was a problem only
88590         on systems with losing getline functions -- HP-UX 10.20 is one.
88591         Reported by Bjorn Helgaas.
88592
88593 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88594
88595         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88596
88597 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88598
88599         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88600
88601         * m4/const.m4: New file.  Use an initializer in this declaration
88602         typedef int charset[2]; const charset x;
88603         Reported by Bob Glickstein.
88604
88605 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88606
88607         * m4/chown.m4: Fix reversed types on -1 args to chown.
88608         From Kaveh Ghazi.
88609
88610 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88611
88612         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88613         Add lseek and memchr.
88614
88615         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88616         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88617         have a 20-character limit on names.
88618
88619 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88620
88621         * m4/inttypes_h.m4: New file.
88622         * m4/uintmax_t.m4: New file.
88623         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88624
88625
88626         -----
88627
88628         Local Variables:
88629         coding: utf-8
88630         End:
88631
88632         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88633
88634         Copying and distribution of this file, with or without
88635         modification, are permitted provided the copyright notice
88636         and this notice are preserved.