posix_openpt: remove spurious #endif
[gnulib.git] / ChangeLog
1 2011-10-19  Jim Meyering  <meyering@redhat.com>
2
3         posix_openpt: remove spurious #endif
4         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5
6 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7
8         maint.mk: Respect $(build_aux) in web-manual rule.
9         * top/maint.mk (web-manual): Find gen-announce script in user's
10         $(build_aux) directory instead of hard-coding 'build-aux'.
11
12 2011-10-19  Bruno Haible  <bruno@clisp.org>
13
14         posix_openpt: Fix compilation error.
15         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
16         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
17         Mention the openpty module as an alternative.
18
19 2011-10-19  Bruno Haible  <bruno@clisp.org>
20
21         Support for old NeXTstep 3.3 frexp().
22         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
23         execution time of the test to 5 seconds.
24         Reported by Daniel Richard G. <skunk@iskunk.org>.
25
26 2011-10-19  Bruno Haible  <bruno@clisp.org>
27
28         Support for old NeXTstep 3.3 sed.
29         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30         part, use /.../, not \|...|. Escape periods in the header file name.
31         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32         Reported by Daniel Richard G. <skunk@iskunk.org>.
33
34 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
35
36         Support for old NeXTstep 3.3 gcc.
37         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
38         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
39         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
40         * lib/spawn.in.h (_Restrict_arr_): Likewise.
41         * lib/regex.h (_Restrict_arr_): Likewise.
42         * lib/regex_internal.h (re_token_t): Likewise.
43         * lib/regexec.c (check_node_accept_bytes): Likewise.
44         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45
46 2011-10-18  Eric Blake  <eblake@redhat.com>
47
48         posix_openpt: new module
49         * modules/posix_openpt: New module.
50         * m4/posix_openpt.m4: New file.
51         * lib/posix_openpt.c: Likewise.
52         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
53         (gl_STDLIB_H_DEFAULTS): Set defaults.
54         * modules/stdlib (Makefile.am): Substitute macros.
55         * lib/stdlib.in.h (posix_openpt): Declare.
56         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
57         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
58         * modules/posix_openpt-tests: New test module.
59         * tests/test-posix_openpt.c: New test.
60
61 2011-10-15  Bruno Haible  <bruno@clisp.org>
62
63         xstrtoll: Fix compilation failure.
64         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
65         from lib/strtol.c.
66         * doc/posix-headers/limits.texi: Mention missing numerical limits on
67         some platforms.
68         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69
70 2011-10-15  Bruno Haible  <bruno@clisp.org>
71
72         vasnprintf: Optimize bit search operation.
73         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
74         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
75         gl_DOUBLE_EXPONENT_LOCATION.
76         * modules/vasnprintf (Files): Add m4/exponentd.m4.
77         * modules/unistdio/u8-vasnprintf (Files): Likewise.
78         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
79         * modules/unistdio/u16-vasnprintf (Files): Likewise.
80         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
81         * modules/unistdio/u32-vasnprintf (Files): Likewise.
82         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
83         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
84         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
85
86 2011-10-15  Bruno Haible  <bruno@clisp.org>
87
88         vasnprintf: Fix comments.
89         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
90
91 2011-10-14  Bruno Haible  <bruno@clisp.org>
92
93         Tests for module 'integer_length_ll'.
94         * modules/integer_length_ll-tests: New file.
95         * tests/test-integer_length_ll.c: New file.
96
97         New module 'integer_length_ll'.
98         * lib/integer_length_ll.c: New file.
99         * modules/integer_length_ll: New file.
100
101 2011-10-14  Bruno Haible  <bruno@clisp.org>
102
103         Tests for module 'integer_length_l'.
104         * modules/integer_length_l-tests: New file.
105         * tests/test-integer_length_l.c: New file.
106
107         New module 'integer_length_l'.
108         * lib/integer_length_l.c: New file.
109         * modules/integer_length_l: New file.
110
111 2011-10-14  Bruno Haible  <bruno@clisp.org>
112
113         Tests for module 'integer_length'.
114         * modules/integer_length-tests: New file.
115         * tests/test-integer_length.c: New file.
116
117         New module 'integer_length'.
118         * lib/integer_length.h: New file.
119         * lib/integer_length.c: New file.
120         * modules/integer_length: New file.
121
122 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
123
124         popen: Fix dependency conditions.
125         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
126
127 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
128
129         perror: Fix autoconf test.
130         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
131         <stdlib.h> and <string.h>.
132
133 2011-10-14  Bruno Haible  <bruno@clisp.org>
134
135         ffsl: Optimize on 64-bit platforms.
136         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
137         unrolling.
138
139 2011-10-13  Bruno Haible  <bruno@clisp.org>
140
141         ffsl: Optimize on 32-bit platforms.
142         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
143         use ffs() without a loop.
144
145         ffsl, ffsll: Optimize for GCC.
146         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
147         * lib/ffsl.c (GCC_BUILTIN): New macro.
148         * lib/ffsll.c (GCC_BUILTIN): Likewise.
149
150 2011-10-13  Bruno Haible  <bruno@clisp.org>
151
152         ffs, bcopy, memset: Support symbol renaming via config.h.
153         * lib/ffs.c: Include <config.h>.
154         * lib/bcopy.c: Likewise.
155         * lib/memset.c: Likewise.
156
157 2011-10-10  Bruno Haible  <bruno@clisp.org>
158
159         atanl: Simplify for platforms where 'long double' == 'double'.
160         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
161         alternative implementation.
162         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
163         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
164         * modules/atanl (Depends-on): Add atan. Update conditions.
165
166 2011-10-10  Bruno Haible  <bruno@clisp.org>
167
168         acosl: Simplify for platforms where 'long double' == 'double'.
169         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
170         alternative implementation.
171         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
172         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
173         * modules/acosl (Depends-on): Add acos. Update conditions.
174
175 2011-10-10  Bruno Haible  <bruno@clisp.org>
176
177         asinl: Simplify for platforms where 'long double' == 'double'.
178         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
179         alternative implementation.
180         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
181         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
182         * modules/asinl (Depends-on): Add asin. Update conditions.
183
184 2011-10-10  Bruno Haible  <bruno@clisp.org>
185
186         tanl: Simplify for platforms where 'long double' == 'double'.
187         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
188         implementation.
189         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
190         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
191         * modules/tanl (Depends-on): Add tan. Update conditions.
192         (configure.ac): Don't compile trigl.c if
193         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
194
195 2011-10-10  Bruno Haible  <bruno@clisp.org>
196
197         cosl: Simplify for platforms where 'long double' == 'double'.
198         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
199         implementation.
200         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
201         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
202         * modules/cosl (Depends-on): Add cos. Update conditions.
203         (configure.ac): Don't compile sincosl.c and trigl.c if
204         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
205
206 2011-10-10  Bruno Haible  <bruno@clisp.org>
207
208         sinl: Simplify for platforms where 'long double' == 'double'.
209         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
210         implementation.
211         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
212         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
213         * modules/sinl (Depends-on): Add sin. Update conditions.
214         (configure.ac): Don't compile sincosl.c and trigl.c if
215         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
216
217 2011-10-10  Bruno Haible  <bruno@clisp.org>
218
219         logl: Simplify for platforms where 'long double' == 'double'.
220         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
221         implementation.
222         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
223         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
224         * modules/logl (Depends-on): Add log. Update conditions.
225
226 2011-10-10  Bruno Haible  <bruno@clisp.org>
227
228         expl: Simplify for platforms where 'long double' == 'double'.
229         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
230         implementation.
231         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
232         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
233         * modules/expl (Depends-on): Add exp. Update conditions.
234
235 2011-10-10  Bruno Haible  <bruno@clisp.org>
236
237         sqrtl: Simplify for platforms where 'long double' == 'double'.
238         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
239         alternative implementation.
240         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
241         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
242         * modules/sqrtl (Depends-on): Update conditions.
243
244 2011-10-10  Bruno Haible  <bruno@clisp.org>
245
246         ldexpl: Simplify for platforms where 'long double' == 'double'.
247         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
248         alternative implementation.
249         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
250         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
251         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
252
253 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
254
255         ffsll: set correct witness
256         * modules/ffsll (configure.ac): Fix typo.
257
258 2011-10-10  Bruno Haible  <bruno@clisp.org>
259
260         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
261         * lib/printf-frexpl.c: Include <config.h>.
262         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
263         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
264         second time.
265         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
266         gl_LONG_DOUBLE_VS_DOUBLE.
267         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
268         conditions.
269
270 2011-10-10  Bruno Haible  <bruno@clisp.org>
271
272         frexpl: Simplify for platforms where 'long double' == 'double'.
273         * lib/frexpl.c: Include <config.h>.
274         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
275         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
276         time.
277         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
278         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
279         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
280         * modules/frexpl (Depends-on): Add frexp. Update conditions.
281         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
282         conditions.
283
284 2011-10-10  Jim Meyering  <meyering@redhat.com>
285
286         test-renameat: don't leave behind a temporary file
287         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
288           ERROR: files left in build directory after distclean:
289           ./gltests/test-renameat.too
290           make[1]: *** [distcleancheck] Error 1
291         Reported by Tom G. Christensen.
292
293 2011-10-09  Bruno Haible  <bruno@clisp.org>
294
295         rint: Determine RINT_LIBM correctly on AIX 7.
296         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
297         directly, not only through a function pointer. Also accept an optional
298         4th argument with extra code.
299         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
300         rintf() call by gcc when optimizing.
301
302         mathfunc.m4: Refactor.
303         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
304         m4 variable.
305
306 2011-10-09  Bruno Haible  <bruno@clisp.org>
307
308         rintl: Simplify for platforms where 'long double' == 'double'.
309         * lib/rintl.c: Include <config.h>.
310         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
311         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
312         time.
313         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
314         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
315         * modules/rintl (Depends-on): Add rint. Update conditions.
316
317 2011-10-09  Bruno Haible  <bruno@clisp.org>
318
319         roundl: Simplify for platforms where 'long double' == 'double'.
320         * lib/roundl.c: Include <config.h>.
321         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
322         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
323         time.
324         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
325         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
326         * modules/roundl (Depends-on): Add round. Update conditions.
327
328 2011-10-09  Bruno Haible  <bruno@clisp.org>
329
330         truncl: Simplify for platforms where 'long double' == 'double'.
331         * lib/truncl.c: Include <config.h>.
332         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
333         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
334         time.
335         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
336         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
337         * modules/truncl (Depends-on): Add trunc. Update conditions.
338
339 2011-10-09  Bruno Haible  <bruno@clisp.org>
340
341         ceill: Simplify for platforms where 'long double' == 'double'.
342         * lib/ceill.c: Include <config.h>.
343         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
344         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
345         time.
346         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
347         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
348         * modules/ceill (Depends-on): Add ceil. Update conditions.
349
350 2011-10-09  Bruno Haible  <bruno@clisp.org>
351
352         floorl: Simplify for platforms where 'long double' == 'double'.
353         * lib/floorl.c: Include <config.h>.
354         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
355         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
356         time.
357         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
358         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
359         * modules/floorl (Depends-on): Add floor. Update conditions.
360
361 2011-10-09  Bruno Haible  <bruno@clisp.org>
362
363         rint: Fix ordering constraints.
364         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
365         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
366         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
367
368 2011-10-09  Bruno Haible  <bruno@clisp.org>
369
370         copysignl: Simplify for platforms where 'long double' == 'double'.
371         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
372         alternative.
373         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
374         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
375         * modules/copysignl (Depends-on): Add copysign. Update conditions.
376
377 2011-10-09  Bruno Haible  <bruno@clisp.org>
378
379         Tests for module 'rintl'.
380         * modules/rintl-tests: New file.
381         * tests/test-rintl.c: New file.
382
383         New module 'rintl'.
384         * lib/math.in.h (rintl): New declaration.
385         * lib/rintl.c: New file.
386         * m4/rintl.m4: New file.
387         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
389         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
390         * modules/rintl: New file.
391         * tests/test-math-c++.cc: Check the declaration of rintl.
392         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
393         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
394         * doc/posix-functions/rintl.texi: Mention the new module.
395
396 2011-10-09  Bruno Haible  <bruno@clisp.org>
397
398         Tests for module 'rintf'.
399         * modules/rintf-tests: New file.
400         * tests/test-rintf.c: New file.
401
402         New module 'rintf'.
403         * lib/math.in.h (rintf): New declaration.
404         * lib/rintf.c: New file.
405         * m4/rintf.m4: New file.
406         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
408         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
409         * modules/rintf: New file.
410         * tests/test-math-c++.cc: Check the declaration of rintf.
411         * doc/posix-functions/rintf.texi: Mention the new module.
412
413 2011-10-09  Bruno Haible  <bruno@clisp.org>
414
415         rint: Support for MSVC.
416         * lib/math.in.h (rint): New declaration.
417         * lib/rint.c: New file.
418         * m4/rint.m4: New file.
419         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
421         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
422         * modules/rint (Description): Fix.
423         (Files): Add lib/rint.c, m4/rint.m4.
424         (Depends-on): Add math.
425         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
426         gl_MATH_MODULE_INDICATOR.
427         * tests/test-math-c++.cc: Check the declaration of rint.
428         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
429         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
430         * doc/posix-functions/rint.texi: Mention the replacement provided by
431         the module.
432
433         rint tests: More tests.
434         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
435         minus-zero.h, infinity.h, nan.h.
436         (main): Skip the test if the current rounding mode is not standard. Add
437         tests for negative numbers, minus zero, infinity, NaN.
438         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
439         tests/nan.h.
440         (Depends-on): Add isnand-nolibm.
441
442 2011-10-09  Bruno Haible  <bruno@clisp.org>
443
444         Tests for module 'copysignl'.
445         * modules/copysignl-tests: New file.
446         * tests/test-copysignl.c: New file.
447
448         New module 'copysignl'.
449         * lib/math.in.h (copysignl): New declaration.
450         * lib/copysignl.c: New file.
451         * m4/copysignl.m4: New file.
452         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
454         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
455         HAVE_COPYSIGNL.
456         * modules/copysignl: New file.
457         * tests/test-math-c++.cc: Check the declaration of copysignl.
458         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
459         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
460         * doc/posix-functions/copysignl.texi: Mention the new module.
461
462 2011-10-09  Bruno Haible  <bruno@clisp.org>
463
464         Tests for module 'copysignf'.
465         * modules/copysignf-tests: New file.
466         * tests/test-copysignf.c: New file.
467
468         New module 'copysignf'.
469         * lib/math.in.h (copysignf): New declaration.
470         * lib/copysignf.c: New file.
471         * m4/copysignf.m4: New file.
472         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
474         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
475         HAVE_COPYSIGNF.
476         * modules/copysignf: New file.
477         * tests/test-math-c++.cc: Check the declaration of copysignf.
478         * doc/posix-functions/copysignf.texi: Mention the new module.
479
480 2011-10-09  Bruno Haible  <bruno@clisp.org>
481
482         Ensure that HAVE_* variables are set to 1 before they are set to 0.
483         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
484         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
485         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
486         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
487         gl_SIGNAL_H_DEFAULTS.
488
489 2011-10-09  Bruno Haible  <bruno@clisp.org>
490
491         poll: Make macro safer.
492         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
493         ac_cv_header_poll_h is not set.
494
495 2011-10-09  Bruno Haible  <bruno@clisp.org>
496
497         copysign: Provide replacement.
498         * lib/math.in.h (copysign): New declaration.
499         * lib/copysign.c: New file.
500         * m4/copysign.m4: New file.
501         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
503         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
504         HAVE_COPYSIGN.
505         * modules/copysign (Description): Clarify.
506         (Files): Add lib/copysign.c, m4/copysign.m4.
507         (Depends-on): Add math, signbit.
508         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
509         gl_MATH_MODULE_INDICATOR.
510         * tests/test-math-c++.cc: Check the declaration of copysign.
511         * doc/posix-functions/copysign.texi: Mention the effects of the module
512         on Minix and MSVC.
513
514 2011-10-09  Bruno Haible  <bruno@clisp.org>
515
516         isinf: Ensure macro on AIX 5.1.
517         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
518         macro.
519         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
520
521 2011-10-09  Bruno Haible  <bruno@clisp.org>
522
523         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
524         * modules/snprintf-posix-tests (configure.ac): Require
525         gl_LONG_DOUBLE_VS_DOUBLE.
526         * modules/sprintf-posix-tests (configure.ac): Likewise.
527         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
528         * modules/vasprintf-posix-tests (configure.ac): Likewise.
529         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
530         * modules/vsprintf-posix-tests (configure.ac): Likewise.
531         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
532         tests on platforms where 'long double' is the same as 'double'.
533         * tests/test-sprintf-posix.h (test_function): Likewise.
534         * tests/test-vasnprintf-posix.c (test_function): Likewise.
535         * tests/test-vasprintf-posix.c (test_function): Likewise.
536
537         *printf: Fix for platforms where 'long double' == 'double'.
538         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
539         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
540         * modules/dprintf-posix (Files): Add m4/math_h.m4.
541         * modules/fprintf-posix (Files): Likewise.
542         * modules/obstack-printf-posix (Files): Likewise.
543         * modules/snprintf-posix (Files): Likewise.
544         * modules/sprintf-posix (Files): Likewise.
545         * modules/vasnprintf (Files): Likewise.
546         * modules/vasnprintf-posix (Files): Likewise.
547         * modules/vasprintf-posix (Files): Likewise.
548         * modules/vdprintf-posix (Files): Likewise.
549         * modules/vfprintf-posix (Files): Likewise.
550         * modules/vsnprintf-posix (Files): Likewise.
551         * modules/vsprintf-posix (Files): Likewise.
552         * modules/unistdio/u8-vasnprintf (Files): Likewise.
553         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
554         * modules/unistdio/u16-vasnprintf (Files): Likewise.
555         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
556         * modules/unistdio/u32-vasnprintf (Files): Likewise.
557         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
558         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
559
560         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
561         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
562         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
563         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
564         'long double'.
565         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
566
567         isinf: Fix for platforms where 'long double' == 'double'.
568         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
569         Don't blindly assume 80-bit 'long double'.
570
571         isfinite: Fix for platforms where 'long double' == 'double'.
572         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
573         Don't blindly assume 80-bit 'long double'.
574
575         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
576         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
577         * modules/isfinite-tests (configure.ac): Require
578         gl_LONG_DOUBLE_VS_DOUBLE.
579         * modules/isinf-tests (configure.ac): Likewise.
580         * modules/isnan-tests (configure.ac): Likewise.
581         * modules/isnanl-tests (configure.ac): Likewise.
582         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
583         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
584         tests on platforms where 'long double' is the same as 'double'.
585         * tests/test-isinf.c (test_isinfl): Likewise.
586         * tests/test-isnan.c (test_long_double): Likewise.
587         * tests/test-isnanl.h (main): Likewise.
588
589 2011-10-08  Bruno Haible  <bruno@clisp.org>
590
591         Tests for module 'tanhf'.
592         * modules/tanhf-tests: New file.
593         * tests/test-tanhf.c: New file.
594
595         New module 'tanhf'.
596         * lib/math.in.h (tanhf): New declaration.
597         * lib/tanhf.c: New file.
598         * m4/tanhf.m4: New file.
599         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
601         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
602         * modules/tanhf: New file.
603         * tests/test-math-c++.cc: Check the declaration of tanhf.
604         * doc/posix-functions/tanhf.texi: Mention the new module.
605
606         tanh: Use a .m4 file.
607         * m4/tanh.m4: New file.
608         * modules/tanh (Files): Add it.
609         (configure.ac): Just invoke gl_FUNC_TANH.
610
611 2011-10-08  Bruno Haible  <bruno@clisp.org>
612
613         Tests for module 'coshf'.
614         * modules/coshf-tests: New file.
615         * tests/test-coshf.c: New file.
616
617         New module 'coshf'.
618         * lib/math.in.h (coshf): New declaration.
619         * lib/coshf.c: New file.
620         * m4/coshf.m4: New file.
621         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
623         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
624         * modules/coshf: New file.
625         * tests/test-math-c++.cc: Check the declaration of coshf.
626         * doc/posix-functions/coshf.texi: Mention the new module.
627
628         cosh: Use a .m4 file.
629         * m4/cosh.m4: New file.
630         * modules/cosh (Files): Add it.
631         (configure.ac): Just invoke gl_FUNC_COSH.
632
633 2011-10-08  Bruno Haible  <bruno@clisp.org>
634
635         Tests for module 'sinhf'.
636         * modules/sinhf-tests: New file.
637         * tests/test-sinhf.c: New file.
638
639         New module 'sinhf'.
640         * lib/math.in.h (sinhf): New declaration.
641         * lib/sinhf.c: New file.
642         * m4/sinhf.m4: New file.
643         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
645         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
646         * modules/sinhf: New file.
647         * tests/test-math-c++.cc: Check the declaration of sinhf.
648         * doc/posix-functions/sinhf.texi: Mention the new module.
649
650         sinh: Use a .m4 file.
651         * m4/sinh.m4: New file.
652         * modules/sinh (Files): Add it.
653         (configure.ac): Just invoke gl_FUNC_SINH.
654
655 2011-10-08  Bruno Haible  <bruno@clisp.org>
656
657         Tests for module 'atan2f'.
658         * modules/atan2f-tests: New file.
659         * tests/test-atan2f.c: New file.
660
661         New module 'atan2f'.
662         * lib/math.in.h (atan2f): New declaration.
663         * lib/atan2f.c: New file.
664         * m4/atan2f.m4: New file.
665         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
667         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
668         * modules/atan2f: New file.
669         * tests/test-math-c++.cc: Check the declaration of atan2f.
670         * doc/posix-functions/atan2f.texi: Mention the new module.
671
672         atan2: Use a .m4 file.
673         * m4/atan2.m4: New file.
674         * modules/atan2 (Files): Add it.
675         (configure.ac): Just invoke gl_FUNC_ATAN2.
676
677 2011-10-08  Bruno Haible  <bruno@clisp.org>
678
679         Tests for module 'atanf'.
680         * modules/atanf-tests: New file.
681         * tests/test-atanf.c: New file.
682
683         New module 'atanf'.
684         * lib/math.in.h (atanf): New declaration.
685         * lib/atanf.c: New file.
686         * m4/atanf.m4: New file.
687         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
689         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
690         * modules/atanf: New file.
691         * tests/test-math-c++.cc: Check the declaration of atanf.
692         * doc/posix-functions/atanf.texi: Mention the new module.
693
694         atan: Use a .m4 file.
695         * m4/atan.m4: New file.
696         * modules/atan (Files): Add it.
697         (configure.ac): Just invoke gl_FUNC_ATAN.
698
699 2011-10-08  Bruno Haible  <bruno@clisp.org>
700
701         Tests for module 'acosf'.
702         * modules/acosf-tests: New file.
703         * tests/test-acosf.c: New file.
704
705         New module 'acosf'.
706         * lib/math.in.h (acosf): New declaration.
707         * lib/acosf.c: New file.
708         * m4/acosf.m4: New file.
709         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
711         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
712         * modules/acosf: New file.
713         * tests/test-math-c++.cc: Check the declaration of acosf.
714         * doc/posix-functions/acosf.texi: Mention the new module.
715
716         acos: Use a .m4 file.
717         * m4/acos.m4: New file.
718         * modules/acos (Files): Add it.
719         (configure.ac): Just invoke gl_FUNC_ACOS.
720
721 2011-10-08  Bruno Haible  <bruno@clisp.org>
722
723         Tests for module 'asinf'.
724         * modules/asinf-tests: New file.
725         * tests/test-asinf.c: New file.
726
727         New module 'asinf'.
728         * lib/math.in.h (asinf): New declaration.
729         * lib/asinf.c: New file.
730         * m4/asinf.m4: New file.
731         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
733         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
734         * modules/asinf: New file.
735         * tests/test-math-c++.cc: Check the declaration of asinf.
736         * doc/posix-functions/asinf.texi: Mention the new module.
737
738         asin: Use a .m4 file.
739         * m4/asin.m4: New file.
740         * modules/asin (Files): Add it.
741         (configure.ac): Just invoke gl_FUNC_ASIN.
742
743 2011-10-08  Bruno Haible  <bruno@clisp.org>
744
745         Tests for module 'tanf'.
746         * modules/tanf-tests: New file.
747         * tests/test-tanf.c: New file.
748
749         New module 'tanf'.
750         * lib/math.in.h (tanf): New declaration.
751         * lib/tanf.c: New file.
752         * m4/tanf.m4: New file.
753         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
755         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
756         * modules/tanf: New file.
757         * tests/test-math-c++.cc: Check the declaration of tanf.
758         * doc/posix-functions/tanf.texi: Mention the new module.
759
760         tan: Use a .m4 file.
761         * m4/tan.m4: New file.
762         * modules/tan (Files): Add it.
763         (configure.ac): Just invoke gl_FUNC_TAN.
764
765 2011-10-08  Bruno Haible  <bruno@clisp.org>
766
767         Tests for module 'cosf'.
768         * modules/cosf-tests: New file.
769         * tests/test-cosf.c: New file.
770
771         New module 'cosf'.
772         * lib/math.in.h (cosf): New declaration.
773         * lib/cosf.c: New file.
774         * m4/cosf.m4: New file.
775         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
777         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
778         * modules/cosf: New file.
779         * tests/test-math-c++.cc: Check the declaration of cosf.
780         * doc/posix-functions/cosf.texi: Mention the new module.
781
782         cos: Use a .m4 file.
783         * m4/cos.m4: New file.
784         * modules/cos (Files): Add it.
785         (configure.ac): Just invoke gl_FUNC_COS.
786
787 2011-10-08  Bruno Haible  <bruno@clisp.org>
788
789         Tests for module 'sinf'.
790         * modules/sinf-tests: New file.
791         * tests/test-sinf.c: New file.
792
793         New module 'sinf'.
794         * lib/math.in.h (sinf): New declaration.
795         * lib/sinf.c: New file.
796         * m4/sinf.m4: New file.
797         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
799         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
800         * modules/sinf: New file.
801         * tests/test-math-c++.cc: Check the declaration of sinf.
802         * doc/posix-functions/sinf.texi: Mention the new module.
803
804         sin: Use a .m4 file.
805         * m4/sin.m4: New file.
806         * modules/sin (Files): Add it.
807         (configure.ac): Just invoke gl_FUNC_SIN.
808
809 2011-10-08  Bruno Haible  <bruno@clisp.org>
810
811         Tests for module 'powf'.
812         * modules/powf-tests: New file.
813         * tests/test-powf.c: New file.
814
815         New module 'powf'.
816         * lib/math.in.h (powf): New declaration.
817         * lib/powf.c: New file.
818         * m4/powf.m4: New file.
819         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
821         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
822         * modules/powf: New file.
823         * tests/test-math-c++.cc: Check the declaration of powf.
824         * doc/posix-functions/powf.texi: Mention the new module.
825
826         pow: Use a .m4 file.
827         * m4/pow.m4: New file.
828         * modules/pow (Files): Add it.
829         (configure.ac): Just invoke gl_FUNC_POW.
830
831 2011-10-08  Bruno Haible  <bruno@clisp.org>
832
833         Tests for module 'log10f'.
834         * modules/log10f-tests: New file.
835         * tests/test-log10f.c: New file.
836
837         New module 'log10f'.
838         * lib/math.in.h (log10f): New declaration.
839         * lib/log10f.c: New file.
840         * m4/log10f.m4: New file.
841         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
843         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
844         * modules/log10f: New file.
845         * tests/test-math-c++.cc: Check the declaration of log10f.
846         * doc/posix-functions/log10f.texi: Mention the new module.
847
848         log10: Use a .m4 file.
849         * m4/log10.m4: New file.
850         * modules/log10 (Files): Add it.
851         (configure.ac): Just invoke gl_FUNC_LOG10.
852
853 2011-10-08  Bruno Haible  <bruno@clisp.org>
854
855         Tests for module 'logf'.
856         * modules/logf-tests: New file.
857         * tests/test-logf.c: New file.
858
859         New module 'logf'.
860         * lib/math.in.h (logf): New declaration.
861         * lib/logf.c: New file.
862         * m4/logf.m4: New file.
863         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
865         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
866         * modules/logf: New file.
867         * tests/test-math-c++.cc: Check the declaration of logf.
868         * doc/posix-functions/logf.texi: Mention the new module.
869
870         log: Use a .m4 file.
871         * m4/log.m4: New file.
872         * modules/log (Files): Add it.
873         (configure.ac): Just invoke gl_FUNC_LOG.
874
875 2011-10-08  Bruno Haible  <bruno@clisp.org>
876
877         Tests for module 'expf'.
878         * modules/expf-tests: New file.
879         * tests/test-expf.c: New file.
880
881         New module 'expf'.
882         * lib/math.in.h (expf): New declaration.
883         * lib/expf.c: New file.
884         * m4/expf.m4: New file.
885         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
887         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
888         * modules/expf: New file.
889         * tests/test-math-c++.cc: Check the declaration of expf.
890         * doc/posix-functions/expf.texi: Mention the new module.
891
892         exp: Use a .m4 file.
893         * m4/exp.m4: New file.
894         * modules/exp (Files): Add it.
895         (configure.ac): Just invoke gl_FUNC_EXP.
896
897 2011-10-08  Bruno Haible  <bruno@clisp.org>
898
899         Tests for module 'sqrtf'.
900         * modules/sqrtf-tests: New file.
901         * tests/test-sqrtf.c: New file.
902
903         New module 'sqrtf'.
904         * lib/math.in.h (sqrtf): New declaration.
905         * lib/sqrtf.c: New file.
906         * m4/sqrtf.m4: New file.
907         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
909         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
910         * modules/sqrtf: New file.
911         * tests/test-math-c++.cc: Check the declaration of sqrtf.
912         * doc/posix-functions/sqrtf.texi: Mention the new module.
913
914 2011-10-08  Bruno Haible  <bruno@clisp.org>
915
916         Tests: Avoid link failures w.r.t. libintl.
917         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
918         $(LIBINTL).
919         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
920         $(LIBINTL).
921         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
922         against $(LIBINTL).
923         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
924         $(LIBINTL).
925         * modules/openat-tests (Makefile.am): Link test-fchmodat against
926         $(LIBINTL).
927         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
928
929 2011-10-08  Bruno Haible  <bruno@clisp.org>
930
931         pow tests: Defeat compiler optimizations.
932         * tests/test-pow.c (main): Assign arguments to x and y before use.
933
934 2011-10-08  Bruno Haible  <bruno@clisp.org>
935
936         gnulib-tool: Improve last commit.
937         * gnulib-tool (func_modules_transitive_closure): Simplify code.
938         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
939         ignore dependencies that are not among the modules list.
940
941 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
942
943         gnulib-tool: don't follow dependencies to avoided modules
944         This fixes a bug that is related to the previous one.
945         * gnulib-tool (func_modules_transitive_closure)
946         (func_emit_autoconf_snippets):
947         Check whether a dependency is acceptable before using it.
948         (--extract-dependencies): Report an error if --avoid is also used,
949         since this combination of options is not yet supported.
950
951         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
952         Problem reported by Peter Dyballa in
953         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
954         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
955         when echoing "$condition".
956
957 2011-10-07  Bruno Haible  <bruno@clisp.org>
958
959         Fix documentation about math functions on MacOS X.
960         * doc/posix-functions/exp2.texi: Don't say the function is missing on
961         MacOS X 10.5.
962         * doc/posix-functions/fdim.texi: Likewise.
963         * doc/posix-functions/feclearexcept.texi: Likewise.
964         * doc/posix-functions/fegetenv.texi: Likewise.
965         * doc/posix-functions/fegetround.texi: Likewise.
966         * doc/posix-functions/feholdexcept.texi: Likewise.
967         * doc/posix-functions/feraiseexcept.texi: Likewise.
968         * doc/posix-functions/fesetenv.texi: Likewise.
969         * doc/posix-functions/fesetround.texi: Likewise.
970         * doc/posix-functions/fetestexcept.texi: Likewise.
971         * doc/posix-functions/feupdateenv.texi: Likewise.
972         * doc/posix-functions/fmax.texi: Likewise.
973         * doc/posix-functions/fmin.texi: Likewise.
974         * doc/posix-functions/log2.texi: Likewise.
975         * doc/posix-functions/modff.texi: Likewise.
976         * doc/posix-functions/nan.texi: Likewise.
977         * doc/posix-functions/nanf.texi: Likewise.
978         * doc/posix-functions/nextafterf.texi: Likewise.
979         * doc/posix-functions/remquo.texi: Likewise.
980
981 2011-10-07  Bruno Haible  <bruno@clisp.org>
982
983         modff: Drop assumption about library that defines modff.
984         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
985         AC_CHECK_FUNCS.
986         * modules/modff (Files): Add m4/mathfunc.m4.
987
988 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
989
990         raise tests: Avoid a GCC warning.
991         * tests/test-raise.c (handler): Use _Noreturn.
992
993 2011-10-07  Bruno Haible  <bruno@clisp.org>
994
995         Tests for module 'ldexpf'.
996         * modules/ldexpf-tests: New file.
997         * tests/test-ldexpf.c: New file.
998
999         New module 'ldexpf'.
1000         * lib/math.in.h (ldexpf): New declaration.
1001         * lib/ldexpf.c: New file.
1002         * m4/ldexpf.m4: New file.
1003         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1005         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1006         * modules/ldexpf: New file.
1007         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1008         * doc/posix-functions/ldexpf.texi: Mention the new module.
1009
1010 2011-10-06  Bruno Haible  <bruno@clisp.org>
1011
1012         frexpf: Work around problems on IRIX and mingw.
1013         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1015         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1016         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1017         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1018         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1019         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1020
1021 2011-10-06  Bruno Haible  <bruno@clisp.org>
1022
1023         fabsf: Drop assumption about library that defines fabsf.
1024         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1025         AC_CHECK_FUNCS.
1026         * modules/fabsf (Files): Add m4/mathfunc.m4.
1027
1028 2011-10-06  Bruno Haible  <bruno@clisp.org>
1029
1030         frexpf: Drop assumption about library that defines frexpf.
1031         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1032         'int *', 'float *', 'long double *', 'float', 'long double'.
1033         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1034         AC_CHECK_FUNCS.
1035         * modules/frexpf (Files): Add m4/mathfunc.m4.
1036
1037         Tests for module 'frexpf'.
1038         * modules/frexpf-tests: New file.
1039         * tests/test-frexpf.c: New file.
1040
1041         New module 'frexpf'.
1042         * lib/math.in.h (frexpf): New declaration.
1043         * lib/frexpf.c: New file.
1044         * m4/frexpf.m4: New file.
1045         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1047         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1048         * modules/frexpf: New file.
1049         * tests/test-math-c++.cc: Check the declaration of frexpf.
1050         * doc/posix-functions/frexpf.texi: Mention the new module.
1051
1052 2011-10-06  Bruno Haible  <bruno@clisp.org>
1053
1054         math: Sort function declarations of math.in.h.
1055         * lib/math.in.h (frexp, logb): Move declarations.
1056
1057 2011-10-05  Bruno Haible  <bruno@clisp.org>
1058
1059         Tests for module 'modff'.
1060         * modules/modff-tests: New file.
1061         * tests/test-modff.c: New file.
1062
1063         New module 'modff'.
1064         * lib/math.in.h (modff): New declaration.
1065         * lib/modff.c: New file.
1066         * m4/modff.m4: New file.
1067         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1069         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1070         * modules/modff: New file.
1071         * tests/test-math-c++.cc: Check the declaration of modff.
1072         * doc/posix-functions/modff.texi: Mention the new module.
1073
1074         modf tests: Make test sharper.
1075         * tests/test-modf.c (main): Strengthen upper bound.
1076
1077         modf: Use a .m4 file.
1078         * m4/modf.m4: New file.
1079         * modules/modf (Files): Add it.
1080         (configure.ac): Just invoke gl_FUNC_MODF.
1081
1082 2011-10-05  Bruno Haible  <bruno@clisp.org>
1083
1084         Tests for module 'fmodf'.
1085         * modules/fmodf-tests: New file.
1086         * tests/test-fmodf.c: New file.
1087
1088         New module 'fmodf'.
1089         * lib/math.in.h (fmodf): New declaration.
1090         * lib/fmodf.c: New file.
1091         * m4/fmodf.m4: New file.
1092         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1094         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1095         * modules/fmodf: New file.
1096         * tests/test-math-c++.cc: Check the declaration of fmodf.
1097         * doc/posix-functions/fmodf.texi: Mention the new module.
1098
1099         fmod: Use a .m4 file.
1100         * m4/fmod.m4: New file.
1101         * modules/fmod (Files): Add it.
1102         (configure.ac): Just invoke gl_FUNC_FMOD.
1103
1104 2011-10-05  Bruno Haible  <bruno@clisp.org>
1105
1106         Tests for module 'fabsf'.
1107         * modules/fabsf-tests: New file.
1108         * tests/test-fabsf.c: New file.
1109
1110         New module 'fabsf'.
1111         * lib/math.in.h (fabsf): New declaration.
1112         * lib/fabsf.c: New file.
1113         * m4/fabsf.m4: New file.
1114         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1116         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1117         * modules/fabsf: New file.
1118         * tests/test-math-c++.cc: Check the declaration of fabsf.
1119         * doc/posix-functions/fabsf.texi: Mention the new module.
1120
1121         fabs: Use a .m4 file.
1122         * m4/fabs.m4: New file.
1123         * modules/fabs (Files): Add it.
1124         (configure.ac): Just invoke gl_FUNC_FABS.
1125
1126 2011-10-05  Jim Meyering  <meyering@redhat.com>
1127
1128         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1129         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1130         ls -lL regression introduced in coreutils-8.12, it does so at the
1131         cost of an additional stat call in the common case.  Besides, now
1132         that the kernel change that prompted commit 95f7c57f has been reverted
1133         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1134         we have no use for commit 95f7c57f, "file-has-acl: use
1135         acl_extended_file_nofollow if available".
1136
1137 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1138
1139         file-has-acl: revert unintended change in behavior of ls -L
1140         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1141         derived from...
1142         (file_has_acl): ...code here.  Call it.
1143         This problem was introduced with 2011-07-22 commit 95f7c57f,
1144         "file-has-acl: use acl_extended_file_nofollow if available".
1145         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1146
1147 2011-10-03  Bruno Haible  <bruno@clisp.org>
1148
1149         poll: Avoid link errors on MSVC.
1150         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1151         * modules/poll (Depends-on): Add sockets.
1152         (Link): New section.
1153         * NEWS: Mention the change.
1154         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1155         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1156         $(LIB_POLL) instead of $(LIBSOCKET).
1157
1158 2011-10-03  Bruno Haible  <bruno@clisp.org>
1159
1160         sys_select tests: Fix link error on MSVC 9.
1161         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1162         with $(LIB_SELECT) instead of $(LIBSOCKET).
1163
1164 2011-10-03  Bruno Haible  <bruno@clisp.org>
1165
1166         sys_select: Fix compilation error on mingw.
1167         * lib/sys_select.in.h: On native Windows, include <io.h>.
1168
1169 2011-10-03  Bruno Haible  <bruno@clisp.org>
1170
1171         wmemset: Support for MSVC.
1172         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1173         whether wmemset() exists.
1174
1175 2011-10-03  Bruno Haible  <bruno@clisp.org>
1176
1177         wmemmove: Support for MSVC.
1178         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1179         whether wmemmove() exists.
1180
1181 2011-10-03  Bruno Haible  <bruno@clisp.org>
1182
1183         wmemcpy: Support for MSVC.
1184         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1185         whether wmemcpy() exists.
1186
1187 2011-10-03  Bruno Haible  <bruno@clisp.org>
1188
1189         wmemcmp: Support for MSVC.
1190         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1191         whether wmemcmp() exists.
1192
1193 2011-10-03  Bruno Haible  <bruno@clisp.org>
1194
1195         wmemchr: Support for MSVC.
1196         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1197         whether wmemchr() exists.
1198
1199 2011-10-03  Bruno Haible  <bruno@clisp.org>
1200
1201         glthread/*, strsignal: Support for MSVC.
1202         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1203         including <winsock.h> on MSVC 9.
1204         * lib/glthread/lock.h: Likewise.
1205         * lib/glthread/thread.h: Likewise.
1206         * lib/glthread/tls.h: Likewise.
1207         * lib/glthread/yield.h: Likewise.
1208         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1209         if HAVE_UNISTD_H is false.
1210         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1211
1212 2011-10-03  Bruno Haible  <bruno@clisp.org>
1213
1214         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1215         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1216         Set to 100000.
1217
1218 2011-10-03  Bruno Haible  <bruno@clisp.org>
1219
1220         acl: Fix specification.
1221         * lib/file-has-acl.c (file_has_acl): Fix specification.
1222
1223 2011-10-03  Bruno Haible  <bruno@clisp.org>
1224
1225         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1226         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1227         (compute_curr_prefix, shared_library_fullname,
1228         find_shared_library_fullname, get_shared_library_fullname, relocate):
1229         Use it together with PIC && INSTALLDIR.
1230         Reported by <jojelino@gmail.com>
1231         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1232
1233 2011-10-01  Jim Meyering  <meyering@redhat.com>
1234
1235         maint.mk: adjust a release-related rule not to require use of gzip
1236         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1237         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1238         projects that build only .tar.xz files.  Also fix an erroneous test.
1239
1240         test-linkat: don't leave behind a temporary file
1241         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1242         Otherwise, coreutils' "make distcheck" would fail with this:
1243           Only in /c/cu/tests/torture/coreutils/test/\
1244             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1245           make[2]: *** [my-distcheck] Error 1
1246
1247         float, math: add omitted file
1248         * lib/itold.c: Add file, required for yesterday's float change.
1249
1250 2011-10-01  Bruno Haible  <bruno@clisp.org>
1251
1252         isinf: Fix for OpenBSD/x86.
1253         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1254         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1255         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1256
1257 2011-10-01  Bruno Haible  <bruno@clisp.org>
1258
1259         isfinite: Fix syntax error in configure test.
1260         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1261
1262         isfinite: Fix typo.
1263         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1264         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1265
1266 2011-10-01  Bruno Haible  <bruno@clisp.org>
1267
1268         nonblocking tests: Fix test failure on Linux/IA-64.
1269         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1270         Set to 270000.
1271
1272 2011-10-01  Bruno Haible  <bruno@clisp.org>
1273
1274         mkfifoat tests: Fix a test failure on mingw.
1275         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1276         with error ENOSYS.
1277
1278 2011-09-30  Bruno Haible  <bruno@clisp.org>
1279
1280         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1281         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1282         'long double'. Set REPLACE_ITOLD.
1283         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1284         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1285         * lib/itold.c: New file.
1286         * modules/float (Files): Add lib/itold.c.
1287         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1288         (Makefile.am): Substitute REPLACE_ITOLD.
1289         * modules/math (Depends-on): Add float.
1290         (Makefile.am): Substitute REPLACE_ITOLD.
1291         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1292         * doc/posix-headers/math.texi: Likewise.
1293         * doc/posix-functions/logl.texi: Likewise.
1294
1295 2011-09-30  Bruno Haible  <bruno@clisp.org>
1296
1297         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1298         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1299         Set to 140000.
1300
1301 2011-09-30  Bruno Haible  <bruno@clisp.org>
1302
1303         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1304         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1305         invocation, say "right after AC_PROG_CC_STDC", not "right after
1306         AC_PROG_CC".
1307         Reported by Gary V. Vaughan <gary@gnu.org>.
1308
1309 2011-09-30  Bruno Haible  <bruno@clisp.org>
1310
1311         Centralize C99 requirement.
1312         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1313         * modules/stdarg (configure.ac-early): Invoke it instead of
1314         AC_PROG_CC_STDC.
1315         Reported by Gary V. Vaughan and Paul Eggert.
1316
1317 2011-09-29  Bruno Haible  <bruno@clisp.org>
1318
1319         float: Fix LDBL_MAX value on Linux/PowerPC.
1320         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1321         on Linux/PowerPC.
1322         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1323         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1324         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1325         platform.
1326         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1327
1328 2011-09-29  Bruno Haible  <bruno@clisp.org>
1329
1330         doc: Improve doc about gl_EARLY.
1331         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1332         AC_PROG_CC_STDC invocation.
1333         Reported by Gary V. Vaughan <gary@gnu.org>.
1334
1335 2011-09-28  Bruno Haible  <bruno@clisp.org>
1336
1337         fgetc, fputc, fread, fwrite tests: Fix link error.
1338         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1339         on non-MSVC platforms.
1340         * tests/test-fputc.c (main): Likewise.
1341         * tests/test-fread.c (main): Likewise.
1342         * tests/test-fwrite.c (main): Likewise.
1343         Reported by Jim Meyering.
1344
1345 2011-09-27  Bruno Haible  <bruno@clisp.org>
1346
1347         fputc, fwrite tests: Avoid test failure on MSVC.
1348         * tests/test-fgetc.c: Include msvc-inval.h.
1349         (main): Invoke gl_msvc_inval_ensure_handler.
1350         * tests/test-fputc.c: Include msvc-inval.h.
1351         (main): Invoke gl_msvc_inval_ensure_handler.
1352         * tests/test-fread.c: Include msvc-inval.h.
1353         (main): Invoke gl_msvc_inval_ensure_handler.
1354         * tests/test-fwrite.c: Include msvc-inval.h.
1355         (main): Invoke gl_msvc_inval_ensure_handler.
1356         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1357         * modules/fputc-tests (Depends-on): Likewise.
1358         * modules/fread-tests (Depends-on): Likewise.
1359         * modules/fwrite-tests (Depends-on): Likewise.
1360
1361 2011-09-27  Bruno Haible  <bruno@clisp.org>
1362
1363         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1364         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1365         (raise): Remove older, duplicated declaration.
1366         (_gl_raise_SIGPIPE): New declaration.
1367         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1368         (rpl_raise): Remove function.
1369         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1370         a gnulib-defined SIGPIPE here.
1371         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1372         'sigprocmask' has detected missing signal-blocking and the module
1373         'sigpipe' is enabled.
1374         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1375
1376 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1377
1378         base64-tests: avoid memory leak
1379         * tests/test-base64.c (main): Plug memory leak.
1380
1381         base32: new module
1382         * modules/base32: New module.
1383         * lib/base32.c: New file.
1384         * lib/base32.h: Likewise.
1385         * m4/base32.m4: Likewise.
1386         * modules/base32-tests: New test.
1387         * tests/test-base32.c: Likewise.
1388         * MODULES.html.sh (Misc): Mention it.
1389
1390 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1391
1392         gnulib: use more-standard license notice wording
1393         * gnulib-tool (func_emit_copyright_notice): When emitting a
1394         license notice into a file, use the standard wording as suggested
1395         by the current information for GNU maintainers, except say "file"
1396         rather than "program".  The new wording gives a license version
1397         number, which addresses an issue raised by Glenn Morris in
1398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1399         * m4/onceonly.m4: Use that same wording here, too.
1400
1401         dup2: minor simplification
1402         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1403         as lib/dup2.c no longer uses 'inline'.
1404
1405 2011-09-25  Bruno Haible  <bruno@clisp.org>
1406
1407         strings: Fix compilation error on MSVC.
1408         * lib/strings.in.h: Include <stddef.h> for size_t.
1409
1410 2011-09-25  Bruno Haible  <bruno@clisp.org>
1411
1412         fflush et al.: Document limitation on MSVC.
1413         * doc/posix-functions/fflush.texi: Document possible crash in handling
1414         mode other than DEFAULT_HANDLING.
1415         * doc/posix-functions/fgetc.texi: Likewise.
1416         * doc/posix-functions/fputc.texi: Likewise.
1417         * doc/posix-functions/fread.texi: Likewise.
1418         * doc/posix-functions/fwrite.texi: Likewise.
1419
1420 2011-09-25  Bruno Haible  <bruno@clisp.org>
1421
1422         msvc-inval: Allow three invalid parameter handling modes.
1423         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1424         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1425         macros.
1426         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1427         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1428         SANE_LIBRARY_HANDLING as a no-op.
1429         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1430         <stdlib.h>.
1431         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1432
1433 2011-09-25  Bruno Haible  <bruno@clisp.org>
1434
1435         msvc-inval: Make handler multithread-safe.
1436         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1437         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1438         declarations.
1439         (gl_msvc_inval_current): New declaration.
1440         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1441         Operate on the structure returned by gl_msvc_inval_current().
1442         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1443         Remove varaiables.
1444         (tls_index, tls_initialized): New variables.
1445         (not_per_thread): New variable.
1446         (gl_msvc_inval_current): New function.
1447         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1448         returned by gl_msvc_inval_current().
1449
1450 2011-09-25  Bruno Haible  <bruno@clisp.org>
1451
1452         msvc-inval: Install handler globally.
1453         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1454         !_MSC_VER.
1455         (gl_msvc_invalid_parameter_handler): Remove declaration.
1456         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1457         declarations.
1458         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1459         Install the handler globally, don't uninstall it.
1460         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1461         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1462         currently valid, call RaiseException instead.
1463         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1464         for !_MSC_VER.
1465
1466 2011-09-25  Bruno Haible  <bruno@clisp.org>
1467
1468         strerror_r-posix: Fix for MSVC 9.
1469         * lib/strerror_r.c (local_snprintf): New function.
1470         (snprintf): Define to local_snprintf, not to _snprintf.
1471
1472 2011-09-25  Bruno Haible  <bruno@clisp.org>
1473
1474         ftruncate: Support for MSVC 9.
1475         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1476         (chsize_nothrow): New function.
1477         (chsize): Redefine as a macro.
1478         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1479         * modules/ftruncate (Depends-on): Add msvc-inval.
1480
1481 2011-09-25  Bruno Haible  <bruno@clisp.org>
1482
1483         New module 'fstat'.
1484         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1485         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1486         * lib/fchdir.c (rpl_fstat): Remove function.
1487         * m4/fstat.m4: New file.
1488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1490         declared.
1491         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1492         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1493         * modules/fstat: New file.
1494         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1495         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1496         is set.
1497         * doc/posix-functions/fstat.texi: Mention the new module and the
1498         problem on MSVC.
1499         * NEWS: Mention the change.
1500         * modules/acl (Depends-on): Add fstat.
1501         * modules/chdir-safer (Depends-on): Likewise.
1502         * modules/chown (Depends-on): Likewise.
1503         * modules/copy-file (Depends-on): Likewise.
1504         * modules/fchdir (Depends-on): Likewise.
1505         * modules/fdopendir (Depends-on): Likewise.
1506         * modules/fopen (Depends-on): Likewise.
1507         * modules/fts (Depends-on): Likewise.
1508         * modules/getcwd (Depends-on): Likewise.
1509         * modules/isapipe (Depends-on): Likewise.
1510         * modules/linkat (Depends-on): Likewise.
1511         * modules/lseek (Depends-on): Likewise.
1512         * modules/mkdir-p (Depends-on): Likewise.
1513         * modules/open (Depends-on): Likewise.
1514         * modules/openat (Depends-on): Likewise.
1515         * modules/read-file (Depends-on): Likewise.
1516         * modules/renameat (Depends-on): Likewise.
1517         * modules/utimens (Depends-on): Likewise.
1518
1519 2011-09-25  Bruno Haible  <bruno@clisp.org>
1520
1521         linkat: Fix compilation on MSVC 9.
1522         * lib/linkat.c: Don't include <stdint.h>.
1523
1524 2011-09-25  Bruno Haible  <bruno@clisp.org>
1525
1526         fclose: Support for MSVC 9.
1527         * lib/fclose.c: Include msvc-inval.h.
1528         (fclose_nothrow): New function.
1529         (rpl_fclose): Use it.
1530         * modules/fclose (Depends-on): Add msvc-inval.
1531         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1532
1533 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1534
1535         dup2: minor simplifications
1536         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1537         that it's a performance win.
1538         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1539         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1540
1541 2011-09-24  Jim Meyering  <meyering@redhat.com>
1542
1543         test-futimens: avoid a warning from gcc -Wshadow
1544         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1545         to avoid a shadowing warning.
1546
1547 2011-09-24  Bruno Haible  <bruno@clisp.org>
1548
1549         fdopen: Support for MSVC 9.
1550         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1551         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1552         * lib/fdopen.c: Include msvc-inval.h.
1553         (fdopen_nothrow): New function.
1554         (rpl_fdopen): Use it.
1555         * modules/fdopen (Depends-on): Add msvc-inval.
1556         * modules/fclose-tests (Depends-on): Add fdopen.
1557         * modules/fflush-tests (Depends-on): Likewise.
1558         * modules/fgetc-tests (Depends-on): Likewise.
1559         * modules/fputc-tests (Depends-on): Likewise.
1560         * modules/fread-tests (Depends-on): Likewise.
1561         * modules/freopen-tests (Depends-on): Likewise.
1562         * modules/fseeko-tests (Depends-on): Likewise.
1563         * modules/ftello-tests (Depends-on): Likewise.
1564         * modules/fwrite-tests  (Depends-on): Likewise.
1565         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1566
1567 2011-09-24  Bruno Haible  <bruno@clisp.org>
1568
1569         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1570         * modules/fgetc-tests (Depends-on): Add unistd.
1571         * modules/fputc-tests (Depends-on): Likewise.
1572         * modules/fread-tests (Depends-on): Likewise.
1573         * modules/fwrite-tests (Depends-on): Likewise.
1574
1575 2011-09-24  Bruno Haible  <bruno@clisp.org>
1576
1577         dup: Simplify autoconf test.
1578         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1579         on gl_MSVC_INVAL's result.
1580
1581 2011-09-24  Bruno Haible  <bruno@clisp.org>
1582
1583         Tests for function fwrite().
1584         * modules/fwrite-tests: New file.
1585         * tests/test-fwrite.c: New file.
1586         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1587
1588         Tests for function fread().
1589         * modules/fread-tests: New file.
1590         * tests/test-fread.c: New file.
1591         * modules/stdio-tests (Depends-on): Add fread-tests.
1592
1593         Activate fputc tests.
1594         * modules/stdio-tests (Depends-on): Add fputc-tests.
1595
1596         Enhance fgetc, fputc tests.
1597         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1598         * tests/test-fputc.c (main): Likewise.
1599
1600 2011-09-24  Bruno Haible  <bruno@clisp.org>
1601
1602         write: Support for MSVC 9.
1603         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1604         is not 1.
1605         * lib/write.c (write_nothrow): New function.
1606         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1607         not 1. Use write_nothrow.
1608         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1609         invalid parameter handler.
1610         (gl_PREREQ_WRITE): New macro.
1611         * modules/write (Depends-on): Add msvc-inval.
1612         (configure.ac): Invoke gl_PREREQ_WRITE.
1613         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1614
1615 2011-09-24  Bruno Haible  <bruno@clisp.org>
1616
1617         read: Fix last commit.
1618         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1619
1620 2011-09-24  Bruno Haible  <bruno@clisp.org>
1621
1622         dup2: Fix last commit.
1623         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1624         (rpl_dup2): Disable fcntl workaround on native Windows.
1625
1626         sigprocmask: Make code safer.
1627         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1628         section that changes macro definitions for this compilation unit.
1629
1630 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         dup2: clarify by coalescing Windows-specific material
1633         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1634         "msvc-nothrow.h"' to the Windows-specific section, so that the
1635         Emacs source need not contain these include files.
1636         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1637         Windows-specific fixes into this function rather than just the
1638         nothrow fix, as this shortens and clarifies the code.  Always
1639         define as a function, as that's a bit cleaner than having it be
1640         sometimes a function and sometimes a macro.
1641         (rpl_dup2): Move the Windows-specific stuff out of here and into
1642         ms_windows_dup2.  Don't protect the Haiku-related fix with
1643         "#if !defined __linux__", as the same code also works around
1644         a Linux kernel bug, and it doesn't add any system calls on any
1645         platform.  Add comment about FreeBSD 6.1.
1646
1647         sigprocmask: move #include directive
1648         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1649         Windows-specific section, so that the Emacs source need not
1650         contain msvc-inval.h.
1651
1652 2011-09-23  Bruno Haible  <bruno@clisp.org>
1653
1654         read: Support for MSVC 9.
1655         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1656         is not 1.
1657         * lib/read.c (read_nothrow): New function.
1658         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1659         read_nothrow.
1660         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1661         invalid parameter handler.
1662         (gl_PREREQ_READ): New macro.
1663         * modules/read (Depends-on): Add msvc-inval.
1664         (configure.ac): Invoke gl_PREREQ_READ.
1665         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1666
1667 2011-09-23  Bruno Haible  <bruno@clisp.org>
1668
1669         close: Support for MSVC 9.
1670         * lib/close.c: Include <errno.h>, msvc-inval.h.
1671         (close_nothrow): New function.
1672         (rpl_close): Use it.
1673         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1674         invalid parameter handler.
1675         * modules/close (Depends-on): Add msvc-inval.
1676         * modules/dup2-tests (Depends-on): Add close.
1677         * modules/dup3-tests (Depends-on): Likewise.
1678         * modules/fcntl-tests (Depends-on): Likewise.
1679         * modules/spawn-pipe-tests (Depends-on): Likewise.
1680         * modules/unistd-safer-tests (Depends-on): Likewise.
1681         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1682
1683 2011-09-23  Bruno Haible  <bruno@clisp.org>
1684
1685         New module 'dup'.
1686         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1687         Allow replacement.
1688         * lib/dup.c: New file.
1689         * lib/fchdir.c (rpl_dup): Remove function.
1690         * m4/dup.m4: New file.
1691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1692         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1693         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1694         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1695         * modules/dup: New file.
1696         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1697         'dup' module is in use.
1698         * modules/fdopendir (Depends-on): Add dup.
1699         * modules/fdutimensat-tests (Depends-on): Likewise.
1700         * modules/fts (Depends-on): Likewise.
1701         * modules/futimens-tests (Depends-on): Likewise.
1702         * modules/posix_spawnp-tests (Depends-on): Likewise.
1703         * modules/unistd-safer-tests (Depends-on): Likewise.
1704         * modules/utimens-tests (Depends-on): Likewise.
1705         * doc/posix-functions/dup.texi: Mention the new module and the problem
1706         on MSVC.
1707
1708 2011-09-23  Bruno Haible  <bruno@clisp.org>
1709
1710         getdtablesize: Support for MSVC 9.
1711         * lib/getdtablesize.c: Include msvc-inval.h.
1712         (_setmaxstdio_nothrow): New function.
1713         (_setmaxstdio): Redefine it.
1714         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1715         * modules/getdtablesize (Depends-on): Add msvc-inval.
1716         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1717
1718 2011-09-23  Bruno Haible  <bruno@clisp.org>
1719
1720         signal-h: Rename from signal.
1721         * modules/signal-h: Renamed from modules/signal.
1722         * modules/pthread_sigmask (Depends-on): Update.
1723         * modules/raise (Depends-on): Likewise.
1724         * modules/sigaction (Depends-on): Likewise.
1725         * modules/sigpipe (Depends-on): Likewise.
1726         * modules/sigprocmask (Depends-on): Likewise.
1727         * modules/sys_select (Depends-on): Likewise.
1728         * modules/signal-h-tests: Renamed from modules/signal-tests.
1729         (Files, Depends-on, Makefile.am): Update.
1730         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1731         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1732         (Files, Makefile.am): Update.
1733         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1734         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1735         * modules/signal: New placeholder file.
1736         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1737         * doc/posix-headers/signal.texi: Update.
1738         * NEWS: Mention the change.
1739
1740 2011-09-23  Bruno Haible  <bruno@clisp.org>
1741
1742         sigprocmask: Avoid crashes through signal() on MSVC 9.
1743         * lib/sigprocmask.c: Include msvc-inval.h.
1744         (signal_nothrow): New function.
1745         (signal): Redefine it.
1746         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1747         * modules/sigprocmask (Depends-on): Add msvc-inval.
1748         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1749
1750 2011-09-23  Bruno Haible  <bruno@clisp.org>
1751
1752         Tests for module 'raise'.
1753         * modules/raise-tests: New file.
1754         * tests/test-raise.c: New file.
1755
1756         raise: Support for MSVC.
1757         * lib/signal.in.h (raise): New declaration.
1758         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1759         for native Windows platforms.
1760         * m4/raise.m4: New file.
1761         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1762         HAVE_RAISE, REPLACE_RAISE.
1763         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1764         REPLACE_RAISE.
1765         * modules/raise (Status, Notice): Remove fields.
1766         (Files): Add m4/raise.m4.
1767         (Depends-on): Add signal, msvc-inval.
1768         (configure.ac): Use the common idioms.
1769         (Maintainer): Add me.
1770         * tests/test-signal-c++.cc: Check the signature of raise.
1771         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1772
1773 2011-09-23  Bruno Haible  <bruno@clisp.org>
1774
1775         pipe2: Fix compilation on pre-C99 compilers.
1776         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1777
1778 2011-09-23  Bruno Haible  <bruno@clisp.org>
1779
1780         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1781         * lib/msvc-nothrow.h: New file.
1782         * lib/msvc-nothrow.c: New file.
1783         * m4/msvc-nothrow.m4: New file.
1784         * modules/msvc-nothrow: New file.
1785         * lib/dup2.c: Include msvc-nothrow.h.
1786         (rpl_dup2): No need to protect _get_osfhandle call here.
1787         * lib/accept4.c: Include msvc-nothrow.h.
1788         * lib/error.c: Likewise.
1789         * lib/fcntl.c: Likewise.
1790         * lib/lseek.c: Likewise.
1791         * lib/nonblocking.c: Likewise.
1792         * lib/poll.c: Likewise.
1793         * lib/read.c: Likewise.
1794         * lib/select.c: Likewise.
1795         * lib/sockets.h: Likewise.
1796         * lib/sockets.c: Likewise.
1797         * lib/stdio-read.c: Likewise.
1798         * lib/stdio-write.c: Likewise.
1799         * lib/write.c: Likewise.
1800         * lib/w32sock.h: Likewise.
1801         * lib/w32spawn.h: Likewise.
1802         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1803         * lib/fsync.c: Likewise.
1804         * lib/isapipe.c: Likewise.
1805         * modules/dup2 (Depends-on): Add msvc-nothrow.
1806         * modules/accept4 (Depends-on): Likewise.
1807         * modules/error (Depends-on): Likewise.
1808         * modules/fcntl (Depends-on): Likewise.
1809         * modules/lseek (Depends-on): Likewise.
1810         * modules/nonblocking (Depends-on): Likewise.
1811         * modules/poll (Depends-on): Likewise.
1812         * modules/read (Depends-on): Likewise.
1813         * modules/select (Depends-on): Likewise.
1814         * modules/sockets (Depends-on): Likewise.
1815         * modules/sigpipe (Depends-on): Likewise.
1816         * modules/write (Depends-on): Likewise.
1817         * modules/accept (Depends-on): Likewise.
1818         * modules/bind (Depends-on): Likewise.
1819         * modules/connect (Depends-on): Likewise.
1820         * modules/gethostname (Depends-on): Likewise.
1821         * modules/getpeername (Depends-on): Likewise.
1822         * modules/getsockname (Depends-on): Likewise.
1823         * modules/getsockopt (Depends-on): Likewise.
1824         * modules/ioctl (Depends-on): Likewise.
1825         * modules/listen (Depends-on): Likewise.
1826         * modules/recv (Depends-on): Likewise.
1827         * modules/recvfrom (Depends-on): Likewise.
1828         * modules/send (Depends-on): Likewise.
1829         * modules/sendto (Depends-on): Likewise.
1830         * modules/setsockopt (Depends-on): Likewise.
1831         * modules/shutdown (Depends-on): Likewise.
1832         * modules/socket (Depends-on): Likewise.
1833         * modules/execute (Depends-on): Likewise.
1834         * modules/spawn-pipe (Depends-on): Likewise.
1835         * modules/flock (Depends-on): Likewise.
1836         * modules/fsync (Depends-on): Likewise.
1837         * modules/isapipe (Depends-on): Likewise.
1838         * tests/test-cloexec.c: Include msvc-nothrow.h.
1839         * tests/test-dup-safer.c: Likewise.
1840         * tests/test-dup2.c: Likewise.
1841         * tests/test-dup3.c: Likewise.
1842         * tests/test-fcntl.c: Likewise.
1843         * tests/test-pipe.c: Likewise.
1844         * tests/test-pipe2.c: Likewise.
1845         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1846         * modules/unistd-safer-tests (Depends-on): Likewise.
1847         * modules/dup2-tests (Depends-on): Likewise.
1848         * modules/dup3-tests (Depends-on): Likewise.
1849         * modules/fcntl-tests (Depends-on): Likewise.
1850         * modules/pipe-posix-tests (Depends-on): Likewise.
1851         * modules/pipe2-tests (Depends-on): Likewise.
1852
1853 2011-09-23  Bruno Haible  <bruno@clisp.org>
1854
1855         dup2: Make code more maintainable.
1856         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1857         (rpl_dup2): Use it.
1858         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1859         * modules/dup2 (configure.ac): Invoke it.
1860         Reported by Paul Eggert.
1861
1862 2011-09-23  Bruno Haible  <bruno@clisp.org>
1863
1864         msvc-inval: Fix compilation error.
1865         * lib/msvc-inval.h: Include <excpt.h>.
1866
1867 2011-09-23  Bruno Haible  <bruno@clisp.org>
1868
1869         mkdir: Tweak for MSVC 9.
1870         * lib/sys_stat.in.h: Update comments.
1871         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1872
1873         Tests for module 'chdir'.
1874         * modules/chdir-tests: New file.
1875         * tests/test-chdir.c: New file.
1876
1877         New module 'chdir'.
1878         * modules/chdir: New file.
1879         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1880         (chdir): New declaration.
1881         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1882         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1883         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1884         * tests/test-unistd-c++.cc: Check signature of chdir.
1885         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1886         * modules/chdir-long (Depends-on): Add chdir.
1887         * modules/fchdir (Depends-on): Likewise.
1888         * modules/rename (Depends-on): Likewise.
1889         * modules/savewd (Depends-on): Likewise.
1890
1891         rmdir: Support for mingw, MSVC 9.
1892         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1893         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1894
1895         getcwd: Tweak for MSVC 9.
1896         * lib/unistd.in.h: Update comments.
1897         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1898
1899 2011-09-22  Bruno Haible  <bruno@clisp.org>
1900
1901         strerror_r-posix: Avoid a link error on MSVC.
1902         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1903         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1904
1905 2011-09-22  Bruno Haible  <bruno@clisp.org>
1906
1907         select: Avoid link errors on MSVC.
1908         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1909         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1910         * modules/pselect (Link): Likewise.
1911         * NEWS: Mention the change.
1912         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1913         test-select-stdin against $(LIB_SELECT).
1914         * modules/pselect-tests (Makefile.am): Link test-pselect against
1915         $(LIB_SELECT).
1916
1917 2011-09-22  Bruno Haible  <bruno@clisp.org>
1918
1919         select: Avoid compilation error on MSVC.
1920         * lib/select.c: Don't include <stdbool.h>.
1921
1922 2011-09-21  Bruno Haible  <bruno@clisp.org>
1923
1924         Consolidate all uses of PATH_MAX in *.m4 files.
1925         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1926         macros.
1927         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1928         and gl_PATHMAX_SNIPPET.
1929         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1930         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1931         * modules/chdir-long (Files): Add m4/pathmax.m4.
1932         * modules/getcwd (Files): Likewise.
1933
1934 2011-09-21  Bruno Haible  <bruno@clisp.org>
1935
1936         ftruncate: Un-deprecate, concentrate on Win32 support.
1937         * modules/ftruncate (Status, Notice): Remove sections.
1938         (Depends-on): Add largefile.
1939         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1940         non-mingw platforms.
1941         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1942         include <io.h>.
1943         * modules/perror-tests (Depends-on): Add ftruncate.
1944         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1945         'ftruncate' module.
1946
1947 2011-09-21  Bruno Haible  <bruno@clisp.org>
1948
1949         Add dependencies to new dirent related modules.
1950         * modules/opendir (Depends-on): Add closedir.
1951         * modules/getcwd (Depends-on): Add opendir, closedir.
1952         * modules/dirent-safer-tests (Depends-on): Likewise.
1953         * modules/fdopendir-tests (Depends-on): Likewise.
1954         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1955         * modules/renameat-tests (Depends-on): Likewise.
1956
1957 2011-09-21  Bruno Haible  <bruno@clisp.org>
1958
1959         opendir: Avoid compilation error on mingw.
1960         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1961         * modules/opendir (Depends-on): Add unistd.
1962
1963 2011-09-21  Bruno Haible  <bruno@clisp.org>
1964
1965         ftruncate tests: Avoid a test failure on mingw.
1966         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1967
1968 2011-09-21  Bruno Haible  <bruno@clisp.org>
1969
1970         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1971         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1972         native Windows.
1973
1974 2011-09-21  Bruno Haible  <bruno@clisp.org>
1975
1976         New module 'fdopen'.
1977         * lib/stdio.in.h (fdopen): New declaration.
1978         * lib/fdopen.c: New file.
1979         * m4/fdopen.m4: New file.
1980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1981         REPLACE_FDOPEN.
1982         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1983         REPLACE_FDOPEN.
1984         * modules/fdopen: New file.
1985         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1986         * tests/test-stdio-c++.cc: Check signature of fdopen.
1987         * doc/posix-functions/fdopen.texi: Mention the new module.
1988
1989 2011-09-21  Bruno Haible  <bruno@clisp.org>
1990
1991         unlockpt tests: Avoid test failure on NetBSD 5.1.
1992         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1993         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1994
1995 2011-09-21  Bruno Haible  <bruno@clisp.org>
1996
1997         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1998         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1999         * tests/test-getlogin_r.c (main): Likewise.
2000
2001 2011-09-20  Bruno Haible  <bruno@clisp.org>
2002
2003         time tests: Don't require pid_t.
2004         * doc/posix-headers/time.texi: Revert last change.
2005         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2006         * tests/test-time.c: Comment out the check for pid_t.
2007
2008 2011-09-20  Bruno Haible  <bruno@clisp.org>
2009
2010         fsync tests: Avoid a test failure on mingw.
2011         * tests/test-fsync.c (main): Allow a failure with EIO.
2012
2013 2011-09-20  Bruno Haible  <bruno@clisp.org>
2014
2015         euidaccess: Update comments.
2016         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2017
2018 2011-09-20  Bruno Haible  <bruno@clisp.org>
2019
2020         Ensure EBADF returns for socket functions on mingw.
2021         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2022         descriptor is invalid.
2023         * lib/bind.c (rpl_bind): Likewise.
2024         * lib/connect.c (rpl_connect): Likewise.
2025         * lib/getpeername.c (rpl_getpeername): Likewise.
2026         * lib/getsockname.c (rpl_getsockname): Likewise.
2027         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2028         * lib/listen.c (rpl_listen): Likewise.
2029         * lib/recv.c (rpl_recv): Likewise.
2030         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2031         * lib/send.c (rpl_send): Likewise.
2032         * lib/sendto.c (rpl_sendto): Likewise.
2033         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2034         * lib/shutdown.c (rpl_shutdown): Likewise.
2035
2036 2011-09-20  Bruno Haible  <bruno@clisp.org>
2037
2038         select tests: EBADF tests.
2039         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2040         test_bad_fd): New functions.
2041         (test_function): Invoke also test_bad_fd.
2042
2043 2011-09-20  Bruno Haible  <bruno@clisp.org>
2044
2045         Tests for module 'posix_spawn_file_actions_addopen.
2046         * modules/posix_spawn_file_actions_addopen-tests: New file.
2047         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2048
2049         Tests for module 'posix_spawn_file_actions_adddup2'.
2050         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2051         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2052
2053         Tests for module 'posix_spawn_file_actions_addclose'.
2054         * modules/posix_spawn_file_actions_addclose-tests: New file.
2055         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2056
2057 2011-09-20  Bruno Haible  <bruno@clisp.org>
2058
2059         Tests for module 'unlockpt'.
2060         * modules/unlockpt-tests: New file.
2061         * tests/test-unlockpt.c: New file.
2062         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2063
2064         Tests for module 'grantpt'.
2065         * modules/grantpt-tests: New file.
2066         * tests/test-grantpt.c: New file.
2067         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2068
2069 2011-09-20  Bruno Haible  <bruno@clisp.org>
2070
2071         freopen tests: EBADF tests.
2072         * tests/test-freopen.c: Include errno.h, unistd.h.
2073         (main): Add tests for EBADF, commented out for the moment.
2074
2075         fclose tests: EBADF tests.
2076         * tests/test-fclose.c (main): Add tests for EBADF.
2077
2078         fflush tests: EBADF tests.
2079         * tests/test-fflush.c: Include errno.h, macros.h.
2080         (main): Add tests for EBADF.
2081
2082         ftello tests: EBADF tests.
2083         * tests/test-ftello4.sh: New file.
2084         * tests/test-ftello4.c: New file.
2085         * modules/ftello-tests (Files): Add them.
2086         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2087
2088         fseeko tests: EBADF tests.
2089         * tests/test-fseeko4.sh: New file.
2090         * tests/test-fseeko4.c: New file.
2091         * modules/fseeko-tests (Files): Add them.
2092         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2093
2094         Tests for function fputc().
2095         * modules/fputc-tests: New file.
2096         * tests/test-fputc.c: New file.
2097         * modules/stdio-tests (Depends-on): Add fputc-tests.
2098
2099         Tests for function fgetc().
2100         * modules/fgetc-tests: New file.
2101         * tests/test-fgetc.c: New file.
2102         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2103
2104         Tests for function fdopen().
2105         * modules/fdopen-tests: New file.
2106         * tests/test-fdopen.c: New file.
2107         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2108
2109         Tests for module 'vdprintf'.
2110         * modules/vdprintf-tests: New file.
2111         * tests/test-vdprintf.c: New file.
2112
2113         Tests for module 'dprintf'.
2114         * modules/dprintf-tests: New file.
2115         * tests/test-dprintf.c: New file.
2116
2117 2011-09-20  Bruno Haible  <bruno@clisp.org>
2118
2119         Tests for module 'ioctl'.
2120         * modules/ioctl-tests: New file.
2121         * tests/test-ioctl.c: New file.
2122
2123 2011-09-20  Bruno Haible  <bruno@clisp.org>
2124
2125         fcntl tests: EBADF tests.
2126         * tests/test-fcntl.c (main): Add more tests for EBADF.
2127
2128 2011-09-20  Bruno Haible  <bruno@clisp.org>
2129
2130         utimensat tests: EBADF tests.
2131         * tests/test-utimensat.c (main): Add tests for EBADF.
2132
2133         renameat tests: EBADF tests.
2134         * tests/test-renameat.c (main): Add tests for EBADF.
2135
2136         mkfifoat tests: EBADF tests.
2137         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2138
2139         readlinkat tests: EBADF tests.
2140         * tests/test-readlinkat.c (main): Add tests for EBADF.
2141
2142         symlinkat tests: EBADF tests.
2143         * tests/test-symlinkat.c (main): Add tests for EBADF.
2144
2145         linkat tests: EBADF tests.
2146         * tests/test-linkat.c (main): Add tests for EBADF.
2147
2148         Tests for module 'faccessat'.
2149         * modules/faccessat-tests: New file.
2150         * tests/test-faccessat.c: New file.
2151
2152         fdopendir tests: EBADF tests.
2153         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2154
2155         openat tests: EBADF tests.
2156         * tests/test-fchownat.c (main): Add tests for EBADF.
2157         * tests/test-fstatat.c (main): Likewise.
2158         * tests/test-mkdirat.c (main): Likewise.
2159         * tests/test-openat.c (main): Likewise.
2160         * tests/test-unlinkat.c (main): Likewise.
2161         * tests/test-fchmodat.c: New file.
2162         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2163         (Makefile.am): Also run 'test-fchmodat'.
2164
2165 2011-09-20  Bruno Haible  <bruno@clisp.org>
2166
2167         utimens, futimens, fdutimensat tests: EBADF tests.
2168         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2169
2170         Tests for function fstat().
2171         * modules/fstat-tests: New file.
2172         * tests/test-fstat.c: New file.
2173         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2174
2175 2011-09-20  Bruno Haible  <bruno@clisp.org>
2176
2177         test-ttyname_r tests: EBADF tests.
2178         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2179
2180         Tests for module 'isatty'.
2181         * modules/isatty-tests: New file.
2182         * tests/test-isatty.c: New file.
2183
2184         Tests for module 'write'.
2185         * modules/write-tests: New file.
2186         * tests/test-write.c: New file.
2187
2188         Tests for module 'read'.
2189         * modules/read-tests: New file.
2190         * tests/test-read.c: New file.
2191
2192         pwrite tests: EBADF tests.
2193         * tests/test-pwrite.c (main): Add tests for EBADF.
2194
2195         pread tests: EBADF tests.
2196         * tests/test-pread.c (main): Add tests for EBADF.
2197
2198         lseek tests: EBADF tests.
2199         * tests/test-lseek.c (main): Add more tests for EBADF.
2200
2201         Tests for module 'ftruncate'.
2202         * modules/ftruncate-tests: New file.
2203         * tests/test-ftruncate.sh: New file.
2204         * tests/test-ftruncate.c: New file.
2205
2206         fsync tests: EBADF tests.
2207         * tests/test-fsync.c (main): Add more tests for EBADF.
2208
2209         fdatasync tests: EBADF tests.
2210         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2211
2212         Tests for module 'fchown'.
2213         * modules/fchown-tests: New file.
2214         * tests/test-fchown.c: New file.
2215
2216         Tests for module 'fchmod'.
2217         * modules/fchmod-tests: New file.
2218         * tests/test-fchmod.c: New file.
2219
2220         fchdir tests: EBADF tests.
2221         * tests/test-fchdir.c (main): Add more tests for EBADF.
2222
2223         dup2 tests: EBADF tests.
2224         * tests/test-dup2.c (main): Add more tests for EBADF.
2225
2226         Tests for module 'dup'.
2227         * modules/dup-tests: New file.
2228         * tests/test-dup.c: New file.
2229
2230         Tests for module 'close'.
2231         * modules/close-tests: New file.
2232         * tests/test-close.c: New file.
2233
2234 2011-09-20  Bruno Haible  <bruno@clisp.org>
2235
2236         Tests for module 'shutdown'.
2237         * modules/shutdown-tests: New file.
2238         * tests/test-shutdown.c: New file.
2239
2240         Tests for module 'setsockopt'.
2241         * modules/setsockopt-tests: New file.
2242         * tests/test-setsockopt.c: New file.
2243
2244         Tests for module 'sendto'.
2245         * modules/sendto-tests: New file.
2246         * tests/test-sendto.c: New file.
2247
2248         Tests for module 'send'.
2249         * modules/send-tests: New file.
2250         * tests/test-send.c: New file.
2251
2252         Tests for module 'recvfrom'.
2253         * modules/recvfrom-tests: New file.
2254         * tests/test-recvfrom.c: New file.
2255
2256         Tests for module 'recv'.
2257         * modules/recv-tests: New file.
2258         * tests/test-recv.c: New file.
2259
2260         Tests for module 'listen'.
2261         * modules/listen-tests: New file.
2262         * tests/test-listen.c: New file.
2263
2264         Tests for module 'getsockopt'.
2265         * modules/getsockopt-tests: New file.
2266         * tests/test-getsockopt.c: New file.
2267
2268         Tests for module 'getsockname'.
2269         * modules/getsockname-tests: New file.
2270         * tests/test-getsockname.c: New file.
2271
2272         Tests for module 'getpeername'.
2273         * modules/getpeername-tests: New file.
2274         * tests/test-getpeername.c: New file.
2275
2276         Tests for module 'connect'.
2277         * modules/connect-tests: New file.
2278         * tests/test-connect.c: New file.
2279
2280         Tests for module 'bind'.
2281         * modules/bind-tests: New file.
2282         * tests/test-bind.c: New file.
2283
2284         accept4 tests: Fix for native Windows.
2285         * tests/test-accept4.c: Include sockets.h.
2286         (main): Invoke gl_sockets_startup.
2287         * modules/accept4-tests (Depends-on): Add sockets.
2288
2289         accept tests: Fix for native Windows.
2290         * tests/test-accept.c: Include sockets.h.
2291         (main): Invoke gl_sockets_startup.
2292         * modules/accept-tests (Depends-on): Add sockets.
2293
2294 2011-09-19  Bruno Haible  <bruno@clisp.org>
2295
2296         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2297         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2298         do...while(0).
2299         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2300         Suggested by Paul Eggert.
2301
2302 2011-09-19  Bruno Haible  <bruno@clisp.org>
2303
2304         sched: Ensure pid_t is defined.
2305         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2306         not define pid_t.
2307         * lib/sched.in.h: Include <sys/types.h>.
2308         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2310
2311 2011-09-19  Bruno Haible  <bruno@clisp.org>
2312
2313         msvc-inval: Ensure the entire expansion is a single statement.
2314         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2315         of braces.
2316
2317 2011-09-19  Jim Meyering  <meyering@redhat.com>
2318
2319         tests: use printf, not echo in init.sh's warn_ function
2320         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2321         misbehave when given strings containing a backslash or starting
2322         with e.g., -n.  James Youngman suggested setting IFS.
2323
2324 2011-09-19  Eric Blake  <eblake@redhat.com>
2325
2326         futimens: enhance test
2327         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2328         closed non-negative fd.
2329
2330         date: accept 'hence' as opposite of 'ago'
2331         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2332         * tests/test-parse-datetime.c (main): Enhance test.
2333         Suggested by Jesse Wilson.
2334
2335 2011-09-19  Jim Meyering  <meyering@redhat.com>
2336
2337         getcwd: don't fail in a deep directory on a system without openat
2338         Before this change, getcwd would fail when called from a directory
2339         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2340         the non-openat implementation used "..", "../..", "../../..", etc.
2341         to access ancestor directories.  With too many, that string would
2342         be longer than PATH_MAX.
2343         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2344         using gnulib's openat replacement.
2345         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2346         we're using the replacement function.
2347
2348 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2349
2350         maint.mk: avoid warnings from perl about missing files
2351         * top/maint.mk (def_sym_regex): Ignore files listed in
2352         $(gl_other_headers_) that do not exist, say because a project
2353         does not use a corresponding module.
2354
2355 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2356
2357         stat: use pathmax.h only if needed
2358         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2359         This is better for Emacs, which does not have a mingw port and
2360         therefore can avoid the pathmax module.
2361
2362         utimens: remove dependency on dup2
2363         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2364         to work around the Linux kernel bug.
2365         * modules/utimens (Depends-on): Remove dup2.
2366
2367 2011-09-18  Bruno Haible  <bruno@clisp.org>
2368
2369         inet_ntop, inet_pton: Look for it also in libresolv.
2370         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2371         libnsl, search for it in libresolv.
2372         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2373         Needed on Solaris 7.
2374
2375 2011-09-18  Bruno Haible  <bruno@clisp.org>
2376
2377         accept, accept4 tests: Avoid link error on Solaris.
2378         * modules/accept-tests (Makefile.am): Link test-accept against
2379         $(LIBSOCKET).
2380         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2381         $(LIBSOCKET).
2382
2383         accept4: Avoid link error on Solaris.
2384         * modules/accept4 (Link): New section.
2385
2386         socket functions: Avoid link errors on Solaris.
2387         * modules/accept (Depends-on): Add socketlib.
2388         (Link): New section.
2389         * modules/bind (Depends-on): Add socketlib.
2390         (Link): New section.
2391         * modules/connect (Depends-on): Add socketlib.
2392         (Link): New section.
2393         * modules/getpeername (Depends-on): Add socketlib.
2394         (Link): New section.
2395         * modules/getsockname (Depends-on): Add socketlib.
2396         (Link): New section.
2397         * modules/getsockopt (Depends-on): Add socketlib.
2398         (Link): New section.
2399         * modules/listen (Depends-on): Add socketlib.
2400         (Link): New section.
2401         * modules/recv (Depends-on): Add socketlib.
2402         (Link): New section.
2403         * modules/recvfrom (Depends-on): Add socketlib.
2404         (Link): New section.
2405         * modules/send (Depends-on): Add socketlib.
2406         (Link): New section.
2407         * modules/sendto (Depends-on): Add socketlib.
2408         (Link): New section.
2409         * modules/setsockopt (Depends-on): Add socketlib.
2410         (Link): New section.
2411         * modules/shutdown (Depends-on): Add socketlib.
2412         (Link): New section.
2413         * modules/socket (Depends-on): Add socketlib.
2414         (Link): New section.
2415
2416 2011-09-18  Bruno Haible  <bruno@clisp.org>
2417
2418         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2419         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2420         than 5 seconds.
2421         * modules/ptsname-tests (configure.ac): Test for alarm.
2422
2423 2011-09-18  Bruno Haible  <bruno@clisp.org>
2424
2425         posix_spawn_file_actions_add*: Fix module dependencies.
2426         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2427         posix_spawn_file_actions_init.
2428         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2429         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2430
2431 2011-09-18  Bruno Haible  <bruno@clisp.org>
2432
2433         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2434         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2435         * tests/test-renameat.c (main): Likewise.
2436
2437 2011-09-18  Bruno Haible  <bruno@clisp.org>
2438
2439         Tests for module 'accept4'.
2440         * modules/accept4-tests: New file.
2441         * tests/test-accept4.c: New file.
2442
2443 2011-09-18  Bruno Haible  <bruno@clisp.org>
2444
2445         Tests for module 'accept'.
2446         * modules/accept-tests: New file.
2447         * tests/test-accept.c: New file.
2448
2449 2011-09-18  Bruno Haible  <bruno@clisp.org>
2450
2451         dup2: Support for MSVC.
2452         * lib/dup2.c: Include msvc-inval.h.
2453         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2454         _get_osfhandle calls.
2455         * modules/dup2 (Depends-on): Add msvc-inval.
2456         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2457
2458         New module 'msvc-inval'.
2459         * lib/msvc-inval.h: New file.
2460         * lib/msvc-inval.c: New file.
2461         * m4/msvc-inval.m4: New file.
2462         * modules/msvc-inval: New file.
2463
2464 2011-09-17  Bruno Haible  <bruno@clisp.org>
2465
2466         Tests for module 'pclose'.
2467         * modules/pclose-tests: New file.
2468
2469         New module 'pclose'.
2470         * lib/stdio.in.h (pclose): New declaration.
2471         * lib/pclose.c: New file.
2472         * m4/pclose.m4: New file.
2473         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2474         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2475         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2476         * modules/pclose: New file.
2477         * modules/popen-tests (Depends-on): Add pclose.
2478         * modules/popen-safer-tests (Depends-on): Likewise.
2479         * doc/posix-functions/pclose.texi: Mention the new module.
2480
2481 2011-09-17  Bruno Haible  <bruno@clisp.org>
2482
2483         popen: Support for MSVC.
2484         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2485         * lib/popen.c (popen): Provide alternate definition for native Windows.
2486         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2488         * modules/popen (Depends-on, configure.ac): Update condition.
2489         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2490         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2491         fixed.
2492
2493 2011-09-17  Bruno Haible  <bruno@clisp.org>
2494
2495         isnanl, isnand, isnanf: Work around MSVC bug.
2496         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2497
2498 2011-09-17  Bruno Haible  <bruno@clisp.org>
2499
2500         sys_socket tests: Fix recent mistake.
2501         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2502
2503 2011-09-17  Bruno Haible  <bruno@clisp.org>
2504
2505         putenv: Support for MSVC.
2506         * modules/putenv (Depends-on): Add environ.
2507         * lib/putenv.c (environ): Disable declaration.
2508         * lib/unistd.in.h: Update comment.
2509
2510 2011-09-17  Bruno Haible  <bruno@clisp.org>
2511
2512         math: Avoid macro redefinition warnings on MSVC.
2513         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2514         Undefine before redefining.
2515
2516 2011-09-17  Bruno Haible  <bruno@clisp.org>
2517
2518         doc: Mention functions which are declared as macros.
2519         * doc/posix-functions/*[fl].texi: Mention that some functions are
2520         defined as macros with arguments only.
2521
2522 2011-09-17  Bruno Haible  <bruno@clisp.org>
2523
2524         Add dependencies to new dirent related modules.
2525         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2526         * modules/fts (Depends-on): Likewise.
2527         * modules/glob (Depends-on): Likewise.
2528         * modules/savedir (Depends-on): Likewise.
2529         * modules/scandir (Depends-on): Likewise.
2530         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2531         * modules/fdopendir (Depends-on): Add opendir.
2532
2533 2011-09-17  Bruno Haible  <bruno@clisp.org>
2534
2535         inet_pton: Support for MSVC on Windows Vista or newer.
2536         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2537         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2538         HAVE_DECL_INET_PTON is defined.
2539         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2540         On platforms with <winsock2.h>, test whether inet_pton is declared in
2541         <ws2tcpip.h>. If so, arrange to replace it.
2542         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2543         REPLACE_INET_PTON.
2544         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2545         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2546         (Depends-on, configure.ac): Update condition.
2547         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2548
2549 2011-09-17  Bruno Haible  <bruno@clisp.org>
2550
2551         inet_ntop: Support for MSVC on Windows Vista or newer.
2552         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2553         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2554         HAVE_DECL_INET_NTOP is defined.
2555         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2556         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2557         <ws2tcpip.h>. If so, arrange to replace it.
2558         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2559         REPLACE_INET_NTOP.
2560         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2561         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2562         (Depends-on, configure.ac): Update condition.
2563         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2564
2565 2011-09-16  Eric Blake  <eblake@redhat.com>
2566
2567         test-fsync: yet another enhancement
2568         * tests/test-fsync.c (main): Also test behavior on read-only text
2569         file.
2570
2571 2011-09-16  Bruno Haible  <bruno@clisp.org>
2572
2573         Enhance fsync, fdatasync tests.
2574         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2575         * tests/test-fdatasync.c (main): Likewise.
2576
2577 2011-09-16  Bruno Haible  <bruno@clisp.org>
2578
2579         Support for MSVC compiler: Ensure mode_t gets defined.
2580         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2581         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2582         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2583         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2584         * tests/test-fcntl-h.c: Check that mode_t is defined.
2585         * tests/test-sys_stat.c: Likewise.
2586         * tests/test-sys_types.c: Likewise.
2587         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2588         * doc/posix-headers/sys_stat.texi: Likewise.
2589         * doc/posix-headers/sys_types.texi: Likewise.
2590
2591 2011-09-16  Bruno Haible  <bruno@clisp.org>
2592
2593         sys_stat: Support for MSVC.
2594         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2595         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2596         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2597         MSVC.
2598
2599 2011-09-16  Bruno Haible  <bruno@clisp.org>
2600
2601         Support for MSVC compiler: Ensure off_t gets defined.
2602         * lib/unistd.in.h: Include <sys/types.h>.
2603         * tests/test-fcntl-h.c: Check that off_t is defined.
2604         * tests/test-sys_stat.c: Likewise.
2605         * tests/test-sys_types.c: Likewise.
2606
2607 2011-09-16  Eric Blake  <eblake@redhat.com>
2608
2609         fdatasync: port to Solaris
2610         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2611         * modules/fdatasync (Link): Document it.
2612         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2613
2614         fdatasync: port to MacOS X 10.7
2615         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2616         declared.
2617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2618         * modules/unistd (Makefile.am): Substitute it.
2619         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2620         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2621
2622         fdatasync: minor improvements
2623         * modules/fdatasync (Depends-on): Add condition for fsync.
2624         * lib/fdatasync.c (fdatasync): Add comment.
2625         * tests/test-unistd-c++.cc: Test fdatasync.
2626
2627         unistd: update refs to newer POSIX
2628         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2629         Suggested by Bruno Haible.
2630
2631         fdatasync: new module
2632         * modules/fsync (Description): Document difference to fdatasync.
2633         * modules/fdatasync: New module.
2634         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2635         * lib/fdatasync.c (fdatasync): Likewise.
2636         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2637         defaults.
2638         * modules/unistd (Makefile.am): Set witnesses.
2639         * lib/unistd.in.h (fdatasync): Declare.
2640         * MODULES.html.sh: Document it.
2641         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2642         * modules/fdatasync-tests: New test.
2643         * tests/test-fdatasync.c: Likewise.
2644
2645 2011-09-16  Eric Blake  <eblake@redhat.com>
2646
2647         test-fsync: enhance tests
2648         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2649         * tests/test-fsync.c (main): Enhance test.
2650
2651 2011-09-15  Bruno Haible  <bruno@clisp.org>
2652
2653         Support for MSVC compiler: Ensure ssize_t gets defined.
2654         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2655         * doc/posix-headers/stdio.texi: Likewise.
2656         * modules/stdio (Depends-on): Add ssize_t.
2657         * modules/sys_socket (Depends-on): Likewise.
2658         * modules/sys_types (Depends-on): Likewise.
2659         * modules/sys_uio (Depends-on): Likewise.
2660         * modules/unistd (Depends-on): Likewise.
2661         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2662         * tests/test-sys_types.c: Check that ssize_t is defined.
2663
2664 2011-09-14  Bruno Haible  <bruno@clisp.org>
2665
2666         Avoid using #, the m4 comment starter character, near brackets.
2667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2668         delimiter character in sed expressions.
2669         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2670         Suggested by Eric Blake.
2671
2672         Properly quote AC_CHECK_DECLS' 4th argument.
2673         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2674         argument.
2675         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2676         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2677         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2678         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2679         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2680         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2681         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2682         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2683         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2684         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2685         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2686         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2687         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2688         * m4/isinf.m4 (gl_ISINF): Likewise.
2689         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2690         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2691         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2692         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2693         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2695         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2696         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2697         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2698         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2699         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2700         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2702         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2704         Reported by Eric Blake.
2705
2706         Properly quote AC_CHECK_DECL's 4th argument.
2707         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2708         argument.
2709         * m4/argp.m4 (gl_ARGP): Likewise.
2710         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2711         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2712         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2713         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2714         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2715         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2716         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2717         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2718         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2719         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2720         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2721         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2722         Reported by Eric Blake.
2723
2724 2011-09-14  Eric Blake  <eblake@redhat.com>
2725
2726         opendir: avoid compile warning
2727         * lib/opendir.c (includes): Always include errno.h.
2728         Reported by Tatsuro MATSUOKA.
2729
2730 2011-09-14  Jim Meyering  <meyering@redhat.com>
2731
2732         maint.mk: sc_tight_scope: propagate failure from sub-make
2733         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2734         Reported by Martin von Gagern.
2735
2736 2011-09-13  Bruno Haible  <bruno@clisp.org>
2737
2738         tempname: Support for MSVC.
2739         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2740         MSVC.
2741         * modules/tempname (Depends-on): Add fcntl-h.
2742
2743 2011-09-13  Bruno Haible  <bruno@clisp.org>
2744
2745         sys_time: Support for MSVC.
2746         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2747         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2748         include <winsock2.h>.
2749         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2750         function declarations that collide with POSIX.
2751         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2752         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2753
2754 2011-09-13  Bruno Haible  <bruno@clisp.org>
2755
2756         stat: Support for MSVC.
2757         * lib/stat.c: Include pathmax.h.
2758         * modules/stat (Depends-on): Add pathmax.
2759
2760         pathmax: Support for native Windows.
2761         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2762
2763 2011-09-12  Bruno Haible  <bruno@clisp.org>
2764
2765         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2766         * lib/dirent.in.h (struct dirent): New type.
2767         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2768         DT_WHT): New macros.
2769         (DIR): New type.
2770         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2771         (readdir, rewinddir): New declarations.
2772         * lib/dirent-private.h: New file.
2773         * lib/opendir.c: New file.
2774         * lib/readdir.c: New file.
2775         * lib/rewinddir.c: New file.
2776         * lib/closedir.c: New file.
2777         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2778         * m4/opendir.m4: New file.
2779         * m4/readdir.m4: New file.
2780         * m4/rewinddir.m4: New file.
2781         * m4/closedir.m4: New file.
2782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2783         REPLACE_CLOSEDIR here.
2784         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2785         readdir, rewinddir are declared.
2786         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2787         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2788         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2789         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2790         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2791         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2792         * modules/opendir: New file.
2793         * modules/readdir: New file.
2794         * modules/rewinddir: New file.
2795         * modules/closedir: New file.
2796         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2797         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2798         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2799         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2800         * NEWS: Mention the 'fchdir' change.
2801
2802 2011-09-11  Bruno Haible  <bruno@clisp.org>
2803
2804         asm-underscore.m4: Support for MSVC.
2805         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2806         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2807
2808 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2809
2810         Doc about crypt functions.
2811         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2812         needing for _GNU_SOURCE to get crypt.
2813         * doc/posix-functions/encrypt.texi: Likewise.
2814         * doc/posix-functions/setkey.texi: Likewise.
2815
2816 2011-09-11  Bruno Haible  <bruno@clisp.org>
2817
2818         doc: Update regarding MSVC 9.
2819         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2820         tested".
2821         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2822         * doc/posix-headers/*.texi: Likewise.
2823         * doc/pastposix-functions/*.texi: Likewise.
2824         * doc/glibc-functions/*.texi: Likewise.
2825         * doc/glibc-headers/*.texi: Likewise.
2826
2827 2011-09-11  Bruno Haible  <bruno@clisp.org>
2828
2829         unistd et al.: Don't assume <unistd.h> exists.
2830         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2831         does not exist.
2832         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2833         exist. But include <stdlib.h>.
2834         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2835         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2836         symlink() does not exist.
2837         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2838         include <io.h> instead.
2839         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2840         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2841         include <direct.h> instead.
2842         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2843         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2844         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2845         <io.h> instead.
2846         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2847         correctly if the system does not have hard links.
2848         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2849         <direct.h> instead.
2850         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2851         it when looking for function declarations.
2852         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2853         <direct.h> and <io.h> instead.
2854         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2855
2856 2011-09-11  Bruno Haible  <bruno@clisp.org>
2857
2858         strcase: Support for MSVC.
2859         * modules/strcase (Status, Notice): Remove obsoletion mark.
2860         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2861         * doc/posix-functions/strncasecmp.texi: Likewise.
2862
2863         strings: Don't assume <strings.h> exists.
2864         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2865         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2866         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2867         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2868
2869 2011-09-11  Bruno Haible  <bruno@clisp.org>
2870
2871         dirent: Don't assume <dirent.h> exists.
2872         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2873         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2874         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2875         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2876
2877 2011-09-11  Bruno Haible  <bruno@clisp.org>
2878
2879         Fix wint_t on MSVC.
2880         * lib/wchar.in.h (wint_t): On MSVC, override it.
2881         * lib/wctype.in.h (wint_t): Likewise.
2882         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2883         MSVC.
2884         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2885         * doc/posix-headers/wctype.texi: Likewise.
2886
2887 2011-09-11  Bruno Haible  <bruno@clisp.org>
2888
2889         sys_types: Fix typo.
2890         * lib/sys_types.in.h: Fix typo in comment.
2891         Reported by Paul Eggert.
2892
2893         Support for MSVC compiler: Ensure size_t gets defined.
2894         * modules/strings (Depends-on): Add 'sys_types'.
2895         * modules/sys_uio (Depends-on): Likewise.
2896         * lib/sys_uio.in.h: Update comment.
2897
2898         C++ tests for module 'sys_types'.
2899         * modules/sys_types-c++-tests: New file.
2900         * tests/test-sys_types-c++.cc: New file.
2901
2902         Tests for module 'sys_types'.
2903         * modules/sys_types-tests: New file.
2904         * tests/test-sys_types.c: New file.
2905
2906         New module 'sys_types'.
2907         * lib/sys_types.in.h: New file.
2908         * m4/sys_types_h.m4: New file.
2909         * modules/sys_types: New file.
2910         * doc/posix-headers/sys_types.texi: Mention the new module and the
2911         size_t problem on MSVC 9.
2912
2913 2011-09-11  Bruno Haible  <bruno@clisp.org>
2914
2915         Support for MSVC compiler: Avoid division by a literal 0.
2916         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2917         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2918         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2919         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2920         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2921         * tests/infinity.h: New file.
2922         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2923         on MSVC.
2924         * tests/test-ceilf1.c: Include infinity.h.
2925         (main): Use Infinityf.
2926         * tests/test-ceil1.c: Include infinity.h.
2927         (main): Use Infinityd.
2928         * tests/test-ceill.c: Include infinity.h.
2929         (main): Use Infinityl.
2930         * tests/test-dprintf-posix.c: Include infinity.h.
2931         (test_function): Use Infinityd.
2932         * tests/test-floorf1.c: Include infinity.h.
2933         (main): Use Infinityf.
2934         * tests/test-floor1.c: Include infinity.h.
2935         (main): Use Infinityd.
2936         * tests/test-floorl.c: Include infinity.h.
2937         (main): Use Infinityl.
2938         * tests/test-fprintf-posix.c: Include infinity.h.
2939         (test_function): Use Infinityd.
2940         * tests/test-frexp.c: Include infinity.h.
2941         (main): Use Infinityd.
2942         * tests/test-frexpl.c: Include infinity.h.
2943         (main): Use Infinityl.
2944         * tests/test-isfinite.c: Include infinity.h.
2945         (test_isfinitef): Use Infinityf.
2946         (test_isfinited): Use Infinityd.
2947         (test_isfinitel): Use Infinityl.
2948         * tests/test-isinf.c: Include infinity.h.
2949         (test_isinff): Use Infinityf.
2950         (test_isinfd): Use Infinityd.
2951         (test_isinfl): Use Infinityl.
2952         * tests/test-isnan.c: Include infinity.h.
2953         (test_float): Use Infinityf.
2954         (test_double): Use Infinityd.
2955         (test_long_double): Use Infinityl.
2956         * tests/test-isnanf.h: Include infinity.h.
2957         (main): Use Infinityf.
2958         * tests/test-isnand.h: Include infinity.h.
2959         (main): Use Infinityd.
2960         * tests/test-isnanl.h: Include infinity.h.
2961         (main): Use Infinityl.
2962         * tests/test-ldexpl.c: Include infinity.h.
2963         (main): Use Infinityl.
2964         * tests/test-printf-posix.h: Include infinity.h.
2965         (test_function): Use Infinityd.
2966         * tests/test-roundf1.c: Include infinity.h.
2967         (main): Use Infinityf.
2968         * tests/test-round1.c: Include infinity.h.
2969         (main): Use Infinityd.
2970         * tests/test-roundl.c: Include infinity.h.
2971         (main): Use Infinityl.
2972         * tests/test-signbit.c: Include infinity.h.
2973         (test_signbitf): Use Infinityf.
2974         (test_signbitd): Use Infinityd.
2975         (test_signbitl): Use Infinityl.
2976         * tests/test-snprintf-posix.h: Include infinity.h.
2977         (test_function): Use Infinityd, Infinityl.
2978         * tests/test-sprintf-posix.h: Include infinity.h.
2979         (test_function): Use Infinityd, Infinityl.
2980         * tests/test-truncf1.c: Include infinity.h.
2981         (main): Use Infinityf.
2982         * tests/test-trunc1.c: Include infinity.h.
2983         (main): Use Infinityd.
2984         * tests/test-truncl.c: Include infinity.h.
2985         (main): Use Infinityl.
2986         * tests/test-vasnprintf-posix.c: Include infinity.h.
2987         (test_function): Use Infinityd, Infinityl.
2988         * tests/test-vasprintf-posix.c: Include infinity.h.
2989         (test_function): Use Infinityd, Infinityl.
2990         * modules/ceilf-tests (Files): Add tests/infinity.h.
2991         * modules/ceil-tests (Files): Likewise.
2992         * modules/ceill-tests (Files): Likewise.
2993         * modules/dprintf-posix-tests (Files): Likewise.
2994         * modules/floorf-tests (Files): Likewise.
2995         * modules/floor-tests (Files): Likewise.
2996         * modules/floorl-tests (Files): Likewise.
2997         * modules/fprintf-posix-tests (Files): Likewise.
2998         * modules/frexp-tests (Files): Likewise.
2999         * modules/frexp-nolibm-tests (Files): Likewise.
3000         * modules/frexpl-tests (Files): Likewise.
3001         * modules/frexpl-nolibm-tests (Files): Likewise.
3002         * modules/isfinite-tests (Files): Likewise.
3003         * modules/isinf-tests (Files): Likewise.
3004         * modules/isnan-tests (Files): Likewise.
3005         * modules/isnanf-tests (Files): Likewise.
3006         * modules/isnanf-nolibm-tests (Files): Likewise.
3007         * modules/isnand-tests (Files): Likewise.
3008         * modules/isnand-nolibm-tests (Files): Likewise.
3009         * modules/isnanl-tests (Files): Likewise.
3010         * modules/isnanl-nolibm-tests (Files): Likewise.
3011         * modules/ldexpl-tests (Files): Likewise.
3012         * modules/printf-posix-tests (Files): Likewise.
3013         * modules/roundf-tests (Files): Likewise.
3014         * modules/round-tests (Files): Likewise.
3015         * modules/roundl-tests (Files): Likewise.
3016         * modules/signbit-tests (Files): Likewise.
3017         * modules/snprintf-posix-tests (Files): Likewise.
3018         * modules/sprintf-posix-tests (Files): Likewise.
3019         * modules/truncf-tests (Files): Likewise.
3020         * modules/trunc-tests (Files): Likewise.
3021         * modules/truncl-tests (Files): Likewise.
3022         * modules/vasnprintf-posix-tests (Files): Likewise.
3023         * modules/vasprintf-posix-tests (Files): Likewise.
3024         * modules/vdprintf-posix-tests (Files): Likewise.
3025         * modules/vfprintf-posix-tests (Files): Likewise.
3026         * modules/vprintf-posix-tests (Files): Likewise.
3027         * modules/vsnprintf-posix-tests (Files): Likewise.
3028         * modules/vsprintf-posix-tests (Files): Likewise.
3029         * modules/xprintf-posix-tests (Files): Likewise.
3030
3031 2011-09-11  Bruno Haible  <bruno@clisp.org>
3032
3033         Ensure pid_t gets defined.
3034         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3035         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3036         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3037         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3038         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3039         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3040         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3041         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3042         * tests/test-fcntl-h.c: Check that pid_t is defined.
3043         * tests/test-sched.c: Likewise.
3044         * tests/test-termios.c: Likewise.
3045         * tests/test-time.c: Likewise.
3046         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3047         * doc/posix-headers/signal.texi: Likewise.
3048         * doc/posix-headers/sys_types.texi: Likewise.
3049         * doc/posix-headers/time.texi: Likewise.
3050
3051 2011-09-11  Bruno Haible  <bruno@clisp.org>
3052
3053         acl: Fix compilation on Solaris 10 (older version).
3054         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3055         of ACE_EVERYONE.
3056         * lib/set-mode-acl.c (qset_acl): Likewise.
3057         Reported by Christian Jullien <eligis@orange.fr>.
3058
3059 2011-09-10  Bruno Haible  <bruno@clisp.org>
3060
3061         iconv, unsetenv: Add support for MSVC compiler.
3062         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3063         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3064
3065 2011-09-10  Bruno Haible  <bruno@clisp.org>
3066
3067         *printf: Add support for MSVC compiler.
3068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3069         handles the exception caused by the %n directive. When cross-compiling,
3070         guess no on native Windows.
3071         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3072         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3073         emulate it through vsnprintf.
3074         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3075         * doc/posix-functions/dprintf.texi: Update documentation regarding
3076         MSVC 9.
3077         * doc/posix-functions/fprintf.texi: Likewise.
3078         * doc/posix-functions/printf.texi: Likewise.
3079         * doc/posix-functions/snprintf.texi: Likewise.
3080         * doc/posix-functions/sprintf.texi: Likewise.
3081         * doc/posix-functions/swprintf.texi: Likewise.
3082         * doc/posix-functions/vdprintf.texi: Likewise.
3083         * doc/posix-functions/vfprintf.texi: Likewise.
3084         * doc/posix-functions/vprintf.texi: Likewise.
3085         * doc/posix-functions/vsnprintf.texi: Likewise.
3086         * doc/posix-functions/vsprintf.texi: Likewise.
3087         * doc/glibc-functions/asprintf.texi: Likewise.
3088         * doc/glibc-functions/obstack_printf.texi: Likewise.
3089         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3090         * doc/glibc-functions/vasprintf.texi: Likewise.
3091
3092 2011-09-10  Bruno Haible  <bruno@clisp.org>
3093
3094         nocrash: Add support for native Windows.
3095         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3096
3097 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3098             Bruno Haible  <bruno@clisp.org>
3099
3100         absolute-header, include-next: Add support for MSVC compiler.
3101         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3102         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3103         directory separator in #line directives.
3104         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3105         recognize also backslash as directory separator in #line directives.
3106
3107 2011-09-08  Jim Meyering  <meyering@redhat.com>
3108
3109         maint.mk: mark the post-release commit log with "maint: " prefix
3110         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3111         one-line commit-log summary.
3112
3113 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3114             Bruno Haible  <bruno@clisp.org>
3115
3116         Doc about crypt functions.
3117         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3118         systems.
3119         * doc/posix-functions/encrypt.texi: Likewise.
3120         * doc/posix-functions/setkey.texi: Likewise.
3121
3122 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3123
3124         * lib/gc.h: Fix copyright header.
3125
3126 2011-09-07  Bruno Haible  <bruno@clisp.org>
3127
3128         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3129         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3130         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3131
3132 2011-09-07  Bruno Haible  <bruno@clisp.org>
3133
3134         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3135         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3136         * lib/freopen.c: Likewise.
3137         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3138         * lib/lstat.c: Likewise.
3139         * lib/stat.c: Likewise.
3140         * lib/open.c: Use different syntax for include of <fcntl.h>.
3141         * lib/openat.c: Include fcntl.h again, explicitly.
3142
3143 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3144
3145         parse-datetime: document the newly accepted format
3146         * doc/parse-datetime.texi (Combined date and time of day items):
3147         New section.
3148
3149 2011-09-06  Bruno Haible  <bruno@clisp.org>
3150
3151         acl: Fix a test failure on newer Solaris 10 with ZFS.
3152         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3153         ENOSYS as no ACL.
3154         Reported by Jim Meyering.
3155
3156 2011-09-06  Bruno Haible  <bruno@clisp.org>
3157
3158         acl: Update for AIX >= 5.3 with NFS.
3159         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3160         ENOSYS as no ACL.
3161
3162         acl: Fix a test failure on AIX >= 5.3 with NFS.
3163         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3164         as no ACL.
3165
3166 2011-09-06  Bruno Haible  <bruno@clisp.org>
3167
3168         acl: Fix a test failure on IRIX 6.5 with NFS.
3169         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3170         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3171         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3172         * lib/copy-acl.c (qcopy_acl): Likewise.
3173
3174 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3175
3176         openat: port to AIX 7.1 with large files
3177         AIX 7.1 does a "#define openat open64at" if large files are in use,
3178         so we can't simply #undef openat.  Use the orig_openat trick (similar
3179         to orig_open in lib/open.c) to work around the problem.  Problem
3180         reported by Kevin Brott for GNU tar, in the thread containing
3181         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3182         * lib/openat.c (__need_system_fcntl_h): Define first.
3183         Include <fcntl.h> and <sys/types.h> before undefining.
3184         (orig_openat) [HAVE_OPENAT]: New inline function.
3185         (openat) [HAVE_OPENAT]: Do not undef.
3186         (rpl_openat): Use orig_openat, not openat.
3187
3188 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3189             Bruno Haible  <bruno@clisp.org>
3190
3191         acl: Avoid errors on NonStop Kernel.
3192         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3193         ENOTSUP errors.
3194
3195 2011-09-05  Bruno Haible  <bruno@clisp.org>
3196
3197         acl: Clean up Solaris code.
3198         * lib/acl-internal.h: Remove no-op #if.
3199         * lib/file-has-acl.c: Likewise.
3200         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3201         * lib/copy-acl.c (qcopy_acl): Likewise.
3202
3203 2011-09-05  Bruno Haible  <bruno@clisp.org>
3204
3205         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3206         binaries built on the original Solaris 10.
3207         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3208         trivial.
3209
3210 2011-09-05  Bruno Haible  <bruno@clisp.org>
3211
3212         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3213         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3214         10.
3215         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3216         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3217         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3218         instead of acl_get, facl_get, acl_set, facl_set.
3219
3220 2011-09-05  Bruno Haible  <bruno@clisp.org>
3221
3222         copy-file: Try unit tests on more file systems.
3223         * tests/test-copy-file-1.sh: New file.
3224         * tests/test-copy-file-2.sh: New file.
3225         * modules/copy-file-tests (Files): Add them.
3226         (Makefile.am): Add them to TESTS.
3227
3228         acl: Try unit tests on more file systems.
3229         * tests/test-file-has-acl-1.sh: New file.
3230         * tests/test-file-has-acl-2.sh: New file.
3231         * tests/test-set-mode-acl-1.sh: New file.
3232         * tests/test-set-mode-acl-2.sh: New file.
3233         * tests/test-copy-acl-1.sh: New file.
3234         * tests/test-copy-acl-2.sh: New file.
3235         * modules/acl-tests (Files): Add them.
3236         (Makefile.am): Add them to TESTS.
3237
3238 2011-09-04  Bruno Haible  <bruno@clisp.org>
3239
3240         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3241         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3242         10.
3243         (OLD_ALLOW, OLD_DENY): New macros.
3244         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3245         ACE_ACCESS_ALLOWED_ACE_TYPE.
3246         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3247         ACE_ACCESS_DENIED_ACE_TYPE.
3248         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3249         (NEW_ACE_EXECUTE): Fix value.
3250         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3251         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3252         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3253         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3254         NEW_ACE_SYNCHRONIZE): New macros.
3255         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3256         instead of acl_fromtext, acl_set, facl_set.
3257         Fixes a coreutils/tests/cp/perm failure.
3258
3259 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3260
3261         openat: test for fstatat (..., 0) bug
3262         Further testing with tar suggests that fstatat (..., 0)
3263         does not work in general, on AIX 7.1; see
3264         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3265         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3266         replacement fstatat (which is what older AIX releases were using
3267         anyway).
3268         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3269         use is now changed to orig_fstatat.  This was probably the right
3270         thing to do anyway.
3271         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3272         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3273         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3274         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3275         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3276         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3277         if the bug is found.
3278
3279         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3280         This tests for another fstatat bug on AIX 7.1:
3281         fstatat (AT_FDCWD, ..., 0) does not work.  See
3282         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3283         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3284         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3285         (rpl_fstatat): Adjust so that it works around either (or both)
3286         bugs if present.
3287         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3288
3289 2011-09-03  Karl Berry  <karl@gnu.org>
3290
3291         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3292         in index entries.
3293
3294 2011-09-02  Bruno Haible  <bruno@clisp.org>
3295
3296         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3297         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3298         values of AR, ARFLAGS, RANLIB.
3299         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3300
3301 2011-09-02  Bruno Haible  <bruno@clisp.org>
3302
3303         Find 'ar' program that fits with --host argument.
3304         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3305
3306 2011-09-02  Bruno Haible  <bruno@clisp.org>
3307
3308         tests: init.sh: Support any non-GNU diff.
3309         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3310         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3311         Solaris 8.
3312
3313 2011-09-02  Bruno Haible  <bruno@clisp.org>
3314
3315         tests: init.sh: work also with any non-GNU diff that supports -u
3316         * tests/init.sh: Relax check for diff -u support.
3317         Rather than checking for GNU diff via --version, simply check
3318         for support for -u itself.  Useful at least on OpenBSD 4.9,
3319         AIX 7.1, IRIX 6.5, and Solaris 10.
3320
3321 2011-09-01  Bruno Haible  <bruno@clisp.org>
3322
3323         strtoimax, strtoumax: Document problem on HP-UX 11.
3324         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3325         * doc/posix-functions/strtoumax.texi: Likewise.
3326
3327 2011-09-01  Bruno Haible  <bruno@clisp.org>
3328
3329         strtoumax: Avoid link error on OSF/1 with DTK cc.
3330         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3331         defined as a function.
3332         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3333         strtoumax is defined, not whether it is declared.
3334
3335 2011-09-01  Bruno Haible  <bruno@clisp.org>
3336
3337         strtoimax: Avoid link error on OSF/1 with DTK cc.
3338         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3339         defined as a function.
3340         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3341         strtoimax is defined, not whether it is declared.
3342
3343 2011-09-01  Bruno Haible  <bruno@clisp.org>
3344
3345         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3346         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3347         as a function.
3348         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3349         whether it is declared.
3350
3351 2011-09-01  Bruno Haible  <bruno@clisp.org>
3352
3353         imaxabs: Avoid link error on OSF/1 with DTK cc.
3354         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3355         as a function.
3356         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3357         whether it is declared.
3358
3359 2011-09-01  Bruno Haible  <bruno@clisp.org>
3360
3361         Tests for module 'strtoumax'.
3362         * modules/strtoumax-tests: New file.
3363         * tests/test-strtoumax.c: New file.
3364
3365         Tests for module 'strtoimax'.
3366         * modules/strtoimax-tests: New file.
3367         * tests/test-strtoimax.c: New file.
3368
3369         Tests for module 'imaxdiv'.
3370         * modules/imaxdiv-tests: New file.
3371         * tests/test-imaxdiv.c: New file.
3372
3373         Tests for module 'imaxabs'.
3374         * modules/imaxabs-tests: New file.
3375         * tests/test-imaxabs.c: New file.
3376
3377 2011-09-01  Bruno Haible  <bruno@clisp.org>
3378
3379         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3380         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3381         pthread_create.
3382
3383 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3384
3385         openat: work around AIX 7.1 fstatat issue
3386         This should fix the problem that was not properly fixed
3387         in the previous change, dated 2011-08-30.
3388         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3389         __need_system_stat_h defined.
3390         (orig_fstatat) [HAVE_FSTATAT]: New function.
3391         (rpl_fstatat): Go back to the old way of doing things,
3392         except call orig_fstatat instead of fstatat.
3393         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3394         Remove unnecessary check whether fstatat fills in st_size etc.
3395
3396 2011-09-01  Bruno Haible  <bruno@clisp.org>
3397
3398         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3399         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3400         just include the system's header.
3401
3402 2011-08-31  Jim Meyering  <meyering@redhat.com>
3403
3404         tests: avoid spurious assertion failure in test-float.c on ppc64
3405         * tests/test-float.c (test_long_double): Comment out an assertion,
3406         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3407         with gcc-4.4.4.
3408
3409         maint: indent with spaces, not TABs
3410         I need to get in the habit of running gnulib's "make check".
3411         Both of these would have been caught.
3412         * m4/largefile.m4: Indent with spaces, not TABs.
3413         * lib/parse-datetime.y (iso_8601_time): Likewise.
3414         Spotted by Pádraig Brady.
3415
3416         test-parse-datetime.c: accommodate a relatively strict gcc warning
3417         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3418         to avoid a warning from gcc's -Werror=missing-declarations.
3419         Insert a few spaces-before-funcall-parenthesis.
3420
3421 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3422
3423         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3424         The parser now accepts ISO 8601 date-time strings with "T" as the
3425         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3426         with a space between the date and time strings.  Now it also parses
3427         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3428         variants like "2004-02-29T16:21:42.333-07:00"
3429         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3430         of day representation using the 'T' separator character.
3431         * doc/parse-datetime.texi (General date syntax): replace use of
3432         deprecated --iso-8601 option with --rfc-3339 in example of date
3433         command output formats that can be parsed.
3434         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3435         lib/parse-datetime.y.
3436         (gmt_offset): New function.
3437         (main): Add additional test cases to validate ISO8601 extended
3438         date and time of day parsing.
3439
3440 2011-08-31  Bruno Haible  <bruno@clisp.org>
3441
3442         freopen: Documentation.
3443         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3444         name.
3445         Reported by Claudio Bley <claudio.bley@gmail.com>.
3446
3447 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3448
3449         freopen: Don't crash if the filename argument is NULL.
3450         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3451         NULL.
3452
3453 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3454
3455         openat: work around AIX 7.1 fstatat bug
3456         Problem reported by Kevin Brott for GNU tar, in the thread containing
3457         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3458         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3459         FSTATAT_ST_SIZE_ETC_BROKEN.
3460         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3461         rpl_fstatat.
3462         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3463         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3464         AC_CHECK_FUNCS_ONCE for fstatat.
3465         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3466         fchmodat, mkdirat, openat and unlinkat.
3467
3468 2011-08-30  Bruno Haible  <bruno@clisp.org>
3469
3470         Avoid endless recursions if config.h includes some header files.
3471         * lib/fopen.c (__need_FILE): Define already before including config.h.
3472         * lib/freopen.c (__need_FILE): Likewise.
3473         * lib/open.c (__need_system_fcntl_h): Likewise.
3474         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3475         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3476         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3477
3478 2011-08-25  Karl Berry  <karl@gnu.org>
3479
3480         * config/srclist.txt (ylwrap): new try.
3481         * build-aux/ylwrap: new file.
3482
3483 2011-08-23  Bruno Haible  <bruno@clisp.org>
3484
3485         tmpdir: Use a good default directory on native Windows.
3486         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3487         (P_tmpdir): Default to _P_tmpdir on native Windows.
3488         (path_search): On native Windows, try the value returned by GetTempPath
3489         before trying P_tmpdir.
3490         * modules/tmpdir (Depends-on): Add pathmax.
3491         Suggested by John Darrington <john@darrington.wattle.id.au>.
3492
3493 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3494
3495         doc: fix typo in README-release
3496         * top/README-release: Capitalize first word of a sentence.
3497
3498 2011-08-19  Jim Meyering  <meyering@redhat.com>
3499
3500         fts: do not exhaust memory when processing million-entry directories
3501         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3502         directory would require about 256*N bytes of memory.  Thus, it was
3503         easy to construct a directory too large to be processed by any of
3504         those tools.  With this change, fts' maximum memory utilization is
3505         now limited to around 30MB.
3506         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3507         (fts_read): When we've processed the final entry (i.e., when
3508         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3509         using the parent entry to read any remaining entries.  Dispatch
3510         depending on what fts_build returns:
3511         - NULL+stop, aka failure: stop
3512         - NULL otherwise: move up in the dir hierarchy
3513         - non-NULL: handle this new entry
3514         (fts_build): Declare and use new local, continue_readdir.
3515         Prepare to be called from fts_read, when the entries
3516         from a partially-read directory have just been exhausted.
3517         In that case, we'll skip the opendir and instead use the parent's
3518         fts_dirp and derive dir_fd from that.
3519         Finally, in the readdir loop, if we read max_entries entries,
3520         exit the loop ensuring *not* to call closedir.  This is required
3521         so that fts_dirp can be reused on a subsequent call.
3522         Prompted by Ben England's report of memory exhaustion in find
3523         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3524
3525         maint: fts: move decl of `dp' down into while loop; split a long line
3526         * lib/fts.c (fts_build): No semantic change.
3527
3528         fts: add/use new struct member, fts_dirp
3529         We are about to use this to manage any directory with
3530         too many entries to read all of them into memory at once.
3531         To do that, we'll need to save the DIR* pointer in each
3532         affected FTSENT struct.
3533         * lib/fts_.h: Include <dirent.h>.
3534         (struct FTSENT) [fts_dirp]: New member.
3535         * lib/fts.c (closedir_and_clear): Define.
3536         Use it in place of closedir so that we are sure to
3537         clear the new fts_dirp member when done with it.
3538         (fts_alloc): Initialize the new member.
3539         (fts_lfree): Free, if needed.
3540
3541         maint: fts: give __opendir2 a new parameter and rename
3542         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3543         than surreptitiously using sole caller's "dir_fd".
3544         (fts_opendir): Rename from __opendir2.
3545
3546         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3547         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3548
3549         maint: fts.c: correct off-by-one indentation
3550         * lib/fts.c (fts_build): Correct indentation, change style
3551         of a couple of block comments, and bracing style.
3552
3553         maint: fts.c: move __opendir2 #define "up" out of function body
3554         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3555
3556         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3557         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3558         out for a long time and besides was useful only on BSD systems.
3559
3560 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3561
3562         regex: port to Stratus OpenVOS
3563         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3564         define to empty, rather than attempting nonportable optimizations.
3565         Problem reported by Paul Green in:
3566         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3567         and fix suggested by Eric Blake in:
3568         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3569
3570 2011-08-17  Eric Blake  <eblake@redhat.com>
3571
3572         getcwd: fix test failures on mingw
3573         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3574         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3575         test if long directory cannot be created, and allow mingw errno.
3576
3577         getcwd-lgpl: fix m4 to match relaxed test for BSD
3578         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3579         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3580         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3581         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3582         signature problem.
3583
3584         getcwd: fix compilation on mingw64
3585         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3586         getcwd.
3587         Reported by Marc-André Lureau.
3588
3589         pipe2: silence compiler warning
3590         * lib/pipe2.c (pipe2): Hide label if it is not used.
3591
3592 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3593
3594         relocatable-prog: fix link error
3595         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3596         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3597         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3598         into modules/relocatable-lib without noticing that
3599         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3600         also needs to build relocatable.c.
3601
3602 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3603
3604         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3605         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3606         shell code: it contained a 'break' that was not in a loop.
3607         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3608         via a shell-language loop; this may have been true in old Autoconf
3609         versions, but it's not true in Autoconf 2.68.  I found this bug
3610         when testing coreutils git on Solaris 8, whose shell complains
3611         about the syntax error.
3612
3613 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3614
3615         * lib/base64.c: Fix comment to reference RFC 4648.
3616         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3617         <gvtulder@gmail.com>.
3618
3619 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3620
3621         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3622
3623         po/Makefile.in.in: fix make -q problem
3624         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3625         rule, since there's no file named 'check-macro-version' and its
3626         use as a file breaks make -q.
3627         (all): Don't depend on check-macro-version.
3628         (CHECK_MACRO_VERSION): New macro.
3629         (stamp-po): Use it.
3630
3631         configmake: fix make -q problem
3632         * modules/configmake (configmake.h): Update configmake.h's time stamp
3633         even if the file does not change.  Otherwise, 'make -q' fails.
3634         Problem reported by Simon Josefsson in
3635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3636
3637 2011-08-11  Jim Meyering  <meyering@redhat.com>
3638
3639         git-version-gen: correct the advice in a comment
3640         * build-aux/git-version-gen: Correct comment.
3641         Don't recommend to list .tarball-version in .gitignore.
3642
3643 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3644
3645         base64: fix off-by-one buffer size bug
3646         Problem and (trivial) fix reported by Gijs van Tulder in
3647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3648         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3649         * tests/test-base64.c (main): Catch the bug.
3650
3651 2011-08-10  Eric Blake  <eblake@redhat.com>
3652
3653         closein: correct comments
3654         * lib/closein.c (close_stdin): Improve comments.
3655
3656 2011-08-09  Bruno Haible  <bruno@clisp.org>
3657
3658         More tests for 'fseeko'.
3659         * tests/test-fseeko3.c: New file, from Eric Blake.
3660         * tests/test-fseeko3.sh: New file.
3661         * modules/fseeko-tests (Files): Add them.
3662         (TESTS): Add test-fseeko3.sh.
3663         (check_PROGRAMS): Add test-fseeko3.
3664
3665 2011-08-09  Eric Blake  <eblake@redhat.com>
3666
3667         fseeko: remove unneeded hack
3668         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3669
3670         fseeko: fix bug on glibc
3671         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3672         Reported by John W. Eaton.
3673
3674 2011-08-08  Bruno Haible  <bruno@clisp.org>
3675
3676         unictype/base: Fix interoperability with preinstalled libunistring.
3677         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3678         Reported by Simon Josefsson.
3679
3680 2011-08-08  Bruno Haible  <bruno@clisp.org>
3681
3682         iswblank: Detect declaration correctly.
3683         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3684         AC_CHECK_DECLS invocation.
3685
3686 2011-08-08  Bruno Haible  <bruno@clisp.org>
3687
3688         tcgetsid: Detect declaration correctly.
3689         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3690         AC_CHECK_DECLS invocation.
3691         Reported by Simon Josefsson.
3692
3693 2011-08-08  Eric Blake  <eblake@redhat.com>
3694
3695         largefile: fix typo that regressed large file support
3696         * modules/largefile (configure.ac-early): Fix section name.
3697
3698 2011-08-06  Karl Berry  <karl@gnu.org>
3699
3700         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3701         a separate module.
3702
3703 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3704
3705         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3706         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3707         get prototype for free.
3708
3709 2011-08-04  Bruno Haible  <bruno@clisp.org>
3710
3711         Tests for module 'pathmax'.
3712         * modules/pathmax-tests: New file.
3713         * tests/test-pathmax.c: New file.
3714
3715         canonicalize-lgpl: Support larger filenames on the Hurd.
3716         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3717         Reported by Paul Eggert.
3718
3719         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3720         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3721         * lib/chdir-long.h: Include pathmax.h.
3722         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3723         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3724         (PATH_MAX): Remove code that is done by pathmax.h.
3725         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3726         * lib/tmpfile.c: Add a comment.
3727         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3728         * modules/chdir-long (Depends-on): Add pathmax.
3729         * modules/getcwd (Depends-on): Add pathmax.
3730         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3731         is not defined.
3732         * doc/posix-headers/limits.texi: Mention the pathmax module.
3733         * NEWS: Mention the change.
3734
3735 2011-08-02  Bruno Haible  <bruno@clisp.org>
3736
3737         pthread_sigmask: Actually use results of gl_THREADLIB.
3738         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3739         gl_THREADLIB, not gl_[]THREADLIB.
3740         Reported by Eric Blake.
3741
3742 2011-08-02  Jim Meyering  <meyering@redhat.com>
3743
3744         maint.mk: relax the default _gl_TS_function_match regexp
3745         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3746         space between function name and "(" in an "extern" declaration.
3747         That would fail to match a decl with no space there: extern void foo();
3748
3749 2011-07-31  Iain Nicol  <iain@thenicols.net>
3750
3751         git-version-gen: document that EXTRA_DIST must include .version
3752         * build-aux/git-version-gen: In the how-to-use comment, document
3753         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3754         will fail when run from an unpacked distribution tarball.
3755
3756 2011-08-01  Bruno Haible  <bruno@clisp.org>
3757
3758         wctype-h: Fix last change.
3759         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3760         REPLACE_TOWLOWER to 0.
3761         Reported by Sam Steingold <sds@gnu.org>.
3762
3763 2011-07-31  Bruno Haible  <bruno@clisp.org>
3764
3765         frexpl: Update autoconf test.
3766         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3767         according to changes of 2011-06-20.
3768
3769 2011-07-31  Bruno Haible  <bruno@clisp.org>
3770
3771         sys_utsname: Add support for Minix.
3772         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3773         <sys/utsname.h>.
3774         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3775         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3776
3777 2011-07-31  Bruno Haible  <bruno@clisp.org>
3778
3779         strings: Add support for Minix.
3780         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3781         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3782         * doc/posix-headers/strings.texi: Document the Minix problem.
3783
3784 2011-07-31  Bruno Haible  <bruno@clisp.org>
3785
3786         wctype-h: Add support for Minix.
3787         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3788         REPLACE_TOWLOWER.
3789         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3790         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3791         REPLACE_ISWCNTRL.
3792
3793 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3794
3795         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3796         This is a performance improvement for 64-bit hosts: it causes the
3797         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3798
3799 2011-07-31  Bruno Haible  <bruno@clisp.org>
3800
3801         stdioext: Add support for Minix.
3802         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3803         * lib/fpurge.c (fpurge): Likewise.
3804         * lib/freadahead.c (freadahead): Likewise.
3805         * lib/freadable.c (freadable): Likewise.
3806         * lib/freading.c (freading): Likewise.
3807         * lib/freadptr.c (freadptr): Likewise.
3808         * lib/freadseek.c (freadptrinc): Likewise.
3809         * lib/fseeko.c (rpl_fseeko): Likewise.
3810         * lib/fseterr.c (fseterr): Likewise.
3811         * lib/fwritable.c (fwritable): Likewise.
3812         * lib/fwriting.c (fwriting): Likewise.
3813         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3814         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3815
3816 2011-07-31  Bruno Haible  <bruno@clisp.org>
3817
3818         errno: Port to Minix.
3819         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3820         ECONNABORTED are defined.
3821         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3822         GNULIB_defined_ECONNABORTED): New macros.
3823         * lib/strerror-override.h (strerror_override): Test also
3824         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3825         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3826         ECONNABORTED.
3827         * doc/posix-headers/errno.texi: Mention the Minix problem.
3828
3829 2011-07-31  Bruno Haible  <bruno@clisp.org>
3830
3831         Work around declaration collisions on Minix.
3832         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3833         defined, set REPLACE_MBSINIT.
3834         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3835         defined, set REPLACE_MBRTOWC.
3836         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3837         set REPLACE_MBRLEN.
3838         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3839         defined, set REPLACE_MBSRTOWCS.
3840         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3841         defined, set REPLACE_WCRTOMB.
3842         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3843         defined, set REPLACE_WCSRTOMBS.
3844
3845 2011-07-31  Bruno Haible  <bruno@clisp.org>
3846
3847         Add support for Minix with ACK compiler.
3848         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3849         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3850         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3851
3852 2011-07-31  Bruno Haible  <bruno@clisp.org>
3853
3854         Documentation about Minix.
3855         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3856         * doc/glibc-headers/*.texi: Likewise.
3857         * doc/posix-functions/*.texi: Likewise.
3858         * doc/glibc-functions/*.texi: Likewise.
3859
3860 2011-07-31  Bruno Haible  <bruno@clisp.org>
3861
3862         snippet/warn-on-use: Fix indentation.
3863         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3864
3865 2011-07-25  Jim Meyering  <meyering@redhat.com>
3866
3867         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3868         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3869         commands.
3870
3871 2011-07-27  Jim Meyering  <meyering@redhat.com>
3872
3873         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3874         * top/maint.mk (gl_extract_significant_defines_): Now that
3875         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3876         gnulib/lib/signal.in.h, and now that we recommend to
3877         define-if-undefined those two symbols in application code,
3878         we must filter them out of the "significant" list.
3879         This avoids a "make syntax-check" failure in coreutils.
3880
3881 2011-07-26  Eric Blake  <eblake@redhat.com>
3882
3883         warnings: add comments about previous patch
3884         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3885         * m4/include_next.m4: Likewise.
3886         * m4/warn-on-use.m4: Likewise.
3887         * m4/warnings.m4: Likewise, and simplify use.
3888         Suggested by Stefano Lattarini.
3889
3890         include-next, warnings: support older autoconf
3891         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3892         AS_VAR_PUSHDEF in a way that works with older autoconf.
3893         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3894         Reported by Daniel P. Berrange.
3895
3896 2011-07-25  Bruno Haible  <bruno@clisp.org>
3897
3898         fseek, ftell: Fix doc.
3899         * doc/posix-functions/fseek.texi: Reword statement about
3900         AC_SYS_LARGEFILE.
3901         * doc/posix-functions/ftell.texi: Likewise.
3902
3903 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3904             Bruno Haible  <bruno@clisp.org>
3905
3906         Add dependencies to the 'largefile' module.
3907         * modules/fopen (Depends-on): Add 'largefile'.
3908         * modules/freopen (Depends-on): Likewise.
3909         * modules/fseeko (Depends-on): Likewise.
3910         * modules/ftello (Depends-on): Likewise.
3911         * modules/glob (Depends-on): Likewise.
3912         * modules/lseek (Depends-on): Likewise.
3913         * modules/lstat (Depends-on): Likewise.
3914         * modules/mkostemp (Depends-on): Likewise.
3915         * modules/mkostemps (Depends-on): Likewise.
3916         * modules/mkstemp (Depends-on): Likewise.
3917         * modules/mkstemps (Depends-on): Likewise.
3918         * modules/open (Depends-on): Likewise.
3919         * modules/openat (Depends-on): Likewise.
3920         * modules/pread (Depends-on): Likewise.
3921         * modules/pwrite (Depends-on): Likewise.
3922         * modules/scandir (Depends-on): Likewise.
3923         * modules/stat (Depends-on): Likewise.
3924         * modules/tmpfile (Depends-on): Likewise.
3925         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3926         since the containing module now depends on the largefile module.
3927         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3928         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3929         off_t is fixed by gnulib.
3930         * doc/posix-functions/freopen.texi: Likewise.
3931         * doc/posix-functions/fseeko.texi: Likewise.
3932         * doc/posix-functions/fstatat.texi: Likewise.
3933         * doc/posix-functions/ftello.texi: Likewise.
3934         * doc/posix-functions/glob.texi: Likewise.
3935         * doc/posix-functions/lseek.texi: Likewise.
3936         * doc/posix-functions/lstat.texi: Likewise.
3937         * doc/posix-functions/mkstemp.texi: Likewise.
3938         * doc/posix-functions/open.texi: Likewise.
3939         * doc/posix-functions/openat.texi: Likewise.
3940         * doc/posix-functions/pread.texi: Likewise.
3941         * doc/posix-functions/pwrite.texi: Likewise.
3942         * doc/posix-functions/scandir.texi: Likewise.
3943         * doc/posix-functions/stat.texi: Likewise.
3944         * doc/posix-functions/tmpfile.texi: Likewise.
3945         * doc/glibc-functions/mkostemp.texi: Likewise.
3946         * doc/glibc-functions/mkostemps.texi: Likewise.
3947         * doc/glibc-functions/mkstemps.texi: Likewise.
3948
3949 2011-07-25  Bruno Haible  <bruno@clisp.org>
3950
3951         fcntl: Move AC_LIBOBJ invocation to module description.
3952         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3953         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3954
3955         fcntl: Remove call-in from fchdir.m4.
3956         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3958
3959         dup3: Remove potential call-in from fchdir.m4.
3960         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3962
3963         dup2: Move AC_LIBOBJ invocation to module description.
3964         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3965         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3966         Don't invoke AC_LIBOBJ.
3967         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3968
3969         dup2: Remove call-in from fchdir.m4.
3970         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3971         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3972
3973         fclose: Move AC_LIBOBJ invocation to module description.
3974         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3975         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3976         to 1.
3977         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3978
3979         fclose: Remove call-in from close.m4.
3980         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3981         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3982
3983         close: Move AC_LIBOBJ invocation to module description.
3984         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3985         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3986         1.
3987         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3988
3989         close: Remove call-in from fchdir.m4.
3990         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3992
3993         open: Move AC_LIBOBJ invocation to module description.
3994         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3995         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3996         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3997
3998         open: Remove call-in from fchdir.m4.
3999         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4001
4002         fchdir: Start to remove gl_REPLACE_* idiom.
4003         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4004         (gl_FUNC_FCHDIR): Invoke it.
4005
4006 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4007
4008         * lib/ftell.c (ftell): Comment out cast.
4009
4010         close: use gl_REPLACE_FCLOSE only if defined
4011         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4012         is defined.  The close module doesn't depend on the fclose module
4013         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4015         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4016
4017 2011-07-24  Jim Meyering  <meyering@redhat.com>
4018
4019         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4020         * tests/test-select.h (test_function): Declare as "static".
4021
4022 2011-07-24  Bruno Haible  <bruno@clisp.org>
4023
4024         doc: Mention the effects of AC_SYS_LARGEFILE.
4025         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4026         on this function.
4027         * doc/posix-functions/aio_error.texi: Likewise.
4028         * doc/posix-functions/aio_fsync.texi: Likewise.
4029         * doc/posix-functions/aio_read.texi: Likewise.
4030         * doc/posix-functions/aio_return.texi: Likewise.
4031         * doc/posix-functions/aio_suspend.texi: Likewise.
4032         * doc/posix-functions/aio_write.texi: Likewise.
4033         * doc/posix-functions/fgetpos.texi: Likewise.
4034         * doc/posix-functions/fopen.texi: Likewise.
4035         * doc/posix-functions/freopen.texi: Likewise.
4036         * doc/posix-functions/fsetpos.texi: Likewise.
4037         * doc/posix-functions/fstatvfs.texi: Likewise.
4038         * doc/posix-functions/ftruncate.texi: Likewise.
4039         * doc/posix-functions/ftw.texi: Likewise.
4040         * doc/posix-functions/getrlimit.texi: Likewise.
4041         * doc/posix-functions/glob.texi: Likewise.
4042         * doc/posix-functions/lio_listio.texi: Likewise.
4043         * doc/posix-functions/lockf.texi: Likewise.
4044         * doc/posix-functions/mkstemp.texi: Likewise.
4045         * doc/posix-functions/mmap.texi: Likewise.
4046         * doc/posix-functions/nftw.texi: Likewise.
4047         * doc/posix-functions/openat.texi: Likewise.
4048         * doc/posix-functions/opendir.texi: Likewise.
4049         * doc/posix-functions/posix_fadvise.texi: Likewise.
4050         * doc/posix-functions/posix_fallocate.texi: Likewise.
4051         * doc/posix-functions/pread.texi: Likewise.
4052         * doc/posix-functions/pwrite.texi: Likewise.
4053         * doc/posix-functions/readdir.texi: Likewise.
4054         * doc/posix-functions/readdir_r.texi: Likewise.
4055         * doc/posix-functions/rewinddir.texi: Likewise.
4056         * doc/posix-functions/scandir.texi: Likewise.
4057         * doc/posix-functions/seekdir.texi: Likewise.
4058         * doc/posix-functions/setrlimit.texi: Likewise.
4059         * doc/posix-functions/statvfs.texi: Likewise.
4060         * doc/posix-functions/telldir.texi: Likewise.
4061         * doc/posix-functions/tmpfile.texi: Likewise.
4062         * doc/posix-functions/truncate.texi: Likewise.
4063         * doc/glibc-functions/fallocate.texi: Likewise.
4064         * doc/glibc-functions/fstatfs.texi: Likewise.
4065         * doc/glibc-functions/fts_children.texi: Likewise.
4066         * doc/glibc-functions/fts_read.texi: Likewise.
4067         * doc/glibc-functions/getdirentries.texi: Likewise.
4068         * doc/glibc-functions/mkostemp.texi: Likewise.
4069         * doc/glibc-functions/mkostemps.texi: Likewise.
4070         * doc/glibc-functions/mkstemps.texi: Likewise.
4071         * doc/glibc-functions/preadv.texi: Likewise.
4072         * doc/glibc-functions/pwritev.texi: Likewise.
4073         * doc/glibc-functions/sendfile.texi: Likewise.
4074         * doc/glibc-functions/statfs.texi: Likewise.
4075
4076 2011-07-24  Bruno Haible  <bruno@clisp.org>
4077
4078         doc: Fix typo.
4079         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4080
4081 2011-07-24  Bruno Haible  <bruno@clisp.org>
4082
4083         doc: Mention fsusage.
4084         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4085
4086 2011-07-24  Bruno Haible  <bruno@clisp.org>
4087
4088         doc: Mention new glibc headers and functions.
4089         * doc/glibc-headers/gshadow.texi: New file.
4090         * doc/glibc-functions/endsgent.texi: New file.
4091         * doc/glibc-functions/fgetsgent.texi: New file.
4092         * doc/glibc-functions/fgetsgent_r.texi: New file.
4093         * doc/glibc-functions/getsgent.texi: New file.
4094         * doc/glibc-functions/getsgent_r.texi: New file.
4095         * doc/glibc-functions/getsgnam.texi: New file.
4096         * doc/glibc-functions/getsgnam_r.texi: New file.
4097         * doc/glibc-functions/putsgent.texi: New file.
4098         * doc/glibc-functions/setsgent.texi: New file.
4099         * doc/glibc-functions/sgetsgent.texi: New file.
4100         * doc/glibc-functions/sgetsgent_r.texi: New file.
4101         * doc/glibc-functions/malloc_info.texi: New file.
4102         * doc/glibc-functions/preadv.texi: New file.
4103         * doc/glibc-functions/pwritev.texi: New file.
4104         * doc/glibc-functions/register_printf_modifier.texi: New file.
4105         * doc/glibc-functions/register_printf_specifier.texi: New file.
4106         * doc/glibc-functions/register_printf_type.texi: New file.
4107         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4108         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4109         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4110         * doc/glibc-functions/pthread_getname_np.texi: New file.
4111         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4112         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4113         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4114         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4115         * doc/glibc-functions/pthread_setname_np.texi: New file.
4116         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4117         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4118         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4119         * doc/glibc-functions/qsort_r.texi: New file.
4120         * doc/glibc-functions/quick_exit.texi: New file.
4121         * doc/glibc-functions/syncfs.texi: New file.
4122         * doc/gnulib.texi: Include them.
4123         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4124         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4125         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4126         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4127         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4128         * doc/glibc-functions/execvpe.texi: Likewise.
4129
4130 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4131
4132         ftell: don't include <unistd.h>
4133         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4134         guaranteed to define off_t, and the ftell module depends on the
4135         stdio module.
4136
4137         ftell: do not assume wraparound signed arithmetic
4138         * lib/ftell.c: Include <limits.h>.
4139         (ftell): Don't assume wraparound signed arithmetic.
4140
4141 2011-07-24  Bruno Haible  <bruno@clisp.org>
4142
4143         close: No longer depend on module 'fclose'.
4144         * modules/close (Depends-on): Remove fclose.
4145         * NEWS: Mention the change.
4146         Suggested by Sam Steingold <sds@gnu.org>.
4147
4148 2011-07-24  Bruno Haible  <bruno@clisp.org>
4149
4150         fsusage: Enable large volume support on AIX >= 5.2.
4151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4152         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4153         instead of STAT_STATVFS.
4154         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4155
4156         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4157         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4158         f_blocks field only on MacOS X.
4159
4160         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4161         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4162         * modules/fsusage (Depends-on): Add largefile.
4163
4164 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4165
4166         * README: Modernize discussion of signed integers.
4167         Assuming overflow wraparound is no longer safe.
4168         Mention ones' complement and signed magnitude.
4169
4170 2011-07-22  Bruno Haible  <bruno@clisp.org>
4171
4172         select tests, pselect tests: Refactor.
4173         * tests/test-select.h: New file, extracted from tests/test-select.c.
4174         (select_fn): New type.
4175         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4176         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4177         test_pipe): Add my_select argument.
4178         (test_function): Renamed from main. Add my_select argument.
4179         * tests/test-select.c: Move most code to tests/test-select.h. Include
4180         test-select.h.
4181         * modules/select-tests (Files): Add tests/test-select.h.
4182         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4183         (my_select, main): New functions.
4184         * modules/pselect-tests (Files): Add tests/test-select.h,
4185         tests/macros.h, tests/signature.h.
4186         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4187         (configure.ac): Check for <sys/wait.h>.
4188
4189 2011-07-22  Bruno Haible  <bruno@clisp.org>
4190
4191         sys_select tests: Check the signature of FD_*.
4192         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4193         signature tests from here...
4194         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4195         here.
4196         * modules/sys_select-tests (Files): Add tests/signature.h.
4197
4198 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4199
4200         largefile: new module, replacing large-inode
4201         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4202         * MODULES.html.sh: Add largefile, remove large-inode.
4203         * modules/largefile, m4/largefile.m4: New files.
4204         * modules/large-inode, m4/large-inode.m4: Remove.
4205
4206         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4207         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4208         implementations that use only 32 bits to count blocks.
4209         On typical hosts with 1024-byte blocks, this fails with file
4210         systems as small as 4 TiB.  Problem reported by Herb Wartens
4211         <http://debbugs.gnu.org/9140> and this should also fix a similar
4212         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4213
4214         large-inode: New module
4215         * MODULES.html.sh: Add it.
4216         * modules/large-inode, m4/large-inode.m4: New files.
4217
4218         extensions: Enable extensions on MacOS X 10.5 and later.
4219         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4220
4221 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4222
4223         file-has-acl: use acl_extended_file_nofollow if available
4224         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4225         (acl_extended_file): New macro.
4226         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4227         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4228
4229 2011-07-21  Bruno Haible  <bruno@clisp.org>
4230
4231         Declare system functions in a way that works with C++.
4232         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4233         declare fdopendir as extern "C".
4234         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4235         declare frexpl as extern "C".
4236         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4237         declare gai_strerror as extern "C".
4238         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4239         programs, declare gai_strerror as extern "C".
4240         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4241         declare getlogin_r as extern "C".
4242         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4243         as extern "C".
4244         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4245         declare ldexpl as extern "C".
4246         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4247         as extern "C".
4248         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4249         program, declare getmntinfo as extern "C".
4250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4251         stpncpy as extern "C".
4252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4253         program, declare __xpg_strerror_r as extern "C".
4254         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4255         strndup as extern "C".
4256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4257         declare memset and bzero as extern "C".
4258         Reported by Sam Steingold <sds@gnu.org>.
4259
4260 2011-07-12  Jim Meyering  <meyering@redhat.com>
4261
4262         maint.mk: prohibit inclusion of "verify.h" without use
4263         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4264
4265 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4266
4267         timer-time: A new module to check for timer_settime()
4268         * m4/timer_time.m4: Check for the posix function.
4269         * modules/timer-time: Add the new module.
4270         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4271         Mention it.
4272
4273 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4274             Bruno Haible  <bruno@clisp.org>
4275
4276         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4277         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4278         not defined, assume POSIX threads and look for pthread_sigmask in
4279         $LIBS, without changing $CPPFLAGS.
4280
4281 2011-07-19  Bruno Haible  <bruno@clisp.org>
4282
4283         strstr: Update cross-compilation guess.
4284         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4285         CPUs, guess no, in view of glibc
4286         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4287         Suggested by Eric Blake. Reported by Reuben Thomas.
4288
4289 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4290
4291         getopt-gnu: suppress core dumps from detection code
4292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4293         to suppress core dumps that may well occur on glibc systems.
4294         * modules/getopt-gnu: Depend on nocrash.
4295
4296 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         pthread_sigmask: ensure usleep is declared
4299         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4300         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4301
4302 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4303
4304         doc: Document NonStop portability issues.
4305         * doc/posix-functions/sigaction.texi (sigaction):
4306         * doc/posix-headers/signal.texi (signal.h):
4307         Document NonStop.  See Joachim Schmitz in
4308         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4309
4310 2011-07-15  Bruno Haible  <bruno@clisp.org>
4311
4312         ffsl, ffsll: Avoid unportable behaviour.
4313         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4314
4315 2011-07-15  Bruno Haible  <bruno@clisp.org>
4316
4317         ffs: More tests.
4318         * tests/test-ffs.c (NBITS): New macro.
4319         (main): Add more tests.
4320         * tests/test-ffsl.c (NBITS): New macro.
4321         (main): Add more tests.
4322         * tests/test-ffsll.c (NBITS): New macro.
4323         (main): Add more tests.
4324
4325 2011-07-15  Eric Blake  <eblake@redhat.com>
4326
4327         ffsl, ffsll: new modules
4328         * modules/ffsl: New file.
4329         * modules/ffsll: Likewise.
4330         * m4/ffsl.m4: Likewise.
4331         * m4/ffsll.m4: Likewise.
4332         * lib/ffsl.c: Likewise.
4333         * lib/ffsl.h: Likewise.
4334         * lib/ffsll.c: Likewise.
4335         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4336         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4337         * modules/string (Makefile.am): Substitute witnesses.
4338         * lib/strings.in.h (ffsl, ffsll): Declare.
4339         * modules/ffsl-tests: New test file.
4340         * modules/ffsll-tests: Likewise.
4341         * tests/test-ffsl.c: Likewise.
4342         * tests/test-ffsll.c: Likewise.
4343         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4344         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4345         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4346
4347         ffs: fix m4 prerequisite
4348         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4349
4350         ffs: avoid undefined behavior
4351         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4352         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4353         Reported by Bruno Haible.
4354
4355 2011-07-12  Bruno Haible  <bruno@clisp.org>
4356
4357         pthread_sigmask: Rely on module 'threadlib'.
4358         * modules/pthread_sigmask (Depends-on): Add threadlib.
4359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4360         is defined.
4361
4362 2011-07-12  Bruno Haible  <bruno@clisp.org>
4363
4364         regex: Depend on module 'strcase'.
4365         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4366
4367 2011-07-12  Jim Meyering  <meyering@redhat.com>
4368
4369         warn-on-use: fix typo in file name
4370         * modules/snippet/warn-on-use (Files): Correct file name:
4371         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4372
4373 2011-07-12  Bruno Haible  <bruno@clisp.org>
4374
4375         strings: Document module.
4376         * doc/posix-headers/strings.texi: Mention module 'strings'.
4377
4378 2011-07-12  Bruno Haible  <bruno@clisp.org>
4379
4380         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4381         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4382         (Files, Makefile.am): Update.
4383         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4384         * modules/stdlib (Depends-on): Update.
4385
4386 2011-07-12  Bruno Haible  <bruno@clisp.org>
4387
4388         * NEWS: Mention the changes.
4389
4390         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4391         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4392         (Files, Makefile.am): Update.
4393         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4394         * modules/arpa_inet (Depends-on): Update.
4395         * modules/ctype (Depends-on): Update.
4396         * modules/dirent (Depends-on): Update.
4397         * modules/fcntl-h (Depends-on): Update.
4398         * modules/glob (Depends-on): Update.
4399         * modules/iconv-h (Depends-on): Update.
4400         * modules/inttypes-incomplete (Depends-on): Update.
4401         * modules/langinfo (Depends-on): Update.
4402         * modules/locale (Depends-on): Update.
4403         * modules/math (Depends-on): Update.
4404         * modules/netdb (Depends-on): Update.
4405         * modules/poll-h (Depends-on): Update.
4406         * modules/pty (Depends-on): Update.
4407         * modules/search (Depends-on): Update.
4408         * modules/signal (Depends-on): Update.
4409         * modules/spawn (Depends-on): Update.
4410         * modules/stdio (Depends-on): Update.
4411         * modules/stdlib (Depends-on): Update.
4412         * modules/string (Depends-on): Update.
4413         * modules/strings (Depends-on): Update.
4414         * modules/sys_file (Depends-on): Update.
4415         * modules/sys_ioctl (Depends-on): Update.
4416         * modules/sys_select (Depends-on): Update.
4417         * modules/sys_socket (Depends-on): Update.
4418         * modules/sys_stat (Depends-on): Update.
4419         * modules/sys_time (Depends-on): Update.
4420         * modules/sys_times (Depends-on): Update.
4421         * modules/sys_utsname (Depends-on): Update.
4422         * modules/sys_wait (Depends-on): Update.
4423         * modules/termios (Depends-on): Update.
4424         * modules/time (Depends-on): Update.
4425         * modules/unistd (Depends-on): Update.
4426         * modules/wchar (Depends-on): Update.
4427         * modules/wctype-h (Depends-on): Update.
4428         * MODULES.html.sh (Support for building libraries and executables):
4429         Update.
4430
4431         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4432         * modules/snippet/unused-parameter: Renamed from
4433         modules/unused-parameter.
4434         (Files, Makefile.am): Update.
4435         * build-aux/snippet/unused-parameter.h: Renamed from
4436         build-aux/unused-parameter.h.
4437         * modules/selinux-h (Depends-on): Update.
4438         * modules/unistr/base (Depends-on): Update.
4439         * MODULES.html.sh (Core language properties): Update.
4440
4441         Rename module 'link-warning' to 'snippet/link-warning'.
4442         * modules/snippet/link-warning: Renamed from modules/link-warning.
4443         (Files, Makefile.am): Update.
4444         * build-aux/snippet/link-warning.h: Renamed from
4445         build-aux/link-warning.h.
4446         * MODULES.html.sh (Support for building libraries and executables):
4447         Update.
4448
4449         Rename module 'c++defs' to 'snippet/c++defs'.
4450         * modules/snippet/c++defs: Renamed from modules/c++defs.
4451         (Files, Makefile.am): Update.
4452         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4453         * modules/arpa_inet (Depends-on): Update.
4454         * modules/ctype (Depends-on): Update.
4455         * modules/dirent (Depends-on): Update.
4456         * modules/fcntl-h (Depends-on): Update.
4457         * modules/glob (Depends-on): Update.
4458         * modules/iconv-h (Depends-on): Update.
4459         * modules/langinfo (Depends-on): Update.
4460         * modules/locale (Depends-on): Update.
4461         * modules/math (Depends-on): Update.
4462         * modules/netdb (Depends-on): Update.
4463         * modules/poll-h (Depends-on): Update.
4464         * modules/pty (Depends-on): Update.
4465         * modules/search (Depends-on): Update.
4466         * modules/signal (Depends-on): Update.
4467         * modules/spawn (Depends-on): Update.
4468         * modules/stdio (Depends-on): Update.
4469         * modules/stdlib (Depends-on): Update.
4470         * modules/string (Depends-on): Update.
4471         * modules/strings (Depends-on): Update.
4472         * modules/sys_ioctl (Depends-on): Update.
4473         * modules/sys_select (Depends-on): Update.
4474         * modules/sys_socket (Depends-on): Update.
4475         * modules/sys_stat (Depends-on): Update.
4476         * modules/sys_time (Depends-on): Update.
4477         * modules/sys_wait (Depends-on): Update.
4478         * modules/termios (Depends-on): Update.
4479         * modules/time (Depends-on): Update.
4480         * modules/unistd (Depends-on): Update.
4481         * modules/wchar (Depends-on): Update.
4482         * modules/wctype-h (Depends-on): Update.
4483
4484         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4485         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4486         (Files, Makefile.am): Update.
4487         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4488         * modules/argv-iter (Depends-on): Update.
4489         * modules/arpa_inet (Depends-on): Update.
4490         * modules/dirent (Depends-on): Update.
4491         * modules/fcntl-h (Depends-on): Update.
4492         * modules/fnmatch (Depends-on): Update.
4493         * modules/getopt-posix (Depends-on): Update.
4494         * modules/glob (Depends-on): Update.
4495         * modules/iconv-h (Depends-on): Update.
4496         * modules/inttypes-incomplete (Depends-on): Update.
4497         * modules/locale (Depends-on): Update.
4498         * modules/math (Depends-on): Update.
4499         * modules/netdb (Depends-on): Update.
4500         * modules/search (Depends-on): Update.
4501         * modules/signal (Depends-on): Update.
4502         * modules/spawn (Depends-on): Update.
4503         * modules/stdio (Depends-on): Update.
4504         * modules/stdlib (Depends-on): Update.
4505         * modules/string (Depends-on): Update.
4506         * modules/strings (Depends-on): Update.
4507         * modules/sys_socket (Depends-on): Update.
4508         * modules/sys_stat (Depends-on): Update.
4509         * modules/sys_time (Depends-on): Update.
4510         * modules/sys_times (Depends-on): Update.
4511         * modules/sys_utsname (Depends-on): Update.
4512         * modules/time (Depends-on): Update.
4513         * modules/unistd (Depends-on): Update.
4514         * modules/wchar (Depends-on): Update.
4515         * MODULES.html.sh (Support for building libraries and executables):
4516         Update.
4517
4518 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4519
4520         Improvements on _Noreturn and related modules.
4521
4522         modules/_Exit-tests: test _Noreturn too
4523         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4524         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4525         (main): Use them.
4526
4527         stdnoreturn, stdnoreturn-tests: remove modules
4528         They're not needed here and a bit premature for use elsewhere.  See
4529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4530         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4531         * tests/test-stdnoreturn.c: Remove files.
4532         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4533         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4534         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4535         and using noreturn.
4536         * modules/openat, modules/sigpipe-die, modules/xalloc:
4537         * modules/xmemdup0, modules/xstrtol:
4538         Remove dependency on stdnoreturn.
4539
4540         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4541         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4542         Reparenthesize to avoid GCC warning.
4543         Support Microsoft's syntax.
4544         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4545
4546         _Noreturn-tests: remove module
4547         * modules/_Noreturn-tests: Remove.
4548         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4549         * tests/test-_Noreturn.c: Remove.
4550         * tests/test-stdnoreturn.c: Merge from the old
4551         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4552
4553 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4554
4555         _Noreturn, stdnoreturn, and related modules.
4556
4557         * top/maint.mk: Adjust to new noreturn support.
4558         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4559         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4560
4561         xalloc: use stdnoreturn.h
4562         * lib/xalloc.h: Include <stdnoreturn.h>.
4563         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4564         * modules/xalloc (Depends-on): Add stdnoreturn.
4565
4566         xstrtol: use stdnoreturn.h
4567         * lib/xstrtol.h: Include <stdnoreturn.h>.
4568         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4569         * modules/xstrtol (Depends-on): Add stdnoreturn.
4570
4571         xmemdup0: use stdnoreturn.h
4572         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4573         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4574         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4575
4576         sigpipe-die: use stdnoreturn.h
4577         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4578         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4579         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4580
4581         openat: use stdnoreturn.h
4582         * lib/openat.h: Include <stdnoreturn.h>.
4583         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4584         * modules/openat (Depends-on): Add stdnoreturn.
4585
4586         * lib/openat-die.c (openat_save_fail): Modernize comment.
4587
4588         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4589
4590         * lib/glthread/thread.h: Modernize comment.
4591
4592         obstack: use _Noreturn
4593         * lib/obstack.c (__attribute__): Remove macro.
4594         (print_and_abort): Use _Noreturn.
4595
4596         c-stack: use _Noreturn
4597         * lib/c-stack.c (die, overflow_handler, segv_handler):
4598         Use _Noreturn rather than __attribute__((noreturn)).
4599
4600         argmatch-tests, exclude_tests: use _Noreturn
4601         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4602         Remove.
4603         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4604
4605         stdlib: use _Noreturn
4606         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4607         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4608         * modules/stdlib (Depends-on): Add _Noreturn.
4609         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4610
4611         stdnoreturn-tests: new module
4612         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4613
4614         stdnoreturn: new module
4615         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4616         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4617
4618         _Noreturn-tests: new module
4619         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4620
4621         _Noreturn: new module
4622         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4623         New section, mentioning it.
4624         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4625
4626         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4627
4628 2011-07-11  Eric Blake  <eblake@redhat.com>
4629
4630         ffs: new module
4631         * modules/ffs: New file.
4632         * m4/ffs.m4: Likewise.
4633         * lib/ffs.c: Likewise.
4634         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4635         * modules/strings (Makefile.am): Substitute witness.
4636         (Depends-on): Add c++defs.
4637         * lib/strings.in.h (ffs): Declare.
4638         * modules/ffs-tests: New test file.
4639         * tests/test-ffs.c: Test new module.
4640         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4641         * doc/posix-functions/ffs.texi (ffs): Likewise.
4642
4643         regex: avoid compiler warning
4644         * lib/regex.c (includes): Include <strings.h>, for use of
4645         strcasecmp in regcomp.c.
4646         Reported by Joachim Schmitz.
4647
4648 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4649
4650         stdint: respect system's intmax_t if INTMAX_MAX
4651         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4652         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4653         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4654         long but int64_t is long long, and where we will clash with the
4655         system intmax_t if we override it.  See
4656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4657         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4658         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4659         similarly for UINTMAX_C.
4660
4661 2011-07-08  Bruno Haible  <bruno@clisp.org>
4662
4663         pthread_sigmask tests: Avoid a compiler warning.
4664         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4665         non-zero.
4666
4667         sigprocmask tests: A better way to avoid a compiler warning.
4668         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4669         (main): Complain if system() returns non-zero.
4670         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4671
4672 2011-07-08  Bruno Haible  <bruno@clisp.org>
4673
4674         pthread_sigmask: Work around IRIX bug.
4675         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4676         bug.
4677         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4678         there may be unblocked pending signals.
4679         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4680
4681 2011-07-08  Bruno Haible  <bruno@clisp.org>
4682
4683         pthread_sigmask: Work around Cygwin bug.
4684         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4685         bug.
4686         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4687         the system's pthread_sigmask function.
4688         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4689
4690 2011-07-08  Bruno Haible  <bruno@clisp.org>
4691
4692         pthread_sigmask: Work around bug in single-threaded implementation.
4693         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4694         FreeBSD, HP-UX, Solaris bug.
4695         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4696         * lib/pthread_sigmask.c: Include <stddef.h>.
4697         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4698         the system's pthread_sigmask function.
4699         * modules/pthread_sigmask (configure.ac): Invoke
4700         gl_PREREQ_PTHREAD_SIGMASK.
4701         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4702         HP-UX, Solaris.
4703
4704 2011-07-08  Eric Blake  <eblake@redhat.com>
4705
4706         test-sigprocmask: avoid compiler warning
4707         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4708         * tests/test-sigprocmask.c (main): Use it to silence warning.
4709         Reported by Jim Meyering.
4710
4711         test-snprintf: avoid compiler warning
4712         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4713         * tests/test-vsnprintf.c (main): Likewise.
4714         Reported by Jim Meyering.
4715
4716 2011-07-08  Bruno Haible  <bruno@clisp.org>
4717
4718         Tests for module 'pthread_sigmask'.
4719         * modules/pthread_sigmask-tests: New file.
4720         * tests/test-pthread_sigmask1.c: New file, based on
4721         tests/test-sigprocmask.c.
4722         * tests/test-pthread_sigmask2.c: New file.
4723
4724 2011-07-08  Jim Meyering  <meyering@redhat.com>
4725
4726         test-getopt.h: avoid warning about an unused variable
4727         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4728
4729 2011-07-07  Jim Meyering  <meyering@redhat.com>
4730
4731         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4732         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4733         now that it no longer contains leading TABs.
4734         Remove unused "url=FIXME" statement.
4735
4736 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4737
4738         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4739         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4740         When gl_THREADLIB is not in use, assume that the POSIX sematics
4741         are desired.  This is better for Emacs, which uses POSIX semantics
4742         on GNUish and/or POSIXish platforms, and does not use threads at
4743         all otherwise.
4744
4745         pthread_sigmask: fix typo when testing for libraries
4746         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4747         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4748
4749 2011-07-08  Eric Blake  <eblake@redhat.com>
4750
4751         fts: introduce FTS_NOATIME
4752         * lib/fts_.h (FTS_NOATIME): New bit flag.
4753         (FTS_OPTIONMASK): Adjust.
4754         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4755         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4756
4757 2011-07-08  Bruno Haible  <bruno@clisp.org>
4758
4759         Tests for module 'thread'.
4760         * modules/thread-tests: New file.
4761         * tests/test-thread_self.c: New file.
4762         * tests/test-thread_create.cc: New file.
4763
4764 2011-07-08  Bruno Haible  <bruno@clisp.org>
4765
4766         thread: Avoid gcc warnings when using gl_thread_self().
4767         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4768         'void *'.
4769         (gl_thread_self_pointer): Update.
4770
4771 2011-07-07  Bruno Haible  <bruno@clisp.org>
4772
4773         signal-c++-tests: Check declaration of pthread_sigmask.
4774         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4775         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4776         $(LIB_PTHREAD_SIGMASK).
4777
4778 2011-07-07  Bruno Haible  <bruno@clisp.org>
4779
4780         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4781         * lib/signal.in.h (pthread_sigmask): Override if
4782         REPLACE_PTHREAD_SIGMASK is 1.
4783         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4784         REPLACE_PTHREAD_SIGMASK.
4785         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4786         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4787         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4788         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4789         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4790
4791 2011-07-07  Bruno Haible  <bruno@clisp.org>
4792
4793         pthread_sigmask: Ensure declaration in <signal.h>.
4794         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4795         include <pthread.h>.
4796         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4797         problem.
4798
4799 2011-07-07  Bruno Haible  <bruno@clisp.org>
4800
4801         pthread_sigmask: Document the module.
4802         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4803
4804 2011-07-07  Bruno Haible  <bruno@clisp.org>
4805
4806         pthread_sigmask: Follow gnulib conventions.
4807         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4808         gl_PTHREAD_SIGMASK.
4809         * modules/pthread_sigmask (configure.ac): Update.
4810
4811 2011-07-07  Bruno Haible  <bruno@clisp.org>
4812
4813         pthread_sigmask: Make declaration C++ safe.
4814         * lib/signal.in.h: In two special conditions, just do an #include_next.
4815         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4816         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4817         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4818         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4819         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4820         not REPLACE_PTHREAD_MASK.
4821         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4822         not REPLACE_PTHREAD_MASK.
4823         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4824
4825 2011-07-07  Bruno Haible  <bruno@clisp.org>
4826
4827         pthread_sigmask: Fix return value.
4828         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4829         * lib/pthread_sigmask.c: New file.
4830         * modules/pthread_sigmask (Files): Add it.
4831         (configure.ac): Invoke AC_LIBOBJ.
4832
4833 2011-07-07  Eric Blake  <eblake@redhat.com>
4834
4835         getopt: more portable argv creation
4836         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4837         const, use char arrays rather than strings.
4838         Suggested by Paul Eggert.
4839
4840 2011-07-07  Bruno Haible  <bruno@clisp.org>
4841
4842         Tests for module 'sigprocmask'.
4843         * modules/sigprocmask-tests: New file.
4844         * tests/test-sigprocmask.c: New file.
4845
4846 2011-07-07  Bruno Haible  <bruno@clisp.org>
4847
4848         float tests: Tweak.
4849         * tests/test-float.c (main): Tweak skip message.
4850
4851 2011-07-07  Eric Blake  <eblake@redhat.com>
4852
4853         getopt: avoid compiler warning during configure
4854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4855         assigning string literals to non-const pointer.
4856
4857         getopt-gnu: avoid crash in glibc getopt
4858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4859         * tests/test-getopt.h (test_getopt): Enhance test.
4860         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4861         * doc/posix-functions/getopt.texi (getopt): Document it.
4862         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4863         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4864         Likewise.
4865
4866 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4867
4868         getopt: handle W; without long options in getopt [BZ #12922]
4869         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4870         but no long options are defined, just return 'W'.
4871
4872 2011-07-07  Bruno Haible  <bruno@clisp.org>
4873
4874         Avoid literal tabs.
4875         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4876         variable containing a tab instead of a literal tab.
4877         Reported by Jim Meyering.
4878
4879 2011-07-07  Bruno Haible  <bruno@clisp.org>
4880
4881         Comments.
4882         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4883
4884 2011-07-06  Bruno Haible  <bruno@clisp.org>
4885
4886         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4887         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4888         <winsock2.h>.
4889         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4890         lib/sys_socket.in.h.
4891         (close, gethostname): Hide declarations from <winsock2.h>.
4892         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4893         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4894         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4895         (select): Don't override if gnulib's <sys/select.h> was already
4896         included.
4897         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4898         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4899         setsockopt, shutdown, select): Tweak indentation.
4900
4901 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4902
4903         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4904         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4905         in an application that does not use the sys_select module.
4906
4907 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4908
4909         poll: do not return 0 on timeout=-1
4910         * lib/poll.c: Loop with yield if no events occured
4911
4912 2011-07-06  Eric Blake  <eblake@redhat.com>
4913
4914         pthread_sigmask: always replace when not using pthread
4915         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4916         replacement when using some threading other than pthread.  Fix
4917         logic bug.
4918
4919 2011-07-06  Bruno Haible  <bruno@clisp.org>
4920
4921         Comments.
4922         * m4/printf.m4: Update comments about mingw.
4923
4924 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4925
4926         sys_select: define sigset_t more portably
4927         * lib/sys_select.in.h: Always include <sys/types.h>, since
4928         we now need sigset_t and mingw defines it there.
4929         Include <signal.h> before split inclusion guard, to avoid
4930         mishaps on Solaris, whose <signal.h> eventually includes us.
4931         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4932         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4933         which come from ...
4934         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4935         gl_CHECK_TYPE_SIGSET_T.
4936         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4937         does the real work.
4938         * modules/sys_select (Depends-on): Add 'signal'.
4939
4940         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4941         Suggested by Bruno Haible.
4942
4943         pselect: Use pthread_sigmask, not sigprocmask.
4944         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4945         multithreaded apps better than sigprocmask does.
4946         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4947         sigprocmask directly.
4948
4949 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4950
4951         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4952         Don't #undef,  since we don't need any underlying pselect.
4953         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4954         (Depends-on): Add select.
4955         (Link): Add $(LIBSOCKET).
4956         These changes suggested by Bruno Haible.
4957
4958         pselect: document better
4959         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4960         * doc/posix-functions/pselect.texi (pselect): Document new module.
4961
4962         pthread_sigmask: new module
4963         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4964         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4965         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4966         This is done only as a macro; I don't know how well that'll
4967         work for C++.  Move <sys/types.h> include before the include_next,
4968         to avoid mishap on Solaris.
4969         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4970         * modules/signal (Makefile.am): Substitute the check's results.
4971         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4972
4973         test-pselect: new module
4974         * modules/pselect-tests, tests/test-pselect.c: New files.
4975         * tests/test-select.c, tests/test-sys_select-c++.cc:
4976         If TEST_PSELECT is defined, test pselect instead of testing select.
4977
4978         * tests/test-sys_select.c (sigset_t): Test for it, too.
4979         Suggested by Bruno Haible.
4980
4981 2011-07-05  Eric Blake  <eblake@redhat.com>
4982
4983         snprintf: guarantee %1$d, for libintl
4984         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4985         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4986         * doc/posix-functions/snprintf.texi (snprintf): Update.
4987         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4988         * tests/test-snprintf.c (main): Enhance test.
4989         * tests/test-vsnprintf.c (main): Likewise.
4990
4991 2011-07-05  Jim Meyering  <meyering@redhat.com>
4992
4993         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4994         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4995         per Bruno's request, to accommodate this idiom (no space after "#")
4996         even when the function is inside an #if block:
4997         char *
4998         gets (char *s)
4999         #undef gets
5000         {
5001           ...
5002         }
5003
5004 2011-07-04  Jim Meyering  <meyering@redhat.com>
5005
5006         maint: indent with spaces, not TABs, and add a rule to check this
5007         * tests/test-userspec.c: Indent with spaces, not TABs.
5008         * tests/test-argp.c: Likewise.
5009         * tests/test-c-stack2.sh: Likewise.
5010         * tests/test-parse-duration.sh: Likewise
5011         * m4/strtod.m4: Likewise.
5012         * m4/alloca.m4: Likewise.
5013         * m4/pselect.m4: Likewise.
5014         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5015
5016 2011-07-03  Jim Meyering  <meyering@redhat.com>
5017
5018         maint.mk: correct omissions in prohibit_argmatch_without_use check
5019         This rule would mistakenly report that argmatch.h is included without
5020         use even when both the argmatch and invalid_arg macro were used.
5021         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5022         of argmatch and invalid_arg.
5023
5024 2011-07-03  Bruno Haible  <bruno@clisp.org>
5025
5026         Comments about EINTR.
5027         * lib/safe-read.h: Explain the purpose of this module.
5028         * lib/safe-write.h: Likewise.
5029         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5030         module.
5031         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5032         module.
5033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5034
5035 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5036
5037         xnanosleep: Rewrite to use new dtotimespec module.
5038         It has the conversion code that used to be in xnanosleep.
5039         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5040         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5041         (TIME_T_MAX): Remove.
5042         (xnanosleep): Rewrite in terms of dtotimespec.
5043         * modules/xnanosleep (Depends-on): Add dtotimespec.
5044         Remove intprops, stdbool.
5045
5046         timespec-add, timespec-sub: new modules
5047         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5048         * lib/timespec-add.c, lib/timespec-sub.c:
5049         * modules/timespec-add, modules/timespec-sub: New files.
5050
5051         dtotimespec: new module
5052         * lib/timespec.h (dtotimespec): New decl.
5053         * lib/dtotimespec.c, modules/dtotimespec: New files.
5054
5055         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5056
5057         pselect: new module
5058         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5059         (pselect): New decls.
5060         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5061         since the standard pselect decl uses 'restrict'.
5062         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5063         HAVE_PSELECT, REPLACE_PSELECT.
5064         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5065         HAVE_PSELECT, REPLACE_PSELECT.
5066         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5067
5068         sys_select: don't depend on sys_socket
5069         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5071         This fix works on GNU and GNU-like platforms, but has not been tested
5072         on native Windows.
5073         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5074         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5075         gl_HEADER_SYS_SOCKET.
5076         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5077         gl_PREREQ_SYS_H_WINSOCK2.
5078
5079 2011-06-29  Eric Blake  <eblake@redhat.com>
5080
5081         pipe2: fix C89 compile problem
5082         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5083         Reported by Bruno Haible.
5084
5085         pipe, pipe2: don't corrupt fd on error
5086         * lib/pipe.c (pipe): Leave fd unchanged on error.
5087         * lib/pipe2.c (pipe2): Likewise.
5088         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5089         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5090
5091 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5092
5093         mmap-anon: do not use regular expressions inadvertently
5094         * m4/mmap-anon.m4: Remove trailing period from strings sought
5095         in the output.
5096
5097 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5098
5099         nanosleep: fix integer overflow problem
5100         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5101         arithmetic wraps around on overflow.
5102
5103         nanosleep: simplify carrying
5104         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5105         first call to the underyling nanosleep, not for the last one.
5106         This doesn't fix any bugs, but it simplifies the computation of
5107         the remaining delay.  Found while auditing integer overflow issues.
5108
5109         dup2: remove test for existence of fcntl
5110         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5111         "#if HAVE_FCNTL", in the configure-time test program.
5112         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5113         and therefore speeds up "configure" a bit.  Found while
5114         adding the dup2 module to Emacs.
5115
5116 2011-06-24  Eric Blake  <eblake@redhat.com>
5117
5118         maint.mk: enhance useless header checks
5119         * top/maint.mk (_sc_header_without_use): Check both include
5120         styles.
5121         (sc_prohibit_assert_without_use)
5122         (sc_prohibit_close_stream_without_use)
5123         (sc_prohibit_getopt_without_use)
5124         (sc_prohibit_quotearg_without_use)
5125         (sc_prohibit_quote_without_use)
5126         (sc_prohibit_long_options_without_use)
5127         (sc_prohibit_inttostr_without_use)
5128         (sc_prohibit_ignore_value_without_use)
5129         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5130         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5131         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5132         (sc_prohibit_hash_pjw_without_use)
5133         (sc_prohibit_safe_read_without_use)
5134         (sc_prohibit_argmatch_without_use)
5135         (sc_prohibit_canonicalize_without_use)
5136         (sc_prohibit_root_dev_ino_without_use)
5137         (sc_prohibit_openat_without_use)
5138         (sc_prohibit_c_ctype_without_use)
5139         (sc_prohibit_signal_without_use)
5140         (sc_prohibit_stdio--_without_use)
5141         (sc_prohibit_stdio-safer_without_use)
5142         (sc_prohibit_strings_without_use)
5143         (sc_prohibit_intprops_without_use)
5144         (sc_prohibit_stddef_without_use)
5145         (sc_prohibit_xfreopen_without_use): Update clients.
5146
5147 2011-06-24  Jim Meyering  <meyering@redhat.com>
5148
5149         syntax-check: keep one maint.mk rule in sync with its header
5150         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5151         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5152         I prefer to avoid temporary files here, so use <(...), but that
5153         is not supported by /bin/sh, so...
5154         (SHELL): Define to /bin/bash.
5155
5156 2011-06-24  Eric Blake  <eblake@redhat.com>
5157
5158         maint.mk: update sc_prohibit_intprops_without_use
5159         * top/maint.mk (_intprops_names): Match recent changes.
5160
5161 2011-06-24  Bruno Haible  <bruno@clisp.org>
5162
5163         strerror-override: No-op tweak.
5164         * lib/strerror-override.h (strerror_override): Reorder conditions,
5165         for consistency with lib/strerror-override.c.
5166
5167 2011-06-23  Eric Blake  <eblake@redhat.com>
5168
5169         maint.mk: test further PATH_MAX issues
5170         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5171         (sc_prohibit_path_max_allocation): ...and also test alloca.
5172         Suggested by Jim Meyering.
5173
5174 2011-06-22  Eric Blake  <eblake@redhat.com>
5175
5176         maint.mk: add syntax-check to avoid char[PATH_MAX]
5177         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5178
5179         stat: be robust to PATH_MAX definition
5180         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5181         * modules/stat (Depends-on): Add verify.
5182
5183         link: work around IRIX bug
5184         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5185         * lib/link.c (rpl_link): Work around it.
5186         * tests/test-link.h (test_link): Enhance test.
5187         * doc/posix-functions/link.texi (link): Document the bug.
5188
5189         getopt: silence clang warning
5190         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5191         dereference.
5192         Reported by Gustavo Martin Domato.
5193
5194 2011-06-22  Jim Meyering  <meyering@redhat.com>
5195
5196         bootstrap: do not insert a blank line into each .gitignore file
5197         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5198
5199 2011-06-21  Eric Blake  <eblake@redhat.com>
5200
5201         perror: test for output mismatch
5202         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5203         perror on IRIX.
5204
5205         strerror_r: fix OpenBSD behavior on out-of-range
5206         * lib/strerror_r.c (strerror_r): Always use maximal string.
5207         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5208
5209         strerror_r: fix OpenBSD behavior on 0
5210         * lib/strerror-override.c (strerror_override): Also override 0
5211         when needed.
5212         * lib/strerror-override.h (strerror_override): Likewise.
5213         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5214         earlier.
5215         * lib/strerror_r.c (strerror_r): Likewise.
5216         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5217         behavior...
5218         (gl_FUNC_STRERROR_0): ...into new macro.
5219         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5220         is overridden.
5221         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5222         * modules/strerror-override (Files): Add strerror.m4.
5223         (configure.ac): Also provide override for 0 when needed.
5224         * doc/posix-functions/strerror.texi (strerror): Document this.
5225         * doc/posix-functions/perror.texi (perror): Likewise.
5226
5227         perror: adjust array size
5228         * modules/perror (Depends-on): Add strerror-override.
5229         * lib/perror.c (perror): Use it to avoid magic number.
5230
5231         strerror-override: reduce size
5232         * lib/strerror-override.c (strerror_override): Use fewer lines.
5233
5234 2011-06-20  Bruno Haible  <bruno@clisp.org>
5235
5236         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5237         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5238
5239 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5240
5241         alloca: port to compilers that can optimize like GCC 4.6.0
5242         * lib/alloca.c (find_stack_direction): New signature, taken from
5243         Autoconf git.  This works with GCC 4.6.0.  This code should never
5244         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5245         be used with other compilers that optimize as well as GCC 4.6.0 does.
5246         (alloca): Adjust to new signature.
5247         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5248         New macro, which patches Autoconf in a similar way.
5249
5250         c-stack: stop worrying about stack direction
5251         * lib/c-stack.c (find_stack_direction): Remove.
5252         (segv_handler): Don't worry about stack direction growth, as it's
5253         too much of a pain to configure this correctly, given how compilers
5254         are optimizing-away our stack-growth detection code.  Instead, assume
5255         that any access to just before or just after the stack is OK.
5256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5257         Don't require AC_FUNC_ALLOCA; no longer needed.
5258
5259 2011-06-20  Eric Blake  <eblake@redhat.com>
5260
5261         test-stat: don't allocate PATH_MAX bytes
5262         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5263         PATH_MAX-sized buffer.
5264         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5265         * modules/stat-tests (Depends-on): Likewise.
5266         * tests/test-fstatat.c (includes): Drop pathmax.h.
5267         * tests/test-stat.c (includes): Likewise.
5268         Reported by Bruno Haible.
5269
5270 2011-06-20  Bruno Haible  <bruno@clisp.org>
5271
5272         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5273         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5274         * lib/float.c: New file.
5275         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5276         REPLACE_FLOAT_LDBL.
5277         * modules/float (Files): Add lib/float.c.
5278         (configure.ac): Invoke AC_LIBOBJ.
5279         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5280
5281 2011-06-20  Bruno Haible  <bruno@clisp.org>
5282
5283         Tests for module 'float'.
5284         * modules/float-tests: New file.
5285         * tests/test-float.c: New file.
5286
5287 2011-06-19  Bruno Haible  <bruno@clisp.org>
5288
5289         isinf: Coding style.
5290         * lib/isinf.c: Use GNU coding style.
5291
5292 2011-06-19  Bruno Haible  <bruno@clisp.org>
5293
5294         linkat test: Avoid test failure on AIX 7.1.
5295         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5296         * tests/test-link.h (test_link): Likewise.
5297
5298 2011-06-19  Bruno Haible  <bruno@clisp.org>
5299
5300         pread test: Avoid test failure on OpenBSD 4.9.
5301         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5302
5303 2011-06-19  Bruno Haible  <bruno@clisp.org>
5304
5305         sprintf-posix: Fix test failure on AIX 7.1.
5306         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5307         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5308         on AIX.
5309         * doc/posix-functions/fprintf.texi: Likewise.
5310         * doc/posix-functions/printf.texi: Likewise.
5311         * doc/posix-functions/snprintf.texi: Likewise.
5312         * doc/posix-functions/sprintf.texi: Likewise.
5313         * doc/posix-functions/vdprintf.texi: Likewise.
5314         * doc/posix-functions/vfprintf.texi: Likewise.
5315         * doc/posix-functions/vprintf.texi: Likewise.
5316         * doc/posix-functions/vsnprintf.texi: Likewise.
5317         * doc/posix-functions/vsprintf.texi: Likewise.
5318
5319 2011-06-19  Bruno Haible  <bruno@clisp.org>
5320
5321         roundl-ieee: Fix test failure on AIX 7.1.
5322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5323         * doc/posix-functions/roundl.texi: Mention problem with negative
5324         arguments.
5325
5326 2011-06-19  Bruno Haible  <bruno@clisp.org>
5327
5328         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5329         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5330         * doc/posix-functions/round.texi: Mention problem with negative
5331         arguments.
5332         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5333
5334 2011-06-19  Bruno Haible  <bruno@clisp.org>
5335
5336         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5337         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5338         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5339         * doc/posix-functions/roundf.texi: Mention problem with negative
5340         arguments.
5341         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5342
5343 2011-06-19  Bruno Haible  <bruno@clisp.org>
5344
5345         ceilf-ieee: Work around bug on MacOS X 10.5.
5346         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5347
5348         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5349         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5350         IEEE compliant, avoid compiler optimizations.
5351         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5352         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5353         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5354         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5355         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5356         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5357         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5359         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5361
5362 2011-06-19  Bruno Haible  <bruno@clisp.org>
5363
5364         ceilf-ieee: Work around bug on AIX 7.1.
5365         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5366         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5367
5368 2011-06-19  Bruno Haible  <bruno@clisp.org>
5369
5370         ceil-ieee: Work around bug on AIX 7.1.
5371         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5372         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5373
5374 2011-06-18  Bruno Haible  <bruno@clisp.org>
5375
5376         fsync test: Avoid test failure on MacOS X and AIX.
5377         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5378         EINVAL.
5379
5380 2011-06-18  Bruno Haible  <bruno@clisp.org>
5381
5382         openat, fdopendir tests: Fix link errors.
5383         * modules/openat-tests (Depends-on): Add progname.
5384         * modules/fdopendir-tests (Depends-on): Likewise.
5385         * tests/test-fchownat.c: Include progname.h.
5386         (main): Call set_program_name.
5387         * tests/test-fstatat.c: Include progname.h.
5388         (main): Call set_program_name.
5389         * tests/test-mkdirat.c: Include progname.h.
5390         (main): Call set_program_name.
5391         * tests/test-openat.c: Include progname.h.
5392         (main): Call set_program_name.
5393         * tests/test-unlinkat.c: Include progname.h.
5394         (main): Call set_program_name.
5395         * tests/test-fdopendir.c: Include progname.h.
5396         (main): Call set_program_name.
5397
5398 2011-06-18  Bruno Haible  <bruno@clisp.org>
5399
5400         Doc update.
5401         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5402         HP-UX.
5403         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5404
5405 2011-06-18  Bruno Haible  <bruno@clisp.org>
5406
5407         getcwd tests: Avoid compilation error on HP-UX 11.31.
5408         * modules/getcwd-tests (Depends-on): Add pathmax.
5409         * tests/test-getcwd.c: Include pathmax.h.
5410
5411 2011-06-18  Bruno Haible  <bruno@clisp.org>
5412
5413         isfinite, isinf: Fix link error on AIX 6 and 7.
5414         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5415         needed, also test the macro with a 'float' argument.
5416         * m4/isinf.m4 (gl_ISINF): Likewise.
5417
5418 2011-06-18  Bruno Haible  <bruno@clisp.org>
5419
5420         getloadavg: Don't clobber LIBS. Regression from previous commit.
5421         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5422         AC_CHECK_LIB from here...
5423         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5424         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5425         gl_func_getloadavg_done.
5426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5427
5428 2011-06-18  Bruno Haible  <bruno@clisp.org>
5429
5430         clean-temp: Improve documentation.
5431         * lib/clean-temp.h: Explain better how to use this module.
5432         Reported by John Darrington <john@darrington.wattle.id.au>.
5433
5434 2011-06-17  Bruno Haible  <bruno@clisp.org>
5435
5436         pread, pwrite: Avoid cc warning on AIX.
5437         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5438         (pwrite): Likewise.
5439
5440 2011-06-17  Bruno Haible  <bruno@clisp.org>
5441
5442         spawn-pipe tests: Fix link error.
5443         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5445
5446 2011-06-17  Bruno Haible  <bruno@clisp.org>
5447
5448         Tests: Remove unnecessary dependency.
5449         * modules/canonicalize-tests (Depends-on): Remove progname.
5450         * modules/chown-tests (Depends-on): Likewise.
5451         * modules/dirname-tests (Depends-on): Likewise.
5452         * modules/fdopendir-tests (Depends-on): Likewise.
5453         * modules/fdutimensat-tests (Depends-on): Likewise.
5454         * modules/hash-tests (Depends-on): Likewise.
5455         * modules/lchown-tests (Depends-on): Likewise.
5456         * modules/linkat-tests (Depends-on): Likewise.
5457         * modules/renameat-tests (Depends-on): Likewise.
5458         * modules/spawn-pipe-tests (Depends-on): Likewise.
5459         * modules/utimensat-tests (Depends-on): Likewise.
5460
5461 2011-06-17  Bruno Haible  <bruno@clisp.org>
5462
5463         spawn-pipe tests: Fix link error.
5464         * tests/test-spawn-pipe-child.c: Undefine fflush.
5465
5466 2011-06-17  Bruno Haible  <bruno@clisp.org>
5467
5468         Fix tests link errors.
5469         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5470         * modules/chown-tests (Makefile.am): Don't link test-chown with
5471         LIBINTL.
5472         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5473         LIBINTL.
5474         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5475         LIBINTL.
5476         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5477         LIBINTL.
5478
5479 2011-06-16  Bruno Haible  <bruno@clisp.org>
5480
5481         crypto/gc-sha1: Fix recent regression.
5482         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5483         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5484
5485         crypto/gc-md5: Fix recent regression.
5486         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5487
5488         crypto/gc-md4: Fix recent regression.
5489         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5490         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5491
5492         crypto/gc-arctwo: Fix recent regression.
5493         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5494         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5495
5496         crypto/gc-rijndael: Fix recent regression.
5497         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5498         (configure.ac): Invoke AC_LIBOBJ here.
5499         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5500         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5501
5502         crypto/gc-hmac-sha1: Fix recent regression.
5503         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5504         (configure.ac): Invoke AC_LIBOBJ here.
5505         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5507
5508         crypto/gc-hmac-md5: Fix recent regression.
5509         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5510         (configure.ac): Invoke AC_LIBOBJ here.
5511         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5513
5514         crypto/gc-des: Fix recent regression.
5515         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5516         (configure.ac): Invoke AC_LIBOBJ here.
5517         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5519
5520         crypto/gc-arcfour: Fix recent regression.
5521         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5522         (configure.ac): Invoke AC_LIBOBJ here.
5523         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5525
5526 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5527
5528         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5529         After the 2011-05-21 change, this macro requires
5530         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5532
5533 2011-06-16  Bruno Haible  <bruno@clisp.org>
5534
5535         fprintftime: Move AC_LIBOBJ invocations to module description.
5536         * m4/fprintftime.m4: Remove file.
5537         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5538         (configure.ac): Remove gl_FPRINTFTIME call.
5539         (Makefile.am): Augment lib_SOURCES.
5540         Reported by Jim Meyering.
5541
5542 2011-06-16  Bruno Haible  <bruno@clisp.org>
5543
5544         tmpfile-safer: Finish 2011-05-23 commit.
5545         * m4/stdio-safer.m4: Really remove file.
5546         Reported by Jim Meyering.
5547
5548 2011-06-16  Bruno Haible  <bruno@clisp.org>
5549
5550         syntax-check: Fix typo.
5551         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5552         printf-posix.m4.
5553         Reported by Jim Meyering.
5554
5555 2011-06-13  Jim Meyering  <meyering@redhat.com>
5556
5557         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5558         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5559
5560 2011-05-23  Bruno Haible  <bruno@clisp.org>
5561
5562         yesno: Move AC_LIBOBJ invocations to module description.
5563         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5564         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5565
5566 2011-05-23  Bruno Haible  <bruno@clisp.org>
5567
5568         xstrtol: Move AC_LIBOBJ invocations to module description.
5569         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5570         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5571
5572 2011-05-23  Bruno Haible  <bruno@clisp.org>
5573
5574         xstrtold: Move AC_LIBOBJ invocations to module description.
5575         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5576         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5577
5578 2011-05-23  Bruno Haible  <bruno@clisp.org>
5579
5580         xstrtod: Move AC_LIBOBJ invocations to module description.
5581         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5582         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5583
5584 2011-05-23  Bruno Haible  <bruno@clisp.org>
5585
5586         xnanosleep: Move AC_LIBOBJ invocations to module description.
5587         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5588         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5589
5590 2011-05-23  Bruno Haible  <bruno@clisp.org>
5591
5592         xgetcwd: Move AC_LIBOBJ invocations to module description.
5593         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5594         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5595
5596 2011-05-23  Bruno Haible  <bruno@clisp.org>
5597
5598         xalloc: Move AC_LIBOBJ invocations to module description.
5599         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5600         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5601
5602 2011-05-23  Bruno Haible  <bruno@clisp.org>
5603
5604         write-any-file: Move AC_LIBOBJ invocations to module description.
5605         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5606         invocation.
5607         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5608
5609 2011-05-23  Bruno Haible  <bruno@clisp.org>
5610
5611         utimens: Move AC_LIBOBJ invocations to module description.
5612         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5613         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5614
5615 2011-05-23  Bruno Haible  <bruno@clisp.org>
5616
5617         utimecmp: Move AC_LIBOBJ invocations to module description.
5618         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5619         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5620
5621 2011-05-23  Bruno Haible  <bruno@clisp.org>
5622
5623         userspec: Move AC_LIBOBJ invocations to module description.
5624         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5625         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5626
5627 2011-05-23  Bruno Haible  <bruno@clisp.org>
5628
5629         unlinkdir: Move AC_LIBOBJ invocations to module description.
5630         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5631         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5632
5633 2011-05-23  Bruno Haible  <bruno@clisp.org>
5634
5635         unistd-safer: Move AC_LIBOBJ invocations to module description.
5636         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5637         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5638
5639 2011-05-23  Bruno Haible  <bruno@clisp.org>
5640
5641         tempname: Move AC_LIBOBJ invocations to module description.
5642         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5643         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5644
5645 2011-05-23  Bruno Haible  <bruno@clisp.org>
5646
5647         strftime: Move AC_LIBOBJ invocations to module description.
5648         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5649         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5650
5651 2011-05-23  Bruno Haible  <bruno@clisp.org>
5652
5653         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5654         * m4/stdlib-safer.m4: Remove file.
5655         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5656         (configure.ac): Remove gl_STDLIB_SAFER call.
5657         (Makefile.am): Augment lib_SOURCES.
5658
5659 2011-05-23  Bruno Haible  <bruno@clisp.org>
5660
5661         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5662         * m4/stdio-safer.m4: Remove file.
5663         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5664         (configure.ac): Remove gl_TMPFILE_SAFER call.
5665         (Makefile.am): Augment lib_SOURCES.
5666
5667 2011-05-23  Bruno Haible  <bruno@clisp.org>
5668
5669         popen-safer: Move AC_LIBOBJ invocations to module description.
5670         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5671         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5672         (configure.ac): Remove gl_POPEN_SAFER call.
5673         (Makefile.am): Augment lib_SOURCES.
5674
5675 2011-05-23  Bruno Haible  <bruno@clisp.org>
5676
5677         freopen-safer: Move AC_LIBOBJ invocations to module description.
5678         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5679         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5680         (configure.ac): Remove gl_FREOPEN_SAFER call.
5681         (Makefile.am): Augment lib_SOURCES.
5682
5683 2011-05-23  Bruno Haible  <bruno@clisp.org>
5684
5685         fopen-safer: Move AC_LIBOBJ invocations to module description.
5686         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5687         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5688         (configure.ac): Remove gl_FOPEN_SAFER call.
5689         (Makefile.am): Augment lib_SOURCES.
5690
5691 2011-05-23  Bruno Haible  <bruno@clisp.org>
5692
5693         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5694         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5695         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5696
5697 2011-05-23  Bruno Haible  <bruno@clisp.org>
5698
5699         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5700         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5701         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5702
5703 2011-05-23  Bruno Haible  <bruno@clisp.org>
5704
5705         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5706         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5707         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5708
5709 2011-05-23  Bruno Haible  <bruno@clisp.org>
5710
5711         settime: Move AC_LIBOBJ invocations to module description.
5712         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5713         * modules/settime (Makefile.am): Augment lib_SOURCES.
5714
5715 2011-05-23  Bruno Haible  <bruno@clisp.org>
5716
5717         savedir: Move AC_LIBOBJ invocations to module description.
5718         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5719         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5720
5721 2011-05-23  Bruno Haible  <bruno@clisp.org>
5722
5723         save-cwd: Move AC_LIBOBJ invocations to module description.
5724         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5725         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5726
5727 2011-05-23  Bruno Haible  <bruno@clisp.org>
5728
5729         same: Move AC_LIBOBJ invocations to module description.
5730         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5731         * modules/same (Makefile.am): Augment lib_SOURCES.
5732
5733 2011-05-23  Bruno Haible  <bruno@clisp.org>
5734
5735         safe-write: Move AC_LIBOBJ invocations to module description.
5736         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5737         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5738         instead of gl_SAFE_WRITE.
5739         (Makefile.am): Augment lib_SOURCES.
5740
5741 2011-05-23  Bruno Haible  <bruno@clisp.org>
5742
5743         safe-read: Move AC_LIBOBJ invocations to module description.
5744         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5745         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5746         of gl_SAFE_READ.
5747         (Makefile.am): Augment lib_SOURCES.
5748
5749 2011-05-23  Bruno Haible  <bruno@clisp.org>
5750
5751         safe-alloc: Move AC_LIBOBJ invocations to module description.
5752         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5753         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5754
5755 2011-05-23  Bruno Haible  <bruno@clisp.org>
5756
5757         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5758         * m4/rijndael.m4: Remove file.
5759         * modules/crypto/rijndael (Files): Remove it.
5760         (configure.ac): Remove gl_RIJNDAEL call.
5761         (Makefile.am): Augment lib_SOURCES.
5762
5763 2011-05-23  Bruno Haible  <bruno@clisp.org>
5764
5765         readtokens: Move AC_LIBOBJ invocations to module description.
5766         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5767         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5768
5769 2011-05-23  Bruno Haible  <bruno@clisp.org>
5770
5771         read-file: Move AC_LIBOBJ invocations to module description.
5772         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5773         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5774         of gl_FUNC_READ_FILE.
5775         (Makefile.am): Augment lib_SOURCES.
5776
5777 2011-05-23  Bruno Haible  <bruno@clisp.org>
5778
5779         quotearg: Move AC_LIBOBJ invocations to module description.
5780         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5781         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5782
5783 2011-05-23  Bruno Haible  <bruno@clisp.org>
5784
5785         quote: Move AC_LIBOBJ invocations to module description.
5786         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5787         * modules/quote (Makefile.am): Augment lib_SOURCES.
5788
5789 2011-05-23  Bruno Haible  <bruno@clisp.org>
5790
5791         posixver: Move AC_LIBOBJ invocations to module description.
5792         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5793         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5794
5795 2011-05-23  Bruno Haible  <bruno@clisp.org>
5796
5797         posixtm: Move AC_LIBOBJ invocations to module description.
5798         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5799         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5800
5801 2011-05-23  Bruno Haible  <bruno@clisp.org>
5802
5803         physmem: Move AC_LIBOBJ invocations to module description.
5804         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5805         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5806
5807 2011-05-23  Bruno Haible  <bruno@clisp.org>
5808
5809         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5810         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5811         invocation.
5812         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5813
5814 2011-05-23  Bruno Haible  <bruno@clisp.org>
5815
5816         mpsort: Move AC_LIBOBJ invocations to module description.
5817         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5818         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5819
5820 2011-05-23  Bruno Haible  <bruno@clisp.org>
5821
5822         modechange: Move AC_LIBOBJ invocations to module description.
5823         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5824         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5825
5826 2011-05-23  Bruno Haible  <bruno@clisp.org>
5827
5828         mkdir-p: Move AC_LIBOBJ invocations to module description.
5829         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5830         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5831
5832 2011-05-23  Bruno Haible  <bruno@clisp.org>
5833
5834         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5835         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5836         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5837
5838 2011-05-23  Bruno Haible  <bruno@clisp.org>
5839
5840         mgetgroups: Move AC_LIBOBJ invocations to module description.
5841         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5842         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5843
5844 2011-05-23  Bruno Haible  <bruno@clisp.org>
5845
5846         memxor: Move AC_LIBOBJ invocations to module description.
5847         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5848         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5849
5850 2011-05-23  Bruno Haible  <bruno@clisp.org>
5851
5852         memcoll: Move AC_LIBOBJ invocations to module description.
5853         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5854         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5855
5856 2011-05-23  Bruno Haible  <bruno@clisp.org>
5857
5858         memcasecmp: Move AC_LIBOBJ invocations to module description.
5859         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5860         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5861
5862 2011-05-23  Bruno Haible  <bruno@clisp.org>
5863
5864         crypto/md5: Move AC_LIBOBJ invocations to module description.
5865         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5866         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5867
5868 2011-05-23  Bruno Haible  <bruno@clisp.org>
5869
5870         crypto/md4: Move AC_LIBOBJ invocations to module description.
5871         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5872         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5873
5874 2011-05-23  Bruno Haible  <bruno@clisp.org>
5875
5876         crypto/md2: Move AC_LIBOBJ invocations to module description.
5877         * m4/md2.m4: Remove file.
5878         * modules/crypto/md2 (Files): Remove it.
5879         (configure.ac): Remove gl_MD2 call.
5880         (Makefile.am): Augment lib_SOURCES.
5881
5882 2011-05-23  Bruno Haible  <bruno@clisp.org>
5883
5884         long-options: Move AC_LIBOBJ invocations to module description.
5885         * m4/long-options.m4: Remove file.
5886         * modules/long-options (Files): Remove it.
5887         (configure.ac): Remove gl_LONG_OPTIONS call.
5888         (Makefile.am): Augment lib_SOURCES.
5889
5890 2011-05-23  Bruno Haible  <bruno@clisp.org>
5891
5892         i-ring: Move AC_LIBOBJ invocations to module description.
5893         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5894         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5895
5896 2011-05-23  Bruno Haible  <bruno@clisp.org>
5897
5898         idcache: Move AC_LIBOBJ invocations to module description.
5899         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5900         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5901
5902 2011-05-23  Bruno Haible  <bruno@clisp.org>
5903
5904         human: Move AC_LIBOBJ invocations to module description.
5905         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5906         * modules/human (Makefile.am): Augment lib_SOURCES.
5907
5908 2011-05-23  Bruno Haible  <bruno@clisp.org>
5909
5910         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5911         * m4/hmac-sha1.m4: Remove file.
5912         * modules/crypto/hmac-sha1 (Files): Remove it.
5913         (configure.ac): Remove gl_HMAC_SHA1 call.
5914         (Makefile.am): Augment lib_SOURCES.
5915
5916 2011-05-23  Bruno Haible  <bruno@clisp.org>
5917
5918         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5919         * m4/hmac-md5.m4: Remove file.
5920         * modules/crypto/hmac-md5 (Files): Remove it.
5921         (configure.ac): Remove gl_HMAC_MD5 call.
5922         (Makefile.am): Augment lib_SOURCES.
5923
5924 2011-05-23  Bruno Haible  <bruno@clisp.org>
5925
5926         hash: Move AC_LIBOBJ invocations to module description.
5927         * m4/hash.m4: Remove file.
5928         * modules/hash (Files): Remove it.
5929         (configure.ac): Remove gl_HASH call.
5930         (Makefile.am): Augment lib_SOURCES.
5931
5932 2011-05-23  Bruno Haible  <bruno@clisp.org>
5933
5934         hard-locale: Move AC_LIBOBJ invocations to module description.
5935         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5936         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5937
5938 2011-05-23  Bruno Haible  <bruno@clisp.org>
5939
5940         getugroups: Move AC_LIBOBJ invocations to module description.
5941         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5942         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5943
5944 2011-05-23  Bruno Haible  <bruno@clisp.org>
5945
5946         gettime: Move AC_LIBOBJ invocations to module description.
5947         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5948         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5949
5950 2011-05-23  Bruno Haible  <bruno@clisp.org>
5951
5952         getndelim2: Move AC_LIBOBJ invocations to module description.
5953         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5954         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5955
5956 2011-05-23  Bruno Haible  <bruno@clisp.org>
5957
5958         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5959         * m4/gc-pbkdf2-sha1.m4: Remove file.
5960         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5961         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5962         (Makefile.am): Augment lib_SOURCES.
5963
5964 2011-05-23  Bruno Haible  <bruno@clisp.org>
5965
5966         fts: Move AC_LIBOBJ invocations to module description.
5967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5968         * modules/fts (configure.ac): ... to here.
5969
5970 2011-05-23  Bruno Haible  <bruno@clisp.org>
5971
5972         file-type: Move AC_LIBOBJ invocations to module description.
5973         * m4/file-type.m4: Remove file.
5974         * modules/file-type (Files): Remove it.
5975         (configure.ac): Remove gl_FILE_TYPE call.
5976         (Makefile.am): Augment lib_SOURCES.
5977
5978 2011-05-23  Bruno Haible  <bruno@clisp.org>
5979
5980         filenamecat*: Respect rules for use of AC_LIBOBJ.
5981         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5982         Remove AC_LIBOBJ invocation.
5983         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5984         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5985
5986 2011-05-23  Bruno Haible  <bruno@clisp.org>
5987
5988         filemode: Move AC_LIBOBJ invocations to module description.
5989         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5990         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5991
5992 2011-05-23  Bruno Haible  <bruno@clisp.org>
5993
5994         openat-safer: Move AC_LIBOBJ invocations to module description.
5995         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5996         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5997
5998 2011-05-23  Bruno Haible  <bruno@clisp.org>
5999
6000         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6001         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6002         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6003
6004 2011-05-23  Bruno Haible  <bruno@clisp.org>
6005
6006         exclude: Move AC_LIBOBJ invocations to module description.
6007         * m4/exclude.m4: Remove file.
6008         * modules/exclude (Files): Remove it.
6009         (configure.ac): Remove gl_EXCLUDE call.
6010         (Makefile.am): Augment lib_SOURCES.
6011
6012 2011-05-23  Bruno Haible  <bruno@clisp.org>
6013
6014         dirname*: Respect rules for use of AC_LIBOBJ.
6015         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6016         invocations.
6017         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6018         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6019
6020 2011-05-23  Bruno Haible  <bruno@clisp.org>
6021
6022         dirent-safer: Move AC_LIBOBJ invocations to module description.
6023         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6024         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6025
6026 2011-05-23  Bruno Haible  <bruno@clisp.org>
6027
6028         crypto/des: Move AC_LIBOBJ invocations to module description.
6029         * m4/des.m4: Remove file.
6030         * modules/crypto/des (Files): Remove it.
6031         (configure.ac): Remove gl_DES call.
6032         (Makefile.am): Augment lib_SOURCES.
6033
6034 2011-05-23  Bruno Haible  <bruno@clisp.org>
6035
6036         cycle-check: Move AC_LIBOBJ invocations to module description.
6037         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6038         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6039
6040 2011-05-23  Bruno Haible  <bruno@clisp.org>
6041
6042         c-strtold: Move AC_LIBOBJ invocations to module description.
6043         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6044         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6045
6046 2011-05-23  Bruno Haible  <bruno@clisp.org>
6047
6048         c-strtod: Move AC_LIBOBJ invocations to module description.
6049         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6050         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6051
6052 2011-05-23  Bruno Haible  <bruno@clisp.org>
6053
6054         crc: Move AC_LIBOBJ invocations to module description.
6055         * m4/crc.m4: Remove file.
6056         * modules/crc (Files): Remove it.
6057         (configure.ac): Remove gl_CRC call.
6058         (Makefile.am): Augment lib_SOURCES.
6059
6060 2011-05-23  Bruno Haible  <bruno@clisp.org>
6061
6062         close-stream: Move AC_LIBOBJ invocations to module description.
6063         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6064         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6065
6066 2011-05-23  Bruno Haible  <bruno@clisp.org>
6067
6068         closeout: Move AC_LIBOBJ invocations to module description.
6069         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6070         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6071
6072 2011-05-23  Bruno Haible  <bruno@clisp.org>
6073
6074         closein: Move AC_LIBOBJ invocations to module description.
6075         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6076         * modules/closein (Makefile.am): Augment lib_SOURCES.
6077
6078 2011-05-23  Bruno Haible  <bruno@clisp.org>
6079
6080         cloexec: Move AC_LIBOBJ invocations to module description.
6081         * m4/cloexec.m4: Remove file.
6082         * modules/cloexec (Files): Remove it.
6083         (configure.ac): Remove gl_CLOEXEC call.
6084         (Makefile.am): Augment lib_SOURCES.
6085
6086 2011-05-23  Bruno Haible  <bruno@clisp.org>
6087
6088         check-version: Move AC_LIBOBJ invocations to module description.
6089         * m4/check-version.m4: Remove file.
6090         * modules/check-version (Files): Remove it.
6091         (configure.ac): Remove gl_CHECK_VERSION call.
6092         (Makefile.am): Augment lib_SOURCES.
6093
6094 2011-05-23  Bruno Haible  <bruno@clisp.org>
6095
6096         chdir-safer: Move AC_LIBOBJ invocations to module description.
6097         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6098         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6099
6100 2011-05-23  Bruno Haible  <bruno@clisp.org>
6101
6102         canonicalize: Move AC_LIBOBJ invocations to module description.
6103         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6104         AC_LIBOBJ invocation.
6105         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6106
6107 2011-05-23  Bruno Haible  <bruno@clisp.org>
6108
6109         canon-host: Move AC_LIBOBJ invocations to module description.
6110         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6111         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6112         instead of gl_CANON_HOST.
6113         (Makefile.am): Augment lib_SOURCES.
6114
6115 2011-05-23  Bruno Haible  <bruno@clisp.org>
6116
6117         backupfile: Move AC_LIBOBJ invocations to module description.
6118         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6119         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6120
6121 2011-05-23  Bruno Haible  <bruno@clisp.org>
6122
6123         argmatch: Move AC_LIBOBJ invocations to module description.
6124         * m4/argmatch.m4: Remove file.
6125         * modules/argmatch (Files): Remove it.
6126         (configure.ac): Remove gl_ARGMATCH call.
6127         (Makefile.am): Augment lib_SOURCES.
6128
6129 2011-05-23  Bruno Haible  <bruno@clisp.org>
6130
6131         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6132         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6133         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6134
6135 2011-05-23  Bruno Haible  <bruno@clisp.org>
6136
6137         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6138         * m4/arcfour.m4: Remove file.
6139         * modules/crypto/arcfour (Files): Remove it.
6140         (configure.ac): Remove gl_ARCFOUR call.
6141         (Makefile.am): Augment lib_SOURCES.
6142
6143 2011-05-22  Bruno Haible  <bruno@clisp.org>
6144
6145         write: Move AC_LIBOBJ invocations to module description.
6146         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6147         * modules/write (configure.ac): ... to here.
6148
6149 2011-05-22  Bruno Haible  <bruno@clisp.org>
6150
6151         wmemset: Move AC_LIBOBJ invocations to module description.
6152         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6153         here...
6154         * modules/wmemset (configure.ac): ... to here.
6155
6156 2011-05-22  Bruno Haible  <bruno@clisp.org>
6157
6158         wmemmove: Move AC_LIBOBJ invocations to module description.
6159         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6160         here...
6161         * modules/wmemmove (configure.ac): ... to here.
6162
6163 2011-05-22  Bruno Haible  <bruno@clisp.org>
6164
6165         wmemcpy: Move AC_LIBOBJ invocations to module description.
6166         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6167         here...
6168         * modules/wmemcpy (configure.ac): ... to here.
6169
6170 2011-05-22  Bruno Haible  <bruno@clisp.org>
6171
6172         wmemcmp: Move AC_LIBOBJ invocations to module description.
6173         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6174         here...
6175         * modules/wmemcmp (configure.ac): ... to here.
6176
6177 2011-05-22  Bruno Haible  <bruno@clisp.org>
6178
6179         wmemchr: Move AC_LIBOBJ invocations to module description.
6180         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6181         here...
6182         * modules/wmemchr (configure.ac): ... to here.
6183
6184 2011-05-22  Bruno Haible  <bruno@clisp.org>
6185
6186         wcswidth: Move AC_LIBOBJ invocations to module description.
6187         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6188         here...
6189         * modules/wcswidth (configure.ac): ... to here.
6190
6191 2011-05-22  Bruno Haible  <bruno@clisp.org>
6192
6193         wcwidth: Respect rules for use of AC_LIBOBJ.
6194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6195         invocation from here...
6196         * modules/wcwidth (configure.ac): ... to here.
6197         (Depends-on): Update conditions.
6198
6199 2011-05-22  Bruno Haible  <bruno@clisp.org>
6200
6201         wctype: Move AC_LIBOBJ invocations to module description.
6202         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6203         invocation from here...
6204         * modules/wctype (configure.ac): ... to here.
6205         (Depends-on): Update conditions.
6206
6207 2011-05-22  Bruno Haible  <bruno@clisp.org>
6208
6209         wctrans: Move AC_LIBOBJ invocations to module description.
6210         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6211         invocation from here...
6212         * modules/wctrans (configure.ac): ... to here.
6213
6214 2011-05-22  Bruno Haible  <bruno@clisp.org>
6215
6216         wctomb: Move AC_LIBOBJ invocations to module description.
6217         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6218         invocations from here...
6219         * modules/wctomb (configure.ac): ... to here.
6220
6221 2011-05-22  Bruno Haible  <bruno@clisp.org>
6222
6223         wctob: Move AC_LIBOBJ invocations to module description.
6224         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6225         gl_PREREQ_WCTOB invocations from here...
6226         * modules/wctob (configure.ac): ... to here.
6227         (Depends-on): Update conditions.
6228
6229 2011-05-22  Bruno Haible  <bruno@clisp.org>
6230
6231         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6232         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6233         here...
6234         * modules/wcsxfrm (configure.ac): ... to here.
6235
6236 2011-05-22  Bruno Haible  <bruno@clisp.org>
6237
6238         wcstok: Move AC_LIBOBJ invocations to module description.
6239         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6240         * modules/wcstok (configure.ac): ... to here.
6241
6242 2011-05-22  Bruno Haible  <bruno@clisp.org>
6243
6244         wcsstr: Move AC_LIBOBJ invocations to module description.
6245         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6246         * modules/wcsstr (configure.ac): ... to here.
6247
6248 2011-05-22  Bruno Haible  <bruno@clisp.org>
6249
6250         wcsspn: Move AC_LIBOBJ invocations to module description.
6251         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6252         * modules/wcsspn (configure.ac): ... to here.
6253
6254 2011-05-22  Bruno Haible  <bruno@clisp.org>
6255
6256         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6257         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6258         gl_PREREQ_WCSRTOMBS invocations from here...
6259         * modules/wcsrtombs (configure.ac): ... to here.
6260
6261 2011-05-22  Bruno Haible  <bruno@clisp.org>
6262
6263         wcsrchr: Move AC_LIBOBJ invocations to module description.
6264         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6265         here...
6266         * modules/wcsrchr (configure.ac): ... to here.
6267
6268 2011-05-22  Bruno Haible  <bruno@clisp.org>
6269
6270         wcspbrk: Move AC_LIBOBJ invocations to module description.
6271         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6272         here...
6273         * modules/wcspbrk (configure.ac): ... to here.
6274
6275 2011-05-22  Bruno Haible  <bruno@clisp.org>
6276
6277         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6278         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6279         gl_PREREQ_WCSNRTOMBS invocations from here...
6280         * modules/wcsnrtombs (configure.ac): ... to here.
6281
6282 2011-05-22  Bruno Haible  <bruno@clisp.org>
6283
6284         wcsnlen: Move AC_LIBOBJ invocations to module description.
6285         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6286         here...
6287         * modules/wcsnlen (configure.ac): ... to here.
6288
6289 2011-05-22  Bruno Haible  <bruno@clisp.org>
6290
6291         wcsncpy: Move AC_LIBOBJ invocations to module description.
6292         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6293         here...
6294         * modules/wcsncpy (configure.ac): ... to here.
6295
6296 2011-05-22  Bruno Haible  <bruno@clisp.org>
6297
6298         wcsncmp: Move AC_LIBOBJ invocations to module description.
6299         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6300         here...
6301         * modules/wcsncmp (configure.ac): ... to here.
6302
6303 2011-05-22  Bruno Haible  <bruno@clisp.org>
6304
6305         wcsncat: Move AC_LIBOBJ invocations to module description.
6306         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6307         here...
6308         * modules/wcsncat (configure.ac): ... to here.
6309
6310 2011-05-22  Bruno Haible  <bruno@clisp.org>
6311
6312         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6313         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6314         from here...
6315         * modules/wcsncasecmp (configure.ac): ... to here.
6316
6317 2011-05-22  Bruno Haible  <bruno@clisp.org>
6318
6319         wcslen: Move AC_LIBOBJ invocations to module description.
6320         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6321         * modules/wcslen (configure.ac): ... to here.
6322
6323 2011-05-22  Bruno Haible  <bruno@clisp.org>
6324
6325         wcsdup: Move AC_LIBOBJ invocations to module description.
6326         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6327         * modules/wcsdup (configure.ac): ... to here.
6328
6329 2011-05-22  Bruno Haible  <bruno@clisp.org>
6330
6331         wcscspn: Move AC_LIBOBJ invocations to module description.
6332         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6333         here...
6334         * modules/wcscspn (configure.ac): ... to here.
6335
6336 2011-05-22  Bruno Haible  <bruno@clisp.org>
6337
6338         wcscpy: Move AC_LIBOBJ invocations to module description.
6339         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6340         * modules/wcscpy (configure.ac): ... to here.
6341
6342 2011-05-22  Bruno Haible  <bruno@clisp.org>
6343
6344         wcscoll: Move AC_LIBOBJ invocations to module description.
6345         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6346         here...
6347         * modules/wcscoll (configure.ac): ... to here.
6348
6349 2011-05-22  Bruno Haible  <bruno@clisp.org>
6350
6351         wcscmp: Move AC_LIBOBJ invocations to module description.
6352         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6353         * modules/wcscmp (configure.ac): ... to here.
6354
6355 2011-05-22  Bruno Haible  <bruno@clisp.org>
6356
6357         wcschr: Move AC_LIBOBJ invocations to module description.
6358         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6359         * modules/wcschr (configure.ac): ... to here.
6360
6361 2011-05-22  Bruno Haible  <bruno@clisp.org>
6362
6363         wcscat: Move AC_LIBOBJ invocations to module description.
6364         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6365         * modules/wcscat (configure.ac): ... to here.
6366
6367 2011-05-22  Bruno Haible  <bruno@clisp.org>
6368
6369         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6370         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6371         here...
6372         * modules/wcscasecmp (configure.ac): ... to here.
6373
6374 2011-05-22  Bruno Haible  <bruno@clisp.org>
6375
6376         wcrtomb: Move AC_LIBOBJ invocations to module description.
6377         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6378         invocations from here...
6379         * modules/wcrtomb (configure.ac): ... to here.
6380
6381 2011-05-22  Bruno Haible  <bruno@clisp.org>
6382
6383         wcpncpy: Move AC_LIBOBJ invocations to module description.
6384         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6385         here...
6386         * modules/wcpncpy (configure.ac): ... to here.
6387
6388 2011-05-22  Bruno Haible  <bruno@clisp.org>
6389
6390         wcpcpy: Move AC_LIBOBJ invocations to module description.
6391         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6392         * modules/wcpcpy (configure.ac): ... to here.
6393
6394 2011-05-22  Bruno Haible  <bruno@clisp.org>
6395
6396         waitpid: Move AC_LIBOBJ invocations to module description.
6397         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6398         invocation from here...
6399         * modules/waitpid (configure.ac): ... to here.
6400
6401 2011-05-22  Bruno Haible  <bruno@clisp.org>
6402
6403         utimensat: Move AC_LIBOBJ invocations to module description.
6404         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6405         here...
6406         * modules/utimensat (configure.ac): ... to here.
6407
6408 2011-05-22  Bruno Haible  <bruno@clisp.org>
6409
6410         usleep: Move AC_LIBOBJ invocations to module description.
6411         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6412         here...
6413         * modules/usleep (configure.ac): ... to here.
6414
6415 2011-05-22  Bruno Haible  <bruno@clisp.org>
6416
6417         unlockpt: Move AC_LIBOBJ invocations to module description.
6418         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6419         gl_PREREQ_UNLOCKPT invocations from here...
6420         * modules/unlockpt (configure.ac): ... to here.
6421
6422 2011-05-22  Bruno Haible  <bruno@clisp.org>
6423
6424         unlink: Respect rules for use of AC_LIBOBJ.
6425         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6426         * modules/unlink (configure.ac): ... to here.
6427
6428 2011-05-22  Bruno Haible  <bruno@clisp.org>
6429
6430         uname: Move AC_LIBOBJ invocations to module description.
6431         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6432         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6433         here...
6434         * modules/uname (configure.ac): ... to here.
6435
6436 2011-05-22  Bruno Haible  <bruno@clisp.org>
6437
6438         ttyname_r: Move AC_LIBOBJ invocations to module description.
6439         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6440         gl_PREREQ_TTYNAME_R invocations from here...
6441         * modules/ttyname_r (configure.ac): ... to here.
6442
6443 2011-05-22  Bruno Haible  <bruno@clisp.org>
6444
6445         tsearch: Move AC_LIBOBJ invocations to module description.
6446         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6447         invocations from here...
6448         * modules/tsearch (configure.ac): ... to here.
6449
6450 2011-05-22  Bruno Haible  <bruno@clisp.org>
6451
6452         towctrans: Move AC_LIBOBJ invocations to module description.
6453         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6454         AC_LIBOBJ invocation from here...
6455         * modules/towctrans (configure.ac): ... to here.
6456
6457 2011-05-22  Bruno Haible  <bruno@clisp.org>
6458
6459         tmpfile: Move AC_LIBOBJ invocations to module description.
6460         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6461         invocations from here...
6462         * modules/tmpfile (configure.ac): ... to here.
6463
6464 2011-05-22  Bruno Haible  <bruno@clisp.org>
6465
6466         times: Move AC_LIBOBJ invocations to module description.
6467         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6468         * modules/times (configure.ac): ... to here.
6469
6470 2011-05-22  Bruno Haible  <bruno@clisp.org>
6471
6472         time_r: Move AC_LIBOBJ invocations to module description.
6473         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6474         invocations from here...
6475         * modules/time_r (configure.ac): ... to here.
6476
6477 2011-05-22  Bruno Haible  <bruno@clisp.org>
6478
6479         timegm: Move AC_LIBOBJ invocations to module description.
6480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6481         invocations from here...
6482         * modules/timegm (configure.ac): ... to here.
6483
6484 2011-05-22  Bruno Haible  <bruno@clisp.org>
6485
6486         tcgetsid: Move AC_LIBOBJ invocations to module description.
6487         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6488         and gl_PREREQ_TCGETSID invocations from here...
6489         * modules/tcgetsid (configure.ac): ... to here.
6490         (Depends-on): Update conditions.
6491
6492 2011-05-22  Bruno Haible  <bruno@clisp.org>
6493
6494         symlinkat: Move AC_LIBOBJ invocations to module description.
6495         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6496         here...
6497         * modules/symlinkat (configure.ac): ... to here.
6498
6499 2011-05-22  Bruno Haible  <bruno@clisp.org>
6500
6501         symlink: Move AC_LIBOBJ invocations to module description.
6502         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6503         here...
6504         * modules/symlink (configure.ac): ... to here.
6505
6506 2011-05-22  Bruno Haible  <bruno@clisp.org>
6507
6508         strverscmp: Move AC_LIBOBJ invocations to module description.
6509         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6511         from here...
6512         * modules/strverscmp (configure.ac): ... to here.
6513
6514 2011-05-22  Bruno Haible  <bruno@clisp.org>
6515
6516         strtok_r: Move AC_LIBOBJ invocations to module description.
6517         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6518         and gl_PREREQ_STRTOK_R invocations from here...
6519         * modules/strtok_r (configure.ac): ... to here.
6520         (Depends-on): Update conditions.
6521
6522 2011-05-22  Bruno Haible  <bruno@clisp.org>
6523
6524         strtoumax: Move AC_LIBOBJ invocations to module description.
6525         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6527         from here...
6528         * modules/strtoumax (configure.ac): ... to here.
6529
6530 2011-05-22  Bruno Haible  <bruno@clisp.org>
6531
6532         strtoimax: Move AC_LIBOBJ invocations to module description.
6533         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6534         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6535         from here...
6536         * modules/strtoimax (configure.ac): ... to here.
6537
6538 2011-05-22  Bruno Haible  <bruno@clisp.org>
6539
6540         strtoull: Move AC_LIBOBJ invocations to module description.
6541         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6542         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6543         from here...
6544         * modules/strtoull (configure.ac): ... to here.
6545
6546 2011-05-22  Bruno Haible  <bruno@clisp.org>
6547
6548         strtoll: Move AC_LIBOBJ invocations to module description.
6549         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6550         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6551         here...
6552         * modules/strtoll (configure.ac): ... to here.
6553
6554 2011-05-22  Bruno Haible  <bruno@clisp.org>
6555
6556         strtoul: Move AC_LIBOBJ invocations to module description.
6557         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6558         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6559         * modules/strtoul (configure.ac): ... to here.
6560
6561 2011-05-22  Bruno Haible  <bruno@clisp.org>
6562
6563         strtol: Move AC_LIBOBJ invocations to module description.
6564         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6565         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6566         * modules/strtol (configure.ac): ... to here.
6567
6568 2011-05-22  Bruno Haible  <bruno@clisp.org>
6569
6570         strtod: Move AC_LIBOBJ invocations to module description.
6571         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6572         invocations from here...
6573         * modules/strtod (configure.ac): ... to here.
6574
6575 2011-05-22  Bruno Haible  <bruno@clisp.org>
6576
6577         strstr*: Move AC_LIBOBJ invocations to module description.
6578         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6579         invocations from here...
6580         * modules/strstr-simple (configure.ac): ... to here.
6581         * modules/strstr (configure.ac): ... and here.
6582
6583 2011-05-22  Bruno Haible  <bruno@clisp.org>
6584
6585         strsignal: Move AC_LIBOBJ invocations to module description.
6586         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6587         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6588         * modules/strsignal (configure.ac): ... to here.
6589         (Depends-on): Update conditions.
6590
6591 2011-05-22  Bruno Haible  <bruno@clisp.org>
6592
6593         strsep: Move AC_LIBOBJ invocations to module description.
6594         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6596         here...
6597         * modules/strsep (configure.ac): ... to here.
6598
6599 2011-05-22  Bruno Haible  <bruno@clisp.org>
6600
6601         strptime: Move AC_LIBOBJ invocations to module description.
6602         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6603         gl_PREREQ_STRPTIME invocations from here...
6604         * modules/strptime (configure.ac): ... to here.
6605
6606 2011-05-22  Bruno Haible  <bruno@clisp.org>
6607
6608         strpbrk: Move AC_LIBOBJ invocations to module description.
6609         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6610         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6611         here...
6612         * modules/strpbrk (configure.ac): ... to here.
6613
6614 2011-05-22  Bruno Haible  <bruno@clisp.org>
6615
6616         strnlen: Move AC_LIBOBJ invocations to module description.
6617         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6618         invocations from here...
6619         * modules/strnlen (configure.ac): ... to here.
6620
6621 2011-05-22  Bruno Haible  <bruno@clisp.org>
6622
6623         strndup: Move AC_LIBOBJ invocations to module description.
6624         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6625         invocations from here...
6626         * modules/strndup (configure.ac): ... to here.
6627         (Depends-on): Update conditions.
6628
6629 2011-05-22  Bruno Haible  <bruno@clisp.org>
6630
6631         strncat: Move AC_LIBOBJ invocations to module description.
6632         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6633         invocations from here...
6634         * modules/strncat (configure.ac): ... to here.
6635
6636 2011-05-22  Bruno Haible  <bruno@clisp.org>
6637
6638         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6639         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6640         invocations from here...
6641         * modules/strdup (configure.ac): ... to here.
6642         * modules/strdup-posix (configure.ac): ... and here.
6643
6644 2011-05-22  Bruno Haible  <bruno@clisp.org>
6645
6646         strcspn: Move AC_LIBOBJ invocations to module description.
6647         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6648         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6649         here...
6650         * modules/strcspn (configure.ac): ... to here.
6651
6652 2011-05-22  Bruno Haible  <bruno@clisp.org>
6653
6654         strchrnul: Move AC_LIBOBJ invocations to module description.
6655         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6656         gl_PREREQ_STRCHRNUL invocations from here...
6657         * modules/strchrnul (configure.ac): ... to here.
6658
6659 2011-05-22  Bruno Haible  <bruno@clisp.org>
6660
6661         strcasestr*: Move AC_LIBOBJ invocations to module description.
6662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6663         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6664         * modules/strcasestr-simple (configure.ac): ... to here.
6665         * modules/strcasestr (configure.ac): ... and here.
6666
6667 2011-05-22  Bruno Haible  <bruno@clisp.org>
6668
6669         strcase: Move AC_LIBOBJ invocations to module description.
6670         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6671         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6672         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6673         gl_PREREQ_STRNCASECMP invocations from here...
6674         * modules/strcase (configure.ac): ... to here.
6675
6676 2011-05-22  Bruno Haible  <bruno@clisp.org>
6677
6678         stpncpy: Move AC_LIBOBJ invocations to module description.
6679         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6680         here...
6681         * modules/stpncpy (configure.ac): ... to here.
6682
6683 2011-05-22  Bruno Haible  <bruno@clisp.org>
6684
6685         stpcpy: Move AC_LIBOBJ invocations to module description.
6686         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6687         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6688         here...
6689         * modules/stpcpy (configure.ac): ... to here.
6690
6691 2011-05-21  Bruno Haible  <bruno@clisp.org>
6692
6693         stat: Move AC_LIBOBJ invocations to module description.
6694         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6695         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6696         here...
6697         * modules/stat (configure.ac): ... to here.
6698
6699 2011-05-21  Bruno Haible  <bruno@clisp.org>
6700
6701         sleep: Move AC_LIBOBJ invocations to module description.
6702         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6703         * modules/sleep (configure.ac): ... to here.
6704
6705 2011-05-21  Bruno Haible  <bruno@clisp.org>
6706
6707         signbit: Move AC_LIBOBJ invocations to module description.
6708         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6709         * modules/signbit (configure.ac): ... to here.
6710
6711 2011-05-21  Bruno Haible  <bruno@clisp.org>
6712
6713         sigprocmask: Move AC_LIBOBJ invocations to module description.
6714         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6715         gl_PREREQ_SIGPROMASK invocations from here...
6716         * modules/sigprocmask (configure.ac): ... to here.
6717
6718 2011-05-21  Bruno Haible  <bruno@clisp.org>
6719
6720         sigaction: Move AC_LIBOBJ invocations to module description.
6721         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6722         gl_PREREQ_SIGACTION invocations from here...
6723         * modules/sigaction (configure.ac): ... to here.
6724
6725 2011-05-21  Bruno Haible  <bruno@clisp.org>
6726
6727         sig2str: Move AC_LIBOBJ invocations to module description.
6728         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6730         here...
6731         * modules/sig2str (configure.ac): ... to here.
6732
6733 2011-05-21  Bruno Haible  <bruno@clisp.org>
6734
6735         setlocale: Move AC_LIBOBJ invocations to module description.
6736         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6737         gl_PREREQ_SETLOCALE invocations from here...
6738         * modules/setlocale (configure.ac): ... to here.
6739
6740 2011-05-21  Bruno Haible  <bruno@clisp.org>
6741
6742         unsetenv: Move AC_LIBOBJ invocations to module description.
6743         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6744         and gl_PREREQ_UNSETENV invocations from here...
6745         * modules/unsetenv (configure.ac): ... to here.
6746         (Depends-on): Update.
6747
6748 2011-05-21  Bruno Haible  <bruno@clisp.org>
6749
6750         setenv: Move AC_LIBOBJ invocations to module description.
6751         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6752         here...
6753         * modules/setenv (configure.ac): ... to here.
6754
6755 2011-05-21  Bruno Haible  <bruno@clisp.org>
6756
6757         selinux-h: Move AC_LIBOBJ invocations to module description.
6758         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6759         AC_LIBOBJ invocation from here...
6760         * modules/selinux-h (configure.ac): ... to here.
6761
6762 2011-05-21  Bruno Haible  <bruno@clisp.org>
6763
6764         select: Respect rules for use of AC_LIBOBJ.
6765         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6766         here...
6767         * modules/select (configure.ac): ... to here.
6768
6769 2011-05-21  Bruno Haible  <bruno@clisp.org>
6770
6771         scandir: Move AC_LIBOBJ invocations to module description.
6772         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6773         invocations from here...
6774         * modules/scandir (configure.ac): ... to here.
6775
6776 2011-05-21  Bruno Haible  <bruno@clisp.org>
6777
6778         rpmatch: Move AC_LIBOBJ invocations to module description.
6779         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6781         here...
6782         * modules/rpmatch (configure.ac): ... to here.
6783
6784 2011-05-21  Bruno Haible  <bruno@clisp.org>
6785
6786         rmdir: Respect rules for use of AC_LIBOBJ.
6787         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6788         * modules/rmdir (configure.ac): ... to here.
6789
6790 2011-05-21  Bruno Haible  <bruno@clisp.org>
6791
6792         renameat: Move AC_LIBOBJ invocations to module description.
6793         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6794         here...
6795         * modules/renameat (configure.ac): ... to here.
6796
6797 2011-05-21  Bruno Haible  <bruno@clisp.org>
6798
6799         rename: Respect rules for use of AC_LIBOBJ.
6800         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6801         here...
6802         * modules/rename (configure.ac): ... to here.
6803
6804 2011-05-21  Bruno Haible  <bruno@clisp.org>
6805
6806         remove: Move AC_LIBOBJ invocations to module description.
6807         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6808         here...
6809         * modules/remove (configure.ac): ... to here.
6810
6811 2011-05-21  Bruno Haible  <bruno@clisp.org>
6812
6813         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6814         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6815         macro.
6816         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6817         * modules/relocatable-lib (configure.ac): ... to here.
6818         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6819         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6820
6821 2011-05-21  Bruno Haible  <bruno@clisp.org>
6822
6823         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6824         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6825         here...
6826         * modules/relocatable-prog (configure.ac): ... to here.
6827
6828 2011-05-21  Bruno Haible  <bruno@clisp.org>
6829
6830         regex: Move AC_LIBOBJ invocations to module description.
6831         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6832         invocations from here...
6833         * modules/regex (configure.ac): ... to here.
6834
6835 2011-05-21  Bruno Haible  <bruno@clisp.org>
6836
6837         realloc-*: Move AC_LIBOBJ invocations to module description.
6838         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6839         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6840         AC_LIBOBJ invocations from here...
6841         * modules/realloc-gnu (configure.ac): ... to here.
6842         * modules/realloc-posix (configure.ac): ... and here.
6843
6844 2011-05-21  Bruno Haible  <bruno@clisp.org>
6845
6846         readutmp: Move AC_LIBOBJ invocations to module description.
6847         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6848         * modules/readutmp (configure.ac): ... to here.
6849
6850 2011-05-21  Bruno Haible  <bruno@clisp.org>
6851
6852         readlinkat: Move AC_LIBOBJ invocations to module description.
6853         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6854         here...
6855         * modules/readlinkat (configure.ac): ... to here.
6856
6857 2011-05-21  Bruno Haible  <bruno@clisp.org>
6858
6859         readlink: Move AC_LIBOBJ invocations to module description.
6860         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6861         gl_PREREQ_READLINK invocations from here...
6862         * modules/readlink (configure.ac): ... to here.
6863
6864 2011-05-21  Bruno Haible  <bruno@clisp.org>
6865
6866         readline: Move AC_LIBOBJ invocations to module description.
6867         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6868         gl_PREREQ_READLINE invocations from here...
6869         * modules/readline (configure.ac): ... to here.
6870
6871 2011-05-21  Bruno Haible  <bruno@clisp.org>
6872
6873         read: Move AC_LIBOBJ invocations to module description.
6874         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6875         * modules/read (configure.ac): ... to here.
6876
6877 2011-05-21  Bruno Haible  <bruno@clisp.org>
6878
6879         rawmemchr: Move AC_LIBOBJ invocations to module description.
6880         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6882         from here...
6883         * modules/rawmemchr (configure.ac): ... to here.
6884
6885 2011-05-21  Bruno Haible  <bruno@clisp.org>
6886
6887         random_r: Move AC_LIBOBJ invocations to module description.
6888         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6889         gl_PREREQ_RANDOM_R invocations from here...
6890         * modules/random_r (configure.ac): ... to here.
6891
6892 2011-05-21  Bruno Haible  <bruno@clisp.org>
6893
6894         pwrite: Move AC_LIBOBJ invocations to module description.
6895         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6896         * modules/pwrite (configure.ac): ... to here.
6897
6898 2011-05-21  Bruno Haible  <bruno@clisp.org>
6899
6900         putenv: Move AC_LIBOBJ invocations to module description.
6901         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6902         * modules/putenv (configure.ac): ... to here.
6903
6904 2011-05-21  Bruno Haible  <bruno@clisp.org>
6905
6906         login_tty: Move AC_LIBOBJ invocations to module description.
6907         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6908         * modules/login_tty (configure.ac): ... to here.
6909
6910 2011-05-21  Bruno Haible  <bruno@clisp.org>
6911
6912         openpty: Move AC_LIBOBJ invocations to module description.
6913         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6914         * modules/openpty (configure.ac): ... to here.
6915
6916 2011-05-21  Bruno Haible  <bruno@clisp.org>
6917
6918         forkpty: Move AC_LIBOBJ invocations to module description.
6919         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6920         * modules/forkpty (configure.ac): ... to here.
6921
6922 2011-05-21  Bruno Haible  <bruno@clisp.org>
6923
6924         ptsname: Move AC_LIBOBJ invocations to module description.
6925         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6926         invocations from here...
6927         * modules/ptsname (configure.ac): ... to here.
6928
6929 2011-05-21  Bruno Haible  <bruno@clisp.org>
6930
6931         pread: Move AC_LIBOBJ invocations to module description.
6932         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6933         * modules/pread (configure.ac): ... to here.
6934
6935 2011-05-21  Bruno Haible  <bruno@clisp.org>
6936
6937         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6938         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6939         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6940         * modules/posix_spawn (configure.ac): ... to here.
6941         * modules/posix_spawnp (configure.ac): ... and here.
6942
6943 2011-05-21  Bruno Haible  <bruno@clisp.org>
6944
6945         popen: Move AC_LIBOBJ invocations to module description.
6946         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6947         invocations from here...
6948         * modules/popen (configure.ac): ... to here.
6949
6950 2011-05-21  Bruno Haible  <bruno@clisp.org>
6951
6952         poll: Move AC_LIBOBJ invocations to module description.
6953         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6954         invocations from here...
6955         * modules/poll (configure.ac): ... to here.
6956
6957 2011-05-21  Bruno Haible  <bruno@clisp.org>
6958
6959         pipe-posix: Move AC_LIBOBJ invocations to module description.
6960         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6961         * modules/pipe-posix (configure.ac): ... to here.
6962
6963 2011-05-21  Bruno Haible  <bruno@clisp.org>
6964
6965         openat: Respect rules for use of AC_LIBOBJ.
6966         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6967         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6968         * modules/openat (configure.ac): ... to here.
6969
6970 2011-05-21  Bruno Haible  <bruno@clisp.org>
6971
6972         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6973         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6974         invocation from here...
6975         * modules/obstack-printf (configure.ac): ... to here.
6976         * modules/obstack-printf-posix (configure.ac): ... and here.
6977
6978 2011-05-21  Bruno Haible  <bruno@clisp.org>
6979
6980         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6981         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6982         from here...
6983         * modules/nl_langinfo (configure.ac): ... to here.
6984
6985 2011-05-21  Bruno Haible  <bruno@clisp.org>
6986
6987         nanosleep: Move AC_LIBOBJ invocations to module description.
6988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6989         gl_PREREQ_NANOSLEEP invocations from here...
6990         * modules/nanosleep (configure.ac): ... to here.
6991
6992 2011-05-21  Bruno Haible  <bruno@clisp.org>
6993
6994         mountlist: Move AC_LIBOBJ invocations to module description.
6995         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6996         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6997         * modules/mountlist (configure.ac): ... to here.
6998
6999 2011-05-21  Bruno Haible  <bruno@clisp.org>
7000
7001         mktime: Respect rules for use of AC_LIBOBJ.
7002         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7003         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7004         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7005         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7006         * modules/mktime (configure.ac): ... to here.
7007         * modules/mktime-internal (configure.ac): ... and here.
7008         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7009
7010 2011-05-21  Bruno Haible  <bruno@clisp.org>
7011
7012         mkstemps: Move AC_LIBOBJ invocations to module description.
7013         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7014         here...
7015         * modules/mkstemps (configure.ac): ... to here.
7016
7017 2011-05-21  Bruno Haible  <bruno@clisp.org>
7018
7019         mkstemp: Move AC_LIBOBJ invocations to module description.
7020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7021         gl_PREREQ_MKSTEMP invocations from here...
7022         * modules/mkstemp (configure.ac): ... to here.
7023
7024 2011-05-21  Bruno Haible  <bruno@clisp.org>
7025
7026         mkostemps: Move AC_LIBOBJ invocations to module description.
7027         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7028         here...
7029         * modules/mkostemps (configure.ac): ... to here.
7030
7031 2011-05-21  Bruno Haible  <bruno@clisp.org>
7032
7033         mkostemp: Move AC_LIBOBJ invocations to module description.
7034         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7035         gl_PREREQ_MKOSTEMP invocations from here...
7036         * modules/mkostemp (configure.ac): ... to here.
7037
7038 2011-05-21  Bruno Haible  <bruno@clisp.org>
7039
7040         mknod: Move AC_LIBOBJ invocations to module description.
7041         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7042         * modules/mknod (configure.ac): ... to here.
7043
7044 2011-05-21  Bruno Haible  <bruno@clisp.org>
7045
7046         mkfifoat: Move AC_LIBOBJ invocations to module description.
7047         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7048         here...
7049         * modules/mkfifoat (configure.ac): ... to here.
7050
7051 2011-05-21  Bruno Haible  <bruno@clisp.org>
7052
7053         mkfifo: Respect rules for use of AC_LIBOBJ.
7054         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7055         here...
7056         * modules/mkfifo (configure.ac): ... to here.
7057
7058 2011-05-21  Bruno Haible  <bruno@clisp.org>
7059
7060         mkdtemp: Move AC_LIBOBJ invocations to module description.
7061         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7062         invocations from here...
7063         * modules/mkdtemp (configure.ac): ... to here.
7064
7065 2011-05-21  Bruno Haible  <bruno@clisp.org>
7066
7067         mkdir: Move AC_LIBOBJ invocations to module description.
7068         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7069         * modules/mkdir (configure.ac): ... to here.
7070
7071 2011-05-21  Bruno Haible  <bruno@clisp.org>
7072
7073         memset: Move AC_LIBOBJ invocations to module description.
7074         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7076         here...
7077         * modules/memset (configure.ac): ... to here.
7078
7079 2011-05-21  Bruno Haible  <bruno@clisp.org>
7080
7081         memrchr: Move AC_LIBOBJ invocations to module description.
7082         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7083         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7084         here...
7085         * modules/memrchr (configure.ac): ... to here.
7086
7087 2011-05-21  Bruno Haible  <bruno@clisp.org>
7088
7089         mempcpy: Move AC_LIBOBJ invocations to module description.
7090         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7092         here...
7093         * modules/mempcpy (configure.ac): ... to here.
7094
7095 2011-05-21  Bruno Haible  <bruno@clisp.org>
7096
7097         memmove: Move AC_LIBOBJ invocations to module description.
7098         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7099         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7100         here...
7101         * modules/memmove (configure.ac): ... to here.
7102
7103 2011-05-21  Bruno Haible  <bruno@clisp.org>
7104
7105         memmem*: Move AC_LIBOBJ invocations to module description.
7106         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7107         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7108         here...
7109         (gl_FUNC_MEMMEM): ... and here...
7110         * modules/memmem-simple (configure.ac): ... to here.
7111         * modules/memmem (configure.ac): ... and here.
7112
7113 2011-05-21  Bruno Haible  <bruno@clisp.org>
7114
7115         memcpy: Move AC_LIBOBJ invocations to module description.
7116         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7118         here...
7119         * modules/memcpy (configure.ac): ... to here.
7120
7121 2011-05-21  Bruno Haible  <bruno@clisp.org>
7122
7123         memcmp: Simplify autoconf macro.
7124         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7125         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7126         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7127
7128 2011-05-21  Bruno Haible  <bruno@clisp.org>
7129
7130         memcmp: Move AC_LIBOBJ invocations to module description.
7131         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7132         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7133         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7134         * modules/memcmp (configure.ac): ... to here.
7135         (Depends-on): Update conditions.
7136
7137 2011-05-21  Bruno Haible  <bruno@clisp.org>
7138
7139         memchr: Respect rules for use of AC_LIBOBJ.
7140         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7141         invocations from here...
7142         * modules/memchr (configure.ac): ... to here.
7143
7144 2011-05-21  Bruno Haible  <bruno@clisp.org>
7145
7146         mbtowc: Move AC_LIBOBJ invocations to module description.
7147         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7148         invocations from here...
7149         * modules/mbtowc (configure.ac): ... to here.
7150
7151 2011-05-21  Bruno Haible  <bruno@clisp.org>
7152
7153         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7154         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7155         gl_PREREQ_MBSRTOWCS invocations from here...
7156         * modules/mbsrtowcs (configure.ac): ... to here.
7157
7158 2011-05-21  Bruno Haible  <bruno@clisp.org>
7159
7160         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7161         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7162         gl_PREREQ_MBSNRTOWCS invocations from here...
7163         * modules/mbsnrtowcs (configure.ac): ... to here.
7164
7165 2011-05-21  Bruno Haible  <bruno@clisp.org>
7166
7167         mbsinit: Move AC_LIBOBJ invocations to module description.
7168         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7169         invocations from here...
7170         * modules/mbsinit (configure.ac): ... to here.
7171
7172 2011-05-21  Bruno Haible  <bruno@clisp.org>
7173
7174         mbrlen: Move AC_LIBOBJ invocations to module description.
7175         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7176         invocations from here...
7177         * modules/mbrlen (configure.ac): ... to here.
7178
7179 2011-05-21  Bruno Haible  <bruno@clisp.org>
7180
7181         mbrtowc: Respect rules for use of AC_LIBOBJ.
7182         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7183         invocations from here...
7184         * modules/mbrtowc (configure.ac): ... to here.
7185
7186 2011-05-21  Bruno Haible  <bruno@clisp.org>
7187
7188         malloc-*: Move AC_LIBOBJ invocations to module description.
7189         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7190         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7191         AC_LIBOBJ invocations from here...
7192         * modules/malloc-gnu (configure.ac): ... to here.
7193         * modules/malloc-posix (configure.ac): ... and here.
7194
7195 2011-05-21  Bruno Haible  <bruno@clisp.org>
7196
7197         lstat, openat: Respect rules for use of AC_LIBOBJ.
7198         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7199         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7200         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7201         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7202         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7203         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7204         here.
7205         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7206
7207 2011-05-21  Bruno Haible  <bruno@clisp.org>
7208
7209         lseek: Move AC_LIBOBJ invocations to module description.
7210         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7211         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7212         * modules/lseek (configure.ac): ... to here.
7213
7214 2011-05-21  Bruno Haible  <bruno@clisp.org>
7215
7216         linkat: Move AC_LIBOBJ invocations to module description.
7217         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7218         here...
7219         * modules/linkat (configure.ac): ... to here.
7220
7221 2011-05-21  Bruno Haible  <bruno@clisp.org>
7222
7223         link: Respect rules for use of AC_LIBOBJ.
7224         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7225         * modules/link (configure.ac): ... to here.
7226
7227 2011-05-21  Bruno Haible  <bruno@clisp.org>
7228
7229         lchown: Move AC_LIBOBJ invocations to module description.
7230         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7231         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7232         * modules/lchown (configure.ac): ... to here.
7233
7234 2011-05-21  Bruno Haible  <bruno@clisp.org>
7235
7236         iswctype: Move AC_LIBOBJ invocations to module description.
7237         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7238         here...
7239         * modules/iswctype (configure.ac): ... to here.
7240
7241 2011-05-21  Bruno Haible  <bruno@clisp.org>
7242
7243         iswblank: Move AC_LIBOBJ invocations to module description.
7244         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7245         here...
7246         * modules/iswblank (configure.ac): ... to here.
7247
7248 2011-05-21  Bruno Haible  <bruno@clisp.org>
7249
7250         atanl: Move AC_LIBOBJ invocations to module description.
7251         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7252         * modules/atanl (configure.ac): ... to here.
7253
7254 2011-05-21  Bruno Haible  <bruno@clisp.org>
7255
7256         acosl: Move AC_LIBOBJ invocations to module description.
7257         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7258         * modules/acosl (configure.ac): ... to here.
7259
7260 2011-05-21  Bruno Haible  <bruno@clisp.org>
7261
7262         asinl: Respect rules for use of AC_LIBOBJ.
7263         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7264         * modules/asinl (configure.ac): ... to here.
7265
7266 2011-05-21  Bruno Haible  <bruno@clisp.org>
7267
7268         tanl: Move AC_LIBOBJ invocations to module description.
7269         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7270         * modules/tanl (configure.ac): ... to here.
7271
7272 2011-05-21  Bruno Haible  <bruno@clisp.org>
7273
7274         cosl: Move AC_LIBOBJ invocations to module description.
7275         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7276         * modules/cosl (configure.ac): ... to here.
7277
7278 2011-05-21  Bruno Haible  <bruno@clisp.org>
7279
7280         sinl: Move AC_LIBOBJ invocations to module description.
7281         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7282         * modules/sinl (configure.ac): ... to here.
7283
7284 2011-05-21  Bruno Haible  <bruno@clisp.org>
7285
7286         logl: Move AC_LIBOBJ invocations to module description.
7287         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7288         * modules/logl (configure.ac): ... to here.
7289
7290 2011-05-21  Bruno Haible  <bruno@clisp.org>
7291
7292         expl: Move AC_LIBOBJ invocations to module description.
7293         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7294         * modules/expl (configure.ac): ... to here.
7295
7296 2011-05-21  Bruno Haible  <bruno@clisp.org>
7297
7298         roundl: Move AC_LIBOBJ invocations to module description.
7299         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7300         * modules/roundl (configure.ac): ... to here.
7301
7302 2011-05-21  Bruno Haible  <bruno@clisp.org>
7303
7304         round: Move AC_LIBOBJ invocations to module description.
7305         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7306         * modules/round (configure.ac): ... to here.
7307
7308 2011-05-21  Bruno Haible  <bruno@clisp.org>
7309
7310         roundf: Move AC_LIBOBJ invocations to module description.
7311         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7312         * modules/roundf (configure.ac): ... to here.
7313
7314 2011-05-21  Bruno Haible  <bruno@clisp.org>
7315
7316         truncl: Move AC_LIBOBJ invocations to module description.
7317         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7318         * modules/truncl (configure.ac): ... to here.
7319
7320 2011-05-21  Bruno Haible  <bruno@clisp.org>
7321
7322         trunc: Move AC_LIBOBJ invocations to module description.
7323         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7324         * modules/trunc (configure.ac): ... to here.
7325
7326 2011-05-21  Bruno Haible  <bruno@clisp.org>
7327
7328         truncf: Move AC_LIBOBJ invocations to module description.
7329         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7330         * modules/truncf (configure.ac): ... to here.
7331
7332 2011-05-21  Bruno Haible  <bruno@clisp.org>
7333
7334         ceill: Move AC_LIBOBJ invocations to module description.
7335         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7336         * modules/ceill (configure.ac): ... to here.
7337
7338 2011-05-21  Bruno Haible  <bruno@clisp.org>
7339
7340         ceil: Move AC_LIBOBJ invocations to module description.
7341         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7342         * modules/ceil (configure.ac): ... to here.
7343
7344 2011-05-21  Bruno Haible  <bruno@clisp.org>
7345
7346         ceilf: Move AC_LIBOBJ invocations to module description.
7347         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7348         * modules/ceilf (configure.ac): ... to here.
7349
7350 2011-05-21  Bruno Haible  <bruno@clisp.org>
7351
7352         floorl: Respect rules for use of AC_LIBOBJ.
7353         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7354         * modules/floorl (configure.ac): ... to here.
7355
7356 2011-05-21  Bruno Haible  <bruno@clisp.org>
7357
7358         floor: Respect rules for use of AC_LIBOBJ.
7359         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7360         * modules/floor (configure.ac): ... to here.
7361
7362 2011-05-21  Bruno Haible  <bruno@clisp.org>
7363
7364         floorf: Move AC_LIBOBJ invocations to module description.
7365         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7366         * modules/floorf (configure.ac): ... to here.
7367
7368 2011-05-20  Bruno Haible  <bruno@clisp.org>
7369
7370         sqrtl: Respect rules for use of AC_LIBOBJ.
7371         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7372         * modules/sqrtl (configure.ac): ... to here.
7373
7374 2011-05-20  Bruno Haible  <bruno@clisp.org>
7375
7376         ldexpl: Respect rules for use of AC_LIBOBJ.
7377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7378         * modules/ldexpl (configure.ac): ... to here.
7379
7380 2011-05-20  Bruno Haible  <bruno@clisp.org>
7381
7382         frexpl*: Respect rules for use of AC_LIBOBJ.
7383         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7384         invocation from here...
7385         * modules/frexpl (configure.ac): ... to here.
7386         * modules/frexpl-nolibm (configure.ac): ... and here.
7387
7388 2011-05-20  Bruno Haible  <bruno@clisp.org>
7389
7390         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7391         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7392         invocation from here...
7393         * modules/frexp (configure.ac): ... to here.
7394         * modules/frexp-nolibm (configure.ac): ... and here.
7395
7396 2011-05-20  Bruno Haible  <bruno@clisp.org>
7397
7398         isnan: Respect rules for use of AC_LIBOBJ.
7399         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7400         invocations here.
7401         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7402         REPLACE_ISNAN.
7403         * modules/isnand (configure.ac): Likewise.
7404         * modules/isnanl (configure.ac): Likewise.
7405
7406 2011-05-20  Bruno Haible  <bruno@clisp.org>
7407
7408         isnanl*: Respect rules for use of AC_LIBOBJ.
7409         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7410         invocation from here...
7411         * modules/isnanl (configure.ac): ... to here.
7412         * modules/isnanl-nolibm (configure.ac): ... and here.
7413
7414 2011-05-20  Bruno Haible  <bruno@clisp.org>
7415
7416         isnand*: Move AC_LIBOBJ invocations to module description.
7417         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7418         invocation from here...
7419         * modules/isnand (configure.ac): ... to here.
7420         * modules/isnand-nolibm (configure.ac): ... and here.
7421
7422 2011-05-20  Bruno Haible  <bruno@clisp.org>
7423
7424         isnanf*: Move AC_LIBOBJ invocations to module description.
7425         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7426         invocation from here...
7427         * modules/isnanf (configure.ac): ... to here.
7428         * modules/isnanf-nolibm (configure.ac): ... and here.
7429
7430 2011-05-20  Bruno Haible  <bruno@clisp.org>
7431
7432         isnan*: Separate the AC_LIBOBJ invocations.
7433         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7434         AC_LIBOBJ invocation.
7435         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7436         here.
7437         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7438         AC_LIBOBJ invocation.
7439         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7440         here.
7441         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7442         AC_LIBOBJ invocation.
7443         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7444         here.
7445         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7446
7447 2011-05-08  Bruno Haible  <bruno@clisp.org>
7448
7449         isinf: Move AC_LIBOBJ invocations to module description.
7450         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7451         * modules/isinf (configure.ac): ... to here.
7452
7453 2011-05-08  Bruno Haible  <bruno@clisp.org>
7454
7455         isfinite: Move AC_LIBOBJ invocations to module description.
7456         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7457         * modules/isfinite (configure.ac): ... to here.
7458
7459 2011-05-08  Bruno Haible  <bruno@clisp.org>
7460
7461         isblank: Move AC_LIBOBJ invocations to module description.
7462         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7463         here...
7464         * modules/isblank (configure.ac): ... to here.
7465
7466 2011-05-08  Bruno Haible  <bruno@clisp.org>
7467
7468         isapipe: Move AC_LIBOBJ invocations to module description.
7469         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7470         gl_PREREQ_ISAPIPE invocations from here...
7471         * modules/isapipe (configure.ac): ... to here.
7472         (Depends-on): Update condition.
7473
7474 2011-05-08  Bruno Haible  <bruno@clisp.org>
7475
7476         ioctl: Move AC_LIBOBJ invocations to module description.
7477         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7478         invocations from here...
7479         * modules/ioctl (configure.ac): ... to here.
7480         (Depends-on): Update condition.
7481
7482 2011-05-08  Bruno Haible  <bruno@clisp.org>
7483
7484         imaxdiv: Move AC_LIBOBJ invocations to module description.
7485         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7486         invocations from here...
7487         * modules/imaxdiv (configure.ac): ... to here.
7488
7489 2011-05-08  Bruno Haible  <bruno@clisp.org>
7490
7491         imaxabs: Move AC_LIBOBJ invocations to module description.
7492         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7493         invocations from here...
7494         * modules/imaxabs (configure.ac): ... to here.
7495
7496 2011-05-08  Bruno Haible  <bruno@clisp.org>
7497
7498         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7499         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7500         AC_LIBOBJ invocations from here...
7501         * modules/getaddrinfo (configure.ac): ... to here.
7502         (Depends-on): Add conditions.
7503
7504 2011-05-08  Bruno Haible  <bruno@clisp.org>
7505
7506         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7507         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7508         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7509         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7510         (gl_PREREQ_INET_PTON): ... from here.
7511         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7512         gl_PREREQ_INET_PTON here.
7513         (Depends-on): Update condition.
7514
7515 2011-05-08  Bruno Haible  <bruno@clisp.org>
7516
7517         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7518         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7519         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7520         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7521         (gl_PREREQ_INET_NTOP): ... from here.
7522         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7523         gl_PREREQ_INET_NTOP here.
7524         (Depends-on): Update condition.
7525
7526 2011-05-08  Bruno Haible  <bruno@clisp.org>
7527
7528         iconv_open: Move AC_LIBOBJ invocations to module description.
7529         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7530         AC_LIBOBJ invocations from here...
7531         * modules/iconv_open (configure.ac): ... to here.
7532
7533 2011-05-08  Bruno Haible  <bruno@clisp.org>
7534
7535         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7536         If module 'iconv_open' is among the main modules and module
7537         'iconv_open-utf' is among the tests dependencies, then
7538         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7539         return the special iconv_t values. Therefore iconv() and iconv_close()
7540         must support these special iconv_t values, already in lib, not only in
7541         tests.
7542         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7543         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7544         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7545         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7546         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7547         (Depends-on): Add the dependencies of iconv_open-utf.
7548         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7549         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7550         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7551
7552 2011-05-08  Bruno Haible  <bruno@clisp.org>
7553
7554         group-member: Move AC_LIBOBJ invocations to module description.
7555         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7556         gl_PREREQ_GROUP_MEMBER invocations from here...
7557         * modules/group-member (configure.ac): ... to here.
7558
7559 2011-05-08  Bruno Haible  <bruno@clisp.org>
7560
7561         grantpt: Move AC_LIBOBJ invocations to module description.
7562         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7563         invocations from here...
7564         * modules/grantpt (configure.ac): ... to here.
7565
7566 2011-05-08  Bruno Haible  <bruno@clisp.org>
7567
7568         glob: Move AC_LIBOBJ invocations to module description.
7569         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7570         from here...
7571         * modules/glob (configure.ac): ... to here.
7572
7573 2011-05-08  Bruno Haible  <bruno@clisp.org>
7574
7575         getusershell: Move AC_LIBOBJ invocations to module description.
7576         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7577         Move AC_LIBOBJ invocation from here...
7578         * modules/getusershell (configure.ac): ... to here.
7579         (Depends-on): Update condition.
7580
7581 2011-05-08  Bruno Haible  <bruno@clisp.org>
7582
7583         gettimeofday: Move AC_LIBOBJ invocations to module description.
7584         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7585         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7586         gl_PREREQ_GETTIMEOFDAY invocations from here...
7587         * modules/gettimeofday (configure.ac): ... to here.
7588
7589 2011-05-08  Bruno Haible  <bruno@clisp.org>
7590
7591         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7592         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7593         just gl_FUNC_TZSET.
7594         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7595         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7597         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7598
7599 2011-05-08  Bruno Haible  <bruno@clisp.org>
7600
7601         getsubopt: Move AC_LIBOBJ invocations to module description.
7602         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7603         gl_PREREQ_GETSUBOPT invocations from here...
7604         * modules/getsubopt (configure.ac): ... to here.
7605
7606 2011-05-08  Bruno Haible  <bruno@clisp.org>
7607
7608         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7609         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7610         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7611         * modules/getpass-gnu (configure.ac): ... to here.
7612
7613 2011-05-08  Bruno Haible  <bruno@clisp.org>
7614
7615         getpass: Move AC_LIBOBJ invocations to module description.
7616         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7617         gl_PREREQ_GETPASS invocations from here...
7618         * modules/getpass (configure.ac): ... to here.
7619
7620 2011-05-08  Bruno Haible  <bruno@clisp.org>
7621
7622         getpagesize: Move AC_LIBOBJ invocations to module description.
7623         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7624         from here...
7625         * modules/getpagesize (configure.ac): ... to here.
7626
7627 2011-05-08  Bruno Haible  <bruno@clisp.org>
7628
7629         getopt: Move AC_LIBOBJ invocations to module description.
7630         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7631         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7632         invocations from here...
7633         * modules/getopt-gnu (configure.ac): ... to here.
7634         * modules/getopt-posix (configure.ac): ... and here.
7635         (Depends-on): Update condition.
7636
7637 2011-05-08  Bruno Haible  <bruno@clisp.org>
7638
7639         getopt, argp: Respect rules for use of AC_LIBOBJ.
7640         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7641         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7642         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7643         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7644
7645 2011-05-08  Bruno Haible  <bruno@clisp.org>
7646
7647         getlogin_r: Move AC_LIBOBJ invocations to module description.
7648         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7649         gl_PREREQ_GETLOGIN_R invocations from here...
7650         * modules/getlogin_r (configure.ac): ... to here.
7651
7652 2011-05-08  Bruno Haible  <bruno@clisp.org>
7653
7654         getlogin: Move AC_LIBOBJ invocations to module description.
7655         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7656         here...
7657         * modules/getlogin (configure.ac): ... to here.
7658
7659 2011-05-08  Bruno Haible  <bruno@clisp.org>
7660
7661         getloadavg: Move AC_LIBOBJ invocations to module description.
7662         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7663         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7664         * modules/getloadavg (configure.ac): ... to here.
7665
7666 2011-05-08  Bruno Haible  <bruno@clisp.org>
7667
7668         gethrxtime: Move AC_LIBOBJ invocations to module description.
7669         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7670         LIB_GETHRXTIME from here...
7671         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7672         invocations from here...
7673         * modules/gethrxtime (configure.ac): ... to here.
7674
7675 2011-05-08  Bruno Haible  <bruno@clisp.org>
7676
7677         gethostname: Move AC_LIBOBJ invocations to module description.
7678         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7679         gl_PREREQ_GETHOSTNAME invocations from here...
7680         * modules/gethostname (configure.ac): ... to here.
7681
7682 2011-05-08  Bruno Haible  <bruno@clisp.org>
7683
7684         getgroups: Move AC_LIBOBJ invocations to module description.
7685         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7686         here...
7687         * modules/getgroups (configure.ac): ... to here.
7688
7689 2011-05-08  Bruno Haible  <bruno@clisp.org>
7690
7691         getdtablesize: Move AC_LIBOBJ invocations to module description.
7692         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7693         invocation from here...
7694         * modules/getdtablesize (configure.ac): ... to here.
7695
7696 2011-05-08  Bruno Haible  <bruno@clisp.org>
7697
7698         getdomainname: Move AC_LIBOBJ invocations to module description.
7699         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7700         gl_PREREQ_GETDOMAINNAME invocations from here...
7701         * modules/getdomainname (configure.ac): ... to here.
7702
7703 2011-05-08  Bruno Haible  <bruno@clisp.org>
7704
7705         getline: Move AC_LIBOBJ invocations to module description.
7706         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7707         invocations from here...
7708         * modules/getline (configure.ac): ... to here.
7709
7710 2011-05-08  Bruno Haible  <bruno@clisp.org>
7711
7712         getline: Simplify.
7713         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7714         It's already handled through the module dependency.
7715
7716 2011-05-08  Bruno Haible  <bruno@clisp.org>
7717
7718         getdelim: Move AC_LIBOBJ invocations to module description.
7719         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7720         and gl_PREREQ_GETDELIM invocations from here...
7721         * modules/getdelim (configure.ac): ... to here.
7722         (Depends-on): Fix condition.
7723
7724 2011-05-08  Bruno Haible  <bruno@clisp.org>
7725
7726         getcwd: Move AC_LIBOBJ invocations to module description.
7727         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7728         invocations from here...
7729         * modules/getcwd (configure.ac): ... to here.
7730
7731 2011-05-08  Bruno Haible  <bruno@clisp.org>
7732
7733         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7734         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7735         here...
7736         * modules/getcwd-lgpl (configure.ac): ... to here.
7737
7738 2011-05-07  Bruno Haible  <bruno@clisp.org>
7739
7740         crypto/gc: Move AC_LIBOBJ invocations to module description.
7741         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7742         * modules/crypto/gc (configure.ac): ... to here.
7743
7744 2011-05-07  Bruno Haible  <bruno@clisp.org>
7745
7746         fwriting: Move AC_LIBOBJ invocations to module description.
7747         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7748         here...
7749         * modules/fwriting (configure.ac): ... to here.
7750
7751 2011-05-07  Bruno Haible  <bruno@clisp.org>
7752
7753         fwritable: Move AC_LIBOBJ invocations to module description.
7754         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7755         here...
7756         * modules/fwritable (configure.ac): ... to here.
7757
7758 2011-05-07  Bruno Haible  <bruno@clisp.org>
7759
7760         futimens: Move AC_LIBOBJ invocations to module description.
7761         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7762         here...
7763         * modules/futimens (configure.ac): ... to here.
7764
7765 2011-05-07  Bruno Haible  <bruno@clisp.org>
7766
7767         ftruncate: Move AC_LIBOBJ invocations to module description.
7768         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7769         gl_PREREQ_FTRUNCATE invocations from here...
7770         * modules/ftruncate (configure.ac): ... to here.
7771
7772 2011-05-07  Bruno Haible  <bruno@clisp.org>
7773
7774         fsync: Move AC_LIBOBJ invocations to module description.
7775         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7776         invocations from here...
7777         * modules/fsync (configure.ac): ... to here.
7778
7779 2011-05-07  Bruno Haible  <bruno@clisp.org>
7780
7781         fsusage: Move AC_LIBOBJ invocations to module description.
7782         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7783         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7784         * modules/fsusage (configure.ac): ... to here.
7785
7786 2011-05-07  Bruno Haible  <bruno@clisp.org>
7787
7788         freopen: Move AC_LIBOBJ invocations to module description.
7789         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7790         invocations from here...
7791         * modules/freopen (configure.ac): ... to here.
7792
7793 2011-05-07  Bruno Haible  <bruno@clisp.org>
7794
7795         free: Move AC_LIBOBJ invocations to module description.
7796         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7797         invocations from here...
7798         * modules/free (configure.ac): ... to here.
7799
7800 2011-05-07  Bruno Haible  <bruno@clisp.org>
7801
7802         freadable: Move AC_LIBOBJ invocations to module description.
7803         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7804         here...
7805         * modules/freadable (configure.ac): ... to here.
7806
7807 2011-05-07  Bruno Haible  <bruno@clisp.org>
7808
7809         fpurge: Move AC_LIBOBJ invocations to module description.
7810         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7811         invocations from here...
7812         * modules/fpurge (configure.ac): ... to here.
7813
7814 2011-05-07  Bruno Haible  <bruno@clisp.org>
7815
7816         fpending: Move AC_LIBOBJ invocations to module description.
7817         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7818         gl_FUNC_FPENDING.
7819         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7820         invocations from here...
7821         * modules/fpending (configure.ac): ... to here.
7822
7823 2011-05-07  Bruno Haible  <bruno@clisp.org>
7824
7825         fopen: Move AC_LIBOBJ invocations to module description.
7826         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7827         invocations from here...
7828         * modules/fopen (configure.ac): ... to here.
7829
7830 2011-05-07  Bruno Haible  <bruno@clisp.org>
7831
7832         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7833         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7834         gl_FUNC_FNMATCH_POSIX.
7835         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7836         invocations from here...
7837         * modules/fnmatch (configure.ac): ... to here.
7838         * modules/fnmatch-gnu (configure.ac): ... and here.
7839
7840 2011-05-07  Bruno Haible  <bruno@clisp.org>
7841
7842         flock: Move AC_LIBOBJ invocations to module description.
7843         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7844         invocations from here...
7845         * modules/flock (configure.ac): ... to here.
7846
7847 2011-05-07  Bruno Haible  <bruno@clisp.org>
7848
7849         fileblocks: Move AC_LIBOBJ invocations to module description.
7850         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7851         gl_PREREQ_FILEBLOCKS invocations from here...
7852         * modules/fileblocks (configure.ac): ... to here.
7853
7854 2011-05-06  Bruno Haible  <bruno@clisp.org>
7855
7856         fflush: Move AC_LIBOBJ invocations to module description.
7857         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7858         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7859         invocations from here...
7860         * modules/fflush (configure.ac): ... to here.
7861
7862 2011-05-06  Bruno Haible  <bruno@clisp.org>
7863
7864         fdopendir: Move AC_LIBOBJ invocations to module description.
7865         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7866         here...
7867         * modules/fdopendir (configure.ac): ... to here.
7868         (Depends-on): Improve conditions.
7869
7870 2011-05-06  Bruno Haible  <bruno@clisp.org>
7871
7872         _Exit: Move AC_LIBOBJ invocations to module description.
7873         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7874         invocations from here...
7875         * modules/_Exit (configure.ac): ... to here.
7876
7877 2011-05-21  Bruno Haible  <bruno@clisp.org>
7878
7879         euidaccess: Respect rules for use of AC_LIBOBJ.
7880         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7882         from here...
7883         * modules/euidaccess (configure.ac): ... to here.
7884
7885 2011-05-06  Bruno Haible  <bruno@clisp.org>
7886
7887         error: Move AC_LIBOBJ invocations to module description.
7888         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7889         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7890         invocations from here...
7891         * modules/error (configure.ac): ... to here.
7892
7893 2011-05-06  Bruno Haible  <bruno@clisp.org>
7894
7895         duplocale: Move AC_LIBOBJ invocations to module description.
7896         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7897         gl_PREREQ_DUPLOCALE invocations from here...
7898         * modules/duplocale (configure.ac): ... to here.
7899
7900 2011-05-05  Bruno Haible  <bruno@clisp.org>
7901
7902         dirfd: Move AC_LIBOBJ invocations to module description.
7903         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7904         gl_FUNC_DIRFD.
7905         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7906         here...
7907         * modules/dirfd (configure.ac): ... to here.
7908         (Depends-on): Fix condition.
7909
7910 2011-05-05  Bruno Haible  <bruno@clisp.org>
7911
7912         chown: Respect rules for use of AC_LIBOBJ.
7913         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7914         * modules/chown (configure.ac): ... to here.
7915
7916 2011-05-05  Bruno Haible  <bruno@clisp.org>
7917
7918         chdir-long: Move AC_LIBOBJ invocations to module description.
7919         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7920         gl_PREREQ_CHDIR_LONG invocations from here...
7921         * modules/chdir-long (configure.ac): ... to here.
7922
7923 2011-05-05  Bruno Haible  <bruno@clisp.org>
7924
7925         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7926         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7927         from here...
7928         * modules/canonicalize-lgpl (configure.ac): ... to here.
7929
7930 2011-05-05  Bruno Haible  <bruno@clisp.org>
7931
7932         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7933         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7934         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7935         REPLACE_CALLOC.
7936         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7937         * modules/calloc-gnu (configure.ac): Likewise.
7938
7939 2011-05-05  Bruno Haible  <bruno@clisp.org>
7940
7941         btowc: Move AC_LIBOBJ invocations to module description.
7942         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7943         invocations from here...
7944         * modules/btowc (configure.ac): ... to here.
7945
7946 2011-05-21  Bruno Haible  <bruno@clisp.org>
7947
7948         atexit: Move AC_LIBOBJ invocations to module description.
7949         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7951         here...
7952         * modules/atexit (configure.ac): ... to here.
7953
7954 2011-05-05  Bruno Haible  <bruno@clisp.org>
7955
7956         atoll: Move AC_LIBOBJ invocations to module description.
7957         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7958         invocations from here...
7959         * modules/atoll (configure.ac): ... to here.
7960
7961 2011-05-05  Bruno Haible  <bruno@clisp.org>
7962
7963         argz: Move AC_LIBOBJ invocations to module description.
7964         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7965         * modules/argz (configure.ac): ... to here.
7966
7967 2011-05-05  Bruno Haible  <bruno@clisp.org>
7968
7969         alphasort: Move AC_LIBOBJ invocations to module description.
7970         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7971         gl_PREREQ_ALPHASORT invocations from here...
7972         * modules/alphasort (configure.ac): ... to here.
7973
7974 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7975
7976         verify: new macro verify_expr; verify_true deprecated
7977         * NEWS: Mention this.
7978         * doc/verify.texi (Compile-time Assertions): Document this.
7979         * lib/verify.h (verify_true): Deprecate.
7980         (verify_expr): New macro.
7981         * tests/test-verify.c (function): Test verify_expr.
7982
7983 2011-06-14  Jim Meyering  <meyering@redhat.com>
7984
7985         init.sh: give more portable redirection-related advice in a comment
7986         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7987         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7988         for lots of discussion.  Stefano Lattarini suggested the solution
7989         of putting "9>&2" after the command.  Reported by Bruno Haible.
7990
7991 2011-06-13  Bruno Haible  <bruno@clisp.org>
7992
7993         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7994         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7995         'none'.
7996
7997 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7998
7999         ftoastr: use strtof only if HAVE_STRTOF
8000         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8002         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8003         * modules/ftoastr (configure.ac): Check for strtof.
8004
8005 2011-06-13  Bruno Haible  <bruno@clisp.org>
8006
8007         gnulib-tool: Addendum to 2011-06-08 commit.
8008         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8009         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8010
8011 2011-06-13  Bruno Haible  <bruno@clisp.org>
8012
8013         fseeko: Provide a non-inline replacement of fseek().
8014         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8015         * modules/fseeko (Depends-on): Add fseek.
8016         * modules/fseek (License): Change to LGPLv2+.
8017
8018 2011-06-13  Bruno Haible  <bruno@clisp.org>
8019
8020         ftello: Provide a non-inline replacement of ftell().
8021         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8022         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8023         not have ftello() (such as on mingw).
8024         * modules/ftello (Depends-on): Add ftell.
8025         * modules/ftell (License): Change to LGPLv2+.
8026
8027 2011-05-07  Bruno Haible  <bruno@clisp.org>
8028
8029         ftell: Move AC_LIBOBJ invocations to module description.
8030         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8031         * modules/ftell (configure.ac): ... to here.
8032
8033 2011-05-07  Bruno Haible  <bruno@clisp.org>
8034
8035         ftello: Respect rules for use of AC_LIBOBJ.
8036         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8037         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8038         here...
8039         * modules/ftello (configure.ac): ... to here.
8040
8041 2011-05-07  Bruno Haible  <bruno@clisp.org>
8042
8043         fseeko: Simplify.
8044         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8045         (gl_FUNC_FSEEKO): Inline it here.
8046
8047 2011-05-07  Bruno Haible  <bruno@clisp.org>
8048
8049         fseek: Move AC_LIBOBJ invocations to module description.
8050         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8051         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8052         * modules/fseek (configure.ac): ... to here.
8053
8054 2011-05-07  Bruno Haible  <bruno@clisp.org>
8055
8056         fseek: Respect rules for use of AC_LIBOBJ.
8057         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8058         here...
8059         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8060
8061 2011-05-07  Bruno Haible  <bruno@clisp.org>
8062
8063         fseeko: Respect rules for use of AC_LIBOBJ.
8064         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8065         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8066         here...
8067         * modules/fseeko (configure.ac): ... to here.
8068
8069 2011-06-13  Bruno Haible  <bruno@clisp.org>
8070
8071         gnulib-tool: Allow comments in the 'Depends-on' section.
8072         * doc/gnulib.texi (Module description): Mention comment syntax in the
8073         Depends-on section.
8074         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8075
8076 2011-06-13  Bruno Haible  <bruno@clisp.org>
8077
8078         file-set.h: guard __attibute__ use, now that it's not always defined
8079         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8080         versions that support it.  This fixes a coreutils build failure with
8081         the vendor cc on HP-UX 11.31.
8082
8083 2011-06-12  Bruno Haible  <bruno@clisp.org>
8084
8085         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8086         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8087         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8088         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8089         (acl, aclsort): New declarations.
8090         (aclv_nontrivial): New declaration.
8091         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8092         (file_has_acl): Read also the second kind of HP-UX ACLs.
8093         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8094         kind of HP-UX ACLs if the first kind fails.
8095         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8096         second kind of HP-UX ACLs.
8097         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8098         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8099         agree.
8100         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8101         hpuxjfs.
8102         Handle hpuxjfs.
8103         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8104         hpuxjfs.
8105         Handle hpuxjfs.
8106         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8107         (func_test_same_acls): Use both lsacl and getacl.
8108         Handle hpuxjfs.
8109         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8110         (func_test_same_acls): Use both lsacl and getacl.
8111         Handle hpuxjfs.
8112
8113 2011-06-12  Bruno Haible  <bruno@clisp.org>
8114
8115         acl: Complete the 2010-08-10 fix.
8116         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8117         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8118         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8119         explicitly.
8120         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8121         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8122
8123 2011-06-12  Bruno Haible  <bruno@clisp.org>
8124
8125         spawn-pipe tests: Comments.
8126         * tests/test-spawn-pipe-child.c (main): Update comment.
8127         Reported by James Youngman <jay@gnu.org>.
8128
8129 2011-06-11  James Youngman  <jay@gnu.org>
8130
8131         New module 'stat-size'.
8132         * modules/stat-size: New module.  Provides macros for accessing
8133         file size information in instances of struct stat.  Depends on the
8134         fileblocks module because it calls st_blocks.
8135         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8136         * doc/gnulib.texi: Include stat-size.texi.
8137         * doc/stat-size.texi: Documentation for this module.
8138         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8139         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8140         AC_STRUCT_ST_BLOCKS.
8141
8142 2011-06-09  Bruno Haible  <bruno@clisp.org>
8143
8144         thread: Support pthreads-win32.
8145         * lib/glthread/thread.h (gl_thread_self): Define differently on
8146         pthreads-win32.
8147         (gl_null_thread): New declaration.
8148         (gl_thread_self_pointer): New macro.
8149         * lib/glthread/thread.c (gl_null_thread): New constant.
8150         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8151         gl_thread_self.
8152         * tests/test-tls.c: Likewise.
8153         Suggested by Paul Eggert. Reported by Eric Blake.
8154
8155 2011-06-09  Bruno Haible  <bruno@clisp.org>
8156
8157         thread: Fix confusion between NULL and 0.
8158         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8159         Reported by Paul Eggert.
8160
8161 2011-06-09  Bruno Haible  <bruno@clisp.org>
8162
8163         spawn-pipe tests: Avoid test failure on HP-UX 11.
8164         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8165         is closed.
8166
8167 2011-06-09  Bruno Haible  <bruno@clisp.org>
8168
8169         acl tests: Fix compilation error on HP-UX 11.
8170         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8171
8172 2011-06-09  Bruno Haible  <bruno@clisp.org>
8173
8174         rmdir: Avoid test failure on HP-UX 10.20.
8175         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8176         EEXIST.
8177
8178 2011-06-08  Eric Blake  <eblake@redhat.com>
8179
8180         perror: fix test on mingw
8181         * modules/perror-tests (Depends-on): Add dup2.
8182
8183         strerror_r-posix: fix on MacOS
8184         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8185         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8186         logic bug.
8187         * lib/strerror_r.c (strerror_r): Fix the bug.
8188         * lib/strerror.c (strerror): Likewise.
8189         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8190         problem.
8191         * doc/posix-functions/strerror.texi (strerror): Likewise.
8192         * doc/posix-functions/perror.texi (perror): Likewise.
8193         * tests/test-strerror.c (main): Enhance test.
8194         * tests/test-strerror_r.c (main): Likewise.
8195
8196 2011-06-08  Bruno Haible  <bruno@clisp.org>
8197
8198         gnulib-tool: Better isolation between different gnulib-tool invocations.
8199         * gnulib-tool: New option --witness-c-macro.
8200         (witness_c_macro): New variable.
8201         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8202         AM_CPPFLAGS define it as a C macro.
8203         (func_emit_tests_Makefile_am): Likewise.
8204         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8205         read it from there.
8206         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8207         m4_define, not AC_DEFUN.
8208         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8209         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8210         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8211         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8212         s|...|...|, to substitute the values of the GNULIB_* module indicator
8213         variables.
8214         * modules/dirent (Makefile.am): Likewise.
8215         * modules/fcntl-h (Makefile.am): Likewise.
8216         * modules/iconv-h (Makefile.am): Likewise.
8217         * modules/langinfo (Makefile.am): Likewise.
8218         * modules/locale (Makefile.am): Likewise.
8219         * modules/math (Makefile.am): Likewise.
8220         * modules/netdb (Makefile.am): Likewise.
8221         * modules/poll-h (Makefile.am): Likewise.
8222         * modules/pty (Makefile.am): Likewise.
8223         * modules/search (Makefile.am): Likewise.
8224         * modules/signal (Makefile.am): Likewise.
8225         * modules/spawn (Makefile.am): Likewise.
8226         * modules/stdio (Makefile.am): Likewise.
8227         * modules/stdlib (Makefile.am): Likewise.
8228         * modules/string (Makefile.am): Likewise.
8229         * modules/sys_ioctl (Makefile.am): Likewise.
8230         * modules/sys_select (Makefile.am): Likewise.
8231         * modules/sys_socket (Makefile.am): Likewise.
8232         * modules/sys_stat (Makefile.am): Likewise.
8233         * modules/sys_times (Makefile.am): Likewise.
8234         * modules/sys_utsname (Makefile.am): Likewise.
8235         * modules/sys_wait (Makefile.am): Likewise.
8236         * modules/termios (Makefile.am): Likewise.
8237         * modules/time (Makefile.am): Likewise.
8238         * modules/unistd (Makefile.am): Likewise.
8239         * modules/wchar (Makefile.am): Likewise.
8240
8241 2011-06-08  Eric Blake  <eblake@redhat.com>
8242
8243         strerror: simplify replacement
8244         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8245         * modules/strerror (configure.ac): No prereqs needed here...
8246         * modules/strerror-override (configure.ac): ...but this needs it.
8247         (Files): Add file for needed prereq macro.
8248
8249 2011-06-08  Bruno Haible  <bruno@clisp.org>
8250
8251         strerror_r-posix: Tweaks.
8252         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8253         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8254         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8255         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8256         (gl_FUNC_STRERROR_R): ... to here.
8257         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8258
8259 2011-06-07  Eric Blake  <eblake@redhat.com>
8260
8261         perror: document fixed bugs
8262         * doc/posix-functions/perror.texi (perror): Document recent
8263         patches.
8264
8265 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8266
8267         stat-time: get_stat_birthtime failure is better-defined
8268         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8269         return a timestamp whose tv_sec and tv_nsec values are both -1.
8270         Previously, the spec said only that the tv_nsec value was negative.
8271         This upward-compatible change simplifies GNU tar a bit.
8272
8273 2011-06-07  Eric Blake  <eblake@redhat.com>
8274
8275         strerror_r-posix: work around cygwin 1.7.9
8276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8277         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8278         bug without replacing strerror_r.
8279         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8280         strerror_r is buggy, but without requiring strerror_r compilation.
8281         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8282
8283         test-perror: relax test to ignore cygwin bug
8284         * tests/test-perror2.c (main): Relax test on requiring detection
8285         of stream errors, and use unbuffered stream.
8286         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8287         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8288         * doc/posix-functions/fputc.texi (fputc): Likewise.
8289         * doc/posix-functions/fputs.texi (fputs): Likewise.
8290         * doc/posix-functions/fputws.texi (fputws): Likewise.
8291         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8292         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8293         * doc/posix-functions/getopt.texi (getopt): Likewise.
8294         * doc/posix-functions/perror.texi (perror): Likewise.
8295         * doc/posix-functions/printf.texi (printf): Likewise.
8296         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8297         * doc/posix-functions/psignal.texi (psignal): Likewise.
8298         * doc/posix-functions/putc.texi (putc): Likewise.
8299         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8300         Likewise.
8301         * doc/posix-functions/putchar.texi (putchar): Likewise.
8302         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8303         Likewise.
8304         * doc/posix-functions/puts.texi (puts): Likewise.
8305         * doc/posix-functions/putwc.texi (putwc): Likewise.
8306         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8307         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8308         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8309         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8310         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8311         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8312         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8313         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8314
8315 2011-05-22  Bruno Haible  <bruno@clisp.org>
8316
8317         strerror: Move AC_LIBOBJ invocations to module description.
8318         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8319         gl_PREREQ_STRERROR invocations from here...
8320         * modules/strerror (configure.ac): ... to here.
8321
8322 2011-05-21  Bruno Haible  <bruno@clisp.org>
8323
8324         perror: Use common idiom.
8325         * modules/perror (configure.ac): Reorder statements.
8326
8327 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8328
8329         tests: fix usage message in 'mktempd_'
8330         * tests/init.sh (mktempd_): In the usage message, use literal
8331         'mktempd_', not '$ME' (which is even undefined), as the name of
8332         the subroutine.
8333
8334 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8335
8336         tests init: new function 'fatal_', for hard errors
8337         Before this patch, the only way offered by tests/init.sh to
8338         properly signal a hard error was the `framework_failure_'
8339         function.  But the error message issued by that function,
8340         as its name would suggest, refers to a set-up failure in the
8341         testsuite, while hard errors can obviously also be due to
8342         other reasons.  The best way to fix this inconsistency is to
8343         introduce a new function with a more general error message.
8344         * tests/init.sh (fatal_): New function.
8345
8346 2011-06-06  Eric Blake  <eblake@redhat.com>
8347
8348         canonicalize-lgpl: use common idiom
8349         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8350         over newer POSIX -Rf.
8351         Reported by Bruno Haible.
8352
8353         canonicalize-lgpl: work around AIX realpath bug
8354         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8355         * doc/posix-functions/realpath.texi (realpath): Document it.
8356         Reported by Bruno Haible.
8357
8358         strerror: work around FreeBSD bug
8359         * lib/strerror.c (strerror): Special case 0.
8360         Reported by Bruno Haible.
8361
8362         strerror-override: avoid bloating errno module
8363         * modules/errno (Files, configure.ac): Move replacement strings...
8364         * modules/strerror-override: ...to new module.
8365         * modules/strerror (Depends-on): Add strerror-override.
8366         * modules/strerror_r-posix (Depends-on): Likewise.
8367         * MODULES.html.sh: Document new module.
8368         Reported by Bruno Haible.
8369
8370 2011-06-06  Bruno Haible  <bruno@clisp.org>
8371
8372         spawn-pipe tests: Rename program.
8373         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8374         * tests/test-spawn-pipe-child.c: Update comment.
8375         * tests/test-spawn-pipe.sh: Update.
8376         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8377
8378         spawn-pipe tests: Link the child program only against libc.
8379         * tests/test-spawn-pipe-child.c: New file, extracted from
8380         tests/test-spawn-pipe.c.
8381         (main): Expect only one argument.
8382         (is_open): New function, copied from tests/test-pipe.c.
8383         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8384         (child_main): Remove function.
8385         (test_pipe): Pass only one argument to the child program.
8386         (main): Remove child process code. Expect the child program's name as
8387         first argument.
8388         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8389         argument.
8390         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8391         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8392         test-spawn-pipe-child against no libraries.
8393
8394 2011-06-06  Bruno Haible  <bruno@clisp.org>
8395
8396         careadlinkat: Avoid mismatch between ssize_t and int.
8397         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8398         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8399
8400 2011-06-06  Jim Meyering  <meyering@redhat.com>
8401
8402         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8403         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8404         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8405
8406 2011-06-05  Bruno Haible  <bruno@clisp.org>
8407
8408         ansi-c++-opt: Interoperability with libtool.
8409         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8410         set the variable to "no", not to ":".
8411         * NEWS: Mention the change.
8412
8413 2011-06-05  Bruno Haible  <bruno@clisp.org>
8414
8415         acl: Fix test failure on AIX 7.
8416         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8417         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8418
8419 2011-06-05  Bruno Haible  <bruno@clisp.org>
8420
8421         pipe-filter-ii: Fix test failure on AIX and IRIX.
8422         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8423         with EAGAIN, retry with a smaller buffer size.
8424
8425 2011-06-05  Bruno Haible  <bruno@clisp.org>
8426
8427         localename: Fix link dependencies.
8428         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8429         * modules/localename-tests (Makefile.am): Link test-localename with
8430         $(LIBTHREAD).
8431
8432 2011-06-05  Bruno Haible  <bruno@clisp.org>
8433
8434         error: Avoid gcc warning.
8435         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8436
8437 2011-06-05  Bruno Haible  <bruno@clisp.org>
8438
8439         unsetenv: Avoid gcc warning.
8440         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8441
8442 2011-06-05  Bruno Haible  <bruno@clisp.org>
8443
8444         setenv: Avoid gcc warning.
8445         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8446
8447 2011-06-05  Bruno Haible  <bruno@clisp.org>
8448
8449         sys_select: Ensure memset is declared also on AIX 7.
8450         * lib/sys_select.in.h: Include <string.h> also on AIX.
8451         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8452         self-contained also on AIX 7.1.
8453
8454 2011-06-04  Jim Meyering  <meyering@redhat.com>
8455
8456         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8457         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8458         function name, "error".
8459         (_gl_translatable_diag_func_re): New configurable variable.
8460
8461 2011-06-04  Bruno Haible  <bruno@clisp.org>
8462
8463         getopt: Avoid gcc warning.
8464         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8465
8466 2011-06-04  Bruno Haible  <bruno@clisp.org>
8467
8468         strerror_r: Fix comments.
8469         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8470         commit.
8471
8472 2011-06-04  Bruno Haible  <bruno@clisp.org>
8473
8474         perror: Fix compilation error.
8475         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8476         Undefine fprintf, not sprintf.
8477         * modules/perror (Depends-on): Remove intprops, verify.
8478
8479 2011-06-04  Bruno Haible  <bruno@clisp.org>
8480
8481         setlocale: Enable replacement on Cygwin 1.5.
8482         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8483         Cygwin 1.5.x.
8484         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8485         LC_CTYPE category also exists on Cygwin 1.5.x.
8486
8487 2011-06-04  Bruno Haible  <bruno@clisp.org>
8488
8489         strerror-override: Don't disable symbol renamings.
8490         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8491         * lib/strerror-override.c: Include config.h.
8492         (strerror_override): Don't undefine.
8493
8494 2011-06-03  Bruno Haible  <bruno@clisp.org>
8495
8496         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8497         * lib/localename.h: Update copyright header.
8498         * lib/localename.c: Likewise.
8499         * lib/relocatable.h: Likewise.
8500         * lib/relocatable.c: Likewise.
8501
8502 2011-06-02  Bruno Haible  <bruno@clisp.org>
8503
8504         doc: Fix a module name.
8505         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8506
8507 2011-06-02  Bruno Haible  <bruno@clisp.org>
8508
8509         pipe2: Remove dependency on 'nonblocking' module.
8510         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8511         O_NONBLOCK is defined by gnulib.
8512         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8513         is zero.
8514         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8515         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8516         defined by gnulib.
8517         (get_nonblocking_flag): New function.
8518         (main): Test O_NONBLOCK flag only if it is nonzero.
8519         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8520
8521 2011-06-03  Jim Meyering  <meyering@redhat.com>
8522
8523         maint: three new prohibit-header-without-use rules
8524         Prohibit use of cloexec.h, posixver.h, same.h without use.
8525         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8526         (sc_prohibit_posixver_without_use): Likewise.
8527         (sc_prohibit_same_without_use): Likewise.
8528
8529 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8530
8531         allocator: 'die' routine is now given requested size
8532         * lib/allocator.h (struct allocator.die): New size arg.
8533         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8534         If the actual problem is an ssize_t limitation, not a size_t or
8535         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8536
8537 2011-06-01  Eric Blake  <eblake@redhat.com>
8538
8539         strerror: drop strerror_r dependency
8540         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8541         * lib/strerror-override.c (strerror_override): ...to new file.
8542         * lib/strerror-override.h: Add prototype.
8543         * lib/strerror-impl.h: Delete.
8544         * lib/strerror.c (strerror): New implementation.
8545         * modules/errno (Files): Add new files.
8546         (configure.ac): Compile new file as appropriate.
8547         * modules/strerror (Files): Drop unused file.
8548         (Depends-on): Drop strerror_r-posix.
8549         * MODULES.html.sh: Document strerror_r-posix.
8550         Requested by Sam Steingold.
8551
8552         perror: call strerror_r directly
8553         * modules/perror (Files): Drop strerror-impl.h.
8554         * lib/perror.c (perror): Use our own stack buffer, rather than
8555         calling a wrapper that uses static storage.
8556         * doc/posix-functions/perror.texi (perror): Document a limitation
8557         of our replacement.
8558
8559         strerror_r: fix includes for FreeBSD
8560         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8561         since we use abort on some platforms.
8562         Reported by Matthias Bolte.
8563
8564 2011-05-31  Bruno Haible  <bruno@clisp.org>
8565
8566         Fix link errors in tests: openat-die uses gettext-h.
8567         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8568         against $(LIBINTL).
8569         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8570         against $(LIBINTL).
8571         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8572         $(LIBINTL).
8573         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8574         against $(LIBINTL).
8575         * modules/linkat-tests (Makefile.am): Link test-linkat against
8576         $(LIBINTL).
8577         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8578         $(LIBINTL).
8579         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8580         against $(LIBINTL).
8581         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8582         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8583         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8584         $(LIBINTL).
8585         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8586         $(LIBINTL).
8587         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8588         $(LIBINTL).
8589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8590
8591 2011-05-31  Bruno Haible  <bruno@clisp.org>
8592
8593         Fix link errors in tests: wait-process uses gettext-h.
8594         * modules/nonblocking-pipe-tests (Makefile.am): Set
8595         test_nonblocking_pipe_main_LDADD.
8596         * modules/nonblocking-socket-tests (Makefile.am): Link
8597         test-nonblocking-socket-main against $(LIBINTL).
8598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8599
8600 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8601
8602         assert-h: work around 'verify' incompatibility
8603         * lib/verify.h: Use @...@ directives, not ifdef.
8604         * modules/assert-h (assert.h): Implement the directives.
8605         (assert.h): Substitute the symbol-prefix more consistently.
8606
8607 2011-05-29  Jim Meyering  <meyering@redhat.com>
8608
8609         trim: remove three superfluous assignments
8610         * lib/trim.c (trim2): Remove three superfluous assignments
8611         and correct brace positioning.
8612
8613 2011-05-29  Bruno Haible  <bruno@clisp.org>
8614
8615         wctype-h: Avoid namespace pollution on Solaris 2.6.
8616         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8617         identifiers.
8618         * doc/posix-headers/wctype.texi: Mention the problem.
8619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8620
8621 2011-05-28  Jim Meyering  <meyering@redhat.com>
8622
8623         parse-datetime.y: accommodate -Wstrict-overflow
8624         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8625         placate -Wstrict-overflow.
8626
8627         trim: avoid a warning from -O2 -Wstrict-overflow
8628         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8629
8630 2011-05-29  Bruno Haible  <bruno@clisp.org>
8631
8632         gnulib-tool: Fix bug in yesterday's commit.
8633         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8634         twice.
8635
8636 2011-05-29  Bruno Haible  <bruno@clisp.org>
8637
8638         Allow multiple gnulib generated include files to be combined.
8639         * gnulib-tool (func_compute_include_guard_prefix): New function.
8640         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8641         ${gl_include_guard_prefix} references.
8642         (func_import, func_create_testdir): Invoke
8643         func_compute_include_guard_prefix.
8644         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8645         * lib/ctype.in.h: Likewise.
8646         * lib/dirent.in.h: Likewise.
8647         * lib/errno.in.h: Likewise.
8648         * lib/fcntl.in.h: Likewise.
8649         * lib/float.in.h: Likewise.
8650         * lib/getopt.in.h: Likewise.
8651         * lib/iconv.in.h: Likewise.
8652         * lib/langinfo.in.h: Likewise.
8653         * lib/locale.in.h: Likewise.
8654         * lib/math.in.h: Likewise.
8655         * lib/netdb.in.h: Likewise.
8656         * lib/netinet_in.in.h: Likewise.
8657         * lib/poll.in.h: Likewise.
8658         * lib/pthread.in.h: Likewise.
8659         * lib/pty.in.h: Likewise.
8660         * lib/sched.in.h: Likewise.
8661         * lib/se-selinux.in.h: Likewise.
8662         * lib/search.in.h: Likewise.
8663         * lib/signal.in.h: Likewise.
8664         * lib/spawn.in.h: Likewise.
8665         * lib/stdarg.in.h: Likewise.
8666         * lib/stddef.in.h: Likewise.
8667         * lib/stdint.in.h: Likewise.
8668         * lib/stdio.in.h: Likewise.
8669         * lib/stdlib.in.h: Likewise.
8670         * lib/string.in.h: Likewise.
8671         * lib/strings.in.h: Likewise.
8672         * lib/sys_file.in.h: Likewise.
8673         * lib/sys_ioctl.in.h: Likewise.
8674         * lib/sys_select.in.h: Likewise.
8675         * lib/sys_socket.in.h: Likewise.
8676         * lib/sys_stat.in.h: Likewise.
8677         * lib/sys_time.in.h: Likewise.
8678         * lib/sys_times.in.h: Likewise.
8679         * lib/sys_uio.in.h: Likewise.
8680         * lib/sys_utsname.in.h: Likewise.
8681         * lib/sys_wait.in.h: Likewise.
8682         * lib/sysexits.in.h: Likewise.
8683         * lib/termios.in.h: Likewise.
8684         * lib/time.in.h: Likewise.
8685         * lib/unistd.in.h: Likewise.
8686         * lib/wchar.in.h: Likewise.
8687         * lib/wctype.in.h: Likewise.
8688         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8689         * modules/ctype (Makefile.am): Likewise.
8690         * modules/dirent (Makefile.am): Likewise.
8691         * modules/errno (Makefile.am): Likewise.
8692         * modules/fcntl-h (Makefile.am): Likewise.
8693         * modules/float (Makefile.am): Likewise.
8694         * modules/getopt-posix (Makefile.am): Likewise.
8695         * modules/iconv-h (Makefile.am): Likewise.
8696         * modules/langinfo (Makefile.am): Likewise.
8697         * modules/locale (Makefile.am): Likewise.
8698         * modules/math (Makefile.am): Likewise.
8699         * modules/netdb (Makefile.am): Likewise.
8700         * modules/netinet_in (Makefile.am): Likewise.
8701         * modules/poll-h (Makefile.am): Likewise.
8702         * modules/pthread (Makefile.am): Likewise.
8703         * modules/pty (Makefile.am): Likewise.
8704         * modules/sched (Makefile.am): Likewise.
8705         * modules/search (Makefile.am): Likewise.
8706         * modules/selinux-h (Makefile.am): Likewise.
8707         * modules/signal (Makefile.am): Likewise.
8708         * modules/spawn (Makefile.am): Likewise.
8709         * modules/stdarg (Makefile.am): Likewise.
8710         * modules/stddef (Makefile.am): Likewise.
8711         * modules/stdint (Makefile.am): Likewise.
8712         * modules/stdio (Makefile.am): Likewise.
8713         * modules/stdlib (Makefile.am): Likewise.
8714         * modules/string (Makefile.am): Likewise.
8715         * modules/strings (Makefile.am): Likewise.
8716         * modules/sys_file (Makefile.am): Likewise.
8717         * modules/sys_ioctl (Makefile.am): Likewise.
8718         * modules/sys_select (Makefile.am): Likewise.
8719         * modules/sys_socket (Makefile.am): Likewise.
8720         * modules/sys_stat (Makefile.am): Likewise.
8721         * modules/sys_time (Makefile.am): Likewise.
8722         * modules/sys_times (Makefile.am): Likewise.
8723         * modules/sys_uio (Makefile.am): Likewise.
8724         * modules/sys_utsname (Makefile.am): Likewise.
8725         * modules/sys_wait (Makefile.am): Likewise.
8726         * modules/sysexits (Makefile.am): Likewise.
8727         * modules/termios (Makefile.am): Likewise.
8728         * modules/time (Makefile.am): Likewise.
8729         * modules/unistd (Makefile.am): Likewise.
8730         * modules/wchar (Makefile.am): Likewise.
8731         * modules/wctype-h (Makefile.am): Likewise.
8732         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8733
8734 2011-05-29  Bruno Haible  <bruno@clisp.org>
8735
8736         assert-h: Allow multiple gnulib generated replacements to coexist.
8737         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8738
8739 2011-05-29  Bruno Haible  <bruno@clisp.org>
8740
8741         argp: Allow coexistence with strerror_r-posix module.
8742         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8743         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8744         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8745         not the glibc signature.
8746
8747 2011-05-28  Bruno Haible  <bruno@clisp.org>
8748
8749         gnulib-tool: Alternative structure of testdirs, similar to --import.
8750         * gnulib-tool: New option --single-configure.
8751         (func_usage): Document it.
8752         (single_configure): New variable.
8753         (func_modules_transitive_closure_separately,
8754         func_modules_transitive_closure_separately,
8755         func_determine_use_libtests, func_modules_add_dummy_separately,
8756         func_modules_to_filelist_separately): New functions, extracted from
8757         func_import.
8758         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8759         (func_import): Use the new functions.
8760         (func_create_testdir): Set final_modules. Handle $single_configure =
8761         true case.
8762
8763 2011-05-28  Bruno Haible  <bruno@clisp.org>
8764
8765         getloadavg: Remove an unreliable safety check.
8766         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8767         getloadavg.c is in place.
8768         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8769         Reported by Sam Steingold <sds@gnu.org>.
8770
8771 2011-05-28  Bruno Haible  <bruno@clisp.org>
8772
8773         doc: Cleanup yet another file produced by texinfo.tex.
8774         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8775
8776 2011-05-28  Bruno Haible  <bruno@clisp.org>
8777
8778         Finish the conditional dependencies mechanism.
8779         * gnulib-tool: New option --no-conditional-dependencies.
8780         (func_usage): Document it. Don't mark --conditional-dependencies as
8781         experimental.
8782         (cond_dependencies): The possible values can now be true, false, empty.
8783         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8784         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8785         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8786
8787 2011-05-28  Bruno Haible  <bruno@clisp.org>
8788
8789         doc: Use a recent texinfo.tex.
8790         * doc/Makefile (tex_opts): New variable.
8791         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8792
8793 2011-05-28  Jim Meyering  <meyering@redhat.com>
8794
8795         intprops.h: adjust comment to match code change
8796         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8797         only once, it *may* have side effects.  Also fix an unrelated typo.
8798         (_GL_INT_SIGNED): Likewise.
8799
8800 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8801
8802         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8803
8804 2011-05-26  Bruno Haible  <bruno@clisp.org>
8805
8806         mbsrchr: Avoid collision with system function on Interix.
8807         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8808         Reported by Markus Duft <mduft@gentoo.org>.
8809
8810 2011-05-15  James Youngman  <jay@gnu.org>
8811
8812         getopt: for ambiguous options, enumerate the possibilities.
8813         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8814         the ambiguous options when an ambiguous prefix is given. This was
8815         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8816         glibc change was
8817         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8818
8819 2011-05-25  Eric Blake  <eblake@redhat.com>
8820
8821         getcwd: work around mingw bug
8822         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8823         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8824         Reported by Matthias Bolte.
8825
8826 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8827
8828         test-intprops: disable -Wtype-limits diagnostics
8829         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8830         diagnostics.  Otherwise, the integer overflow macros generate many
8831         diagnostics.  Reported by Jim Meyering in
8832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8833
8834         intprops: shorten, to pacify gcc -Woverlength-strings
8835         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8836         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8837         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8838         likely to run afoul of C compiler limits for string constant lengths.
8839         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8840
8841 2011-05-24  Eric Blake  <eblake@redhat.com>
8842
8843         docs: document recently fixed glibc printf bug
8844         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8845         * doc/posix-functions/printf.texi (printf): Likewise.
8846         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8847         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8848
8849         closein-tests: convert to init.sh
8850         * modules/closein-tests (Files): Add init.sh
8851         * tests/test-closein.sh Use it.
8852
8853         yesno-tests: convert to init.sh
8854         * modules/yesno-tests (Files): Add init.sh.
8855         * tests/test-yesno.sh: Use it.
8856
8857         atexit-tests: ensure reliable exit status
8858         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8859         Reported by Bruno Haible.
8860
8861 2011-05-24  Bruno Haible  <bruno@clisp.org>
8862
8863         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8864         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8865         gl_PREREQ_STRERROR_R invocations from here...
8866         * modules/strerror_r-posix (configure.ac): ... to here.
8867
8868 2011-05-24  Eric Blake  <eblake@redhat.com>
8869
8870         strerror_r: fix missing header
8871         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8872
8873         strerror_r: fix AIX test failures
8874         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8875         ERANGE failure.
8876
8877         strerror_r: fix Solaris test failures
8878         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8879         failures.
8880         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8881
8882         strerror_r: enforce POSIX recommendations
8883         * lib/strerror_r.c (safe_copy): New helper method.
8884         (strerror_r): Guarantee a non-empty string.
8885         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8886         recent POSIX rulings and to match our strerror guarantees.
8887         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8888
8889 2011-05-24  Jim Meyering  <meyering@redhat.com>
8890
8891         test-perror2.c: avoid warning about unused variable
8892         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8893
8894 2011-05-24  Eric Blake  <eblake@redhat.com>
8895
8896         perror: avoid spurious test failure on HP-UX
8897         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8898
8899         tests: fix logic bug in init.sh
8900         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8901         shell.
8902
8903 2011-05-24  Jim Meyering  <meyering@redhat.com>
8904
8905         utimensat: do not reference an out-of-scope buffer
8906         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8907         declared in an inner scope, yet "times" would be dereferenced outside
8908         the scope in which "ts" was valid.
8909         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8910         of ts[2] "out/up", so that the use of aliased "times" (via
8911         "times = ts;") does not end up referencing an out-of-scope "ts"
8912
8913         opendir-safer.c: don't clobber errno; don't close negative FD
8914         * lib/opendir-safer.c (opendir_safer):
8915         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8916         file descriptor, and more importantly, don't clobber the
8917         offending errno value with EINVAL.  Before, upon failure
8918         of dup_safer, we would pass the negative file descriptor to
8919         fdopendir, which would clobber errno.
8920
8921 2011-05-23  Bruno Haible  <bruno@clisp.org>
8922
8923         idcache: Fix module description.
8924         * modules/idcache (Include): Set to "idcache.h".
8925
8926 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8927
8928         gnulib-tool: fix portability problem with MacOS sed
8929         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8930         before the "}".  Problem reported by Leo in
8931         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8932         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8933         sed_extract_condition1, sed_extract_condition2.
8934
8935 2011-05-23  Bruno Haible  <bruno@clisp.org>
8936
8937         hash: Simplify autoconf macro.
8938         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8939
8940 2011-05-23  Bruno Haible  <bruno@clisp.org>
8941
8942         getugroups: Fix module description.
8943         * modules/getugroups (Include): Set to "getugroups.h".
8944
8945 2011-05-23  Bruno Haible  <bruno@clisp.org>
8946
8947         linkat: Simplify autoconf macro.
8948         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8949
8950 2011-05-23  Bruno Haible  <bruno@clisp.org>
8951             Eric Blake  <eblake@redhat.com>
8952
8953         linkat, renameat: Update dependencies.
8954         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8955         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8956         symlinkat.
8957
8958 2011-05-23  Jim Meyering  <meyering@redhat.com>
8959
8960         maint.mk: more tight_scope improvements
8961         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8962         (_gl_TS_headers): Define only in if-0'd block.
8963         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8964         sometimes we must *not* use it.  Adjust uses accordingly.
8965         (sc_tight_scope): Use much simpler grep-based test to determine
8966         whether we skip this rule.
8967
8968         maint.mk: generalize/improve the tight-scope rule
8969         * top/maint.mk: Emit a warning when the test is skipped.
8970         (_gl_TS_dir): Add $(srcdir)/ prefix.
8971         (_gl_TS_function_match): Simplify, rather than trying
8972         to enumerate common types.  Otherwise, it would fail to match an
8973         "extern unsigned char const *" declaration in idutils.
8974         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8975         a way to support use of that type of macro.
8976         (_gl_TS_var_match): Simplify regexp.
8977         (_gl_TS_obj_files): New configurable variable.
8978         (_gl_TS_headers): Likewise.
8979
8980 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8981
8982         verify: fix bug when gnulib <assert.h> is also included
8983         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8984         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8985         Perhaps there's a better way, but this fixes the immediate problem.
8986         Problem reported by Bruno Haible in
8987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8988
8989 2011-05-22  Bruno Haible  <bruno@clisp.org>
8990
8991         xgetcwd: Simplify autoconf macro.
8992         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8993
8994 2011-05-22  Bruno Haible  <bruno@clisp.org>
8995
8996         New module 'mktime-internal'.
8997         * modules/mktime-internal: New file.
8998         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8999         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9000         mktime_internal as a C macro if libc has __mktime_internal.
9001         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9002         conditions.
9003         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9004
9005 2011-05-22  Bruno Haible  <bruno@clisp.org>
9006
9007         timegm: Correct mktime replacement statements.
9008         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9009         defining mktime as a C macro. This completes a 2009-07-28 commit.
9010
9011 2011-05-22  Bruno Haible  <bruno@clisp.org>
9012
9013         timegm: Simplify autoconf macro.
9014         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9015
9016 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9017
9018         clock-time: change to LGPLv2+.
9019         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9020         BSD-like but we have no mark for that; this is good enough for now.
9021
9022 2011-05-21  Bruno Haible  <bruno@clisp.org>
9023
9024         strerror_r: Fix comments.
9025         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9026
9027 2011-05-21  Bruno Haible  <bruno@clisp.org>
9028
9029         relocatable-prog-wrapper: Fix possible link error.
9030         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9031         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9032         (gl_FUNC_SETENV): ... to here.
9033         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9034         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9035
9036 2011-05-21  Bruno Haible  <bruno@clisp.org>
9037
9038         relocatable-prog-wrapper: Assume strerror() exists.
9039         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9040         m4/strerror.m4.
9041         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9042         * lib/relocwrapper.c: Remove mention of strerror module.
9043         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9044         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9045         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9046         C macro.
9047
9048 2011-05-21  Bruno Haible  <bruno@clisp.org>
9049
9050         select: Simplify replacement idiom.
9051         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9052         Win32 platforms.
9053         * lib/sys_select.in.h (select): Simplify accordingly.
9054         * modules/select (Depends-on): Likewise.
9055
9056 2011-05-21  Bruno Haible  <bruno@clisp.org>
9057
9058         mkdir-p: Simplify autoconf macro.
9059         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9060         gl_FUNC_LCHOWN.
9061
9062 2011-05-21  Eric Blake  <eblake@redhat.com>
9063
9064         strerror_r: avoid clobbering strerror on cygwin
9065         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9066         fall back instead to sys_errlist.
9067         * modules/strerror (configure.ac): Add witness.
9068         * tests/test-strerror_r.c (main): Enhance test.
9069         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9070         * tests/test-perror2.c (main): Free memory before exit.
9071
9072 2011-05-21  Bruno Haible  <bruno@clisp.org>
9073
9074         mkdtemp: Use gnulib naming conventions.
9075         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9076         * modules/mkdtemp (configure.ac): Update.
9077
9078 2011-05-20  Eric Blake  <eblake@redhat.com>
9079
9080         strerror_r: avoid corrupting errno on Solaris
9081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9082         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9083
9084         strerror_r: avoid compiler warning
9085         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9086
9087         strerror_r: simplify AIX code
9088         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9089
9090         test-perror: avoid spurious failure on FreeBSD
9091         * modules/perror-tests (Depends-on): Add strerror, now that
9092         strerror_r no longer pulls it in.
9093
9094 2011-05-20  Bruno Haible  <bruno@clisp.org>
9095
9096         strerror_r-posix: Remove unused dependencies.
9097         * modules/strerror_r-posix (Depends-on): Remove strerror.
9098         Reported by Eric Blake.
9099
9100 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9101
9102         intprops: remove assumption about A|B representation
9103         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9104         is a valid integer if both A and B are.  Although this is true for
9105         all known practical hosts, the C standard doesn't guarantee it,
9106         and the code need not assume it.  Also, this change may work around
9107         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9109
9110 2011-05-20  Eric Blake  <eblake@redhat.com>
9111
9112         perror: work around FreeBSD bug
9113         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9114         is broken.  Move AC_LIBOBJ...
9115         * modules/perror (configure.ac): Here.
9116         * doc/posix-functions/perror.texi (perror): Document this.
9117         * tests/test-perror2.c (main): Enhance test.
9118
9119         test-perror: check for strerror interactions
9120         * tests/macros.h (STREQ): Add macro.
9121         * modules/perror-tests (Files): Add second test.
9122         * tests/test-perror2.c (main): New file.
9123         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9124
9125         test-perror: rewrite to use init script
9126         * modules/perror-tests (Files): Add init.sh.
9127         * tests/test-perror.sh: Use temporary directory.
9128
9129 2011-05-20  Jim Meyering  <meyering@redhat.com>
9130
9131         maint: replace misused "a" with "an"
9132         * doc/intprops.texi: "a integer"
9133         * doc/regex.texi: "a explanation"
9134         * lib/alignof.h: "a object"
9135         * lib/argmatch.h: "a explanation"
9136         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9137         * lib/stdint.in.h: "a integer"
9138         * lib/userspec.c: "a owner"
9139         * doc/gnulib.texi: Fix "a idea", and reword.
9140
9141 2011-05-19  Jim Meyering  <meyering@redhat.com>
9142
9143         maint: correct misuse of "a" and "an"
9144         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9145         * lib/argp-help.c: "an docum...": s/an/a/
9146         * lib/argp-parse.c: "An vector": s/An/A/
9147         * lib/execute.c: "an native": s/an/a/
9148         * lib/spawn-pipe.c: Likewise.
9149         * lib/gc.h: "an Gc_rc": s/an/a/
9150         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9151         * lib/fts.c: "an stat.st_dev": s/an/a/
9152
9153 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9154
9155         intprops-tests: work around HP-UX 11.23 cc bug with constants
9156         * tests/test-intprops.c (VERIFY): New macro.
9157         (main): Use it, instead of verify, to work around the compiler bug; see
9158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9159
9160         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9161         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9162         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9163         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9164         (_GL_REMAINDER_OVERFLOW): Use it.
9165
9166         intprops-tests: revert unsigned part of previous change
9167         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9168         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9169         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9171
9172 2011-05-19  Bruno Haible  <bruno@clisp.org>
9173
9174         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9175         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9176         strerror_r() returned without filling the buffer.
9177         Reported by Eric Blake.
9178
9179 2011-05-19  Eric Blake  <eblake@redhat.com>
9180
9181         strerror_r: guarantee unchanged errno
9182         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9183         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9184         failure.
9185         * tests/test-strerror_r.c (main): Enhance test.
9186
9187 2011-05-19  Bruno Haible  <bruno@clisp.org>
9188
9189         strerror_r: Reorder #if blocks.
9190         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9191         for consistency with the previous commit.
9192
9193 2011-05-19  Bruno Haible  <bruno@clisp.org>
9194
9195         perror: Avoid clobbering the strerror buffer when possible.
9196         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9197         * lib/strerror.c: Include it.
9198         * modules/strerror (Files): Add lib/strerror-impl.h.
9199         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9200         (my_strerror): New function, defined through lib/strerror-impl.h.
9201         (perror): Use it instead of strerror.
9202         * modules/perror (Files): Add lib/strerror-impl.h.
9203         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9204
9205 2011-05-19  Eric Blake  <eblake@redhat.com>
9206
9207         strerror_r: fix on newer cygwin
9208         * lib/strerror_r.c (strerror_r): Cygwin now has
9209         __xpg_strerror_r, use it.
9210
9211 2011-05-19  Bruno Haible  <bruno@clisp.org>
9212
9213         strerror_r: Avoid clobbering the strerror buffer when possible.
9214         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9215         (sys_nerr, sys_errlist): New declarations.
9216         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9217         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9218         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9219
9220 2011-05-19  Bruno Haible  <bruno@clisp.org>
9221
9222         strerror_r: Fix test failure on mingw.
9223         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9224         EXTEND_STRERROR_R.
9225         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9226         macros from errno.in.h instead.
9227
9228 2011-05-19  Eric Blake  <eblake@redhat.com>
9229
9230         strerror: relax test for Solaris
9231         * tests/test-strerror.c (main): Permit Solaris behavior.
9232         * tests/test-strerror_r.c (main): Likewise.
9233
9234         strerror: enforce POSIX ruling on strerror(0)
9235         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9236         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9237         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9238         * doc/posix-functions/strerror.texi (strerror): Document it.
9239         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9240         * tests/test-strerror.c (main): Strengthen test.
9241         * tests/test-strerror_r.c (main): Likewise.
9242
9243 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9244
9245         intprop-tests: port to older and more-pedantic compilers
9246         * modules/intprops-tests (Files): Add tests/macros.h.
9247         * tests/test-intprops.c: Include macros.h.
9248         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9249         it's no longer documented to expand to an integer constant expression.
9250         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9251         argument is floating point, as it's no longer documented to expand
9252         to an integer constant expression in that case.
9253         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9254         compiler bugs reported by Bruno Haible.  See
9255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9256         (U0, U1): New constants, to work around the same bugs.  Also,
9257         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9258
9259         intprops: work around C compiler bugs
9260         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9261         bug in Sun C 5.11 2010/08/13 and other compilers; see
9262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9263
9264         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9265         * doc/intprops.texi (Integer Type Determination): Fix
9266         documentation for TYPE_IS_INTEGER: it returns an constant
9267         expression, not an integer constant expression.  Fix doc for
9268         TYPE_SIGNED: it returns an integer constant expression only if its
9269         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9270         hardly worth documented that way....)
9271
9272 2011-05-18  Bruno Haible  <bruno@clisp.org>
9273
9274         strerror_r: Avoid clobbering the strerror buffer when possible.
9275         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9276         Handle gnulib defined errno values here. When strerror() returns NULL
9277         or an empty string, return EINVAL.
9278         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9279         gnulib defined errno values here.
9280         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9281
9282 2011-05-18  Eric Blake  <eblake@redhat.com>
9283
9284         fnmatch: avoid compiler warning
9285         * lib/fnmatch_loop.c (FCT): Use correct type.
9286         Reported by Matthias Bolte.
9287
9288 2011-05-13  Jim Meyering  <meyering@redhat.com>
9289
9290         maint.mk: three new prohibit_<HDR>_without_use rules
9291         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9292         (sc_prohibit_stdio-safer_without_use): Likewise.
9293         (sc_prohibit_xfreopen_without_use): Likewise.
9294
9295 2011-05-17  Jim Meyering  <meyering@redhat.com>
9296
9297         announce-gen: fail if the NEWS delta is empty
9298         If there's nothing noteworthy in NEWS, then either you forgot
9299         or you shouldn't be releasing.
9300         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9301
9302 2011-05-17  Pádraig Brady <P@draigBrady.com>
9303
9304         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9305         reserved symbols starting with double underscore from the check.
9306
9307 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9308
9309         intprops: add doc
9310         * doc/intprops.texi: New file, documenting intprops.
9311         * doc/gnulib.texi (Particular Modules): Include it.
9312
9313         verify: add doc to gnulib manual and fix example
9314         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9315         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9316         (Compile-time Assertions): Fix example so it can't overflow.
9317
9318 2011-05-17  Jim Meyering  <meyering@redhat.com>
9319
9320         warnings.m4: don't usurp save_CPPFLAGS variable name
9321         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9322
9323         doc: fix typo
9324         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9325
9326 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9327             Bruno Haible  <bruno@clisp.org>
9328
9329         doc: Tweak recent change.
9330         * README (Portability guidelines): Tweak new text.
9331         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9332         Interix 6.1.
9333
9334 2011-05-16  Eric Blake  <eblake@redhat.com>
9335
9336         inttypes: avoid autoconf warning
9337         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9338         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9339
9340 2011-05-16  Sam Steingold <sds@gnu.org>
9341         and Eric Blake  <eblake@redhat.com>
9342
9343         vc-list-files: accept multiple directory operands
9344         * build-aux/vc-list-files: Iterate over all remaining operands.
9345
9346 2011-05-16  Bruno Haible  <bruno@clisp.org>
9347
9348         Fix confusion regarding deprecated modules.
9349         * modules/calloc (Status, Notice): Mark module as deprecated, not
9350         obsolete.
9351         * modules/fnmatch-posix (Status, Notice): Likewise.
9352         * modules/getdate (Status, Notice): Likewise.
9353         * modules/getopt (Status, Notice): Likewise.
9354         * modules/malloc (Status, Notice): Likewise.
9355         * modules/pipe (Status, Notice): Likewise.
9356         * modules/realloc (Status, Notice): Likewise.
9357         * modules/rename-dest-slash (Status, Notice): Likewise.
9358         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9359         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9360         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9361         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9362         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9363
9364 2011-05-16  Bruno Haible  <bruno@clisp.org>
9365
9366         doc: List the target platforms.
9367         * doc/gnulib-intro.texi (Target Platforms): New section.
9368         * doc/gnulib.texi (Introduction): Update menu.
9369         * README (Portability guidelines): Refer to the new section. Update
9370         statement about oldest supported environment. Remove rationale why
9371         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9372         unportable C89 function.
9373         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9374         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9375
9376 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9377
9378         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9379
9380 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9381
9382         intprops-tests: new module
9383         * modules/intprops-tests, tests/test-intprops.c: New files.
9384
9385         intprops: add safe, portable integer overflow checking
9386         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9387         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9388         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9389         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9390         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9391         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9392         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9393         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9394         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9395         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9396         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9397
9398 2011-05-12  James Youngman  <jay@gnu.org>
9399
9400         Add a test for glibc's Bugzilla bug #12378.
9401         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9402         doesn't allow the literal matching of a lone "[" (which is
9403         required by POSIX).
9404         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9405
9406 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9407
9408         Sync glibc change fixing Bugzilla bug #12378.
9409         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9410         beginning and fall back to matching as normal character if the
9411         string ends before the matching ']' is found.  This is what POSIX
9412         requires.
9413
9414 2011-05-13  Eric Blake  <eblake@redhat.com>
9415
9416         getcwd-lgpl: relax test for FreeBSD
9417         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9418         issue.
9419         * tests/test-getcwd-lgpl.c (main): Relax test.
9420         Reported by Matthias Bolte.
9421
9422 2011-05-11  Eric Blake  <eblake@redhat.com>
9423
9424         test-fflush: silence compiler warning
9425         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9426
9427 2011-05-11  Bruno Haible  <bruno@clisp.org>
9428
9429         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9430         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9431         * modules/canonicalize (Depends-on): Add 'nocrash'.
9432         * modules/canonicalize-lgpl (Depends-on): Likewise.
9433         * doc/posix-functions/realpath.texi: Update platforms list.
9434         Reported by Ryan Schmidt <ryandesign@macports.org>.
9435
9436 2011-05-11  Bruno Haible  <bruno@clisp.org>
9437
9438         group-member: Declare function in <unistd.h>.
9439         * lib/unistd.in.h (group_member): New declaration.
9440         * lib/group-member.h: Remove file.
9441         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9442         * tests/test-unistd-c++.cc: Check signature of group_member.
9443         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9444         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9445         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9446         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9447         HAVE_GROUP_MEMBER.
9448         * modules/group-member (Files): Remove lib/group-member.h.
9449         (Depends-on): Add unistd. Specify conditions.
9450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9451         (Include): Change to <unistd.h>.
9452         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9453         HAVE_GROUP_MEMBER.
9454         * NEWS: Mention the change.
9455         * lib/euidaccess.c: Don't include group-member.h.
9456
9457 2011-05-11  Bruno Haible  <bruno@clisp.org>
9458
9459         group-member: Document module.
9460         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9461         module.
9462
9463 2011-05-11  Bruno Haible  <bruno@clisp.org>
9464
9465         fclose: Fix mistake earlier today.
9466         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9467
9468 2011-05-11  Eric Blake  <eblake@redhat.com>
9469
9470         fclose: preserve fflush errors
9471         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9472         Reported by Jim Meyering.
9473
9474         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9475         * build-aux/bootstrap (check_versions): When no specific version
9476         is required, merely check that the app produces an exit status
9477         that indicates its existence.
9478
9479         maint.mk: drop redundant check
9480         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9481         the same but better.
9482
9483 2011-05-11  Bruno Haible  <bruno@clisp.org>
9484
9485         fclose: Fix possible link error.
9486         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9487         unregister_shadow_fd. Improve comments.
9488         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9489         Eric Blake.
9490
9491 2011-05-11  Jim Meyering  <meyering@redhat.com>
9492
9493         maint.mk: improve "can not" detection and generalize rule name
9494         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9495         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9496         Use the same technique as in sc_prohibit_doubled_word, so that
9497         we recognize "can not" also when the words are separated by a newline.
9498         Suggested by Eric Blake.
9499         (perl_filename_lineno_text_): Define.  Factored out of...
9500         (prohibit_doubled_word_): ...here.  Use the new definition.
9501         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9502         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9503         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9504
9505 2011-05-10  Eric Blake  <eblake@redhat.com>
9506
9507         fclose: avoid double close race when possible
9508         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9509         all but WINDOWS_SOCKETS.
9510
9511 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9512
9513         openat: correct new comment
9514         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9515
9516 2011-05-10  Jim Meyering  <meyering@redhat.com>
9517
9518         openat: add comments
9519         * lib/openat-proc.c (openat_proc_name): Add comments,
9520         mostly from Eric Blake.
9521
9522 2011-05-09  Eric Blake  <eblake@redhat.com>
9523
9524         openat: reduce syscalls in first probe of /proc
9525         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9526         be a directory.  Simplify the probe for .. bugs.
9527         * modules/openat (Depends-on): Drop same-inode.
9528         Reported by Bastien ROUCARIES.
9529
9530 2011-05-09  Jim Meyering  <meyering@redhat.com>
9531
9532         maint.mk: change semantics/name of tight_scope variables
9533         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9534         Rename variables to align with semantics that make them more useful.
9535
9536         maint.mk: tweak new rule's name not to impinge
9537         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9538         (sc_tight_scope): Use new rule name rather than $@-0.
9539
9540         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9541         * top/maint.mk (sc_tight_scope): New rule.
9542         (sc_tight_scope-0): New rule, ifdef'd out.
9543         (_gl_TS_dir): Default.
9544         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9545         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9546
9547 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9548
9549         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9550         Haible <bruno@clisp.org>.
9551
9552 2011-05-08  Bruno Haible  <bruno@clisp.org>
9553
9554         Comments.
9555         * m4/isnanf.m4: Add comment.
9556         * m4/isnanl.m4: Likewise.
9557
9558 2011-05-08  Bruno Haible  <bruno@clisp.org>
9559
9560         glob: Remove obsolete macro.
9561         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9562
9563 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9564
9565         intprops: Sun C 5.11 supports __typeof__
9566         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9567         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9568         which is new.
9569         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9570
9571         intprops: switch to usual gnulib indenting and naming
9572         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9573         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9574
9575         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9576
9577 2011-05-08  Jim Meyering  <meyering@redhat.com>
9578
9579         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9580         * top/maint.mk (release-prep): Use make's --no-print-directory
9581         option when generating the announcement.  This eliminates the
9582         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9583         generated announcement template.
9584
9585 2011-05-08  Bruno Haible  <bruno@clisp.org>
9586
9587         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9588         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9589         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9590
9591 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9592
9593         ignore-value, verify: Omit include files from lib_SOURCES.
9594         * modules/ignore-value, modules/verify (Makefile.am):
9595         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9596         that leads Automake to duplicate use of am__objects_... variables
9597         in Makefile.in.  See
9598         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9599
9600 2011-05-07  Bruno Haible  <bruno@clisp.org>
9601
9602         fclose: Simplify autoconf macro.
9603         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9604         defined.
9605
9606 2011-05-07  Bruno Haible  <bruno@clisp.org>
9607
9608         canonicalize-lgpl: Fix autoconf macro ordering bug.
9609         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9610         gl_STDLIB_H_DEFAULTS.
9611
9612 2011-05-06  Eric Blake  <eblake@redhat.com>
9613
9614         maintainer-makefile: make sc_po_check easier to tune
9615         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9616         to probe for strings, such as an alternate location for gnulib.
9617
9618         fclose: guarantee behavior on seekable stdin
9619         * modules/fclose (Depends-on): Add fflush.
9620         * doc/posix-functions/fclose.texi (fclose): Document this.
9621         * tests/test-fclose.c (main): Make test for this unconditional.
9622
9623 2011-05-06  Bruno Haible  <bruno@clisp.org>
9624
9625         fflush, fpurge: Relicense under LGPLv2+.
9626         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9627         * modules/fpurge (License): Likewise.
9628         With permission from Eric Blake and Jim Meyering.
9629         Suggested by Eric Blake.
9630
9631 2011-05-06  Karl Berry  <karl@gnu.org>
9632
9633         * MODULES.html.sh (func_all_modules): remove exit.
9634
9635 2011-05-06  Jim Meyering  <meyering@redhat.com>
9636
9637         maint.mk: use info-gnu@ as the default only for a stable release
9638         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9639         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9640         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9641         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9642
9643 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9644
9645         assert-h: new module, which supports C1X-style static_assert
9646         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9647         * lib/verify.h: Revamp so that this can be copied into assert.h,
9648         while retaining the ability to use it standalone as before.
9649         Rename private identifiers so as not to encroach on the
9650         standard C namespace, since this is now used by assert.h.
9651         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9652         the old verify_true.
9653         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9654         the old verify_true.  Use _GL_VERIFY_TYPE.
9655         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9656         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9657         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9658         defined when this file is copied into the replacement assert.h.
9659         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9660         and _Static_assert is not built in.
9661         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9662         defined, and use the new macros mentioned above.
9663         * doc/posix-headers/assert.texi: Document this.
9664
9665 2011-05-05  Bruno Haible  <bruno@clisp.org>
9666
9667         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9668         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9669         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9670         gl_REPLACE_FCLOSE here.
9671         * modules/fflush (Depends-on): Remove fclose.
9672         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9673         combination with module 'fclose'.
9674
9675 2011-05-05  Bruno Haible  <bruno@clisp.org>
9676
9677         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9678         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9679         gl_FUNC_FFLUSH.
9680         (gl_FUNC_FFLUSH): Use it.
9681         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9683         gl_REPLACE_FSEEKO here.
9684
9685 2011-05-05  Bruno Haible  <bruno@clisp.org>
9686
9687         tzset: Relicense under LGPL.
9688         * modules/tzset (License): Change to LGPL.
9689         No agreement needed; it's a no-op.
9690
9691         strtoimax, strtoumax: Relicense under LGPL.
9692         * modules/strtoimax (License): Change to LGPL.
9693         * modules/strtoumax (License): Likewise.
9694         With permission from Jim Meyering, Paul Eggert:
9695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9697
9698         getgroups: Relicense under LGPL.
9699         * modules/getgroups (License): Change to LGPL.
9700         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9704
9705         nanosleep: Relicense under LGPL.
9706         * modules/nanosleep (License): Change to LGPL.
9707         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9708         Haible:
9709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9713
9714         futimens: Relicense under LGPL.
9715         * modules/futimens (License): Change to LGPL.
9716         With permission from Eric Blake:
9717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9718
9719         fflush: Relicense under LGPL.
9720         * modules/fflush (License): Change to LGPL.
9721         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9725
9726         tmpfile: Relicense under LGPL.
9727         * modules/tmpfile (License): Change to LGPL.
9728         With permission from Ben Pfaff:
9729         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9730
9731         isfinite: Relicense under LGPL.
9732         * modules/isfinite (License): Change to LGPL.
9733         With permission from Ben Pfaff, Bruno Haible:
9734         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9736
9737         acosl..tanl: Relicense under LGPL.
9738         * modules/acosl (License): Change to LGPL.
9739         * modules/asinl (License): Likewise.
9740         * modules/atanl (License): Likewise.
9741         * modules/cosl (License): Likewise.
9742         * modules/expl (License): Likewise.
9743         * modules/logl (License): Likewise.
9744         * modules/sinl (License): Likewise.
9745         * modules/sqrtl (License): Likewise.
9746         * modules/tanl (License): Likewise.
9747         Source code originally from glibc and Paolo Bonzini. Agreements:
9748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9750
9751 2011-05-05  Bruno Haible  <bruno@clisp.org>
9752
9753         signal: Define sighandler_t.
9754         * lib/signal.in.h (sighandler_t): New type.
9755         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9756         whether sighandler_t is defined.
9757         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9758         * modules/signal (Depends-on): Add extensions.
9759         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9760         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9761         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9762
9763 2011-05-05  Eric Blake  <eblake@redhat.com>
9764
9765         maint: remove useless REPLACE_*_H macros
9766         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9767         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9768         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9769         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9770         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9771         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9772         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9773         * m4/btowc.m4: Update callers.
9774         * m4/dirfd.m4: Likewise.
9775         * m4/duplocale.m4: Likewise.
9776         * m4/fchdir.m4: Likewise.
9777         * m4/fdopendir.m4: Likewise.
9778         * m4/inet_ntop.m4: Likewise.
9779         * m4/inet_pton.m4: Likewise.
9780         * m4/ioctl.m4: Likewise.
9781         * m4/mbrlen.m4: Likewise.
9782         * m4/mbrtowc.m4: Likewise.
9783         * m4/mbsinit.m4: Likewise.
9784         * m4/mbsnrtowcs.m4: Likewise.
9785         * m4/mbsrtowcs.m4: Likewise.
9786         * m4/poll.m4: Likewise.
9787         * m4/setlocale.m4: Likewise.
9788         * m4/wcrtomb.m4: Likewise.
9789         * m4/wcsnrtombs.m4: Likewise.
9790         * m4/wcsrtombs.m4: Likewise.
9791         * m4/wctob.m4: Likewise.
9792         * m4/wcwidth.m4: Likewise.
9793         * modules/posix_spawn: Likewise.
9794         * modules/posix_spawn_file_actions_addclose: Likewise.
9795         * modules/posix_spawn_file_actions_adddup2: Likewise.
9796         * modules/posix_spawn_file_actions_addopen: Likewise.
9797         * modules/posix_spawn_file_actions_destroy: Likewise.
9798         * modules/posix_spawn_file_actions_init: Likewise.
9799         * modules/posix_spawnattr_destroy: Likewise.
9800         * modules/posix_spawnattr_getflags: Likewise.
9801         * modules/posix_spawnattr_getpgroup: Likewise.
9802         * modules/posix_spawnattr_getschedparam: Likewise.
9803         * modules/posix_spawnattr_getschedpolicy: Likewise.
9804         * modules/posix_spawnattr_getsigdefault: Likewise.
9805         * modules/posix_spawnattr_getsigmask: Likewise.
9806         * modules/posix_spawnattr_init: Likewise.
9807         * modules/posix_spawnattr_setflags: Likewise.
9808         * modules/posix_spawnattr_setpgroup: Likewise.
9809         * modules/posix_spawnattr_setschedparam: Likewise.
9810         * modules/posix_spawnattr_setschedpolicy: Likewise.
9811         * modules/posix_spawnattr_setsigdefault: Likewise.
9812         * modules/posix_spawnattr_setsigmask: Likewise.
9813         * modules/posix_spawnp: Likewise.
9814
9815 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9816
9817         Add option to do-release-commit-and-tag to specify branch.
9818         * build-aux/do-release-commit-and-tag: Add --branch.
9819
9820 2011-05-03  Bruno Haible  <bruno@clisp.org>
9821
9822         Avoid unnecessary compilation units, through conditional dependencies.
9823         * modules/accept (Depends-on): Add conditions to the dependencies.
9824         * modules/acosl (Depends-on): Likewise.
9825         * modules/argz (Depends-on): Likewise.
9826         * modules/asinl (Depends-on): Likewise.
9827         * modules/atanl (Depends-on): Likewise.
9828         * modules/atoll (Depends-on): Likewise.
9829         * modules/bind (Depends-on): Likewise.
9830         * modules/btowc (Depends-on): Likewise.
9831         * modules/canonicalize-lgpl (Depends-on): Likewise.
9832         * modules/ceil (Depends-on): Likewise.
9833         * modules/ceilf (Depends-on): Likewise.
9834         * modules/ceill (Depends-on): Likewise.
9835         * modules/chdir-long (Depends-on): Likewise.
9836         * modules/chown (Depends-on): Likewise.
9837         * modules/close (Depends-on): Likewise.
9838         * modules/connect (Depends-on): Likewise.
9839         * modules/cosl (Depends-on): Likewise.
9840         * modules/dirfd (Depends-on): Likewise.
9841         * modules/dprintf (Depends-on): Likewise.
9842         * modules/dprintf-posix (Depends-on): Likewise.
9843         * modules/error (Depends-on): Likewise.
9844         * modules/euidaccess (Depends-on): Likewise.
9845         * modules/expl (Depends-on): Likewise.
9846         * modules/faccessat (Depends-on): Likewise.
9847         * modules/fchdir (Depends-on): Likewise.
9848         * modules/fclose (Depends-on): Likewise.
9849         * modules/fcntl (Depends-on): Likewise.
9850         * modules/fdopendir (Depends-on): Likewise.
9851         * modules/fflush (Depends-on): Likewise.
9852         * modules/floor (Depends-on): Likewise.
9853         * modules/floorf (Depends-on): Likewise.
9854         * modules/floorl (Depends-on): Likewise.
9855         * modules/fnmatch (Depends-on): Likewise.
9856         * modules/fopen (Depends-on): Likewise.
9857         * modules/fprintf-posix (Depends-on): Likewise.
9858         * modules/frexp (Depends-on): Likewise.
9859         * modules/frexp-nolibm (Depends-on): Likewise.
9860         * modules/frexpl (Depends-on): Likewise.
9861         * modules/frexpl-nolibm (Depends-on): Likewise.
9862         * modules/fseek (Depends-on): Likewise.
9863         * modules/fsusage (Depends-on): Likewise.
9864         * modules/ftell (Depends-on): Likewise.
9865         * modules/ftello (Depends-on): Likewise.
9866         * modules/futimens (Depends-on): Likewise.
9867         * modules/getcwd (Depends-on): Likewise.
9868         * modules/getcwd-lgpl (Depends-on): Likewise.
9869         * modules/getdelim (Depends-on): Likewise.
9870         * modules/getdomainname (Depends-on): Likewise.
9871         * modules/getgroups (Depends-on): Likewise.
9872         * modules/gethostname (Depends-on): Likewise.
9873         * modules/getline (Depends-on): Likewise.
9874         * modules/getlogin_r (Depends-on): Likewise.
9875         * modules/getopt-posix (Depends-on): Likewise.
9876         * modules/getpeername (Depends-on): Likewise.
9877         * modules/getsockname (Depends-on): Likewise.
9878         * modules/getsockopt (Depends-on): Likewise.
9879         * modules/getsubopt (Depends-on): Likewise.
9880         * modules/getusershell (Depends-on): Likewise.
9881         * modules/glob (Depends-on): Likewise.
9882         * modules/grantpt (Depends-on): Likewise.
9883         * modules/iconv_open (Depends-on): Likewise.
9884         * modules/iconv_open-utf (Depends-on): Likewise.
9885         * modules/inet_ntop (Depends-on): Likewise.
9886         * modules/inet_pton (Depends-on): Likewise.
9887         * modules/ioctl (Depends-on): Likewise.
9888         * modules/isapipe (Depends-on): Likewise.
9889         * modules/isfinite (Depends-on): Likewise.
9890         * modules/isinf (Depends-on): Likewise.
9891         * modules/lchown (Depends-on): Likewise.
9892         * modules/ldexpl (Depends-on): Likewise.
9893         * modules/link (Depends-on): Likewise.
9894         * modules/linkat (Depends-on): Likewise.
9895         * modules/listen (Depends-on): Likewise.
9896         * modules/logl (Depends-on): Likewise.
9897         * modules/lstat (Depends-on): Likewise.
9898         * modules/mbrlen (Depends-on): Likewise.
9899         * modules/mbrtowc (Depends-on): Likewise.
9900         * modules/mbsinit (Depends-on): Likewise.
9901         * modules/mbsnrtowcs (Depends-on): Likewise.
9902         * modules/mbsrtowcs (Depends-on): Likewise.
9903         * modules/mbtowc (Depends-on): Likewise.
9904         * modules/memcmp (Depends-on): Likewise.
9905         * modules/mkdir (Depends-on): Likewise.
9906         * modules/mkdtemp (Depends-on): Likewise.
9907         * modules/mkfifo (Depends-on): Likewise.
9908         * modules/mkfifoat (Depends-on): Likewise.
9909         * modules/mknod (Depends-on): Likewise.
9910         * modules/mkostemp (Depends-on): Likewise.
9911         * modules/mkostemps (Depends-on): Likewise.
9912         * modules/mkstemp (Depends-on): Likewise.
9913         * modules/mkstemps (Depends-on): Likewise.
9914         * modules/mktime (Depends-on): Likewise.
9915         * modules/nanosleep (Depends-on): Likewise.
9916         * modules/open (Depends-on): Likewise.
9917         * modules/openat (Depends-on): Likewise.
9918         * modules/perror (Depends-on): Likewise.
9919         * modules/poll (Depends-on): Likewise.
9920         * modules/popen (Depends-on): Likewise.
9921         * modules/posix_spawn (Depends-on): Likewise.
9922         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9923         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9924         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9925         * modules/posix_spawnp (Depends-on): Likewise.
9926         * modules/pread (Depends-on): Likewise.
9927         * modules/printf-posix (Depends-on): Likewise.
9928         * modules/ptsname (Depends-on): Likewise.
9929         * modules/putenv (Depends-on): Likewise.
9930         * modules/pwrite (Depends-on): Likewise.
9931         * modules/readline (Depends-on): Likewise.
9932         * modules/readlink (Depends-on): Likewise.
9933         * modules/readlinkat (Depends-on): Likewise.
9934         * modules/recv (Depends-on): Likewise.
9935         * modules/recvfrom (Depends-on): Likewise.
9936         * modules/regex (Depends-on): Likewise.
9937         * modules/remove (Depends-on): Likewise.
9938         * modules/rename (Depends-on): Likewise.
9939         * modules/renameat (Depends-on): Likewise.
9940         * modules/rmdir (Depends-on): Likewise.
9941         * modules/round (Depends-on): Likewise.
9942         * modules/roundf (Depends-on): Likewise.
9943         * modules/roundl (Depends-on): Likewise.
9944         * modules/rpmatch (Depends-on): Likewise.
9945         * modules/select (Depends-on): Likewise.
9946         * modules/send (Depends-on): Likewise.
9947         * modules/sendto (Depends-on): Likewise.
9948         * modules/setenv (Depends-on): Likewise.
9949         * modules/setlocale (Depends-on): Likewise.
9950         * modules/setsockopt (Depends-on): Likewise.
9951         * modules/shutdown (Depends-on): Likewise.
9952         * modules/sigaction (Depends-on): Likewise.
9953         * modules/signbit (Depends-on): Likewise.
9954         * modules/sigprocmask (Depends-on): Likewise.
9955         * modules/sinl (Depends-on): Likewise.
9956         * modules/sleep (Depends-on): Likewise.
9957         * modules/snprintf (Depends-on): Likewise.
9958         * modules/snprintf-posix (Depends-on): Likewise.
9959         * modules/socket (Depends-on): Likewise.
9960         * modules/sprintf-posix (Depends-on): Likewise.
9961         * modules/sqrtl (Depends-on): Likewise.
9962         * modules/stat (Depends-on): Likewise.
9963         * modules/strchrnul (Depends-on): Likewise.
9964         * modules/strdup-posix (Depends-on): Likewise.
9965         * modules/strerror (Depends-on): Likewise.
9966         * modules/strerror_r-posix (Depends-on): Likewise.
9967         * modules/strndup (Depends-on): Likewise.
9968         * modules/strnlen (Depends-on): Likewise.
9969         * modules/strptime (Depends-on): Likewise.
9970         * modules/strsep (Depends-on): Likewise.
9971         * modules/strsignal (Depends-on): Likewise.
9972         * modules/strstr-simple (Depends-on): Likewise.
9973         * modules/strtod (Depends-on): Likewise.
9974         * modules/strtoimax (Depends-on): Likewise.
9975         * modules/strtok_r (Depends-on): Likewise.
9976         * modules/strtoumax (Depends-on): Likewise.
9977         * modules/symlink (Depends-on): Likewise.
9978         * modules/symlinkat (Depends-on): Likewise.
9979         * modules/tanl (Depends-on): Likewise.
9980         * modules/tcgetsid (Depends-on): Likewise.
9981         * modules/tmpfile (Depends-on): Likewise.
9982         * modules/trunc (Depends-on): Likewise.
9983         * modules/truncf (Depends-on): Likewise.
9984         * modules/truncl (Depends-on): Likewise.
9985         * modules/uname (Depends-on): Likewise.
9986         * modules/unlink (Depends-on): Likewise.
9987         * modules/unlockpt (Depends-on): Likewise.
9988         * modules/unsetenv (Depends-on): Likewise.
9989         * modules/usleep (Depends-on): Likewise.
9990         * modules/utimensat (Depends-on): Likewise.
9991         * modules/vasprintf (Depends-on): Likewise.
9992         * modules/vdprintf (Depends-on): Likewise.
9993         * modules/vdprintf-posix (Depends-on): Likewise.
9994         * modules/vfprintf-posix (Depends-on): Likewise.
9995         * modules/vprintf-posix (Depends-on): Likewise.
9996         * modules/vsnprintf (Depends-on): Likewise.
9997         * modules/vsnprintf-posix (Depends-on): Likewise.
9998         * modules/vsprintf-posix (Depends-on): Likewise.
9999         * modules/wcrtomb (Depends-on): Likewise.
10000         * modules/wcscasecmp (Depends-on): Likewise.
10001         * modules/wcscspn (Depends-on): Likewise.
10002         * modules/wcsdup (Depends-on): Likewise.
10003         * modules/wcsncasecmp (Depends-on): Likewise.
10004         * modules/wcsnrtombs (Depends-on): Likewise.
10005         * modules/wcspbrk (Depends-on): Likewise.
10006         * modules/wcsrtombs (Depends-on): Likewise.
10007         * modules/wcsspn (Depends-on): Likewise.
10008         * modules/wcsstr (Depends-on): Likewise.
10009         * modules/wcstok (Depends-on): Likewise.
10010         * modules/wcswidth (Depends-on): Likewise.
10011         * modules/wctob (Depends-on): Likewise.
10012         * modules/wctomb (Depends-on): Likewise.
10013         * modules/wctype (Depends-on): Likewise.
10014         * modules/wcwidth (Depends-on): Likewise.
10015         * modules/write (Depends-on): Likewise.
10016
10017 2011-05-03  Bruno Haible  <bruno@clisp.org>
10018
10019         Support for conditional dependencies.
10020         * doc/gnulib.texi (Module description): Document the syntax of
10021         conditional dependencies.
10022         * gnulib-tool: New option --conditional-dependencies.
10023         (func_usage): Document it.
10024         (cond_dependencies): New variable.
10025         (func_get_automake_snippet_conditional,
10026         func_get_automake_snippet_unconditional): New functions, extracted from
10027         func_get_automake_snippet.
10028         (func_get_automake_snippet): Use them.
10029         (sed_first_32_chars): New variable.
10030         (func_module_shellfunc_name): New function.
10031         (func_module_shellvar_name): New function.
10032         (func_module_conditional_name): New function.
10033         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10034         func_cond_module_condition): New functions.
10035         (func_modules_transitive_closure): Add support for conditional
10036         dependencies.
10037         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10038         conditional automake snippet in an automake conditional.
10039         (func_emit_autoconf_snippets): Emit shell functions that contain the
10040         code for conditional modules.
10041         (func_import, func_create_testdir): Update specification.
10042
10043 2011-05-03  Eric Blake  <eblake@redhat.com>
10044
10045         test-getaddrinfo: report error information
10046         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10047
10048 2011-05-03  Jim Meyering  <meyering@redhat.com>
10049
10050         bootstrap: avoid build failure when $GZIP is set
10051         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10052         program name.  If defined at all, it is supposed to list gzip options.
10053         Reported by Alan Curry in http://debbugs.gnu.org/8609
10054
10055 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10056
10057         readme-release: new module with release instructions
10058         * modules/readme-release: New module.
10059         * top/README-release: New file, from coreutils, grep, diffutils.
10060         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10061
10062 2011-05-02  Eric Blake  <eblake@redhat.com>
10063
10064         fflush: also replace fclose when fixing fflush
10065         * modules/fflush (Depends-on): Add fclose.
10066         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10067         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10068         memstreams with no backing fd.
10069         * doc/posix-functions/fclose.texi (fclose): Document the use of
10070         fflush module to fix the bug.
10071         * tests/test-fclose.c (main): Relax test when fclose is used in
10072         isolation.
10073
10074         fclose: add some tests
10075         * modules/fclose-tests: New test module.
10076         * tests/test-fclose.c: New file.
10077         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10078
10079         fclose: reduced dependencies
10080         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10081         simpler lseek.
10082         * lib/fclose.c (rpl_fclose): Likewise.
10083         Reported by Simon Josefsson.
10084
10085         exit: drop remaining clients
10086         * modules/argmatch (Depends-on): Replace exit with stdlib.
10087         * modules/copy-file (Depends-on): Likewise.
10088         * modules/execute (Depends-on): Likewise.
10089         * modules/exitfail (Depends-on): Likewise.
10090         * modules/obstack (Depends-on): Likewise.
10091         * modules/pagealign_alloc (Depends-on): Likewise.
10092         * modules/pipe-filter-gi (Depends-on): Likewise.
10093         * modules/pipe-filter-ii (Depends-on): Likewise.
10094         * modules/savewd (Depends-on): Likewise.
10095         * modules/spawn-pipe (Depends-on): Likewise.
10096         * modules/wait-process (Depends-on): Likewise.
10097         * modules/xsetenv (Depends-on): Likewise.
10098         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10099         * modules/git-merge-changelog (Depends-on): Likewise.
10100         * modules/long-options (Depends-on): Likewise.
10101         * modules/pt_chown (Depends-on): Likewise.
10102         * modules/sysexits (Depends-on): Likewise.
10103
10104         freading: relax license from LGPLv3+ to LGPLv2+
10105         * modules/freading (License): Relax LGPL version.
10106
10107 2011-05-02  Bruno Haible  <bruno@clisp.org>
10108
10109         fchdir: Remove unused dependencies.
10110         * modules/fchdir (Depends-on): Remove include_next.
10111
10112 2011-05-02  Bruno Haible  <bruno@clisp.org>
10113
10114         gnulib-tool: Refactor.
10115         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10116         from func_emit_autoconf_snippets.
10117         (func_emit_autoconf_snippets): Use it.
10118
10119 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10120
10121         * NEWS: Document removal of 'exit'.
10122         * modules/exit: Remove file.
10123
10124 2011-05-01  Bruno Haible  <bruno@clisp.org>
10125
10126         Update DEPENDENCIES.
10127         * DEPENDENCIES (gettext): Recommend the newest release.
10128         Reported by Simon Josefsson.
10129
10130 2011-05-01  Bruno Haible  <bruno@clisp.org>
10131
10132         gnulib-tool: Reduce code duplication.
10133         * gnulib-tool (func_emit_autoconf_snippets): New function.
10134         (func_import, func_create_testdir): Use it.
10135
10136 2011-04-30  Eric Blake  <eblake@redhat.com>
10137
10138         fclose: don't fail on non-seekable input stream
10139         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10140         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10141         since fflush is allowed to fail in that case.
10142
10143 2011-04-30  Bruno Haible  <bruno@clisp.org>
10144
10145         dup3: cleanup
10146         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10147
10148 2011-04-30  Bruno Haible  <bruno@clisp.org>
10149
10150         netdb: Make it work in C++ mode.
10151         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10152         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10153         module.
10154         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10155         gl_MODULE_INDICATOR_FOR_TESTS.
10156         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10157         * modules/netdb-c++-tests: New file.
10158         * tests/test-netdb-c++.cc: New file.
10159
10160 2011-04-30  Bruno Haible  <bruno@clisp.org>
10161
10162         New modules 'vfscanf', 'vscanf'.
10163         * modules/vfscanf: New file.
10164         * modules/vscanf: New file.
10165         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10166         here.
10167         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10168         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10169
10170 2011-04-30  Bruno Haible  <bruno@clisp.org>
10171
10172         passfd: Add comments.
10173         * lib/passfd.c: Add comments about platforms.
10174
10175 2011-04-30  Bruno Haible  <bruno@clisp.org>
10176
10177         sys_uio: Make <sys/uio.h> self-contained.
10178         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10179         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10180
10181 2011-04-30  Bruno Haible  <bruno@clisp.org>
10182
10183         sys_socket: Ensure 'struct iovec' definition.
10184         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10185         <sys/socket.h>.
10186         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10187
10188 2011-04-30  Bruno Haible  <bruno@clisp.org>
10189
10190         sys_uio: Protect definition of 'struct iovec'.
10191         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10192         it as a C struct.
10193
10194 2011-04-30  Bruno Haible  <bruno@clisp.org>
10195
10196         manywarnings: fix indentation
10197         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10198
10199 2011-04-30  Pádraig Brady <P@draigBrady.com>
10200
10201         manywarnings: add -Wno-missing-field-initializers if needed.
10202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10203         option if it's needed to allow initialization with { 0, }
10204
10205 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10206
10207         announce-gen: cosmetic improvement
10208         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10209
10210 2011-04-29  Jim Meyering  <meyering@redhat.com>
10211
10212         vc-list-files: indent with spaces, not TABs
10213         * build-aux/vc-list-files: Convert leading TABs to spaces,
10214         to match the style of most other files in gnulib.
10215
10216         announce-gen: indent with spaces, not TABs
10217         * build-aux/announce-gen: Convert all TABs to spaces, to match
10218         the style of most other files in gnulib.
10219
10220 2011-04-29  Eric Blake  <eblake@redhat.com>
10221
10222         quotearg: avoid uninitialized variable use
10223         * lib/quotearg.c (quoting_options_from_style): Initialize
10224         remaining fields, and ensure that custom styles are only used via
10225         quoting_options rather than quoting_style.
10226
10227 2011-04-29  Jim Meyering  <meyering@redhat.com>
10228
10229         maint.mk: remove unused VC-tag variable
10230         * top/maint.mk (VC-tag): Remove unused variable.
10231
10232 2011-04-29  Bruno Haible  <bruno@clisp.org>
10233
10234         netdb: fix gai_strerror replacements
10235         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10236         * modules/netdb: Substitute it.
10237
10238 2011-04-29  Jim Meyering  <meyering@redhat.com>
10239
10240         test-getcwd.c: avoid new set-but-not-used warning
10241         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10242         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10243         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10244         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10245
10246         test-hash.c: avoid a new shadowing warning
10247         * tests/test-hash.c (main): Don't shadow "dup".
10248
10249 2011-04-28  Eric Blake  <eblake@redhat.com>
10250
10251         getaddrinfo: fix gai_strerror signature
10252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10253         and work around mingw with UNICODE defined.
10254         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10255         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10256         * modules/netdb (Makefile.am): Substitute it.
10257         * lib/netdb.in.h (gai_strerror): Declare replacement.
10258         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10259         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10260         the fix.
10261
10262         getsockopt: avoid compiler warning
10263         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10264         Reported by Matthias Bolte.
10265
10266         tests: drop unused link dependency
10267         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10268         * modules/dirent-safer-tests (Makefile.am): Likewise.
10269         * modules/fdopendir-tests (Makefile.am): Likewise.
10270         * modules/mkfifoat-tests (Makefile.am): Likewise.
10271         * modules/openat-safer-tests (Makefile.am): Likewise.
10272         * modules/openat-tests (Makefile.am): Likewise.
10273         * modules/readlinkat-tests (Makefile.am): Likewise.
10274         * modules/symlinkat-tests (Makefile.am): Likewise.
10275         * modules/linkat-tests (Makefile.am): Likewise.
10276         (Depends-on): Switch to filenamecat-lgpl.
10277         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10278         LIBINTL.
10279         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10280         * tests/test-linkat.c (main): Don't require xalloc.
10281
10282         hash, mgetgroups: drop xalloc dependency
10283         * lib/hash.c (includes): Adjust includes.
10284         * lib/mgetgroups.c (includes): Likewise.
10285         (xgetgroups): Move...
10286         * lib/xgetgroups.c: ...to new file.
10287         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10288         * modules/xgetgroups: New file, split from...
10289         * modules/mgetgroups: ...here.
10290         (Depends-on): Add xalloc-oversized.
10291         * modules/hash (Depends-on): Likewise.
10292         * modules/hash-tests (Depends-on): Drop xalloc.
10293         (test_hash_LDADD): Drop unused library.
10294         * tests/test-hash.c (main): Break xalloc dependency.
10295         (includes): Drop unused include.
10296
10297         xalloc-oversized: new module
10298         * modules/xalloc-oversized: New module.
10299         * modules/xalloc (Depends-on): Add it.
10300         * lib/xalloc.h (xalloc_oversized): Move...
10301         * lib/xalloc-oversized.h: ...into new file.
10302
10303         utimecmp: drop dependency on xmalloc
10304         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10305         due to memory pressure.
10306         * modules/utimecmp (Depends-on): Drop xalloc.
10307
10308 2011-04-27  Eric Blake  <eblake@redhat.com>
10309
10310         getcwd: fix mingw bugs
10311         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10312         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10313         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10314
10315 2011-04-27  Bruno Haible  <bruno@clisp.org>
10316
10317         mkstemps: Ensure declaration on MacOS X 10.5.
10318         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10319         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10320         MacOS X.
10321
10322 2011-04-27  Bruno Haible  <bruno@clisp.org>
10323
10324         mkstemp: More documentation.
10325         * doc/posix-functions/mkstemp.texi: Document header file problem on
10326         MacOS X.
10327
10328 2011-04-27  Bruno Haible  <bruno@clisp.org>
10329
10330         mkstemp: Tweak configure message when cross-compiling.
10331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10332         result as a guess.
10333
10334 2011-04-27  Bruno Haible  <bruno@clisp.org>
10335
10336         clean-temp: Clarify what it does.
10337         * lib/clean-temp.h: Add more comments.
10338         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10339         module.
10340         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10341         * doc/glibc-functions/mkstemps.texi: Likewise.
10342         * doc/glibc-functions/mkostemps.texi: Likewise.
10343
10344 2011-04-27  Eric Blake  <eblake@redhat.com>
10345
10346         fchdir: avoid extra chdir and fix test
10347         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10348         getcwd-lgpl.
10349         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10350         have to be canonical.
10351         (canonicalize_file_name): Drop unused macro.
10352         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10353
10354         filenamecat-lgpl: fix licence
10355         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10356         when it was first created.
10357
10358         linkat, renameat: add missing dependency
10359         * modules/linkat (Depends-on): Require getcwd-lgpl.
10360         * modules/renameat (Depends-on): Likewise.
10361
10362         tests: reduce dependencies
10363         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10364         * tests/test-renameat.c (main): Likewise.
10365         * modules/linkat-tests (Depends-on): Relax dependency.
10366         * modules/renameat-tests (Depends-on): Likewise.
10367         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10368         dependency explicit.
10369
10370         save-cwd: reduce default dependency
10371         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10372         * lib/save-cwd.c: Update comments.
10373         * NEWS: Document the semantic change.
10374
10375         getcwd: enhance tests
10376         * tests/test-getcwd-lgpl.c: New file, taken from...
10377         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10378         repeat long path stress tests from m4 probe.
10379         * modules/getcwd-lgpl-tests: New module.
10380         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10381         * m4/getcwd-abort-bug.m4: Update comment.
10382         * m4/getcwd-path-max.m4: Likewise.
10383
10384         getcwd-lgpl: new module
10385         * modules/getcwd-lgpl: New module.
10386         * lib/getcwd-lgpl.c: New file.
10387         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10388         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10389         * modules/getcwd (configure.ac): Set C witness.
10390         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10391
10392         getcwd: tweak comments
10393         * m4/getcwd-abort-bug.m4: Fix comments.
10394         * m4/getcwd-path-max.m4: Likewise.
10395         * m4/getcwd.m4: Likewise.
10396
10397 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10398         and Eric Blake  <eblake@redhat.com>
10399
10400         mkstemp: replace if system version uses wrong permissions
10401         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10402         read/write mode bits set in file created by mkstemp.
10403         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10404
10405 2011-04-27  Eric Blake  <eblake@redhat.com>
10406
10407         passfd: avoid compiler warning
10408         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10409         Reported by Laine Stump.
10410
10411 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10412
10413         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10414         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10415
10416 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10417         and Eric Blake  <eblake@redhat.com>
10418
10419         mkstemp: mention clean-temp module
10420         * lib/mkstemp.c: Add comment.
10421         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10422
10423 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10424
10425         inttypes: also provide default values for 32-bit tests
10426         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10427         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10428
10429 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10430
10431         strtoumax: remove dependency on strtoimax
10432         This is like the strtoull change of yesterday.
10433         * modules/strtoumax (Files): Add lib/strtoimax.c.
10434         (Depends-on): Remove strtoimax and add verify.
10435
10436         inttypes-incomplete: new module
10437         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10438         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10439         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10440         of gl_INTTYPES_H.
10441         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10442         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10443         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10444         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10445         * modules/strtoumax, modules/xstrtol (Depends-on):
10446         Depend on inttypes-incomplete, not inttypes.
10447         * modules/inttypes-incomplete: New module, containing the contents
10448         of the old modules/inttypes module, except that the Files: section
10449         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10450         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10451         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10452         (Depends-on): Depend only on inttypes-incomplete.
10453         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10454
10455         inttypes: omit now-redundant strtoimax and strtoumax work
10456         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10457         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10458
10459         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10460         This supports apps that need pointers to strtoimax and strtoumax,
10461         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10462         nonexistent functions.  See
10463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10464         et seq.
10465         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10466         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10467         a macro.
10468         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10469
10470 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10471
10472         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10473
10474 2011-04-25  Bruno Haible  <bruno@clisp.org>
10475
10476         strtol, strtoul: Mark modules as obsolete.
10477         * modules/strtol (Status, Notice): New sections.
10478         * modules/strtoul (Status, Notice): New sections.
10479
10480 2011-04-25  Bruno Haible  <bruno@clisp.org>
10481
10482         strtod: Remove check for strtod, unless supporting old platforms.
10483         * modules/strtod-obsolete: New file.
10484         * m4/strtod-obsolete.m4: New file.
10485         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10486         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10487         * modules/strtod (Depends-on): Add strtod-obsolete.
10488         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10489
10490 2011-04-25  Bruno Haible  <bruno@clisp.org>
10491
10492         strcase: Make module obsolete.
10493         * modules/strcase (Status, Notice): New sections.
10494
10495 2011-04-25  Bruno Haible  <bruno@clisp.org>
10496
10497         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10498         * modules/dup2-obsolete: New file.
10499         * m4/dup2-obsolete.m4: New file.
10500         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10501         gl_FUNC_DUP2_OBSOLETE is not also defined.
10502         * modules/dup2 (Depends-on): Add dup2-obsolete.
10503         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10504
10505 2011-04-25  Bruno Haible  <bruno@clisp.org>
10506
10507         strnlen: Avoid memchr related link error on old obsolete platforms.
10508         * modules/memchr-obsolete: New file.
10509         * m4/memchr-obsolete.m4: New file.
10510         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10511         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10512         * modules/memchr (Depends-on): Add memchr-obsolete.
10513         * modules/strnlen (Depends-on): Likewise.
10514         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10515
10516 2011-04-25  Jim Meyering  <meyering@redhat.com>
10517
10518         maint.mk: makefile_at_at_check extend and clean up
10519         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10520         in addition to */Makefile.am.
10521         Exempt legitimate uses of @VAR@ notation, e.g.,
10522         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10523         Remove obsolete coreutils-specific comment.
10524         Prompted by discussion here:
10525         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10526
10527 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         strtoul: remove dependency on strtol
10530         This is so that 'configure' need not check for strtol merely because
10531         the application needs strtoul.
10532         * modules/strtoul (Files): Add lib/strtol.c.
10533         (Depends-on): Remove strtol.
10534
10535         strtoull: remove dependency on strtoul
10536         This is like the strtoll change.
10537         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10538         (Depends-on): Remove strtoul.
10539
10540         strtoll: remove dependency on strtol
10541         This is so that 'configure' need not check for strtol merely because
10542         the application needs strtoll.
10543         * modules/strtoll (Files): Add lib/strtol.c.
10544         (Depends-on): Remove strtol.
10545
10546 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10547
10548         inttypes: Move some configure check to module 'imaxdiv'.
10549         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10550         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10551         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10552
10553 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10554
10555         inttypes: Move some configure check to module 'imaxabs'.
10556         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10557         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10558         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10559
10560 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10561
10562         inttypes: Remove configure tests that are not needed since 2009-12-31.
10563         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10564         gl_cv_header_working_inttypes_h.
10565
10566 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10567
10568         * modules/strnlen (Depends-on): Remove memchr.
10569         The strnlen implementation doesn't need the memchr module's fixes; see
10570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10571
10572         strtol: remove dependency on wchar
10573         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10574         * modules/strtol (Depends-on): Remove wchar.
10575
10576 2011-04-21  Eric Blake  <eblake@redhat.com>
10577
10578         passfd: fix test regression on Linux
10579         * modules/passfd-tests (configure.ac): Correct socketpair check.
10580
10581         passfd: speed up configure and drop unused code
10582         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10583         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10584         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10585         Instead of probing at configure for unix_scm_rights_bsd44_way,
10586         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10587         check to a struct member probe.
10588         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10589         (sendfd, recvfd): Update preprocessor checks.
10590         * modules/passfd (Files): Reflect rename, and drop unused file.
10591         (Depends-on): Drop unused dependency.
10592
10593         passfd: allow compilation on mingw
10594         * modules/sys_socket (Depends-on): Add sys_uio.
10595         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10596         iovec and a minimal struct msghdr.
10597         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10598         * tests/test-sys_socket.c (main): Enhance test.
10599         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10600         guaranteed to provide what we need.
10601         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10602         * modules/passfd-tests (Depends-on): Add sys_wait.
10603         * tests/test-passfd.c (main): Skip test on mingw, for now.
10604         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10605         partial 'struct msghdr' implementation.
10606
10607         sys_uio: new module
10608         * modules/sys_uio: New module.
10609         * modules/sys_uio-tests: Likewise.
10610         * lib/sys_uio.in.h: New file.
10611         * m4/sys_uio_h.m4: Likewise.
10612         * tests/test-sys_uio.c: Likewise.
10613         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10614         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10615
10616 2011-04-20  Jim Meyering  <meyering@redhat.com>
10617
10618         useless-if-before-free: avoid false-positive
10619         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10620         disjunct so that it too requires a terminating ";".  Without that,
10621         this script would identify as useless one statement from gcc that
10622         was not:
10623           if (aligned_ptr)
10624             free (((void **) aligned_ptr) [-1]);
10625
10626 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10627
10628         doc: update users.txt.
10629         * users.txt: Add barcode.
10630
10631 2011-04-19  Bruno Haible  <bruno@clisp.org>
10632
10633         ioctl: Remove link dependency on native Windows.
10634         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10635         (gl_close_fn, gl_ioctl_fn): New types.
10636         (struct fd_hook): Renamed from struct close_hook. Change type of
10637         private_close_fn field. Add private_ioctl_fn field.
10638         (close_hook_fn): Add parameter for primary close method.
10639         (execute_close_hooks, execute_all_close_hooks): Likewise.
10640         (ioctl_hook_fn): New type.
10641         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10642         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10643         argument.
10644         (unregister_fd_hook): Renamed from unregister_close_hook.
10645         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10646         Don't include <unistd.h>.
10647         (close): Remove undef.
10648         (anchor): Update.
10649         (execute_close_hooks): Add argument for primary close method.
10650         (execute_all_close_hooks): Likewise.
10651         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10652         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10653         argument. Allow each argument to be NULL.
10654         (unregister_fd_hook): Renamed from unregister_close_hook.
10655         * lib/close.c (rpl_close): Pass 'close' function pointer to
10656         execute_all_close_hooks.
10657         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10658         (primary_ioctl): New function.
10659         (ioctl): Don't call ioctlsocket here. Instead, call
10660         execute_all_ioctl_hooks.
10661         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10662         close method.
10663         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10664         (fd_sockets_hook): Renamed from close_sockets_hook.
10665         (gl_sockets_startup, gl_sockets_cleanup): Update.
10666         * modules/fd-hook: Renamed from modules/close-hook. Update.
10667         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10668         * modules/sockets (Depends-on): Likewise.
10669         * modules/ioctl (Depends-on): Add fd-hook.
10670         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10671         GNULIB_SOCKET.
10672
10673 2011-04-19  Bruno Haible  <bruno@clisp.org>
10674
10675         Move the support of O_NONBLOCK in open() to the 'open' module.
10676         * modules/nonblocking (Depends-on): Remove 'open'.
10677         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10678         gl_cv_have_open_O_NONBLOCK.
10679         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10680         O_NONBLOCK support.
10681         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10682
10683 2011-04-17  Bruno Haible  <bruno@clisp.org>
10684
10685         pipe2: Simplify code.
10686         * lib/pipe2.c (pipe2): Reduce code duplication.
10687
10688 2011-04-17  Bruno Haible  <bruno@clisp.org>
10689
10690         nonblocking: Add comment.
10691         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10692
10693 2011-04-17  Bruno Haible  <bruno@clisp.org>
10694
10695         nonblocking: Add tests for sockets.
10696         * tests/test-nonblocking-socket.sh: New file.
10697         * tests/test-nonblocking-socket-main.c: New file.
10698         * tests/test-nonblocking-socket-child.c: New file.
10699         * tests/test-nonblocking-socket.h: New file.
10700         * tests/socket-server.h: New file.
10701         * tests/socket-client.h: New file.
10702         * modules/nonblocking-socket-tests: New file.
10703         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10704
10705 2011-04-17  Bruno Haible  <bruno@clisp.org>
10706
10707         nonblocking: Add tests for pipes.
10708         * tests/test-nonblocking-pipe.sh: New file.
10709         * tests/test-nonblocking-pipe-main.c: New file.
10710         * tests/test-nonblocking-pipe-child.c: New file.
10711         * tests/test-nonblocking-pipe.h: New file.
10712         * tests/test-nonblocking-writer.h: New file.
10713         * tests/test-nonblocking-reader.h: New file.
10714         * tests/test-nonblocking-misc.h: New file.
10715         * modules/nonblocking-pipe-tests: New file.
10716         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10717
10718 2011-04-16  Bruno Haible  <bruno@clisp.org>
10719
10720         gettext: Clarify the needed programmer actions.
10721         * modules/gettext (Notice): New field.
10722         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10723
10724 2011-04-16  Bruno Haible  <bruno@clisp.org>
10725
10726         strchrnul: Tweak last commit.
10727         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10728         bug.
10729         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10730         as in _GL_FUNCDECL_SYS.
10731         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10732         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10733
10734 2011-04-15  Eric Blake  <eblake@redhat.com>
10735
10736         strchrnul: work around cygwin bug
10737         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10738         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10740         * modules/string (Makefile.am): Substitute it.
10741         * lib/string.in.h (strchrnul): Use it.
10742
10743 2011-04-15  Bruno Haible  <bruno@clisp.org>
10744
10745         Don't require lib/stdio-write.c when only module 'stdio' is used.
10746         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10747         invocation.
10748         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10749
10750 2011-04-14  Bruno Haible  <bruno@clisp.org>
10751
10752         Support non-blocking pipe I/O in read() on native Windows.
10753         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10754         (read): New declaration.
10755         * lib/read.c: New file.
10756         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10757         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10758         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10759         vscanf): New declarations.
10760         * lib/stdio-read.c: New file.
10761         * m4/read.m4: New file.
10762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10763         REPLACE_READ.
10764         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10765         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10766         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10767         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10768         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10769         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10770         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10771         * modules/read: New file.
10772         * modules/nonblocking (Files): Add lib/stdio-read.c.
10773         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10774         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10775         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10776         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10777         * modules/pread (Depends-on): Add read.
10778         * modules/safe-read (Depends-on): Likewise.
10779         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10780         gets, scanf, vfscanf, vscanf): Verify signatures.
10781         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10782         problem with non-blocking pipes.
10783         * doc/posix-functions/fgetc.texi: Likewise.
10784         * doc/posix-functions/fgets.texi: Likewise.
10785         * doc/posix-functions/fread.texi: Likewise.
10786         * doc/posix-functions/fscanf.texi: Likewise.
10787         * doc/posix-functions/getc.texi: Likewise.
10788         * doc/posix-functions/getchar.texi: Likewise.
10789         * doc/posix-functions/gets.texi: Likewise.
10790         * doc/posix-functions/scanf.texi: Likewise.
10791         * doc/posix-functions/vfscanf.texi: Likewise.
10792         * doc/posix-functions/vscanf.texi: Likewise.
10793
10794 2011-04-14  Bruno Haible  <bruno@clisp.org>
10795
10796         Support non-blocking pipe I/O in write() on native Windows.
10797         * lib/write.c (rpl_write): Split a write request that failed merely
10798         because the byte count was larger than the pipe buffer's size.
10799         * doc/posix-functions/write.texi: Mention the problem with large byte
10800         counts.
10801
10802 2011-04-14  Bruno Haible  <bruno@clisp.org>
10803
10804         wchar: Ensure that wchar_t gets defined on uClibc.
10805         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10806         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10807
10808 2011-04-13  Bruno Haible  <bruno@clisp.org>
10809
10810         safe-write, full-read: Avoid unnecessary compilation units.
10811         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10812         (Depends-on): Remove safe-read. Add ssize_t.
10813         * modules/full-read (Files): Add lib/full-write.c.
10814         (Depends-on): Add full-write.
10815
10816 2011-04-13  Bruno Haible  <bruno@clisp.org>
10817
10818         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10819         * modules/pwrite (Depends-on): Add 'write'.
10820
10821 2011-04-13  Bruno Haible  <bruno@clisp.org>
10822
10823         Support non-blocking pipe I/O in write() on native Windows.
10824         * lib/unistd.in.h (write): Enable replacement also if
10825         GNULIB_UNISTD_H_NONBLOCKING is 1.
10826         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10827         (rpl_write): When failing to write on a non-blocking pipe, change
10828         errno from ENOSPC to EAGAIN.
10829         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10830         putchar, puts, vfprintf, vprintf): Enable replacement also if
10831         GNULIB_STDIO_H_NONBLOCKING is 1.
10832         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10833         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10834         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10835         CALL_WITH_SIGPIPE_EMULATION.
10836         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10837         * m4/nonblocking.m4: New file.
10838         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10839         for non-blocking I/O support.
10840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10841         GNULIB_UNISTD_H_NONBLOCKING.
10842         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10843         required for non-blocking I/O support.
10844         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10845         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10846         lib/stdio-write.c, m4/asm-underscore.m4.
10847         (Depends-on): Add stdio, unistd.
10848         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10849         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10850         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10851         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10852         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10853         problem with non-blocking pipes.
10854         * doc/posix-functions/fputc.texi: Likewise.
10855         * doc/posix-functions/fputs.texi: Likewise.
10856         * doc/posix-functions/fwrite.texi: Likewise.
10857         * doc/posix-functions/printf.texi: Likewise.
10858         * doc/posix-functions/putc.texi: Likewise.
10859         * doc/posix-functions/putchar.texi: Likewise.
10860         * doc/posix-functions/puts.texi: Likewise.
10861         * doc/posix-functions/vfprintf.texi: Likewise.
10862         * doc/posix-functions/vprintf.texi: Likewise.
10863         * doc/posix-functions/write.texi: Likewise.
10864
10865 2011-04-10  Jim Meyering  <meyering@redhat.com>
10866
10867         maint.mk: prohibit doubled words
10868         Detect them also when they're separated by a newline.
10869         There are 3 ways to customize it:
10870           - disable the test on a per file basis, as usual with rules using
10871             $(VC_LIST_EXCEPT)
10872           - replace the default doubled-word-selecting regexp (affects all files)
10873           - ignore a particular file-vs-doubled-word match
10874         I nearly used that last one to ignore the "is is" match in
10875         coreutils' NEWS file, since the text was "ls -is is ..."
10876         To do that, I would have added this line to cfg.mk:
10877           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10878         but it would have ignored any "is is" match in NEWS.
10879         Low probability, but still...
10880         Instead, I changed the text, slightly:
10881           -  ls -is is now consistent with ls -lis in ignoring values returned
10882           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10883         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10884         (prohibit_doubled_word_): Define.
10885         (sc_prohibit_doubled_word): New rule.
10886         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10887
10888 2011-04-10  Jim Meyering  <meyering@redhat.com>
10889
10890         maint: fix doubled-word typo in comment
10891         * m4/gethostname.m4: s/is is/it is/
10892         * m4/getdomainname.m4: Likewise.
10893
10894 2011-04-10  Jim Meyering  <meyering@redhat.com>
10895
10896         maint: remove doubled word: s/it it/it/
10897         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10898
10899 2011-04-10  Jim Meyering  <meyering@redhat.com>
10900
10901         maint.mk: remove useless semicolon and backslash
10902         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10903         semicolon and backslash.
10904
10905 2011-04-10  Bruno Haible  <bruno@clisp.org>
10906
10907         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10908         * modules/stdint-tests (Depends-on): Add wchar.
10909
10910 2011-04-10  Jim Meyering  <meyering@redhat.com>
10911
10912         maint: remove doubled words in comments, e.g., s/a a/a/
10913         * lib/strptime.c (day_of_the_week): s/the the/the/
10914         * tests/test-chown.h (test_chown): s/a a/a/
10915
10916         test-chown.h: correct a cast
10917         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10918         when the destination is a stat.st_gid.
10919
10920 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10921
10922         getaddrinfo: Fix test for sa_len member.
10923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10924         include <sys/types.h> before <sys/socket.h>.
10925
10926 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10927
10928         maint: change "can not" to "cannot"
10929         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10930         boundaries.
10931
10932 2011-04-09  Jim Meyering  <meyering@redhat.com>
10933
10934         maint: change "a a" to "a"
10935         * tests/test-lchown.h (test_lchown): s/a a/a/
10936
10937         maint.mk: prohibit \<the the\>
10938         * top/maint.mk (sc_prohibit_the_the): New rule.
10939
10940         maint: fix "the the" in comment
10941         * lib/count-one-bits.h: s/the the/the/
10942
10943         maint: change "can not" to "cannot"
10944         But do not change the occurrences in maintain.texi or in
10945         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10946         * doc/gnulib-tool.texi: s/can not/cannot/
10947         * doc/posix-functions/accept.texi (accept): Likewise.
10948         * doc/posix-functions/socket.texi (socket): Likewise.
10949         * lib/mbrtowc.c: Likewise.
10950
10951         maint.mk: prohibit use of "can not"
10952         * top/maint.mk (sc_prohibit_can_not): New rule.
10953         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10954
10955 2011-04-09  Bruno Haible  <bruno@clisp.org>
10956
10957         careadlinkat: Guard against misuse of careadlinkatcwd.
10958         * lib/careadlinkat.c: Include <stdlib.h>.
10959         (careadlinkatcwd): Check that the fd argument is as expected.
10960
10961 2011-04-09  Bruno Haible  <bruno@clisp.org>
10962
10963         careadlinkat: Use common coding style.
10964         * lib/careadlinkat.c: Move gnulib includes after system includes.
10965
10966 2011-04-09  Bruno Haible  <bruno@clisp.org>
10967
10968         careadlinkat: Clarify specification.
10969         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10970         (careadlinkatcwd): Add comment.
10971         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10972
10973 2011-04-09  Bruno Haible  <bruno@clisp.org>
10974
10975         areadlinkat: Avoid link error on many platforms.
10976         * modules/areadlinkat (Depends-on): Add areadlink.
10977
10978 2011-04-09  Bruno Haible  <bruno@clisp.org>
10979
10980         allocator, careadlinkat: Fix double-inclusion guard.
10981         * lib/allocator.h: Fix double-inclusion guard.
10982         * lib/careadlinkat.h: Likewise.
10983
10984 2011-04-09  Bruno Haible  <bruno@clisp.org>
10985
10986         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10987         * lib/relocwrapper.c: Update dependencies hierarchy.
10988         * build-aux/install-reloc: Update list of files to be compiled.
10989         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10990         lib/allocator.[hc].
10991
10992 2011-04-08  Eric Blake  <eblake@redhat.com>
10993
10994         strftime: silence gnulib-tool warning
10995         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10996
10997 2011-04-08  Bruno Haible  <bruno@clisp.org>
10998
10999         verify: Fix syntax error with GCC 4.6 in C++ mode.
11000         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11001         (HAVE_STATIC_ASSERT): New macro.
11002         (verify_true, verify): Use 'static_assert' if it is supported and
11003         '_Static_assert' is not supported.
11004
11005 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11006
11007         allocator: New module.
11008         * modules/allocator, lib/allocator.c: New files.
11009         * lib/allocator.h (stdlib_allocator): New decl.
11010         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11011         Remove.  Do not include <stdlib.h>.
11012         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11013         * modules/careadlinkat (Files): Remove lib/allocator.h.
11014         (Depends-on): Add allocator.
11015
11016         stdlib: let modules use system malloc, realloc
11017         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11018         if !_GL_USE_STDLIB_ALLOC.
11019         (malloc, realloc): Limit this change to a smaller scope.
11020
11021         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11022         (malloc, realloc): Don't #undef; no longer needed.
11023         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11024         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11025         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11026         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11027         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11028         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11029         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11030         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11031
11032         careadlinkat: rename members to avoid problem
11033         * lib/allocator.h (struct allocator): Rename members from
11034         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11035         and realloc are #define'd.  Reported by Eric Blake in
11036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11037         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11038
11039 2011-04-08  Eric Blake  <eblake@redhat.com>
11040
11041         nonblocking: reduce dependency
11042         * tests/test-nonblocking.c: Only test sockets when in use.
11043         * modules/nonblocking-tests (Depends-on): Drop socket.
11044         (Makefile.am): Link even if sockets are not present.
11045         * modules/pipe2-tests (Makefile.am): Likewise.
11046         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11047
11048         pipe2: fix O_NONBLOCK support on mingw
11049         * modules/pipe2 (Depends-on): Add nonblocking.
11050         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11051         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11052         * tests/test-nonblocking.c (main): Likewise.
11053         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11054
11055         fcntl-h: fix O_ACCMODE on cygwin
11056         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11057         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11058
11059         pipe-filter: drop O_NONBLOCK workarounds
11060         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11061         * modules/pipe-filter-ii (Depends-on): Likewise.
11062         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11063
11064         nonblocking: provide O_NONBLOCK for mingw
11065         * modules/nonblocking (Depends-on): Add open.
11066         (configure.ac): Set new witness macro.
11067         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11068         * modules/fcntl-h (Makefile.am): Substitute it.
11069         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11070         nonblocking module is in use.
11071         * lib/nonblocking.c: Adjust portability test.
11072         * lib/open.c (open): Don't let native open see gnulib flag.
11073         * tests/test-fcntl-h.c (main): Enhance test.
11074         * tests/test-open.h (test_open): Likewise.
11075         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11076
11077         careadlinkat: fix compilation error on mingw
11078         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11079         within struct allocator.
11080
11081 2011-04-06  Eric Blake  <eblake@redhat.com>
11082
11083         binary-io: relicense under LGPLv2+
11084         * modules/binary-io (License): Relax to LGPLv2+.
11085         Requested for libvirt, and required by pipe2.
11086
11087 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11088
11089         verify: use _Static_assert if available
11090         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11091         (verify_true, verify): Use it if available.  This generates better
11092         diagnostics with GCC 4.6.0 and later.
11093
11094 2011-04-05  Bruno Haible  <bruno@clisp.org>
11095
11096         Remove leftover generated .h files after config.status changed.
11097
11098         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11099         GL_GENERATE_ALLOCA_H.
11100         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11101         GL_GENERATE_ALLOCA_H evaluates to false.
11102
11103         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11104         GL_GENERATE_ARGZ_H.
11105         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11106         evaluates to false.
11107
11108         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11109         GL_GENERATE_BYTESWAP_H.
11110         * modules/byteswap (Makefile.am): Remove byteswap.h if
11111         GL_GENERATE_BYTESWAP_H evaluates to false.
11112
11113         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11114         GL_GENERATE_ERRNO_H.
11115         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11116         evaluates to false.
11117
11118         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11119         GL_GENERATE_FLOAT_H.
11120         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11121         evaluates to false.
11122
11123         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11124         GL_GENERATE_FNMATCH_H.
11125         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11126         GL_GENERATE_FNMATCH_H evaluates to false.
11127
11128         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11129         GL_GENERATE_GLOB_H.
11130         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11131         evaluates to false.
11132
11133         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11134         automake conditional GL_GENERATE_ICONV_H.
11135         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11136         evaluates to false.
11137
11138         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11139         GL_GENERATE_NETINET_IN_H.
11140         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11141         GL_GENERATE_NETINET_IN_H evaluates to false.
11142
11143         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11144         conditional GL_GENERATE_PTHREAD_H.
11145         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11146         * modules/pthread (Makefile.am): Remove pthread.h if
11147         GL_GENERATE_PTHREAD_H evaluates to false.
11148
11149         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11150         GL_GENERATE_SCHED_H.
11151         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11152         evaluates to false.
11153
11154         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11155         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11156         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11157         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11158
11159         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11160         GL_GENERATE_STDARG_H.
11161         * modules/stdarg (Makefile.am): Remove stdarg.h if
11162         GL_GENERATE_STDARG_H evaluates to false.
11163
11164         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11165         GL_GENERATE_STDBOOL_H.
11166         * modules/stdbool (Makefile.am): Remove stdbool.h if
11167         GL_GENERATE_STDBOOL_H evaluates to false.
11168
11169         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11170         conditional GL_GENERATE_STDDEF_H.
11171         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11172         * modules/stddef (Makefile.am): Remove stddef.h if
11173         GL_GENERATE_STDDEF_H evaluates to false.
11174
11175         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11176         GL_GENERATE_STDINT_H.
11177         * modules/stdint (Makefile.am): Remove stdint.h if
11178         GL_GENERATE_STDINT_H evaluates to false.
11179
11180         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11181         GL_GENERATE_SYSEXITS_H.
11182         * modules/sysexits (Makefile.am): Remove sysexits.h if
11183         GL_GENERATE_SYSEXITS_H evaluates to false.
11184
11185         Reported by Karl Berry and Ralf Wildenhues.
11186
11187 2011-04-05  Bruno Haible  <bruno@clisp.org>
11188
11189         Ensure to rebuild generated .h files when config.status has changed.
11190         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11191         config.status.
11192         * modules/ctype (Makefile.am): Likewise.
11193         * modules/dirent (Makefile.am): Likewise.
11194         * modules/errno (Makefile.am): Likewise.
11195         * modules/fcntl-h (Makefile.am): Likewise.
11196         * modules/float (Makefile.am): Likewise.
11197         * modules/getopt-posix (Makefile.am): Likewise.
11198         * modules/glob (Makefile.am): Likewise.
11199         * modules/iconv-h (Makefile.am): Likewise.
11200         * modules/inttypes (Makefile.am): Likewise.
11201         * modules/langinfo (Makefile.am): Likewise.
11202         * modules/locale (Makefile.am): Likewise.
11203         * modules/math (Makefile.am): Likewise.
11204         * modules/netdb (Makefile.am): Likewise.
11205         * modules/netinet_in (Makefile.am): Likewise.
11206         * modules/poll-h (Makefile.am): Likewise.
11207         * modules/pthread (Makefile.am): Likewise.
11208         * modules/pty (Makefile.am): Likewise.
11209         * modules/sched (Makefile.am): Likewise.
11210         * modules/search (Makefile.am): Likewise.
11211         * modules/selinux-h (Makefile.am): Likewise.
11212         * modules/signal (Makefile.am): Likewise.
11213         * modules/spawn (Makefile.am): Likewise.
11214         * modules/stdarg (Makefile.am): Likewise.
11215         * modules/stdbool (Makefile.am): Likewise.
11216         * modules/stddef (Makefile.am): Likewise.
11217         * modules/stdint (Makefile.am): Likewise.
11218         * modules/stdio (Makefile.am): Likewise.
11219         * modules/stdlib (Makefile.am): Likewise.
11220         * modules/string (Makefile.am): Likewise.
11221         * modules/strings (Makefile.am): Likewise.
11222         * modules/sys_file (Makefile.am): Likewise.
11223         * modules/sys_ioctl (Makefile.am): Likewise.
11224         * modules/sys_select (Makefile.am): Likewise.
11225         * modules/sys_socket (Makefile.am): Likewise.
11226         * modules/sys_stat (Makefile.am): Likewise.
11227         * modules/sys_time (Makefile.am): Likewise.
11228         * modules/sys_times (Makefile.am): Likewise.
11229         * modules/sys_utsname (Makefile.am): Likewise.
11230         * modules/sys_wait (Makefile.am): Likewise.
11231         * modules/sysexits (Makefile.am): Likewise.
11232         * modules/termios (Makefile.am): Likewise.
11233         * modules/time (Makefile.am): Likewise.
11234         * modules/unistd (Makefile.am): Likewise.
11235         * modules/wchar (Makefile.am): Likewise.
11236         * modules/wctype-h (Makefile.am): Likewise.
11237         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11238
11239 2011-04-05  Bruno Haible  <bruno@clisp.org>
11240
11241         pipe2: Relicense under LGPLv2+.
11242         * modules/pipe2 (License): Change to LGPLv2+.
11243         Requested by Eric Blake, for libvirt.
11244
11245 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11246
11247         bootstrap: compute gnulib_extra_files after updating build_aux
11248         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11249         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11250
11251 2011-04-05  Eric Blake  <eblake@redhat.com>
11252
11253         bootstrap: preserve git whitelist item sorting
11254         * build-aux/bootstrap (sort_patterns): New function.
11255         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11256
11257 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11258
11259         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11260         sc_space_tab check.
11261
11262 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         areadlink, areadlinkat: rewrite in terms of careadlinkat
11265         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11266         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11267         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11268         (malloc, realloc): Remove #undefs.
11269         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11270         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11271         readlink, ssize_t, stdint, unistd.
11272         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11273         areadlink, stdint.
11274
11275         careadlinkat: new module
11276         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11277         * modules/careadlinkat: New files, written by me with
11278         a review and feedback from Ben Pfaff in
11279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11280
11281 2011-04-01  Bruno Haible  <bruno@clisp.org>
11282
11283         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11284         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11285         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11286         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11287         Reported by Bruce Korb <bruce.korb@gmail.com>.
11288
11289 2011-04-01  Bruno Haible  <bruno@clisp.org>
11290
11291         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11292         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11293         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11294         * modules/wcpcpy (Depends-on): Add extensions.
11295         * modules/wcpncpy (Depends-on): Likewise.
11296         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11297         systems.
11298         * doc/posix-functions/wcpncpy.texi: Likewise.
11299         * doc/posix-functions/wcwidth.texi: Likewise.
11300
11301 2011-03-31  Eric Blake  <eblake@redhat.com>
11302
11303         nonblocking: fix mingw test failures
11304         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11305         non-blocking flag on regular file.
11306         (get_nonblocking_flag): Set errno on invalid fd.
11307         * tests/test-nonblocking.c (main): Avoid test failure on
11308         directories if fchdir is not active.
11309         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11310
11311 2011-03-31  Bruno Haible  <bruno@clisp.org>
11312
11313         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11314         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11315         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11316         Reported by Simon Josefsson <simon@josefsson.org>.
11317
11318 2011-03-31  Bruno Haible  <bruno@clisp.org>
11319         and Eric Blake  <eblake@redhat.com>
11320
11321         nonblocking: new module
11322         * modules/nonblocking: New module.
11323         * modules/nonblocking-tests: Likewise.
11324         * lib/nonblocking.h: New file.
11325         * lib/nonblocking.c: Likewise.
11326         * tests/test-nonblocking.c: New test.
11327         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11328
11329 2011-03-30  Bruno Haible  <bruno@clisp.org>
11330
11331         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11332         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11333         instead of 'printf' format for GCC >= 4.4.
11334         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11335         (fprintf, printf, vfprintf, vprintf): Declare with
11336         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11337         the system's vfprintf() function.
11338         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11339
11340 2011-03-30  Eric Blake  <eblake@redhat.com>
11341
11342         passfd: fix scoping bug
11343         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11344         before sendmsg/recvmsg.
11345
11346         passfd: standardize coding conventions
11347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11348         can be learned at compile time.
11349         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11350         ifdefs.
11351         (sendfd, recvfd): Follow gnulib code conventions.
11352
11353         passfd: fix incorrect sendmsg arguments
11354         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11355         incorrect msg_controllen value.
11356         * modules/passfd-tests (Depends-on): Check for alarm.
11357         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11358         Reported by Bastien ROUCARIES.
11359
11360 2011-03-30  Bruno Haible  <bruno@clisp.org>
11361
11362         c-strcasestr: Relicense under LGPLv2+.
11363         * modules/c-strcasestr (License): Change to LGPLv2+.
11364         Requested by Eric Blake, for libvirt.
11365
11366 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11367
11368         * users.txt: Add libidn2.  Fix libtasn1 link.
11369
11370 2011-03-30  Jim Meyering  <meyering@redhat.com>
11371
11372         tests: readlink* ("",... fails with EINVAL on newer kernels
11373         readlink and readlinkat have typically failed with ENOENT for
11374         the invalid, empty file name,  "".  However, with the advent
11375         of linux-2.6.39, they fail with EINVAL.
11376         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11377         when operating on the empty file name.
11378         * tests/test-readlink.h (test_readlink): Likewise.
11379
11380 2011-03-29  Bruno Haible  <bruno@clisp.org>
11381
11382         Relicense some modules under LGPLv2+, for libidn2.
11383         * modules/array-mergesort (License): Change to LGPLv2+.
11384         * modules/c-strcaseeq (License): Likewise.
11385         * modules/striconveh (License): Likewise.
11386         * modules/striconveha (License): Likewise.
11387         * modules/uniconv/base (License): Likewise.
11388         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11389         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11390         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11391         * modules/unictype/base (License): Likewise.
11392         * modules/unictype/bidiclass-of (License): Likewise.
11393         * modules/unictype/category-M (License): Likewise.
11394         * modules/unictype/category-none (License): Likewise.
11395         * modules/unictype/category-of (License): Likewise.
11396         * modules/unictype/category-test (License): Likewise.
11397         * modules/unictype/category-test-withtable (License): Likewise.
11398         * modules/unictype/combining-class (License): Likewise.
11399         * modules/unictype/joiningtype-of (License): Likewise.
11400         * modules/unictype/scripts (License): Likewise.
11401         * modules/uninorm/base (License): Likewise.
11402         * modules/uninorm/canonical-decomposition (License): Likewise.
11403         * modules/uninorm/composition (License): Likewise.
11404         * modules/uninorm/decompose-internal (License): Likewise.
11405         * modules/uninorm/decomposition-table (License): Likewise.
11406         * modules/uninorm/nfc (License): Likewise.
11407         * modules/uninorm/nfd (License): Likewise.
11408         * modules/uninorm/u32-normalize (License): Likewise.
11409         * modules/unistr/base (License): Likewise.
11410         * modules/unistr/u32-cpy (License): Likewise.
11411         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11412         * modules/unistr/u32-to-u8 (License): Likewise.
11413         * modules/unistr/u32-uctomb (License): Likewise.
11414         * modules/unistr/u8-check (License): Likewise.
11415         * modules/unistr/u8-mblen (License): Likewise.
11416         * modules/unistr/u8-mbtouc (License): Likewise.
11417         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11418         * modules/unistr/u8-mbtoucr (License): Likewise.
11419         * modules/unistr/u8-prev (License): Likewise.
11420         * modules/unistr/u8-strlen (License): Likewise.
11421         * modules/unistr/u8-to-u32 (License): Likewise.
11422         * modules/unistr/u8-uctomb (License): Likewise.
11423         * modules/unitypes (License): Likewise.
11424         Requested by Simon Josefsson.
11425
11426 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11427
11428         lib-symbol-visibility: Add a notice.
11429         * modules/lib-symbol-visibility (Notice): New field.
11430
11431 2011-03-29  Bruno Haible  <bruno@clisp.org>
11432
11433         getaddrinfo: Doc fix.
11434         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11435         section "fixed in Gnulib".
11436
11437 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11438
11439         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11440         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11441
11442 2011-03-26  Bruno Haible  <bruno@clisp.org>
11443
11444         unictype/property-byname: Reduce the number of load-time relocations.
11445         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11446         (UC_PROPERTY_INDEX_*): New enumeration values.
11447         (uc_property_byname): Convert an index from the lookup table to an
11448         uc_property_t.
11449         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11450         values.
11451
11452 2011-03-26  Bruno Haible  <bruno@clisp.org>
11453
11454         unictype/property-byname: Allow omitted word separators and aliases.
11455         * lib/unictype/pr_byname.gperf: Add property names without word
11456         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11457         for 'space'.
11458
11459 2011-03-26  Bruno Haible  <bruno@clisp.org>
11460
11461         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11462         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11463         also hyphens to space.
11464         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11465         without spaces.
11466         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11467
11468 2011-03-26  Bruno Haible  <bruno@clisp.org>
11469
11470         unictype/joiningtype-byname: Recognize long names as well.
11471         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11472         a long name.
11473         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11474         unictype/joiningtype_byname.h.
11475         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11476         * lib/unictype/joiningtype_byname.gperf: New file.
11477         * modules/unictype/joiningtype-byname (Files): Add
11478         lib/unictype/joiningtype_byname.gperf.
11479         (Depends-on): Add gperf.
11480         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11481         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11482         long names.
11483
11484         Tests for module 'unictype/joiningtype-longname'.
11485         * modules/unictype/joiningtype-longname-tests: New file.
11486         * tests/unictype/test-joiningtype_longname.c: New file.
11487
11488         New module 'unictype/joiningtype-longname'.
11489         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11490         * lib/unictype/joiningtype_longname.c: New file.
11491         * modules/unictype/joiningtype-longname: New file.
11492         * modules/unictype/joiningtype-all (Depends-on): Add
11493         unictype/joiningtype-longname.
11494
11495 2011-03-26  Bruno Haible  <bruno@clisp.org>
11496
11497         unictype/bidiclass-byname: Recognize long names as well.
11498         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11499         name.
11500         * lib/unictype/bidi_byname.c: Include <string.h>,
11501         unictype/bidi_byname.h.
11502         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11503         * lib/unictype/bidi_byname.gperf: New file.
11504         * modules/unictype/bidiclass-byname (Files): Add
11505         lib/unictype/bidi_byname.gperf.
11506         (Depends-on): Add gperf.
11507         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11508         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11509         long names.
11510
11511         Tests for module 'unictype/bidiclass-longname'.
11512         * modules/unictype/bidiclass-longname-tests: New file.
11513         * tests/unictype/test-bidi_longname.c: New file.
11514
11515         New module 'unictype/bidiclass-longname'.
11516         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11517         * lib/unictype/bidi_longname.c: New file.
11518         * modules/unictype/bidiclass-longname: New file.
11519         * modules/unictype/bidiclass-all (Depends-on): Add
11520         unictype/bidiclass-longname.
11521
11522 2011-03-26  Bruno Haible  <bruno@clisp.org>
11523
11524         unictype/bidi*: Rename modules.
11525         * modules/unictype/bidiclass-all: Renamed from
11526         modules/unictype/bidicategory-all.
11527         * modules/unictype/bidiclass-name: Renamed from
11528         modules/unictype/bidiclass-name.
11529         (Description): Update.
11530         * modules/unictype/bidiclass-name-tests: Renamed from
11531         modules/unictype/bidicategory-name-tests.
11532         * modules/unictype/bidiclass-byname: Renamed from
11533         modules/unictype/bidicategory-byname.
11534         (Description): Update.
11535         * modules/unictype/bidiclass-byname-tests: Renamed from
11536         modules/unictype/bidicategory-byname-tests.
11537         * modules/unictype/bidiclass-of: Renamed from
11538         modules/unictype/bidicategory-of.
11539         (Description): Update.
11540         * modules/unictype/bidiclass-of-tests: Renamed from
11541         modules/unictype/bidicategory-of-tests.
11542         * modules/unictype/bidiclass-test: Renamed from
11543         modules/unictype/bidicategory-test.
11544         (Description): Update.
11545         * modules/unictype/bidiclass-test-tests: Renamed from
11546         modules/unictype/bidicategory-test-tests.
11547         * modules/unictype/bidicategory-all: New file, a simple redirection.
11548         * modules/unictype/bidicategory-name: Likewise.
11549         * modules/unictype/bidicategory-byname: Likewise.
11550         * modules/unictype/bidicategory-of: Likewise.
11551         * modules/unictype/bidicategory-test: Likewise.
11552         * modules/unictype/property-bidi-* (Dependencies): Update.
11553         * lib/unictype/bidi_*.c: Update comment.
11554
11555 2011-03-26  Bruno Haible  <bruno@clisp.org>
11556
11557         unictype/bidi*: Rename functions, part 2.
11558         * modules/unictype/bidicategory-name (configure.ac): Update required
11559         libunistring version.
11560         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11561
11562 2011-03-25  Bruno Haible  <bruno@clisp.org>
11563
11564         New module 'unictype/combining-class-all'.
11565         * modules/unictype/combining-class-all: New file.
11566
11567         Tests for module 'unictype/combining-class-byname'.
11568         * modules/unictype/combining-class-byname-tests: New file.
11569         * tests/unictype/test-combiningclass_byname.c: New file.
11570
11571         New module 'unictype/combining-class-byname'.
11572         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11573         * lib/unictype/combiningclass_byname.c: New file.
11574         * lib/unictype/combiningclass_byname.gperf: New file.
11575         * modules/unictype/combining-class-byname: New file.
11576
11577         Tests for module 'unictype/combining-class-longname'.
11578         * modules/unictype/combining-class-longname-tests: New file.
11579         * tests/unictype/test-combiningclass_longname.c: New file.
11580
11581         New module 'unictype/combining-class-longname'.
11582         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11583         * lib/unictype/combiningclass_longname.c: New file.
11584         * modules/unictype/combining-class-longname: New file.
11585
11586         Tests for module 'unictype/combining-class-name'.
11587         * modules/unictype/combining-class-name-tests: New file.
11588         * tests/unictype/test-combiningclass_name.c: New file.
11589
11590         New module 'unictype/combining-class-name'.
11591         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11592         * lib/unictype/combiningclass_name.c: New file.
11593         * modules/unictype/combining-class-name: New file.
11594
11595 2011-03-25  Bruno Haible  <bruno@clisp.org>
11596
11597         unictype/combining-class: Rename source files.
11598         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11599         of unictype/combining.h.
11600         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11601         Update.
11602         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11603         * modules/unictype/combining-class (Description): Fix.
11604         (Files, Makefile.am): Update.
11605         * tests/unictype/test-combiningclass.c: Renamed from
11606         tests/unictype/test-combining.c.
11607         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11608
11609 2011-03-25  Bruno Haible  <bruno@clisp.org>
11610
11611         unictype: Update list of canonical combining classes.
11612         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11613
11614 2011-03-25  Bruno Haible  <bruno@clisp.org>
11615
11616         unictype/category-byname: Recognize long names as well.
11617         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11618         a long name.
11619         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11620         unictype/categ_byname.h.
11621         (UC_CATEGORY_INDEX_*): New enumeration values.
11622         (uc_general_category_byname): Use uc_general_category_lookup and
11623         convert from index to value.
11624         * lib/unictype/categ_byname.gperf: New file.
11625         * modules/unictype/category-byname (Files): Add
11626         lib/unictype/categ_byname.gperf.
11627         (Depends-on): Add gperf.
11628         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11629         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11630         long names.
11631
11632         Tests for module 'unictype/category-longname'.
11633         * modules/unictype/category-longname-tests: New file.
11634         * tests/unictype/test-categ_longname.c: New file.
11635
11636         New module 'unictype/category-longname'.
11637         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11638         * lib/unictype/categ_longname.c: New file.
11639         * modules/unictype/category-longname: New file.
11640         * modules/unictype/category-all (Depends-on): Add it.
11641
11642 2011-03-25  Bruno Haible  <bruno@clisp.org>
11643
11644         Tests for module 'unictype/category-LC'.
11645         * modules/unictype/category-LC-tests: New file.
11646         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11647
11648         New module 'unictype/category-LC'.
11649         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11650         (UC_CATEGORY_LC): New declaration.
11651         (UC_CASED_LETTER): New macro.
11652         * lib/gen-uni-tables.c (is_category_LC): New function.
11653         (output_categories): Also handle category LC.
11654         (UC_CATEGORY_MASK_LC): New enumeration value.
11655         (general_category_byname): Also handle category LC.
11656         * lib/unictype/categ_LC.c: New file.
11657         * lib/unictype/categ_LC.h: New file, automatically generated.
11658         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11659         category LC.
11660         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11661         * modules/unictype/category-LC: New file.
11662         * modules/unictype/category-byname (Depends-on): Add
11663         unictype/category-LC.
11664         * modules/unictype/category-all (Depends-on): Likewise.
11665
11666 2011-03-25  Eric Blake  <eblake@redhat.com>
11667
11668         xmalloc: revert yesterday's regression
11669         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11670         realloc's underlying behavior (allowing allocation of zero-size
11671         objects, especially if malloc-gnu is also in use).
11672
11673 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11674
11675         maint.mk: add missing version to VC-tag
11676         * top/maint.mk: git tag was missing actual tag name; add it.
11677
11678         valgrind: do leak checking, and exit with code 1 on error (not 0)
11679         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11680         to VALGRIND.
11681
11682 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11683
11684         posix-modules: say what it does.
11685         * posix-modules: Add a line to the --help output saying what it does.
11686
11687 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11688
11689         xmalloc: Do not leak if underlying realloc is C99 compatible.
11690         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11691         This avoids a leak on C99-based systems.  See
11692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11693
11694 2011-03-24  Eric Blake  <eblake@redhat.com>
11695
11696         realloc: document portability problem
11697         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11698         passing 0 size to realloc.
11699
11700 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11701
11702         doc: update users.txt
11703         * users.txt: Add cvsps, tmpwatch
11704
11705 2011-03-23  Matt Rice  <ratmice@gmail.com>
11706
11707         doc: update users.txt
11708         * users.txt: Add gdb.
11709
11710 2011-03-23  Jim Meyering  <meyering@redhat.com>
11711
11712         doc: update users.txt
11713         Looking through matches up to the following URL (there are still
11714         several more pages), I found several projects that use gnulib:
11715         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11716         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11717         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11718
11719 2011-03-22  Bruno Haible  <bruno@clisp.org>
11720
11721         unictype/bidi*: Rename functions.
11722         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11723         uc_bidi_class, uc_is_bidi_class): New declarations.
11724         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11725         uc_bidi_category_byname.
11726         (uc_bidi_category_byname): New function.
11727         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11728         u_bidi_category_name.
11729         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11730         (uc_bidi_category_name): New function.
11731         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11732         uc_bidi_category.
11733         (uc_bidi_category): New function.
11734         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11735         uc_is_bidi_category. Invoke uc_bidi_class.
11736         (uc_is_bidi_category): New function.
11737         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11738         instead of uc_bidi_category_byname.
11739         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11740         instead of uc_bidi_category_name.
11741         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11742         uc_bidi_category.
11743         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11744         instead of uc_is_bidi_category.
11745
11746 2011-03-21  Bruno Haible  <bruno@clisp.org>
11747
11748         New module 'unictype/joininggroup-all'.
11749         * modules/unictype/joininggroup-all: New file.
11750
11751         Tests for module 'unictype/joininggroup-of'.
11752         * modules/unictype/joininggroup-of-tests: New file.
11753         * tests/unictype/test-joininggroup_of.c: New file.
11754         * tests/unictype/test-joininggroup_of.h: New file, automatically
11755         generated by gen-uni-tables.
11756
11757         New module 'unictype/joininggroup-of'.
11758         * modules/unictype/joininggroup-of: New file.
11759         * lib/unictype/joininggroup_of.c: New file.
11760         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11761         gen-uni-tables.
11762
11763         Tests for module 'unictype/joininggroup-byname'.
11764         * modules/unictype/joininggroup-byname-tests: New file.
11765         * tests/unictype/test-joininggroup_byname.c: New file.
11766
11767         New module 'unictype/joininggroup-byname'.
11768         * modules/unictype/joininggroup-byname: New file.
11769         * lib/unictype/joininggroup_byname.c: New file.
11770         * lib/unictype/joininggroup_byname.gperf: New file.
11771
11772         Tests for module 'unictype/joininggroup-name'.
11773         * modules/unictype/joininggroup-name-tests: New file.
11774         * tests/unictype/test-joininggroup_name.c: New file.
11775
11776         New module 'unictype/joininggroup-name'.
11777         * modules/unictype/joininggroup-name: New file.
11778         * lib/unictype/joininggroup_name.c: New file.
11779         * lib/unictype/joininggroup_name.h: New file.
11780
11781         New module 'unictype/joiningtype-all'.
11782         * modules/unictype/joiningtype-all: New file.
11783
11784         Tests for module 'unictype/joiningtype-of'.
11785         * modules/unictype/joiningtype-of-tests: New file.
11786         * tests/unictype/test-joiningtype_of.c: New file.
11787         * tests/unictype/test-joiningtype_of.h: New file, automatically
11788         generated by gen-uni-tables.
11789
11790         New module 'unictype/joiningtype-of'.
11791         * modules/unictype/joiningtype-of: New file.
11792         * lib/unictype/joiningtype_of.c: New file.
11793         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11794         gen-uni-tables.
11795
11796         Tests for module 'unictype/joiningtype-byname'.
11797         * modules/unictype/joiningtype-byname-tests: New file.
11798         * tests/unictype/test-joiningtype_byname.c: New file.
11799
11800         New module 'unictype/joiningtype-byname'.
11801         * modules/unictype/joiningtype-byname: New file.
11802         * lib/unictype/joiningtype_byname.c: New file.
11803
11804         Tests for module 'unictype/joiningtype-name'.
11805         * modules/unictype/joiningtype-name-tests: New file.
11806         * tests/unictype/test-joiningtype_name.c: New file.
11807
11808         New module 'unictype/joiningtype-name'.
11809         * modules/unictype/joiningtype-name: New file.
11810         * lib/unictype/joiningtype_name.c: New file.
11811
11812         unictype: Add support for Arabic shaping properties.
11813         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11814         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11815         declarations.
11816         (UC_JOINING_GROUP_*): New enumeration values.
11817         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11818         declarations.
11819         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11820         (unicode_joining_type): New variable.
11821         (UC_JOINING_GROUP_*): New enumeration values.
11822         (unicode_joining_group): New variable.
11823         (fill_arabicshaping, joining_type_as_c_identifier,
11824         output_joining_type_test, output_joining_type,
11825         joining_group_as_c_identifier, output_joining_group_test,
11826         output_joining_group): New functions.
11827         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11828         fill_arabicshaping and output_joining_type_test, output_joining_type,
11829         output_joining_group_test, output_joining_group.
11830         Reported by Simon Josefsson.
11831
11832 2011-03-21  Jim Meyering  <meyering@redhat.com>
11833
11834         strftime: fix a bug in yesterday's change
11835         * lib/strftime.c (add): Accommodate width's initial value of -1.
11836         Otherwise, nstrftime would copy uninitialized data into
11837         the result buffer.
11838
11839 2011-03-21  Jim Meyering  <meyering@redhat.com>
11840
11841         tests: add strftime-tests module
11842         * tests/test-strftime.c: New file.
11843         * modules/strftime-tests: New module.
11844
11845 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11846
11847         strftime: don't assume a byte count fits in 'int'
11848         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11849         found this problem by static analysis, using gcc -Wstrict-overflow
11850         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11851         on an integer overflow having undefined behavior, but it turns out
11852         that the argument is a size, which might not fit in 'int' anyway,
11853
11854 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11855
11856         stdio: don't require ignore_value around fwrite
11857
11858         This patch works around libc bug 11959
11859         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11860         Without this patch, applications must often write
11861         ignore_value (fwrite (...)) even though the ignore_value is
11862         not helpful here.  It's common to write many objects, using
11863         fwrite/printf/etc., and then use ferror to detect output error.
11864
11865         I considered making this patch optional, but decided against it,
11866         because libc is obviously being inconsistent here: there is no
11867         reason libc should insist that user code must inspect fwrite
11868         return's value without also insisting that it inspect printf's,
11869         putchar's, etc.  If user code wants to have a strict style where
11870         all these functions' values are checked (so that ferror need not
11871         be checked), we could add support for that style in a new gnulib
11872         module, but in the meantime it's better to be consistent and to
11873         support common usage.
11874
11875         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11876         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11877         that we are compiling in checking mode, and if not C++, and
11878         if not already wrapping fwrite for some other reason.
11879         (fwrite): #define to rpl_fwrite if the latter is defined.
11880
11881 2011-03-20  Bruno Haible  <bruno@clisp.org>
11882
11883         verror: Fix compilation error introduced on 2011-02-13.
11884         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11885         instead of __attribute__.
11886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11887
11888 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11889             Bruno Haible  <bruno@clisp.org>
11890
11891         socklen: do not depend on sys_socket
11892         While trying to modify Emacs to use gnulib's socklen module,
11893         I discovered a circular dependency: socklen depends on sys_socket
11894         and vice versa.  Emacs can use socklen, but it does not need
11895         sys_socket because it has its own substitute for sys/socket.h.
11896         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11897         gl_TYPE_SOCKLEN_T.
11898         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11899         gl_PREREQ_SYS_H_SOCKET.
11900         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11901         gl_PREREQ_SYS_H_SOCKET.
11902         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11903         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11904         * modules/socklen (Depends-on): Do not depend on sys_socket.
11905         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11906
11907 2011-03-20  Jim Meyering  <meyering@redhat.com>
11908
11909         maint.mk: sort file names *after* new transformation
11910         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11911         prefix would have led to an unwarranted failure in GNU parted.
11912         Sort after that transformation.
11913
11914 2011-03-19  Jim Meyering  <meyering@redhat.com>
11915
11916         maint.mk: fix po-file syntax-check rule
11917         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11918         Patch by Bruno Haible.
11919
11920 2011-03-19  Bruno Haible  <bruno@clisp.org>
11921
11922         socklen: Update comment.
11923         * m4/socklen.m4: Update comment about platforms.
11924
11925 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11926             Bruno Haible  <bruno@clisp.org>
11927
11928         inet_ntop, inet_pton: Simplify.
11929         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11930         documented to provide socklen_t and we already depend on sys_socket.
11931         * modules/inet_pton (Depends-on): Likewise.
11932         * lib/arpa_inet.in.h: Adjust comment.
11933
11934 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11935             Bruno Haible  <bruno@clisp.org>
11936
11937         netdb: Simplify.
11938         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11939         documented to provide socklen_t and we already depend on sys_socket.
11940         * lib/netdb.in.h: Adjust comment.
11941
11942 2011-03-19  Bruno Haible  <bruno@clisp.org>
11943
11944         sys_socket, netdb: Document problem with socklen_t.
11945         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11946         platforms.
11947         * doc/posix-headers/netdb.texi: Likewise.
11948
11949 2011-03-18  Eric Blake  <eblake@redhat.com>
11950
11951         maint.mk: let po check work in VPATH build
11952         * top/maint.mk (po_file): Allow cfg.mk override.
11953         (sc_po_check): Allow VPATH use.
11954         Reported by Jiri Denemark.
11955
11956 2011-03-16  Jim Meyering  <meyering@redhat.com>
11957
11958         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11959         Before, you would have had to create one .x-sc_ file per rule in order
11960         to exempt offending files.  Now, you may instead use a Make variable --
11961         usually defined in cfg.mk -- whose name identifies the affected rule.
11962         * top/maint.mk (_sc_excl): Define.
11963         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11964         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11965
11966 2011-03-13  Bruno Haible  <bruno@clisp.org>
11967
11968         ignore-value tests: Avoid warnings.
11969         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11970         empty for gcc < 3.4.
11971
11972 2011-03-13  Bruno Haible  <bruno@clisp.org>
11973
11974         passfd: Fix link error on Solaris.
11975         * modules/passfd (Description): Correct.
11976         (Depends-on): Add socketlib.
11977         (Link): New section.
11978         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11979
11980 2011-03-13  Bruno Haible  <bruno@clisp.org>
11981
11982         passfd: Fix link error on AIX 5.2.
11983         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11984
11985 2011-03-13  Bruno Haible  <bruno@clisp.org>
11986
11987         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11988         * lib/sys_socket.in.h: Include <stddef.h>.
11989         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11990         CMSG_FIRSTHDR. Remove unused variable.
11991
11992 2011-03-13  Bruno Haible  <bruno@clisp.org>
11993
11994         passfd: Fix compilation error on OpenBSD.
11995         * lib/passfd.c: Include <sys/uio.h>.
11996
11997 2011-03-13  Bruno Haible  <bruno@clisp.org>
11998
11999         passfd test: Fix warnings.
12000         * tests/test-passfd.c: Include <sys/wait.h>.
12001         (main): Fix typo.
12002
12003 2011-03-13  Bruno Haible  <bruno@clisp.org>
12004
12005         passfd module, part 4, tweaks.
12006         * tests/test-passfd.c: Reorder includes.
12007         (main): Fix perror and printf calls.
12008
12009 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12010
12011         passfd module, part 4.
12012         * modules/passfd-tests: New file.
12013         * tests/test-passfd.c: New file.
12014
12015 2011-03-13  Jim Meyering  <meyering@redhat.com>
12016
12017         Makefile: rely on GNU make; derive syntax-check rule names
12018         Rather than requiring that each sc_ rule be listed as a dependent
12019         of "check", use features of GNU make to derive the list.
12020         * Makefile (syntax-check-rules): Define.
12021         (check): Depend on the new variable, not the hard-coded list.
12022
12023 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12024             Bruno Haible  <bruno@clisp.org>
12025
12026         passfd module, part 3.
12027         * lib/passfd.h (recvfd): Add a flags argument.
12028         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12029         (recvfd): Add a flags argument.
12030         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12031         exists.
12032         * modules/passfd (Depends-on): Add cloexec.
12033         Suggested by Eric Blake.
12034
12035 2011-03-13  Bruno Haible  <bruno@clisp.org>
12036
12037         passfd module, part 2, tweaks.
12038         * modules/passfd (Files): Reorder.
12039         (Depends-on): Remove errno.
12040         (Include): Remove <sys/socket.h>, <sys/un.h>.
12041         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12042         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12043         specification header. Include <sys/socket.h> always. Don't include
12044         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12045         (sendfd): Clarify that it sets errno when it fails.
12046         (recvfd): Fix specification.
12047
12048 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12049
12050         passfd module, part 2.
12051         * modules/passfd: New file.
12052         * lib/passfd.h: New file.
12053         * lib/passfd.c: New file.
12054
12055 2011-03-12  Bruno Haible  <bruno@clisp.org>
12056
12057         wcswidth, mbswidth: Avoid integer overflow.
12058         * lib/wcswidth.c: Include <limits.h>.
12059         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12060         * lib/mbswidth.c: Include <limits.h>.
12061         (mbsnwidth): Avoid 'int' overflow.
12062         Reported by Jim Meyering.
12063
12064 2011-03-12  Bruno Haible  <bruno@clisp.org>
12065
12066         futimens, utimensat: Avoid endless recursion on Solaris 10.
12067         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12068         Solaris.
12069         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12070         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12071
12072 2011-03-11  Jim Meyering  <meyering@redhat.com>
12073
12074         maint.mk: relax a regexp to accommodate other formatting styles
12075         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12076         between "ngettext" and the following "(".
12077
12078 2011-03-11  Pádraig Brady <P@draigBrady.com>
12079
12080         maint.mk: suppress a false positive warning
12081         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12082         diagnostics are marked with ngettext.
12083
12084 2011-03-10  Eric Blake  <eblake@redhat.com>
12085
12086         wchar: add explicit dependencies, for Tru64
12087         * modules/mbmemcasecoll (Depends-on): Add wchar.
12088         * modules/mbtowc (Depends-on): Likewise.
12089         * modules/vasnprintf (Depends-on): Likewise.
12090         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12091         * modules/wctomb (Depends-on): Likewise.
12092         Reported by Peter O'Gorman.
12093
12094 2011-03-08  Bruno Haible  <bruno@clisp.org>
12095
12096         passfd module, part 1, tweaks.
12097         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12098         Improve indentation. Improve AC_MSG_CHECKING messages.
12099         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12100         gl_SOCKET_FAMILIES.
12101
12102 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12103
12104         passfd module, part 1.
12105         * m4/afunix.m4: New file.
12106         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12107         sockets.
12108
12109 2011-03-08  Bruno Haible  <bruno@clisp.org>
12110
12111         regex-quote: New API.
12112         * lib/regex-quote.h: Include <stdbool.h>.
12113         (struct regex_quote_spec): New type.
12114         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12115         New declarations.
12116         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12117         'const struct regex_quote_spec *' argument.
12118         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12119         (pcre_special): New constant.
12120         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12121         New functions.
12122         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12123         'const struct regex_quote_spec *' argument.
12124         * modules/regex-quote (Depends-on): Add stdbool.
12125         * tests/test-regex-quote.c (check): Update for new API. Add test for
12126         anchored results.
12127         * NEWS: Mention the API change.
12128         Reported by Reuben Thomas and Eric Blake.
12129
12130 2011-03-06  Bruno Haible  <bruno@clisp.org>
12131
12132         regex-quote: Fix creation of POSIX extended regular expressions.
12133         * lib/regex-quote.c (ere_special): Add grouping and alternation
12134         operators.
12135
12136 2011-03-05  Bruno Haible  <bruno@clisp.org>
12137
12138         doc: Improve doc regarding autopoint vs. gnulib.
12139         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12140         disable autopoint while running autoreconf.
12141         Suggested by Ralf Wildenhues.
12142
12143 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12144
12145         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12146         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12147
12148 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12149
12150         parse-duration: remove xalloc.h dependency
12151         * lib/parse-duration.c (parse_period): handle NULL return from
12152         strdup instead of calling xstrdup().
12153         * modules/parse-duration: remove "xalloc" dependency
12154
12155 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12156
12157         bootstrap: honor m4_base when running aclocal
12158         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12159
12160 2011-03-02  Jim Meyering  <meyering@redhat.com>
12161
12162         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12163         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12164         on request from Matt Booth.
12165
12166 2011-03-01  Eric Blake  <eblake@redhat.com>
12167
12168         test-link: work on Hurd
12169         * tests/test-link.h (test_link): Hurd rejects linking directories
12170         with EISDIR instead of the POSIX-mandated EPERM.
12171
12172 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12173
12174         stdio: simplify by moving files to printf-posix, sigpipe
12175         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12176         since this symbol is needed only if printf is replaced.
12177         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12178         Require gl_ASM_SYMBOL_PREFIX.
12179         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12180         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12181         (Depends-on): Add 'raise'.
12182         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12183         * modules/stdio (Files): Remove lib/stdio-write.c,
12184         m4/asm-underscore.m4.
12185         (Depends-on): Remove 'raise'.
12186
12187         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12188         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12189         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12190         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12191
12192 2011-02-28  Bruno Haible  <bruno@clisp.org>
12193
12194         localcharset: Assume ANSI C behaviour of free().
12195         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12196         calling free().
12197         Suggested by Simon Josefsson <simon@josefsson.org>.
12198
12199 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12200             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12201             Bruno Haible  <bruno@clisp.org>  (tiny change)
12202
12203         On Cygwin, use /proc file system instead of win32 API.
12204         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12205         Win32 file names.
12206         (DllMain): Simplify by removing Cygwin specific code.
12207         (find_shared_library_fullname): Use Linux specific implementation also
12208         for Cygwin.
12209         (get_shared_library_fullname): Update accordingly.
12210         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12211         Win32 file names.
12212         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12213         Cygwin specific code.
12214
12215 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12216             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12217
12218         Fix OpenMP flag detection for various Fortran compilers.
12219         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12220         OpenMP-conditional compilation construct, to force compile
12221         failure with missing OpenMP flag.
12222         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12223
12224 2011-02-25  Eric Blake  <eblake@redhat.com>
12225
12226         strstr: expand test coverage
12227         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12228         compilation.
12229         * tests/test-memmem.c (main): Duplicate tests.
12230         * tests/test-strcasestr.c (main): Likewise.
12231         * tests/test-c-strcasestr.c (main): Likewise.
12232
12233 2011-02-25  Jim Meyering  <meyering@redhat.com>
12234
12235         maint.mk: detect missing-NL-at-EOF, too
12236         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12237         it also detects when a file lacks a newline at EOF.
12238         (require_exactly_one_NL_at_EOF_): Renamed from
12239         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12240         since people may well have .x-sc_... file names tied to the
12241         existing name.  Suggested by Eric Blake.
12242
12243 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12244
12245         dirname: move m4/dos.m4 functionality into lib/dosname.h
12246
12247         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12248         extracts symbols from it, puts them into config.h; but it's much
12249         easier to use the symbols directly.  filename.h already does this,
12250         but it disagrees with dos.m4 in some respects.  This patch
12251         introduces a different include file dosname.h that packages up
12252         dos.m4, and then later we can work on merging filename.h and
12253         dosname.h.  Applications that need only the easy-to-configure
12254         symbols should consider including dosname.h rather than dirname.h.
12255         * NEWS: Mention incompatible changes.
12256         * m4/dos.m4: Remove.
12257         * lib/dosname.h, modules/dosname: New files.
12258         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12259         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12260         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12261         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12262         Include dosname.h, not dirname.h.
12263         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12264         Include dosname.h, for definitions of symbols like ISSLASH
12265         that used to be in config.h.
12266         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12267         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12268         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12269         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12270         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12271         * modules/rmdir (Files): Likewise.
12272         * modules/stat (Files): Likewise.
12273         * modules/unlink (Files): Likewise.
12274         * modules/dirname-lgpl (Depends-on): Add dosname.
12275         * modules/lstat (Depends-on): Likewise.
12276         * modules/openat (Depends-on): Likewise.
12277         * modules/rmdir (Depends-on): Likewise.
12278         * modules/savewd (Depends-on): Likewise.
12279         * modules/stat (Depends-on): Likewise.
12280         * modules/unlink (Depends-on): Likewise.
12281         * modules/openat (Depends-on): Remove dirname-lgpl.
12282         * modules/savewd (Depends-on): Likewise.
12283         * tests/test-dirname.c: Do not use removed symbols like
12284         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12285         the remaining symbols, e.g., ISSLASH ('\\').
12286
12287 2011-02-25  Eric Blake  <eblake@redhat.com>
12288
12289         strstr: revert patches that introduced bug and pessimization
12290         * lib/str-two-way.h: Add another reference.
12291         (two_way_short_needle, two_way_long_needle): Revert changes from
12292         2011-02-24; they pessimize search speed.
12293         (critical_factorization): Partially revert changes from
12294         2010-06-22; they violate the requirement that the left half of the
12295         needle be smaller than the period of the needle.
12296
12297 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12298
12299         filenamecat: remove unnecessary dependency on dirname-lgpl
12300         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12301         is no direct dependency, just an indirect one via filenamecat-lgpl.
12302
12303         remove: remove unnecessary use of m4/dos.m4
12304         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12305         * modules/remove (FILES): Remove m4/dos.m4.
12306
12307         * lib/openat-proc.c: Don't include dirname.h; not needed.
12308
12309         backupfile: remove unnecessary use of m4/dos.m4
12310         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12311         of its symbols are used by the backupfile code.  backupfile.c does
12312         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12313         for the rare case of programs that want all their backup file
12314         names to live within 8+3 limits, and dos.m4 doesn't address that.
12315         * modules/backupfile (Files): Remove m4/dos.m4.
12316
12317 2011-02-24  Jim Meyering  <meyering@redhat.com>
12318
12319         strstr: fix a bug whereby strstr would mistakenly return NULL
12320         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12321         in period calculation.
12322         (two_way_long_needle): Likewise.
12323         The original problem was reported by Mike Stump in
12324         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12325         Ralf Wildenhues provided the short needle and haystack.
12326         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12327         Add a more involved test to trigger the bug in two_way_long_needle.
12328
12329 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12330
12331         gnulib-tool: remove use of bold display in help screen
12332         * gnulib-tool (func_usage): Do not use bold display anymore in the
12333         help screen.  That was just meant to be a temporary emphasis for a
12334         backward-incompatible change.
12335
12336 2011-02-23  Bruno Haible  <bruno@clisp.org>
12337
12338         Fix misindentation of preprocessor directives.
12339         * lib/argp-namefrob.h: Reindent preprocessor directives.
12340         * lib/getopt_int.h (struct _getopt_data): Likewise.
12341         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12342         * lib/vasnprintf.c (decode_long_double): Likewise.
12343         * tests/test-argmatch.c: Insert blank lines, for clarity.
12344         * tests/test-exclude.c: Likewise.
12345
12346 2011-02-22  Bruno Haible  <bruno@clisp.org>
12347
12348         ioctl: Fix for MacOS X in 64-bit mode.
12349         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12350         value.
12351         Suggested by Eric Blake.
12352         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12353
12354 2011-02-22  Jim Meyering  <meyering@redhat.com>
12355
12356         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12357         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12358         in lib/.
12359
12360 2011-02-22  Eric Blake  <eblake@redhat.com>
12361
12362         maint: avoid any CDPATH issue
12363         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12364
12365         maint: adjust cpp indentation for my modules, as well
12366         * Makefile (sc_cpp_indent_check): Add my name.
12367         * lib/fbufmode.c: Filter through cppi.
12368         * lib/fpurge.c: Likewise.
12369         * lib/freadable.c: Likewise.
12370         * lib/freading.c: Likewise.
12371         * lib/fwritable.c: Likewise.
12372         * lib/fwriting.c: Likewise.
12373         * lib/sigaction.c: Likewise.
12374
12375 2011-02-22  Jim Meyering  <meyering@redhat.com>
12376
12377         maint: adjust cpp indentation to reflect nesting depth
12378         I.e., in a block of code that begins with an unnested "#if",
12379         put one space between the "#" in column 1 and following token.
12380         For example,
12381         -#include <sys/vfs.h>
12382         +# include <sys/vfs.h>
12383         Do this only in .c files that are part of a module I maintain.
12384         * lib/linkat.c: Filter through cppi.
12385         * lib/nanosleep.c: Likewise.
12386         * lib/openat.c: Likewise.
12387         * lib/openat-die.c: Likewise.
12388         * lib/dup3.c: Likewise.
12389         * lib/fchownat.c: Likewise.
12390         * lib/flock.c: Likewise.
12391         * lib/fsync.c: Likewise.
12392         * lib/fts.c: Likewise.
12393         * lib/getpass.c: Likewise.
12394         * lib/gettimeofday.c: Likewise.
12395         * lib/userspec.c: Likewise.
12396         * Makefile (sc_cpp_indent_check): New rule, to check this.
12397
12398 2011-02-22  Bruno Haible  <bruno@clisp.org>
12399
12400         New module 'wctomb'.
12401         * lib/stdlib.in.h (wctomb): New declaration.
12402         * lib/wctomb.c: New file.
12403         * lib/wctomb-impl.h: New file.
12404         * m4/wctomb.m4: New file.
12405         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12406         REPLACE_WCTOMB.
12407         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12408         REPLACE_WCTOMB.
12409         * modules/wctomb: New file.
12410         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12411         * doc/posix-functions/wctomb.texi: Mention the new module.
12412         * modules/wctob (Depends-on): Add wctomb.
12413
12414 2011-02-22  Bruno Haible  <bruno@clisp.org>
12415
12416         New module 'mbtowc'.
12417         * lib/stdlib.in.h (mbtowc): New declaration.
12418         * lib/mbtowc.c: New file.
12419         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12420         * m4/mbtowc.m4: New file.
12421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12422         REPLACE_MBTOWC.
12423         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12424         REPLACE_MBTOWC.
12425         * modules/mbtowc: New file.
12426         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12427         * doc/posix-functions/mbtowc.texi: Mention the new module.
12428         * modules/btowc (Depends-on): Add mbtowc.
12429
12430 2011-02-22  Bruno Haible  <bruno@clisp.org>
12431
12432         wcrtomb: Add more tests for native Windows platforms.
12433         * tests/test-wcrtomb-w32-1.sh: New file.
12434         * tests/test-wcrtomb-w32-2.sh: New file.
12435         * tests/test-wcrtomb-w32-3.sh: New file.
12436         * tests/test-wcrtomb-w32-4.sh: New file.
12437         * tests/test-wcrtomb-w32-5.sh: New file.
12438         * tests/test-wcrtomb-w32.c: New file.
12439         * modules/wcrtomb-tests (Files): Add them.
12440         (Makefile.am): Arrange to run these tests.
12441         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12442         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12443
12444 2011-02-20  Bruno Haible  <bruno@clisp.org>
12445
12446         wcrtomb: Enhance test.
12447         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12448
12449 2011-02-20  Bruno Haible  <bruno@clisp.org>
12450
12451         mbrtowc: Tiny optimization.
12452         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12453
12454 2011-02-20  Jim Meyering  <meyering@redhat.com>
12455
12456         test-exclude.c: remove unmatched #endif
12457         * tests/test-exclude.c: Remove stray #endif, left over from
12458         the change of a week ago.
12459
12460 2011-02-19  Jim Meyering  <meyering@redhat.com>
12461
12462         git-version-gen: skip "-dirty" check when appropriate
12463         * build-aux/git-version-gen: Don't run any git commands when the
12464         version string comes from .tarball-version.  Prior to this, we
12465         would run git update-index --refresh even from a just-unpacked
12466         tarball directory, and that could affect a .git/ directory in a
12467         parent of the build directory.  Reported by Mike Frysinger.
12468
12469 2011-02-19  Bruno Haible  <bruno@clisp.org>
12470
12471         unictype/property-byname: Reduce the size of the 'data' segment.
12472         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12473
12474 2011-02-19  Bruno Haible  <bruno@clisp.org>
12475
12476         unictype/scripts: Reduce the size of the 'data' segment.
12477         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12478         '%pic'.
12479         * lib/unictype/scripts_byname.gperf: Regenerated.
12480
12481 2011-02-19  Bruno Haible  <bruno@clisp.org>
12482
12483         stdint: Update documentation.
12484         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12485
12486 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12487
12488         stdint: omit redundant check for wchar.h
12489         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12490         always tests whether wchar.h exists, so remove the now-redundant test.
12491
12492 2011-02-18  Bruno Haible  <bruno@clisp.org>
12493
12494         stdint: Cut dependency to module 'wchar'.
12495         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12496         include the necessary prerequisites.
12497         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12498         * modules/stdint (Depends-on): Remove wchar.
12499         (Makefile.am): Substitute HAVE_WCHAR_H.
12500         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12501
12502 2011-02-18  Eric Blake  <eblake@redhat.com>
12503
12504         longlong: skip, rather than fail, on cross-compilation
12505         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12506         when cross-compiling; regression from 2011-02-16.
12507
12508 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12509
12510         * NEWS: Mention 2011-02-08 change to stdlib.
12511
12512 2011-02-17  Bruno Haible  <bruno@clisp.org>
12513
12514         getloadavg: Add comments about platforms.
12515         * m4/getloadavg.m4: Add comment.
12516         * lib/getloadavg.c: Likewise.
12517
12518 2011-02-17  Bruno Haible  <bruno@clisp.org>
12519
12520         getloadavg: Fix link error on Solaris 2.6.
12521         * modules/getloadavg (Link): New section.
12522         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12523         linking test-getloadavg.
12524         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12525         getloadavg.
12526
12527 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12528
12529         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12530         It was 'int', but this doesn't match the IRIX 6.5 manual.
12531         Suggested by Bruno Haible in
12532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12533
12534 2011-02-17  Bruno Haible  <bruno@clisp.org>
12535
12536         havelib: Fix comments.
12537         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12538         change.
12539
12540 2011-02-17  Bruno Haible  <bruno@clisp.org>
12541
12542         havelib: Update config.rpath.
12543         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12544
12545 2011-02-17  Bruno Haible  <bruno@clisp.org>
12546
12547         getloadavg test: Add some plausibility checks.
12548         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12549         is improbable.
12550
12551 2011-02-16  Eric Blake  <eblake@redhat.com>
12552
12553         maintainer-makefile: make syntax-check a no-op from tarballs
12554         * top/maint.mk (no-vc-detected): New rule.
12555         (local-checks-available): Use it to avoid hanging if someone tries
12556         'make syntax-check' from a tarball.  Also append to any non-syntax
12557         checks already defined in cfg.mk.
12558
12559 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12560
12561         longlong: tune, particularly for common case of c99
12562
12563         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12564         or running anything if c99, or if unsigned long long int does not
12565         work.  In either case, we know the answer without further tests.
12566         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12567         it at most once, and use its results for both long long int and
12568         unsigned long long int.  This is more likely to be efficient in
12569         the common case where the program wants to check for both long
12570         long int and unsigned long long int.
12571         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12572         since the answer is already known.
12573
12574 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12575
12576         getloadavg: set errno
12577         * lib/getloadavg.c: Set errno when returning -1.  If no other
12578         error number looks appropriate, set it to ENOSYS if the getloadavg
12579         looks like it can't possibly ever work, ENOTSUP otherwise.
12580         Suggested by Bruno Haible in
12581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12582
12583         getloadavg: trim unused parts and speed up 'configure'
12584         * NEWS: Document this.
12585         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12586         always compiled if getloadavg is absent.
12587         Move test code to ...
12588         * tests/test-getloadavg.c: New file, containing previous
12589         contents of test from lib/getloadavg.c.  It also contains
12590         suggestions by Bruno Haible in
12591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12592         * modules/getloadavg-tests: New file.
12593         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12594         Do tests in the same order as they're needed for getloadavg.c.
12595         Omit setgid-related tests that generate symbols KMEM_GROUP,
12596         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12597         Do only the tests that are needed to see whether the system has
12598         getloadavg, moving the other tests into ...
12599         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12600         NLIST_NAME_UNION; nobody should be using it.  Do not define
12601         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12602         relevant, as the user of this module shouldn't care how getloadavg
12603         is implemented.
12604
12605         getloadavg: omit unused var
12606         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12607
12608 2011-02-15  Jim Meyering  <meyering@redhat.com>
12609
12610         doc: update users.txt
12611         * users.txt: Update iwhd's URL.
12612
12613 2011-02-13  Bruno Haible  <bruno@clisp.org>
12614
12615         Consistent macro naming for macros that use GCC __attribute__.
12616         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12617         _ATTRIBUTE_NONNULL_.
12618         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12619         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12620         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12621         ATTRIBUTE_DEPRECATED.
12622         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12623         ATTRIBUTE_NORETURN.
12624         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12625         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12626         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12627         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12628         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12629         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12630         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12631         ATTRIBUTE_SENTINEL.
12632         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12633         ATTRIBUTE_RETURN_CHECK.
12634         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12635         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12636         ATTRIBUTE_NORETURN.
12637         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12638         Reported by Paul Eggert.
12639
12640 2011-02-13  Bruno Haible  <bruno@clisp.org>
12641
12642         Don't interfere with a program's definition of __attribute__.
12643         * lib/argp.h (__attribute__): Remove definition.
12644         (_GL_ATTRIBUTE_FORMAT): New macro.
12645         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12646         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12647         (_GL_ATTRIBUTE_FORMAT): New macro.
12648         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12649         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12650         GCC 3 or newer.
12651         * lib/error.h (__attribute__): Remove definition.
12652         (_GL_ATTRIBUTE_FORMAT): New macro.
12653         (error, error_at_line): Use it.
12654         * lib/hash.h (__attribute__): Remove definition.
12655         (ATTRIBUTE_WUR): Update definition. Define always.
12656         * lib/openat.h (__attribute__): Remove definition.
12657         (ATTRIBUTE_NORETURN): Update definition. Define always.
12658         * lib/sigpipe-die.h (__attribute__): Remove definition.
12659         (ATTRIBUTE_NORETURN): Update definition. Define always.
12660         * lib/vasnprintf.h (__attribute__): Remove definition.
12661         (_GL_ATTRIBUTE_FORMAT): New macro.
12662         (asnprintf, vasnprintf): Use it.
12663         * lib/xalloc.h (__attribute__): Remove definition.
12664         (ATTRIBUTE_NORETURN): Update definition. Define always.
12665         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12666         * lib/xmemdup0.h (__attribute__): Remove definition.
12667         (ATTRIBUTE_NORETURN): Update definition. Define always.
12668         * lib/xprintf.h (__attribute__): Remove definition.
12669         (_GL_ATTRIBUTE_FORMAT): New macro.
12670         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12671         * lib/xstrtol.h (__attribute__): Remove definition.
12672         (ATTRIBUTE_NORETURN): Update definition. Define always.
12673         * lib/xvasprintf.h (__attribute__): Remove definition.
12674         (_GL_ATTRIBUTE_FORMAT): New macro.
12675         (xasprintf, xvasprintf): Use it.
12676         * tests/test-argmatch.c (__attribute__): Remove definition.
12677         (ATTRIBUTE_NORETURN): Update definition. Define always.
12678         * tests/test-exclude.c (__attribute__): Remove definition.
12679         (ATTRIBUTE_NORETURN): Update definition. Define always.
12680         Reported by Paul Eggert.
12681
12682 2011-02-13  Bruno Haible  <bruno@clisp.org>
12683
12684         mbrtowc: Add more tests for native Windows platforms.
12685         * tests/test-mbrtowc-w32-1.sh: New file.
12686         * tests/test-mbrtowc-w32-2.sh: New file.
12687         * tests/test-mbrtowc-w32-3.sh: New file.
12688         * tests/test-mbrtowc-w32-4.sh: New file.
12689         * tests/test-mbrtowc-w32-5.sh: New file.
12690         * tests/test-mbrtowc-w32.c: New file.
12691         * modules/mbrtowc-tests (Files): Add them.
12692         (Makefile.am): Arrange to run these tests.
12693         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12694         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12695
12696 2011-02-13  Bruno Haible  <bruno@clisp.org>
12697
12698         mbrtowc: Work around native Windows bug.
12699         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12700         guess when no suitable locale for testing was found.
12701         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12702
12703 2011-02-13  Bruno Haible  <bruno@clisp.org>
12704
12705         mbsinit: Work around mingw bug.
12706         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12707         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12708         Windows.
12709         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12710
12711 2011-02-13  Bruno Haible  <bruno@clisp.org>
12712
12713         mbsinit: Don't crash for a NULL argument.
12714         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12715         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12716
12717 2011-02-13  Bruno Haible  <bruno@clisp.org>
12718
12719         Don't interfere with a program's definition of __attribute__.
12720         * lib/stdio.in.h (__attribute__): Remove definition.
12721         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12722         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12723         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12724         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12725         * lib/string.in.h (__attribute__): Remove definition.
12726         Reported by Paul Eggert.
12727
12728 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12729
12730         stdlib: don't get in the way of non-GCC __attribute__
12731         See thread starting at
12732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12733         Revert previous stdlib change, installing the following instead:
12734         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12735         to get in the way of a non-GCC compiler that supports __attribute__.
12736         (_GL_ATTRIBUTE_RETURN): New macro.
12737         (_Exit): Use it instead of __attribute__.
12738
12739 2011-02-12  Bruno Haible  <bruno@clisp.org>
12740
12741         quotearg test: Avoid test failure on mingw.
12742         * tests/test-quotearg.sh: Convert the locale identifier from native
12743         Windows syntax to Unix syntax.
12744
12745 2011-02-12  Bruno Haible  <bruno@clisp.org>
12746
12747         setlocale: Prefer gnulib's override over libintl's override.
12748         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12749         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12750         GNULIB_defined_setlocale is set.
12751
12752 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12753
12754         stdlib: support non-GCC __attribute__
12755
12756         Fix a serious and tricky problem encountered when attempting to
12757         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12758         5.5, but it crashed due to memory corruption on Solaris 10 with
12759         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12760         bits that are otherwise zero.  This tagging is optional inside
12761         Emacs but is preferred and is used when __attribute__ ((__aligned
12762         (8))) works, as it does with both recent-enough GCC and with Sun C
12763         5.11.  However, Sun C 5.11 is not GCC and does not #define
12764         __GNUC__ and __GNUC_MINOR__.
12765
12766         When I added the getloadavg module to Emacs, it brought in
12767         stdlib.in.h, which contained this fragment:
12768
12769            #ifndef __attribute__
12770            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12771            #  define __attribute__(Spec)   /* empty */
12772            # endif
12773            #endif
12774
12775         When files that include <stdlib.h> were compiled with Sun C 5.11,
12776         the above code disabled __attribute__ ((__aligned (8))), which
12777         caused variables to not be properly aligned, which eventually led
12778         to the pointer corruption mentioned above.  (This was a bit hard
12779         to diagnose, unfortunately.)
12780
12781         Several "#define __attribute__(X) /* empty */" code snippets need
12782         to be eradicated from Gnulib to work with non-GCC compilers that
12783         support __attribute__.  The Autoconf way to do this is to test for
12784         each kind of attribute that we want support for, and selectively
12785         enable that in source code.
12786
12787         Fix this problem just for stdlib.h, by adding a test for the
12788         __noreturn__ attribute, and change stdlib.in.h to use that test
12789         when needed.  This technique can be easily generalized to the
12790         other *.in.h files and attributes, and a similar technique can be
12791         used for *.h and *.c files.  This patch is enough to solve the
12792         problem for Emacs + getloadavg, and I thought I'd publish it for
12793         feedback before undertaking further, similar fixes in other
12794         modules.
12795
12796         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12797         because it's not needed for stdlib.h.  It merely substitutes the
12798         value directly into stdlib.h.  We may well need to #define it, or
12799         similar symbols, for other modules, but it's nice to also have an
12800         option to not #define it for applications like Emacs that do not
12801         need it.
12802
12803         * lib/stdlib.in.h (__attribute__): Do not #define.
12804         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12805         be defined only if the _Exit module is also used.
12806         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12808         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12809         platforms.
12810         * modules/_Exit (Files): Add m4/attribute.m4.
12811         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12812         * m4/attribute.m4: New file.
12813
12814 2011-02-12  Bruno Haible  <bruno@clisp.org>
12815
12816         wcsrtombs: Work around bug on native Windows.
12817         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12818         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12819         instead of len.
12820         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12821
12822 2011-02-12  Bruno Haible  <bruno@clisp.org>
12823
12824         mbsrtowcs: Work around bug on native Windows.
12825         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12826         against mingw bug.
12827         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12828
12829 2011-02-12  Bruno Haible  <bruno@clisp.org>
12830
12831         Avoid setlocale bugs in tests.
12832         * modules/btowc (Dependencies): Add setlocale.
12833         * modules/c-strcase (Dependencies): Likewise.
12834         * modules/mbmemcasecmp (Dependencies): Likewise.
12835         * modules/mbmemcasecoll (Dependencies): Likewise.
12836         * modules/mbrtowc (Dependencies): Likewise.
12837         * modules/mbscasecmp (Dependencies): Likewise.
12838         * modules/mbscasestr (Dependencies): Likewise.
12839         * modules/mbschr (Dependencies): Likewise.
12840         * modules/mbscspn (Dependencies): Likewise.
12841         * modules/mbsinit (Dependencies): Likewise.
12842         * modules/mbsncasecmp (Dependencies): Likewise.
12843         * modules/mbsnrtowcs (Dependencies): Likewise.
12844         * modules/mbspbrk (Dependencies): Likewise.
12845         * modules/mbspcasecmp (Dependencies): Likewise.
12846         * modules/mbsrchr (Dependencies): Likewise.
12847         * modules/mbsrtowcs (Dependencies): Likewise.
12848         * modules/mbsspn (Dependencies): Likewise.
12849         * modules/mbsstr (Dependencies): Likewise.
12850         * modules/nl_langinfo (Dependencies): Likewise.
12851         * modules/quotearg (Dependencies): Likewise.
12852         * modules/unicase/locale-language (Dependencies): Likewise.
12853         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12854         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12855         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12856         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12857         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12858         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12859         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12860         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12861         * modules/vasnprintf-posix (Dependencies): Likewise.
12862         * modules/wcrtomb (Dependencies): Likewise.
12863         * modules/wcsnrtombs (Dependencies): Likewise.
12864         * modules/wcsrtombs (Dependencies): Likewise.
12865
12866 2011-02-12  Bruno Haible  <bruno@clisp.org>
12867
12868         setlocale: Workaround native Windows bug.
12869         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12870         succeeds but sets LC_CTYPE to "C", report a failure.
12871         * tests/test-setlocale2.sh: New file.
12872         * tests/test-setlocale2.c: New file.
12873         * modules/setlocale-tests (Files): Add the new files.
12874         (Makefile.am): Enable test-setlocale2.sh test.
12875         * doc/posix-functions/setlocale.texi: Mention workaround.
12876
12877 2011-02-11  Bruno Haible  <bruno@clisp.org>
12878
12879         Tests for module 'setlocale'.
12880         * modules/setlocale-tests: New file.
12881         * tests/test-setlocale1.sh: New file.
12882         * tests/test-setlocale1.c: New file.
12883
12884         New module 'setlocale'.
12885         * lib/locale.in.h (setlocale): New declaration.
12886         * lib/setlocale.c: New file, based on
12887         gettext/gettext-runtime/intl/setlocale.c.
12888         * m4/setlocale.m4: New file.
12889         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12890         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12891         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12892         REPLACE_SETLOCALE.
12893         * modules/setlocale: New file.
12894         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12895         * doc/posix-functions/setlocale.texi: Mention the new module.
12896
12897 2011-02-11  Bruno Haible  <bruno@clisp.org>
12898
12899         Prepare for locale dependent tests on mingw.
12900         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12901         because it has the wrong locale encoding.
12902         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12903         French_France.1252 instead of "fr".
12904         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12905         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12906         because it has the wrong locale encoding.
12907         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12908         native Windows, try Turkish_Turkey.65001.
12909         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12910         Chinese_China.54936.
12911
12912         Prepare for locale dependent tests on mingw.
12913         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12914         differently.
12915         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12916         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12917         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12918         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12919
12920 2011-02-11  Eric Blake  <eblake@redhat.com>
12921
12922         strptime: avoid compiler warnings
12923         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12924         compiler warnings about dead code.
12925         Reported by Daniel P. Berrange.
12926
12927 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12928
12929         doc: update users.txt
12930         * users.txt: Add rcs.
12931
12932 2011-02-10  John W. Eaton  <jwe@gnu.org>
12933
12934         doc: update users.txt
12935         * users.txt: Add octave.
12936
12937 2011-02-10  Jim Meyering  <meyering@redhat.com>
12938
12939         doc: update users.txt
12940         * users.txt: Add iwhd.
12941
12942 2011-02-09  Bruno Haible  <bruno@clisp.org>
12943
12944         gnulib-tool: Make copyright notice adjustment more robust.
12945         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12946         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12947         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12948         License".
12949         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12950
12951 2011-02-06  Bruno Haible  <bruno@clisp.org>
12952
12953         New module 'towctrans'.
12954         * modules/towctrans: New file.
12955         * lib/wctype.in.h (towctrans): New declaration.
12956         * lib/towctrans.c: New file.
12957         * lib/towctrans-impl.h: New file.
12958         * m4/towctrans.m4: New file.
12959         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12960         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12961         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12962         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12963         * doc/posix-functions/towctrans.texi: Mention the new module.
12964
12965 2011-02-06  Bruno Haible  <bruno@clisp.org>
12966
12967         New module 'wctrans'.
12968         * modules/wctrans: New file.
12969         * lib/wctype.in.h (wctrans): New declaration.
12970         * lib/wctrans.c: New file.
12971         * lib/wctrans-impl.h: New file.
12972         * m4/wctrans.m4: New file.
12973         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12974         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12975         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12976         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12977         * doc/posix-functions/wctrans.texi: Mention the new module.
12978
12979 2011-02-06  Bruno Haible  <bruno@clisp.org>
12980
12981         New module 'iswctype'.
12982         * modules/iswctype: New file.
12983         * lib/wctype.in.h (iswctype): New declaration.
12984         * lib/iswctype.c: New file.
12985         * lib/iswctype-impl.h: New file.
12986         * m4/iswctype.m4: New file.
12987         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12988         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12989         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12990         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12991         * doc/posix-functions/iswctype.texi: Mention the new module and the
12992         HP-UX 11.00 problem.
12993
12994 2011-02-06  Bruno Haible  <bruno@clisp.org>
12995
12996         New module 'wctype'.
12997         * modules/wctype: Change to represent the wctype() substitute.
12998         * lib/wctype.in.h (wctype): New declaration.
12999         * lib/wctype.c: New file.
13000         * lib/wctype-impl.h: New file.
13001         * m4/wctype.m4: New file.
13002         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13003         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13004         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13005         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13006         * doc/posix-functions/wctype.texi: Mention the new module and the
13007         HP-UX 11.00 problem.
13008
13009 2011-02-06  Bruno Haible  <bruno@clisp.org>
13010
13011         wctype-h: Ensure wctype_t and wctrans_t are defined.
13012         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13013         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13014         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13015         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13016         HAVE_WCTRANS_T.
13017         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13018
13019 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13020
13021         flock: fix license typo
13022
13023         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13024         omitted.
13025
13026 2011-02-08  Bruno Haible  <bruno@clisp.org>
13027
13028         Split large sed scripts, for HP-UX sed.
13029         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13030         to avoid HP-UX limit of 99 commands, in the near future.
13031         * modules/stdlib (Makefile.am): Likewise.
13032         * modules/unistd (Makefile.am): Likewise.
13033         * modules/wchar (Makefile.am): Likewise.
13034         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13035         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13037
13038 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13039             Bruno Haible  <bruno@clisp.org>
13040
13041         stdlib: improve random_r modularization
13042         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13043         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13044         you also need the random_r module to get this material right.
13045         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13046         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13047         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13048
13049 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13050
13051         stdlib: don't depend on stdint
13052         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13053         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13054         be independent of whether stdint.h is needed.
13055         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13056         here, instead of ...
13057         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13058         struct random_data should be using the random_r module, not just
13059         the stdlib module (which wouldn't make sense: what package needs
13060         just struct random_data without also needing random_r?).
13061         * modules/stdlib (Depends-on): Remove stdint.
13062
13063         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13064         See the thread rooted at
13065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13066         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13067         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13068         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13069         __VMS)); previously it was always included (via fcntl--.h).
13070         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13071         hand; this is good enough for load averages.  Also, do not use
13072         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13073         flags directly if available and don't bother otherwise.  (Packages
13074         that need the extra reliability should use the modules that define
13075         these flags on older platforms that lack them.)
13076         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13077         fcntl-safer.
13078
13079 2011-02-08  Jim Meyering  <meyering@redhat.com>
13080
13081         di-set.h, ino-map.h: add multiple-inclusion guard
13082         Technically, the guard is required only for ino-map.h, due to its
13083         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13084         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13085         * lib/ino-map.h: Likewise.
13086
13087 2011-02-06  Bruno Haible  <bruno@clisp.org>
13088
13089         iswblank: Ensure declaration on glibc systems.
13090         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13091         * modules/iswblank (Dependencies): Add 'extensions'.
13092         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13093
13094 2011-02-06  Bruno Haible  <bruno@clisp.org>
13095
13096         New module 'iswblank'.
13097         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13098         * modules/iswblank: New file.
13099         * modules/wctype-h (Files): Remove lib/iswblank.c.
13100         (Makefile.am): Substitute GNULIB_ISWBLANK.
13101         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13102         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13103         (gl_WCTYPE_H_DEFAULTS): New macro.
13104         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13105         * modules/iswblank-tests: New file.
13106         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13107         * tests/test-wctype-h.c (main): Remove iswblank tests.
13108         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13109         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13110         of 'wctype-h'.
13111         * NEWS: Mention the change.
13112         * modules/mbchar (Depends-on): Add iswblank.
13113
13114 2011-02-08  Bruno Haible  <bruno@clisp.org>
13115
13116         di-set tests: Refactor.
13117         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13118         unnecessary includes.
13119         (ASSERT): Remove macro.
13120         (main): Make C90 compliant by avoiding variable declaration after
13121         statement.
13122         * modules/di-set-tests (Files): Add tests/macros.h.
13123
13124 2011-02-08  Bruno Haible  <bruno@clisp.org>
13125
13126         ino-map tests: Refactor.
13127         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13128         unnecessary includes.
13129         (ASSERT): Remove macro.
13130         (main): Make C90 compliant by avoiding variable declaration after
13131         statement.
13132         * modules/ino-map-tests (Files): Add tests/macros.h.
13133
13134 2011-02-08  Jim Meyering  <meyering@redhat.com>
13135
13136         di-set: add "const" to a cast
13137         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13138         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13139
13140 2011-02-06  Bruno Haible  <bruno@clisp.org>
13141
13142         Rename module 'wctype' to 'wctype-h'.
13143         * modules/wctype-h: Renamed from modules/wctype.
13144         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13145         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13146         (Files, Depends-on, Makefile.am): Update.
13147         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13148         (Files, Makefile.am): Update.
13149         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13150         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13151         * doc/posix-headers/wctype.texi: Update.
13152         * doc/posix-functions/iswalnum.texi: Update.
13153         * doc/posix-functions/iswalpha.texi: Update.
13154         * doc/posix-functions/iswblank.texi: Update.
13155         * doc/posix-functions/iswcntrl.texi: Update.
13156         * doc/posix-functions/iswdigit.texi: Update.
13157         * doc/posix-functions/iswgraph.texi: Update.
13158         * doc/posix-functions/iswlower.texi: Update.
13159         * doc/posix-functions/iswprint.texi: Update.
13160         * doc/posix-functions/iswpunct.texi: Update.
13161         * doc/posix-functions/iswspace.texi: Update.
13162         * doc/posix-functions/iswupper.texi: Update.
13163         * doc/posix-functions/iswxdigit.texi: Update.
13164         * doc/posix-functions/towlower.texi: Update.
13165         * doc/posix-functions/towupper.texi: Update.
13166         * NEWS: Mention the change.
13167         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13168         * modules/mbchar (Dependencies): Likewise.
13169         * modules/mbswidth (Dependencies): Likewise.
13170         * modules/quotearg (Dependencies): Likewise.
13171         * modules/regex (Dependencies): Likewise.
13172         * modules/wcscasecmp (Dependencies): Likewise.
13173         * modules/wcsncasecmp (Dependencies): Likewise.
13174         * modules/wcwidth (Dependencies): Likewise.
13175
13176 2011-02-06  Bruno Haible  <bruno@clisp.org>
13177
13178         New module 'wcswidth'.
13179         * modules/wcswidth: New file.
13180         * lib/wchar.in.h (wcswidth): New declaration.
13181         * lib/wcswidth.c: New file.
13182         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13183         * m4/wcswidth.m4: New file.
13184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13186         REPLACE_WCSWIDTH.
13187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13188         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13189         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13190         * doc/posix-functions/wcswidth.texi: Mention the new module.
13191
13192 2011-02-06  Bruno Haible  <bruno@clisp.org>
13193
13194         New module 'wcstok'.
13195         * modules/wcstok: New file.
13196         * lib/wchar.in.h (wcstok): New declaration.
13197         * lib/wcstok.c: New file.
13198         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13199         * m4/wcstok.m4: New file.
13200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13203         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13204         * doc/posix-functions/wcstok.texi: Mention the new module.
13205
13206 2011-02-06  Bruno Haible  <bruno@clisp.org>
13207
13208         New module 'wcsstr'.
13209         * modules/wcsstr: New file.
13210         * lib/wchar.in.h (wcsstr): New declaration.
13211         * lib/wcsstr.c: New file.
13212         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13213         * m4/wcsstr.m4: New file.
13214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13217         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13218         * doc/posix-functions/wcsstr.texi: Mention the new module.
13219
13220 2011-02-06  Bruno Haible  <bruno@clisp.org>
13221
13222         New module 'wcspbrk'.
13223         * modules/wcspbrk: New file.
13224         * lib/wchar.in.h (wcspbrk): New declaration.
13225         * lib/wcspbrk.c: New file.
13226         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13227         * m4/wcspbrk.m4: New file.
13228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13231         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13232         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13233
13234 2011-02-06  Bruno Haible  <bruno@clisp.org>
13235
13236         New module 'wcsspn'.
13237         * modules/wcsspn: New file.
13238         * lib/wchar.in.h (wcsspn): New declaration.
13239         * lib/wcsspn.c: New file.
13240         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13241         * m4/wcsspn.m4: New file.
13242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13245         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13246         * doc/posix-functions/wcsspn.texi: Mention the new module.
13247
13248 2011-02-06  Bruno Haible  <bruno@clisp.org>
13249
13250         New module 'wcscspn'.
13251         * modules/wcscspn: New file.
13252         * lib/wchar.in.h (wcscspn): New declaration.
13253         * lib/wcscspn.c: New file.
13254         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13255         * m4/wcscspn.m4: New file.
13256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13259         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13260         * doc/posix-functions/wcscspn.texi: Mention the new module.
13261
13262 2011-02-06  Bruno Haible  <bruno@clisp.org>
13263
13264         New module 'wcsrchr'.
13265         * modules/wcsrchr: New file.
13266         * lib/wchar.in.h (wcsrchr): New declaration.
13267         * lib/wcsrchr.c: New file.
13268         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13269         * m4/wcsrchr.m4: New file.
13270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13273         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13274         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13275
13276 2011-02-06  Bruno Haible  <bruno@clisp.org>
13277
13278         New module 'wcschr'.
13279         * modules/wcschr: New file.
13280         * lib/wchar.in.h (wcschr): New declaration.
13281         * lib/wcschr.c: New file.
13282         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13283         * m4/wcschr.m4: New file.
13284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13287         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13288         * doc/posix-functions/wcschr.texi: Mention the new module.
13289
13290 2011-02-06  Bruno Haible  <bruno@clisp.org>
13291
13292         New module 'wcsdup'.
13293         * modules/wcsdup: New file.
13294         * lib/wchar.in.h (wcsdup): New declaration.
13295         * lib/wcsdup.c: New file.
13296         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13297         * m4/wcsdup.m4: New file.
13298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13301         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13302         * doc/posix-functions/wcsdup.texi: Mention the new module.
13303
13304 2011-02-06  Bruno Haible  <bruno@clisp.org>
13305
13306         New module 'wcsxfrm'.
13307         * modules/wcsxfrm: New file.
13308         * lib/wchar.in.h (wcsxfrm): New declaration.
13309         * lib/wcsxfrm.c: New file.
13310         * lib/wcsxfrm-impl.h: New file.
13311         * m4/wcsxfrm.m4: New file.
13312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13314         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13315         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13316         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13317
13318 2011-02-06  Bruno Haible  <bruno@clisp.org>
13319
13320         New module 'wcscoll'.
13321         * modules/wcscoll: New file.
13322         * lib/wchar.in.h (wcscoll): New declaration.
13323         * lib/wcscoll.c: New file.
13324         * lib/wcscoll-impl.h: New file.
13325         * m4/wcscoll.m4: New file.
13326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13329         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13330         * doc/posix-functions/wcscoll.texi: Mention the new module.
13331
13332 2011-02-06  Bruno Haible  <bruno@clisp.org>
13333
13334         New module 'wcsncasecmp'.
13335         * modules/wcsncasecmp: New file.
13336         * lib/wchar.in.h (wcsncasecmp): New declaration.
13337         * lib/wcsncasecmp.c: New file.
13338         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13339         * m4/wcsncasecmp.m4: New file.
13340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13343         HAVE_WCSNCASECMP.
13344         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13345         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13346
13347 2011-02-06  Bruno Haible  <bruno@clisp.org>
13348
13349         New module 'wcscasecmp'.
13350         * modules/wcscasecmp: New file.
13351         * lib/wchar.in.h (wcscasecmp): New declaration.
13352         * lib/wcscasecmp.c: New file.
13353         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13354         * m4/wcscasecmp.m4: New file.
13355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13358         HAVE_WCSCASECMP.
13359         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13360         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13361
13362 2011-02-05  Bruno Haible  <bruno@clisp.org>
13363
13364         New module 'wcsncmp'.
13365         * modules/wcsncmp: New file.
13366         * lib/wchar.in.h (wcsncmp): New declaration.
13367         * lib/wcsncmp.c: New file.
13368         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13369         * m4/wcsncmp.m4: New file.
13370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13373         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13374         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13375
13376 2011-02-05  Bruno Haible  <bruno@clisp.org>
13377
13378         New module 'wcscmp'.
13379         * modules/wcscmp: New file.
13380         * lib/wchar.in.h (wcscmp): New declaration.
13381         * lib/wcscmp.c: New file.
13382         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13383         * m4/wcscmp.m4: New file.
13384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13387         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13388         * doc/posix-functions/wcscmp.texi: Mention the new module.
13389
13390 2011-02-05  Bruno Haible  <bruno@clisp.org>
13391
13392         New module 'wcsncat'.
13393         * modules/wcsncat: New file.
13394         * lib/wchar.in.h (wcsncat): New declaration.
13395         * lib/wcsncat.c: New file.
13396         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13397         * m4/wcsncat.m4: New file.
13398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13401         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13402         * doc/posix-functions/wcsncat.texi: Mention the new module.
13403
13404 2011-02-05  Bruno Haible  <bruno@clisp.org>
13405
13406         New module 'wcscat'.
13407         * modules/wcscat: New file.
13408         * lib/wchar.in.h (wcscat): New declaration.
13409         * lib/wcscat.c: New file.
13410         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13411         * m4/wcscat.m4: New file.
13412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13415         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13416         * doc/posix-functions/wcscat.texi: Mention the new module.
13417
13418 2011-02-05  Bruno Haible  <bruno@clisp.org>
13419
13420         New module 'wcpncpy'.
13421         * modules/wcpncpy: New file.
13422         * lib/wchar.in.h (wcpncpy): New declaration.
13423         * lib/wcpncpy.c: New file.
13424         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13425         * m4/wcpncpy.m4: New file.
13426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13428         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13429         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13430         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13431
13432 2011-02-05  Bruno Haible  <bruno@clisp.org>
13433
13434         New module 'wcsncpy'.
13435         * modules/wcsncpy: New file.
13436         * lib/wchar.in.h (wcsncpy): New declaration.
13437         * lib/wcsncpy.c: New file.
13438         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13439         * m4/wcsncpy.m4: New file.
13440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13443         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13444         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13445
13446 2011-02-05  Bruno Haible  <bruno@clisp.org>
13447
13448         New module 'wcpcpy'.
13449         * modules/wcpcpy: New file.
13450         * lib/wchar.in.h (wcpcpy): New declaration.
13451         * lib/wcpcpy.c: New file.
13452         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13453         * m4/wcpcpy.m4: New file.
13454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13456         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13457         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13458         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13459
13460 2011-02-05  Bruno Haible  <bruno@clisp.org>
13461
13462         New module 'wcscpy'.
13463         * modules/wcscpy: New file.
13464         * lib/wchar.in.h (wcscpy): New declaration.
13465         * lib/wcscpy.c: New file.
13466         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13467         * m4/wcscpy.m4: New file.
13468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13471         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13472         * doc/posix-functions/wcscpy.texi: Mention the new module.
13473
13474 2011-02-05  Bruno Haible  <bruno@clisp.org>
13475
13476         New module 'wcsnlen'.
13477         * modules/wcsnlen: New file.
13478         * lib/wchar.in.h (wcsnlen): New declaration.
13479         * lib/wcsnlen.c: New file.
13480         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13481         * m4/wcsnlen.m4: New file.
13482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13484         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13485         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13486         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13487
13488 2011-02-05  Bruno Haible  <bruno@clisp.org>
13489
13490         New module 'wcslen'.
13491         * modules/wcslen: New file.
13492         * lib/wchar.in.h (wcslen): New declaration.
13493         * lib/wcslen.c: New file.
13494         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13495         * m4/wcslen.m4: New file.
13496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13499         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13500         * doc/posix-functions/wcslen.texi: Mention the new module.
13501
13502 2011-02-05  Bruno Haible  <bruno@clisp.org>
13503
13504         New module 'wmemset'.
13505         * modules/wmemset: New file.
13506         * lib/wchar.in.h (wmemset): New declaration.
13507         * lib/wmemset.c: New file.
13508         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13509         * m4/wmemset.m4: New file.
13510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13512         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13513         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13514         * doc/posix-functions/wmemset.texi: Mention the new module.
13515
13516 2011-02-05  Bruno Haible  <bruno@clisp.org>
13517
13518         New module 'wmemmove'.
13519         * modules/wmemmove: New file.
13520         * lib/wchar.in.h (wmemmove): New declaration.
13521         * lib/wmemmove.c: New file.
13522         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13523         * m4/wmemmove.m4: New file.
13524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13526         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13527         HAVE_WMEMMOVE.
13528         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13529         * doc/posix-functions/wmemmove.texi: Mention the new module.
13530
13531 2011-02-05  Bruno Haible  <bruno@clisp.org>
13532
13533         New module 'wmemcpy'.
13534         * modules/wmemcpy: New file.
13535         * lib/wchar.in.h (wmemcpy): New declaration.
13536         * lib/wmemcpy.c: New file.
13537         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13538         * m4/wmemcpy.m4: New file.
13539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13541         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13542         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13543         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13544
13545 2011-02-05  Bruno Haible  <bruno@clisp.org>
13546
13547         New module 'wmemcmp'.
13548         * modules/wmemcmp: New file.
13549         * lib/wchar.in.h (wmemcmp): New declaration.
13550         * lib/wmemcmp.c: New file.
13551         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13552         * m4/wmemcmp.m4: New file.
13553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13555         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13556         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13557         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13558
13559 2011-02-07  Jim Meyering  <meyering@redhat.com>
13560
13561         di-set, ino-map: new modules, from coreutils
13562         * lib/di-set.c: New file.
13563         * lib/di-set.h: Likewise.
13564         * lib/ino-map.c: Likewise.
13565         * lib/ino-map.h: Likewise.
13566         * modules/di-set: Likewise.
13567         * modules/di-set-tests: Likewise.
13568         * modules/ino-map: Likewise.
13569         * modules/ino-map-tests: Likewise.
13570         * tests/test-di-set.c: Likewise.
13571         * tests/test-ino-map.c: Likewise.
13572
13573 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13574
13575         getloadavg: merge minor changes from Emacs
13576
13577         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13578         (getloadavg): Use memset, not bzero.
13579
13580         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13581         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13582         clash (bug#86).
13583
13584 2010-11-14  Bruno Haible  <bruno@clisp.org>
13585
13586         Allow multiple gnulib generated replacements to coexist.
13587         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13588         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13589         * lib/langinfo.in.h (nl_item): Likewise.
13590         * lib/math.in.h (_NaN, NAN): Likewise.
13591         * lib/netdb.in.h (struct addrinfo): Likewise.
13592         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13593         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13594         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13595         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13596         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13597         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13598         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13599         pthread_mutexattr_init, pthread_mutexattr_settype,
13600         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13601         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13602         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13603         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13604         * lib/sched.in.h (struct sched_param): Likewise.
13605         * lib/se-selinux.in.h (security_class_t, security_context_t,
13606         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13607         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13608         lsetfilecon, fsetfilecon, security_check_context,
13609         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13610         Likewise.
13611         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13612         Likewise.
13613         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13614         _gl_function_taking_int_returning_void_t, union sigval,
13615         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13616         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13617         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13618         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13619         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13620         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13621         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13622         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13623         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13624         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13625         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13626         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13627         socklen_t, rpl_fd_isset): Likewise.
13628         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13629         * lib/sys_time.in.h (struct timeval): Likewise.
13630         * lib/sys_times.in.h (struct tms): Likewise.
13631         * lib/sys_utsname.in.h (struct utsname):
13632         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13633         * lib/unistd.in.h (getpagesize): Likewise.
13634         * lib/wchar.in.h (mbstate_t): Likewise.
13635         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13636         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13637         towlower, towupper): Likewise.
13638         Reported by Sam Steingold <sds@gnu.org>.
13639
13640 2011-02-05  Eric Blake  <eblake@redhat.com>
13641
13642         unsetenv: work around Haiku issues
13643         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13644         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13645
13646 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13647
13648         libposix: avoid calling error() within libposix
13649         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13650         is defined.
13651
13652 2011-02-05  Eric Blake  <eblake@redhat.com>
13653
13654         strerror_r-posix: port to cygwin
13655         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13656         implementation.
13657         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13658         * tests/test-strerror_r.c (main): Fix test.
13659         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13660         issue.
13661
13662 2011-02-05  Bruno Haible  <bruno@clisp.org>
13663
13664         New module 'wmemchr'.
13665         * modules/wmemchr: New file.
13666         * lib/wchar.in.h (wmemchr): New declaration.
13667         * lib/wmemchr.c: New file.
13668         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13669         * m4/wmemchr.m4: New file.
13670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13672         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13673         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13674         * doc/posix-functions/wmemchr.texi: Mention the new module.
13675
13676 2011-02-04  Eric Blake  <eblake@redhat.com>
13677
13678         fdopendir: detect FreeBSD bug
13679         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13680         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13681
13682 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13683
13684         stdbool: do not define HAVE_STDBOOL_H
13685         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13686         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13687         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13688         imported from the latest Autoconf git.  It was motivated by Emacs,
13689         which uses gnulib but does not need HAVE_STDBOOL_H.
13690
13691 2011-02-04  Bruno Haible  <bruno@clisp.org>
13692
13693         wcsnrtombs: Prepare for new module wwcsnrtombs.
13694         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13695         * lib/wcsnrtombs.c: Include it.
13696         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13697
13698         wcsrtombs: Prepare for new module wwcsrtombs.
13699         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13700         * lib/wcsrtombs.c: Include it.
13701         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13702
13703         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13704         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13705         * lib/mbsnrtowcs.c: Include it.
13706         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13707
13708         mbsrtowcs: Prepare for new module mbsrtowwcs.
13709         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13710         * lib/mbsrtowcs.c: Include it.
13711         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13712
13713 2011-02-04  Bruno Haible  <bruno@clisp.org>
13714
13715         vasnprintf: Reduce use of malloc for small format strings.
13716         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13717         (arguments): Add room for the first 7 arguments.
13718         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13719         (char_directives, u8_directives, u16_directives, u32_directives): Add
13720         room for the first 7 directives.
13721         * lib/printf-parse.c: Include <string.h>.
13722         (PRINTF_PARSE): Change memory handling code so that it uses the first
13723         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13724         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13725         Reported by Pádraig Brady <P@draigbrady.com>.
13726
13727 2011-01-31  Eric Blake  <eblake@redhat.com>
13728
13729         dup2: work around Haiku bug
13730         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13731         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13732         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13733         * tests/test-dup2.c (main): Enhance test.
13734
13735 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13736
13737         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13738         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13739         declared by eglibc 2.11.2.
13740         * lib/stdio.in.h: Likewise.
13741
13742 2011-01-31  Eric Blake  <eblake@redhat.com>
13743
13744         ignore-value: add missing test dependency
13745         * tests/test-ignore-value.c: Revert previous change; stdio.h
13746         provides off_t.
13747         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13748
13749 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13750
13751         mktime: clarify long_int width checking
13752         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13753         the top level, to make it clearer that the assumption about
13754         long_int width is being checked.  See
13755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13756
13757 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13758
13759         ignore-value: Fix self-test.
13760         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13761
13762 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13763
13764         TYPE_MAXIMUM: avoid theoretically undefined behavior
13765         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13766         negative number, which the C Standard says has undefined behavior.
13767         In practice this is not a problem, but might as well do it by the book.
13768         Reported by Rich Felker and Eric Blake; see
13769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13770         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13771         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13773         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13774         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13775         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13776
13777         mktime: #undef mktime before #defining it
13778         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13779
13780         mktime: systematically normalize tm_isdst comparisons
13781         * lib/mktime.c (isdst_differ): New function.
13782         (__mktime_internal): Use it systematically for all isdst comparisons.
13783         This completes the fix for libc BZ #6723, and removes the need for
13784         normalizing tm_isdst.  See
13785         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13786         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13787
13788         mktime: fix some integer overflow issues and sidestep the rest
13789
13790         This was prompted by a bug report by Benjamin Lindner for MinGW
13791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13792         His bug is due to signed integer overflow (0 - INT_MIN), and I
13793         I scanned through mktime.c looking for other integer overflow
13794         problems, fixing all the bugs I found.
13795
13796         Although the C Standard says the resulting code is still not safe
13797         in the presence of integer overflow, in practice it should be good
13798         enough for all real-world two's-complement implementations, except
13799         for debugging environments that deliberately trap on integer
13800         overflow (e.g., gcc -ftrapv).
13801
13802         * lib/mktime.c (WRAPV): New macro.
13803         (SHR): Also check that long_int and time_t shift right in the
13804         usual way, before using the fast-but-unportable method.
13805         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13806         used.  The code already assumed two's complement, so there's
13807         no need to test for alternatives.  All uses removed.
13808         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13809         the C standard.  Problem reported by Rich Felker in
13810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13811         (twos_complement_arithmetic): Also check long_int and time_t.
13812         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13813         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13814         (__mktime_internal): Avoid integer overflow with unary subtraction
13815         in two instances where -1 - X is an adequate replacement for -X,
13816         since the calculations are approximate.
13817
13818 2011-01-29  Eric Blake  <eblake@redhat.com>
13819
13820         mktime: avoid infinite loop
13821         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13822         type; behavior is still undefined but portable to all known targets.
13823         Reported by Rich Felker.
13824
13825 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13826
13827         rename, unlink, same-inode: Relicense.
13828         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13829         * modules/unlink (License): Likewise.
13830         * modules/same-inode (License): Likewise.
13831
13832 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13833
13834         mktime: avoid problems on NetBSD 5 / i386
13835         * lib/mktime.c (long_int): New type.  This works around a problem
13836         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13837         but time_t is 64 bits, and where I expect the existing code is
13838         wrong in some cases.
13839         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13840         (ydhms_diff): Bring back the compile-time check for wide-enough
13841         year and yday.
13842
13843         mktime: fix misspelling in comment
13844         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13845         This merges all recent glibc changes of importance.
13846
13847 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13848
13849         move-if-change: cope with concurrent mv of identical file.
13850         * build-aux/move-if-change (CMPPROG): Accept environment
13851         variable as an override for `cmp'.
13852         (usage): Document CMPPROG.
13853         Adjust comparison to drop stdout.  Cope with failure of mv if
13854         the target file exists and is identical to the source, for
13855         parallel builds.
13856         Report from H.J. Lu against binutils in PR binutils/12283.
13857
13858 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13859
13860         * users.txt: Mention sharutils.
13861
13862 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13863
13864         * users.txt: Mention OATH Toolkit.
13865
13866 2011-01-27  Bruno Haible  <bruno@clisp.org>
13867
13868         Prepare for supporting FreeBSD 10.
13869         * build-aux/config.libpath: Remove handling of freebsd1*.
13870
13871 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13872
13873         Prepare for supporting FreeBSD 10.
13874         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13875         match FreeBSD 10.0.
13876
13877 2011-01-27  Bruno Haible  <bruno@clisp.org>
13878
13879         vma-iter, get-rusage-as: Add OpenBSD support.
13880         * modules/vma-iter (configure.ac): Test for mquery.
13881         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13882         * lib/vma-iter.c: Include <sys/mman.h>.
13883         (vma_iterate): Add an implementation based on mquery().
13884         * lib/resource-ext.h (get_rusage_as): Update comments.
13885         * lib/get-rusage-as.c: Likewise.
13886         * lib/get-rusage-data.c: Likewise.
13887
13888 2011-01-26  Karl Berry  <karl@gnu.org>
13889
13890         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13891         variables to make it easier to override the makeinfo program used.
13892
13893 2011-01-26  Eric Blake  <eblake@redhat.com>
13894
13895         fcntl: work around Haiku F_DUPFD bugs
13896         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13897         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13898         cloexec bit on duplication.
13899         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13900
13901 2011-01-26  Bruno Haible  <bruno@clisp.org>
13902
13903         Enable memory leak tests on AIX.
13904         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13905         * tests/test-fprintf-posix3.c (main): Likewise.
13906
13907 2011-01-26  Bruno Haible  <bruno@clisp.org>
13908
13909         Tests for module 'get-rusage-data'.
13910         * modules/get-rusage-data-tests: New file.
13911         * tests/test-get-rusage-data.c: New file.
13912
13913         New module 'get-rusage-data'.
13914         * lib/resource-ext.h (get_rusage_data): New declaration.
13915         * lib/get-rusage-data.c: New file.
13916         * modules/get-rusage-data: New file.
13917
13918 2011-01-25  Bruno Haible  <bruno@clisp.org>
13919
13920         get-rusage-as: Allow for easier testing.
13921         * lib/resource-ext.h (get_rusage_as): Add comment.
13922         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13923         (main): New function for interactive testing.
13924
13925 2011-01-25  Bruno Haible  <bruno@clisp.org>
13926
13927         vma-iter: Treat Haiku like BeOS.
13928         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13929         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13930
13931 2011-01-25  Eric Blake  <eblake@redhat.com>
13932
13933         c-stack: fix regression on cygwin when libsigsegv is present
13934         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13935
13936 2011-01-24  Bruno Haible  <bruno@clisp.org>
13937
13938         vma-iter: Avoid empty intervals.
13939         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13940         on an empty interval.
13941
13942 2011-01-24  Jim Meyering  <meyering@redhat.com>
13943
13944         u64: remove unnecessary #include
13945         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13946
13947 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13948
13949         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13950         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13951
13952 2011-01-23  Bruno Haible  <bruno@clisp.org>
13953
13954         New module 'vma-iter'.
13955         * lib/vma-iter.h: New file.
13956         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13957         * modules/vma-iter: New file.
13958         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13959         for get_rusage_as_via_iterator.
13960         (vma_iterate_callback): New function.
13961         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13962         * modules/get-rusage-as (Depends-on): Add vma-iter.
13963
13964 2011-01-23  Bruno Haible  <bruno@clisp.org>
13965
13966         uninorm: Tweak includes.
13967         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13968         Reported by Jim Meyering.
13969
13970 2011-01-23  Bruno Haible  <bruno@clisp.org>
13971
13972         get-rusage-as: Improve on NetBSD.
13973         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13974         /proc, like on FreeBSD.
13975
13976 2011-01-23  Jim Meyering  <meyering@redhat.com>
13977
13978         xreadlink.h: remove unnecessary #include
13979         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13980
13981         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13982         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13983
13984 2011-01-23  Bruno Haible  <bruno@clisp.org>
13985
13986         get-rusage-as: Fix bug.
13987         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13988         original limit when aborting the first loop.
13989
13990 2011-01-23  Bruno Haible  <bruno@clisp.org>
13991
13992         wctype: Ensure valid C syntax.
13993         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13994         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13995
13996 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13997
13998         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13999         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14000         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14001         as they are needed only for configure's test case.
14002         This removes two unnecessary symbols from config.h.
14003
14004         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14005         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14007         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14008         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14009         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14010         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14011         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14012         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14013         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14014         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14016         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14017         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14018         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14019         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14020         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14021         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14022
14023 2011-01-21  Eric Blake  <eblake@redhat.com>
14024
14025         maintainer-makefile: work with older git for submodule check
14026         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14027         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14028         Reported by Matthias Bolte.
14029
14030         bootstrap: minor portability fixes
14031         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14032         (usage): Omit leading capital and trailing . on help phrases, per
14033         GNU Coding Standards.
14034         (check_versions, top level): Prefix messages with script name.
14035
14036 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14037
14038         bootstrap: support --no-git option
14039         * build-aux/bootstrap: Add --no-git option, to be used when
14040         --gnulib-srcdir points to the exact desired checkout.
14041
14042 2011-01-21  Eric Blake  <eblake@redhat.com>
14043
14044         strerror_r-posix: work with glibc 2.13
14045         * lib/strerror_r.c (strerror_r): Fix return type.
14046
14047 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14048             Bruno Haible  <bruno@clisp.org>
14049
14050         uN_strstr: New unit tests.
14051         * modules/unistr/u8-strstr-tests: New file.
14052         * modules/unistr/u16-strstr-tests: New file.
14053         * modules/unistr/u32-strstr-tests: New file.
14054         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14055         * tests/unistr/test-u8-strstr.c: New file.
14056         * tests/unistr/test-u16-strstr.c: New file.
14057         * tests/unistr/test-u32-strstr.c: New file.
14058
14059 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14060             Bruno Haible  <bruno@clisp.org>
14061
14062         Make uN_strstr functions O(n) worst-case.
14063         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14064         16-bit and 32-bit unit cases, use the unibyte algorithm from
14065         lib/mbsstr.c.
14066         * lib/unistr/u8-strstr.c: Include <string.h>.
14067         (UNIT_IS_UINT8_T): New macro.
14068         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14069         (U_STRLEN, U_STRNLEN): New macros.
14070         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14071         (U_STRLEN, U_STRNLEN): New macros.
14072         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14073         (configure.ac): Update required libunistring version.
14074         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14075         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14076         malloca.
14077         (configure.ac): Update required libunistring version.
14078         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14079         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14080         malloca.
14081         (configure.ac): Update required libunistring version.
14082
14083 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14084             Bruno Haible  <bruno@clisp.org>
14085
14086         Prepare for faster uN_strstr functions.
14087         * lib/str-kmp.h: Support definable UNITs.
14088         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14089         needle_len argument.
14090         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14091         * lib/mbscasestr.c (mbscasestr): Likewise.
14092
14093 2011-01-21  Pádraig Brady <P@draigBrady.com>
14094
14095         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14096         * tests/test-malloca.c (main): Unset the environment variable
14097         to greatly speed up the test.
14098         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14099         * modules/malloca-tests: Depend on unsetenv.
14100
14101 2011-01-21  Pádraig Brady <P@draigBrady.com>
14102
14103         ignore-value: remove stdint dependency
14104         * lib/ignore-value.h: Remove <stdint.h>
14105         * modules/ignore-value: Remove stdint dependency.
14106
14107 2011-01-21  Jim Meyering  <meyering@redhat.com>
14108
14109         maint.mk: adjust variable name to be consistent with other gl_ vars
14110         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14111         to be lower case.
14112
14113 2011-01-20  Jim Meyering  <meyering@redhat.com>
14114
14115         maint.mk: make "check" depend on public-submodule-commit by default
14116         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14117
14118 2011-01-20  Bruno Haible  <bruno@clisp.org>
14119
14120         mbfile, mbiter: Complete change from 2008-12-21.
14121         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14122         * m4/mbiter.m4 (gl_MBITER): Likewise.
14123
14124 2011-01-20  Jim Meyering  <meyering@redhat.com>
14125
14126         init.sh: insert space between each function name and "()"
14127         * tests/init.sh: Make it a little easier to see that a function's
14128         name is "warn_", and not "warn" when looking at the first part of
14129         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14130
14131 2011-01-20  Jim Meyering  <meyering@redhat.com>
14132
14133         mountlist: clean up code formatting
14134         * lib/mountlist.c (read_file_system_list): Split a long line,
14135         correct bracing style, use NULL in place of "(struct statfs *)0",
14136         don't parenthesize return value, add spaces around "=" and after
14137         ";-in-for-stmt".
14138
14139 2011-01-14  Markus Duft <mduft@gentoo.org>
14140
14141         mountlist: add support for Interix
14142         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14143         Apply statvfs to all entries of /dev/fs.
14144         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14145         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14146
14147 2011-01-20  Jim Meyering  <meyering@redhat.com>
14148
14149         maint.mk: improve the public-submodule-commit rule
14150         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14151         to suppress printing of its commands... unless V=1.
14152         Add git submodule's --quiet option to suppress printing of e.g.,
14153         "Entering gnulib" output.
14154         "cd" into $(srcdir) before running git submodule.
14155
14156 2011-01-20  Bruno Haible  <bruno@clisp.org>
14157
14158         include_next: Fix bug introduced on 2011-01-18.
14159         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14160         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14161         ac_cv_header_... variable if the second argument is not 'check'.
14162         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14163         gl_NEXT_HEADERS_INTERNAL.
14164
14165 2011-01-20  Bruno Haible  <bruno@clisp.org>
14166
14167         Allow the user to avoid the GNULIB_TEST_* macros.
14168         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14169         Suggested by Paul Eggert.
14170
14171 2011-01-14  Jim Meyering  <meyering@redhat.com>
14172
14173         bootstrap: avoid failure when there is no .gitmodules file
14174         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14175         has been assigned to, even when its value is the empty string.
14176         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14177         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14178         Reported by John W. Eaton <jwe@gnu.org>.
14179
14180 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14181
14182         assume <ctype.h>, ..., <time.h> exist
14183         For years gnulib has been assuming the existence of the headers
14184         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14185         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14186         them, since they don't appear to be needed.
14187         * README (Portability guidelines): Document this.
14188         * lib/flock.c: Assume <fcntl.h> exists.
14189         * lib/regex_internal.h: Assume <locale.h> exists.
14190         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14191         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14192         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14193         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14194         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14195         * m4/regex.m4 (gl_REGEX): Likewise.
14196         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14197         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14198         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14199         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14200         * tests/test-argp.c: Likewise.
14201         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14202
14203         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14204         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14205         AA_APPLE_UNIVERSAL_BUILD.  See
14206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14207         * NEWS: Document this.
14208
14209 2011-01-19  Eric Blake  <eblake@redhat.com>
14210
14211         c-stack: assume stack overflow if SA_SIGINFO unsupported
14212         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14213         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14214         sigaction will work.
14215         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14216         behavior match Linux.
14217         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14218
14219         stdbool-tests: accomodate Haiku
14220         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14221
14222         binary-io: fix O_TEXT on Haiku
14223         * modules/binary-io (Depends-on): Add fcntl-h.
14224         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14225         than blindly undefining O_TEXT.
14226         Reported by Scott McCreary.
14227
14228 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14229
14230         include_next: do not check for standard headers like stddef.h
14231
14232         I found this problem when modifying Emacs to use gnulib.
14233         I noticed that it added HAVE_STDDEF_H to config.h, even though
14234         gnulib always assumes <stddef.h> exists as per README and this
14235         symbol is unnecessary.
14236         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14237         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14238         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14239         faster for headers like stddef.h that are known to exist.
14240         (gl_CHECK_NEXT_HEADERS): Use it.
14241         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14242         rather than gl_CHECK_NEXT_HEADERS.
14243         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14244         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14245
14246 2011-01-18  Eric Blake  <eblake@redhat.com>
14247
14248         ansi-c++-opt: skip C++ dependency style if C++ is unused
14249         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14250         tests when we know C++ compilation is not desired.
14251         Reported by Scott McCreary.
14252
14253 2011-01-18  Bruno Haible  <bruno@clisp.org>
14254
14255         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14256         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14257         (main): Perform test also when getrlimit and setrlimit don't exist or
14258         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14259         limiting the address space size using setrlimit, compare the address
14260         space size before and after the the test.
14261         * tests/test-dprintf-posix2.c: Likewise.
14262         * tests/test-fprintf-posix3.sh: Update skip messages.
14263         * tests/test-dprintf-posix2.sh: Likewise.
14264         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14265         * modules/dprintf-posix-tests (Depends-on): Likewise.
14266         Reported by Bruce Korb <bkorb@gnu.org> and
14267         Gary V. Vaughan <gary@gnu.org>.
14268
14269 2011-01-18  Bruno Haible  <bruno@clisp.org>
14270
14271         get-rusage-as: Improvement for Cygwin.
14272         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14273         areas that are merely reserved.
14274
14275 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14276
14277         strftime: remove dependencies on multibyte modules
14278
14279         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14280         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14281         only if __osf__ is defined, and I suspect OSF doesn't need these
14282         other modules.  If my guess is wrong, we'll need to come up with a
14283         variant of strftime that doesn't need the multibyte modules.
14284
14285         I discovered this problem when attempting modify Emacs to use the
14286         strftime module.  With the previous gnulib, this caused Emacs to
14287         need 31 new files, ranging from lib/config.charset to
14288         m4/wint_t.m4.  This was overkill and I expect would be offputting
14289         to the Emacs maintainers.  After this change, only 6 new files are
14290         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14291         stdbool.m4, and tm_gmtoff.m4.
14292
14293         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14294         Suggested by Bruno Haible in
14295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14296         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14297         and do not check for wchar.h.
14298         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14299         (Depends-on): Remove mbrlen, mbsinit, wchar.
14300
14301 2011-01-18  Bruno Haible  <bruno@clisp.org>
14302
14303         Tests for module 'get-rusage-as'.
14304         * modules/get-rusage-as-tests: New file.
14305         * tests/test-get-rusage-as.c: New file.
14306
14307         New module 'get-rusage-as'.
14308         * modules/get-rusage-as: New file.
14309         * lib/resource-ext.h: New file.
14310         * lib/get-rusage-as.c: New file.
14311
14312 2011-01-17  Eric Blake  <eblake@redhat.com>
14313
14314         sigaction: relax license from LGPLv3+ to LGPLv2+
14315         * modules/sigaction (License): Relax to LGPLv2+.
14316
14317 2011-01-14  Bruno Haible  <bruno@clisp.org>
14318
14319         filemode: Make function declarations usable in C++ mode.
14320         * lib/filemode.h: Enclose function declarations in extern "C" block.
14321         Reported by John W. Eaton <jwe@gnu.org>.
14322
14323 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14324
14325         save-cwd: no longer include "xgetcwd.h"
14326         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14327         This avoids a compilation failure in projects that use save-cwd
14328         without also using the xgetcwd module.
14329
14330 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14331
14332         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14333         This is so that a program like Emacs, which needs only dtoastr,
14334         does not have to bother with distributing and compiling ftoastr
14335         and ldtoastr.
14336         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14337         * modules/dtoastr, modules/ldtoastr: New files.
14338         * modules/ftoastr: Now works just for 'float'.
14339         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14340         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14341         dtoastr.c, ldtoastr.c.
14342
14343 2011-01-11  Jim Meyering  <meyering@redhat.com>
14344
14345         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14346         There is no need to work around the lack of the fchdir function,
14347         since gnulib can now provide a replacement when required.
14348         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14349         * modules/save-cwd (Depends-on): Add fchdir.
14350
14351 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         openat, save-cwd: avoid xmalloc
14354
14355         This removes a direct (but undocumented) dependency of openat on
14356         xalloc, along with an indirect dependency via save-cwd.  It also
14357         removes a dependency of save-cwd on xgetcwd, and thereby
14358         indirectly on xalloc.  This change causes the openat substitute
14359         to fall back on save_cwd when memory is tight, and for save_cwd to
14360         fail instead of dying when memory is tight, but that's good enough.
14361         Problem and initial idea for fix reported by Bastien Roucaries in
14362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14363
14364         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14365         xalloc.h (for xmalloc).
14366         (openat_proc_name): Use malloc, not xmalloc.
14367         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14368         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14369
14370         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14371         This avoids heap allocation for file names whose lengths are in
14372         the range 512..1023, with the upper bound increasing to at most
14373         4031 depending on the platform's PATH_MAX.  (We do not want
14374         pathmax.h here as it might supply a non-constant PATH_MAX.)
14375         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14376         Perhaps they should be moved to malloca.h?
14377         (OPENAT_BUFFER_SIZE): Use them.
14378
14379 2011-01-10  Bruno Haible  <bruno@clisp.org>
14380
14381         doc: Update users.txt.
14382         * users.txt: Add recutils.
14383
14384 2011-01-09  Karl Berry  <karl@gnu.org>
14385
14386         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14387
14388         * doc/configmake.texi: New file.
14389         * doc/gnulib.texi: Include it.
14390         * modules/configmake: Move documentation from here.
14391
14392 2011-01-09  Bruno Haible  <bruno@clisp.org>
14393
14394         Update to Unicode 6.0.0.
14395         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14396         (get_lbp): Update for Unicode 6.0.0.
14397         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14398         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14399         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14400         U+11001, U+11038..U+11046. Remove U+06DE.
14401         (uc_width): Fix bounds of planes.
14402         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14403         lib/uniwidth/width.c.
14404         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14405         trailing whitespace removed.
14406         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14407         without comments, but with the original copyright notice.
14408         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14409         * lib/unicase/ignorable.h: Likewise.
14410         * lib/unicase/tocasefold.h: Likewise.
14411         * lib/unicase/tolower.h: Likewise.
14412         * lib/unicase/totitle.h: Likewise.
14413         * lib/unicase/toupper.h: Likewise.
14414         * lib/unictype/bidi_of.h: Likewise.
14415         * lib/unictype/blocks.h: Likewise.
14416         * lib/unictype/categ_C.h: Likewise.
14417         * lib/unictype/categ_Cn.h: Likewise.
14418         * lib/unictype/categ_L.h: Likewise.
14419         * lib/unictype/categ_Ll.h: Likewise.
14420         * lib/unictype/categ_Lm.h: Likewise.
14421         * lib/unictype/categ_Lo.h: Likewise.
14422         * lib/unictype/categ_Lu.h: Likewise.
14423         * lib/unictype/categ_M.h: Likewise.
14424         * lib/unictype/categ_Mc.h: Likewise.
14425         * lib/unictype/categ_Me.h: Likewise.
14426         * lib/unictype/categ_Mn.h: Likewise.
14427         * lib/unictype/categ_N.h: Likewise.
14428         * lib/unictype/categ_Nd.h: Likewise.
14429         * lib/unictype/categ_No.h: Likewise.
14430         * lib/unictype/categ_P.h: Likewise.
14431         * lib/unictype/categ_Po.h: Likewise.
14432         * lib/unictype/categ_S.h: Likewise.
14433         * lib/unictype/categ_Sc.h: Likewise.
14434         * lib/unictype/categ_Sk.h: Likewise.
14435         * lib/unictype/categ_Sm.h: Likewise.
14436         * lib/unictype/categ_So.h: Likewise.
14437         * lib/unictype/categ_of.h: Likewise.
14438         * lib/unictype/combining.h: Likewise.
14439         * lib/unictype/ctype_alnum.h: Likewise.
14440         * lib/unictype/ctype_alpha.h: Likewise.
14441         * lib/unictype/ctype_graph.h: Likewise.
14442         * lib/unictype/ctype_lower.h: Likewise.
14443         * lib/unictype/ctype_print.h: Likewise.
14444         * lib/unictype/ctype_punct.h: Likewise.
14445         * lib/unictype/ctype_upper.h: Likewise.
14446         * lib/unictype/decdigit.h: Likewise.
14447         * lib/unictype/digit.h: Likewise.
14448         * lib/unictype/numeric.h: Likewise.
14449         * lib/unictype/pr_alphabetic.h: Likewise.
14450         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14451         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14452         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14453         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14454         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14455         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14456         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14457         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14458         * lib/unictype/pr_case_ignorable.h: Likewise.
14459         * lib/unictype/pr_cased.h: Likewise.
14460         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14461         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14462         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14463         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14464         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14465         * lib/unictype/pr_combining.h: Likewise.
14466         * lib/unictype/pr_composite.h: Likewise.
14467         * lib/unictype/pr_currency_symbol.h: Likewise.
14468         * lib/unictype/pr_decimal_digit.h: Likewise.
14469         * lib/unictype/pr_deprecated.h: Likewise.
14470         * lib/unictype/pr_format_control.h: Likewise.
14471         * lib/unictype/pr_grapheme_base.h: Likewise.
14472         * lib/unictype/pr_grapheme_extend.h: Likewise.
14473         * lib/unictype/pr_grapheme_link.h: Likewise.
14474         * lib/unictype/pr_id_continue.h: Likewise.
14475         * lib/unictype/pr_id_start.h: Likewise.
14476         * lib/unictype/pr_ideographic.h: Likewise.
14477         * lib/unictype/pr_lowercase.h: Likewise.
14478         * lib/unictype/pr_math.h: Likewise.
14479         * lib/unictype/pr_numeric.h: Likewise.
14480         * lib/unictype/pr_other_alphabetic.h: Likewise.
14481         * lib/unictype/pr_other_id_continue.h: Likewise.
14482         * lib/unictype/pr_other_math.h: Likewise.
14483         * lib/unictype/pr_punctuation.h: Likewise.
14484         * lib/unictype/pr_sentence_terminal.h: Likewise.
14485         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14486         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14487         * lib/unictype/pr_unified_ideograph.h: Likewise.
14488         * lib/unictype/pr_uppercase.h: Likewise.
14489         * lib/unictype/pr_xid_continue.h: Likewise.
14490         * lib/unictype/pr_xid_start.h: Likewise.
14491         * lib/unictype/scripts.h: Likewise.
14492         * lib/unictype/scripts_byname.gperf: Likewise.
14493         * lib/unictype/sy_java_ident.h: Likewise.
14494         * lib/unigbrk/gbrkprop.h: Likewise.
14495         * lib/unilbrk/lbrkprop1.h: Likewise.
14496         * lib/unilbrk/lbrkprop2.h: Likewise.
14497         * lib/uninorm/decomposition-table2.h: Likewise.
14498         * lib/uniwbrk/wbrkprop.h: Likewise.
14499         * tests/unicase/test-cased.c: Likewise.
14500         * tests/unicase/test-ignorable.c: Likewise.
14501         * tests/unicase/test-uc_tolower.c: Likewise.
14502         * tests/unicase/test-uc_totitle.c: Likewise.
14503         * tests/unicase/test-uc_toupper.c: Likewise.
14504         * tests/unictype/test-categ_C.c: Likewise.
14505         * tests/unictype/test-categ_Cn.c: Likewise.
14506         * tests/unictype/test-categ_L.c: Likewise.
14507         * tests/unictype/test-categ_Ll.c: Likewise.
14508         * tests/unictype/test-categ_Lm.c: Likewise.
14509         * tests/unictype/test-categ_Lo.c: Likewise.
14510         * tests/unictype/test-categ_Lu.c: Likewise.
14511         * tests/unictype/test-categ_M.c: Likewise.
14512         * tests/unictype/test-categ_Mc.c: Likewise.
14513         * tests/unictype/test-categ_Me.c: Likewise.
14514         * tests/unictype/test-categ_Mn.c: Likewise.
14515         * tests/unictype/test-categ_N.c: Likewise.
14516         * tests/unictype/test-categ_Nd.c: Likewise.
14517         * tests/unictype/test-categ_No.c: Likewise.
14518         * tests/unictype/test-categ_P.c: Likewise.
14519         * tests/unictype/test-categ_Po.c: Likewise.
14520         * tests/unictype/test-categ_S.c: Likewise.
14521         * tests/unictype/test-categ_Sc.c: Likewise.
14522         * tests/unictype/test-categ_Sk.c: Likewise.
14523         * tests/unictype/test-categ_Sm.c: Likewise.
14524         * tests/unictype/test-categ_So.c: Likewise.
14525         * tests/unictype/test-ctype_alnum.c: Likewise.
14526         * tests/unictype/test-ctype_alpha.c: Likewise.
14527         * tests/unictype/test-ctype_graph.c: Likewise.
14528         * tests/unictype/test-ctype_lower.c: Likewise.
14529         * tests/unictype/test-ctype_print.c: Likewise.
14530         * tests/unictype/test-ctype_punct.c: Likewise.
14531         * tests/unictype/test-ctype_upper.c: Likewise.
14532         * tests/unictype/test-decdigit.h: Likewise.
14533         * tests/unictype/test-digit.h: Likewise.
14534         * tests/unictype/test-numeric.h: Likewise.
14535         * tests/unictype/test-pr_alphabetic.c: Likewise.
14536         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14537         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14538         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14539         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14540         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14541         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14542         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14543         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14544         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14545         * tests/unictype/test-pr_cased.c: Likewise.
14546         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14547         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14548         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14549         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14550         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14551         * tests/unictype/test-pr_combining.c: Likewise.
14552         * tests/unictype/test-pr_composite.c: Likewise.
14553         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14554         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14555         * tests/unictype/test-pr_deprecated.c: Likewise.
14556         * tests/unictype/test-pr_format_control.c: Likewise.
14557         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14558         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14559         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14560         * tests/unictype/test-pr_id_continue.c: Likewise.
14561         * tests/unictype/test-pr_id_start.c: Likewise.
14562         * tests/unictype/test-pr_ideographic.c: Likewise.
14563         * tests/unictype/test-pr_lowercase.c: Likewise.
14564         * tests/unictype/test-pr_math.c: Likewise.
14565         * tests/unictype/test-pr_numeric.c: Likewise.
14566         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14567         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14568         * tests/unictype/test-pr_other_math.c: Likewise.
14569         * tests/unictype/test-pr_punctuation.c: Likewise.
14570         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14571         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14572         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14573         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14574         * tests/unictype/test-pr_uppercase.c: Likewise.
14575         * tests/unictype/test-pr_xid_continue.c: Likewise.
14576         * tests/unictype/test-pr_xid_start.c: Likewise.
14577         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14578         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14579         changes.
14580         * lib/unictype/categ_Cc.h: Likewise.
14581         * lib/unictype/categ_Cf.h: Likewise.
14582         * lib/unictype/categ_Co.h: Likewise.
14583         * lib/unictype/categ_Cs.h: Likewise.
14584         * lib/unictype/categ_Lt.h: Likewise.
14585         * lib/unictype/categ_Nl.h: Likewise.
14586         * lib/unictype/categ_Pc.h: Likewise.
14587         * lib/unictype/categ_Pd.h: Likewise.
14588         * lib/unictype/categ_Pe.h: Likewise.
14589         * lib/unictype/categ_Pf.h: Likewise.
14590         * lib/unictype/categ_Pi.h: Likewise.
14591         * lib/unictype/categ_Ps.h: Likewise.
14592         * lib/unictype/categ_Z.h: Likewise.
14593         * lib/unictype/categ_Zl.h: Likewise.
14594         * lib/unictype/categ_Zp.h: Likewise.
14595         * lib/unictype/categ_Zs.h: Likewise.
14596         * lib/unictype/ctype_blank.h: Likewise.
14597         * lib/unictype/ctype_cntrl.h: Likewise.
14598         * lib/unictype/ctype_digit.h: Likewise.
14599         * lib/unictype/ctype_space.h: Likewise.
14600         * lib/unictype/ctype_xdigit.h: Likewise.
14601         * lib/unictype/mirror.h: Likewise.
14602         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14603         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14604         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14605         * lib/unictype/pr_bidi_control.h: Likewise.
14606         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14607         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14608         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14609         * lib/unictype/pr_bidi_pdf.h: Likewise.
14610         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14611         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14612         * lib/unictype/pr_dash.h: Likewise.
14613         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14614         * lib/unictype/pr_diacritic.h: Likewise.
14615         * lib/unictype/pr_extender.h: Likewise.
14616         * lib/unictype/pr_hex_digit.h: Likewise.
14617         * lib/unictype/pr_hyphen.h: Likewise.
14618         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14619         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14620         * lib/unictype/pr_ignorable_control.h: Likewise.
14621         * lib/unictype/pr_iso_control.h: Likewise.
14622         * lib/unictype/pr_join_control.h: Likewise.
14623         * lib/unictype/pr_left_of_pair.h: Likewise.
14624         * lib/unictype/pr_line_separator.h: Likewise.
14625         * lib/unictype/pr_logical_order_exception.h: Likewise.
14626         * lib/unictype/pr_non_break.h: Likewise.
14627         * lib/unictype/pr_not_a_character.h: Likewise.
14628         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14629         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14630         * lib/unictype/pr_other_id_start.h: Likewise.
14631         * lib/unictype/pr_other_lowercase.h: Likewise.
14632         * lib/unictype/pr_other_uppercase.h: Likewise.
14633         * lib/unictype/pr_paired_punctuation.h: Likewise.
14634         * lib/unictype/pr_paragraph_separator.h: Likewise.
14635         * lib/unictype/pr_pattern_syntax.h: Likewise.
14636         * lib/unictype/pr_pattern_white_space.h: Likewise.
14637         * lib/unictype/pr_private_use.h: Likewise.
14638         * lib/unictype/pr_quotation_mark.h: Likewise.
14639         * lib/unictype/pr_radical.h: Likewise.
14640         * lib/unictype/pr_soft_dotted.h: Likewise.
14641         * lib/unictype/pr_space.h: Likewise.
14642         * lib/unictype/pr_titlecase.h: Likewise.
14643         * lib/unictype/pr_variation_selector.h: Likewise.
14644         * lib/unictype/pr_white_space.h: Likewise.
14645         * lib/unictype/pr_zero_width.h: Likewise.
14646         * lib/unictype/sy_c_ident.h: Likewise.
14647         * lib/unictype/sy_c_whitespace.h: Likewise.
14648         * lib/unictype/sy_java_whitespace.h: Likewise.
14649         * lib/uninorm/composition-table.gperf: Likewise.
14650         * lib/uninorm/decomposition-table1.h: Likewise.
14651         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14652         LB8.
14653         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14654         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14655         * modules/unictype/*: Bump version number of expected libunistring
14656         version.
14657
14658 2011-01-09  Bruno Haible  <bruno@clisp.org>
14659
14660         Update to Unicode 5.2.0.
14661         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14662         trailing whitespace removed.
14663
14664 2011-01-09  Bruno Haible  <bruno@clisp.org>
14665
14666         New Unicode character properties, from Unicode 5.2.0.
14667         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14668         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14669         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14670         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14671         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14672         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14673         uc_is_property_cased, uc_is_property_case_ignorable,
14674         uc_is_property_changes_when_lowercased,
14675         uc_is_property_changes_when_uppercased,
14676         uc_is_property_changes_when_titlecased,
14677         uc_is_property_changes_when_casefolded,
14678         uc_is_property_changes_when_casemapped): New declarations.
14679         * lib/unictype/pr_byname.gperf: Add the new properties.
14680         * modules/unictype/property-byname (Depends-on): Depend on the new
14681         properties modules.
14682         * modules/unictype/property-all (Depends-on): Likewise.
14683         * MODULES.html.sh (Unicode string functions): Add
14684         unictype/property-case-ignorable, unictype/property-cased,
14685         unictype/property-changes-when-casefolded,
14686         unictype/property-changes-when-casemapped,
14687         unictype/property-changes-when-lowercased,
14688         unictype/property-changes-when-titlecased,
14689         unictype/property-changes-when-uppercased.
14690
14691         New module 'unictype/property-changes-when-casemapped'.
14692         * modules/unictype/property-changes-when-casemapped: New file.
14693         * lib/unictype/pr_changes_when_casemapped.c: New file.
14694         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14695         generated by gen-uni-tables.
14696         * modules/unictype/property-changes-when-casemapped-tests: New file.
14697         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14698         automatically generated by gen-uni-tables.
14699
14700         New module 'unictype/property-changes-when-casefolded'.
14701         * modules/unictype/property-changes-when-casefolded: New file.
14702         * lib/unictype/pr_changes_when_casefolded.c: New file.
14703         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14704         generated by gen-uni-tables.
14705         * modules/unictype/property-changes-when-casefolded-tests: New file.
14706         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14707         automatically generated by gen-uni-tables.
14708
14709         New module 'unictype/property-changes-when-titlecased'.
14710         * modules/unictype/property-changes-when-titlecased: New file.
14711         * lib/unictype/pr_changes_when_titlecased.c: New file.
14712         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14713         generated by gen-uni-tables.
14714         * modules/unictype/property-changes-when-titlecased-tests: New file.
14715         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14716         automatically generated by gen-uni-tables.
14717
14718         New module 'unictype/property-changes-when-uppercased'.
14719         * modules/unictype/property-changes-when-uppercased: New file.
14720         * lib/unictype/pr_changes_when_uppercased.c: New file.
14721         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14722         generated by gen-uni-tables.
14723         * modules/unictype/property-changes-when-uppercased-tests: New file.
14724         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14725         automatically generated by gen-uni-tables.
14726
14727         New module 'unictype/property-changes-when-lowercased'.
14728         * modules/unictype/property-changes-when-lowercased: New file.
14729         * lib/unictype/pr_changes_when_lowercased.c: New file.
14730         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14731         generated by gen-uni-tables.
14732         * modules/unictype/property-changes-when-lowercased-tests: New file.
14733         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14734         automatically generated by gen-uni-tables.
14735
14736         New module 'unictype/property-case-ignorable'.
14737         * modules/unictype/property-case-ignorable: New file.
14738         * lib/unictype/pr_case_ignorable.c: New file.
14739         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14740         by gen-uni-tables.
14741         * modules/unictype/property-case-ignorable-tests: New file.
14742         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14743         generated by gen-uni-tables.
14744
14745         New module 'unictype/property-cased'.
14746         * modules/unictype/property-cased: New file.
14747         * lib/unictype/pr_cased.c: New file.
14748         * lib/unictype/pr_cased.h: New file, automatically generated by
14749         gen-uni-tables.
14750         * modules/unictype/property-cased-tests: New file.
14751         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14752         gen-uni-tables.
14753
14754 2011-01-09  Bruno Haible  <bruno@clisp.org>
14755
14756         Update to Unicode 5.2.0.
14757         * lib/gen-uni-tables.c (output_predicate, output_category,
14758         output_combclass, output_bidi_category, output_decimal_digit_test,
14759         output_decimal_digit, output_digit_test, output_digit,
14760         output_numeric_test, output_numeric, output_mirror, output_scripts,
14761         output_scripts_byname, output_blocks, output_ident_category): Fix
14762         comment header.
14763         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14764         get_wbp.
14765         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14766         items.
14767         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14768         Changes_When_Lowercased, Changes_When_Uppercased,
14769         Changes_When_Titlecased, Changes_When_Casefolded,
14770         Changes_When_Casemapped.
14771         (is_property_alphabetic, is_property_default_ignorable_code_point):
14772         Update for Unicode 5.2.0.
14773         (is_property_cased, is_property_case_ignorable,
14774         is_property_changes_when_lowercased,
14775         is_property_changes_when_uppercased,
14776         is_property_changes_when_titlecased,
14777         is_property_changes_when_casefolded,
14778         is_property_changes_when_casemapped): New functions.
14779         (output_properties): Output also the properties cased, case_ignorable,
14780         changes_when_lowercased, changes_when_uppercased,
14781         changes_when_titlecased, changes_when_casefolded,
14782         changes_when_casemapped.
14783         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14784         Unicode TR#11 revision 17 -> 19.
14785         (LBP_CP): New enumeration value.
14786         (LBP_*): Adjust values accordingly.
14787         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14788         TR#14 revision 22 -> 24.
14789         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14790         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14791         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14792         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14793         is_WBP_MIDLETTER.
14794         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14795         the code1 and code2 of each composition rule.
14796         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14797         * lib/unicase/ignorable.h: Likewise.
14798         * lib/unicase/tocasefold.h: Likewise.
14799         * lib/unicase/tolower.h: Likewise.
14800         * lib/unicase/totitle.h: Likewise.
14801         * lib/unicase/toupper.h: Likewise.
14802         * lib/unictype/bidi_of.h: Likewise.
14803         * lib/unictype/blocks.h: Likewise.
14804         * lib/unictype/categ_C.h: Likewise.
14805         * lib/unictype/categ_Cf.h: Likewise.
14806         * lib/unictype/categ_Cn.h: Likewise.
14807         * lib/unictype/categ_L.h: Likewise.
14808         * lib/unictype/categ_Ll.h: Likewise.
14809         * lib/unictype/categ_Lm.h: Likewise.
14810         * lib/unictype/categ_Lo.h: Likewise.
14811         * lib/unictype/categ_Lu.h: Likewise.
14812         * lib/unictype/categ_M.h: Likewise.
14813         * lib/unictype/categ_Mc.h: Likewise.
14814         * lib/unictype/categ_Mn.h: Likewise.
14815         * lib/unictype/categ_N.h: Likewise.
14816         * lib/unictype/categ_Nd.h: Likewise.
14817         * lib/unictype/categ_Nl.h: Likewise.
14818         * lib/unictype/categ_No.h: Likewise.
14819         * lib/unictype/categ_P.h: Likewise.
14820         * lib/unictype/categ_Pd.h: Likewise.
14821         * lib/unictype/categ_Po.h: Likewise.
14822         * lib/unictype/categ_S.h: Likewise.
14823         * lib/unictype/categ_Sc.h: Likewise.
14824         * lib/unictype/categ_So.h: Likewise.
14825         * lib/unictype/categ_of.h: Likewise.
14826         * lib/unictype/combining.h: Likewise.
14827         * lib/unictype/ctype_alnum.h: Likewise.
14828         * lib/unictype/ctype_alpha.h: Likewise.
14829         * lib/unictype/ctype_graph.h: Likewise.
14830         * lib/unictype/ctype_lower.h: Likewise.
14831         * lib/unictype/ctype_print.h: Likewise.
14832         * lib/unictype/ctype_punct.h: Likewise.
14833         * lib/unictype/ctype_upper.h: Likewise.
14834         * lib/unictype/decdigit.h: Likewise.
14835         * lib/unictype/digit.h: Likewise.
14836         * lib/unictype/numeric.h: Likewise.
14837         * lib/unictype/pr_alphabetic.h: Likewise.
14838         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14839         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14840         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14841         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14842         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14843         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14844         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14845         * lib/unictype/pr_combining.h: Likewise.
14846         * lib/unictype/pr_composite.h: Likewise.
14847         * lib/unictype/pr_currency_symbol.h: Likewise.
14848         * lib/unictype/pr_dash.h: Likewise.
14849         * lib/unictype/pr_decimal_digit.h: Likewise.
14850         * lib/unictype/pr_deprecated.h: Likewise.
14851         * lib/unictype/pr_diacritic.h: Likewise.
14852         * lib/unictype/pr_extender.h: Likewise.
14853         * lib/unictype/pr_grapheme_base.h: Likewise.
14854         * lib/unictype/pr_grapheme_extend.h: Likewise.
14855         * lib/unictype/pr_grapheme_link.h: Likewise.
14856         * lib/unictype/pr_id_continue.h: Likewise.
14857         * lib/unictype/pr_id_start.h: Likewise.
14858         * lib/unictype/pr_ideographic.h: Likewise.
14859         * lib/unictype/pr_ignorable_control.h: Likewise.
14860         * lib/unictype/pr_logical_order_exception.h: Likewise.
14861         * lib/unictype/pr_lowercase.h: Likewise.
14862         * lib/unictype/pr_numeric.h: Likewise.
14863         * lib/unictype/pr_other_alphabetic.h: Likewise.
14864         * lib/unictype/pr_punctuation.h: Likewise.
14865         * lib/unictype/pr_sentence_terminal.h: Likewise.
14866         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14867         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14868         * lib/unictype/pr_unified_ideograph.h: Likewise.
14869         * lib/unictype/pr_uppercase.h: Likewise.
14870         * lib/unictype/pr_xid_continue.h: Likewise.
14871         * lib/unictype/pr_xid_start.h: Likewise.
14872         * lib/unictype/pr_zero_width.h: Likewise.
14873         * lib/unictype/scripts.h: Likewise.
14874         * lib/unictype/scripts_byname.gperf: Likewise.
14875         * lib/unictype/sy_java_ident.h: Likewise.
14876         * lib/unigbrk/gbrkprop.h: Likewise.
14877         * lib/unilbrk/lbrkprop1.h: Likewise.
14878         * lib/unilbrk/lbrkprop2.h: Likewise.
14879         * lib/unilbrk/lbrktables.h: Likewise.
14880         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14881         LBP_CP. Implement rule LB30.
14882         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14883         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14884         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14885         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14886         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14887         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14888         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14889         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14890         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14891         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14892         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14893         bits instead of 16 bits in the code1 and code2 of each composition
14894         rule.
14895         (uc_composition): Update for Unicode 5.2.0.
14896         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14897         * lib/uninorm/decomposition-table2.h: Likewise.
14898         * lib/uniwbrk/wbrkprop.h: Likewise.
14899         * tests/unicase/test-cased.c: Likewise.
14900         * tests/unicase/test-ignorable.c: Likewise.
14901         * tests/unicase/test-uc_tolower.c: Likewise.
14902         * tests/unicase/test-uc_totitle.c: Likewise.
14903         * tests/unicase/test-uc_toupper.c: Likewise.
14904         * tests/unictype/test-categ_C.c: Likewise.
14905         * tests/unictype/test-categ_Cf.c: Likewise.
14906         * tests/unictype/test-categ_Cn.c: Likewise.
14907         * tests/unictype/test-categ_L.c: Likewise.
14908         * tests/unictype/test-categ_Ll.c: Likewise.
14909         * tests/unictype/test-categ_Lm.c: Likewise.
14910         * tests/unictype/test-categ_Lo.c: Likewise.
14911         * tests/unictype/test-categ_Lu.c: Likewise.
14912         * tests/unictype/test-categ_M.c: Likewise.
14913         * tests/unictype/test-categ_Mc.c: Likewise.
14914         * tests/unictype/test-categ_Mn.c: Likewise.
14915         * tests/unictype/test-categ_N.c: Likewise.
14916         * tests/unictype/test-categ_Nd.c: Likewise.
14917         * tests/unictype/test-categ_Nl.c: Likewise.
14918         * tests/unictype/test-categ_No.c: Likewise.
14919         * tests/unictype/test-categ_P.c: Likewise.
14920         * tests/unictype/test-categ_Pd.c: Likewise.
14921         * tests/unictype/test-categ_Po.c: Likewise.
14922         * tests/unictype/test-categ_S.c: Likewise.
14923         * tests/unictype/test-categ_Sc.c: Likewise.
14924         * tests/unictype/test-categ_So.c: Likewise.
14925         * tests/unictype/test-ctype_alnum.c: Likewise.
14926         * tests/unictype/test-ctype_alpha.c: Likewise.
14927         * tests/unictype/test-ctype_graph.c: Likewise.
14928         * tests/unictype/test-ctype_lower.c: Likewise.
14929         * tests/unictype/test-ctype_print.c: Likewise.
14930         * tests/unictype/test-ctype_punct.c: Likewise.
14931         * tests/unictype/test-ctype_upper.c: Likewise.
14932         * tests/unictype/test-decdigit.h: Likewise.
14933         * tests/unictype/test-digit.h: Likewise.
14934         * tests/unictype/test-numeric.h: Likewise.
14935         * tests/unictype/test-pr_alphabetic.c: Likewise.
14936         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14937         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14938         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14939         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14940         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14941         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14942         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14943         * tests/unictype/test-pr_combining.c: Likewise.
14944         * tests/unictype/test-pr_composite.c: Likewise.
14945         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14946         * tests/unictype/test-pr_dash.c: Likewise.
14947         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14948         * tests/unictype/test-pr_deprecated.c: Likewise.
14949         * tests/unictype/test-pr_diacritic.c: Likewise.
14950         * tests/unictype/test-pr_extender.c: Likewise.
14951         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14952         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14953         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14954         * tests/unictype/test-pr_id_continue.c: Likewise.
14955         * tests/unictype/test-pr_id_start.c: Likewise.
14956         * tests/unictype/test-pr_ideographic.c: Likewise.
14957         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14958         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14959         * tests/unictype/test-pr_lowercase.c: Likewise.
14960         * tests/unictype/test-pr_numeric.c: Likewise.
14961         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14962         * tests/unictype/test-pr_punctuation.c: Likewise.
14963         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14964         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14965         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14966         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14967         * tests/unictype/test-pr_uppercase.c: Likewise.
14968         * tests/unictype/test-pr_xid_continue.c: Likewise.
14969         * tests/unictype/test-pr_xid_start.c: Likewise.
14970         * tests/unictype/test-pr_zero_width.c: Likewise.
14971         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14972         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14973         changed behaviour: line breaking is now disallowed between a letter
14974         or '=' and '('.
14975         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14976         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14977         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14978         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14979         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14980         lib/uniwidth/width.c.
14981         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14982         without comments, but with the original copyright notice.
14983         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14984         changes.
14985         * lib/unictype/categ_Cc.h: Likewise.
14986         * lib/unictype/categ_Co.h: Likewise.
14987         * lib/unictype/categ_Cs.h: Likewise.
14988         * lib/unictype/categ_Lt.h: Likewise.
14989         * lib/unictype/categ_Me.h: Likewise.
14990         * lib/unictype/categ_Pc.h: Likewise.
14991         * lib/unictype/categ_Pe.h: Likewise.
14992         * lib/unictype/categ_Pf.h: Likewise.
14993         * lib/unictype/categ_Pi.h: Likewise.
14994         * lib/unictype/categ_Ps.h: Likewise.
14995         * lib/unictype/categ_Sk.h: Likewise.
14996         * lib/unictype/categ_Sm.h: Likewise.
14997         * lib/unictype/categ_Z.h: Likewise.
14998         * lib/unictype/categ_Zl.h: Likewise.
14999         * lib/unictype/categ_Zp.h: Likewise.
15000         * lib/unictype/categ_Zs.h: Likewise.
15001         * lib/unictype/ctype_blank.h: Likewise.
15002         * lib/unictype/ctype_cntrl.h: Likewise.
15003         * lib/unictype/ctype_digit.h: Likewise.
15004         * lib/unictype/ctype_space.h: Likewise.
15005         * lib/unictype/ctype_xdigit.h: Likewise.
15006         * lib/unictype/mirror.h: Likewise.
15007         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15008         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15009         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15010         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15011         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15012         * lib/unictype/pr_bidi_control.h: Likewise.
15013         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15014         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15015         * lib/unictype/pr_bidi_pdf.h: Likewise.
15016         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15017         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15018         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15019         * lib/unictype/pr_format_control.h: Likewise.
15020         * lib/unictype/pr_hex_digit.h: Likewise.
15021         * lib/unictype/pr_hyphen.h: Likewise.
15022         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15023         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15024         * lib/unictype/pr_iso_control.h: Likewise.
15025         * lib/unictype/pr_join_control.h: Likewise.
15026         * lib/unictype/pr_left_of_pair.h: Likewise.
15027         * lib/unictype/pr_line_separator.h: Likewise.
15028         * lib/unictype/pr_math.h: Likewise.
15029         * lib/unictype/pr_non_break.h: Likewise.
15030         * lib/unictype/pr_not_a_character.h: Likewise.
15031         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15032         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15033         * lib/unictype/pr_other_id_continue.h: Likewise.
15034         * lib/unictype/pr_other_id_start.h: Likewise.
15035         * lib/unictype/pr_other_lowercase.h: Likewise.
15036         * lib/unictype/pr_other_math.h: Likewise.
15037         * lib/unictype/pr_other_uppercase.h: Likewise.
15038         * lib/unictype/pr_paired_punctuation.h: Likewise.
15039         * lib/unictype/pr_paragraph_separator.h: Likewise.
15040         * lib/unictype/pr_pattern_syntax.h: Likewise.
15041         * lib/unictype/pr_pattern_white_space.h: Likewise.
15042         * lib/unictype/pr_private_use.h: Likewise.
15043         * lib/unictype/pr_quotation_mark.h: Likewise.
15044         * lib/unictype/pr_radical.h: Likewise.
15045         * lib/unictype/pr_soft_dotted.h: Likewise.
15046         * lib/unictype/pr_space.h: Likewise.
15047         * lib/unictype/pr_titlecase.h: Likewise.
15048         * lib/unictype/pr_variation_selector.h: Likewise.
15049         * lib/unictype/pr_white_space.h: Likewise.
15050         * lib/unictype/sy_c_ident.h: Likewise.
15051         * lib/unictype/sy_c_whitespace.h: Likewise.
15052         * lib/unictype/sy_java_whitespace.h: Likewise.
15053         * modules/uni*/*: Bump version number of expected libunistring version.
15054         Reported by Simon Josefsson.
15055
15056 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15057
15058         useless-if-before-free: fix typo in --help and make the internal,
15059         automatic version date update process work once again.
15060         --help output contained a NUL character instead of the
15061         backslash-zero that was intended.  Also, the "must lie within
15062         the first 8 lines" line is on line 9, and hence not getting
15063         automatically updated.
15064         * build-aux/useless-if-before-free: Fix the former by adding a
15065         backslash, and the latter by condensing the three lines of what-it-does
15066         to a single line, leaving one line of slack for the future.
15067
15068 2011-01-09  Bruno Haible  <bruno@clisp.org>
15069
15070         uniwidth/width: Fix width of U+1D173..U+1D17A.
15071         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15072         symbolic_width, output_width_property_test): New functions.
15073         (main): Invoke output_nonspacing_property, output_width_property_test.
15074         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15075         U+1D173..U+1D17A.
15076         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15077         1.
15078         * modules/uniwidth/*: Bump version number of expected libunistring
15079         version.
15080         * modules/unilbrk/*: Likewise.
15081
15082 2011-01-08  Bruno Haible  <bruno@clisp.org>
15083
15084         uninorm tests: Preserve copyright of Unicode data file.
15085         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15086         Mention modifications.
15087
15088 2011-01-08  Bruno Haible  <bruno@clisp.org>
15089
15090         gen-uni-tables: Prepare for Unicode 5.2.0.
15091         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15092         (debug_output_lbp, output_lbp): Update.
15093
15094 2011-01-08  Bruno Haible  <bruno@clisp.org>
15095
15096         unilbrk: Clarify gen-uni-tables.c code.
15097         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15098         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15099         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15100
15101 2011-01-07  Bruno Haible  <bruno@clisp.org>
15102
15103         strtod: Restore errno when successfully parsing Infinity or NaN.
15104         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15105         restore the original errno.
15106
15107 2011-01-07  Bruno Haible  <bruno@clisp.org>
15108
15109         remove test: Avoid failure on HP-UX 11.
15110         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15111
15112 2011-01-07  Bruno Haible  <bruno@clisp.org>
15113
15114         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15115         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15116         error code.
15117
15118 2011-01-07  Pádraig Brady <P@draigBrady.com>
15119
15120         ignore-value: fixup comments, and add Eric Blake
15121         as an author since he rewrote the macros.
15122         * lib/ignore-value.h (ignore_value):  State that
15123         we now support aggregates.  Also specify exactly
15124         when the GCC warn_unused_result feature was added.
15125
15126 2011-01-06  Eric Blake  <eblake@redhat.com>
15127
15128         ignore-value: support aggregate types
15129         * lib/ignore-value.h (ignore_value): Provide separate gcc
15130         definition.
15131         * modules/ignore-value-tests: New test module.
15132         * tests/test-ignore-value.c: New test.
15133
15134         maint.mk: improve sc_prohibit_strcmp regex
15135         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15136         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15137         definition of STRNEQ.
15138
15139         signal: work around Haiku issue with SIGBUS
15140         * lib/siglist.h: Add comment.
15141         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15142         strsignal's favoring of SIGSEGV.
15143         * tests/test-signal.c (main): Avoid test failure.
15144         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15145         Reported by Scott McCreary.
15146
15147         maint.mk: add pre-release check to ensure submodule commits are public
15148         * top/maint.mk (public-submodule-commit): New rule.
15149         (submodule-checks): New variable.
15150         (alpha beta stable): Depend on the variable.
15151
15152 2011-01-05  Pádraig Brady <P@draigBrady.com>
15153         and Jim Meyering  <meyering@redhat.com>
15154
15155         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15156         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15157         (ATTRIBUTE_DEPRECATED): Define.
15158         (_ignore_case): New function.
15159         (ignore_value): New macro, to replace the old function.
15160         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15161         * modules/ignore-value (Depends-on): Add stdint.
15162
15163 2011-01-04  Eric Blake  <eblake@redhat.com>
15164
15165         doc: regenerate INSTALL
15166         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15167         @firstparagraphindent support, now that autoconf dropped it.
15168         (INSTALL_PRELUDE): Reinstate old macro.
15169         * doc/install.texi: Resync from autoconf.
15170         * doc/INSTALL: Reflect recent autoconf update.
15171         * doc/INSTALL.ISO: Likewise.
15172         * doc/INSTALL.UTF-8: Likewise.
15173         Reported by Karl Berry.
15174
15175 2011-01-04  Bruce Korb  <address@hidden>
15176
15177         git-version-gen: avoid a sub-shell
15178         * build-aux/git-version-gen: Redirect stderr in `...` via
15179         "exec 2>...", rather than via an added sub-shell.
15180
15181 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15182
15183         git-version-gen: use (...) rather than sh -c '...'
15184         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15185         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15186
15187 2011-01-03  Jim Meyering  <meyering@redhat.com>
15188
15189         git-version-gen: convert leading TABs to spaces
15190         * build-aux/git-version-gen: Expand leading TABs.
15191
15192         git-version-gen: handle failed "git rev-list"
15193         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15194         from git and proceeding as if it had succeeded but printed no SHA1
15195         checksums, suppress the diagnostic and handle the failure.
15196         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15197
15198         git-version-gen: include command name in one more diagnostic
15199         * build-aux/git-version-gen: When the required .tarball-version file
15200         was missing or unreadable, you might see the diagnostic from "cat",
15201         but no trace of the name of the invoking script.  Now, you still see
15202         the diagnostic from cat, but also get one from "git-version-gen: ".
15203         Inspired by a patch from Bruce Korb.
15204
15205         update-copyright: adjust test to match changed code
15206         * tests/test-update-copyright.sh: Change test's expected output
15207         to match new actual output.
15208
15209 2011-01-02  Bruno Haible  <bruno@clisp.org>
15210
15211         getlogin_r: Avoid test failure on HP-UX 11.
15212         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15213         ERANGE when the second argument is zero.
15214         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15215         portability problem.
15216
15217 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15218
15219         * build-aux/update-copyright: doc Simon's changes
15220
15221 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15222
15223         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15224         environment variable.
15225
15226 2011-01-02  Bruno Haible  <bruno@clisp.org>
15227
15228         unigbrk: Avoid gcc warnings.
15229         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15230         unused variable.
15231         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15232         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15233         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15234         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15235         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15236         Change type of first argument to 'const char *'.
15237         (main): Remove unused variable.
15238         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15239         type of first argument to 'const char *'.
15240         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15241         Likewise.
15242         (main): Change type of variable 's'.
15243         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15244         to 'int'.
15245
15246 2011-01-02  Bruno Haible  <bruno@clisp.org>
15247
15248         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15249         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15250         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15251         bug.
15252         * lib/pwrite.c: Undo 2010-12-31 patch.
15253         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15254
15255 2011-01-02  Bruno Haible  <bruno@clisp.org>
15256
15257         pread: Fix test whether it works.
15258         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15259
15260 2011-01-02  Bruno Haible  <bruno@clisp.org>
15261
15262         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15263         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15264         ends in "6". Don't require a specific month name. Try also the locale
15265         names found on HP-UX 11 and Solaris 7.
15266
15267 2011-01-02  Bruno Haible  <bruno@clisp.org>
15268
15269         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15270         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15271         C linkage.
15272         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15273
15274 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15275
15276         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15277         for consistency, since the "cluster" term is not used elsewhere.
15278         * lib/unigbrk.in.h: Update name.
15279         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15280         * lib/unigbrk/u16-grapheme-next.c: Update name.
15281         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15282         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15283         * lib/unigbrk/u32-grapheme-next.c: Update name.
15284         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15285         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15286         * lib/unigbrk/u8-grapheme-next.c: Update name.
15287         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15288         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15289         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15290         Suggested by Bruno Haible.
15291
15292 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15293
15294         Remove module 'u8-grapheme-len' as too redundant with
15295         'u8-grapheme-next'.
15296         * modules/unigbrk/u8-grapheme-len: Delete file.
15297         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15298         * lib/unigbrk.in.h: Remove prototype for deleted function.
15299         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15300         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15301
15302         Remove module 'u16-grapheme-len' as too redundant with
15303         'u16-grapheme-next'.
15304         * modules/unigbrk/u16-grapheme-len: Delete file.
15305         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15306         * lib/unigbrk.in.h: Remove prototype for deleted function.
15307         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15308         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15309
15310         Remove module 'u32-grapheme-len' as too redundant with
15311         'u32-grapheme-next'.
15312         * modules/unigbrk/u32-grapheme-len: Delete file.
15313         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15314         * lib/unigbrk.in.h: Remove prototype for deleted function.
15315         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15316         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15317
15318         Suggested by Bruno Haible.
15319
15320 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15321
15322         * unigbrk.in.h: Fix typo: "ben" => "been".
15323         Reported by Bruno Haible.
15324
15325 2011-01-01  Jim Meyering  <meyering@redhat.com>
15326
15327         maint: update almost all copyright ranges to include 2011
15328         Run the new "make update-copyright" rule.
15329
15330 2011-01-01  Jim Meyering  <meyering@redhat.com>
15331
15332         maint: update-copyright: exempt doc/INSTALL*
15333         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15334         since they are generated.  Suggested by Bruno Haible.
15335
15336 2011-01-01  Jim Meyering  <meyering@redhat.com>
15337
15338         maint: refine the update-copyright rule
15339         * Makefile (update-copyright): Also exclude any file that includes
15340         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15341         code that merely generates the comment.
15342
15343 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15344
15345         New module 'u8-grapheme-len'.
15346         * modules/unigbrk/u8-grapheme-len: New file.
15347         * modules/unigbrk/u8-grapheme-len-tests: New file.
15348         * lib/unigbrk.in.h: Add prototype for new function.
15349         * lib/unigbrk/u8-grapheme-len.c: New file.
15350         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15351
15352         New module 'u16-grapheme-len'.
15353         * modules/unigbrk/u16-grapheme-len: New file.
15354         * modules/unigbrk/u16-grapheme-len-tests: New file.
15355         * lib/unigbrk.in.h: Add prototype for new function.
15356         * lib/unigbrk/u16-grapheme-len.c: New file.
15357         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15358
15359         New module 'u32-grapheme-len'.
15360         * modules/unigbrk/u32-grapheme-len: New file.
15361         * modules/unigbrk/u32-grapheme-len-tests: New file.
15362         * lib/unigbrk.in.h: Add prototype for new function.
15363         * lib/unigbrk/u32-grapheme-len.c: New file.
15364         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15365
15366         New module 'u8-grapheme-next'.
15367         * modules/unigbrk/u8-grapheme-next: New file.
15368         * modules/unigbrk/u8-grapheme-next-tests: New file.
15369         * lib/unigbrk.in.h: Add prototype for new function.
15370         * lib/unigbrk/u8-grapheme-next.c: New file.
15371         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15372
15373         New module 'u16-grapheme-next'.
15374         * modules/unigbrk/u16-grapheme-next: New file.
15375         * modules/unigbrk/u16-grapheme-next-tests: New file.
15376         * lib/unigbrk.in.h: Add prototype for new function.
15377         * lib/unigbrk/u16-grapheme-next.c: New file.
15378         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15379
15380         New module 'u32-grapheme-next'.
15381         * modules/unigbrk/u32-grapheme-next: New file.
15382         * modules/unigbrk/u32-grapheme-next-tests: New file.
15383         * lib/unigbrk.in.h: Add prototype for new function.
15384         * lib/unigbrk/u32-grapheme-next.c: New file.
15385         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15386
15387         New module 'u8-grapheme-prev'.
15388         * modules/unigbrk/u8-grapheme-prev: New file.
15389         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15390         * lib/unigbrk.in.h: Add prototype for new function.
15391         * lib/unigbrk/u8-grapheme-prev.c: New file.
15392         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15393
15394         New module 'u16-grapheme-prev'.
15395         * modules/unigbrk/u16-grapheme-prev: New file.
15396         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15397         * lib/unigbrk.in.h: Add prototype for new function.
15398         * lib/unigbrk/u16-grapheme-prev.c: New file.
15399         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15400
15401         New module 'u32-grapheme-prev'.
15402         * modules/unigbrk/u32-grapheme-prev: New file.
15403         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15404         * lib/unigbrk.in.h: Add prototype for new function.
15405         * lib/unigbrk/u32-grapheme-prev.c: New file.
15406         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15407
15408         New module 'u8-grapheme-breaks'.
15409         * modules/unigbrk/u8-grapheme-breaks: New file.
15410         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15411         * lib/unigbrk.in.h: Add prototype for new function.
15412         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15413         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15414
15415         New module 'u16-grapheme-breaks'.
15416         * modules/unigbrk/u16-grapheme-breaks: New file.
15417         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15418         * lib/unigbrk.in.h: Add prototype for new function.
15419         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15420         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15421
15422         New module 'u32-grapheme-breaks'.
15423         * modules/unigbrk/u32-grapheme-breaks: New file.
15424         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15425         * lib/unigbrk.in.h: Add prototype for new function.
15426         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15427         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15428
15429         New module 'ulc-grapheme-breaks'.
15430         * modules/unigbrk/ulc-grapheme-breaks: New file.
15431         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15432         * m4/locale-ar.m4: New file.
15433         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15434         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15435         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15436
15437 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15438
15439         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15440         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15441         modified how this file was generated before I initially submitted
15442         the module, but failed to regenerate it.  This meant that several
15443         of the level2 entries were wrong.
15444         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15445         Remove the division-by-2 that is folded into the table now that
15446         gbrkprop.h has been regenerated properly.  Now -1 entries are
15447         handled correctly.
15448
15449         New module 'unigbrk/uc-gbrk-prop-tests'.
15450         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15451         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15452         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15453         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15454
15455 2011-01-01  Bruno Haible  <bruno@clisp.org>
15456
15457         Avoid use of hexadecimal escapes.
15458         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15459         instead of hexadecimal escapes.
15460
15461 2011-01-01  Jim Meyering  <meyering@redhat.com>
15462
15463         maint: new rule to update copyright year ranges
15464         * Makefile (update-copyright): New rule.
15465
15466         maint: indent with TABs in Makefile
15467         * Makefile: Expand leading sequences of spaces to TABs
15468
15469         version-etc: update the copyright year it reports
15470         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15471
15472 2010-12-31  Bruno Haible  <bruno@clisp.org>
15473
15474         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15475         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15476         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15477         zero.
15478
15479 2010-12-31  Bruno Haible  <bruno@clisp.org>
15480
15481         pwrite: Work around HP-UX 11.11 bug.
15482         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15483         works and set REPLACE_PWRITE if not.
15484         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15485         function.
15486         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15487
15488 2010-12-31  Bruno Haible  <bruno@clisp.org>
15489
15490         pread: Work around HP-UX 11 bugs.
15491         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15492         and set REPLACE_PREAD if not.
15493         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15494
15495 2010-12-31  Eric Blake  <eblake@redhat.com>
15496
15497         nl_langinfo: fix YESEXPR on Irix 6.5
15498         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15499         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15500         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15501         it.
15502
15503 2010-12-31  Bruno Haible  <bruno@clisp.org>
15504
15505         iconv: Document HP-UX 11 bug.
15506         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15507
15508 2010-12-31  Bruno Haible  <bruno@clisp.org>
15509
15510         ldexpl: Fix link error on HP-UX 11.
15511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15512         LDEXPL_LIBM, using $ISNANL_LIBM.
15513
15514 2010-12-31  Eric Blake  <eblake@redhat.com>
15515
15516         ftello: avoid compilation failure with SunStudio c89
15517         * lib/ftello.c (ftello): Use lseek, not llseek.
15518
15519         tests: avoid failing coreutils tests on cygwin
15520         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15521         (create_exe_shims_): Return 0 when skipping.
15522
15523 2010-12-31  Bruno Haible  <bruno@clisp.org>
15524
15525         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15526         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15527
15528 2010-12-31  Bruno Haible  <bruno@clisp.org>
15529
15530         waitpid: Fix link error in C++ mode.
15531         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15532
15533 2010-12-31  Bruno Haible  <bruno@clisp.org>
15534
15535         isnan: Use GCC built-ins when possible.
15536         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15537         __builtin_isnan.
15538         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15539         (isnan): Define using GCC built-ins for GCC >= 4.0.
15540
15541 2010-12-31  Bruno Haible  <bruno@clisp.org>
15542
15543         isnand: Fix mistake.
15544         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15545         __builtin_isnand.
15546
15547 2010-12-31  Bruno Haible  <bruno@clisp.org>
15548
15549         open: Avoid C++ error on HP-UX 11.
15550         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15551
15552 2010-12-31  Bruno Haible  <bruno@clisp.org>
15553
15554         time_r: Add missing declarations on HP-UX 11.
15555         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15556         instead of HAVE_LOCALTIME_R.
15557         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15558         HAVE_LOCALTIME_R always.
15559         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15560         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15561         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15562         HAVE_LOCALTIME_R.
15563         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15564         * doc/posix-functions/localtime_r.texi: Likewise.
15565
15566 2010-12-29  Eric Blake  <eblake@redhat.com>
15567
15568         mountlist: tweak previous commit
15569         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15570         Reported by Paul Eggert.
15571
15572         mountlist: fix local drive detection on cygwin
15573         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15574         that works for cygwin.
15575
15576 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15577
15578         ftoastr, snprintf: ftoastr + snprintf module
15579         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15580         since the snprintf module now should be good enough here.
15581         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15582         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15583         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15584         GNULIB_SNPRINTF only for the test directory, and the latter
15585         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15586         seems to suffice by itself.
15587
15588 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15589
15590         alloca: one step towards thread-safety
15591         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15592         need for a static variable.  All callers changed.  This does not
15593         make the alloca replacement thread-safe, but it's one step.
15594
15595         tests: minor indenting change
15596         * tests/init.sh: Sync from coreutils housekeeping patch
15597         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15598         to keep lines within 80 columns.
15599
15600 2010-12-28  Jim Meyering  <meyering@redhat.com>
15601
15602         regex: don't infloop on persistent failing calloc
15603         * lib/regexec.c (build_trtable): Return failure indication upon
15604         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15605         In glibc, this was fixed for version 2.13:
15606         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15607
15608 2010-12-28  Bruno Haible  <bruno@clisp.org>
15609             Paul Eggert <eggert@cs.ucla.edu>
15610
15611         linkat: Make implementation robust against system behaviour variations.
15612         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15613         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15614         way, and to -2 if it needs a generic runtime test.
15615         * lib/linkat.c (solaris_optimized_link_immediate,
15616         solaris_optimized_link_follow): New functions.
15617         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15618         (check_same_link): Use it.
15619
15620 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15621
15622         New module 'unigbrk/base'.
15623         * modules/unigbrk/base: New file.
15624         * lib/unigbrk.in.h: New file.
15625
15626         New module 'unigbrk/uc-gbrk-prop'.
15627         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15628         * modules/unigbrk/uc-gbrk-prop: New file.
15629         * lib/unigbrk/gbrkprop.h: New file.
15630         * lib/unigbrk/uc-gbrk-prop.c: New file.
15631
15632         New module 'unigbrk/uc-is-grapheme-break'.
15633         * modules/unigbrk/uc-is-grapheme-break: New file.
15634         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15635         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15636         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15637         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15638         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15639
15640         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15641
15642 2010-12-27  Bruno Haible  <bruno@clisp.org>
15643
15644         linkat test: Avoid failure on Solaris 11 2010-11.
15645         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15646
15647 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15648
15649         utimens: work around glibc rounding bug on more platforms
15650         * lib/utimens.c (fdutimens): Work around rounding bug even if
15651         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15652         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15653
15654 2010-12-27  Bruno Haible  <bruno@clisp.org>
15655
15656         select tests: Improve comments.
15657         * tests/test-select.c (do_select): Add comments.
15658
15659 2010-12-27  Bruno Haible  <bruno@clisp.org>
15660
15661         select tests: Safer way of handling timeout.
15662         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15663         at every invocation.
15664
15665 2010-12-27  Bruno Haible  <bruno@clisp.org>
15666
15667         select tests: Use 'bool' where appropriate.
15668         * tests/test-select.c (connect_to_socket): Change argument type to
15669         'bool'.
15670
15671 2010-12-27  Bruno Haible  <bruno@clisp.org>
15672
15673         select tests: Use existing modules.
15674         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15675         (configure.ac): Don't test for unistd.h.
15676         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15677         declared in <unistd.h>.
15678
15679 2010-12-27  Bruno Haible  <bruno@clisp.org>
15680
15681         mbrtowc: Work around a Solaris 7 bug.
15682         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15683         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15684         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15685         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15686         MBRTOWC_NULL_ARG1_BUG.
15687         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15688         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15689         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15690         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15691
15692 2010-12-27  Jim Meyering  <meyering@redhat.com>
15693
15694         read-file.c: tweak syntax
15695         * lib/read-file.c (fread_file): Remove space after "*" in function
15696         definitions.
15697
15698 2010-12-27  Bruno Haible  <bruno@clisp.org>
15699
15700         times test: Avoid gcc warnings on OSF/1.
15701         * tests/test-times.c (main): Cast printf arguments from clock_t to
15702         'long int'.
15703
15704 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15705
15706         utimens: work around glibc rounding bug on older Linux kernels
15707         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15708         on Linux with a glibc whose utimes might not work, then work
15709         around a longstanding glibc bug involving rounding rather than
15710         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15711         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15712
15713 2010-12-26  Bruno Haible  <bruno@clisp.org>
15714
15715         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15716         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15717         _GL_CXXALIAS_SYS.
15718         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15719
15720 2010-12-26  Bruno Haible  <bruno@clisp.org>
15721
15722         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15723         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15724         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15725         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15726         looking for the declaration.
15727         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15728         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15729         problem.
15730         * doc/posix-functions/inet_pton.texi: Likewise.
15731
15732 2010-12-26  Bruno Haible  <bruno@clisp.org>
15733
15734         arpa_inet: Use the common idioms with C++ support.
15735         * lib/arpa_inet.in.h: Include c++defs.h.
15736         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15737         support.
15738         * modules/arpa_inet (Depends-on): Add c++defs.
15739         (Makefile.am): Substitute the contents of c++defs.h.
15740         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15741         * modules/arpa_inet-c++-tests: New file.
15742         * tests/test-arpa_inet-c++.cc: New file.
15743
15744 2010-12-25  Bruno Haible  <bruno@clisp.org>
15745
15746         Fix more C++ link errors on Solaris 8.
15747         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15748         $(LIB_EACCESS).
15749         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15750         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15751         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15752         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15753         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15754
15755 2010-12-25  Bruno Haible  <bruno@clisp.org>
15756
15757         printf-posix: Fix link error when a non-GCC compiler is used.
15758         * lib/stdio.in.h (printf): When not using GCC, override printf
15759         correctly.
15760         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15761
15762 2010-12-25  Bruno Haible  <bruno@clisp.org>
15763
15764         strerror_r-posix: Update doc.
15765         * doc/posix-functions/strerror_r.texi: Update doc about the return
15766         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15767
15768 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15769
15770         utimens: simplify the logic of the previous change
15771         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15772         This should not affect whether the test succeeds or fails.
15773
15774         utimens: configure better on hosts with NFS clock skew
15775         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15776         uses the clock of the local host.  It might use the clock of the
15777         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15778         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15779
15780 2010-12-25  Bruno Haible  <bruno@clisp.org>
15781
15782         ptsname test: Avoid failure on Solaris.
15783         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15784         open a pseudo-terminal; don't use BSD-style ptys.
15785         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15786
15787 2010-12-25  Bruno Haible  <bruno@clisp.org>
15788
15789         ptsname: Avoid ERANGE failure on some systems.
15790         * lib/ptsname.c (buffer): Increase size.
15791
15792 2010-12-25  Bruno Haible  <bruno@clisp.org>
15793
15794         rename, renameat: Avoid test failures at NFS mounted locations.
15795         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15796         so that subsequent mkdir calls succeed.
15797
15798 2010-12-25  Bruno Haible  <bruno@clisp.org>
15799
15800         iswblank: Fix C++ link error on Solaris 8.
15801         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15802         _GL_FUNCDECL_SYS.
15803
15804 2010-12-25  Bruno Haible  <bruno@clisp.org>
15805
15806         unistd: Fix C++ link error on Solaris 8.
15807         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15808
15809 2010-12-25  Bruno Haible  <bruno@clisp.org>
15810
15811         readlink doc: Mention an old glibc bug.
15812         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15813
15814 2010-12-25  Bruno Haible  <bruno@clisp.org>
15815
15816         fcntl-h: Fix for use of C++ on glibc systems.
15817         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15818         also on glibc systems in C++ mode.
15819         Reported by Gary V. Vaughan <gary@gnu.org>.
15820
15821 2010-12-25  Bruno Haible  <bruno@clisp.org>
15822
15823         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15824         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15825
15826 2010-12-25  Bruno Haible  <bruno@clisp.org>
15827
15828         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15829         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15830         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15831         test whether truncl works according to ISO C 99 with IEC 60559.
15832         * m4/truncl-ieee.m4: New file.
15833         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15834         m4/signbit.m4.
15835         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15836
15837 2010-12-25  Bruno Haible  <bruno@clisp.org>
15838
15839         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15840         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15841         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15842         test whether ceill works according to ISO C 99 with IEC 60559.
15843         * m4/ceill-ieee.m4: New file.
15844         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15845         m4/signbit.m4.
15846         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15847
15848 2010-12-25  Bruno Haible  <bruno@clisp.org>
15849
15850         Ensure all prerequisites of <wchar.h> are included.
15851         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15852         before <wchar.h>.
15853         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15854         gl_MBRLEN_NUL_RETVAL): Likewise.
15855         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15856         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15857         AC_FUNC_MBRTOWC): Likewise.
15858         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15859         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15860         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15861         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15862         Likewise.
15863         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15864         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15865         (gl_WCHAR_H): Improve comments.
15866         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15867
15868 2010-12-25  Bruno Haible  <bruno@clisp.org>
15869
15870         strtok_r: Fix C syntax error in autoconf macro.
15871         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15872         characters in test program.
15873
15874 2010-12-24  Bruno Haible  <bruno@clisp.org>
15875
15876         ceil, trunc, round: Fix gcc warnings.
15877         * lib/ceil.c (MIN): Undefine before redefining.
15878         * lib/trunc.c (MIN): Likewise.
15879         * lib/round.c (MIN): Likewise.
15880         Include <math.h> first.
15881
15882 2010-12-24  Bruno Haible  <bruno@clisp.org>
15883
15884         select tests: Avoid failures on OSF/1 5.1.
15885         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15886         failure of closing the last socket; it may fail with ECONNRESET.
15887
15888 2010-12-24  Eric Blake  <eblake@redhat.com>
15889
15890         stdint: avoid HP-UX 10.20 preprocessor bug
15891         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15892         than #if.
15893         * tests/test-floor2.c (main): Likewise.
15894         Reported by Peter O'Gorman.
15895
15896         pipe: make obsoletion transition easier
15897         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15898         * modules/pipe (Files): Include revived file.
15899         (Include): Drop reference, to mirror getdate's behavior.
15900
15901 2010-12-24  Bruno Haible  <bruno@clisp.org>
15902
15903         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15904         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15905         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15906         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15907
15908 2010-12-24  Bruno Haible  <bruno@clisp.org>
15909
15910         gethostname: Ensure declaration on NonStop Kernel.
15911         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15913
15914 2010-12-24  Bruno Haible  <bruno@clisp.org>
15915
15916         sys_select: Ensure all necessary types on NonStop Kernel.
15917         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15918         include <sys/time.h>.
15919         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15920         NonStop Kernel.
15921         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15922
15923 2010-12-24  Bruno Haible  <bruno@clisp.org>
15924
15925         sys_select: Remove unneeded include.
15926         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15927         have <sys/select.h>.
15928
15929 2010-12-24  Bruno Haible  <bruno@clisp.org>
15930
15931         gethostname: Provide a fallback for HOST_NAME_MAX.
15932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15933         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15934         instead.
15935         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15936
15937 2010-12-24  Bruno Haible  <bruno@clisp.org>
15938
15939         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15940         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15941         (SA_RESTART): Likewise.
15942         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15943
15944 2010-12-24  Bruno Haible  <bruno@clisp.org>
15945
15946         signal: Define NSIG.
15947         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15948         * tests/test-signal.c (nsig): New variable.
15949         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15950
15951 2010-12-24  Bruno Haible  <bruno@clisp.org>
15952
15953         rename, renameat: Avoid test failures on OSF/1 5.1.
15954         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15955         alternative error codes.
15956         * tests/test-renameat.c (main): Likewise.
15957
15958 2010-12-24  Bruno Haible  <bruno@clisp.org>
15959
15960         *printf: Detect large precisions bug on Solaris 10/SPARC.
15961         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15962         by Paul Eggert.
15963         * tests/test-snprintf-posix.h (test_function): Add this test code here
15964         too.
15965         * tests/test-sprintf-posix.h (test_function): Likewise.
15966         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15967         * tests/test-vasprintf-posix.c (test_function): Likewise.
15968         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15969         around by gnulib.
15970         * doc/posix-functions/printf.texi: Likewise.
15971         * doc/posix-functions/snprintf.texi: Likewise.
15972         * doc/posix-functions/sprintf.texi: Likewise.
15973         * doc/posix-functions/vfprintf.texi: Likewise.
15974         * doc/posix-functions/vprintf.texi: Likewise.
15975         * doc/posix-functions/vsnprintf.texi: Likewise.
15976         * doc/posix-functions/vsprintf.texi: Likewise.
15977         * doc/posix-functions/dprintf.texi: Undo last commit.
15978         * doc/posix-functions/vdprintf.texi: Likewise.
15979
15980 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15981
15982         tests: port test-fdutimensat.c to Solaris 8
15983         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15984         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15985         On Solaris 8, it fails with errno == ENOSYS, because there is no
15986         futimens (so it can't use the fd), and there is no lutimens (so it
15987         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15988
15989         vsnprintf: make more consistent with snprintf; doc fixes
15990
15991         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15992         the byte count return problem was promoted from the snprintf-posix
15993         to the snprintf module.
15994         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15995         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15996         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15997         * tests/test-snprintf.c (main): Check the byte count returned.
15998         * tests/test-vsnprintf.c (main): Likewise.
15999
16000 2010-12-23  Eric Blake  <eblake@redhat.com>
16001
16002         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16003         * modules/sigpipe (License): Relax license.
16004
16005 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16006
16007         doc: document Solaris printf bug with large float precisions
16008         * doc/posix-functions/dprintf.texi (dprintf):
16009         * doc/posix-functions/fprintf.texi (fprintf):
16010         * doc/posix-functions/printf.texi (printf):
16011         * doc/posix-functions/snprintf.texi (snprintf):
16012         * doc/posix-functions/sprintf.texi (sprintf):
16013         * doc/posix-functions/vdprintf.texi (vdprintf):
16014         * doc/posix-functions/vfprintf.texi (vfprintf):
16015         * doc/posix-functions/vprintf.texi (vprintf):
16016         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16017         * doc/posix-functions/vsprintf.texi (vsprintf):
16018         Mention that these functions mishandle large floating point
16019         precisions on Solaris 10.  The same bug is also present in Solaris
16020         8, and I assume earlier.  This causes "cd gnulib-tests; make
16021         check" to fail on Solaris 8 (and I assume, later) when building
16022         the latest coreutils, in test-vasprintf-posix's call to
16023         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16024         the wide flavors (e.g., wprintf) so this patch just updates the
16025         documentation for the narrow ones.
16026
16027         test-posixtm.c: add two tests
16028         * tests/test-posixtm.c: Add two tests, to highlight the
16029         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16030         around this bug; this is merely to document it.
16031
16032 2010-12-22  Bruno Haible  <bruno@clisp.org>
16033
16034         getlogin_r: Work around portability problem on OSF/1.
16035         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16036         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16037         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16038         test for a truncated result.
16039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16040         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16041         * modules/getlogin_r (Depends-on): Add memchr.
16042         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16043
16044 2010-12-22  Bruno Haible  <bruno@clisp.org>
16045
16046         ptsname: Avoid test failure on OSF/1 5.1.
16047         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16048         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16049         (same_slave): New function.
16050         (main): Use it to compare ptsname's result with the expected file name.
16051
16052 2010-12-22  Bruno Haible  <bruno@clisp.org>
16053
16054         Port extended stdio modules to HP NonStop Kernel.
16055         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16056         macros.
16057         * lib/fbufmode.c: Update comments.
16058         * lib/fflush.c: Likewise.
16059         * lib/fpurge.c: Likewise.
16060         * lib/freadable.c: Likewise.
16061         * lib/freadahead.c: Likewise.
16062         * lib/freading.c: Likewise.
16063         * lib/freadptr.c: Likewise.
16064         * lib/freadseek.c: Likewise.
16065         * lib/fseeko.c: Likewise.
16066         * lib/fseterr.c: Likewise.
16067         * lib/fwritable.c: Likewise.
16068         * lib/fwriting.c: Likewise.
16069         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16070
16071 2010-12-22  Bruno Haible  <bruno@clisp.org>
16072
16073         ttyname_r: Work around bug on OSF/1 5.1.
16074         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16075         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16076         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16077         present.
16078         * lib/ttyname_r.c (ttyname_r): Update comments.
16079
16080 2010-12-22  Bruno Haible  <bruno@clisp.org>
16081
16082         round: Implement result sign according to IEEE 754.
16083         * lib/round.c (MIN, MINUS_ZERO): New macros.
16084         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16085         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16086         * tests/test-round-ieee.c (main): Likewise.
16087         * tests/test-roundl-ieee.c (main): Likewise.
16088
16089         trunc: Implement result sign according to IEEE 754.
16090         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16091         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16092         * tests/test-trunc2.c: Include minus-zero.h.
16093         (MINUS_ZERO): New macro.
16094         (trunc_reference): Keep in sync with lib/trunc.c.
16095         * tests/test-truncf2.c: Include minus-zero.h.
16096         (MINUS_ZERO): New macro.
16097         (truncf_reference): Keep in sync with lib/trunc.c.
16098         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16099         * tests/test-trunc-ieee.c (main): Likewise.
16100         * tests/test-truncl-ieee.c (main): Likewise.
16101
16102         ceil: Implement result sign according to IEEE 754.
16103         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16104         (FUNC): Return -0.0 for -1 < x < 0.
16105         * tests/test-ceil2.c: Include minus-zero.h.
16106         (MINUS_ZERO): New macro.
16107         (ceil_reference): Keep in sync with lib/ceil.c.
16108         * tests/test-ceilf2.c: Include minus-zero.h.
16109         (MINUS_ZERO): New macro.
16110         (ceilf_reference): Keep in sync with lib/ceil.c.
16111         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16112         * tests/test-ceil-ieee.c (main): Likewise.
16113         * tests/test-ceill-ieee.c (main): Likewise.
16114
16115         floor: Implement result sign according to IEEE 754.
16116         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16117         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16118         * tests/test-floorf2.c (floorf_reference): Likewise.
16119         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16120         * tests/test-floor-ieee.c (main): Likewise.
16121         * tests/test-floorl-ieee.c (main): Likewise.
16122
16123 2010-12-22  Bruno Haible  <bruno@clisp.org>
16124
16125         getaddrinfo: Update doc.
16126         * doc/posix-functions/gai_strerror.texi: Return type is also different
16127         on AIX and HP-UX.
16128
16129 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16130
16131         getaddrinfo, inet_ntop: Update doc for Solaris.
16132         * doc/posix-functions/gai_strerror.texi: Return type is also an
16133         issue on Solaris 9 and earlier.
16134         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16135         on Solaris 10 and earlier.
16136
16137 2010-12-21  Bruno Haible  <bruno@clisp.org>
16138
16139         New module 'roundl-ieee'.
16140         * modules/roundl-ieee: New file.
16141         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16142         test whether roundl works according to ISO C 99 with IEC 60559.
16143         * m4/roundl-ieee.m4: New file.
16144         * modules/roundl-ieee-tests: New file.
16145         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16146         * tests/test-roundl.c (main): Remove signbit tests.
16147         * modules/roundl-tests (Depends-on): Remove signbit.
16148         * doc/posix-functions/roundl.texi: Mention the new module.
16149
16150 2010-12-21  Bruno Haible  <bruno@clisp.org>
16151
16152         New module 'truncl-ieee'.
16153         * modules/truncl-ieee: New file.
16154         * modules/truncl-ieee-tests: New file.
16155         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16156         * tests/test-truncl.c (main): Remove signbit tests.
16157         * modules/truncl-tests (Depends-on): Remove signbit.
16158         * doc/posix-functions/truncl.texi: Mention the new module.
16159
16160 2010-12-21  Bruno Haible  <bruno@clisp.org>
16161
16162         New module 'ceill-ieee'.
16163         * modules/ceill-ieee: New file.
16164         * modules/ceill-ieee-tests: New file.
16165         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16166         * tests/test-ceill.c (main): Remove signbit tests.
16167         * modules/ceill-tests (Depends-on): Remove signbit.
16168         * doc/posix-functions/ceill.texi: Mention the new module.
16169
16170 2010-12-21  Bruno Haible  <bruno@clisp.org>
16171
16172         New module 'floorl-ieee'.
16173         * modules/floorl-ieee: New file.
16174         * modules/floorl-ieee-tests: New file.
16175         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16176         * tests/test-floorl.c (main): Remove signbit tests.
16177         * modules/floorl-tests (Depends-on): Remove signbit.
16178         * doc/posix-functions/floorl.texi: Mention the new module.
16179
16180 2010-12-21  Bruno Haible  <bruno@clisp.org>
16181
16182         New module 'round-ieee'.
16183         * modules/round-ieee: New file.
16184         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16185         whether round works according to ISO C 99 with IEC 60559.
16186         * m4/round-ieee.m4: New file.
16187         * modules/round-ieee-tests: New file.
16188         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16189         * tests/test-round1.c (main): Remove signbit tests.
16190         * modules/round-tests (Depends-on): Remove 'signbit'.
16191         * doc/posix-functions/round.texi: Mention the new module.
16192
16193 2010-12-21  Bruno Haible  <bruno@clisp.org>
16194
16195         New module 'trunc-ieee'.
16196         * modules/trunc-ieee: New file.
16197         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16198         whether trunc works according to ISO C 99 with IEC 60559.
16199         * m4/trunc-ieee.m4: New file.
16200         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16202         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16203         * modules/trunc-ieee-tests: New file.
16204         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16205         * tests/test-trunc1.c (main): Remove signbit tests.
16206         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16207         * doc/posix-functions/trunc.texi: Mention the new module.
16208
16209 2010-12-21  Bruno Haible  <bruno@clisp.org>
16210
16211         New module 'ceil-ieee'.
16212         * modules/ceil-ieee: New file.
16213         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16214         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16215         ISO C 99 with IEC 60559.
16216         * m4/ceil-ieee.m4: New file.
16217         * modules/ceil (Files): Add lib/ceil.c.
16218         (Depends-on): Add 'float'.
16219         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16220         * lib/math.in.h (ceil): New declaration.
16221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16222         REPLACE_CEIL.
16223         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16224         * modules/ceil-ieee-tests: New file.
16225         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16226         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16227         * doc/posix-functions/ceil.texi: Mention the new module.
16228
16229 2010-12-21  Bruno Haible  <bruno@clisp.org>
16230
16231         New module 'floor-ieee'.
16232         * modules/floor-ieee: New file.
16233         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16234         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16235         ISO C 99 with IEC 60559.
16236         * m4/floor-ieee.m4: New file.
16237         * modules/floor (Files): Add lib/floor.c.
16238         (Depends-on): Add 'float'.
16239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16240         * lib/math.in.h (floor): New declaration.
16241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16242         REPLACE_FLOOR.
16243         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16244         * modules/floor-ieee-tests: New file.
16245         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16246         * tests/test-math-c++.cc: Check the signature of 'floor'.
16247         * doc/posix-functions/floor.texi: Mention the new module.
16248
16249 2010-12-21  Bruno Haible  <bruno@clisp.org>
16250
16251         New module 'roundf-ieee'.
16252         * modules/roundf-ieee: New file.
16253         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16254         test whether roundf works according to ISO C 99 with IEC 60559.
16255         * m4/roundf-ieee.m4: New file.
16256         * modules/roundf-ieee-tests: New file.
16257         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16258         * tests/test-roundf1.c (main): Remove signbit tests.
16259         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16260         * doc/posix-functions/roundf.texi: Mention the new module.
16261
16262 2010-12-21  Bruno Haible  <bruno@clisp.org>
16263
16264         New module 'truncf-ieee'.
16265         * modules/truncf-ieee: New file.
16266         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16267         test whether truncf works according to ISO C 99 with IEC 60559.
16268         * m4/truncf-ieee.m4: New file.
16269         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16271         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16272         * modules/truncf-ieee-tests: New file.
16273         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16274         * tests/test-truncf1.c (main): Remove signbit tests.
16275         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16276         * doc/posix-functions/truncf.texi: Mention the new module.
16277
16278 2010-12-21  Bruno Haible  <bruno@clisp.org>
16279
16280         New module 'ceilf-ieee'.
16281         * modules/ceilf-ieee: New file.
16282         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16283         test whether ceilf works according to ISO C 99 with IEC 60559.
16284         * m4/ceilf-ieee.m4: New file.
16285         * modules/ceilf-ieee-tests: New file.
16286         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16287         * tests/test-ceilf1.c (main): Remove signbit tests.
16288         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16289         * doc/posix-functions/ceilf.texi: Mention the new module.
16290
16291 2010-12-21  Bruno Haible  <bruno@clisp.org>
16292
16293         New module 'floorf-ieee'.
16294         * modules/floorf-ieee: New file.
16295         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16296         test whether floorf works according to ISO C 99 with IEC 60559.
16297         * m4/floorf-ieee.m4: New file.
16298         * modules/floorf-ieee-tests: New file.
16299         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16300         * tests/test-floorf1.c (main): Remove signbit tests.
16301         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16302         * doc/posix-functions/floorf.texi: Mention the new module.
16303
16304 2010-12-21  Bruno Haible  <bruno@clisp.org>
16305
16306         Support for minus zero in autoconf macros.
16307         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16308         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16309         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16310         * tests/minus-zero.h: Update comments.
16311
16312 2010-12-21  Bruno Haible  <bruno@clisp.org>
16313
16314         Tests for module 'ceil'.
16315         * modules/ceil-tests: New file.
16316         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16317         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16318
16319 2010-12-21  Bruno Haible  <bruno@clisp.org>
16320
16321         Tests for module 'floor'.
16322         * modules/floor-tests: New file.
16323         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16324         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16325
16326 2010-12-21  Bruno Haible  <bruno@clisp.org>
16327
16328         math: Fix indentation.
16329         * lib/math.in.h (floorf): Fix indentation.
16330
16331 2010-12-21  Bruno Haible  <bruno@clisp.org>
16332
16333         Fix cross-compilation guesses on Solaris.
16334         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16335         not match "solaris2.10".
16336         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16337         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16338         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16339
16340 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16343         This fixes a problem observed with the latest coreutils snapshot
16344         that caused a test to fail on Solaris 8.  src/csplit.c's call
16345         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16346         earlier, instead of returning the number of bytes that would have
16347         been generated; this causes csplit to incorrectly report memory
16348         exhaustion.
16349         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16350         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16351         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16352         comments to match.
16353         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16354         Fix typo in matching older versions of Solaris: "solaris2.10"
16355         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16356         only for guessing while cross-compiling.
16357         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16358
16359 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         ftoastr: fix comment again
16362         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16363         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16364         Also, simplify example a bit by using flags = 0.
16365
16366 2010-12-20  Bruno Haible  <bruno@clisp.org>
16367
16368         round*, trunc*: Update documentation regarding glibc.
16369         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16370         * doc/posix-functions/round.texi: Likewise.
16371         * doc/posix-functions/roundl.texi: Likewise.
16372         * doc/posix-functions/truncf.texi: Likewise.
16373         * doc/posix-functions/trunc.texi: Likewise.
16374         * doc/posix-functions/truncl.texi: Likewise.
16375
16376 2010-12-20  Bruno Haible  <bruno@clisp.org>
16377
16378         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16379         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16380         * doc/posix-functions/round.texi: Likewise.
16381         * doc/posix-functions/roundl.texi: Likewise.
16382
16383 2010-12-20  Bruno Haible  <bruno@clisp.org>
16384
16385         ttyname_r: Add missing declaration on HP-UX 11.
16386         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16387         HAVE_TTYNAME_R.
16388         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16389         declared. Set HAVE_TTYNAME_R always.
16390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16391         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16392         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16393         HAVE_TTYNAME_R.
16394         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16395
16396 2010-12-20  Bruno Haible  <bruno@clisp.org>
16397
16398         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16399         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16400         * doc/posix-functions/getlogin_r.texi: Likewise.
16401         * tests/test-getlogin.c: Include <errno.h>.
16402         (main): Avoid test failure on HP-UX 11.11.
16403         * tests/test-getlogin_r.c (main): Likewise.
16404
16405 2010-12-20  Bruno Haible  <bruno@clisp.org>
16406
16407         getlogin_r: Add missing declaration on HP-UX 11.
16408         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16409         declared also when it exists as a function.
16410         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16411
16412 2010-12-20  Bruno Haible  <bruno@clisp.org>
16413
16414         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16415         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16416         through wcrtomb.
16417
16418 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16419
16420         ftoastr: fix comment
16421         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16423
16424 2010-12-19  Bruno Haible  <bruno@clisp.org>
16425
16426         isnan: Ensure it is a macro.
16427         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16428         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16429         Solaris.
16430
16431 2010-12-19  Bruno Haible  <bruno@clisp.org>
16432
16433         ldexpl test: Fix link error on OSF/1 5.1.
16434         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16435
16436 2010-12-19  Bruno Haible  <bruno@clisp.org>
16437
16438         wctype: Make it work in C++ mode on OSF/1 5.1.
16439         * lib/wctype.in.h (iswblank): Declare but not define here.
16440         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16441         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16442         * modules/wctype (Files): Add lib/iswblank.c.
16443
16444 2010-12-19  Bruno Haible  <bruno@clisp.org>
16445
16446         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16447         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16448         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16449
16450 2010-12-19  Bruno Haible  <bruno@clisp.org>
16451
16452         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16454         _POSIX_PII_SOCKET.
16455         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16456         * doc/posix-functions/recvfrom.texi: Likewise.
16457         * doc/posix-functions/send.texi: Likewise.
16458         * doc/posix-functions/sendto.texi: Likewise.
16459
16460 2010-12-19  Bruno Haible  <bruno@clisp.org>
16461
16462         tcgetsid: Add missing declaration on OSF/1 5.1.
16463         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16464         HAVE_TCGETSID.
16465         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16466         Don't set HAVE_TCGETSID.
16467         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16468         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16469         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16470         HAVE_TCGETSID.
16471         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16472
16473 2010-12-19  Bruno Haible  <bruno@clisp.org>
16474
16475         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16476         * lib/stdio.in.h: During the include_next statement, let recursive
16477         includes of this file include only the system header file.
16478
16479 2010-12-19  Bruno Haible  <bruno@clisp.org>
16480
16481         iconv_open: Fix regression from 2010-12-04.
16482         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16483         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16484
16485 2010-12-19  Bruno Haible  <bruno@clisp.org>
16486
16487         stdbool test: Avoid a gcc warning.
16488         * tests/test-stdbool.c (main): Fail if e1 is false.
16489         Reported by Jim Meyering.
16490
16491 2010-12-19  Jim Meyering  <meyering@redhat.com>
16492
16493         setenv: restore to working order
16494         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16495         mistakenly removed.
16496         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16497         HAVE_SETENV.
16498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16499         HAVE_SETENV.
16500
16501 2010-12-19  Bruno Haible  <bruno@clisp.org>
16502
16503         Document some different function declarations on OSF/1 5.1.
16504         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16505         * doc/posix-functions/inet_ntop.texi: Likewise.
16506         * doc/posix-functions/gethostname.texi: Likewise.
16507         * lib/unistd.in.h (gethostname): Update comment.
16508
16509 2010-12-19  Bruno Haible  <bruno@clisp.org>
16510
16511         doc: Mention vasprintf-posix module.
16512         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16513         the 'vasprintf-posix' module.
16514         * doc/glibc-functions/vasprintf.texi: Likewise.
16515
16516 2010-12-19  Bruno Haible  <bruno@clisp.org>
16517
16518         unsetenv: Add missing declaration on OSF/1 5.1.
16519         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16520         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16521         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16523         not HAVE_UNSETENV.
16524         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16525         HAVE_UNSETENV.
16526         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16527
16528 2010-12-19  Bruno Haible  <bruno@clisp.org>
16529
16530         setenv: Add missing declaration on OSF/1 5.1.
16531         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16532         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16533         declared. Don't set HAVE_SETENV.
16534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16535         not HAVE_SETENV.
16536         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16537         HAVE_SETENV.
16538         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16539
16540 2010-12-19  Bruno Haible  <bruno@clisp.org>
16541
16542         nl_langinfo tests: Avoid gcc warning.
16543         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16544
16545 2010-12-19  Bruno Haible  <bruno@clisp.org>
16546
16547         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16548         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16549         _GL_CXXALIAS_SYS.
16550
16551 2010-12-19  Bruno Haible  <bruno@clisp.org>
16552
16553         stdbool: Relax test.
16554         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16555         address to 'bool' work in static initializer, for compilers other than
16556         GCC.
16557
16558 2010-12-19  Bruno Haible  <bruno@clisp.org>
16559
16560         ftello: Add missing declaration on OSF/1 5.1.
16561         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16562         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16564         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16565         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16566
16567 2010-12-19  Bruno Haible  <bruno@clisp.org>
16568
16569         fseeko: Add missing declaration on OSF/1 5.1.
16570         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16571         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16573         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16574         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16575
16576 2010-12-19  Bruno Haible  <bruno@clisp.org>
16577
16578         fchdir: Add missing declaration on OSF/1 5.1.
16579         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16582         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16583         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16584
16585 2010-12-19  Bruno Haible  <bruno@clisp.org>
16586
16587         relocatable-prog-wrapper: Separate from relocatable-prog.
16588         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16589         uninstall-relocwrapper rule here.
16590         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16591         Reported by Ian Beckwith <ianb@erislabs.net>.
16592
16593 2010-12-19  Bruno Haible  <bruno@clisp.org>
16594
16595         unistr/u8-mbsnlen: Add missing dependency.
16596         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16597         Reported by Ian Beckwith <ianb@erislabs.net>.
16598
16599 2010-12-19  Bruno Haible  <bruno@clisp.org>
16600
16601         iconv: Make it possible again to use this module without 'iconv-h'.
16602         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16603         if it is not defined.
16604         Reported by Ian Beckwith <ianb@erislabs.net>.
16605
16606 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16607
16608         acl: port to Solaris 8 when copying from tmpfs to ufs
16609         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16610         error number.  Problem observed on Solaris 8 with latest
16611         coreutils, with "mv A B", where A is on a tmpfs file system and B
16612         is on a ufs file system.  This caused coreutils' mv/part-symlink
16613         test to fail.
16614
16615         tests: set fail=0 at start
16616         * tests/init.sh (setup_): Move fail=0 initialization here ...
16617         (mktempd_): ... from here, so that tests can rely on fail being
16618         set to 0 initially.  This fixes a problem in coreutils; see:
16619         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16620
16621 2010-12-18  Bruno Haible  <bruno@clisp.org>
16622
16623         memmem-simple: Stylistic changes.
16624         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16625         Fix preprocessor directive indentation.
16626
16627 2010-12-15  Pádraig Brady <P@draigBrady.com>
16628
16629         memmem, memmem-simple: reorganize and expand empty needle check
16630         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16631         functional checks to memmem-simple so that one has a fully functional
16632         memmem by using just this module.
16633         Restrict the performance only check to the memmem module.
16634         Also expand the empty needle check to ensure the correct
16635         pointer is returned, not just a non NULL pointer.
16636         * doc/glibc-functions/memmem.texi: Rearrange the portability
16637         documentation to correlate with the rearranged checks.
16638         Clarify exactly how the memmem and memmem-simple modules
16639         relate to each other.
16640
16641 2010-12-15  Pádraig Brady <P@draigBrady.com>
16642             Bruno Haible  <bruno@clisp.org>
16643
16644         Improve cross-compilation guesses for uClibc.
16645         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16646         that uClibc does not have the glibc bug.
16647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16648         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16649
16650 2010-12-14  Eric Blake  <eblake@redhat.com>
16651
16652         configmake: provide fallbacks for oldest supported autotools
16653         * m4/configmake.m4: New file.
16654         * modules/configmake (Files): Ship it.
16655         (configure.ac): Use it to guarantee fallbacks.
16656
16657 2010-12-13  Pádraig Brady <P@draigBrady.com>
16658
16659         read-file: Improve handling of large files
16660         * lib/read-file.c (fread_file): Minimize realloc()s
16661         for regular files, and better manage sizes around SIZE_MAX.
16662
16663 2010-12-13  Eric Blake  <eblake@redhat.com>
16664
16665         cloexec, fcntl: relax license
16666         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16667         consent from all contributors.
16668         * modules/fcntl (License): Likewise.
16669
16670 2010-12-10  Bruno Haible  <bruno@clisp.org>
16671
16672         Tests for module 'pipe-posix'.
16673         * modules/pipe-posix-tests: New file.
16674         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16675
16676 2010-12-10  Bruno Haible  <bruno@clisp.org>
16677
16678         pipe-posix: Make it work in C++ mode.
16679         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16680         (pipe): Use common idiom, not a macro definition.
16681         * lib/pipe.c: New file.
16682         * m4/pipe.m4: New file.
16683         * modules/pipe-posix (Description): Enhance.
16684         (Files): Add lib/pipe.c, m4/pipe.m4.
16685         (configure.ac): Invoke gl_FUNC_PIPE.
16686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16687         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16688         * tests/test-unistd-c++.cc: Check the signature of pipe.
16689
16690 2010-12-10  Bruno Haible  <bruno@clisp.org>
16691
16692         Rename module 'pipe' to 'spawn-pipe'.
16693         * modules/spawn-pipe: New file, renamed from modules/pipe.
16694         (Files, configure.ac, Makefile.am): Update.
16695         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16696         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16697         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16698         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16699         "spawn-pipe.h" instead of "pipe.h".
16700         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16701         to gl_SPAWN_PIPE.
16702         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16703         (Files, Makefile.am): Update.
16704         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16705         Update.
16706         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16707         Include "spawn-pipe.h" instead of "pipe.h".
16708         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16709         * lib/javacomp.c: Likewise.
16710         * lib/javaversion.c: Likewise.
16711         * lib/pipe-filter-gi.c: Likewise.
16712         * lib/pipe-filter-ii.c: Likewise.
16713         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16714         * modules/javacomp (Depends-on): Likewise.
16715         * modules/javaversion (Depends-on): Likewise.
16716         * modules/pipe-filter-gi (Depends-on): Likewise.
16717         * modules/pipe-filter-ii (Depends-on): Likewise.
16718         * MODULES.html.sh (Executing programs): Update.
16719         * NEWS: Mention the change.
16720
16721 2010-12-10  Eric Blake  <eblake@redhat.com>
16722
16723         pipe-posix: new module
16724         * modules/pipe-posix: New file.
16725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16726         (gl_UNISTD_H): Check for declaration.
16727         * modules/unistd (Makefile.am): Substitute it.
16728         * lib/unistd.in.h (pipe): Provide it for mingw.
16729         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16730         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16731
16732 2010-12-07  Bruno Haible  <bruno@clisp.org>
16733
16734         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16735         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16736         u8_strcmp_gnu.
16737         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16738
16739 2010-12-06  Bruno Haible  <bruno@clisp.org>
16740
16741         Update internal documentation.
16742         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16743
16744 2010-12-04  Bruno Haible  <bruno@clisp.org>
16745
16746         Put more information about failed tests into the test return codes.
16747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16748         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16749         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16750         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16751         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16752         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16753         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16754         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16755         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16757         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16758         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16759         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16760         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16761         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16762         returns a bit mask.
16763         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16764         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16765         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16766         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16767         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16771         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16773         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16774         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16775         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16777         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16778         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16779         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16780         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16781         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16782         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16783         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16784         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16786         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16787         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16788         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16789         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16790         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16791         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16792         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16793         gl_PRINTF_PRECISION): Likewise.
16794         * m4/regex.m4 (gl_REGEX): Likewise.
16795         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16796         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16797         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16798         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16799         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16801         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16802         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16803         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16804         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16805         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16806         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16807         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16808         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16809         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16810         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16811         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16812         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16814         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16815         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16816         enumerated value.
16817         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16818
16819 2010-12-04  Bruno Haible  <bruno@clisp.org>
16820
16821         Update for Solaris 11 2010-11.
16822         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16823         Express, released in November 2010.
16824
16825 2010-12-04  Bruno Haible  <bruno@clisp.org>
16826
16827         nproc: Relax license.
16828         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16829         and Paul Eggert.
16830         Requested by Ludovic Courtès <ludo@gnu.org>.
16831
16832 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16833
16834         utimecmp: fine-grained src to nearby coarse-grained dest
16835
16836         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16837         and the source is on a file system with higher-resolution time
16838         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16839         not work, and the time stamps are close together, the algorithm to
16840         determine the exact resolution from the read-back mtime was buggy:
16841         it had a "!=" where it should have had an "==".  This bug has been
16842         in the code ever since it was introduced to gnulib.
16843         Problem reported by Dan Jacobson in
16844         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16845
16846 2010-11-30  Bruno Haible  <bruno@clisp.org>
16847
16848         strerror_r-posix: Fix autoconf test.
16849         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16850
16851 2010-11-28  Bruno Haible  <bruno@clisp.org>
16852             Paul Eggert  <eggert@cs.ucla.edu>
16853
16854         Tests for module 'getdomainname'.
16855         * modules/getdomainname-tests: New file.
16856         * tests/test-getdomainname.c: New file, based on
16857         tests/test-gethostname.c.
16858
16859 2010-11-28  Bruno Haible  <bruno@clisp.org>
16860             Paul Eggert  <eggert@cs.ucla.edu>
16861
16862         getdomainname: Use the system function when possible.
16863         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16864         (getdomainname): Replace if needed. Provide the declaration if it is
16865         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16866         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16867         (getdomainname): When the system has getdomainname, call the system
16868         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16869         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16870         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16871         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16872         the function if its second argument is of type 'int' or if it is found
16873         in libnsl.
16874         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16875         <sys/systeminfo.h> and sysinfo().
16876         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16878         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16879         HAVE_GETDOMAINNAME.
16880         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16881         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16882         * doc/glibc-functions/getdomainname.texi: Document the problems with
16883         the getdomainname declaration.
16884
16885 2010-11-28  Bruno Haible  <bruno@clisp.org>
16886
16887         sys_socket: Ensure ss_family field on AIX.
16888         * lib/sys_socket.in.h (ss_family): New macro definition.
16889         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16890         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16891         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16892         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16893         * modules/sys_socket (Makefile.am): Substitute
16894         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16895         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16896
16897 2010-11-27  Bruno Haible  <bruno@clisp.org>
16898
16899         readline: Improve configure output.
16900         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16901         "checking for readline..." result understandable.
16902
16903 2010-11-27  Bruno Haible  <bruno@clisp.org>
16904
16905         *printf-posix: Detect a bug on Solaris 10/x86.
16906         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16907         for floating-point output.
16908         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16909         directive.
16910         * tests/test-snprintf-posix.h (test_function): Likewise.
16911         * tests/test-sprintf-posix.h (test_function): Likewise.
16912         * tests/test-vasprintf-posix.c (test_function): Likewise.
16913         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16914         * doc/posix-functions/printf.texi: Likewise.
16915         * doc/posix-functions/snprintf.texi: Likewise.
16916         * doc/posix-functions/sprintf.texi: Likewise.
16917         * doc/posix-functions/vfprintf.texi: Likewise.
16918         * doc/posix-functions/vprintf.texi: Likewise.
16919         * doc/posix-functions/vsnprintf.texi: Likewise.
16920         * doc/posix-functions/vsprintf.texi: Likewise.
16921         * doc/glibc-functions/obstack_printf.texi: Likewise.
16922         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16923
16924 2010-11-27  Bruno Haible  <bruno@clisp.org>
16925
16926         Fix link error when module libunistring-optional is in use.
16927         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16928         * modules/striconveha-tests (Makefile.am): Likewise.
16929
16930 2010-11-27  Bruno Haible  <bruno@clisp.org>
16931
16932         regex: Mention link dependencies.
16933         * modules/regex (Link): New section.
16934         * modules/rpmatch (Link): Likewise.
16935         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16936
16937 2010-11-27  Bruno Haible  <bruno@clisp.org>
16938
16939         ftoastr: Fix compilation error on Solaris.
16940         * lib/ftoastr.c: Include <config.h>.
16941
16942 2010-11-27  Bruno Haible  <bruno@clisp.org>
16943
16944         getloadavg: Update documentation.
16945         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16946
16947 2010-11-27  Bruno Haible  <bruno@clisp.org>
16948
16949         sys_socket: Fix test whether the functions are declared.
16950         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16951         not <sys/select.h>.
16952
16953 2010-11-27  Bruno Haible  <bruno@clisp.org>
16954
16955         getpass: Make sure to get system declaration on some platforms.
16956         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16957         gl_USE_SYSTEM_EXTENSIONS.
16958         * modules/getpass (Depends-on): Add extensions.
16959
16960 2010-11-26  Bruno Haible  <bruno@clisp.org>
16961
16962         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16963         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16964         'iconv' module is present.
16965         (ICONV_CONST): New macro.
16966         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16967         ICONV_CONST.
16968         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16969         set ICONV_CONST.
16970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16971         here.
16972         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16973         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16974         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16975         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16976         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16977         present.
16978
16979 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16980
16981         ftoastr: comment fix
16982         * lib/ftoastr.c: "little" -> "little or no" in comment
16983
16984 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16985
16986         stdint: port to GCC 4.3 + OSX + Octave
16987         On this platform, stdint.h is buggy and defines int64_t to long
16988         long int.  The replacement defined it to long int, causing
16989         problems with C++ style name mangling.  Instead, trust the system
16990         definition if INT64_MAX is defined, and likewise for the unsigned
16991         variant.   Problem reported by Jarno Rajahalme in
16992         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16993         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16994         and don't mess with int64_t and INT64_MAX in this case.
16995         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16996
16997 2010-11-24  Bruno Haible  <bruno@clisp.org>
16998
16999         doc: Corrections regarding MacOS X 10.4 and 10.5.
17000         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17001         MacOS X.
17002         Reported by Simon Josefsson.
17003
17004 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17005
17006         Uninstall ".bin" files installed by relocwrapper.
17007         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17008         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17009         unless it is already there.
17010
17011 2010-11-21  Bruno Haible  <bruno@clisp.org>
17012
17013         Update for NetBSD 5.0.
17014         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17015         NetBSD; the test fails on NetBSD 5.0.
17016         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17017         about NetBSD.
17018
17019 2010-11-21  Bruno Haible  <bruno@clisp.org>
17020
17021         Update for HP-UX 11.23 and HP-UX 11.31.
17022         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17023         HP-UX.
17024
17025 2010-11-21  Bruno Haible  <bruno@clisp.org>
17026
17027         Update for MacOS X 10.5.
17028         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17029         MacOS X; the test fails on MacOS X 10.5.8.
17030         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17031         about MacOS X.
17032
17033 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17034
17035         bootstrap: add bootstrap_sync option.
17036         See discussion at
17037         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17039         * build-aux/bootstrap: Accept --bootstrap-sync to update
17040         bootstrap if it is not identical to the local gnulib's
17041         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17042         enable this by default.  Accept --no-bootstrap-sync to disable
17043         it.
17044
17045 2010-11-20  Bruno Haible  <bruno@clisp.org>
17046
17047         Ensure that <features.h> is included before __GLIBC__ is tested.
17048         * lib/printf-parse.h: Include <features.h>.
17049         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17050         Reported by Mike Frysinger <vapier@gentoo.org>.
17051
17052         Ensure that <features.h> is included before __GLIBC__ is tested.
17053         * lib/wchar.in.h: Include <features.h>.
17054         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17055         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17056         Reported by Mike Frysinger <vapier@gentoo.org>.
17057
17058         Ensure that <features.h> is included before __GLIBC__ is tested.
17059         * lib/arpa_inet.in.h: Include <features.h>.
17060         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17061         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17062         Reported by Mike Frysinger <vapier@gentoo.org>.
17063
17064         Ensure that <features.h> is included before __GLIBC__ is tested.
17065         * build-aux/link-warning.h: Include <features.h>.
17066         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17067         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17068         Reported by Mike Frysinger <vapier@gentoo.org>.
17069
17070         Ensure that <features.h> is included before __GLIBC__ is tested.
17071         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17072         Reported by Mike Frysinger <vapier@gentoo.org>.
17073
17074 2010-11-20  Bruno Haible  <bruno@clisp.org>
17075
17076         memmem: Fix autoconf test.
17077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17078
17079 2010-11-20  Bruno Haible  <bruno@clisp.org>
17080
17081         Port to uClibc.
17082         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17083         * lib/fcntl.in.h: Likewise.
17084         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17085         * lib/mbrtowc.c (mbrtowc): Likewise.
17086         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17087         * lib/strerror_r.c: Likewise.
17088         * lib/unistr/u8-strnlen.c: Likewise.
17089         * lib/vasnprintf.c (decimal_point_char): Likewise.
17090         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17091         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17092         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17093         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17094         * tests/test-sigaction.c (handler, main): Likewise.
17095         * lib/freading.h: Treat uClibc like a non-glibc platform.
17096         * lib/freading.c: Likewise.
17097         * lib/gettext.h: Likewise.
17098         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17099         Likewise.
17100         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17101         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17102         * lib/propername.c (proper_name_utf8): Likewise.
17103         * lib/spawn.in.h: Likewise.
17104         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17105         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17106         mem_cd_iconveh_internal): Likewise.
17107         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17108         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17109         strstr, strcasestr): Likewise.
17110         * lib/unicodeio.c (unicode_to_mb): Likewise.
17111         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17112         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17113         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17114         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17115         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17116         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17117         * lib/unistr/u8-stpncpy.c: Likewise.
17118         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17119         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17120         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17121         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17122         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17123         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17124         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17126         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17127         Likewise.
17128         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17129         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17130         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17133         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17134         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17135         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17136         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17137         * tests/test-striconveha.c (main): Likewise.
17138         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17139         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17140         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17141         * doc/posix-functions/getline.texi: Likewise.
17142         Reported by Mike Frysinger <vapier@gentoo.org>.
17143
17144 2010-11-20  Bruno Haible  <bruno@clisp.org>
17145
17146         nproc: Fix condition.
17147         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17148         HAVE_PTHREAD_AFFINITY_NP.
17149
17150 2010-11-20  Bruno Haible  <bruno@clisp.org>
17151
17152         Fix a comment.
17153         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17154
17155 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17156
17157         ftoastr: don't assume snprintf
17158         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17159         Implement a subset of snprintf here, by using sprintf safely.
17160         * modules/ftoastr (Depends-on): Remove snprintf.
17161
17162 2010-11-19  Jim Meyering  <meyering@redhat.com>
17163
17164         test-rename.h: fix compilation failure
17165         * tests/test-rename.h (test_rename): Add omitted "}".
17166
17167 2010-11-17  Jim Meyering  <meyering@redhat.com>
17168
17169         maint.mk: add a URL discussing the no-@acronym policy
17170         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17171
17172 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17173
17174         ftoastr: depend on snprintf, improve comments
17175         * lib/ftoastr.c: Also mention Loitsch's draft.
17176         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17177         needed in the current implementation, but it might simplify
17178         speeding up the code later.
17179         * modules/ftoastr: Depend on snprintf; this improves portability.
17180         Suggested by Bruno Haible in the same email.
17181
17182         ftoastr: port to hosts lacking strtof and strtold
17183         Problem reported by Bruno Haible in
17184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17185         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17186         environment and strtold (and presumably strtof) are not available.
17187         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17188         (configure.ac): Require gl_C99_STRTOLD.
17189
17190 2010-11-18  Bruno Haible  <bruno@clisp.org>
17191
17192         c-strtold: Avoid link error on AIX 7.
17193         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17194         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17195         (gl_C_STRTOLD): Test whether strtold_l exists.
17196         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17197
17198 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17199
17200         intprops: new macro INT_BITS_STRLEN_BOUND
17201         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17202         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17203         not exposed.  Also, it uses a slightly tighter bound than before;
17204         though this makes no practical difference, we might as well be as
17205         tight as we easily can.
17206
17207         ftoastr: new module, for lossless conversion of floats to short strings
17208         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17209         * modules/ftoastr: New files.
17210
17211 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17212
17213         bootstrap: port to Solaris sed
17214         * build-aux/bootstrap (get_version): Port to Solaris sed.
17215         See Ralf Wildenhues's note in
17216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17217
17218 2010-11-14  Jim Meyering  <meyering@redhat.com>
17219
17220         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17221         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17222         and move definition closer to sole use.
17223
17224 2010-11-13  Jim Meyering  <meyering@redhat.com>
17225
17226         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17227         Now we require at least autoconf-2.59, which means the work-around
17228         is no longer needed.
17229         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17230         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17231         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17232         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17233         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17234
17235 2010-11-13  Bruno Haible  <bruno@clisp.org>
17236
17237         rename, renameat: Avoid test failures at NFS mounted locations.
17238         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17239         functions.
17240         (test_rename): Use assert_nonexistent.
17241         * tests/test-rename.c: Include <dirent.h>.
17242         * tests/test-renameat.c: Likewise.
17243         Reported by Gary V. Vaughan <gary@gnu.org>.
17244
17245         rename, renameat: Document Linux bug with NFS
17246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17247         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17248         * doc/posix-functions/renameat.texi: Likewise.
17249         Suggested by Eric Blake.
17250
17251 2010-11-13  Bruno Haible  <bruno@clisp.org>
17252
17253         rename test: Add comments.
17254         * tests/test-rename.h (test_rename): Add structure and comments.
17255
17256 2010-11-13  Eric Blake  <eblake@redhat.com>
17257
17258         maintainer-makefile: cover a few more files
17259         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17260         scripts generated within C files, for libvirt.
17261
17262 2010-11-13  Bruno Haible  <bruno@clisp.org>
17263
17264         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17265         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17266         character, return the number of bytes that belong together, not always
17267         1.
17268         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17269         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17270         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17271         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17272         number of bytes of an invalid character.
17273         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17274         (main): Invoke it.
17275         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17276         results.
17277         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17278         malformed byte sequences.
17279         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17280         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17281         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17282         Reported by Ben Pfaff and Paolo Bonzini.
17283
17284 2010-11-13  Bruno Haible  <bruno@clisp.org>
17285
17286         openat: Work around glibc bug with fchownat() and empty file names.
17287         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17288         (gl_FUNC_FCHOWNAT): Invoke it.
17289         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17290         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17291         Reported by Gary V. Vaughan <gary@gnu.org>.
17292
17293 2010-11-13  Bruno Haible  <bruno@clisp.org>
17294
17295         openat: Ensure autoconf macro ordering.
17296         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17297         gl_USE_SYSTEM_EXTENSIONS.
17298         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17299
17300 2010-11-13  Bruno Haible  <bruno@clisp.org>
17301
17302         Update comments.
17303         * lib/unistr/u8-check.c: Update file name in comments.
17304         * lib/unistr/u8-mblen.c: Likewise.
17305         * lib/unistr/u8-prev.c: Likewise.
17306         * lib/unistr/u8-strmblen.c: Likewise.
17307         * lib/unistr/u8-strmbtouc.c: Likewise.
17308
17309 2010-11-13  Jim Meyering  <meyering@redhat.com>
17310
17311         tests: avoid test failure on Solaris 10 due to lack of PATH export
17312         * tests/test-update-copyright.sh: Don't forget to export PATH.
17313
17314         init.sh: ensure that IFS is defined, just in case...
17315         * tests/init.sh (setup_): Ensure that IFS is defined,
17316         so that saving and restoring it works as expected.  This
17317         appears to be useful at least for an old version of dash
17318         from a long time ago (RH 6).  See here for details:
17319         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17320
17321         maint.mk: tighten "test a == b" check
17322         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17323         test to files that contain something like #!/bin/sh.
17324         Without this, coreutils would get two false positives in
17325         the comments of C source files.
17326
17327 2010-11-12  Eric Blake  <eblake@redhat.com>
17328
17329         bootstrap: fix typo in previous attempt
17330         * build-aux/bootstrap (buildreq): Correct the grouping.
17331         Reported by Paul Eggert.
17332
17333         maintainer-makefile: prohibit test x == x
17334         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17335         Based on a report by Matthias Bolte.
17336
17337         bootstrap: allow FreeBSD gzip
17338         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17339         which has no '.' and goes to stderr.
17340         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17341         Reported by Matthias Bolte.
17342
17343         maintainer-makefile: check for i18n setup
17344         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17345         will likely work.
17346
17347 2010-11-12  Bruno Haible  <bruno@clisp.org>
17348
17349         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17350         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17351         * lib/nanosleep.c (nanosleep): Likewise.
17352
17353 2010-11-11  Bruno Haible  <bruno@clisp.org>
17354
17355         fcntl-h: Fix for use of C++ on glibc systems.
17356         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17357         also on glibc systems in C++ mode.
17358         Reported by Gary V. Vaughan <gary@gnu.org>.
17359
17360 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17361
17362         mknod: avoid false failure with dash
17363         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17364
17365 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17366
17367         unlink: Fix "is it should" typo in diagnostic.
17368         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17370
17371 2010-11-11  Bruno Haible  <bruno@clisp.org>
17372
17373         Tests for module 'strerror_r-posix'.
17374         * modules/strerror_r-posix-tests: New file.
17375         * tests/test-strerror_r.c: New file.
17376         * tests/test-string-c++.cc: Check the signature of strerror_r.
17377
17378         New module 'strerror_r-posix'.
17379         * lib/string.in.h (strerror_r): New declaration.
17380         * lib/strerror_r.c: New file.
17381         * m4/strerror_r.m4: New file.
17382         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17383         of strerror_r.
17384         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17385         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17386         * modules/strerror_r-posix: New file.
17387         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17388         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17389         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17390         portability problems.
17391
17392 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17393
17394         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17395         line is also considered for output. Quoted function name in shell
17396         command, so temporary files for functions like MyClass::operator()
17397         are removed correctly without errors.
17398
17399 2010-11-09  Bruno Haible  <bruno@clisp.org>
17400
17401         * doc/posix-functions/strerror.texi: List more failing platforms.
17402
17403         * doc/posix-functions/strerror.texi: Add a comment.
17404
17405 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17406
17407         fdopendir: fix bug on MacOS X when low on file descriptors
17408
17409         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17410         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17411         All callers changed.
17412         (fdopendir): Invoke save_cwd at the top level, not after using
17413         multiple dup() calls to use up file descriptors.  Then retry
17414         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17415         less than the maximum number of open file descriptors, because
17416         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17417         on Mac OS X 10.6.4 for tar 1.24
17418         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17419         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17420         and for tar 1.25
17421         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17422
17423 2010-11-07  Bruno Haible  <bruno@clisp.org>
17424
17425         vasnprintf: Support I flag on glibc systems.
17426         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17427         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17428         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17429         snprintf function.
17430         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17431         glibc systems.
17432         * tests/test-vasnprintf-posix3.c: New file.
17433         * modules/vasnprintf-posix-tests (Files): Add it.
17434         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17435
17436 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17437
17438         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17439         * MODULES.html.sh: For compiler warnings, use name
17440         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17441
17442 2010-11-05  Eric Blake  <eblake@redhat.com>
17443
17444         ceil, floor: avoid spurious failure with icc
17445         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17446         [denormals-as-zero] when optimizing without -mieee-fp option.
17447         * tests/test-floorf2.c (floorf_reference): Likewise.
17448         * tests/test-ceilf1.c (dummy): New function.
17449         (main): Use it to outsmart icc's optimization.
17450         * tests/test-floorf1.c (dummy, main): Likewise.
17451
17452         tests: require working signbit
17453         * modules/ceilf-tests (Depends-on): Add signbit.
17454         * modules/ceill-tests (Depends-on): Likewise.
17455         * modules/floorf-tests (Depends-on): Likewise.
17456         * modules/floorl-tests (Depends-on): Likewise.
17457         * modules/round-tests (Depends-on): Likewise.
17458         * modules/roundf-tests (Depends-on): Likewise.
17459         * modules/roundl-tests (Depends-on): Likewise.
17460         * modules/trunc-tests (Depends-on): Likewise.
17461         * modules/truncf-tests (Depends-on): Likewise.
17462         * modules/truncl-tests (Depends-on): Likewise.
17463
17464         strtod: work around icc bug
17465         * lib/strtod.c (minus_zero): Define to working value.
17466         (strtod): Use it to avoid icc bug.
17467
17468         copysign: enhance tests
17469         * modules/copysign-tests (Files): Add minus-zero.h.
17470         * tests/test-copysign.c (main): Also test zeros.
17471
17472 2010-11-04  Eric Blake  <eblake@redhat.com>
17473
17474         ceil, floor, round, trunc: enhance tests of -0
17475         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17476         * tests/test-ceill.c (main): Likewise.
17477         * tests/test-floorf1.c (main): Likewise.
17478         * tests/test-floorl.c (main): Likewise.
17479         * tests/test-round1.c (main): Likewise.
17480         * tests/test-roundf1.c (main): Likewise.
17481         * tests/test-roundl.c (main): Likewise.
17482         * tests/test-trunc1.c (main): Likewise.
17483         * tests/test-truncf1.c (main): Likewise.
17484         * tests/test-truncl.c (main): Likewise.
17485
17486 2010-11-04  Eric Blake  <eblake@redhat.com>
17487
17488         frexp, tests: work around ICC bug with -zero
17489         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17490         works with more compilers.
17491         * tests/minus-zero.h: New file.
17492         * modules/ceilf-tests (Files): Include it.
17493         * modules/ceill-tests (Files): Likewise.
17494         * modules/floorf-tests (Files): Likewise.
17495         * modules/floorl-tests (Files): Likewise.
17496         * modules/frexp-nolibm-tests (Files): Likewise.
17497         * modules/frexp-tests (Files): Likewise.
17498         * modules/frexpl-nolibm-tests (Files): Likewise.
17499         * modules/frexpl-tests (Files): Likewise.
17500         * modules/isnan-tests (Files): Likewise.
17501         * modules/isnand-nolibm-tests (Files): Likewise.
17502         * modules/isnand-tests (Files): Likewise.
17503         * modules/isnanf-nolibm-tests (Files): Likewise.
17504         * modules/isnanf-tests (Files): Likewise.
17505         * modules/isnanl-nolibm-tests (Files): Likewise.
17506         * modules/isnanl-tests (Files): Likewise.
17507         * modules/round-tests (Files): Likewise.
17508         * modules/roundf-tests (Files): Likewise.
17509         * modules/roundl-tests (Files): Likewise.
17510         * modules/ldexpl-tests (Files): Likewise.
17511         * modules/signbit-tests (Files): Likewise.
17512         * modules/snprintf-posix-tests (Files): Likewise.
17513         * modules/sprintf-posix-tests (Files): Likewise.
17514         * modules/strtod-tests (Files): Likewise.
17515         * modules/trunc-tests (Files): Likewise.
17516         * modules/truncf-tests (Files): Likewise.
17517         * modules/truncl-tests (Files): Likewise.
17518         * modules/vsnprintf-posix-tests (Files): Likewise.
17519         * modules/vsprintf-posix-tests (Files): Likewise.
17520         * modules/vasnprintf-posix-tests (Files): Likewise.
17521         * modules/vasprintf-posix-tests (Files): Likewise.
17522         * tests/test-ceilf1.c (main): Use it.
17523         * tests/test-ceill.c (main): Likewise.
17524         * tests/test-floorf1.c (main): Likewise.
17525         * tests/test-floorl.c (main): Likewise.
17526         * tests/test-frexp.c (main): Likewise.
17527         * tests/test-frexpl.c (main): Likewise.
17528         * tests/test-isnan.c (main): Likewise.
17529         * tests/test-isnand.h (main): Likewise.
17530         * tests/test-isnanf.h (main): Likewise.
17531         * tests/test-isnanl.h (main): Likewise.
17532         * tests/test-ldexpl.c (main): Likewise.
17533         * tests/test-round.c (main): Likewise.
17534         * tests/test-roundf.c (main): Likewise.
17535         * tests/test-roundl.c (main): Likewise.
17536         * tests/test-signbit.c (test_signbitf, test_signbitd)
17537         (test_signbitl): Likewise.
17538         * tests/test-snprintf-posix.h (test_function): Likewise.
17539         * tests/test-sprintf-posix.h (test_function): Likewise.
17540         * tests/test-strtod.c (main): Likewise.
17541         * tests/test-trunc1.c (main): Likewise.
17542         * tests/test-truncf1.c (main): Likewise.
17543         * tests/test-truncl.c (main): Likewise.
17544
17545         isnanl: work around icc bug
17546         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17547
17548 2010-11-03  Eric Blake  <eblake@redhat.com>
17549
17550         tests: fix compiler warnings
17551         * tests/test-getopt.h (test_getopt): Fix condition.
17552         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17553         * tests/test-pipe2.c (main): Likewise.
17554         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17555
17556         utimens: fix broken m4 test
17557         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17558
17559 2010-10-28  Bruno Haible  <bruno@clisp.org>
17560
17561         posix_spawn*, getdtablesize: Relax license.
17562         * modules/posix_spawn (License): Change to LGPLv2+.
17563         * modules/posix_spawnp (License): Likewise.
17564         * modules/posix_spawn-internal (License): Likewise.
17565         * modules/posix_spawnattr_init (License): Likewise.
17566         * modules/posix_spawnattr_getflags (License): Likewise.
17567         * modules/posix_spawnattr_setflags (License): Likewise.
17568         * modules/posix_spawnattr_getpgroup (License): Likewise.
17569         * modules/posix_spawnattr_setpgroup (License): Likewise.
17570         * modules/posix_spawnattr_getschedparam (License): Likewise.
17571         * modules/posix_spawnattr_setschedparam (License): Likewise.
17572         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17573         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17574         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17575         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17576         * modules/posix_spawnattr_getsigmask (License): Likewise.
17577         * modules/posix_spawnattr_setsigmask (License): Likewise.
17578         * modules/posix_spawnattr_destroy (License): Likewise.
17579         * modules/posix_spawn_file_actions_init (License): Likewise.
17580         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17581         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17582         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17583         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17584         * modules/getdtablesize (License): Likewise.
17585         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17586
17587 2010-10-26  Bruno Haible  <bruno@clisp.org>
17588
17589         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17590         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17591         Cygwin and mingw.
17592         Suggested by Eric Blake.
17593
17594 2010-10-26  Bruno Haible  <bruno@clisp.org>
17595
17596         stdio: Work around compilation error due to renameat() on Solaris 10.
17597         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17598         * lib/renameat.c: Don't include <unistd.h> here.
17599         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17600         Reported by Paul Eggert and Eric Blake.
17601
17602 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17603
17604         renameat: port to Solaris 10, which declares renameat in unistd.h
17605
17606         * lib/renameat.c: Include unistd.h before stdio.h, because
17607         Solaris 10 declares renameat in unistd.h.  Problem encountered
17608         when building GNU tar 1.24 on Solaris 10.
17609
17610 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17611
17612         fdopendir: fix C89 compilation
17613         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17614         compilers.
17615
17616 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17617
17618         inttostr: simplify by removing unnecessary redundancy
17619         * lib/anytostr.c: Don't include verify.h.
17620         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17621         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17622         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17623         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17624         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17625         Likewise.
17626         * modules/inttostr (Depends-on): Remove 'verify'.
17627
17628 2010-10-23  Bruno Haible  <bruno@clisp.org>
17629
17630         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17631         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17632         Reported by Eric Blake.
17633
17634 2010-10-23  Bruno Haible  <bruno@clisp.org>
17635
17636         Tests: Fix LOCALE_JA on MirBSD 10.
17637         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17638         to an UTF-8 locale.
17639         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17640         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17641         Reported by Eric Blake.
17642
17643 2010-10-21  Bruno Haible  <bruno@clisp.org>
17644
17645         nl_langinfo test: Avoid test failure on NetBSD 5.
17646         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17647         Reported by Eric Blake.
17648
17649 2010-10-21  Eric Blake  <eblake@redhat.com>
17650
17651         c-stack: work around libsigsegv 2.8 bug
17652         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17653         overflow on at least PowerPC64.
17654
17655 2010-10-17  Bruno Haible  <bruno@clisp.org>
17656
17657         userspec: Drop redundant file.
17658         * modules/userspec (Files): Remove lib/inttostr.h.
17659
17660 2010-10-17  Bruno Haible  <bruno@clisp.org>
17661
17662         nl_langinfo tests: Silence some warnings.
17663         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17664         Reported by Jim Meyering.
17665
17666 2010-10-17  Bruno Haible  <bruno@clisp.org>
17667
17668         Make use of GCC's attribute __alloc_size__.
17669         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17670         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17671         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17672         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17673         __alloc_size__.
17674         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17675         Suggested by Jim Meyering.
17676
17677 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17678
17679         bootstrap: anchor .gitignore entries.
17680         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17681         with...
17682         (insert_vc_ignore): ... this new function, which prepends `/' to
17683         all .gitignore entries before passing them to
17684         insert_sorted_if_absent.
17685
17686 2010-10-16  Bruno Haible  <bruno@clisp.org>
17687
17688         nextafter: Fix configure check.
17689         * modules/nextafter (configure.ac): Correct expected prototype.
17690
17691 2010-10-16  Bruno Haible  <bruno@clisp.org>
17692
17693         termios: Update documentation.
17694         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17695
17696 2010-10-16  Bruno Haible  <bruno@clisp.org>
17697
17698         tests: Make them compile with TinyCC.
17699         * tests/test-strstr.c (main): Remove parentheses around array
17700         initializer.
17701
17702 2010-10-15  Eric Blake  <eblake@redhat.com>
17703
17704         ignore-value: make header idempotent
17705         * lib/ignore-value.h: Add double-inclusion guards.
17706         Reported by Stefan Berger.
17707
17708 2010-10-15  Jim Meyering  <meyering@redhat.com>
17709
17710         GNUmakefile: handle "stable" target, not "major"
17711         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17712         lists in maint.mk and announce-gen.  Without this, "make stable"
17713         would fail to ensure that $(VERSION) is up to date.
17714
17715 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17716
17717         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17718         & co.
17719
17720 2010-10-14  Bruno Haible  <bruno@clisp.org>
17721
17722         vasnprintf: Don't set errno to 0.
17723         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17724         block that sets it to 0.
17725         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17726
17727 2010-10-14  Bruno Haible  <bruno@clisp.org>
17728
17729         socketlib: Fix.
17730         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17731         gl_PREREQ_SYS_H_WINSOCK2.
17732         Reported by Ian Beckwith <ianb@erislabs.net>.
17733
17734 2010-10-13  Jim Meyering  <meyering@redhat.com>
17735
17736         test-select-stdin.c: avoid warn_unused_result warnings
17737         * tests/test-select-stdin.c: Include "macros.h".
17738         ASSERT that read and fflush succeed.
17739
17740 2010-10-13  Jim Meyering  <meyering@redhat.com>
17741
17742         git-version-gen: do require git-VC'd files in cwd
17743         * build-aux/git-version-gen: Reject a git version string
17744         if there are no commits associated with the current directory.
17745         This avoids an unlikely false-positive (unrelated dir whose parent
17746         repository also contains a tag matching v*), as pointed out
17747         by Giuseppe Scrivano in
17748         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17749
17750 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17751
17752         argv-iter: omit nonconforming declaration
17753         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17754         enum arg_iter_err declaration, which doesn't conform to C99.
17755         Solaris 10 cc warns about this.
17756
17757 2010-10-13  Eric Blake  <eblake@redhat.com>
17758
17759         termios: fix compilation on mingw
17760         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17761         (gl_TERMIOS_H): Adjust it on mingw.
17762         * modules/termios (Makefile.am): Substitute new key.
17763         * lib/termios.in.h (includes): Make include_next conditional.
17764         * doc/posix-headers/termios.texi (termios.h): Update
17765         documentation.
17766         Reported by Daniel P. Berrange.
17767
17768 2010-10-13  Jim Meyering  <meyering@redhat.com>
17769
17770         git-version-gen: don't require that .git/ be in the current dir
17771         * build-aux/git-version-gen: Adjust this script so that it works
17772         when run from any working directory beneath the top-level .git/-
17773         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17774         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17775
17776         test-select: avoid warn_unused_result warnings
17777         * tests/test-select.c: Include "macros.h".
17778         ASSERT that each call to read, write, and pipe succeeds.
17779         While not technically required, also check each "close".
17780         * modules/select-tests (Files): Add tests/macros.h.
17781
17782         test-symlinkat: remove declaration of unused local
17783         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17784
17785         test-inttostr: avoid shadowing warnings
17786         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17787         and use malloc rather than the stack for the same reason as
17788         mentioned in the comment justifying the other allocation.
17789
17790 2010-10-11  Bruno Haible  <bruno@clisp.org>
17791
17792         stdlib: Allow multiple gnulib generated replacements to coexist.
17793         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17794         Reported by Sam Steingold <sds@gnu.org>.
17795
17796 2010-10-11  Jim Meyering  <meyering@redhat.com>
17797
17798         fix a documentation typo
17799         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17800
17801 2010-10-11  Eric Blake  <eblake@redhat.com>
17802
17803         futimens: work around Solaris 11 bug
17804         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17805         * tests/test-futimens.h (test_futimens): Enhance, rather than
17806         weaken test.
17807         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17808
17809 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         Indentation.
17812         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17813         higher-level operators more to the left.
17814
17815 2010-10-11  Jim Meyering  <meyering@redhat.com>
17816
17817         test-futimens: avoid unwarranted test failure on Solaris 5.11
17818         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17819         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17820         because it tries to dereference the NULL name argument.
17821
17822 2010-10-11  Bruno Haible  <bruno@clisp.org>
17823
17824         Indentation.
17825         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17826         indentation.
17827
17828 2010-10-11  Jim Meyering  <meyering@redhat.com>
17829
17830         spawn.in.h: make indentation consistent with parentheses
17831         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17832         Make indentation consistent with parentheses.
17833
17834 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17835
17836         Fix mismatched parens in previous commit
17837         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17838         parens.
17839
17840 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17841
17842         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17843
17844         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17845         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17846         * lib/malloca.c: Include "verify.h".
17847         (verify1): Remove, replacing with a verify call.
17848         * lib/relocwrapper.c (verify1): Likewise.
17849         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17850         Likewise.
17851         * modules/malloca (Depends-on): Add 'verify'.
17852         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17853         * modules/vasnprintf (Depends-on): Add 'verify'.
17854         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17855         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17856         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17857         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17858         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17859         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17860         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17861
17862         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17863
17864         Formerly the style was sometimes 2*X - 1, because the C standard
17865         was wrongly thought to disallow ?: in integral constant expressions.
17866         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17867         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17868         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17869         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17870         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17871         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17872         verify that time_t cannot be floating.
17873
17874 2010-10-08  Eric Blake  <eblake@redhat.com>
17875
17876         time: enforce recent POSIX ruling that time_t is integral
17877         * lib/time.in.h (__time_t_must_be_integral): Detect any
17878         problematic systems, allowing the rest of gnulib to assume POSIX.
17879
17880 2010-10-08  Jim Meyering  <meyering@redhat.com>
17881
17882         fdopendir: fix a bug on systems lacking openat and /proc support
17883         OpenBSD 4.7 is one such system.  The most noticeable effect was
17884         failure of any application making nontrivial use of fts: rm, du,
17885         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17886           ./rm: traversal failed: `a': Bad file descriptor
17887         Debugging that, you see that even though FD 6 was closed just
17888         prior to the opendir call in fd_clone_opendir, its resulting
17889         dir->dd_fd was 8, rather than the expected value of 6:
17890
17891         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17892         93                close (fd);
17893         (gdb) n
17894         94                dir = fd_clone_opendir (dupfd);
17895         (gdb) n
17896         95                saved_errno = errno;
17897         (gdb) p dir->dd_fd
17898         $11 = 8
17899
17900         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17901         The problem is that on OpenBSD, fd_clone_opendir has to resort
17902         to using the old-style save/restore CWD mechanism, due to its
17903         lack of openat/proc support, and *that* would steal the FD (6)
17904         that opendir was supposed to use.
17905
17906         The fix is to squirrel away the desired FD so that save_cwd uses a
17907         different one, and then free the dest FD right before calling opendir.
17908         That guarantees opendir will use the required file descriptor.
17909
17910         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17911
17912 2010-10-08  Bruno Haible  <bruno@clisp.org>
17913
17914         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17915         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17916
17917 2010-10-08  Bruno Haible  <bruno@clisp.org>
17918
17919         nanosleep: Make replacement POSIX compliant.
17920         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17921         is out of range.
17922         Reported by Jim Meyering.
17923
17924 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17925
17926         bootstrap: add hook for altering gnulib.mk, for Bison
17927         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17928         the Bison bootstrapping process can rewrite file names and variables
17929         in this file before later parts of 'bootstrap' use the file.
17930         Bison wants to include lib/gnulib.mk from the top-level makefile,
17931         so it needs the file names in this file to be relative to the top
17932         level, not relative to lib; plus it needs variable names to be
17933         rewritten.
17934         (slurp): Use the new function.
17935
17936         bootstrap: reformat for readability
17937         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17938
17939 2010-10-08  Eric Blake  <eblake@redhat.com>
17940
17941         docs: update cygwin progress
17942         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17943         1.7.7.
17944         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17945         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17946         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17947         * doc/posix-functions/carg.texi (carg): Likewise.
17948         * doc/posix-functions/cargf.texi (cargf): Likewise.
17949         * doc/posix-functions/casin.texi (casin): Likewise.
17950         * doc/posix-functions/casinf.texi (casinf): Likewise.
17951         * doc/posix-functions/casinh.texi (casinh): Likewise.
17952         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17953         * doc/posix-functions/catan.texi (catan): Likewise.
17954         * doc/posix-functions/catanf.texi (catanf): Likewise.
17955         * doc/posix-functions/catanh.texi (catanh): Likewise.
17956         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17957         * doc/posix-functions/ccos.texi (ccos): Likewise.
17958         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17959         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17960         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17961         * doc/posix-functions/cexp.texi (cexp): Likewise.
17962         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17963         * doc/posix-functions/cimag.texi (cimag): Likewise.
17964         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17965         * doc/posix-functions/clog.texi (clog): Likewise.
17966         * doc/posix-functions/clogf.texi (clogf): Likewise.
17967         * doc/posix-functions/conj.texi (conj): Likewise.
17968         * doc/posix-functions/conjf.texi (conjf): Likewise.
17969         * doc/posix-functions/cpow.texi (cpow): Likewise.
17970         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17971         * doc/posix-functions/cproj.texi (cproj): Likewise.
17972         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17973         * doc/posix-functions/creal.texi (creal): Likewise.
17974         * doc/posix-functions/crealf.texi (crealf): Likewise.
17975         * doc/posix-functions/csin.texi (csin): Likewise.
17976         * doc/posix-functions/csinf.texi (csinf): Likewise.
17977         * doc/posix-functions/csinh.texi (csinh): Likewise.
17978         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17979         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17980         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17981         * doc/posix-functions/ctan.texi (ctan): Likewise.
17982         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17983         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17984         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17985         * doc/posix-headers/complex.texi (complex.h): Likewise.
17986
17987 2010-10-07  Jim Meyering  <meyering@redhat.com>
17988
17989         parse-datetime: avoid compilation failure on OpenBSD 4.7
17990         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17991         This works around a compilation failure on OpenBSD 4.7:
17992         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17993
17994 2010-10-07  Eric Blake  <eblake@redhat.com>
17995
17996         docs: update cygwin progress
17997         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17998         1.7.6.
17999         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18000         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18001         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18002         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18003         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18004         Likewise.
18005         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18006         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18007         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18008         Likewise.
18009         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18010         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18011         Likewise.
18012         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18013         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18014         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18015         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18016         Likewise.
18017         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18018         Likewise.
18019         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18020
18021         docs: update parse-datetime history
18022         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18023         documentation of this function's history and alternatives.
18024
18025         cygwin: use more robust version check
18026         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18027         exclude an eventual cygwin 1.9.1.
18028         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18030         (gl_FUNC_STRCASESTR): Likewise.
18031         Reported by Bruno Haible.
18032
18033 2010-10-06  Bruno Haible  <bruno@clisp.org>
18034
18035         string, sys_select: Avoid #including large headers unless necessary.
18036         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18037         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18038         OSF/1, BeOS, Haiku.
18039         Reported by Jim Meyering.
18040
18041 2010-10-05  Eric Blake  <eblake@redhat.com>
18042
18043         memmem, strstr, strcasestr: fix bug with long periodic needle
18044         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18045         periodic needle having false positive.
18046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18047         and cygwin 1.7.7.
18048         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18050         (gl_FUNC_STRCASESTR): Likewise.
18051         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18052         * tests/test-memmem.c (main): Expose the bug.
18053         * tests/test-strcasestr.c (main): Likewise.
18054         * tests/test-strstr.c (main): Likewise.
18055         * tests/test-c-strcasestr.c (main): Likewise.
18056         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18057         * doc/posix-functions/strstr.texi (strstr): Likewise.
18058         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18059         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18060
18061 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18062
18063         parse-datetime: do some more renaming
18064         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18065         parse_datetime, not get_date.  Mention the renaming.
18066         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18067         in comments.
18068         * m4/bison.m4: Likewise.
18069
18070 2010-10-05  Eric Blake  <eblake@redhat.com>
18071
18072         parse-datetime: better name than get_date
18073         * NEWS: Reword the deprecation notice.
18074         * modules/get_date: Rename to modules/parse-datetime.
18075         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18076         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18077         * lib/get_date.y: Rename to lib/parse-datetime.y.
18078         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18079         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18080         * doc/getdate.texi: Provide fallback wrapper.
18081         * lib/getdate.h: Move guts, and wrap...
18082         * lib/parse-datetime.h: ...new file.
18083         * lib/parse-datetime.y (get_date): Rename...
18084         (parse_datetime): ...to this.
18085         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18086         (gl_PARSE_DATETIME): ...to this.
18087         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18088         documentation.
18089         * modules/getdate (Files): Provide fallback docs and header.
18090         (Notice, Depends-on): Update references.
18091         * tests/test-parse-datetime.c: Likewise.
18092         * DEPENDENCIES: Likewise.
18093         * MODULES.html.sh (Date and time <time.h>): Likewise.
18094         * doc/parse-datetime.texi (Date input formats)
18095         (Authors of parse_datetime): Likewise.
18096         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18097         (Include): Likewise.
18098         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18099         * gnulib-tool: Likewise.
18100         * m4/bison.m4 (gl_BISON): Likewise.
18101         Suggested by Bruno Haible.
18102
18103 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18104
18105         more ports to Solaris tr, which needs [] around ranges
18106         * gnulib-tool: Solaris tr needs [] around ranges.
18107         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18108         * tests/test-pipe-filter-gi1.c (main): Likewise.
18109         * tests/test-pipe-filter-ii1.c (main): Likewise.
18110
18111 2010-10-05  Eric Blake  <eblake@redhat.com>
18112
18113         bootstrap: fix Solaris regression
18114         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18115         around ranges.
18116         Reported by Pádraig Brady.
18117
18118         bootstrap: work with pkg-config
18119         * build-aux/bootstrap (check_versions): Also transliterate - in
18120         prerequisite name.
18121         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18122         prerequisites that were already found, to avoid confusion.
18123         Reported by Justin Clift.
18124
18125         faccessat: remove unused wrappers
18126         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18127         presence of these wrappers dragged in -lgen on Solaris.
18128         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18129
18130 2010-10-05  Jim Meyering  <meyering@redhat.com>
18131
18132         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18133         * Makefile (sc_pragma_columns): New syntax-check rule.
18134
18135 2010-10-04  Bruno Haible  <bruno@clisp.org>
18136
18137         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18138         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18139         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18140         Reported by Bruce Korb and Eric Blake.
18141
18142 2010-10-04  Bruno Haible  <bruno@clisp.org>
18143
18144         threadlib: Make option --with-libpth-prefix work.
18145         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18146         use $LIBPTH, not just -lpth.
18147
18148 2010-10-04  Bruno Haible  <bruno@clisp.org>
18149
18150         Avoid line length limitation from HP NonStop system header files.
18151         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18152         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18153         * lib/ctype.in.h: Likewise.
18154         * lib/dirent.in.h: Likewise.
18155         * lib/errno.in.h: Likewise.
18156         * lib/fcntl.in.h: Likewise.
18157         * lib/float.in.h: Likewise.
18158         * lib/getopt.in.h: Likewise.
18159         * lib/iconv.in.h: Likewise.
18160         * lib/inttypes.in.h: Likewise.
18161         * lib/langinfo.in.h: Likewise.
18162         * lib/locale.in.h: Likewise.
18163         * lib/math.in.h: Likewise.
18164         * lib/netdb.in.h: Likewise.
18165         * lib/netinet_in.in.h: Likewise.
18166         * lib/poll.in.h: Likewise.
18167         * lib/pthread.in.h: Likewise.
18168         * lib/pty.in.h: Likewise.
18169         * lib/sched.in.h: Likewise.
18170         * lib/se-selinux.in.h: Likewise.
18171         * lib/search.in.h: Likewise.
18172         * lib/signal.in.h: Likewise.
18173         * lib/spawn.in.h: Likewise.
18174         * lib/stdarg.in.h: Likewise.
18175         * lib/stddef.in.h: Likewise.
18176         * lib/stdint.in.h: Likewise.
18177         * lib/stdio.in.h: Likewise.
18178         * lib/stdlib.in.h: Likewise.
18179         * lib/string.in.h: Likewise.
18180         * lib/strings.in.h: Likewise.
18181         * lib/sys_file.in.h: Likewise.
18182         * lib/sys_ioctl.in.h: Likewise.
18183         * lib/sys_select.in.h: Likewise.
18184         * lib/sys_socket.in.h: Likewise.
18185         * lib/sys_stat.in.h: Likewise.
18186         * lib/sys_time.in.h: Likewise.
18187         * lib/sys_times.in.h: Likewise.
18188         * lib/sys_utsname.in.h: Likewise.
18189         * lib/sys_wait.in.h: Likewise.
18190         * lib/sysexits.in.h: Likewise.
18191         * lib/termios.in.h: Likewise.
18192         * lib/time.in.h: Likewise.
18193         * lib/unistd.in.h: Likewise.
18194         * lib/wchar.in.h: Likewise.
18195         * lib/wctype.in.h: Likewise.
18196         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18197         * modules/ctype (Makefile.am): Likewise.
18198         * modules/dirent (Makefile.am): Likewise.
18199         * modules/errno (Makefile.am): Likewise.
18200         * modules/fcntl-h (Makefile.am): Likewise.
18201         * modules/float (Makefile.am): Likewise.
18202         * modules/getopt-posix (Makefile.am): Likewise.
18203         * modules/iconv-h (Makefile.am): Likewise.
18204         * modules/inttypes (Makefile.am): Likewise.
18205         * modules/langinfo (Makefile.am): Likewise.
18206         * modules/locale (Makefile.am): Likewise.
18207         * modules/math (Makefile.am): Likewise.
18208         * modules/netdb (Makefile.am): Likewise.
18209         * modules/netinet_in (Makefile.am): Likewise.
18210         * modules/poll-h (Makefile.am): Likewise.
18211         * modules/pthread (Makefile.am): Likewise.
18212         * modules/pty (Makefile.am): Likewise.
18213         * modules/sched (Makefile.am): Likewise.
18214         * modules/search (Makefile.am): Likewise.
18215         * modules/selinux-h (Makefile.am): Likewise.
18216         * modules/signal (Makefile.am): Likewise.
18217         * modules/spawn (Makefile.am): Likewise.
18218         * modules/stdarg (Makefile.am): Likewise.
18219         * modules/stddef (Makefile.am): Likewise.
18220         * modules/stdint (Makefile.am): Likewise.
18221         * modules/stdio (Makefile.am): Likewise.
18222         * modules/stdlib (Makefile.am): Likewise.
18223         * modules/string (Makefile.am): Likewise.
18224         * modules/strings (Makefile.am): Likewise.
18225         * modules/sys_file (Makefile.am): Likewise.
18226         * modules/sys_ioctl (Makefile.am): Likewise.
18227         * modules/sys_select (Makefile.am): Likewise.
18228         * modules/sys_socket (Makefile.am): Likewise.
18229         * modules/sys_stat (Makefile.am): Likewise.
18230         * modules/sys_time (Makefile.am): Likewise.
18231         * modules/sys_times (Makefile.am): Likewise.
18232         * modules/sys_utsname (Makefile.am): Likewise.
18233         * modules/sys_wait (Makefile.am): Likewise.
18234         * modules/sysexits (Makefile.am): Likewise.
18235         * modules/termios (Makefile.am): Likewise.
18236         * modules/time (Makefile.am): Likewise.
18237         * modules/unistd (Makefile.am): Likewise.
18238         * modules/wchar (Makefile.am): Likewise.
18239         * modules/wctype (Makefile.am): Likewise.
18240
18241 2010-10-04  Bruno Haible  <bruno@clisp.org>
18242
18243         read-file tests: Avoid a test failure on NonStop Kernel.
18244         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18245         a regular file.
18246         Reported by Joachim Schmitz <schmitz@hp.com>.
18247
18248 2010-10-03  Bruno Haible  <bruno@clisp.org>
18249
18250         gnulib-tool: Fixes for --create-testdir with --libtool.
18251         * gnulib-tool (func_get_automake_snippet): Don't augment
18252         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18253         an executable.
18254         (func_create_testdir): Handle module 'alloca' like func_import.
18255         Reported by Bruce Korb <bruce.korb@gmail.com>.
18256
18257 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18258
18259         Avoid some lines longer than 80 characters.
18260         * lib/stdint.in.h: Break long comment lines.
18261         * lib/math.in.h: Likewise.
18262         (_GL_NUM_UINT_WORDS): New macro, for readability.
18263         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18264         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18265         * lib/stdlib.in.h: Likewise.
18266         * lib/spawn.in.h: Likewise.
18267         * lib/sys_socket.in.h: Update an URL.
18268         * lib/sys_stat.in.h: Break long line.
18269
18270 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18271
18272         Improve pmccabe2html.
18273         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18274         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18275         when the sources change. Remove the line in the HTML about "Used
18276         ranges" (which implied that there might be other unused ranges),
18277         rename "Resume" to "Summary" (easier to understand for more users).
18278         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18279         styles, and some unnecessary blank lines.
18280
18281 2010-10-03  Bruno Haible  <bruno@clisp.org>
18282             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18283
18284         acl: Add support for ACLs on NonStop Kernel.
18285         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18286         Check whether the function aclsort() exists.
18287         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18288         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18289         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18290         (acl_nontrivial [HAVE_ACLSORT]: New function.
18291         (file_has_acl): Implement for NonStop Kernel.
18292         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18293         (qset_acl): Implement for NonStop Kernel.
18294         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18295         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18296         (main): Implement for NonStop Kernel.
18297         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18298         Kernel. Handle this flavor.
18299         * tests/test-set-mode-acl.sh: Likewise.
18300         * tests/test-copy-acl.sh: Likewise.
18301         * tests/test-copy-file.sh: Likewise.
18302
18303 2010-10-03  Bruno Haible  <bruno@clisp.org>
18304
18305         Info about ACLs on NonStop Kernel.
18306         * doc/acl-resources.txt: Add info about NonStop Kernel.
18307         References by Joachim Schmitz <schmitz@hp.com>.
18308
18309 2010-10-02  Bruno Haible  <bruno@clisp.org>
18310
18311         Define missing EDQUOT on NonStop Kernel.
18312         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18313         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18314         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18315         missing.
18316         * doc/posix-headers/errno.texi: Mention the NSK bug.
18317         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18318         Reported by Joachim Schmitz <schmitz@hp.com>.
18319
18320 2010-10-02  Bruno Haible  <bruno@clisp.org>
18321
18322         Update doc for POSIX:2008.
18323         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18324         Update URL of POSIX specification.
18325
18326 2010-10-02  Bruno Haible  <bruno@clisp.org>
18327
18328         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18329         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18330         from gnulib, not from Automake.
18331
18332 2010-10-02  Bruno Haible  <bruno@clisp.org>
18333
18334         New module 'system-posix'.
18335         * modules/system-posix: New file.
18336         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18337         module is present.
18338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18339         GNULIB_SYSTEM_POSIX.
18340         * modules/stdlib (Depends-on): Remove sys_wait.
18341         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18342         * doc/posix-functions/system.texi: Mention the new module.
18343         * doc/posix-headers/stdlib.texi: Likewise.
18344         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18345         define test_sys_wait_macros to a no-op.
18346         Reported by Sam Steingold <sds@gnu.org>.
18347
18348 2010-09-30  Bruno Haible  <bruno@clisp.org>
18349
18350         More renaming from 'getdate' to 'get_date'.
18351         * doc/get_date.texi: Renamed from doc/getdate.texi.
18352         * modules/get_date (Files): Update.
18353         * MODULES.html.sh (Date and time <time.h>): Update.
18354         * DEPENDENCIES: Update.
18355         * gnulib-tool: Update comment.
18356         * m4/bison.m4 (gl_BISON): Likewise.
18357         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18358
18359 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18360
18361         bootstrap: support ACLOCAL_FLAGS during aclocal
18362         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18363         can add additional -I dir for third-party .m4 files.
18364
18365 2010-09-30  Eric Blake  <eblake@redhat.com>
18366
18367         bootstrap: use glibtoolize on MacOS
18368         * build-aux/bootstrap (check_versions): Convert libtool into
18369         libtoolize.
18370         (tool search): Move libtool check earlier, and look for
18371         glibtoolize for MacOS.
18372         (gnulib_tool_options): Auto-add --libtool when appropriate.
18373         Reported by Justin Clift.
18374
18375         poll: fix typo that broke test on MacOS
18376         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18377         Reported by Justin Clift.
18378
18379         getdate: rename to get_date
18380         Note: getdate.h is not renamed, to minimize client impact.
18381         * modules/getdate: Mark obsolete.  Move old contents...
18382         * modules/get_date: ...to new module name.
18383         * modules/getdate-tests: Move...
18384         * modules/get_date-tests: ...here.
18385         * m4/getdate.m4: Move...
18386         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18387         * lib/getdate.y: Move...
18388         * lib/get_date.y: ...here.
18389         * tests/test-getdate.c: Move...
18390         * tests/test-get_date.c: ...here.
18391         * doc/posix-functions/getdate.texi (getdate): Update name.
18392         * NEWS: Mention the change.
18393
18394 2010-09-29  Bruno Haible  <bruno@clisp.org>
18395
18396         Separate the module 'waitpid' from the module 'sys_wait'.
18397         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18398         present.
18399         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18400         gl_MODULE_INDICATOR_FOR_TESTS.
18401         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18402         * modules/sys_wait (Depends-on): Remove waitpid.
18403         (Makefile.am): Substitute GNULIB_WAITPID.
18404         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18405         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18406         signature only if the 'waitpid' module is present.
18407         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18408         * NEWS: Mention the change.
18409         * modules/grantpt (Depends-on): Add waitpid.
18410         * modules/wait-process (Depends-on): Likewise.
18411
18412 2010-09-29  Bruno Haible  <bruno@clisp.org>
18413
18414         More tests for module 'sys_wait'.
18415         * modules/sys_wait-c++-tests: New file.
18416         * tests/test-sys_wait-c++.cc: New file.
18417         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18418         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18419
18420 2010-09-29  Bruno Haible  <bruno@clisp.org>
18421
18422         New module 'waitpid'.
18423         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18424         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18425         Don't include <process.h>.
18426         (waitpid): Declare only, using modern idiom.
18427         * m4/waitpid.m4: New file.
18428         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18429         * modules/waitpid: New file.
18430         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18431         (Makefile.am): Update.
18432         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18433
18434 2010-09-28  Bruno Haible  <bruno@clisp.org>
18435
18436         poll: Assume ANSI C.
18437         * lib/poll.c (poll): Use an ANSI C declaration.
18438
18439 2010-09-28  Bruno Haible  <bruno@clisp.org>
18440
18441         poll-h: Create poll.h on all platforms.
18442         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18443         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18444         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18445         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18446         (gl_REPLACE_POLL_H): Don't set POLL_H.
18447         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18448         * modules/poll-h (Depends-on): Add include_next.
18449         (Makefile.am): Create poll.h unconditionally. Substitute also
18450         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18451
18452 2010-09-28  Bruno Haible  <bruno@clisp.org>
18453
18454         Tests for module 'poll-h'.
18455         * modules/poll-h-c++-tests: New file.
18456         * tests/test-poll-h-c++.cc: New file.
18457
18458         Tests for module 'poll-h'.
18459         * modules/poll-h-tests: New file.
18460         * tests/test-poll-h.c: New file.
18461
18462 2010-09-28  Bruno Haible  <bruno@clisp.org>
18463
18464         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18465         * modules/poll-h (Depends-on): Add 'extensions'.
18466
18467 2010-09-28  Bruno Haible  <bruno@clisp.org>
18468
18469         New module 'poll-h'.
18470         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18471         (poll): Use modern idiom.
18472         * modules/poll-h: New file.
18473         * modules/poll (Files): Remove lib/poll.in.h.
18474         (Depends-on): Add poll-h.
18475         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18476         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18477         * m4/poll_h.m4: New file.
18478         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18479         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18480         and invoke gl_REPLACE_POLL_H.
18481         * lib/poll.c: Use common idiom.
18482         * tests/test-poll.c: Likewise.
18483         * doc/posix-headers/poll.texi: Mention the poll-h module.
18484         Suggested by Eric Blake.
18485
18486 2010-09-26  Bruno Haible  <bruno@clisp.org>
18487
18488         sys_wait: Implement WSTOPSIG.
18489         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18490         Reported by Simon Josefsson.
18491
18492 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18493
18494         stdlib, sys_wait: Avoid compilation error on mingw.
18495         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18496
18497 2010-09-26  Bruno Haible  <bruno@clisp.org>
18498
18499         stdlib tests: Avoid code duplication.
18500         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18501         * modules/sys_wait-tests (Files): Likewise.
18502         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18503         * tests/test-stdlib.c: Include test-sys_wait.h.
18504         (main): Invoke test_sys_wait_macros.
18505         * tests/test-sys_wait.c: Include test-sys_wait.h.
18506         (main): Invoke test_sys_wait_macros.
18507
18508 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18509
18510         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18511         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18512         sure Windows sockets are working before calling getaddrinfo.
18513         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18514         * doc/gnulib.texi (Windows sockets): Fix typo.
18515
18516 2010-09-25  Bruno Haible  <bruno@clisp.org>
18517
18518         Tests for module 'regex-quote'.
18519         * modules/regex-quote-tests: New file.
18520         * tests/test-regex-quote.c: New file.
18521
18522         New module 'regex-quote'.
18523         * lib/regex-quote.h: New file.
18524         * lib/regex-quote.c: New file.
18525         * modules/regex-quote: New file.
18526         Suggested by Reuben Thomas <rrt@sc3d.org>.
18527
18528 2010-09-24  Bruno Haible  <bruno@clisp.org>
18529
18530         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18531         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18532
18533 2010-09-23  Bruno Haible  <bruno@clisp.org>
18534
18535         setenv: Relax license.
18536         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18537         Blake.
18538         Requested by Eric Blake.
18539
18540 2010-09-22  Bruno Haible  <bruno@clisp.org>
18541
18542         termios: Relax license.
18543         * modules/termios (License): Change to LGPLv2+.
18544         Requested by Eric Blake.
18545
18546 2010-09-22  Bruno Haible  <bruno@clisp.org>
18547
18548         threadlib: Allow the package to change the default to 'no'.
18549         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18550         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18551         Reported by Paul Eggert.
18552
18553 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18554             Bruno Haible  <bruno@clisp.org>
18555
18556         Fix endless loop in mbmemcasecoll.
18557         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18558         byte.
18559         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18560
18561 2010-09-22  Bruno Haible  <bruno@clisp.org>
18562
18563         Tests for module 'memcoll'.
18564         * modules/memcoll-tests: New file.
18565         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18566
18567         memcoll, xmemcoll: Clarify size vs. length.
18568         * modules/memcoll.c (memcoll0): Clarify specification.
18569         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18570         passed to collate_error.
18571
18572 2010-09-22  Bruno Haible  <bruno@clisp.org>
18573
18574         Tests for module 'memcasecmp'.
18575         * modules/memcasecmp-tests: New file.
18576         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18577
18578 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18579
18580         * lib/pthread.in.h: Add split double-inclusion guard, and include
18581         system <pthread.h> if there is one.  Use @@-style as in other
18582         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18583         pthread.h doesn't.
18584         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18585         (pthread_mutexattr_settype, pthread_mutex_trylock):
18586         New static inline functions, if there's no system <pthread.h>.
18587         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18588         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18589         Approximate with mutexes if the system lacks spinlocks, as in
18590         MacOS.
18591         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18592         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18593         @@-style.  Check for spinlocks separately.
18594         (gl_PTHREAD_DEFAULTS): New macro.
18595         * modules/pthread: Redo to use a more typical style for in.h files.
18596
18597 2010-09-21  Eric Blake  <eblake@redhat.com>
18598
18599         net_if: enhance tests
18600         * tests/test-net_if.c (main): Move signature checks earlier.
18601         Print failures to stderr.
18602         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18603         Document the bug that we do not yet fix.
18604
18605 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18606
18607         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18608         about gnulib, not GSS.
18609
18610 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18611
18612         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18613         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18614         for Emacs.
18615         * build-aux/pmccabe2html: Make Makefile.am example code more
18616         cut-and-paste friendly.
18617
18618 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18619
18620         * tests/test-net_if.c: New file.
18621         * modules/net_if-tests: New file.
18622
18623 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18624
18625         pthread: add pthread_spin_destroy
18626         * lib/pthread.in.h (pthread_spin_destroy): New function.
18627
18628 2010-09-19  Bruno Haible  <bruno@clisp.org>
18629
18630         gnulib-tool: Fix --help output.
18631         * gnulib-tool (func_usage): Fix help message.
18632         Reported by Reuben Thomas <rrt@sc3d.org>.
18633
18634 2010-09-18  Jim Meyering  <meyering@redhat.com>
18635
18636         maint.mk: avoid unexpanded \n in two diagnostics
18637         * top/maint.mk (sc_prohibit_always_true_header_tests):
18638         Don't use a literal \n in a halt=... assignment.  It would not be
18639         expanded, and the two \n bytes would appear in the diagnostic output
18640         rather than the desired newline.  Use halt=$$(printf ... instead.
18641         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18642
18643 2010-09-18  Bruno Haible  <bruno@clisp.org>
18644
18645         netinet_in: Doc tweak.
18646         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18647         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18648
18649 2010-09-18  Jim Meyering  <meyering@redhat.com>
18650
18651         init.sh: correct an outdated comment
18652         * tests/init.sh (create_exe_shims_):  s/function/alias/
18653
18654         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18655         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18656         a file named "*.exe" is removed between the glob expansion and the
18657         processing of that oddly named file.
18658
18659 2010-09-17  Eric Blake  <eblake@redhat.com>
18660
18661         mirbsd: add some more support
18662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18663         in BSD family.
18664         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18665         devices as OpenBSD.
18666         * m4/host-os.m4 (mirbsd): Add MirBSD.
18667
18668         tests: fix unportable assumption on sys/wait.h
18669         * tests/test-sys_wait.c (main): Relax test.
18670         * tests/test-stdlib.c (main): Likewise.
18671
18672         init.sh: accomodate directory with no .exes
18673         * tests/init.sh: Accomodate directory containing only scripts.
18674
18675         tests: avoid compiler warning
18676         * tests/test-stdlib.c (main): Use the variable.
18677
18678         fdutimens, fdutimensat: update signature, again
18679         * lib/utimens.h (gl_futimens): Delete, and move signature...
18680         (fdutimens): ...here.
18681         (fdutimensat): Rearrange signature.
18682         (lutimensat): Rename variable for clarity.
18683         * lib/fdutimensat.c (fdutimensat): Update signature.
18684         * lib/utimens.c (fdutimens): Likewise.
18685         (gl_futimens): Delete.
18686         (utimens, lutimens): Update callers.
18687         * lib/futimens.c (futimens): Likewise.
18688         * tests/test-fdutimensat.c: Likewise.
18689         * tests/test-utimens.c: Likewise.
18690         * tests/test-futimens.h: Update comment.
18691         * NEWS: Mention this.
18692         Suggested by Paul Eggert.
18693
18694 2010-09-17  Bruno Haible  <bruno@clisp.org>
18695
18696         Take over the maintenance of some older macros from Autoconf.
18697         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18698         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18699         GNU Autoconf.
18700         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18701         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18702
18703 2010-09-17  Eric Blake  <eblake@redhat.com>
18704
18705         fdutimensat: drop atflag validation
18706         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18707         with valid fd, to close a race scenario where futimens is
18708         unsupported and FILE was replaced by a symlink.
18709         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18710         accordingly.
18711         Suggested by Paul Eggert.
18712
18713 2010-09-16  Bruno Haible  <bruno@clisp.org>
18714
18715         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18716         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18717
18718 2010-09-16  Bruno Haible  <bruno@clisp.org>
18719
18720         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18721         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18722         login_tty exists.
18723         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18724
18725 2010-09-16  Bruno Haible  <bruno@clisp.org>
18726
18727         login_tty: Make the replacement code work on BSD systems.
18728         * lib/login_tty.c: Include <sys/ioctl.h>.
18729         (login_tty): Use ioctl TIOCSCTTY when available.
18730         * modules/login_tty (Depends-on): Add sys_ioctl.
18731         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18732
18733 2010-09-16  Bruno Haible  <bruno@clisp.org>
18734
18735         login_tty: Stricter unit test.
18736         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18737         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18738         and tcgetsid() after login_tty.
18739         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18740
18741 2010-09-16  Bruno Haible  <bruno@clisp.org>
18742
18743         New module 'tcgetsid'.
18744         * lib/tcgetsid.c: New file.
18745         * m4/tcgetsid.m4: New file.
18746         * modules/tcgetsid: New file.
18747         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18748         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18749         GNULIB_TCGETSID, HAVE_TCGETSID.
18750         * lib/termios.in.h: Include <sys/types.h>.
18751         (tcgetsid): New declaration.
18752         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18753         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18754         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18755         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18756
18757 2010-09-16  Bruno Haible  <bruno@clisp.org>
18758
18759         Tests for module 'termios'.
18760         * modules/termios-c++-tests: New file.
18761         * modules/termios-tests: New file.
18762         * tests/test-termios-c++.cc: New file.
18763         * tests/test-termios.c: New file.
18764
18765         New module 'termios'.
18766         * modules/termios: New file.
18767         * lib/termios.in.h: New file.
18768         * m4/termios_h.m4: New file.
18769         * doc/posix-headers/termios.texi: Mention the new module.
18770
18771 2010-09-16  Eric Blake  <eblake@redhat.com>
18772
18773         fdutimensat: add an atflag parameter
18774         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18775         * lib/utimens.h (fdutimensat): Update prototype.
18776         * tests/test-fdutimensat.c: Adjust test to match.
18777         * NEWS: Document the change.
18778         Suggested by Paul Eggert.
18779
18780 2010-09-16  Bruno Haible  <bruno@clisp.org>
18781
18782         Fix typos in comments.
18783         * lib/striconveh.h: Fix typo in comment.
18784         * lib/login_tty.c (login_tty): Likewise.
18785
18786 2010-09-15  Bruno Haible  <bruno@clisp.org>
18787
18788         stdlib: clarify MirBSD WEXITSTATUS bug
18789         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18790         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18791
18792 2010-09-15  Eric Blake  <eblake@redhat.com>
18793
18794         stdlib: work around MirBSD WEXITSTATUS bug
18795         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18796         * modules/stdlib (Depends-on): Add sys_wait.
18797         * tests/test-sys_wait.c (main): Enhance test.
18798         * tests/test-stdlib.c (main): Likewise.
18799         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18800
18801         docs: mention MacOS issue with WEXITSTATUS(constant)
18802         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18803         issue.
18804         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18805
18806         strnlen: add tests
18807         * modules/strnlen-tests: New file.
18808         * tests/test-strnlen.c: Likewise.
18809
18810 2010-09-14  Bruno Haible  <bruno@clisp.org>
18811
18812         unistr/base: Avoid link errors when module 'libunistring' is also used.
18813         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18814         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18815         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18816         Declare also when HAVE_LIBUNISTRING is set.
18817         Reported by Pádraig Brady <P@draigbrady.com>.
18818
18819 2010-09-14  Eric Blake  <eblake@redhat.com>
18820
18821         test-rawmemchr: make more robust
18822         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18823         (Depends-on, configure.ac): Add needed prerequisites to use it.
18824         * modules/memchr-tests (Files, Depends-on, configure.ac):
18825         Likewise, to avoid implicit reliance on memchr module prereqs.
18826         * tests/test-memchr.c (main): Ensure proper masking.
18827         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18828         reads.
18829
18830         memchr: detect glibc Alpha bug
18831         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18832         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18833         Alpha.
18834         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18835         * tests/test-memchr.c (main): Enhance test.
18836         Reported by Nelson H. F. Beebe.
18837
18838 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18839
18840         fts, getcwd, glob: audit for dirfd returning -1
18841         * lib/fts.c (opendir): Remove #define; no longer used.
18842         (opendirat): New arg PDIR_FD.  All callers changed.
18843         (fts_build, _opendir2): Use new opendirat to avoid the need for
18844         dirfd, or for checking whether dirfd returns a negative value.
18845         Don't use opendir; always use openat followed by fdopendir.
18846         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18847         it.
18848         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18849         returns -1 here.
18850         * modules/fts (Depends-on): Remove dirfd.
18851         * modules/getcwd (Depends-on): Likewise.
18852
18853 2010-09-13  Eric Blake  <eblake@redhat.com>
18854
18855         float: fix broken MirBSD header
18856         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18857         * doc/posix-headers/float.texi (float.h): Document it.
18858
18859 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18860
18861         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18862         * lib/fts.c (opendirat): New arg extra_flags.
18863         (__opendir2): Use it to avoid following symlinks when opening
18864         a directory, if symlinks are not supposed to be followed.  See
18865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18866
18867         fdopendir: preserve argument fd before returning
18868         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18869         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18870         (fdopendir): Use them, arranging for FD to be open to the same
18871         directory that it was when it started.  (It might be temporarily
18872         closed while fdopendir is running, so this not thread- or
18873         signal-safe.)  Be careful to do the right thing even when file
18874         descriptors are scarce and dup fails with errno == EMFILE.  See
18875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18876
18877 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18878
18879         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18880         * NEWS: Document change.
18881         * m4/regex.m4: Disable test for regoff_t size.
18882
18883 2010-09-13  Jim Meyering  <meyering@redhat.com>
18884
18885         fts: don't operate on an invalid file descriptor after failed dup
18886         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18887         negative file descriptor.
18888
18889 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18890
18891         savedir: add streamsavedir, deprecate fdsavedir
18892         * NEWS: Mention deprecation of fdsavedir.
18893         * lib/savedir.c (streamsavedir): New extern function, whose name
18894         ends in "savedir" to be consistent with the others.  This differs
18895         from savedirstream in that it doesn't close its argument.  The
18896         next version of GNU tar will use this instead of fdsavedir, to
18897         avoid some race conditions and conserve file descriptors.
18898         (savedirstream): Reimplement as a wrapper around streamsavedir.
18899         (fdsavedir): Add a comment deprecating this function.  As far as
18900         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18901         * lib/savedir.h (streamsavedir): New decl.
18902         (fdsavedir): Add a comment deprecating this.
18903
18904 2010-09-10  Bruno Haible  <bruno@clisp.org>
18905
18906         langinfo: Fix last commit.
18907         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18908         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18910
18911 2010-09-10  Bruno Haible  <bruno@clisp.org>
18912
18913         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18914         * lib/progreloc.c (O_EXEC): Define fallback.
18915
18916 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18917
18918         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18919         * NEWS: Document recent changes to fcntl-h.
18920         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18921         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18922         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18923         Similarly for O_SEARCH; this last was already true, but not documented.
18924         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18925         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18926         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18927         Likewise.
18928         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18929         is zero, not whether it is defined.
18930         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18931         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18932         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18933
18934 2010-09-10  Bruno Haible  <bruno@clisp.org>
18935
18936         langinfo, nl_langinfo: Fix for IRIX 5.3.
18937         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18938         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18939         HAVE_LANGINFO_YESEXPR.
18940         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18941         HAVE_LANGINFO_YESEXPR.
18942         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18943         HAVE_LANGINFO_T_FMT_AMPM is 0.
18944         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18945         HAVE_LANGINFO_YESEXPR is 0.
18946         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18947         NOEXPR.
18948         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18949         * doc/posix-functions/nl_langinfo.texi: Likewise.
18950         Reported by Eric Blake.
18951
18952 2010-09-10  Bruno Haible  <bruno@clisp.org>
18953
18954         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18955         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18956         on FreeBSD 8.0 and OpenBSD 4.6.
18957         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18958         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18959         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18960         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18961         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18962         ac_includes_default.
18963         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18964
18965 2010-09-09  Eric Blake  <eblake@redhat.com>
18966
18967         strsignal: work around NetBSD bug
18968         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18969         * lib/string.in.h (includes): Likewise.
18970         * doc/posix-functions/strsignal.texi (strsignal): Document the
18971         bug.
18972         Reported by Nelson H. F. Beebe.
18973
18974         gnulib-tool: work with NetBSD /bin/sh
18975         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18976         (func_get_description, func_get_comment, func_get_status)
18977         (func_get_notice, func_get_applicability, func_get_filelist)
18978         (func_get_dependencies, func_get_autoconf_early_snippet)
18979         (func_get_autoconf_snippet, func_get_automake_snippet)
18980         (func_get_include_directive, func_get_link_directive)
18981         (func_get_license, func_get_maintainer, func_import): Avoid
18982         shell syntax errors from parsing syntax extensions.
18983
18984 2010-09-09  Bruno Haible  <bruno@clisp.org>
18985
18986         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18987         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18988         a reliable way to determine whether the 'alias' command works.
18989
18990 2010-09-08  Jim Meyering  <meyering@redhat.com>
18991
18992         init.sh: penalize a set-x-impaired shell; don't disqualify it
18993         * tests/init.sh: Too many shells corrupt application stderr when
18994         you set -x, so we can't afford to disqualify them, since at least
18995         on Irix-6.5, that would disqualify all bourne shells.
18996         Instead, use a two-pass approach.
18997         On the first pass, try to find a shell that meets the stricter
18998         condition that set -x does not corrupt stderr.
18999         If no shell meets the stricter condition, retest each candidate
19000         shell, but without that extra condition.  Finally, when
19001         VERBOSE=yes is requested and set -x might cause trouble, simply
19002         issue a warning and refrain from enabling debug output.
19003
19004 2010-09-08  Eric Blake  <eblake@redhat.com>
19005
19006         unsetenv: fix OpenBSD bug
19007         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19008         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19009         documentation.
19010         Reported by Jim Meyering.
19011
19012         strtod: work around IRIX 6.5 bug
19013         * lib/strtod.c (strtod): Reparse number on shorter string if
19014         exponent parse was invalid.
19015         * tests/test-strtod.c (main): Add check for "0x1p 2".
19016         Reported by Tom G. Christensen.
19017
19018         getopt: optimize previous patch
19019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19020         empty variable.  Speed up awk script.
19021         Reported by Paolo Bonzini.
19022
19023 2010-09-08  Jim Meyering  <meyering@redhat.com>
19024
19025         test.sh: disqualify shells for which set -x corrupts stderr
19026         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19027         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19028         appear in stderr output.  For example, this command:
19029             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19030         prints "P=1" on those two systems:
19031
19032 2010-09-08  Bruno Haible  <bruno@clisp.org>
19033
19034         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19035         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19036         commands, because some shells ignore redirections when there is an
19037         error in the command lookup.
19038         Reported by Eric Blake.
19039
19040 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19041
19042         * lib/regex.h: Fix a mention of `regex_compile' (should be
19043         `re_compile_pattern').
19044         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19045         (re_set_registers): Correct name of parameter in comment.
19046
19047         * doc/regex.texi: Add documentation for missing syntax flags.
19048         Remove commented-out documentation of defunct syntax option
19049         RE_NO_EMPTY_ALTS.
19050         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19051         Add documentation of re_set_registers.
19052         Document trick to re-use a pattern buffer by setting fastmap manually.
19053         Update documentation of struct re_pattern_buffer per public members.
19054         Uncomment documentation of equivalence class operators and
19055         collating symbol operators, since they are now implemented,
19056         Explain leftmost-longest matching in relation to alternatives.
19057         Tidy documentation of substring matching.
19058         Remove POSIX documentation, which is done better in
19059         glibc, and refer the reader there. Keep BSD API documentation, as
19060         that is not readily available elsewhere.
19061
19062 2010-09-07  Eric Blake  <eblake@redhat.com>
19063
19064         getopt: handle POSIXLY_CORRECT set but not exported
19065         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19066         export state of POSIXLY_CORRECT, due to bash set -o posix.
19067         Reported by Dustin J. Mitchell.
19068
19069 2010-09-05  Bruno Haible  <bruno@clisp.org>
19070
19071         gnulib-tool: Highlight the changed options.
19072         * gnulib-tool (func_usage): Display the --import, --add-import,
19073         --remove-import explanations in bold font.
19074
19075 2010-09-06  Karl Berry  <karl@gnu.org>
19076
19077         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19078
19079 2010-09-05  Bruno Haible  <bruno@clisp.org>
19080
19081         uniwidth/width: Update comment.
19082         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19083         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19084
19085 2010-09-05  Bruno Haible  <bruno@clisp.org>
19086
19087         isinf, isnan: Relax license.
19088         * modules/isinf (License): Change from GPL to LGPL, with consent from
19089         Ben Pfaff.
19090         * modules/isnan (License): Likewise.
19091         Requested by Ludovic Courtès.
19092
19093 2010-09-04  Bruno Haible  <bruno@clisp.org>
19094
19095         gnulib-tool: Help migration from --import to --add-import or --update.
19096         * gnulib-tool: Emit a verbose error message when --import is used
19097         without any module name.
19098
19099 2010-09-04  Bruno Haible  <bruno@clisp.org>
19100
19101         Update doc about gnulib-tool.
19102         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19103         'gnulib-tool --update' in more detail.
19104         Reported by Eric Blake.
19105
19106 2010-09-04  Bruno Haible  <bruno@clisp.org>
19107
19108         gnulib-tool: Change --import. New options --add/remove-import.
19109         * gnulib-tool: New options --add-import, --remove-import.
19110         (func_usage): Document them.
19111         (have_associative): Define always.
19112         (func_import): In import mode, don't merge the specified settings with
19113         the cached settings. Implement remove-import mode.
19114         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19115         Explain when to use them versus --import.
19116         (Simple update): Use --add-import instead of --import.
19117         * NEWS: Mention the change.
19118
19119 2010-09-04  Bruno Haible  <bruno@clisp.org>
19120
19121         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19122         separate gnulib.mk.
19123
19124 2010-09-04  Bruno Haible  <bruno@clisp.org>
19125
19126         gnulib-tool: Don't talk about CVS any more.
19127         * gnulib-tool (func_usage, func_import): Write "version control"
19128         instead of CVS.
19129
19130 2010-09-04  Jim Meyering  <meyering@redhat.com>
19131
19132         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19133         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19134         false positives (whose names may be ill-chosen) when searching
19135         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19136         would cause a false-positive.
19137
19138         avoid coreutils "make distcheck" failure
19139         Coreutils tests with an absolute build directory name that contains
19140         a space.  Not quoting this directory name caused a failure.
19141         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19142         * tests/test-vc-list-files-cvs.sh: Likewise.
19143
19144 2010-09-04  Bruno Haible  <bruno@clisp.org>
19145
19146         gnulib-tool: Avoid error when run in a package without Makefile.am.
19147         * gnulib-tool: When collecting the m4dirs in a package that does not
19148         have a Makefile.am, eliminate those directories that contain no
19149         gnulib-cache.m4. Fix expression that counts these directories.
19150
19151 2010-09-04  Bruno Haible  <bruno@clisp.org>
19152
19153         update-copyright test: Improve output when perl is missing or too old.
19154         * tests/test-update-copyright.sh: Move test of Perl version down after
19155         the test whether Perl exists. Provide an explanation relating Perl's
19156         error message to Automake's SKIP: message.
19157
19158 2010-09-04  Bruno Haible  <bruno@clisp.org>
19159
19160         Don't augment PATH in TESTS_ENVIRONMENT.
19161         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19162         set abs_aux_dir instead of augmenting PATH.
19163         * modules/vc-list-files-tests (Makefile.am): Likewise.
19164         * tests/test-update-copyright.sh: Augment PATH here.
19165         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19166         path_prepend_.
19167         * tests/test-vc-list-files-git.sh: Likewise.
19168
19169 2010-09-04  Jim Meyering  <meyering@redhat.com>
19170
19171         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19172         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19173
19174 2010-09-04  Bruno Haible  <bruno@clisp.org>
19175
19176         strdup: Fix compilation error in C++ mode.
19177         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19178         the macro.
19179
19180 2010-09-04  Bruno Haible  <bruno@clisp.org>
19181
19182         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19183         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19184         macro into a function.
19185         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19186
19187 2010-09-04  Bruno Haible  <bruno@clisp.org>
19188
19189         Set PATH_SEPARATOR the same way autoconf does.
19190         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19191         the value of PATH_SEPARATOR the same way autoconf-generated configure
19192         scripts do.
19193         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19194         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19195
19196 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19197
19198         Set PATH_SEPARATOR the same way autoconf does.
19199         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19200         the same way autoconf-generated configure scripts do.
19201         * posix-modules: Likewise.
19202
19203 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19204
19205         hash: fix safe_hasher const typo
19206         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19207         const; otherwise, there is a type error later.
19208
19209 2010-09-02  Jim Meyering  <meyering@redhat.com>
19210
19211         test-update-copyright.sh: require perl 5.8.0
19212         * tests/test-update-copyright.sh: Require 5.8.0,
19213         which Tom G. Christensen has confirmed is adequate,
19214         while 5.6.1 is not.
19215
19216 2010-09-02  Eric Blake  <eblake@redhat.com>
19217
19218         tests: init.sh improvements for re-exec'ing with zsh
19219         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19220         -vx through shell re-exec.
19221         Reported by Tom G. Christensen.
19222
19223         wctype: fix typo in previous commit
19224         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19225         Reported by Ludovic Courtès.
19226
19227 2010-09-02  Jim Meyering  <meyering@redhat.com>
19228
19229         test-update-copyright.sh: skip test if Perl is too old
19230         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19231         Reported by Tom G. Christensen.
19232
19233 2010-09-02  Bruno Haible  <bruno@clisp.org>
19234
19235         wctype: Avoid compilation error on IRIX 6.5.30.
19236         * lib/wctype.in.h (iswblank): Declare with a replacement if
19237         REPLACE_ISWBLANK is set.
19238         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19239         declared. Set REPLACE_ISWBLANK.
19240         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19241         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19242         * doc/posix-headers/wctype.texi: Likewise.
19243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19244
19245 2010-09-01  Bruno Haible  <bruno@clisp.org>
19246
19247         New module 'socketlib'.
19248         * modules/socketlib: New file.
19249         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19250         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19251         * modules/sockets (Depends-on): Add socketlib.
19252         Suggested by Sam Steingold <sds@gnu.org>.
19253
19254 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19255
19256         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19257
19258         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19259         when one needs search access to a directory but not read access.
19260         On systems where it is available, it works in some cases where
19261         O_RDONLY does not, namely on directories that are searchable but
19262         not readable, and which need only to be searchable.  If O_SEARCH
19263         is not available, fall back to the traditional method of using
19264         O_RDONLY.
19265
19266         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19267         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19268         when opening a directory that needs only to be searchable.
19269         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19270         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19271         * lib/openat-proc.c (openat_proc_name): Likewise.
19272         * lib/openat.c (openat_needs_fchdir): Likewise.
19273         * lib/save-cwd.c (save_cwd): Likewise.
19274         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19275
19276 2010-08-28  Bruno Haible  <bruno@clisp.org>
19277
19278         New module 'host-cpu-c-abi'.
19279         * modules/host-cpu-c-abi: New file.
19280         * m4/host-cpu-c-abi.m4: New file, based on part of
19281         clisp/src/m4/general.m4.
19282         Requested by Sam Steingold <sds@gnu.org>.
19283
19284 2010-08-31  Eric Blake  <eblake@redhat.com>
19285         and Jim Meyering  <meyering@redhat.com>
19286
19287         hash: factor, and guard against misbehaving hasher function
19288         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19289         of table->hasher's return value.  Also protect against a hash value
19290         so large that adding it to table->bucket results in a NULL pointer.
19291         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19292         Use it in place of open-coded check-and-abort.
19293
19294 2010-08-30  Bruno Haible  <bruno@clisp.org>
19295
19296         hash: silence spurious clang warning
19297         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19298         Reported by Eric Blake.
19299
19300 2010-08-30  Eric Blake  <eblake@redhat.com>
19301
19302         strstr, memmem, strcasestr: avoid leaked shell message
19303         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19304         FreeBSD.
19305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19306         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19307
19308         tests: silence clang warning
19309         * tests/test-malloca.c (do_allocation): Avoid dead store.
19310
19311 2010-08-29  Bruno Haible  <bruno@clisp.org>
19312
19313         gettext: Fix recent mistake.
19314         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19315
19316 2010-08-29  Bruno Haible  <bruno@clisp.org>
19317
19318         selinux-h: Offer a --without-selinux option.
19319         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19320         --without-selinux was specified, skip all tests and define
19321         HAVE_SELINUX_SELINUX_H to 0.
19322         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19323         set LIB_SELINUX to empty.
19324         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19325         gl_LIBSELINUX. If --without-selinux was specified, replace
19326         selinux/context.h.
19327         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19328
19329 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19330             Bruno Haible  <bruno@clisp.org>
19331
19332         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19333         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19334         of HAVE_REALLOC.
19335         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19336         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19337         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19338         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19339
19340 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19341             Bruno Haible  <bruno@clisp.org>
19342
19343         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19344         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19345         HAVE_CALLOC.
19346         * lib/xmalloc.c: Update accordingly.
19347         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19348         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19349         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19350
19351 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19352             Bruno Haible  <bruno@clisp.org>
19353
19354         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19355         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19356         HAVE_MALLOC.
19357         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19358         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19359         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19360
19361 2010-08-29  Bruno Haible  <bruno@clisp.org>
19362
19363         Update modules list.
19364         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19365         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19366         (String handling <string.h>): Add astrxfrm.
19367         (File system functions): Add readlinkat.
19368
19369 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19370
19371         Tests for module 'realloc-gnu'.
19372         * modules/realloc-gnu-tests: New file.
19373         * tests/test-realloc-gnu.c: New file.
19374
19375         Tests for module 'calloc-gnu'.
19376         * modules/calloc-gnu-tests: New file.
19377         * tests/test-calloc-gnu.c: New file.
19378
19379         Tests for module 'malloc-gnu'.
19380         * modules/malloc-gnu-tests: New file.
19381         * tests/test-malloc-gnu.c: New file.
19382
19383 2010-08-28  Bruno Haible  <bruno@clisp.org>
19384
19385         Rename module 'realloc' -> 'realloc-gnu'.
19386         * modules/realloc-gnu: New file, copied from modules/realloc.
19387         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19388         obsolete.
19389         * modules/mgetgroups (Depends-on): Update.
19390         * doc/posix-functions/realloc.texi: Update.
19391         * NEWS: Mention the change.
19392
19393         Rename module 'calloc' -> 'calloc-gnu'.
19394         * modules/calloc-gnu: New file, copied from modules/calloc.
19395         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19396         obsolete.
19397         * doc/posix-functions/calloc.texi: Update.
19398         * NEWS: Mention the change.
19399
19400         Rename module 'malloc' -> 'malloc-gnu'.
19401         * modules/malloc-gnu: New file, copied from modules/malloc.
19402         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19403         obsolete.
19404         * modules/argp (Depends-on): Update.
19405         * modules/regex (Depends-on): Update.
19406         * doc/posix-functions/malloc.texi: Update.
19407         * NEWS: Mention the change.
19408
19409 2010-08-28  Eric Blake  <eblake@redhat.com>
19410
19411         pread, pwrite: add missing dependency
19412         * modules/pread (Depends-on): Add extensions.
19413         * modules/pwrite (Depends-on): Likewise.
19414
19415 2010-08-28  Bruno Haible  <bruno@clisp.org>
19416
19417         unistr/u*-strchr: Fix tests dependencies.
19418         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19419         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19420         Reported by Ian Beckwith <ianb@erislabs.net>.
19421
19422 2010-08-28  Bruno Haible  <bruno@clisp.org>
19423
19424         read-file: Don't occupy too much unused memory.
19425         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19426
19427 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19428             Eric Blake  <eblake@redhat.com>
19429             Bruno Haible  <bruno@clisp.org>
19430
19431         read-file: Avoid memory reallocations with regular files.
19432         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19433         (fread_file): With regular files, use the remaining length as the
19434         initial buffer size.  Check against overflow.
19435         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19436         sys_stat.
19437
19438 2010-08-28  Bruno Haible  <bruno@clisp.org>
19439
19440         ftello: Relax license.
19441         * modules/ftello (License): Relax to LGPLv2+.
19442         Reported by Eric Blake.
19443
19444 2010-08-28  Bruno Haible  <bruno@clisp.org>
19445
19446         Avoid relocwrapper link errors due to gnulib replacement functions.
19447         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19448         function.
19449         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19450
19451 2010-08-28  Bruno Haible  <bruno@clisp.org>
19452
19453         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19454         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19455         defined.
19456         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19457         Suggested by Eric Blake.
19458
19459 2010-08-28  Bruno Haible  <bruno@clisp.org>
19460
19461         sys_socket, netdb: Ensure socklen_t gets defined.
19462         * modules/sys_socket (Depends-on): Add socklen.
19463         * modules/netdb (Depends-on): Likewise.
19464         * modules/getaddrinfo (Depends-on): Remove socklen.
19465         * modules/getsockopt (Depends-on): Likewise.
19466         * modules/setsockopt (Depends-on): Likewise.
19467         * tests/test-sys_socket.c: Check that socklen_t is defined.
19468         * tests/test-netdb.c: Likewise.
19469         * m4/socklen.m4: Update comments.
19470         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19471
19472 2010-08-27  Eric Blake  <eblake@redhat.com>
19473
19474         login_tty: add missing dependency
19475         * modules/login_tty (Depends-on): Add pty.
19476
19477 2010-08-26  Eric Blake  <eblake@redhat.com>
19478
19479         lib-symbol-versions: fix m4 quoting
19480         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19481         format for AC_LINK_IFELSE.
19482
19483         glob: fix compile test
19484         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19485
19486         btowc: fix missing file
19487         * modules/btowc (Files): Also ship locale-fr.m4.
19488
19489         lseek: fix link test
19490         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19491         AC_LINK_IFELSE.
19492
19493         include_next: silence autoconf 2.68 warning
19494         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19495         AC_COMPILE_IFELSE as special.
19496         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19497         autoconf < 2.68.
19498
19499         acl: fix compilation test
19500         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19501         AC_COMPILE_IFELSE.
19502
19503 2010-08-26  Bruno Haible  <bruno@clisp.org>
19504
19505         Modernize AC_TRY_RUN invocations.
19506         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19507         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19508         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19509         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19510         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19511         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19514         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19515         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19516         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19517         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19518         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19519         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19521         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19522         gl_MBRLEN_NUL_RETVAL): Likewise.
19523         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19524         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19525         Likewise.
19526         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19527         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19528         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19529         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19530         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19531         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19532         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19533         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19534         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19535         Likewise.
19536         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19537         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19539         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19540         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19541         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19542         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19543         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19544         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19546
19547 2010-08-26  Bruno Haible  <bruno@clisp.org>
19548
19549         Modernize AC_TRY_LINK invocations.
19550         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19551         AC_TRY_LINK.
19552         * m4/argp.m4 (gl_ARGP): Likewise.
19553         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19554         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19555         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19556         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19557         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19558         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19559         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19560         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19561         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19562         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19563         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19564         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19565         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19566         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19567         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19568         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19569         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19570         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19571         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19572         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19573         Likewise.
19574         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19575         Likewise.
19576         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19577         Likewise.
19578         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19580         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19581         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19582         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19583         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19584         * m4/servent.m4 (gl_SERVENT): Likewise.
19585         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19586         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19587         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19588         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19589         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19590         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19591         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19592         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19593         * modules/tsearch-tests (configure.ac): Likewise.
19594
19595 2010-08-26  Bruno Haible  <bruno@clisp.org>
19596
19597         Modernize AC_TRY_COMPILE invocations.
19598         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19599         AC_TRY_COMPILE.
19600         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19601         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19602         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19603         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19604         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19605         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19606         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19607         * m4/lock.m4 (gl_LOCK): Likewise.
19608         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19609         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19610         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19611         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19612         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19613         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19614         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19616         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19617         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19618         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19619         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19620         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19621         extraneous semicolon.
19622
19623 2010-08-26  Jim Meyering  <meyering@redhat.com>
19624
19625         stat-time: relax license LGPL
19626         * modules/stat-time (License): Change from GPL to LGPL,
19627         with consent from all contributors, for use in libguile.
19628         Requested by Ludovic Courtès.
19629
19630 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19631
19632         poll: return immediately on POLLHUP.
19633         * lib/poll.c (poll): Always set timeout before wait_timeout is
19634         computed.
19635
19636 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19637
19638         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19639         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19640         rmdir ("dir/.//"), unlinkat.
19641
19642 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19643
19644         stdbool: avoid spurious failure with modern xlc
19645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19646
19647 2010-08-24  Bruno Haible  <bruno@clisp.org>
19648
19649         getloadavg: simplify code
19650         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19651         gl_have_func. Update comments.
19652
19653 2010-08-24  Eric Blake  <eblake@redhat.com>
19654
19655         getloadavg: don't define SVR4 on cygwin
19656         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19657         only define SVR4 when -lkvm is required.
19658         Reported by Yaakov Selkowitz.
19659
19660 2010-08-24  Bruno Haible  <bruno@clisp.org>
19661
19662         priv-set: fix comment
19663         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19664
19665 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19666
19667         priv-set: fix comments
19668         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19669         to match code, as suggested by David Bartley in:
19670         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19671
19672 2010-08-23  Eric Blake  <eblake@redhat.com>
19673
19674         stdbool: avoid rejecting clang
19675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19676         * tests/test-stdbool.c: Enable more tests if using the system
19677         <stdbool.h> instead of the gnulib replacement.
19678         (main): Move xlc bug test to a runtime test for all compilers.
19679         Reported by Anders Kaseorg.
19680
19681         argz: fix shell quoting issue
19682         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19683         Reported by Charles Wilson.
19684
19685 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19686             Erik Faye-Lund <kusmabite@gmail.com>
19687
19688         poll, select: handle ERROR_BROKEN_PIPE.
19689         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19690         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19691         * lib/select.c (win32_compute_revents): Do not mark a pipe
19692         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19693
19694 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19695
19696         fts: allow compilation with C++
19697         * lib/fts_.h: Specify extern "C" linkage with C++.
19698
19699 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19700
19701         Fix gnulib-tool sed script de-commentation for AIX sed.
19702         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19703         sed.
19704
19705 2010-08-17  Eric Blake  <eblake@redhat.com>
19706
19707         test-stddef: test for (some) offsetof bugs
19708         * tests/test-stddef.c: Enhance test to ensure correct type of
19709         offsetof.
19710         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19711         that we are not fixing at this time.
19712
19713 2010-08-15  Bruno Haible  <bruno@clisp.org>
19714
19715         stpncpy: Allow stpncpy to be defined as a macro.
19716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19717         if it's already correctly declared.
19718         * lib/string.in.h (stpncpy): Undefine before redefining.
19719         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19720
19721 2010-08-14  Bruno Haible  <bruno@clisp.org>
19722
19723         Rename module 'memxfrm' to 'amemxfrm'.
19724         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19725         (amemxfrm): Renamed from memxfrm.
19726         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19727         (amemxfrm): Renamed from memxfrm.
19728         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19729         * NEWS: Mention the change.
19730         * MODULES.html.sh (String handling <string.h>): Update.
19731         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19732         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19733         * lib/unicase/u16-casexfrm.c: Likewise.
19734         * lib/unicase/u32-casexfrm.c: Likewise.
19735         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19736         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19737         * lib/uninorm/u16-normxfrm.c: Likewise.
19738         * lib/uninorm/u32-normxfrm.c: Likewise.
19739         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19740         memxfrm.
19741         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19742         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19743         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19744         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19745         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19746         Suggested by Paul Eggert.
19747
19748 2010-08-14  Bruno Haible  <bruno@clisp.org>
19749
19750         Tests for module 'astrxfrm'.
19751         * modules/astrxfrm-tests: New file.
19752         * tests/test-astrxfrm.c: New file.
19753
19754         New module 'astrxfrm'.
19755         * lib/astrxfrm.h: New file.
19756         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19757         * modules/astrxfrm: New file.
19758
19759 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19760
19761         regex: Tweak doc.
19762         * doc/regex.texi (Overview): Don't mention regex.c.
19763         (GNU Regular Expression Compiling): Likewise.
19764         (Match-end-of-line Operator): Mention 'not_eol'.
19765
19766 2010-08-14  Brian Gough  <bjg@gnu.org>
19767             Bruno Haible  <bruno@clisp.org>
19768
19769         git-merge-changelog: add doc relating to use with bzr and hg.
19770         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19771
19772 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19773
19774         pthread: fix pthread.h creation for srcdir != builddir
19775         * modules/pthread (Makefile.am): Fix the rule to work also in a
19776         non-srcdir build.
19777
19778 2010-08-13  Karl Berry  <karl@gnu.org>
19779
19780         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19781         * doc/posix-*/*: force line break before @url of POSIX
19782         specifications.
19783         Suggested by Werner Lemberg.
19784
19785 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         strtod: fix const diagnostic
19788         * lib/strtod.c (strtod): Don't assign const char * to char *,
19789         as this elicits a warning from GCC when warnings are enabled.
19790
19791 2010-08-10  Pádraig Brady <P@draigbrady.com>
19792         and Eric Blake  <eblake@redhat.com>
19793
19794         copy-acl: ignore ENOTSUP on HP-UX
19795         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19796         so that it is available for HP-UX.
19797         * lib/copy-acl.c (qcopy_acl): Use it.
19798         Reported by Patrick M. Callahan.
19799
19800 2010-08-10  Eric Blake  <eblake@redhat.com>
19801
19802         open, chown: relax license
19803         * modules/open (License): Change to LGPLv2+, with consent by all
19804         authors, for use in augeas.
19805         * modules/chown (License): Likewise.
19806         * modules/lchown (Likewise): Likewise.
19807         Requested by Adam Stokes.
19808
19809 2010-08-09  Karl Berry  <karl@gnu.org>
19810
19811         * build-aux/ar-lib: new file, import from Automake.
19812         * config/srclist.txt: autocheck for updates.
19813
19814 2010-08-09  Eric Blake  <eblake@redhat.com>
19815
19816         readlinkat: adjust client modules
19817         * modules/areadlinkat (Depends-on): Use readlinkat, not
19818         symlinkat.
19819         * modules/areadlinkat-with-size (Depends-on): Likewise.
19820
19821         mknod: be more vocal about danger of running tests as root
19822         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19823         root, since that is just asking for problems.
19824         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19825
19826         readlinkat: split into its own module
19827         * modules/symlinkat: Split readlinkat...
19828         * modules/readlinkat: ...into separate module.
19829         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19830         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19831         * lib/symlinkat.c (readlinkat): Move...
19832         * lib/readlinkat.c: ...into new file.
19833         * modules/symlinkat-tests: Split readlinkat test...
19834         * modules/readlinkat-tests: ...into separate module.
19835         * tests/test-symlinkat.c: Split...
19836         * tests/test-readlinkat.c: ...into new file.
19837         * NEWS: Document the split.
19838         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19839         * lib/unistd.in.h (readlinkat): Likewise.
19840         Suggested by Bruno Haible.
19841
19842 2010-08-08  Bruno Haible  <bruno@clisp.org>
19843
19844         memxfrm: Speed up.
19845         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19846         that usually only one call to strxfrm is necessary for each string
19847         part.
19848         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19849
19850 2010-08-07  Karl Berry  <karl@gnu.org>
19851
19852         * doc/posix-headers/limits.texi,
19853         * doc/posix-functions/malloc.texi,
19854         * doc/posix-functions/strsignal.texi: missing @item.
19855         * doc/ld-version-script.texi: spurious leading i.
19856         * doc/regex.texi (Interval Operators): no commas inside @var.
19857
19858 2010-08-01  Bruno Haible  <bruno@clisp.org>
19859
19860         Integrate the regex documentation.
19861         * doc/gnulib.texi: Define 'cn' index.
19862         (Regular expressions): New a chapter that includes regex.texi and
19863         regexprops-generic.texi.
19864         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19865         syntax.
19866
19867         Whitespace cleanup.
19868         * doc/regex.texi: Remove trailing spaces.
19869
19870         Add regex documentation.
19871         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19872         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19873         Written by Kathy A. Hargreaves and Karl Berry.
19874
19875 2010-08-01  Bruno Haible  <bruno@clisp.org>
19876
19877         link: Update documentation.
19878         * doc/posix-functions/link.texi: Update regarding Solaris.
19879
19880 2010-07-31  Bruno Haible  <bruno@clisp.org>
19881
19882         Update modules list.
19883         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19884         (String handling <string.h>): Add memcmp2, memxfrm.
19885         (Container data structures): Add xlist, xsublist, xoset.
19886         (Core language properties): Add alignof, unused-parameter.
19887         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19888         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19889         (Unibyte characters <ctype.h>): New section.
19890         (String handling <string.h>): New section.
19891         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19892         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19893         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19894         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19895         tan, tanh, tanl, y0, y1, yn.
19896         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19897         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19898         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19899         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19900         unlockpt, vdprintf, vdprintf-posix.
19901         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19902         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19903         xconcat-filename.
19904         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19905         getdtablesize, pipe2, pipe2-safer.
19906         (Security): New section.
19907         (Networking functions): Add accept4.
19908         (Signal handling): Add sigpipe.
19909         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19910         mbmemcasecoll.
19911         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19912         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19913         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19914         pipe-filter-ii.
19915         (Misc): Add argp-version-etc, login_tty, parse-duration.
19916
19917 2010-07-31  Bruno Haible  <bruno@clisp.org>
19918
19919         Improve doc in MODULES.html.
19920         * modules/linkat (Description): Add the word "function".
19921         * modules/mkfifo (Description): Likewise.
19922         * modules/mknod (Description): Likewise.
19923         * modules/remove (Description): Likewise.
19924         * modules/renameat (Description): Likewise.
19925         * modules/stat (Description): Likewise.
19926         * modules/symlink (Description): Likewise.
19927         * modules/unlink (Description): Likewise.
19928
19929 2010-07-31  Bruno Haible  <bruno@clisp.org>
19930
19931         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19932         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19933         option --enable/disable-c++ instead of --enable/disable-cxx.
19934         * NEWS: Mention the change.
19935
19936 2010-07-31  Bruno Haible  <bruno@clisp.org>
19937
19938         readlink, areadlink: Relax test a bit.
19939         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19940         alternative to ENOTDIR.
19941         * tests/test-areadlink.h (test_areadlink): Likewise.
19942         Reported by Rainer Tammer.
19943
19944 2010-07-31  Bruno Haible  <bruno@clisp.org>
19945
19946         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19947         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19948         character, perform the search using U_STRCHR.
19949         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19950         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19951         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19952         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19953         Suggested by Paolo Bonzini.
19954
19955 2010-07-31  Bruno Haible  <bruno@clisp.org>
19956
19957         unistr/u*-strstr: Fix dependencies.
19958         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19959         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19960         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19961
19962 2010-07-31  Bruno Haible  <bruno@clisp.org>
19963
19964         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19965         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19966         the beginning of the loop.
19967         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19968         cases in 'switch' statement.
19969
19970         unistr/u8-strchr: Fix several bugs.
19971         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19972         the string. When not found, return NULL, not a pointer near the end.
19973
19974         More tests for unistr/u8-strchr.
19975         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19976         that the function does not read past the first occurrence of the byte
19977         being searched.
19978         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19979         * tests/unistr/test-u16-strchr.c (main): New function.
19980         * tests/unistr/test-u32-strchr.c (main): New function.
19981
19982 2010-07-31  Bruno Haible  <bruno@clisp.org>
19983
19984         posix-modules: Ignore backup files of documentation files.
19985         * posix-modules: grep only through files named *.texi.
19986
19987 2010-07-31  Bruno Haible  <bruno@clisp.org>
19988
19989         symlinkat: Fix documentation.
19990         * doc/posix-functions/readlinkat.texi: Fix module name.
19991
19992 2010-07-31  Bruno Haible  <bruno@clisp.org>
19993
19994         fchownat: Replace also when chown has the trailing slash bug.
19995         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19996         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19997         introduced on 2010-04-10.
19998         Reported by Rainer Tammer.
19999
20000 2010-07-31  Bruno Haible  <bruno@clisp.org>
20001
20002         linkat: Work around AIX 7.1 bug.
20003         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20004         whether linkat handles trailing slash correctly. If not, replace linkat
20005         and define LINKAT_TRAILING_SLASH_BUG.
20006         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20007         check whether (fd1,file1) points to a directory if file1 or file2 ends
20008         in a slash. Code taken from lib/link.c.
20009         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20010         Reported by Rainer Tammer.
20011
20012 2010-07-31  Bruno Haible  <bruno@clisp.org>
20013
20014         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20015         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20016         This disables an xlc optimization that was causing wrong test results.
20017         Reported by Rainer Tammer.
20018
20019 2010-07-31  Bruno Haible  <bruno@clisp.org>
20020
20021         iconv: Work around AIX 6.1..7.1 bug.
20022         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20023         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20024         cross-compiling, guess no on all versions of AIX.
20025         Reported by Rainer Tammer.
20026
20027 2010-07-31  Bruno Haible  <bruno@clisp.org>
20028
20029         readlink: Relax test a bit.
20030         * tests/test-readlink.h (test_readlink): Allow different errno value
20031         when readlink is called with a file name that ends in / and refers to
20032         a file.
20033         Suggested by Eric Blake.
20034         Reported by Rainer Tammer.
20035
20036 2010-07-31  Bruno Haible  <bruno@clisp.org>
20037
20038         copysign: Does not require -lm on glibc systems.
20039         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20040         gl_COMMON_DOUBLE_MATHFUNC.
20041         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20042
20043 2010-07-31  Bruno Haible  <bruno@clisp.org>
20044
20045         duplocale: Work around AIX 7.1 bug.
20046         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20047         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20048         * lib/duplocale.c (rpl_duplocale): Update comment.
20049         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20050         Reported by Rainer Tammer.
20051
20052 2010-07-30  Bruno Haible  <bruno@clisp.org>
20053
20054         dirfd: Avoid link error on AIX 7.1.
20055         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20056         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20057         exist, set REPLACE_DIRFD.
20058         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20059         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20060         * doc/posix-functions/dirfd.texi: Update.
20061         Reported by Rainer Tammer.
20062
20063 2010-07-30  Eric Blake  <eblake@redhat.com>
20064
20065         strtod: next round of AIX fixes
20066         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20067         exponent.
20068         * tests/test-strtod.c (main): Enhance tests.
20069         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20070         Reported by Rainer Tammer.
20071
20072         futimens: fix configure check
20073         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20074         Reported by Bruno Haible.
20075
20076 2010-07-30  Bruno Haible  <bruno@clisp.org>
20077
20078         getline: Update regarding AIX.
20079         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20080         Reported by Rainer Tammer.
20081
20082 2010-07-30  Bruno Haible  <bruno@clisp.org>
20083
20084         wcwidth: Drop replacement on AIX 7.
20085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20086         AIX 7.
20087         Reported by Rainer Tammer.
20088
20089 2010-07-30  Bruno Haible  <bruno@clisp.org>
20090
20091         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20092         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20093         a 'char *'.
20094         Reported by Rainer Tammer.
20095
20096 2010-07-30  Bruno Haible  <bruno@clisp.org>
20097
20098         unlink: Update regarding AIX.
20099         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20100         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20101         Reported by Rainer Tammer.
20102
20103 2010-07-30  Bruno Haible  <bruno@clisp.org>
20104
20105         symlink: Update regarding AIX.
20106         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20107         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20108         Reported by Rainer Tammer.
20109
20110 2010-07-30  Bruno Haible  <bruno@clisp.org>
20111
20112         strndup: Update regarding AIX.
20113         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20114         AIX 7.
20115         Reported by Rainer Tammer.
20116
20117 2010-07-30  Bruno Haible  <bruno@clisp.org>
20118
20119         stat: Update regarding AIX.
20120         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20121         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20122         Reported by Rainer Tammer.
20123
20124 2010-07-30  Bruno Haible  <bruno@clisp.org>
20125
20126         truncl: Fix autoconf test.
20127         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20128         whether truncl works.
20129         Reported by Rainer Tammer.
20130
20131 2010-07-30  Bruno Haible  <bruno@clisp.org>
20132
20133         round: Update regarding AIX.
20134         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20135         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20136         Reported by Rainer Tammer.
20137
20138 2010-07-30  Bruno Haible  <bruno@clisp.org>
20139
20140         rename: Update regarding AIX.
20141         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20142         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20143         Reported by Rainer Tammer.
20144
20145 2010-07-30  Bruno Haible  <bruno@clisp.org>
20146
20147         printf.m4: Update regarding AIX.
20148         * m4/printf.m4: Update comments regarding AIX.
20149         Reported by Rainer Tammer.
20150
20151 2010-07-30  Bruno Haible  <bruno@clisp.org>
20152
20153         iconv: Update regarding AIX.
20154         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20155         AIX 7.
20156         Reported by Rainer Tammer.
20157
20158 2010-07-30  Bruno Haible  <bruno@clisp.org>
20159
20160         getopt: Update regarding AIX.
20161         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20162         no on AIX.
20163         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20164         Reported by Rainer Tammer.
20165
20166 2010-07-30  Bruno Haible  <bruno@clisp.org>
20167
20168         ldexpl; Update regarding AIX.
20169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20170         on AIX 7.
20171         Reported by Rainer Tammer.
20172
20173 2010-07-30  Bruno Haible  <bruno@clisp.org>
20174
20175         frexpl: Update regarding AIX.
20176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20177         on AIX 7.
20178         Reported by Rainer Tammer.
20179
20180 2010-07-30  Bruno Haible  <bruno@clisp.org>
20181
20182         open, fopen: Update regarding AIX.
20183         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20184         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20185         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20186         * doc/posix-functions/fopen.texi: Likewise.
20187         Reported by Rainer Tammer.
20188
20189 2010-07-30  Bruno Haible  <bruno@clisp.org>
20190
20191         chown: Update doc regarding AIX.
20192         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20193         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20194         Reported by Rainer Tammer.
20195
20196 2010-07-30  Eric Blake  <eblake@redhat.com>
20197
20198         strtod: fix bug in replacement function on AIX
20199         * lib/strtod.c (strtod): Special case broken "0x" parse in
20200         underlying strtod.
20201         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20202         * doc/posix-functions/strtod.texi (strtod): Likewise.
20203         Reported by Rainer Tammer.
20204
20205 2010-07-30  Bruno Haible  <bruno@clisp.org>
20206
20207         mbrlen: Fix cross-compilation guess for AIX.
20208         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20209         guess. Leftover from 2008-12-22.
20210
20211 2010-07-30  Bruno Haible  <bruno@clisp.org>
20212
20213         mbrtowc: Fix cross-compilation guess for AIX.
20214         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20215         guess. Leftover from 2008-12-21.
20216
20217 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20218
20219         init.sh: work around trap limitation of some shells
20220         * tests/init.sh (setup_): Move exit trap outside of shell function.
20221
20222 2010-07-29  Eric Blake  <eblake@redhat.com>
20223
20224         strtod: aid debugging
20225         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20226         understanding why strtod is rejected.
20227
20228 2010-07-28  Bruno Haible  <bruno@clisp.org>
20229
20230         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20231         * lib/unistr/u8-chr.c: Include <string.h>.
20232         * tests/unistr/test-u8-chr.c: Likewise.
20233         * tests/unistr/test-u16-chr.c: Likewise.
20234         * tests/unistr/test-u32-chr.c: Likewise.
20235         * tests/unistr/test-u8-strchr.c: Likewise.
20236         * tests/unistr/test-u16-strchr.c: Likewise.
20237         * tests/unistr/test-u32-strchr.c: Likewise.
20238         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20239         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20240         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20241         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20242
20243 2010-07-28  Bruno Haible  <bruno@clisp.org>
20244
20245         Use spaces for indentation, not tabs.
20246         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20247
20248 2010-07-27  Bruno Haible  <bruno@clisp.org>
20249
20250         mbspcasecmp: Fix function specification.
20251         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20252         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20253         Reported by Eric Blake <eblake@redhat.com>.
20254
20255 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20256
20257         timespec: use cast and not conditional, as truncation isn't possible
20258         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20259         instead of a conditional.  Comment about the situation in more detail.
20260         This undoes most of the 2009-10-29 patch.
20261
20262 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20263
20264         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20265         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20266         * lib/unistr/u8-strchr.c: Likewise.
20267         * modules/unistr/u8-chr: Depend on memchr.
20268
20269         unistr/u*-strchr: add tests
20270         * modules/unistr/u8-strchr-tests: New file.
20271         * modules/unistr/u16-strchr-tests: New file.
20272         * modules/unistr/u32-strchr-tests: New file.
20273         * tests/unistr/test-strchr.h: New file.
20274         * tests/unistr/test-u8-strchr.c: New file.
20275         * tests/unistr/test-u16-strchr.c: New file.
20276         * tests/unistr/test-u32-strchr.c: New file.
20277
20278         unistr/u*-chr: test multibyte sequences more
20279         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20280         test vector.
20281         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20282         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20283         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20284
20285         unistr/u*-chr: test multibyte sequences
20286         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20287
20288         unistr/u*-chr: prepare for multibyte tests
20289         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20290         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20291         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20292         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20293         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20294         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20295
20296 2010-07-18  Bruno Haible  <bruno@clisp.org>
20297
20298         unistr/u8-strchr: Optimize non-ASCII argument case.
20299         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20300         because the first byte often matches anyway.
20301         Reported by Pádraig Brady <P@draigbrady.com>.
20302
20303 2010-07-15  Karl Berry  <karl@gnu.org>
20304
20305         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20306
20307 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20308
20309         getcwd: on Solaris, work better if ancestors are inaccessible
20310         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20311         buffer and size, try again with a large buffer.  This works better
20312         on Solaris, since its getcwd succeeds even if the path to the root
20313         is inaccessible, and this is helpful in common cases such as .zfs
20314         hidden directories.  Problem reported by J Chapman Flack in
20315         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20316         Use system getcwd if it's declared, not merely if it's partly
20317         working; use the partly-working test only to avoid needless effort
20318         if the system getcwd fails.
20319         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20320         comment that was already obsolete and is now even more obsolete.
20321         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20322         now might call strdup.
20323
20324 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20325
20326         pthread: Add enough so that coreutils/src/sort.c compiles.
20327         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20328         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20329         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20330         Include <sys/types.h>, in case it defines pthread_t.
20331         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20332         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20333         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20334         (pthread_rwlockattr_t, pthread_spinlock_t):
20335         New typedefs, if HAVE_PTHREAD_T is not defined.
20336         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20337         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20338         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20339         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20340         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20341         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20342         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20343         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20344         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20345         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20346         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20347         New macros.
20348         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20349         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20350         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20351         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20352         (pthread_spin_unlock): New dummy functions.
20353         (pthread_create): Return EAGAIN; don't set errno.
20354         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20355         require AC_C_INLINE.
20356         * modules/pthread (Depends-on): Add sched, time.
20357         (pthread.h): Use AM_V_GEN.
20358
20359 2010-07-13  Bruno Haible  <bruno@clisp.org>
20360
20361         striconveh: Don't malloc memory if the result buffer is sufficient.
20362         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20363         buffer if its size is sufficient.
20364         Reported by Ludovic Courtès <ludo@gnu.org>.
20365
20366 2010-07-13  Bruno Haible  <bruno@clisp.org>
20367
20368         strtod: Add safety check.
20369         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20370
20371 2010-07-12  Bruno Haible  <bruno@clisp.org>
20372
20373         Unify tests that set gl_cv_func_ldexpl_no_libm.
20374         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20375         gl_FUNC_LDEXPL.
20376         (gl_FUNC_LDEXPL): Invoke it.
20377         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20378
20379 2010-07-12  Bruno Haible  <bruno@clisp.org>
20380
20381         Unify tests that set gl_cv_func_ldexp_no_libm.
20382         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20383         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20384         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20385         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20386         * modules/strtod (Files): Add m4/ldexp.m4.
20387
20388 2010-07-12  Bruno Haible  <bruno@clisp.org>
20389
20390         Unify tests that set gl_cv_func_frexpl_no_libm.
20391         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20392         gl_FUNC_FREXPL_NO_LIBM.
20393         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20394         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20395
20396 2010-07-12  Bruno Haible  <bruno@clisp.org>
20397
20398         Unify tests that set gl_cv_func_frexp_no_libm.
20399         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20400         gl_FUNC_FREXP_NO_LIBM.
20401         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20402         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20403
20404 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20405
20406         memcoll: clarify sizes versus lengths, document better, and tweak perf
20407         * lib/memcoll.c (strcoll_loop, memcoll0):
20408         Improve quality of descriptive comments.  Name variables
20409         consistently as to whether they are lengths (which do not include
20410         terminating null) versus sizes (which do).
20411         * lib/xmemcoll.c (xmemcoll0): Likewise.
20412         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20413         returned when s1size == 0; this is easier to compile and saves
20414         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20415
20416 2010-07-12  Bruno Haible  <bruno@clisp.org>
20417
20418         Tests for module '_Exit'.
20419         * modules/_Exit-tests: New file.
20420         * tests/test-_Exit.sh: New file.
20421         * tests/test-_Exit.c: New file.
20422
20423         New module '_Exit'.
20424         * lib/stdlib.in.h (__attribute__): New macro.
20425         (_Exit): New declaration.
20426         * lib/_Exit.c: New file.
20427         * m4/_Exit.m4: New file.
20428         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20429         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20430         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20431         * modules/_Exit: New file.
20432         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20433         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20434
20435 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20436
20437         strtod: make it more-accurate typically, and don't require libm
20438         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20439         Include limits.h.  Don't include string.h.
20440         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20441         (locale_isspace): New function, so that no casts are needed to
20442         check whether *s is a space.
20443         (ldexp): Provide an unused dummy if not available.
20444         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20445         (strtod): Use them.  This implementation prefers to use the
20446         underlying strtod if available, falling back on our own code
20447         only to fix known bugs.  This is more likely to produce an
20448         accurate result.  Also, it avoids the use of libm functions.
20449         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20450         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20451         was absent, but it caused a test failure with coreutils.
20452         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20453         with libm.
20454         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20455         * modules/strtod-tests (Makefile.am): Likewise.
20456
20457 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20458             Bruno Haible  <bruno@clisp.org>
20459
20460         unistr/u8-strchr: Optimize ASCII argument case.
20461         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20462
20463 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20464
20465         (x)memcoll: minor tweaks
20466         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20467         is after the type that it qualifies.
20468         (memcoll0): Likewise.
20469         * lib/memcoll.h (memcoll0): Likewise.
20470         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20471         * lib/xmemcoll.h (xmemcoll0): Likewise.
20472         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20473         differs from memcoll in that the NUL byte is part of the argument.
20474         Omit the abort-checks, as performance is a real issue here.  Plus,
20475         the checks were wrong anyway (an off-by-one error).  Omit local
20476         variable 'diff', as it's a bit clearer that way.
20477         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20478         no longer needed.
20479
20480 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20481
20482         (x)memcoll: speedup when input is known to be NUL delimited
20483         * lib/memcoll.c: Include stdlib.
20484         (memcoll0): New function.
20485         (strcoll_loop): New function, refactored for use in both memcoll
20486         and memcoll0.
20487         * lib/memcoll.h (memcoll0): Add prototype.
20488         * lib/xmemcoll.c (xmemcoll0): New function.
20489         (collate_error): New function, refactored for use in both xmemcoll
20490         and xmemcoll0.
20491         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20492         * m4/memcoll.m4: add inline invocation.
20493
20494 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20495
20496         * build-aux/bootstrap: Remove any local translations
20497         from the translation project synchronization directory,
20498         so that local only translations are not distributed.
20499
20500 2010-07-04  Bruno Haible  <bruno@clisp.org>
20501
20502         fsusage: Clarify which code applies to which platforms.
20503         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20504         platform.
20505         * lib/fsusage.c (get_fs_usage): Likewise.
20506
20507 2010-07-04  Bruno Haible  <bruno@clisp.org>
20508
20509         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20510         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20511         Reported by Martin Lambers <marlam@marlam.de>.
20512
20513 2010-07-04  Jim Meyering  <meyering@redhat.com>
20514
20515         hash: once again explicitly disallow insertion of NULL
20516         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20517         inserting a NULL pointer cannot work with these functions.
20518         Add a comment with details.
20519         This reverts part of the 2010-07-01 commit, 5bef1a35
20520         "hash: extend module to deal with non-pointer keys".
20521
20522 2010-07-01  Bruno Haible  <bruno@clisp.org>
20523
20524         stdbool: Update doc.
20525         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20526         Info from Christian Weisgerber <naddy@mips.inka.de>.
20527
20528 2010-07-01  Jim Meyering  <meyering@redhat.com>
20529
20530         hash: extend module to deal with non-pointer keys
20531         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20532         but that allows insertion of non-pointer entries.
20533         Do not disallow an ENTRY value of NULL.
20534         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20535         * lib/hash.h (hash_insert0): Declare.
20536
20537 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20538
20539         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20540         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20541         not present (i.e. with autoconf 2.59 and when using gettextize, not
20542         gnulib), require AC_GNU_SOURCE instead.
20543
20544 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20545
20546         idpriv-drop: Fix tests.
20547         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20548         not to the test-idpriv-droptemp program.
20549
20550 2010-06-29  Bruno Haible  <bruno@clisp.org>
20551
20552         string: Fix syntax error with g++ 2.96.
20553         * lib/string.in.h (__pure__): Remove definition.
20554         (_GL_ATTRIBUTE_PURE): New macro.
20555         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20556         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20557         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20558
20559 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20560
20561         unitypes: Fix bug introduced on 2010-05-18.
20562         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20563
20564 2010-06-22  Eric Blake  <eblake@redhat.com>
20565
20566         memmem: slight optimization
20567         * lib/str-two-way.h (critical_factorization): Update comments.
20568         Reduce work during factorization phase.
20569         Reported by Carlos Bueno <carlos@bueno.org>.
20570
20571 2010-06-21  Bruno Haible  <bruno@clisp.org>
20572
20573         Fix HAVE_CALLOC_POSIX misnomer.
20574         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20575         !HAVE_CALLOC_POSIX.
20576         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20577         HAVE_CALLOC_POSIX.
20578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20579         instead of HAVE_CALLOC_POSIX.
20580         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20581         HAVE_CALLOC_POSIX.
20582
20583         Use modern idiom for calloc() replacement.
20584         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20585         AC_FUNC_CALLOC.
20586         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20587         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20588         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20589         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20590         (gl_REPLACE_CALLOC): New macro.
20591
20592 2010-06-21  Bruno Haible  <bruno@clisp.org>
20593
20594         Fix HAVE_REALLOC_POSIX misnomer.
20595         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20596         !HAVE_REALLOC_POSIX.
20597         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20598         HAVE_REALLOC_POSIX.
20599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20600         instead of HAVE_REALLOC_POSIX.
20601         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20602         HAVE_REALLOC_POSIX.
20603
20604         Use modern idiom for realloc() replacement.
20605         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20606         AC_FUNC_REALLOC.
20607         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20608         Autoconf's AC_FUNC_REALLOC.
20609         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20610         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20611         (gl_REPLACE_REALLOC): New macro.
20612         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20613
20614 2010-06-21  Bruno Haible  <bruno@clisp.org>
20615
20616         Fix HAVE_MALLOC_POSIX misnomer.
20617         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20618         !HAVE_MALLOC_POSIX.
20619         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20620         HAVE_MALLOC_POSIX.
20621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20622         instead of HAVE_MALLOC_POSIX.
20623         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20624         HAVE_MALLOC_POSIX.
20625
20626         Use modern idiom for malloc() replacement.
20627         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20628         AC_FUNC_MALLOC.
20629         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20630         Autoconf's AC_FUNC_MALLOC.
20631         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20632         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20633         (gl_REPLACE_MALLOC): New macro.
20634         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20635
20636 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20637
20638         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20639         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20640         This macro takes 3 arguments, not 4.
20641
20642 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20643
20644         ipv6: fix detection under mingw
20645         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20646         in6_addr.
20647
20648 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20649
20650         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20651         that strtod() works when cross-compiling to a glibc version known
20652         to work.
20653
20654 2010-06-15  Bruno Haible  <bruno@clisp.org>
20655
20656         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20657
20658 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20659
20660         select: Correct timeout.
20661         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20662
20663 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20664
20665         git-version-gen: init shell var to avoid env var influence
20666         * build-aux/git-version-gen (v): Init shell var to empty.
20667
20668 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20669
20670         priv-set: Don't assume that priv.h exists merely because getppriv does.
20671         See Jan Andersen's bug report about AIX 5L in
20672         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20673         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20674         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20675         * lib/priv-set.h: Likewise.
20676         * tests/test-priv-set.c: Likewise.
20677
20678 2010-06-13  Bruno Haible  <bruno@clisp.org>
20679
20680         relocatable: Make it easier to test whether to install wrappers.
20681         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20682         RELOCATABLE_VIA_WRAPPER.
20683
20684 2010-06-13  Bruno Haible  <bruno@clisp.org>
20685
20686         gnulib-tool: Display specified modules and dependencies differently.
20687         * gnulib-tool (func_show_module_list): New function.
20688         (func_import, func_create_testdir): Invoke it.
20689         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20690
20691 2010-06-13  Bruno Haible  <bruno@clisp.org>
20692
20693         gnulib-tool: Align code of func_import and func_create_testdir.
20694         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20695         specified_modules.
20696
20697 2010-06-12  Jim Meyering  <meyering@redhat.com>
20698
20699         test-inttostr: avoid spurious failure on Solaris 9
20700         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20701         to accept "%ju".  Reported by Bruno Haible.
20702
20703 2010-06-11  Jim Meyering  <meyering@redhat.com>
20704
20705         test-sys_socket: mark variables as used more readably
20706         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20707         as "used" explicitly via (void) statement casts.  This is more
20708         readable than using them in an artificial return expression.
20709         Suggestion from Bruno Haible.
20710
20711 2010-06-11  Bruno Haible  <bruno@clisp.org>
20712
20713         Avoid some more warnings from "gcc -Wwrite-strings".
20714         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20715         to 'const char *'.
20716         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20717         * tests/test-c-strcasestr.c (main): Likewise.
20718         * tests/test-mbscasestr1.c (main): Likewise.
20719         * tests/test-mbscasestr2.c (main): Likewise.
20720         * tests/test-memmem.c (main): Likewise.
20721         * tests/test-strstr.c (main): Likewise.
20722         * tests/test-strcasestr.c (main): Likewise.
20723
20724 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20725
20726         init.sh: change framework_failure_ to fail with status 99, not 1
20727         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20728         automake's parallel-tests rule that this is an unexpected failure,
20729         even if the test is listed in XFAIL_TESTS.
20730
20731 2010-06-11  Jim Meyering  <meyering@redhat.com>
20732
20733         test-inttostr: avoid warnings about 4-6KB literal strings
20734         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20735         Include "macros.h", for its definition of ASSERT.
20736         (CK): s/assert/ASSERT/
20737         * modules/inttostr-tests (Files): Add macros.h.
20738
20739         init.sh: don't use $ME_ or skip_ before they are defined
20740         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20741         their first uses.  Also hoist their companions: warn_, fail_,
20742         framework_failure_, $stderr_fileno.  Prompted by a patch from
20743         Stefano Lattarini.
20744
20745         test-sys_socket: avoid set-but-not-used warnings from gcc
20746         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20747         avoid warning about set-but-not-used variables.
20748
20749         test-xvasprintf: avoid 'const' discard warnings
20750         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20751         "const" when assigning from literal strings.
20752         (test_xasprintf): Add "void" in function argument list to placate
20753         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20754
20755         tests: avoid compilation warnings in argmatch and exclude tests...
20756         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20757         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20758         Since it always exits, declare with the "noreturn" attribute.
20759         * tests/test-argmatch.c: Likewise.
20760
20761         tests: avoid 'const' discard warnings in mbsstr tests
20762         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20763         * tests/test-mbsstr2.c (main): Likewise.
20764
20765         test-verify: avoid warning from gcc's -Wmissing-declarations
20766         * tests/test-verify.c (function): Declare to be static.
20767
20768         test-inttostr.c: include <string.h> for use of strcmp
20769         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20770
20771         test-linkat: avoid failed assertion on "other" architectures
20772         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20773         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20774         sparc: https://bugs.launchpad.net/bugs/591968
20775
20776 2010-06-11  Jim Meyering  <meyering@redhat.com>
20777
20778         printf.m4: avoid autoconf's "Expanded Before Required" warning
20779         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20780         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20781         autoconf warning.
20782
20783 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20784
20785         Replacement header templates are now named with ".in", not "_".
20786         * doc/gnulib-intro.texi: Correct.
20787
20788 2010-06-10  Jim Meyering  <meyering@redhat.com>
20789
20790         inttostr-tests: depend on snprintf, not snprintf-posix
20791         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20792         snprintf-posix, to avoid this aclocal failure:
20793           missing file gnulib-tests/vasnprintf.c
20794           configure.ac:45: error: expected source file, required through \
20795           AC_LIBSOURCES, not found
20796
20797 2010-06-10  Jim Meyering  <meyering@redhat.com>
20798
20799         inttostr: add a new function, inttostr, and tests
20800         The namesake function was not available.  The existence of the
20801         template file, inttostr.c makes its addition nontrivial.
20802         * lib/anytostr.c: Rename from inttostr.c.
20803         (anytostr): Rename from inttostr.
20804         * lib/inttostr.c: New file.
20805         * modules/inttostr (Files): Add anytostr.c.
20806         (Makefile.am): Set lib_SOURCES instead of ...
20807         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20808         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20809         * lib/offtostr.c: Likewise.
20810         * lib/uinttostr.c: Likewise.
20811         * lib/umaxtostr.c: Likewise.
20812         * modules/inttostr-tests: New file.
20813         * tests/test-inttostr.c: New file.  Test these functions.
20814
20815 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20816             Bruno Haible  <bruno@clisp.org>
20817
20818         Add "Extending Gnulib" chapter to manual.
20819         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20820         chapter.
20821         (Extending Gnulib): New chapter.
20822         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20823         chapter.
20824
20825 2010-06-09  Bruno Haible  <bruno@clisp.org>
20826
20827         Avoid relocwrapper link errors due to gnulib replacement functions.
20828         * lib/areadlink.c: Use the system's malloc, realloc functions.
20829         (areadlink): Set errno to ENOMEM explicitly.
20830         * modules/areadlink (Depends-on): Remove malloc-posix.
20831         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20832
20833 2010-06-09  Bruno Haible  <bruno@clisp.org>
20834
20835         Avoid relocwrapper link errors due to gnulib replacement functions.
20836         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20837         * lib/malloca.c: Likewise.
20838         * lib/relocatable.c: Likewise.
20839         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20840         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20841         * lib/setenv.c: Use the system's malloc, realloc functions.
20842         * lib/strerror.c: Use the system's sprintf function.
20843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20844
20845 2010-06-04  Bruno Haible  <bruno@clisp.org>
20846
20847         Prefer documented low-level autoconf macro names.
20848         * m4/lib-link.m4: Use m4_translit instead of translit.
20849         * m4/environ.m4: Likewise.
20850         * m4/mathfunc.m4: Likewise.
20851         * m4/onceonly.m4: Likewise.
20852         * m4/stdint.m4: Likewise.
20853         Suggested by Eric Blake.
20854
20855 2010-06-04  Martin Lambers  <marlam@marlam.de>
20856             Bruno Haible  <bruno@clisp.org>
20857
20858         havelib: Allow library names with '+' characters.
20859         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20860         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20861
20862 2010-06-09  Bruno Haible  <bruno@clisp.org>
20863
20864         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20865         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20866         realloc failed.
20867
20868 2010-06-08  Peter Simons  <simons@cryp.to>
20869
20870         maint.mk: make the news-check rule more configurable
20871         * top/maint.mk (news-check-lines-spec): New variable.
20872         (news-check): Use "sed -n 1,10p" in place of "head".
20873
20874 2010-06-07  Jim Meyering  <meyering@redhat.com>
20875
20876         do-release-commit-and-tag: fix typo in --help
20877         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20878
20879         regex: avoid new dead-code warning with gcc-4.6.0
20880         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20881         if-block containing a while-loop.  It's been unused for at least
20882         5 years.
20883
20884 2010-06-05  Bruno Haible  <bruno@clisp.org>
20885
20886         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20887         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20888
20889 2010-06-04  Bruno Haible  <bruno@clisp.org>
20890
20891         Update to GNU gettext 0.18.1.
20892         * modules/gettext (configure.ac): Require gettext infrastructure from
20893         version 0.18.1.
20894
20895 2010-06-03  Bruno Haible  <bruno@clisp.org>
20896
20897         Don't use AC_LIBOBJ with file names in subdirectories.
20898         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20899         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20900         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20901         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20902         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20903         gl_LIBUNISTRING_LIBSOURCE.
20904         (Makefile.am): Augment lib_SOURCES here, conditionally.
20905         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20906
20907 2010-06-03  Bruno Haible  <bruno@clisp.org>
20908
20909         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20910         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20911         expansion does not end with a newline.
20912         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20913         unnecessary newline.
20914
20915 2010-06-03  Bruno Haible  <bruno@clisp.org>
20916
20917         Reduce dependencies.
20918         * tests/test-quotearg.h: New file, extracted from
20919         tests/test-quotearg.c.
20920         * tests/test-quotearg-simple.c: New file, extracted from
20921         tests/test-quotearg.c.
20922         * tests/test-quotearg.c: Don't include <ctype.h>.
20923         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20924         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20925         use_quote_double_quotes, use_quotearg_colon): Moved to
20926         tests/test-quotearg.h.
20927         (results_g, flag_results, custom_quotes, custom_results): Moved
20928         to tests/test-quotearg-simple.c.
20929         (main): Moved the part that does not depend on gettext to
20930         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20931         performed.
20932         * modules/quotearg-simple: New file.
20933         * modules/quotearg-simple-tests: New file.
20934         * modules/quotearg (Depends-on): Add quotearg-simple.
20935         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20936         (Files): Add tests/test-quotearg.h.
20937         Reported by Paolo Bonzini.
20938
20939 2010-06-03  Bruno Haible  <bruno@clisp.org>
20940
20941         Reduce dependencies.
20942         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20943
20944 2010-06-03  Bruno Haible  <bruno@clisp.org>
20945
20946         time: Undefine more broken macros.
20947         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20948         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20949         Reported by Eric Blake.
20950
20951 2010-06-03  Bruno Haible  <bruno@clisp.org>
20952
20953         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20954         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20955         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20956         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20957         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20958         Reported by Ludovic Courtès <ludo@gnu.org>.
20959
20960 2010-06-02  Eric Blake  <eblake@redhat.com>
20961
20962         time: work with mingw + pthreads-win32 library
20963         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20964         if timespec is defined only in pthread.h.
20965         * modules/time (Makefile.am): Substitute it.
20966         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20967         <pthread.h>, when needed.
20968         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20969         from the library.
20970
20971 2010-05-31  Bruno Haible  <bruno@clisp.org>
20972
20973         Avoid expanding two macros in the wrong order.
20974         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20975         gl_LIBUNISTRING if it is defined.
20976         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20977         autoconf >= 2.64.
20978         Reported by Ludovic Courtès <ludo@gnu.org>.
20979
20980 2010-05-27  Jim Meyering  <meyering@redhat.com>
20981
20982         maint.mk: also prohibit "#undef" of always-defined symbols
20983         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20984         Allow more than one space before the symbol name.
20985         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20986         the regexp uses alternation.
20987
20988 2010-05-26  Eric Blake  <eblake@redhat.com>
20989
20990         maint.mk: avoid echo -e
20991         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20992         Convert all uses of echo -* to printf.
20993         Reported by Matthias Bolte.
20994
20995 2010-05-25  Bruno Haible  <bruno@clisp.org>
20996
20997         Update to GNU gettext 0.18, part 2.
20998         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20999         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21000
21001 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21002
21003         Add missing include in test-pwrite.c.
21004         * tests/test-pwrite.c: Include string.h, for strcmp.
21005
21006 2010-05-24  Bruno Haible  <bruno@clisp.org>
21007
21008         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21009
21010 2010-05-24  Bruno Haible  <bruno@clisp.org>
21011
21012         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21013         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21014         iconveh_error argument.
21015         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21016         U_STRCONV_TO_LOCALE.
21017         * lib/unistr/u16-strcoll.c: Likewise.
21018         * lib/unistr/u32-strcoll.c: Likewise.
21019         * modules/unistr/u8-strcoll (Depends-on): Add
21020         uniconv/u8-strconv-to-enc, localcharset. Remove
21021         uniconv/u8-strconv-to-locale.
21022         (configure.ac): Bump version number.
21023         * modules/unistr/u16-strcoll (Depends-on): Add
21024         uniconv/u16-strconv-to-enc, localcharset. Remove
21025         uniconv/u16-strconv-to-locale.
21026         (configure.ac): Bump version number.
21027         * modules/unistr/u32-strcoll (Depends-on): Add
21028         uniconv/u32-strconv-to-enc, localcharset. Remove
21029         uniconv/u32-strconv-to-locale.
21030         (configure.ac): Bump version number.
21031
21032 2010-05-24  Bruno Haible  <bruno@clisp.org>
21033
21034         Avoid a test failure on NetBSD 5.0.
21035         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21036         an iconv() bug.
21037
21038 2010-05-24  Bruno Haible  <bruno@clisp.org>
21039
21040         Adjust #include directive style.
21041         * modules/regex (Includes): Recommend to write <regex.h>.
21042
21043 2010-05-24  Bruno Haible  <bruno@clisp.org>
21044
21045         regex: Don't require alloca.
21046         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21047         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21048         only inside if (0).
21049
21050 2010-05-23  Jim Meyering  <meyering@redhat.com>
21051
21052         test-renameat.c: include <sys/stat.h>
21053         * tests/test-renameat.c: Include <sys/stat.h>; required for
21054         definition of S_IS* macros.
21055
21056 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21057
21058         Update maintainer documentation for 'relocatable-prog' module.
21059         * doc/relocatable-maint.texi: Update.
21060         Comments by Bruno Haible.
21061
21062 2010-05-23  Bruno Haible  <bruno@clisp.org>
21063
21064         git-merge-changelog: Enable --split-merged-entry by default.
21065         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21066         (usage): Don't mention this option any more.
21067         Reported by Ralf Wildenhues.
21068
21069 2010-05-23  Jim Meyering  <meyering@redhat.com>
21070
21071         test-pwrite: do not leave behind a test file named "out"
21072         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21073         The trivial-looking use of init.sh is really necessary.
21074         It ensures that the temporary file, "out", is created in
21075         a temporary directory, and removed upon termination.
21076         * tests/test-pwrite.sh: Re-add file.
21077         * modules/pwrite-tests: Reference it.
21078
21079 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21080
21081         Fix output redirection buglet in init.sh.
21082         * tests/init.sh: Fix redirection of stderr.
21083
21084 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21085
21086         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21087
21088 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21089
21090         * modules/valgrind-tests: New file.
21091         * m4/valgrind-tests.m4: New file.
21092         * doc/valgrind-tests.texi: New file.
21093         * doc/gnulib.texi (Running self-tests under valgrind): New
21094         section.
21095
21096 2010-05-19  Bruno Haible  <bruno@clisp.org>
21097
21098         Clean up dead code in recent commit.
21099         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21100         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21101         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21102         Suggested by Paolo Bonzini.
21103
21104 2010-05-19  Bruno Haible  <bruno@clisp.org>
21105
21106         Avoid valgrind error reports from libunistring.
21107         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21108         * modules/libunistring (Files): Add it.
21109         * modules/libunistring-optional (Files): Likewise.
21110
21111 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21112             Bruno Haible  <bruno@clisp.org>
21113
21114         New module 'libunistring-optional'.
21115         * modules/libunistring-optional: New file.
21116         * m4/libunistring-base.m4: New file.
21117         * m4/libunistring-optional.m4: New file.
21118         * lib/unicase.in.h: Renamed from lib/unicase.h.
21119         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21120         * lib/unictype.in.h: Renamed from lib/unictype.h.
21121         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21122         * lib/uniname.in.h: Renamed from lib/uniname.h.
21123         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21124         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21125         * lib/unistr.in.h: Renamed from lib/unistr.h.
21126         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21127         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21128         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21129         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21130         gl_LIBUNISTRING. If the library was found, determine the installed
21131         version and set LIBUNISTRING_VERSION.
21132         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21133         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21134         handle a configuration option --with-included-libunistring.
21135         * modules/libunistring (Files): Add m4/absolute-header.m4.
21136         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21137         Add m4/libunistring-base.m4.
21138         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21139         (Makefile.am): Build unicase.h from unicase.in.h.
21140         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21141         Add m4/libunistring-base.m4.
21142         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21143         (Makefile.am): Build uniconv.h from uniconv.in.h.
21144         * modules/unictype/base (Files): Use unictype.in.h instead of
21145         unictype.h. Add m4/libunistring-base.m4.
21146         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21147         (Makefile.am): Build unictype.h from unictype.in.h.
21148         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21149         Add m4/libunistring-base.m4.
21150         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21151         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21152         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21153         Add m4/libunistring-base.m4.
21154         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21155         (Makefile.am): Build uniname.h from uniname.in.h.
21156         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21157         Add m4/libunistring-base.m4.
21158         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21159         (Makefile.am): Build uninorm.h from uninorm.in.h.
21160         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21161         unistdio.h. Add m4/libunistring-base.m4.
21162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21163         (Makefile.am): Build unistdio.h from unistdio.in.h.
21164         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21165         Add m4/libunistring-base.m4.
21166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21167         (Makefile.am): Build unistr.h from unistr.in.h.
21168         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21169         Add m4/libunistring-base.m4.
21170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21171         (Makefile.am): Build unitypes.h from unitypes.in.h.
21172         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21173         Add m4/libunistring-base.m4.
21174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21175         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21176         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21177         uniwidth.h. Add m4/libunistring-base.m4.
21178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21179         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21180         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21181         instead of augmenting lib_SOURCES.
21182         * modules/unicase/empty-suffix-context: Likewise.
21183         * modules/unicase/locale-language: Likewise.
21184         * modules/unicase/tolower: Likewise.
21185         * modules/unicase/totitle: Likewise.
21186         * modules/unicase/toupper: Likewise.
21187         * modules/unicase/u8-casecmp: Likewise.
21188         * modules/unicase/u8-casecoll: Likewise.
21189         * modules/unicase/u8-casefold: Likewise.
21190         * modules/unicase/u8-casexfrm: Likewise.
21191         * modules/unicase/u8-ct-casefold: Likewise.
21192         * modules/unicase/u8-ct-tolower: Likewise.
21193         * modules/unicase/u8-ct-totitle: Likewise.
21194         * modules/unicase/u8-ct-toupper: Likewise.
21195         * modules/unicase/u8-is-cased: Likewise.
21196         * modules/unicase/u8-is-casefolded: Likewise.
21197         * modules/unicase/u8-is-lowercase: Likewise.
21198         * modules/unicase/u8-is-titlecase: Likewise.
21199         * modules/unicase/u8-is-uppercase: Likewise.
21200         * modules/unicase/u8-prefix-context: Likewise.
21201         * modules/unicase/u8-suffix-context: Likewise.
21202         * modules/unicase/u8-tolower: Likewise.
21203         * modules/unicase/u8-totitle: Likewise.
21204         * modules/unicase/u8-toupper: Likewise.
21205         * modules/unicase/u16-casecmp: Likewise.
21206         * modules/unicase/u16-casecoll: Likewise.
21207         * modules/unicase/u16-casefold: Likewise.
21208         * modules/unicase/u16-casexfrm: Likewise.
21209         * modules/unicase/u16-ct-casefold: Likewise.
21210         * modules/unicase/u16-ct-tolower: Likewise.
21211         * modules/unicase/u16-ct-totitle: Likewise.
21212         * modules/unicase/u16-ct-toupper: Likewise.
21213         * modules/unicase/u16-is-cased: Likewise.
21214         * modules/unicase/u16-is-casefolded: Likewise.
21215         * modules/unicase/u16-is-lowercase: Likewise.
21216         * modules/unicase/u16-is-titlecase: Likewise.
21217         * modules/unicase/u16-is-uppercase: Likewise.
21218         * modules/unicase/u16-prefix-context: Likewise.
21219         * modules/unicase/u16-suffix-context: Likewise.
21220         * modules/unicase/u16-tolower: Likewise.
21221         * modules/unicase/u16-totitle: Likewise.
21222         * modules/unicase/u16-toupper: Likewise.
21223         * modules/unicase/u32-casecmp: Likewise.
21224         * modules/unicase/u32-casecoll: Likewise.
21225         * modules/unicase/u32-casefold: Likewise.
21226         * modules/unicase/u32-casexfrm: Likewise.
21227         * modules/unicase/u32-ct-casefold: Likewise.
21228         * modules/unicase/u32-ct-tolower: Likewise.
21229         * modules/unicase/u32-ct-totitle: Likewise.
21230         * modules/unicase/u32-ct-toupper: Likewise.
21231         * modules/unicase/u32-is-cased: Likewise.
21232         * modules/unicase/u32-is-casefolded: Likewise.
21233         * modules/unicase/u32-is-lowercase: Likewise.
21234         * modules/unicase/u32-is-titlecase: Likewise.
21235         * modules/unicase/u32-is-uppercase: Likewise.
21236         * modules/unicase/u32-prefix-context: Likewise.
21237         * modules/unicase/u32-suffix-context: Likewise.
21238         * modules/unicase/u32-tolower: Likewise.
21239         * modules/unicase/u32-totitle: Likewise.
21240         * modules/unicase/u32-toupper: Likewise.
21241         * modules/unicase/ulc-casecmp: Likewise.
21242         * modules/unicase/ulc-casecoll: Likewise.
21243         * modules/unicase/ulc-casexfrm: Likewise.
21244         * modules/uniconv/u8-conv-from-enc: Likewise.
21245         * modules/uniconv/u8-conv-to-enc: Likewise.
21246         * modules/uniconv/u8-strconv-from-enc: Likewise.
21247         * modules/uniconv/u8-strconv-from-locale: Likewise.
21248         * modules/uniconv/u8-strconv-to-enc: Likewise.
21249         * modules/uniconv/u8-strconv-to-locale: Likewise.
21250         * modules/uniconv/u16-conv-from-enc: Likewise.
21251         * modules/uniconv/u16-conv-to-enc: Likewise.
21252         * modules/uniconv/u16-strconv-from-enc: Likewise.
21253         * modules/uniconv/u16-strconv-from-locale: Likewise.
21254         * modules/uniconv/u16-strconv-to-enc: Likewise.
21255         * modules/uniconv/u16-strconv-to-locale: Likewise.
21256         * modules/uniconv/u32-conv-from-enc: Likewise.
21257         * modules/uniconv/u32-conv-to-enc: Likewise.
21258         * modules/uniconv/u32-strconv-from-enc: Likewise.
21259         * modules/uniconv/u32-strconv-from-locale: Likewise.
21260         * modules/uniconv/u32-strconv-to-enc: Likewise.
21261         * modules/uniconv/u32-strconv-to-locale: Likewise.
21262         * modules/unictype/bidicategory-byname: Likewise.
21263         * modules/unictype/bidicategory-name: Likewise.
21264         * modules/unictype/bidicategory-of: Likewise.
21265         * modules/unictype/bidicategory-test: Likewise.
21266         * modules/unictype/block-list: Likewise.
21267         * modules/unictype/block-test: Likewise.
21268         * modules/unictype/category-C: Likewise.
21269         * modules/unictype/category-Cc: Likewise.
21270         * modules/unictype/category-Cf: Likewise.
21271         * modules/unictype/category-Cn: Likewise.
21272         * modules/unictype/category-Co: Likewise.
21273         * modules/unictype/category-Cs: Likewise.
21274         * modules/unictype/category-L: Likewise.
21275         * modules/unictype/category-Ll: Likewise.
21276         * modules/unictype/category-Lm: Likewise.
21277         * modules/unictype/category-Lo: Likewise.
21278         * modules/unictype/category-Lt: Likewise.
21279         * modules/unictype/category-Lu: Likewise.
21280         * modules/unictype/category-M: Likewise.
21281         * modules/unictype/category-Mc: Likewise.
21282         * modules/unictype/category-Me: Likewise.
21283         * modules/unictype/category-Mn: Likewise.
21284         * modules/unictype/category-N: Likewise.
21285         * modules/unictype/category-Nd: Likewise.
21286         * modules/unictype/category-Nl: Likewise.
21287         * modules/unictype/category-No: Likewise.
21288         * modules/unictype/category-P: Likewise.
21289         * modules/unictype/category-Pc: Likewise.
21290         * modules/unictype/category-Pd: Likewise.
21291         * modules/unictype/category-Pe: Likewise.
21292         * modules/unictype/category-Pf: Likewise.
21293         * modules/unictype/category-Pi: Likewise.
21294         * modules/unictype/category-Po: Likewise.
21295         * modules/unictype/category-Ps: Likewise.
21296         * modules/unictype/category-S: Likewise.
21297         * modules/unictype/category-Sc: Likewise.
21298         * modules/unictype/category-Sk: Likewise.
21299         * modules/unictype/category-Sm: Likewise.
21300         * modules/unictype/category-So: Likewise.
21301         * modules/unictype/category-Z: Likewise.
21302         * modules/unictype/category-Zl: Likewise.
21303         * modules/unictype/category-Zp: Likewise.
21304         * modules/unictype/category-Zs: Likewise.
21305         * modules/unictype/category-and: Likewise.
21306         * modules/unictype/category-and-not: Likewise.
21307         * modules/unictype/category-byname: Likewise.
21308         * modules/unictype/category-name: Likewise.
21309         * modules/unictype/category-none: Likewise.
21310         * modules/unictype/category-of: Likewise.
21311         * modules/unictype/category-or: Likewise.
21312         * modules/unictype/category-test: Likewise.
21313         * modules/unictype/combining-class: Likewise.
21314         * modules/unictype/ctype-alnum: Likewise.
21315         * modules/unictype/ctype-alpha: Likewise.
21316         * modules/unictype/ctype-blank: Likewise.
21317         * modules/unictype/ctype-cntrl: Likewise.
21318         * modules/unictype/ctype-digit: Likewise.
21319         * modules/unictype/ctype-graph: Likewise.
21320         * modules/unictype/ctype-lower: Likewise.
21321         * modules/unictype/ctype-print: Likewise.
21322         * modules/unictype/ctype-punct: Likewise.
21323         * modules/unictype/ctype-space: Likewise.
21324         * modules/unictype/ctype-upper: Likewise.
21325         * modules/unictype/ctype-xdigit: Likewise.
21326         * modules/unictype/decimal-digit: Likewise.
21327         * modules/unictype/digit: Likewise.
21328         * modules/unictype/mirror: Likewise.
21329         * modules/unictype/numeric: Likewise.
21330         * modules/unictype/property-alphabetic: Likewise.
21331         * modules/unictype/property-ascii-hex-digit: Likewise.
21332         * modules/unictype/property-bidi-arabic-digit: Likewise.
21333         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21334         * modules/unictype/property-bidi-block-separator: Likewise.
21335         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21336         * modules/unictype/property-bidi-common-separator: Likewise.
21337         * modules/unictype/property-bidi-control: Likewise.
21338         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21339         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21340         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21341         * modules/unictype/property-bidi-european-digit: Likewise.
21342         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21343         * modules/unictype/property-bidi-left-to-right: Likewise.
21344         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21345         * modules/unictype/property-bidi-other-neutral: Likewise.
21346         * modules/unictype/property-bidi-pdf: Likewise.
21347         * modules/unictype/property-bidi-segment-separator: Likewise.
21348         * modules/unictype/property-bidi-whitespace: Likewise.
21349         * modules/unictype/property-byname: Likewise.
21350         * modules/unictype/property-combining: Likewise.
21351         * modules/unictype/property-composite: Likewise.
21352         * modules/unictype/property-currency-symbol: Likewise.
21353         * modules/unictype/property-dash: Likewise.
21354         * modules/unictype/property-decimal-digit: Likewise.
21355         * modules/unictype/property-default-ignorable-code-point: Likewise.
21356         * modules/unictype/property-deprecated: Likewise.
21357         * modules/unictype/property-diacritic: Likewise.
21358         * modules/unictype/property-extender: Likewise.
21359         * modules/unictype/property-format-control: Likewise.
21360         * modules/unictype/property-grapheme-base: Likewise.
21361         * modules/unictype/property-grapheme-extend: Likewise.
21362         * modules/unictype/property-grapheme-link: Likewise.
21363         * modules/unictype/property-hex-digit: Likewise.
21364         * modules/unictype/property-hyphen: Likewise.
21365         * modules/unictype/property-id-continue: Likewise.
21366         * modules/unictype/property-id-start: Likewise.
21367         * modules/unictype/property-ideographic: Likewise.
21368         * modules/unictype/property-ids-binary-operator: Likewise.
21369         * modules/unictype/property-ids-trinary-operator: Likewise.
21370         * modules/unictype/property-ignorable-control: Likewise.
21371         * modules/unictype/property-iso-control: Likewise.
21372         * modules/unictype/property-join-control: Likewise.
21373         * modules/unictype/property-left-of-pair: Likewise.
21374         * modules/unictype/property-line-separator: Likewise.
21375         * modules/unictype/property-logical-order-exception: Likewise.
21376         * modules/unictype/property-lowercase: Likewise.
21377         * modules/unictype/property-math: Likewise.
21378         * modules/unictype/property-non-break: Likewise.
21379         * modules/unictype/property-not-a-character: Likewise.
21380         * modules/unictype/property-numeric: Likewise.
21381         * modules/unictype/property-other-alphabetic: Likewise.
21382         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21383         * modules/unictype/property-other-grapheme-extend: Likewise.
21384         * modules/unictype/property-other-id-continue: Likewise.
21385         * modules/unictype/property-other-id-start: Likewise.
21386         * modules/unictype/property-other-lowercase: Likewise.
21387         * modules/unictype/property-other-math: Likewise.
21388         * modules/unictype/property-other-uppercase: Likewise.
21389         * modules/unictype/property-paired-punctuation: Likewise.
21390         * modules/unictype/property-paragraph-separator: Likewise.
21391         * modules/unictype/property-pattern-syntax: Likewise.
21392         * modules/unictype/property-pattern-white-space: Likewise.
21393         * modules/unictype/property-private-use: Likewise.
21394         * modules/unictype/property-punctuation: Likewise.
21395         * modules/unictype/property-quotation-mark: Likewise.
21396         * modules/unictype/property-radical: Likewise.
21397         * modules/unictype/property-sentence-terminal: Likewise.
21398         * modules/unictype/property-soft-dotted: Likewise.
21399         * modules/unictype/property-space: Likewise.
21400         * modules/unictype/property-terminal-punctuation: Likewise.
21401         * modules/unictype/property-test: Likewise.
21402         * modules/unictype/property-titlecase: Likewise.
21403         * modules/unictype/property-unassigned-code-value: Likewise.
21404         * modules/unictype/property-unified-ideograph: Likewise.
21405         * modules/unictype/property-uppercase: Likewise.
21406         * modules/unictype/property-variation-selector: Likewise.
21407         * modules/unictype/property-white-space: Likewise.
21408         * modules/unictype/property-xid-continue: Likewise.
21409         * modules/unictype/property-xid-start: Likewise.
21410         * modules/unictype/property-zero-width: Likewise.
21411         * modules/unictype/scripts: Likewise.
21412         * modules/unictype/syntax-c-ident: Likewise.
21413         * modules/unictype/syntax-c-whitespace: Likewise.
21414         * modules/unictype/syntax-java-ident: Likewise.
21415         * modules/unictype/syntax-java-whitespace: Likewise.
21416         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21417         * modules/unilbrk/u8-width-linebreaks: Likewise.
21418         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21419         * modules/unilbrk/u16-width-linebreaks: Likewise.
21420         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21421         * modules/unilbrk/u32-width-linebreaks: Likewise.
21422         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21423         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21424         * modules/uniname/uniname: Likewise.
21425         * modules/uninorm/canonical-decomposition: Likewise.
21426         * modules/uninorm/composition: Likewise.
21427         * modules/uninorm/decomposing-form: Likewise.
21428         * modules/uninorm/decomposition: Likewise.
21429         * modules/uninorm/filter: Likewise.
21430         * modules/uninorm/nfc: Likewise.
21431         * modules/uninorm/nfd: Likewise.
21432         * modules/uninorm/nfkc: Likewise.
21433         * modules/uninorm/nfkd: Likewise.
21434         * modules/uninorm/u8-normalize: Likewise.
21435         * modules/uninorm/u8-normcmp: Likewise.
21436         * modules/uninorm/u8-normcoll: Likewise.
21437         * modules/uninorm/u8-normxfrm: Likewise.
21438         * modules/uninorm/u16-normalize: Likewise.
21439         * modules/uninorm/u16-normcmp: Likewise.
21440         * modules/uninorm/u16-normcoll: Likewise.
21441         * modules/uninorm/u16-normxfrm: Likewise.
21442         * modules/uninorm/u32-normalize: Likewise.
21443         * modules/uninorm/u32-normcmp: Likewise.
21444         * modules/uninorm/u32-normcoll: Likewise.
21445         * modules/uninorm/u32-normxfrm: Likewise.
21446         * modules/unistdio/u8-asnprintf: Likewise.
21447         * modules/unistdio/u8-asprintf: Likewise.
21448         * modules/unistdio/u8-snprintf: Likewise.
21449         * modules/unistdio/u8-sprintf: Likewise.
21450         * modules/unistdio/u8-u8-asnprintf: Likewise.
21451         * modules/unistdio/u8-u8-asprintf: Likewise.
21452         * modules/unistdio/u8-u8-snprintf: Likewise.
21453         * modules/unistdio/u8-u8-sprintf: Likewise.
21454         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21455         * modules/unistdio/u8-u8-vasprintf: Likewise.
21456         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21457         * modules/unistdio/u8-u8-vsprintf: Likewise.
21458         * modules/unistdio/u8-vasnprintf: Likewise.
21459         * modules/unistdio/u8-vasprintf: Likewise.
21460         * modules/unistdio/u8-vsnprintf: Likewise.
21461         * modules/unistdio/u8-vsprintf: Likewise.
21462         * modules/unistdio/u16-asnprintf: Likewise.
21463         * modules/unistdio/u16-asprintf: Likewise.
21464         * modules/unistdio/u16-snprintf: Likewise.
21465         * modules/unistdio/u16-sprintf: Likewise.
21466         * modules/unistdio/u16-u16-asnprintf: Likewise.
21467         * modules/unistdio/u16-u16-asprintf: Likewise.
21468         * modules/unistdio/u16-u16-snprintf: Likewise.
21469         * modules/unistdio/u16-u16-sprintf: Likewise.
21470         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21471         * modules/unistdio/u16-u16-vasprintf: Likewise.
21472         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21473         * modules/unistdio/u16-u16-vsprintf: Likewise.
21474         * modules/unistdio/u16-vasnprintf: Likewise.
21475         * modules/unistdio/u16-vasprintf: Likewise.
21476         * modules/unistdio/u16-vsnprintf: Likewise.
21477         * modules/unistdio/u16-vsprintf: Likewise.
21478         * modules/unistdio/u32-asnprintf: Likewise.
21479         * modules/unistdio/u32-asprintf: Likewise.
21480         * modules/unistdio/u32-snprintf: Likewise.
21481         * modules/unistdio/u32-sprintf: Likewise.
21482         * modules/unistdio/u32-u32-asnprintf: Likewise.
21483         * modules/unistdio/u32-u32-asprintf: Likewise.
21484         * modules/unistdio/u32-u32-snprintf: Likewise.
21485         * modules/unistdio/u32-u32-sprintf: Likewise.
21486         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21487         * modules/unistdio/u32-u32-vasprintf: Likewise.
21488         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21489         * modules/unistdio/u32-u32-vsprintf: Likewise.
21490         * modules/unistdio/u32-vasnprintf: Likewise.
21491         * modules/unistdio/u32-vasprintf: Likewise.
21492         * modules/unistdio/u32-vsnprintf: Likewise.
21493         * modules/unistdio/u32-vsprintf: Likewise.
21494         * modules/unistdio/ulc-asnprintf: Likewise.
21495         * modules/unistdio/ulc-asprintf: Likewise.
21496         * modules/unistdio/ulc-fprintf: Likewise.
21497         * modules/unistdio/ulc-snprintf: Likewise.
21498         * modules/unistdio/ulc-sprintf: Likewise.
21499         * modules/unistdio/ulc-vasnprintf: Likewise.
21500         * modules/unistdio/ulc-vasprintf: Likewise.
21501         * modules/unistdio/ulc-vfprintf: Likewise.
21502         * modules/unistdio/ulc-vsnprintf: Likewise.
21503         * modules/unistdio/ulc-vsprintf: Likewise.
21504         * modules/unistr/u8-check: Likewise.
21505         * modules/unistr/u8-chr: Likewise.
21506         * modules/unistr/u8-cmp: Likewise.
21507         * modules/unistr/u8-cmp2: Likewise.
21508         * modules/unistr/u8-cpy: Likewise.
21509         * modules/unistr/u8-cpy-alloc: Likewise.
21510         * modules/unistr/u8-endswith: Likewise.
21511         * modules/unistr/u8-mblen: Likewise.
21512         * modules/unistr/u8-mbsnlen: Likewise.
21513         * modules/unistr/u8-mbtouc: Likewise.
21514         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21515         * modules/unistr/u8-mbtoucr: Likewise.
21516         * modules/unistr/u8-move: Likewise.
21517         * modules/unistr/u8-next: Likewise.
21518         * modules/unistr/u8-prev: Likewise.
21519         * modules/unistr/u8-set: Likewise.
21520         * modules/unistr/u8-startswith: Likewise.
21521         * modules/unistr/u8-stpcpy: Likewise.
21522         * modules/unistr/u8-stpncpy: Likewise.
21523         * modules/unistr/u8-strcat: Likewise.
21524         * modules/unistr/u8-strchr: Likewise.
21525         * modules/unistr/u8-strcmp: Likewise.
21526         * modules/unistr/u8-strcoll: Likewise.
21527         * modules/unistr/u8-strcpy: Likewise.
21528         * modules/unistr/u8-strcspn: Likewise.
21529         * modules/unistr/u8-strdup: Likewise.
21530         * modules/unistr/u8-strlen: Likewise.
21531         * modules/unistr/u8-strmblen: Likewise.
21532         * modules/unistr/u8-strmbtouc: Likewise.
21533         * modules/unistr/u8-strncat: Likewise.
21534         * modules/unistr/u8-strncmp: Likewise.
21535         * modules/unistr/u8-strncpy: Likewise.
21536         * modules/unistr/u8-strnlen: Likewise.
21537         * modules/unistr/u8-strpbrk: Likewise.
21538         * modules/unistr/u8-strrchr: Likewise.
21539         * modules/unistr/u8-strspn: Likewise.
21540         * modules/unistr/u8-strstr: Likewise.
21541         * modules/unistr/u8-strtok: Likewise.
21542         * modules/unistr/u8-to-u16: Likewise.
21543         * modules/unistr/u8-to-u32: Likewise.
21544         * modules/unistr/u8-uctomb: Likewise.
21545         * modules/unistr/u16-check: Likewise.
21546         * modules/unistr/u16-chr: Likewise.
21547         * modules/unistr/u16-cmp: Likewise.
21548         * modules/unistr/u16-cmp2: Likewise.
21549         * modules/unistr/u16-cpy: Likewise.
21550         * modules/unistr/u16-cpy-alloc: Likewise.
21551         * modules/unistr/u16-endswith: Likewise.
21552         * modules/unistr/u16-mblen: Likewise.
21553         * modules/unistr/u16-mbsnlen: Likewise.
21554         * modules/unistr/u16-mbtouc: Likewise.
21555         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21556         * modules/unistr/u16-mbtoucr: Likewise.
21557         * modules/unistr/u16-move: Likewise.
21558         * modules/unistr/u16-next: Likewise.
21559         * modules/unistr/u16-prev: Likewise.
21560         * modules/unistr/u16-set: Likewise.
21561         * modules/unistr/u16-startswith: Likewise.
21562         * modules/unistr/u16-stpcpy: Likewise.
21563         * modules/unistr/u16-stpncpy: Likewise.
21564         * modules/unistr/u16-strcat: Likewise.
21565         * modules/unistr/u16-strchr: Likewise.
21566         * modules/unistr/u16-strcmp: Likewise.
21567         * modules/unistr/u16-strcoll: Likewise.
21568         * modules/unistr/u16-strcpy: Likewise.
21569         * modules/unistr/u16-strcspn: Likewise.
21570         * modules/unistr/u16-strdup: Likewise.
21571         * modules/unistr/u16-strlen: Likewise.
21572         * modules/unistr/u16-strmblen: Likewise.
21573         * modules/unistr/u16-strmbtouc: Likewise.
21574         * modules/unistr/u16-strncat: Likewise.
21575         * modules/unistr/u16-strncmp: Likewise.
21576         * modules/unistr/u16-strncpy: Likewise.
21577         * modules/unistr/u16-strnlen: Likewise.
21578         * modules/unistr/u16-strpbrk: Likewise.
21579         * modules/unistr/u16-strrchr: Likewise.
21580         * modules/unistr/u16-strspn: Likewise.
21581         * modules/unistr/u16-strstr: Likewise.
21582         * modules/unistr/u16-strtok: Likewise.
21583         * modules/unistr/u16-to-u32: Likewise.
21584         * modules/unistr/u16-to-u8: Likewise.
21585         * modules/unistr/u16-uctomb: Likewise.
21586         * modules/unistr/u32-check: Likewise.
21587         * modules/unistr/u32-chr: Likewise.
21588         * modules/unistr/u32-cmp: Likewise.
21589         * modules/unistr/u32-cmp2: Likewise.
21590         * modules/unistr/u32-cpy: Likewise.
21591         * modules/unistr/u32-cpy-alloc: Likewise.
21592         * modules/unistr/u32-endswith: Likewise.
21593         * modules/unistr/u32-mblen: Likewise.
21594         * modules/unistr/u32-mbsnlen: Likewise.
21595         * modules/unistr/u32-mbtouc: Likewise.
21596         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21597         * modules/unistr/u32-mbtoucr: Likewise.
21598         * modules/unistr/u32-move: Likewise.
21599         * modules/unistr/u32-next: Likewise.
21600         * modules/unistr/u32-prev: Likewise.
21601         * modules/unistr/u32-set: Likewise.
21602         * modules/unistr/u32-startswith: Likewise.
21603         * modules/unistr/u32-stpcpy: Likewise.
21604         * modules/unistr/u32-stpncpy: Likewise.
21605         * modules/unistr/u32-strcat: Likewise.
21606         * modules/unistr/u32-strchr: Likewise.
21607         * modules/unistr/u32-strcmp: Likewise.
21608         * modules/unistr/u32-strcoll: Likewise.
21609         * modules/unistr/u32-strcpy: Likewise.
21610         * modules/unistr/u32-strcspn: Likewise.
21611         * modules/unistr/u32-strdup: Likewise.
21612         * modules/unistr/u32-strlen: Likewise.
21613         * modules/unistr/u32-strmblen: Likewise.
21614         * modules/unistr/u32-strmbtouc: Likewise.
21615         * modules/unistr/u32-strncat: Likewise.
21616         * modules/unistr/u32-strncmp: Likewise.
21617         * modules/unistr/u32-strncpy: Likewise.
21618         * modules/unistr/u32-strnlen: Likewise.
21619         * modules/unistr/u32-strpbrk: Likewise.
21620         * modules/unistr/u32-strrchr: Likewise.
21621         * modules/unistr/u32-strspn: Likewise.
21622         * modules/unistr/u32-strstr: Likewise.
21623         * modules/unistr/u32-strtok: Likewise.
21624         * modules/unistr/u32-to-u16: Likewise.
21625         * modules/unistr/u32-to-u8: Likewise.
21626         * modules/unistr/u32-uctomb: Likewise.
21627         * modules/uniwbrk/u8-wordbreaks: Likewise.
21628         * modules/uniwbrk/u16-wordbreaks: Likewise.
21629         * modules/uniwbrk/u32-wordbreaks: Likewise.
21630         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21631         * modules/uniwbrk/wordbreak-property: Likewise.
21632         * modules/uniwidth/u8-strwidth: Likewise.
21633         * modules/uniwidth/u8-width: Likewise.
21634         * modules/uniwidth/u16-strwidth: Likewise.
21635         * modules/uniwidth/u16-width: Likewise.
21636         * modules/uniwidth/u32-strwidth: Likewise.
21637         * modules/uniwidth/u32-width: Likewise.
21638         * modules/uniwidth/width: Likewise.
21639         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21640         with $(LIBUNISTRING).
21641         * modules/unicase/ignorable-tests: Likewise.
21642         * modules/unicase/locale-language-tests: Likewise.
21643         * modules/unicase/tolower-tests: Likewise.
21644         * modules/unicase/totitle-tests: Likewise.
21645         * modules/unicase/toupper-tests: Likewise.
21646         * modules/unicase/u8-casecmp-tests: Likewise.
21647         * modules/unicase/u8-casecoll-tests: Likewise.
21648         * modules/unicase/u8-casefold-tests: Likewise.
21649         * modules/unicase/u8-is-cased-tests: Likewise.
21650         * modules/unicase/u8-is-casefolded-tests: Likewise.
21651         * modules/unicase/u8-is-lowercase-tests: Likewise.
21652         * modules/unicase/u8-is-titlecase-tests: Likewise.
21653         * modules/unicase/u8-is-uppercase-tests: Likewise.
21654         * modules/unicase/u8-tolower-tests: Likewise.
21655         * modules/unicase/u8-totitle-tests: Likewise.
21656         * modules/unicase/u8-toupper-tests: Likewise.
21657         * modules/unicase/u16-casecmp-tests: Likewise.
21658         * modules/unicase/u16-casecoll-tests: Likewise.
21659         * modules/unicase/u16-casefold-tests: Likewise.
21660         * modules/unicase/u16-is-cased-tests: Likewise.
21661         * modules/unicase/u16-is-casefolded-tests: Likewise.
21662         * modules/unicase/u16-is-lowercase-tests: Likewise.
21663         * modules/unicase/u16-is-titlecase-tests: Likewise.
21664         * modules/unicase/u16-is-uppercase-tests: Likewise.
21665         * modules/unicase/u16-tolower-tests: Likewise.
21666         * modules/unicase/u16-totitle-tests: Likewise.
21667         * modules/unicase/u16-toupper-tests: Likewise.
21668         * modules/unicase/u32-casecmp-tests: Likewise.
21669         * modules/unicase/u32-casecoll-tests: Likewise.
21670         * modules/unicase/u32-casefold-tests: Likewise.
21671         * modules/unicase/u32-is-cased-tests: Likewise.
21672         * modules/unicase/u32-is-casefolded-tests: Likewise.
21673         * modules/unicase/u32-is-lowercase-tests: Likewise.
21674         * modules/unicase/u32-is-titlecase-tests: Likewise.
21675         * modules/unicase/u32-is-uppercase-tests: Likewise.
21676         * modules/unicase/u32-tolower-tests: Likewise.
21677         * modules/unicase/u32-totitle-tests: Likewise.
21678         * modules/unicase/u32-toupper-tests: Likewise.
21679         * modules/unicase/ulc-casecmp-tests: Likewise.
21680         * modules/unicase/ulc-casecoll-tests: Likewise.
21681         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21682         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21683         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21684         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21685         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21686         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21687         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21688         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21689         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21690         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21691         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21692         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21693         * modules/unictype/bidicategory-byname-tests: Likewise.
21694         * modules/unictype/bidicategory-name-tests: Likewise.
21695         * modules/unictype/bidicategory-of-tests: Likewise.
21696         * modules/unictype/bidicategory-test-tests: Likewise.
21697         * modules/unictype/block-list-tests: Likewise.
21698         * modules/unictype/block-of-tests: Likewise.
21699         * modules/unictype/block-test-tests: Likewise.
21700         * modules/unictype/category-C-tests: Likewise.
21701         * modules/unictype/category-Cc-tests: Likewise.
21702         * modules/unictype/category-Cf-tests: Likewise.
21703         * modules/unictype/category-Cn-tests: Likewise.
21704         * modules/unictype/category-Co-tests: Likewise.
21705         * modules/unictype/category-Cs-tests: Likewise.
21706         * modules/unictype/category-L-tests: Likewise.
21707         * modules/unictype/category-Ll-tests: Likewise.
21708         * modules/unictype/category-Lm-tests: Likewise.
21709         * modules/unictype/category-Lo-tests: Likewise.
21710         * modules/unictype/category-Lt-tests: Likewise.
21711         * modules/unictype/category-Lu-tests: Likewise.
21712         * modules/unictype/category-M-tests: Likewise.
21713         * modules/unictype/category-Mc-tests: Likewise.
21714         * modules/unictype/category-Me-tests: Likewise.
21715         * modules/unictype/category-Mn-tests: Likewise.
21716         * modules/unictype/category-N-tests: Likewise.
21717         * modules/unictype/category-Nd-tests: Likewise.
21718         * modules/unictype/category-Nl-tests: Likewise.
21719         * modules/unictype/category-No-tests: Likewise.
21720         * modules/unictype/category-P-tests: Likewise.
21721         * modules/unictype/category-Pc-tests: Likewise.
21722         * modules/unictype/category-Pd-tests: Likewise.
21723         * modules/unictype/category-Pe-tests: Likewise.
21724         * modules/unictype/category-Pf-tests: Likewise.
21725         * modules/unictype/category-Pi-tests: Likewise.
21726         * modules/unictype/category-Po-tests: Likewise.
21727         * modules/unictype/category-Ps-tests: Likewise.
21728         * modules/unictype/category-S-tests: Likewise.
21729         * modules/unictype/category-Sc-tests: Likewise.
21730         * modules/unictype/category-Sk-tests: Likewise.
21731         * modules/unictype/category-Sm-tests: Likewise.
21732         * modules/unictype/category-So-tests: Likewise.
21733         * modules/unictype/category-Z-tests: Likewise.
21734         * modules/unictype/category-Zl-tests: Likewise.
21735         * modules/unictype/category-Zp-tests: Likewise.
21736         * modules/unictype/category-Zs-tests: Likewise.
21737         * modules/unictype/category-and-not-tests: Likewise.
21738         * modules/unictype/category-and-tests: Likewise.
21739         * modules/unictype/category-byname-tests: Likewise.
21740         * modules/unictype/category-name-tests: Likewise.
21741         * modules/unictype/category-none-tests: Likewise.
21742         * modules/unictype/category-of-tests: Likewise.
21743         * modules/unictype/category-or-tests: Likewise.
21744         * modules/unictype/category-test-withtable-tests: Likewise.
21745         * modules/unictype/combining-class-tests: Likewise.
21746         * modules/unictype/ctype-alnum-tests: Likewise.
21747         * modules/unictype/ctype-alpha-tests: Likewise.
21748         * modules/unictype/ctype-blank-tests: Likewise.
21749         * modules/unictype/ctype-cntrl-tests: Likewise.
21750         * modules/unictype/ctype-digit-tests: Likewise.
21751         * modules/unictype/ctype-graph-tests: Likewise.
21752         * modules/unictype/ctype-lower-tests: Likewise.
21753         * modules/unictype/ctype-print-tests: Likewise.
21754         * modules/unictype/ctype-punct-tests: Likewise.
21755         * modules/unictype/ctype-space-tests: Likewise.
21756         * modules/unictype/ctype-upper-tests: Likewise.
21757         * modules/unictype/ctype-xdigit-tests: Likewise.
21758         * modules/unictype/decimal-digit-tests: Likewise.
21759         * modules/unictype/digit-tests: Likewise.
21760         * modules/unictype/mirror-tests: Likewise.
21761         * modules/unictype/numeric-tests: Likewise.
21762         * modules/unictype/property-alphabetic-tests: Likewise.
21763         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21764         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21765         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21766         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21767         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21768         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21769         * modules/unictype/property-bidi-control-tests: Likewise.
21770         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21771         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21772         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21773         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21774         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21775         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21776         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21777         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21778         * modules/unictype/property-bidi-pdf-tests: Likewise.
21779         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21780         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21781         * modules/unictype/property-byname-tests: Likewise.
21782         * modules/unictype/property-combining-tests: Likewise.
21783         * modules/unictype/property-composite-tests: Likewise.
21784         * modules/unictype/property-currency-symbol-tests: Likewise.
21785         * modules/unictype/property-dash-tests: Likewise.
21786         * modules/unictype/property-decimal-digit-tests: Likewise.
21787         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21788         * modules/unictype/property-deprecated-tests: Likewise.
21789         * modules/unictype/property-diacritic-tests: Likewise.
21790         * modules/unictype/property-extender-tests: Likewise.
21791         * modules/unictype/property-format-control-tests: Likewise.
21792         * modules/unictype/property-grapheme-base-tests: Likewise.
21793         * modules/unictype/property-grapheme-extend-tests: Likewise.
21794         * modules/unictype/property-grapheme-link-tests: Likewise.
21795         * modules/unictype/property-hex-digit-tests: Likewise.
21796         * modules/unictype/property-hyphen-tests: Likewise.
21797         * modules/unictype/property-id-continue-tests: Likewise.
21798         * modules/unictype/property-id-start-tests: Likewise.
21799         * modules/unictype/property-ideographic-tests: Likewise.
21800         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21801         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21802         * modules/unictype/property-ignorable-control-tests: Likewise.
21803         * modules/unictype/property-iso-control-tests: Likewise.
21804         * modules/unictype/property-join-control-tests: Likewise.
21805         * modules/unictype/property-left-of-pair-tests: Likewise.
21806         * modules/unictype/property-line-separator-tests: Likewise.
21807         * modules/unictype/property-logical-order-exception-tests: Likewise.
21808         * modules/unictype/property-lowercase-tests: Likewise.
21809         * modules/unictype/property-math-tests: Likewise.
21810         * modules/unictype/property-non-break-tests: Likewise.
21811         * modules/unictype/property-not-a-character-tests: Likewise.
21812         * modules/unictype/property-numeric-tests: Likewise.
21813         * modules/unictype/property-other-alphabetic-tests: Likewise.
21814         * modules/unictype/property-other-default-ignorable-code-point-tests:
21815         Likewise.
21816         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21817         * modules/unictype/property-other-id-continue-tests: Likewise.
21818         * modules/unictype/property-other-id-start-tests: Likewise.
21819         * modules/unictype/property-other-lowercase-tests: Likewise.
21820         * modules/unictype/property-other-math-tests: Likewise.
21821         * modules/unictype/property-other-uppercase-tests: Likewise.
21822         * modules/unictype/property-paired-punctuation-tests: Likewise.
21823         * modules/unictype/property-paragraph-separator-tests: Likewise.
21824         * modules/unictype/property-pattern-syntax-tests: Likewise.
21825         * modules/unictype/property-pattern-white-space-tests: Likewise.
21826         * modules/unictype/property-private-use-tests: Likewise.
21827         * modules/unictype/property-punctuation-tests: Likewise.
21828         * modules/unictype/property-quotation-mark-tests: Likewise.
21829         * modules/unictype/property-radical-tests: Likewise.
21830         * modules/unictype/property-sentence-terminal-tests: Likewise.
21831         * modules/unictype/property-soft-dotted-tests: Likewise.
21832         * modules/unictype/property-space-tests: Likewise.
21833         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21834         * modules/unictype/property-test-tests: Likewise.
21835         * modules/unictype/property-titlecase-tests: Likewise.
21836         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21837         * modules/unictype/property-unified-ideograph-tests: Likewise.
21838         * modules/unictype/property-uppercase-tests: Likewise.
21839         * modules/unictype/property-variation-selector-tests: Likewise.
21840         * modules/unictype/property-white-space-tests: Likewise.
21841         * modules/unictype/property-xid-continue-tests: Likewise.
21842         * modules/unictype/property-xid-start-tests: Likewise.
21843         * modules/unictype/property-zero-width-tests: Likewise.
21844         * modules/unictype/scripts-tests: Likewise.
21845         * modules/unictype/syntax-c-ident-tests: Likewise.
21846         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21847         * modules/unictype/syntax-java-ident-tests: Likewise.
21848         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21849         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21850         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21851         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21852         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21853         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21854         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21855         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21856         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21857         * modules/uniname/uniname-tests: Likewise.
21858         * modules/uninorm/canonical-decomposition-tests: Likewise.
21859         * modules/uninorm/compat-decomposition-tests: Likewise.
21860         * modules/uninorm/composition-tests: Likewise.
21861         * modules/uninorm/decomposing-form-tests: Likewise.
21862         * modules/uninorm/decomposition-tests: Likewise.
21863         * modules/uninorm/filter-tests: Likewise.
21864         * modules/uninorm/nfc-tests: Likewise.
21865         * modules/uninorm/nfd-tests: Likewise.
21866         * modules/uninorm/nfkc-tests: Likewise.
21867         * modules/uninorm/nfkd-tests: Likewise.
21868         * modules/uninorm/u8-normcmp-tests: Likewise.
21869         * modules/uninorm/u8-normcoll-tests: Likewise.
21870         * modules/uninorm/u16-normcmp-tests: Likewise.
21871         * modules/uninorm/u16-normcoll-tests: Likewise.
21872         * modules/uninorm/u32-normcmp-tests: Likewise.
21873         * modules/uninorm/u32-normcoll-tests: Likewise.
21874         * modules/unistdio/u8-asnprintf-tests: Likewise.
21875         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21876         * modules/unistdio/u8-vasprintf-tests: Likewise.
21877         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21878         * modules/unistdio/u8-vsprintf-tests: Likewise.
21879         * modules/unistdio/u16-asnprintf-tests: Likewise.
21880         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21881         * modules/unistdio/u16-vasprintf-tests: Likewise.
21882         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21883         * modules/unistdio/u16-vsprintf-tests: Likewise.
21884         * modules/unistdio/u32-asnprintf-tests: Likewise.
21885         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21886         * modules/unistdio/u32-vasprintf-tests: Likewise.
21887         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21888         * modules/unistdio/u32-vsprintf-tests: Likewise.
21889         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21890         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21891         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21892         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21893         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21894         * modules/unistr/u8-check-tests: Likewise.
21895         * modules/unistr/u8-chr-tests: Likewise.
21896         * modules/unistr/u8-cmp-tests: Likewise.
21897         * modules/unistr/u8-cmp2-tests: Likewise.
21898         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21899         * modules/unistr/u8-cpy-tests: Likewise.
21900         * modules/unistr/u8-mblen-tests: Likewise.
21901         * modules/unistr/u8-mbsnlen-tests: Likewise.
21902         * modules/unistr/u8-mbtouc-tests: Likewise.
21903         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21904         * modules/unistr/u8-mbtoucr-tests: Likewise.
21905         * modules/unistr/u8-move-tests: Likewise.
21906         * modules/unistr/u8-next-tests: Likewise.
21907         * modules/unistr/u8-prev-tests: Likewise.
21908         * modules/unistr/u8-set-tests: Likewise.
21909         * modules/unistr/u8-stpcpy-tests: Likewise.
21910         * modules/unistr/u8-stpncpy-tests: Likewise.
21911         * modules/unistr/u8-strcat-tests: Likewise.
21912         * modules/unistr/u8-strcmp-tests: Likewise.
21913         * modules/unistr/u8-strcoll-tests: Likewise.
21914         * modules/unistr/u8-strcpy-tests: Likewise.
21915         * modules/unistr/u8-strdup-tests: Likewise.
21916         * modules/unistr/u8-strlen-tests: Likewise.
21917         * modules/unistr/u8-strmblen-tests: Likewise.
21918         * modules/unistr/u8-strmbtouc-tests: Likewise.
21919         * modules/unistr/u8-strncat-tests: Likewise.
21920         * modules/unistr/u8-strncmp-tests: Likewise.
21921         * modules/unistr/u8-strncpy-tests: Likewise.
21922         * modules/unistr/u8-strnlen-tests: Likewise.
21923         * modules/unistr/u8-to-u16-tests: Likewise.
21924         * modules/unistr/u8-to-u32-tests: Likewise.
21925         * modules/unistr/u8-uctomb-tests: Likewise.
21926         * modules/unistr/u16-check-tests: Likewise.
21927         * modules/unistr/u16-chr-tests: Likewise.
21928         * modules/unistr/u16-cmp-tests: Likewise.
21929         * modules/unistr/u16-cmp2-tests: Likewise.
21930         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21931         * modules/unistr/u16-cpy-tests: Likewise.
21932         * modules/unistr/u16-mblen-tests: Likewise.
21933         * modules/unistr/u16-mbsnlen-tests: Likewise.
21934         * modules/unistr/u16-mbtouc-tests: Likewise.
21935         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21936         * modules/unistr/u16-mbtoucr-tests: Likewise.
21937         * modules/unistr/u16-move-tests: Likewise.
21938         * modules/unistr/u16-next-tests: Likewise.
21939         * modules/unistr/u16-prev-tests: Likewise.
21940         * modules/unistr/u16-set-tests: Likewise.
21941         * modules/unistr/u16-stpcpy-tests: Likewise.
21942         * modules/unistr/u16-stpncpy-tests: Likewise.
21943         * modules/unistr/u16-strcat-tests: Likewise.
21944         * modules/unistr/u16-strcmp-tests: Likewise.
21945         * modules/unistr/u16-strcoll-tests: Likewise.
21946         * modules/unistr/u16-strcpy-tests: Likewise.
21947         * modules/unistr/u16-strdup-tests: Likewise.
21948         * modules/unistr/u16-strlen-tests: Likewise.
21949         * modules/unistr/u16-strmblen-tests: Likewise.
21950         * modules/unistr/u16-strmbtouc-tests: Likewise.
21951         * modules/unistr/u16-strncat-tests: Likewise.
21952         * modules/unistr/u16-strncmp-tests: Likewise.
21953         * modules/unistr/u16-strncpy-tests: Likewise.
21954         * modules/unistr/u16-strnlen-tests: Likewise.
21955         * modules/unistr/u16-to-u32-tests: Likewise.
21956         * modules/unistr/u16-to-u8-tests: Likewise.
21957         * modules/unistr/u16-uctomb-tests: Likewise.
21958         * modules/unistr/u32-check-tests: Likewise.
21959         * modules/unistr/u32-chr-tests: Likewise.
21960         * modules/unistr/u32-cmp-tests: Likewise.
21961         * modules/unistr/u32-cmp2-tests: Likewise.
21962         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21963         * modules/unistr/u32-cpy-tests: Likewise.
21964         * modules/unistr/u32-mblen-tests: Likewise.
21965         * modules/unistr/u32-mbsnlen-tests: Likewise.
21966         * modules/unistr/u32-mbtouc-tests: Likewise.
21967         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21968         * modules/unistr/u32-mbtoucr-tests: Likewise.
21969         * modules/unistr/u32-move-tests: Likewise.
21970         * modules/unistr/u32-next-tests: Likewise.
21971         * modules/unistr/u32-prev-tests: Likewise.
21972         * modules/unistr/u32-set-tests: Likewise.
21973         * modules/unistr/u32-stpcpy-tests: Likewise.
21974         * modules/unistr/u32-stpncpy-tests: Likewise.
21975         * modules/unistr/u32-strcat-tests: Likewise.
21976         * modules/unistr/u32-strcmp-tests: Likewise.
21977         * modules/unistr/u32-strcoll-tests: Likewise.
21978         * modules/unistr/u32-strcpy-tests: Likewise.
21979         * modules/unistr/u32-strdup-tests: Likewise.
21980         * modules/unistr/u32-strlen-tests: Likewise.
21981         * modules/unistr/u32-strmblen-tests: Likewise.
21982         * modules/unistr/u32-strmbtouc-tests: Likewise.
21983         * modules/unistr/u32-strncat-tests: Likewise.
21984         * modules/unistr/u32-strncmp-tests: Likewise.
21985         * modules/unistr/u32-strncpy-tests: Likewise.
21986         * modules/unistr/u32-strnlen-tests: Likewise.
21987         * modules/unistr/u32-to-u16-tests: Likewise.
21988         * modules/unistr/u32-to-u8-tests: Likewise.
21989         * modules/unistr/u32-uctomb-tests: Likewise.
21990         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21991         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21992         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21993         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21994         * modules/uniwidth/u8-strwidth-tests: Likewise.
21995         * modules/uniwidth/u8-width-tests: Likewise.
21996         * modules/uniwidth/u16-strwidth-tests: Likewise.
21997         * modules/uniwidth/u16-width-tests: Likewise.
21998         * modules/uniwidth/u32-strwidth-tests: Likewise.
21999         * modules/uniwidth/u32-width-tests: Likewise.
22000         * modules/uniwidth/width-tests: Likewise.
22001
22002 2010-05-18  Richard Jones  <rjones@redhat.com>
22003
22004         doc: users.txt: list hivex
22005         * users.txt: Add hivex.
22006
22007 2010-05-18  Richard Jones  <rjones@redhat.com>
22008
22009         doc: users.txt: list febootstrap
22010         * users.txt: Add febootstrap.
22011
22012 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22013
22014         bootstrap: fix an error when gnulib is not used as a git submodule
22015         * build-aux/bootstrap (gnulib_path): If its length is zero then
22016         assign "gnulib" to it.
22017         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22018
22019 2010-05-16  Bruno Haible  <bruno@clisp.org>
22020
22021         Avoid autoconf warnings about AM_ICONV.
22022         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22023         2.64.
22024
22025 2010-05-16  Bruno Haible  <bruno@clisp.org>
22026
22027         absolute-header: Make the macro usable in more situations.
22028         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22029         from gl_ABSOLUTE_HEADER.
22030         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22031
22032 2010-05-16  James Youngman  <jay@gnu.org>
22033
22034         doc: update users.txt
22035         * users.txt: Add CSSC.
22036
22037 2010-05-16  Jim Meyering  <meyering@redhat.com>
22038
22039         init.sh: fix an error in the previous change; add more comments
22040         * tests/init.sh: Compare exit code in loop against 9, not 2.
22041         Patch by Bruno Haible.
22042         Make the two tests more similar by adding an empty "then" clause.
22043         Add comments.
22044
22045         init.sh: avoid unnecessary shell re-exec
22046         * tests/init.sh: Improve the re-exec-required check to first test the
22047         current shell.  If it passes the test, do not search for a shell that
22048         does pass, and do not re-exec.  This test is particularly contorted to
22049         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22050         of $(...) evokes a syntax error and causes immediate shell exit with
22051         status 2.  Bruno Haible reported that the re-exec made it impossible
22052         to single-step through any init.sh-using script.
22053
22054 2010-05-16  Bruno Haible  <bruno@clisp.org>
22055
22056         Fix collision between gnulib's and libintl's printf replacements.
22057         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22058         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22059         (printf): When using GNU C, map the __printf__ function to rpl_printf
22060         via __asm__. When not using GNU C, define rpl_printf instead of
22061         __printf__.
22062         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22063         commit.
22064         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22065         commit.
22066         * m4/asm-underscore.m4: New file.
22067         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22068         * modules/stdio (Files): Add m4/asm-underscore.m4.
22069         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22070         Reported by Ben Pfaff.
22071
22072 2010-05-16  Bruno Haible  <bruno@clisp.org>
22073
22074         verify: Avoid skipping the test on openSUSE 11.0.
22075         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22076
22077 2010-05-13  Bruno Haible  <bruno@clisp.org>
22078
22079         Avoid useless warnings from G++.
22080         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22081         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22082         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22083
22084 2010-05-11  Jim Meyering  <meyering@redhat.com>
22085
22086         maint.mk: tweak preceding change
22087         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22088         regexps tighter by anchoring at EOL, and make the new group "shy"
22089         for slightly decreased overhead.
22090
22091 2010-05-11  Eric Blake  <eblake@redhat.com>
22092
22093         maint.mk: gnulib doesn't guarantee NSIG
22094         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22095
22096 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22097
22098         test-pwrite.c: Remove unused variable declaration.
22099         * tests/test-pwrite.c (main): Remove read_buf declaration.
22100
22101         Remove useless test-pwrite.sh file.
22102         * tests/test-pwrite.sh: Delete file.
22103         * modules/pwrite-tests: Remove references.
22104         Reported by Bruno Haible.
22105
22106 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22107
22108         init.sh: fix a typo
22109         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22110
22111 2010-05-10  Jim Meyering  <meyering@redhat.com>
22112
22113         maint.mk: avoid using a temporary file in the always-defined-macros check
22114         * top/maint.mk (.re-defmac): Remove rule.
22115         (gl_trap_): Remove definition.
22116         (sc_prohibit_always-defined_macros): Rewrite not to create and
22117         depend on a temporary file.  Instead, depend on GNU grep's ability
22118         to read a list of regular expressions from stdin when given "-f -".
22119
22120 2010-05-09  Bruno Haible  <bruno@clisp.org>
22121
22122         Update to GNU gettext 0.18, part 1.
22123         * m4/gettext.m4: Update to GNU gettext 0.18.
22124         * m4/intl.m4: Likewise.
22125         * m4/po.m4: Likewise.
22126         * modules/gettext (Files): Add m4/fcntl-o.m4.
22127         (configure.ac): Require gettext infrastructure from version 0.18.
22128
22129 2010-05-09  Jim Meyering  <meyering@redhat.com>
22130
22131         init.sh: enable MALLOC_PERTURB_
22132         * tests/init.sh: Enable glibc's malloc-perturbing option.
22133
22134         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22135         With my recent change in init.sh from the two-line form:
22136             -#   : ${srcdir=.}
22137             -#   . "$srcdir/init.sh"; path_prepend_ .
22138             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22139         I noticed that using the one-line form would cause this test
22140         to fail with a false-positive, or to stop working altogether,
22141         depending on whether help-version changed or all the tests did.
22142         * top/maint.mk (_hv_regex): Remove this definition.
22143         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22144         (_hv_regex_strong): Use a stronger regex to check for conformance.
22145         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22146         Give a separate diagnostic for lack of conforming use.
22147
22148         maint.mk: prohibit definition of symbols defined by gnulib
22149         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22150         definition of symbols defined by gnulib.
22151
22152 2010-05-09  Bruno Haible  <bruno@clisp.org>
22153
22154         acl: Avoid test failure on Cygwin-hosted mingw.
22155         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22156
22157 2010-05-09  Bruno Haible  <bruno@clisp.org>
22158
22159         error: Use system's fcntl function.
22160         * lib/error.c (fcntl): Undefine.
22161
22162 2010-05-09  Jim Meyering  <meyering@redhat.com>
22163
22164         verify: adjust formatting to be more consistent
22165         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22166         argument-list '('s, and after one comma.
22167
22168 2010-05-09  Bruno Haible  <bruno@clisp.org>
22169
22170         error: More reliable output on mingw.
22171         * lib/error.c: Include <windows.h>.
22172         (is_open): New function.
22173         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22174         defined.
22175
22176 2010-05-09  Bruno Haible  <bruno@clisp.org>
22177
22178         vasnprintf: Fix syntax errors in libintl build on mingw.
22179         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22180         pad_ourselves and prec_ourselves after use.
22181
22182 2010-05-08  Bruno Haible  <bruno@clisp.org>
22183
22184         * lib/config.charset: Update comments for Cygwin 1.7.
22185         * lib/localcharset.c: Likewise.
22186
22187 2010-05-07  Jim Meyering  <meyering@redhat.com>
22188
22189         init.sh: improve comments
22190         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22191         . "${srcdir=.}/init.sh"; path_prepend_ .
22192         Add a note about path_prepend_ and the alternative of using
22193         TESTS_ENVIRONMENT.
22194
22195 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22196
22197         exclude: Unescape hashed patterns in wildcard mode.
22198         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22199         to the hash list.
22200         * tests/test-exclude8.sh: New test case.
22201         * modules/exclude-tests: Add new test.
22202
22203 2010-05-05  Eric Blake  <eblake@redhat.com>
22204
22205         verify: automate tests
22206         * modules/verify-tests: New module.
22207         * tests/test-verify.sh: New file.
22208         * tests/test-verify.c: Guard each negative test with a unique id.
22209         Also avoid warning about unused left hand of comma expressions.
22210
22211 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22212
22213         Further improvements to verify.h, suggested by Eric Blake.
22214         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22215         the GL_* versions, to avoid collision with OpenGL.
22216         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22217         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22218         than testing merely whether it's defined.
22219
22220         Modify verify.h to pacify gcc -Wredundant_decls.
22221         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22222         These use the prefix "GL_" since they're likely to be useful elsewhere.
22223         We may need to break them out into a different .h file.
22224         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22225         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22226         of verify_function__.
22227
22228 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22229
22230         Tests for module pwrite.
22231         * modules/pwrite-tests: New file.
22232         * tests/test-pwrite.sh: New file.
22233         * tests/test-pwrite.c: New file.
22234
22235         New module pwrite.
22236         * lib/unistd.in.h (pwrite): New declaration.
22237         * lib/pwrite.c: New file, from glibc with modifications.
22238         * m4/pwrite.m4: New file.
22239         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22240         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22241         REPLACE_PWRITE.
22242         * modules/pwrite: New file.
22243         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22244         REPLACE_PWRITE.
22245         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22246         * doc/posix-functions/pwrite.texi: Mention the new module.
22247
22248 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22249
22250         pread: Update documentation.
22251         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22252
22253 2010-05-04  Eric Blake  <eblake@redhat.com>
22254
22255         docs: update cygwin progress
22256         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22257         this bug.
22258         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22259         Added in cygwin 1.7.2.
22260         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22261         Likewise.
22262         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22263         Likewise.
22264         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22265         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22266         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22267         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22268         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22269         Mention nproc module.
22270         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22271         bug in cygwin 1.7.5 addition.
22272         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22273         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22274         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22275         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22276         1.7.5.
22277         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22278         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22279         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22280         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22281         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22282         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22283         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22284         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22285         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22286         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22287         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22288         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22289         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22290         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22291         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22292         Likewise.
22293         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22294         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22295         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22296         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22297         Likewise.
22298         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22299         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22300         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22301         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22302         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22303         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22304         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22305         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22306         Likewise.
22307         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22308         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22309         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22310         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22311         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22312         Likewise.
22313         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22314         Likewise.
22315         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22316         Likewise.
22317         * doc/glibc-functions/xdrrec_endofrecord.texi
22318         (xdrrec_endofrecord): Likewise.
22319         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22320         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22321         Likewise.
22322         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22323         Likewise.
22324
22325 2010-05-04  Jim Meyering  <meyering@redhat.com>
22326
22327         gendocs.sh: make its "-s FILE" option more useful
22328         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22329         $PACKAGE to reflect the probably-different basename of "FILE".
22330
22331 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22332
22333         bootstrap: don't ignore download_po_files failure
22334         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22335         failure.
22336
22337 2010-05-03  Jim Meyering  <meyering@redhat.com>
22338
22339         maint.mk: allow to pass options to gendocs.sh
22340         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22341         (gendocs_options_): New overridable variable.
22342
22343         gnu-web-doc-update: don't ignore configure or build failure
22344         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22345
22346         announce-gen: backslash-escape '@'s in --help output
22347         * build-aux/announce-gen: Fix syntax errors.
22348
22349         maint.mk, announce-gen: allow project-specific announcement mail headers
22350         * top/maint.mk (translation_project_): Define default.
22351         (announcement_Cc_, announcement_mail_headers_): Likewise.
22352         (announcement): Invoke announce-gen with new --mail-headers option.
22353         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22354
22355         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22356         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22357         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22358         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22359         line in the "err2" output file when running "make check" in verbose
22360         mode (i.e., with set -x enabled).
22361
22362 2010-05-03  Bruno Haible  <bruno@clisp.org>
22363
22364         wctob: Fix for weird platforms.
22365         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22366         argument value.
22367
22368 2010-05-03  Jim Meyering  <meyering@redhat.com>
22369
22370         maint.mk: prohibit unwarranted use of <strings.h>
22371         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22372         strings.h in a file that does not also use strcasecmp, strncasecmp,
22373         ffs or ffsll.
22374
22375         maint.mk: remove obsolete comments
22376         * top/maint.mk: Remove stale, commented-out rules.
22377
22378 2010-05-02  Bruno Haible  <bruno@clisp.org>
22379
22380         wcwidth: Declare also when it's aliased.
22381         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22382         macro.
22383
22384 2010-05-02  Bruno Haible  <bruno@clisp.org>
22385
22386         Fix regression from 2010-04-25.
22387         * gnulib-tool (func_modules_transitive_closure): Check the status of
22388         all modules, not only of the tests that are of the form foo-tests where
22389         foo is a module.
22390
22391 2010-05-02  Bruno Haible  <bruno@clisp.org>
22392
22393         wctob: Work around nasty Cygwin 1.7.2 bug.
22394         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22395         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22396
22397 2010-05-01  Bruno Haible  <bruno@clisp.org>
22398
22399         fpurge: Sharper test.
22400         * tests/test-fpurge.c (main): Add one more ftell check.
22401         * modules/fpurge-tests (Depends-on): Add ftell.
22402         Suggested by Eric Blake.
22403
22404 2010-05-01  Bruno Haible  <bruno@clisp.org>
22405
22406         ftello: Another test.
22407         * tests/test-ftello3.c: New file.
22408         * modules/ftello-tests (Files): Add it.
22409         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22410         MOSTLYCLEANFILES.
22411
22412         ftell: Another test.
22413         * tests/test-ftell3.c: New file.
22414         * modules/ftell-tests (Files): Add it.
22415         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22416         MOSTLYCLEANFILES.
22417
22418 2010-05-01  Bruno Haible  <bruno@clisp.org>
22419
22420         ftell, ftello: Work around Solaris bug.
22421         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22422         * lib/ftello.c: Include stdio-impl.h.
22423         (ftello): On Solaris, when _IOWRT is set, compute the result without
22424         looking at _IOREAD.
22425         * modules/ftello (Files): Add lib/stdio-impl.h.
22426         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22427         * doc/posix-functions/ftello.texi: Likewise.
22428         Reported by Eric Blake.
22429
22430 2010-05-01  Bruno Haible  <bruno@clisp.org>
22431
22432         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22433         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22434         the _IOWRT flag is also set.
22435
22436 2010-05-01  Bruno Haible  <bruno@clisp.org>
22437
22438         Fix doc about a HP-UX stdio bug.
22439         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22440         * doc/posix-functions/ftello.texi: Likewise.
22441
22442 2010-05-01  Bruno Haible  <bruno@clisp.org>
22443
22444         lseek test: Fix failure on Solaris.
22445         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22446         output.
22447
22448 2010-04-30  Jim Meyering  <meyering@redhat.com>
22449
22450         bootstrap: don't ignore failure to generate po*/Makevars
22451         * build-aux/bootstrap (with_gettext): Don't ignore failure
22452         to create po/Makevars or runtime-po/Makevars.
22453
22454 2010-04-29  Eric Blake  <eblake@redhat.com>
22455
22456         headers: relax license to LGPLv2+
22457         * modules/fcntl-h (License): Relax license.
22458         * modules/getopt-posix (License): Likewise.
22459         * modules/locale (License): Likewise.
22460         * modules/math (License): Likewise.
22461         * modules/pty (License): Likewise.
22462         * modules/sched (License): Likewise.
22463         * modules/search (License): Likewise.
22464         * modules/spawn (License): Likewise.
22465         * modules/stdarg (License): Likewise.
22466         * modules/sysexits (License): Likewise.
22467
22468 2010-04-29  Jim Meyering  <meyering@redhat.com>
22469
22470         inttypes: relax license to LGPLv2+
22471         * modules/inttypes (License): Relax license.
22472
22473 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22474
22475         * top/maint.mk (indent): Run twice to produce idempotent results.
22476
22477 2010-04-28  Bruno Haible  <bruno@clisp.org>
22478
22479         getdate: Generate getdate.c in the source directory.
22480         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22481         MOSTLYCLEANFILES.
22482         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22483
22484 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22485
22486         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22487         is not declared as a const *; avoid warnings in that case.
22488
22489 2010-04-28  Eric Blake  <eblake@redhat.com>
22490
22491         canonicalize-lgpl: avoid compiler warning
22492         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22493         declaration' / 'extraneous semicolon' warning with some compilers.
22494         Reported by Andreas Gruenbacher.
22495
22496 2010-04-28  Jim Meyering  <meyering@redhat.com>
22497
22498         init.sh: ensure a more reliable exit status when exiting via trap
22499         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22500         Inspired by patches from Dmitry V. Levin.
22501         Also trap on signal 3 (SIGQUIT).
22502
22503 2010-04-27  Bruno Haible  <bruno@clisp.org>
22504
22505         Update doc about utimes().
22506         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22507         'utimens' module.
22508         Reported by Andreas Gruenbacher <agruen@suse.de>.
22509
22510 2010-04-27  Eric Blake  <eblake@redhat.com>
22511
22512         full-read, full-write: relax license
22513         * modules/full-read (License): Drop to LGPLv2+.
22514         * modules/full-write (License): Likewise.
22515         * modules/safe-read (License): Likewise.
22516         * modules/safe-write (License): Likewise.
22517
22518         pthread: mention library for linking
22519         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22520
22521 2010-04-27  Jim Meyering  <meyering@redhat.com>
22522
22523         maint.mk: fix a bug introduced in last change
22524         * top/maint.mk (gl_assured_headers_): Now that all names are on
22525         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22526         is not anchored to end of word, it should be adequate.
22527
22528         maint.mk: avoid side-effect in latest syntax-check
22529         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22530         to run commands via $(shell...), and hence to incur cost only when
22531         the new rule is actually run.
22532
22533         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22534         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22535         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22536         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22537         (gl_assured_headers_, az_, AZ_): Define.
22538         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22539
22540 2010-04-26  Jim Meyering  <jim@meyering.net>
22541             Bruno Haible  <bruno@clisp.org>
22542
22543         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22544         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22545         Prompted by an exchange with Gilles Espinasse.
22546
22547 2010-04-26  Jim Meyering  <meyering@redhat.com>
22548
22549         git-version-gen: aesthetic tweak
22550         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22551         so that the command remains on a single line.
22552
22553 2010-04-26  Eric Blake  <eblake@redhat.com>
22554
22555         git-version-gen: allow use on EBCDIC hosts
22556         * build-aux/git-version-gen (dirty): Use literal rather than tying
22557         ourselves to ascii.
22558         Reported by Steve Goetze.
22559
22560 2010-04-25  Bruno Haible  <bruno@clisp.org>
22561
22562         netdb: Add support for GNULIB_POSIXCHECK.
22563         * lib/netdb.in.h: Include warn-on-use.h.
22564         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22565         functions are used when GNULIB_POSIXCHECK is defined and the
22566         getaddrinfo module is not in use.
22567         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22568         freeaddrinfo, gai_strerror, getnameinfo are declared.
22569         * modules/netdb (Depends-on): Add warn-on-use.
22570         (Makefile.am): Include warn-on-use.h in netdb.h.
22571
22572 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22573
22574         build: avoid "make check" failure without .git/ directory
22575         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22576         there is no .git/ directory.
22577
22578 2010-04-25  Bruno Haible  <bruno@clisp.org>
22579
22580         ptsname: Fix misuse of ttyname_r.
22581         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22582         of errno.
22583
22584 2010-04-25  Bruno Haible  <bruno@clisp.org>
22585
22586         ttyname_r: Make it work on Solaris 10.
22587         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22588         if the system function has the POSIX declaration. Test whether the
22589         function fails if the buffer is less than 128 bytes large.
22590         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22591         system's ttyname_r function. Provide a reasonably large buffer.
22592         * modules/ttyname_r (Depends-on): Add extensions.
22593         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22594
22595 2010-04-25  Bruno Haible  <bruno@clisp.org>
22596
22597         Use the 'extensions' module for some more functions on Solaris.
22598         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22599         module.
22600         * doc/posix-functions/ctime_r.texi: Likewise.
22601         * doc/posix-functions/getgrgid_r.texi: Likewise.
22602         * doc/posix-functions/getgrnam_r.texi: Likewise.
22603         * doc/posix-functions/getpwnam_r.texi: Likewise.
22604         * doc/posix-functions/getpwuid_r.texi: Likewise.
22605         * doc/posix-functions/readdir_r.texi: Likewise.
22606         * doc/posix-functions/sigwait.texi: Likewise.
22607         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22608         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22609
22610 2010-04-25  Bruno Haible  <bruno@clisp.org>
22611
22612         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22613         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22614         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22615         * lib/ttyname_r.c: Include <limits.h>.
22616         (ttyname_r): Define using the system's ttyname_r function, if it exists
22617         and not on Solaris.
22618         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22619         set.
22620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22621         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22622         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22623         Reported by Simon Josefsson.
22624
22625 2010-04-25  Bruno Haible  <bruno@clisp.org>
22626
22627         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22628         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22629         * doc/posix-functions/ctime_r.texi: Likewise.
22630         * doc/posix-functions/getgrgid_r.texi: Likewise.
22631         * doc/posix-functions/getgrnam_r.texi: Likewise.
22632         * doc/posix-functions/getlogin_r.texi: Likewise.
22633         * doc/posix-functions/getpwnam_r.texi: Likewise.
22634         * doc/posix-functions/getpwuid_r.texi: Likewise.
22635         * doc/posix-functions/readdir_r.texi: Likewise.
22636         * doc/posix-functions/sigwait.texi: Likewise.
22637         * doc/posix-functions/ttyname_r.texi: Likewise.
22638         Reported by Simon Josefsson.
22639
22640 2010-04-25  Bruno Haible  <bruno@clisp.org>
22641
22642         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22643         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22644         also to --create-testdir.
22645         (func_acceptable): Don't consider the status of *-tests modules here.
22646         (func_modules_transitive_closure): Consider it here, before including a
22647         test module.
22648         (func_import, func_create_testdir): Set inc_all_direct_tests,
22649         inc_all_indirect_tests.
22650         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22651         --create-testdir and --create-megatestdir.
22652
22653 2010-04-25  Bruno Haible  <bruno@clisp.org>
22654
22655         gnulib-tool: Add --without-*-tests options.
22656         * gnulib-tool (func_usage): Document the --without-*-tests options.
22657         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22658         excl_unportable_tests): New variables.
22659         Fail if they are specified with --import or --update.
22660         (func_acceptable): Respect the excl_*_tests variables.
22661         (func_import): Set the excl_*_tests variables to empty.
22662
22663 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22664             Bruno Haible  <bruno@clisp.org>
22665
22666         Work around a MacOS X 10.4 bug with openpty.
22667         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22668         * tests/test-openpty.c (main): Close the master side explicitly.
22669
22670 2010-04-25  Bruno Haible  <bruno@clisp.org>
22671
22672         strnlen: Fix a C++ test error on MacOS X and Solaris.
22673         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22674         the function is not declared.
22675         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22676         Simon Josefsson.
22677
22678 2010-04-24  Bruno Haible  <bruno@clisp.org>
22679
22680         Avoid a gcc warning.
22681         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22682         of correct type for %08lx directive.
22683         Reported by Eric Blake.
22684
22685 2010-04-24  Bruno Haible  <bruno@clisp.org>
22686
22687         vasnprintf: Correct errno value in case of out-of-memory.
22688         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22689         or sprintf. Use the errno value from SNPRINTF or sprintf.
22690         Reported by Ian Beckwith <ianb@erislabs.net>.
22691
22692 2010-04-24  Bruno Haible  <bruno@clisp.org>
22693
22694         ansi-c++-opt: Find correct compiler when cross-compiling.
22695         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22696         AC_CHECK_PROGS.
22697         Reported by Simon Josefsson.
22698
22699 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22700
22701         vc-list-files: Add support for subversion
22702         * build-aux/vc-list-files: Use "svn list" to generate the list of
22703         files controlled by subversion.
22704
22705 2010-04-23  Jim Meyering  <meyering@redhat.com>
22706
22707         vc-list-files tests: convert to use init.sh
22708         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22709         path_prepend_.
22710         Use Exit, not exit.
22711         Use skip_ rather than open coding it.
22712         Remove trap set-up and compare definitions.
22713         * tests/test-vc-list-files-git.sh: Likewise.
22714         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22715
22716 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22717
22718         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22719         backup files.
22720
22721 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22722
22723         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22724
22725 2010-04-20  Eric Blake  <eblake@redhat.com>
22726
22727         tests: be robust to ignored SIGPIPE
22728         * tests/test-select-in.sh: Consume all output.
22729         * tests/test-lseek.sh: Check correct exit status, while avoiding
22730         EPIPE.
22731
22732 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22733             Bruno Haible  <bruno@clisp.org>
22734
22735         visibility: Don't use -fvisibility if it leads to a warning.
22736         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22737         yes, don't pretend that visibility works if it leads to a warning.
22738         Reported by Mike Gran <spk121@yahoo.com>.
22739
22740 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22741
22742         * build-aux/bootstrap: Use "git -h" for testing for supported options
22743         instead of "git --help".  The short-form option only shows a summary,
22744         and doesn't layout the full man page.  Grep for the full option name
22745         in the summary, too.
22746
22747 2010-04-19  Bruno Haible  <bruno@clisp.org>
22748
22749         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22750         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22751         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22752         mention of RELOCATABLE_STRIP.
22753         Reported by Sylvain Beucler <beuc@beuc.net>.
22754
22755 2010-04-19  Bruno Haible  <bruno@clisp.org>
22756
22757         * lib/diffseq.h: Fix typo in comment.
22758         Reported by Eric Blake.
22759
22760 2010-04-19  Bruno Haible  <bruno@clisp.org>
22761
22762         ioctl: Move autoconf macro to a .m4 file.
22763         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22764         * modules/ioctl (Files): Add it.
22765         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22766         Reported by Ian Beckwith <ianb@erislabs.net>.
22767
22768 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22769             Bruno Haible  <bruno@clisp.org>
22770
22771         diffseq: Accommodate use-case with abstract arrays.
22772         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22773         is not defined.
22774         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22775         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22776
22777 2010-04-18  Bruno Haible  <bruno@clisp.org>
22778
22779         * doc/posix-headers/stdbool.texi: More precise wording.
22780
22781 2010-04-17  Jim Meyering  <meyering@redhat.com>
22782
22783         maint.mk: use gnu-style indentation in an embedded perl script
22784         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22785         Rename variable: s/two/last_two_bytes/
22786
22787 2010-04-16  Eric Blake  <eblake@redhat.com>
22788
22789         test-stdbool: skip test that fails with Solaris CC
22790         * tests/test-stdbool.c (f): Skip test that causes compilation
22791         error under buggy C++ compiler.
22792         * lib/stdbool.in.h: Document the limitation.
22793         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22794
22795         setenv: allow compilation with C++
22796         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22797         register keyword.
22798
22799         stdint: allow test to pass with C++
22800         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22801
22802         getopt: allow compilation with C++
22803         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22804         struct.
22805         * lib/getopt.c (_getopt_internal_r): Use correct type.
22806         Reported by Dagobert Michelson, via Joel E. Denny.
22807
22808 2010-04-16  Bruno Haible  <bruno@clisp.org>
22809
22810         Override netdb.h always.
22811         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22812         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22813         Reported by Ludovic Courtès <ludo@gnu.org>.
22814
22815 2010-04-15  Bruno Haible  <bruno@clisp.org>
22816
22817         openpty: Fix mistake from 2010-03-21.
22818         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22819         Reported by Simon Josefsson.
22820
22821 2010-04-15  Eric Blake  <eblake@redhat.com>
22822
22823         test-forkpty: fix expected signature
22824         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22825         Reported by Simon Josefsson.
22826
22827 2010-04-15  Jim Meyering  <meyering@redhat.com>
22828
22829         maint.mk: texinfo_suffix_re_: correct the default regexp
22830         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22831
22832         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22833         make it configurable via texinfo_suffix_re_.
22834
22835 2010-04-14  Eric Blake  <eblake@redhat.com>
22836
22837         strtok_r: relax license to LGPLv2+
22838         * modules/strtok_r (License): Relax license.
22839         Reported by Matthias Bolte.
22840
22841 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22842
22843         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22844         version 1.4.4 by default instead of requiring the libgcrypt
22845         version used during build.  This makes it possible to use the
22846         application with older but still binary compatible libgcrypt
22847         versions.
22848
22849 2010-04-13  Eric Blake  <eblake@redhat.com>
22850
22851         getopt-gnu: match recent glibc fixes and posix ruling
22852         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22853         '+' handling, when requesting extensions.
22854         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22855         'W;' handling.
22856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22857         * doc/posix-functions/getopt.texi (getopt): Document this.
22858         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22859         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22860         Likewise.
22861
22862         getopt: merge bug fixes from glibc
22863         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22864         diagnostics.  Honor '+:' correctly.  Reject ';'.
22865
22866         getopt-posix: detect MacOS bug
22867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22868         optind when missing a required argument.
22869         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22870         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22871         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22872         Likewise.
22873
22874         getopt-posix: avoid spurious failure on Solaris
22875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22876         an indicator that setting optind=1 is sufficient for reset.
22877
22878         getopt-posix: avoid spurious failure on FreeBSD
22879         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22880         in POSIX mode, since the m4 test uses it.
22881
22882         gnulib-tool: silence warning on BSD sh
22883         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22884
22885 2010-04-13  Jim Meyering  <meyering@redhat.com>
22886
22887         doc: users.txt: GNU patch now uses gnulib
22888         * users.txt: Add patch.
22889
22890 2010-04-12  Jim Meyering  <meyering@redhat.com>
22891
22892         maint.mk: generate more concise timing data for syntax-check rules
22893         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22894         " done" from each line that reports a syntax-check test duration.
22895
22896 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22897
22898         git-version-gen: use "git update-index..." rather than "git status"
22899         * build-aux/git-version-gen: Use git update-index --refresh, not
22900         "git status".  With some versions of git, "git status" would fail
22901         to update the index and result in an unwarranted "-dirty" suffix.
22902
22903 2010-04-11  Jim Meyering  <meyering@redhat.com>
22904
22905         openat: correct formatting (no semantic change)
22906         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22907         Suggested by Bruno Haible.
22908
22909 2010-04-11  Bruno Haible  <bruno@clisp.org>
22910
22911         Stricter declaration checking in testdirs.
22912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22913         If for_tests is true, augment AM_CPPFLAGS to define
22914         GNULIB_STRICT_CHECKING.
22915         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22916         GNULIB_STRICT_CHECKING is defined, verify that the function is
22917         declared.
22918
22919 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22920             Bruno Haible  <bruno@clisp.org>
22921
22922         libunistring: Improve configure output.
22923         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22924         Don't say "consider installing GNU libunistring" when checking again
22925         with libiconv.
22926
22927 2010-04-11  Bruno Haible  <bruno@clisp.org>
22928
22929         libunistring: Correct value of $LTLIBUNISTRING.
22930         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22931         correct the value of $LTLIBUNISTRING.
22932
22933 2010-04-11  Bruno Haible  <bruno@clisp.org>
22934
22935         havelib: Add static libraries to LIBS in the right order.
22936         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22937         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22938
22939 2010-04-11  Bruno Haible  <bruno@clisp.org>
22940
22941         libunistring: Detect libunistring also when it depends on libiconv.
22942         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22943         the second AC_LIB_HAVE_LINKFLAGS invocation.
22944
22945 2010-04-11  James Youngman  <jay@gnu.org>
22946
22947         close-stream: declare local scalars to be "const"
22948         * lib/close-stream.c (close_stream): Make boolean variables const
22949         to document the fact that we set but do not change them.
22950
22951 2010-04-11  Bruno Haible  <bruno@clisp.org>
22952
22953         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22954
22955 2010-04-11  Jim Meyering  <meyering@redhat.com>
22956
22957         maint.mk: don't include dist-check.mk
22958         * top/maint.mk: Remove bogus include directive.
22959
22960         maint.mk: improve empty-line-at-EOF check
22961         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22962         solution, rather than tail+Perl-based one.  The latter would read
22963         a few kilobytes from the end of each file, and did not handle empty
22964         files properly.
22965
22966         maint.mk: print the elapsed time for each syntax-check rule
22967         * top/maint.mk (sc_m_rules_): Save start time in a file.
22968         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22969         (local-check): Interpose the .z rules
22970
22971 2010-04-11  Jim Meyering  <meyering@redhat.com>
22972
22973         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22974         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22975         empty file with one that ends in an empty line.
22976
22977 2010-04-10  Bruno Haible  <bruno@clisp.org>
22978
22979         mkdir: Make it work on mingw64.
22980         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22981         * lib/mkdir.c: Update comment.
22982         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22983
22984 2010-04-10  Bruno Haible  <bruno@clisp.org>
22985
22986         Don't override improved macro from newer autoconf.
22987         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22988         autoconf >= 2.62.
22989         Reported by Joel E. Denny <jdenny@clemson.edu>.
22990
22991 2010-04-10  Jim Meyering  <meyering@redhat.com>
22992
22993         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22994         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22995
22996         maint.mk: correct a diagnostic
22997         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22998         in diagnostic; now use $prohibit.
22999
23000 2010-04-10  Bruno Haible  <address@hidden>
23001
23002         fchownat: Fix a C++ test error on Solaris 8.
23003         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23004         the function does not exist.
23005
23006 2010-04-10  Bruno Haible  <bruno@clisp.org>
23007
23008         vasnprintf: Add more tests.
23009         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23010         (test_function): Test converting an invalid wide string.
23011
23012         vasnprintf: Correct handling of unconvertible wide string arguments.
23013         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23014         VASNPRINTF.
23015         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23016         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23017         smaller than the expected maximum need for the directive. Set errno to
23018         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23019         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23021         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23022         * modules/vasnprintf (Files): Add m4/printf.m4.
23023         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23024
23025 2010-04-10  Bruno Haible  <bruno@clisp.org>
23026
23027         vasnprintf: Fix crash in %ls directive.
23028         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23029         string is passed as argument to %ls, with no precision and no width.
23030         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23031
23032 2010-04-10  Bruno Haible  <bruno@clisp.org>
23033
23034         vasnprintf: Fix multiple test failures on mingw.
23035         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23036         _snprintf, or snwprintf, not _snwprintf.
23037
23038 2010-04-10  Bruno Haible  <bruno@clisp.org>
23039
23040         write: Fix a C++ test error on mingw.
23041         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23042
23043 2010-04-10  Bruno Haible  <bruno@clisp.org>
23044
23045         vasnprintf test: Reduce code duplication.
23046         * tests/test-vasnprintf.c (test_function): New function, extracted from
23047         test_vasnprintf.
23048         (test_vasnprintf, test_asnprintf): Invoke it.
23049
23050 2010-04-10  Bruno Haible  <bruno@clisp.org>
23051
23052         strnlen: Fix warning in C++ mode on MacOS X.
23053         * lib/string.in.h (strnlen): Use the modern idiom.
23054         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23055         defining strnlen as a macro already in <config.h>.
23056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23057         REPLACE_STRNLEN.
23058         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23059         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23060
23061 2010-04-08  James Youngman  <jay@gnu.org>
23062
23063         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23064         the example.
23065
23066 2010-04-09  Jim Meyering  <meyering@redhat.com>
23067
23068         maint.mk: print better diagnostic when there is no $(_hv_file)
23069         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23070         announce that when $(_hv_file) (aka help-version) does not exist.
23071
23072         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23073         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23074         not try to interpret its random input bytes.  Jarno Rajahalme reported
23075         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23076         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23077         (mktempd_): Likewise, just in case.
23078
23079         ftruncate: add two years to projected module removal date: 2012
23080         * m4/ftruncate.m4: Adjust comments.
23081
23082         ftruncate: mark module as obsolete; even MinGW provides it, now
23083         * modules/ftruncate (Status): Obsolete.
23084         (Notice): Say that.
23085         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23086         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23087
23088 2010-04-08  Bruno Haible  <bruno@clisp.org>
23089
23090         Fix side effects from tests-related modules.
23091         * modules/dprintf-posix (Comment): New section.
23092         * modules/fprintf-posix (Comment): Likewise.
23093         * modules/obstack-printf-posix (Comment): Likewise.
23094         * modules/printf-posix (Comment): Likewise.
23095         * modules/snprintf-posix (Comment): Likewise.
23096         * modules/sprintf-posix (Comment): Likewise.
23097         * modules/vasnprintf-posix (Comment): Likewise.
23098         * modules/vasprintf-posix (Comment): Likewise.
23099         * modules/vdprintf-posix (Comment): Likewise.
23100         * modules/vfprintf-posix (Comment): Likewise.
23101         * modules/vprintf-posix (Comment): Likewise.
23102         * modules/vsnprintf-posix (Comment): Likewise.
23103         * modules/vsprintf-posix (Comment): Likewise.
23104         * modules/xprintf-posix (Comment): Likewise.
23105         * modules/xvasprintf-posix (Comment): Likewise.
23106         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23107         * modules/floorf-tests (Depends-on): Likewise.
23108         * modules/round-tests (Depends-on): Likewise.
23109         * modules/roundf-tests (Depends-on): Likewise.
23110         * modules/trunc-tests (Depends-on): Likewise.
23111         * modules/truncf-tests (Depends-on): Likewise.
23112         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23113         'fprintf-posix' module is not present.
23114         * tests/test-floorf2.c (check): Likewise.
23115         * tests/test-trunc2.c (check): Likewise.
23116         * tests/test-truncf2.c (check): Likewise.
23117         * tests/test-round2.c (equal): Likewise.
23118         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23119
23120 2010-04-07  Karl Berry  <karl@gnu.org>
23121
23122         * config/srclist.txt,
23123         * config/srclistvars.sh,
23124         * config/srclist-update: doc fixes.
23125
23126 2010-04-07  Jim Meyering  <meyering@redhat.com>
23127
23128         maint.mk: add a PATH crosschecking syntax-check rule
23129         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23130         Useful if you use a test like the one in help-version (coreutils,
23131         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23132         printed by prog --version.
23133
23134 2010-04-06  Bruno Haible  <bruno@clisp.org>
23135
23136         Fix link error on mingw.
23137         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23138         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23139
23140 2010-04-06  Bruno Haible  <bruno@clisp.org>
23141
23142         Assume rmdir exists.
23143         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23144
23145 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23146
23147         doc: update users.txt
23148         * users.txt: Add gcal.
23149
23150 2010-04-06  Jim Meyering  <meyering@redhat.com>
23151
23152         init.sh: simply unset TMPDIR rather than risking env -i
23153         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23154         although it probably works fine on all Unix-based systems, some
23155         systems (Cygwin?) cannot tolerate a totally cleared environment.
23156         Suggestion from Eric Blake.
23157
23158 2010-04-06  Jim Meyering  <meyering@redhat.com>
23159
23160         init.sh: portability fix: use env's POSIX-specified -i option not -u
23161         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23162         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23163
23164 2010-04-05  Bruno Haible  <bruno@clisp.org>
23165
23166         btowc: Work around Cygwin 1.7.2 bug.
23167         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23168         does not map NUL to 0.
23169         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23170
23171 2010-04-05  Bruno Haible  <bruno@clisp.org>
23172
23173         Make the multithread modules work on Cygwin 1.7.2.
23174         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23175         imported symbols can be declared weak, so that it returns "no" on
23176         Cygwin 1.7.2.
23177
23178 2010-04-05  Bruno Haible  <bruno@clisp.org>
23179
23180         Use the module 'strncat'.
23181         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23182
23183         Tests for module 'strncat'.
23184         * modules/strncat-tests: New file.
23185         * tests/test-strncat.c: New file.
23186
23187         New module 'strncat'.
23188         * lib/string.in.h (strncat): New declaration.
23189         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23190         * m4/strncat.m4: New file, based on m4/memchr.m4.
23191         * modules/strncat: New file.
23192         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23193         is declared.
23194         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23195         REPLACE_STRNCAT.
23196         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23197         REPLACE_STRNCAT.
23198         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23199         module.
23200         * tests/test-string-c++.cc: Check signature of strncat.
23201
23202 2010-04-05  Jim Meyering  <meyering@redhat.com>
23203
23204         xstrtoumax-tests: convert to use init.sh
23205         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23206         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23207         Use Exit, not exit.
23208         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23209
23210         xstrtoimax-tests: convert to use init.sh
23211         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23212         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23213         Use Exit, not exit.
23214         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23215
23216 2010-04-05  Bruno Haible  <bruno@clisp.org>
23217
23218         sys_socket: Avoid #define replacements in C++ mode.
23219         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23220         warning to the function if possible, rather than #defining the symbol
23221         to a dysfunctional alias.
23222
23223 2010-04-05  Bruno Haible  <bruno@clisp.org>
23224
23225         fseeko: Fix C++ test error on mingw.
23226         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23227         gl_FUNC_FSEEKO.
23228         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23229         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23230         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23231         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23232
23233 2010-04-05  Bruno Haible  <bruno@clisp.org>
23234
23235         duplocale: Improve test output.
23236         * tests/test-duplocale.c (main): Print reason for skipped test.
23237
23238 2010-04-05  Bruno Haible  <bruno@clisp.org>
23239
23240         Assume rmdir exists.
23241         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23242         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23243
23244 2010-04-05  Bruno Haible  <bruno@clisp.org>
23245
23246         Fix link error on Solaris 8 with cc.
23247         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23248
23249 2010-04-05  Bruno Haible  <bruno@clisp.org>
23250
23251         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23252         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23253
23254 2010-04-05  Bruno Haible  <bruno@clisp.org>
23255
23256         vasprintf: Update documentation.
23257         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23258
23259 2010-04-05  Bruno Haible  <bruno@clisp.org>
23260
23261         ptsname: Improve test.
23262         * tests/test-ptsname.c (main): Also try the various master names of BSD
23263         systems.
23264
23265 2010-04-05  Bruno Haible  <bruno@clisp.org>
23266
23267         memchr: Avoid a possible C++ test error.
23268         * lib/string.in.h (memchr): Provide declaration if function is missing.
23269         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23270         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23272         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23273
23274 2010-04-05  Bruno Haible  <bruno@clisp.org>
23275
23276         strtok_r: Improve idiom.
23277         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23278         AC_LIBOBJ is used.
23279
23280 2010-04-05  Bruno Haible  <bruno@clisp.org>
23281
23282         strdup: Improve idiom.
23283         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23284         AC_LIBOBJ is used.
23285         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23286         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23287         when AC_LIBOBJ is used.
23288
23289 2010-04-05  Bruno Haible  <bruno@clisp.org>
23290
23291         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23292         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23293         don't set REPLACE_MBSINIT to 1.
23294         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23295         don't set REPLACE_MBRTOWC to 1.
23296         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23297         exist, don't set REPLACE_MBSRTOWCS to 1.
23298         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23299         exist, don't set REPLACE_MBSNRTOWCS to 1.
23300         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23301         don't set REPLACE_WCRTOMB to 1.
23302         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23303         exist, don't set REPLACE_WCSRTOMBS to 1.
23304         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23305         exist, don't set REPLACE_WCSNRTOMBS to 1.
23306
23307 2010-04-05  Bruno Haible  <bruno@clisp.org>
23308
23309         ldexpl: Improve idiom.
23310         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23311         make sure to set HAVE_DECL_LDEXPL to 0.
23312
23313 2010-04-05  Jim Meyering  <meyering@redhat.com>
23314
23315         xstrtol-tests: convert to use init.sh
23316         * modules/xstrtol-tests (Files): Add tests/init.sh.
23317         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23318         Use Exit, not exit.
23319         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23320
23321         atexit-tests: convert to use init.sh
23322         * modules/atexit-tests (Files): Add tests/init.sh.
23323         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23324         Use Exit, not exit.
23325         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23326
23327         init.sh: fix typo
23328         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23329
23330         init.sh: make it easier for a test script to write to the tty, ...
23331         when using automake's parallel-tests mode.
23332         * tests/init.sh (stderr_fileno_): Define overridable variable.
23333         (warn_): New function, to use it.
23334         (fail_, skip_, framework_failure_): Use warn_.
23335
23336 2010-04-04  Bruno Haible  <bruno@clisp.org>
23337
23338         btowc: Avoid warning.
23339         * lib/btowc.c: Include <stdlib.h>.
23340         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23341
23342 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23343             Bruno Haible  <bruno@clisp.org>
23344
23345         wchar: Port to NetBSD 1.5.
23346         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23347         * lib/wctype.in.h (WEOF): Likewise.
23348
23349 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23350             Bruno Haible  <bruno@clisp.org>
23351
23352         Port extended stdio to NetBSD 1.5.
23353         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23354         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23355         older.
23356
23357 2010-04-04  Bruno Haible  <bruno@clisp.org>
23358
23359         string: Remove unused substitution.
23360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23361         HAVE_DECL_STRERROR.
23362         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23363
23364 2010-04-04  Bruno Haible  <bruno@clisp.org>
23365
23366         strtod: Avoid a possible C++ test error.
23367         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23368         set REPLACE_STRTOD.
23369
23370 2010-04-04  Bruno Haible  <bruno@clisp.org>
23371
23372         strerror: Update documentation.
23373         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23374
23375 2010-04-04  Bruno Haible  <bruno@clisp.org>
23376
23377         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23378         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23379         _GL_CXXALIAS_SYS_CAST.
23380
23381 2010-04-04  Bruno Haible  <bruno@clisp.org>
23382
23383         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23384         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23385         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23386         REPLACE_FREXPL to 1.
23387         * doc/posix-functions/frexpl.texi: Update documentation.
23388
23389 2010-04-04  Bruno Haible  <bruno@clisp.org>
23390
23391         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23392         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23393
23394 2010-04-04  Bruno Haible  <bruno@clisp.org>
23395
23396         Implement nanosleep for native Windows.
23397         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23398
23399 2010-04-04  Bruno Haible  <bruno@clisp.org>
23400
23401         math: Fix some C++ test errors on Solaris 8.
23402         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23403
23404 2010-04-04  Bruno Haible  <bruno@clisp.org>
23405
23406         math: Fix some C++ test errors on Cygwin.
23407         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23408         truncl): Provide declaration if the system does not have it.
23409         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23410         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23411         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23412         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23413         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23414         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23415         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23416         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23417         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23418         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23419         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23420         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23421         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23422         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23423         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23424         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23426         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23427         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23428         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23429         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23430         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23431
23432 2010-04-04  Bruno Haible  <bruno@clisp.org>
23433
23434         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23435         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23436         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23437         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23438         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23439         * m4/isinf.m4 (gl_ISINF): Likewise.
23440         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23441
23442 2010-04-04  Bruno Haible  <bruno@clisp.org>
23443
23444         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23445         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23446
23447 2010-04-04  Bruno Haible  <bruno@clisp.org>
23448
23449         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23450         * modules/tmpfile (configure.ac): Update.
23451
23452         tmpfile: Fix C++ test error on mingw.
23453         * lib/stdio.in.h (tmpfile): New declaration.
23454         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23455         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23456         * modules/tmpfile (Depends-on): Add stdio.
23457         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23458         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23459         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23460         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23461         REPLACE_TMPFILE.
23462         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23463
23464 2010-04-04  Bruno Haible  <bruno@clisp.org>
23465
23466         ioctl: Fix C++ test error on mingw.
23467         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23468         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23469         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23470
23471 2010-04-03  Bruno Haible  <bruno@clisp.org>
23472
23473         wcwidth: Fix C++ test error on mingw.
23474         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23476         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23477
23478 2010-04-03  Bruno Haible  <bruno@clisp.org>
23479
23480         nanosleep: Fix C++ test error on mingw.
23481         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23482         * lib/time.in.h (nanosleep): Use modern idiom.
23483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23484         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23485         REPLACE_NANOSLEEP to 1.
23486         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23487         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23488
23489 2010-04-03  Bruno Haible  <bruno@clisp.org>
23490
23491         strptime: Fix C++ test error on mingw.
23492         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23493         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23494         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23495         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23496         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23497         not REPLACE_STRPTIME.
23498         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23499         REPLACE_STRPTIME.
23500
23501 2010-04-03  Bruno Haible  <bruno@clisp.org>
23502
23503         timegm: Fix C++ test error on mingw.
23504         * lib/time.in.h (timegm): Use modern idiom.
23505         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23506         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23507         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23508         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23509
23510 2010-04-03  Bruno Haible  <bruno@clisp.org>
23511
23512         timegm: Assume declaration if function exists.
23513         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23514         if it exists. Don't clobber ac_cv_func_timegm.
23515
23516 2010-04-03  Bruno Haible  <bruno@clisp.org>
23517
23518         time_r: Fix C++ test error on mingw.
23519         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23520         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23521         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23522         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23523         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23524
23525 2010-04-03  Bruno Haible  <bruno@clisp.org>
23526
23527         time_r: Minor updates.
23528         * modules/time_r (Description): Mention the provided functions.
23529         * lib/time_r.c: Don't include <string.h>.
23530         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23531         * doc/posix-functions/localtime_r.texi: Likewise.
23532
23533 2010-04-03  Bruno Haible  <bruno@clisp.org>
23534
23535         time: Fix regression introduced on 2010-03-08.
23536         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23537         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23538
23539 2010-04-03  Jim Meyering  <meyering@redhat.com>
23540
23541         maint.mk: don't silently disable project-specific syntax-check rules
23542         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23543         that they need to convert their project-specific syntax-check rules
23544         to use the new _sc_search_regexp.
23545
23546 2010-04-03  Bruno Haible  <bruno@clisp.org>
23547
23548         fchdir: Fix regression introduced on 2010-03-08.
23549         * lib/unistd.in.h (fchdir): Fix declaration.
23550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23552         REPLACE_FCHDIR.
23553         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23554         REPLACE_FCHDIR.
23555
23556 2010-04-03  Bruno Haible  <bruno@clisp.org>
23557
23558         getpagesize: Fix C++ test error on mingw.
23559         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23560         system does not declare the function.
23561         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23562         declared.
23563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23564         HAVE_DECL_GETPAGESIZE.
23565         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23566
23567 2010-04-03  Bruno Haible  <bruno@clisp.org>
23568
23569         stdio: Make C++ tests work on mingw.
23570         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23571         does not declare the function.
23572
23573 2010-04-03  Bruno Haible  <bruno@clisp.org>
23574
23575         ftello: Fix C++ test error on mingw.
23576         * lib/stdio.in.h (ftello): Use modern idiom.
23577         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23578         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23579         is missing and that it needs to be replaced.
23580         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23582         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23583
23584 2010-04-03  Bruno Haible  <bruno@clisp.org>
23585
23586         fseeko: Fix C++ test error on mingw.
23587         * lib/stdio.in.h (fseeko): Use modern idiom.
23588         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23590         is missing and that it needs to be replaced.
23591         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23593         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23594
23595 2010-04-03  Bruno Haible  <bruno@clisp.org>
23596
23597         mkstemp: Fix C++ test error on mingw.
23598         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23599         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23600         function is missing and that it needs to be replaced.
23601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23602         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23603
23604 2010-04-03  Bruno Haible  <bruno@clisp.org>
23605
23606         stpncpy: Fix C++ test error on mingw.
23607         * lib/string.in.h (stpncpy): Use modern idiom.
23608         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23609         function is missing and that it needs to be replaced.
23610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23611         REPLACE_STPNCPY.
23612         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23613
23614 2010-04-03  Bruno Haible  <bruno@clisp.org>
23615
23616         sys_stat: Fix C++ test error on mingw.
23617         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23618         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23619
23620 2010-04-03  Bruno Haible  <bruno@clisp.org>
23621
23622         pty: Update doc.
23623         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23624
23625 2010-04-03  Bruno Haible  <bruno@clisp.org>
23626
23627         unistd: Fix C++ test error on mingw.
23628         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23629
23630 2010-04-03  Bruno Haible  <bruno@clisp.org>
23631
23632         Update doc regarding mingw.
23633         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23634         * doc/glibc-functions/login_tty.texi: Likewise.
23635         * doc/glibc-functions/forkpty.texi: Likewise.
23636
23637 2010-04-03  Bruno Haible  <bruno@clisp.org>
23638
23639         stdlib: Avoid compilation failure of c-strtold on mingw.
23640         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23641
23642 2010-04-03  Bruno Haible  <bruno@clisp.org>
23643
23644         locale: Make C++ tests work on Cygwin and mingw.
23645         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23646         cannot provide the function.
23647         Reported by Simon Josefsson.
23648
23649 2010-04-03  Bruno Haible  <bruno@clisp.org>
23650
23651         localename: Port to MacOS X 10.6.
23652         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23653         memory layout of the locales in MacOS X 10.6 as well.
23654         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23655
23656 2010-04-02  Bruno Haible  <bruno@clisp.org>
23657
23658         gnulib-tool: Ensure that long-running tests are executed last.
23659         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23660         running tests after the one for the other tests.
23661
23662 2010-04-02  Bruno Haible  <bruno@clisp.org>
23663
23664         gnulib-tool: Ensure the tests in the main directory are executed first.
23665         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23666         start with the current directory.
23667
23668 2010-04-02  Bruno Haible  <bruno@clisp.org>
23669
23670         Tests for module 'havelib', moved here from GNU gettext.
23671         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23672         modifications.
23673         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23674         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23675         with modifications.
23676         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23677         modifications.
23678         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23679         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23680         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23681         with modifications.
23682         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23683         with modifications.
23684         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23685         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23686         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23687         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23688         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23689         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23690         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23691         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23692         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23693         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23694         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23695         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23696         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23697         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23698         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23699         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23700         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23701         with modifications.
23702         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23703         with modifications.
23704         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23705         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23706         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23707         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23708         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23709         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23710         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23711         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23712         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23713         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23714         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23715         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23716         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23717         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23718         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23719         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23720         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23721         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23722         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23723         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23724         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23725         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23726         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23727         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23728         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23729         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23730         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23731         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23732         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23733         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23734         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23735         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23736         * tests/havelib/rpathx/rpathx.c: New file, from
23737         gettext/autoconf-lib-link.
23738         * tests/havelib/rpathx/Makefile.am: New file, from
23739         gettext/autoconf-lib-link.
23740         * tests/havelib/rpathx/configure.ac: New file, from
23741         gettext/autoconf-lib-link with modifications.
23742         * tests/havelib/rpathy/rpathy.c: New file, from
23743         gettext/autoconf-lib-link.
23744         * tests/havelib/rpathy/Makefile.am: New file, from
23745         gettext/autoconf-lib-link.
23746         * tests/havelib/rpathy/configure.ac: New file, from
23747         gettext/autoconf-lib-link with modifications.
23748         * tests/havelib/rpathz/rpathz.c: New file, from
23749         gettext/autoconf-lib-link.
23750         * tests/havelib/rpathz/Makefile.am: New file, from
23751         gettext/autoconf-lib-link.
23752         * tests/havelib/rpathz/configure.ac: New file, from
23753         gettext/autoconf-lib-link with modifications.
23754         * tests/havelib/rpathlx/usex.c: New file, from
23755         gettext/autoconf-lib-link.
23756         * tests/havelib/rpathlx/Makefile.am: New file, from
23757         gettext/autoconf-lib-link.
23758         * tests/havelib/rpathlx/configure.ac: New file, from
23759         gettext/autoconf-lib-link with modifications.
23760         * tests/havelib/rpathly/usey.c: New file, from
23761         gettext/autoconf-lib-link.
23762         * tests/havelib/rpathly/Makefile.am: New file, from
23763         gettext/autoconf-lib-link.
23764         * tests/havelib/rpathly/configure.ac: New file, from
23765         gettext/autoconf-lib-link with modifications.
23766         * tests/havelib/rpathlz/usez.c: New file, from
23767         gettext/autoconf-lib-link.
23768         * tests/havelib/rpathlz/Makefile.am: New file, from
23769         gettext/autoconf-lib-link.
23770         * tests/havelib/rpathlz/configure.ac: New file, from
23771         gettext/autoconf-lib-link with modifications.
23772         * tests/havelib/rpathlyx/usey.c: New file, from
23773         gettext/autoconf-lib-link.
23774         * tests/havelib/rpathlyx/Makefile.am: New file, from
23775         gettext/autoconf-lib-link.
23776         * tests/havelib/rpathlyx/configure.ac: New file, from
23777         gettext/autoconf-lib-link with modifications.
23778         * tests/havelib/rpathlzyx/usez.c: New file, from
23779         gettext/autoconf-lib-link.
23780         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23781         gettext/autoconf-lib-link.
23782         * tests/havelib/rpathlzyx/configure.ac: New file, from
23783         gettext/autoconf-lib-link with modifications.
23784         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23785         with modifications.
23786
23787 2010-04-02  Bruno Haible  <bruno@clisp.org>
23788
23789         gnulib-tool: Create distributed built sources also for the tests.
23790         * gnulib-tool (func_create_testdir): Also generate distributed built
23791         sources in the tests directory.
23792
23793 2010-04-02  Bruno Haible  <bruno@clisp.org>
23794
23795         gnulib-tool: Obey user's environment variables.
23796         * gnulib-tool (func_create_testdir): When creating built sources,
23797         respect the environment variables for autoconf, automake, etc. given by
23798         the user.
23799
23800 2010-04-02  Bruno Haible  <bruno@clisp.org>
23801
23802         gnulib-tool: Provide the value of --m4-base to modules.
23803         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23804         of gl_m4_base.
23805
23806 2010-04-02  Eric Blake  <eblake@redhat.com>
23807
23808         maint.mk: fix some fallout
23809         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23810         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23811
23812 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23813
23814         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23815         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23816         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23817         (sc_cast_of_x_alloc_return_value): Likewise.
23818         (sc_cast_of_alloca_return_value): Likewise.
23819         (sc_space_tab): Likewise.
23820         (sc_prohibit_atoi_atof): Likewise.
23821         (sc_prohibit_magic_number_exit): Likewise.
23822         (sc_error_exit_success): Likewise.
23823         (sc_file_system): Likewise.
23824         (sc_prohibit_have_config_h): Likewise.
23825         (sc_require_config_h): Likewise.
23826         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23827         (sc_obsolete_symbols): Likewise.
23828         (sc_changelog): Likewise.
23829         (sc_program_name): Likewise.
23830         (sc_the_the): Likewise.
23831         (sc_trailing_blank): Likewise.
23832         (sc_two_space_separator_in_usage): Likewise.
23833         (sc_useless_cpp_parens): Likewise.
23834         (sc_GPL_version): Likewise.
23835         (sc_GFDL_version): Likewise.
23836         (sc_texinfo_acronym): Likewise.
23837         (sc_prohibit_cvs_keyword): Likewise.
23838         (sc_prohibit_stat_st_blocks): Likewise.
23839         (sc_prohibit_S_IS_definition): Likewise.
23840         (sc_redundant_const): Likewise.
23841         (sc_makefile_TAB_only_indentation): Likewise.
23842         (sc_m4_quote_check): Likewise.
23843         (sc_makefile_path_separator_check): Likewise.
23844         (sc_copyright_check): Likewise.
23845         (sc_Wundef_boolean): Likewise.
23846         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23847
23848         maint.mk: match 0 or more whitespace-before-function-call '('
23849         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23850         that have zero or two-and-more spaces between the function name
23851         and the open parenthesis.
23852         (sc_error_message_warn_fatal): Likewise.
23853         (sc_error_message_uppercase): Likewise.
23854         (sc_error_message_period): Likewise.
23855
23856 2010-03-31  Eric Blake  <eblake@redhat.com>
23857
23858         maint.mk: check for [ as well as test
23859         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23860         Based on a libvirt report by Matthias Bolte.
23861
23862         gnumakefile: don't squelch _version output
23863         * top/GNUmakefile (_version): Create one-shot dependency rather
23864         than using $(shell) when version must be regenerated.
23865         (_autoreconf): Run verbosely, by default.
23866
23867         sys_time: avoid compiler warnings
23868         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23869         unconditional, fixing regression from 2010-03-29.
23870         Reported by Simon Josefsson.
23871
23872 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23873
23874         maint.mk: s/_header_without_use/_sc_header_without_use/
23875         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23876         (sc_prohibit_assert_without_use): Use the new name.
23877         (sc_prohibit_close_stream_without_use): Likewise.
23878         (sc_prohibit_getopt_without_use): Likewise.
23879         (sc_prohibit_quotearg_without_use): Likewise.
23880         (sc_prohibit_quote_without_use): Likewise.
23881         (sc_prohibit_long_options_without_use): Likewise.
23882         (sc_prohibit_inttostr_without_use): Likewise.
23883         (sc_prohibit_ignore_value_without_use): Likewise.
23884         (sc_prohibit_error_without_use): Likewise.
23885         (sc_prohibit_xalloc_without_use): Likewise.
23886         (sc_prohibit_hash_without_use): Likewise.
23887         (sc_prohibit_hash_pjw_without_use): Likewise.
23888         (sc_prohibit_safe_read_without_use): Likewise.
23889         (sc_prohibit_argmatch_without_use): Likewise.
23890         (sc_prohibit_canonicalize_without_use): Likewise.
23891         (sc_prohibit_root_dev_ino_without_use): Likewise.
23892         (sc_prohibit_openat_without_use): Likewise.
23893         (sc_prohibit_c_ctype_without_use): Likewise.
23894         (sc_prohibit_signal_without_use): Likewise.
23895         (sc_prohibit_intprops_without_use): Likewise.
23896
23897 2010-03-30  Eric Blake  <eblake@redhat.com>
23898
23899         maint: improve module indicators
23900         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23901         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23902         columns, and avoid extra macro expansion.
23903
23904         fdopendir: work around FreeBSD bug
23905         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23906         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23907         * modules/dirent (Makefile.am): Substitute it.
23908         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23909         declaration.
23910         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23911         fix.
23912         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23913
23914 2010-03-29  Bruno Haible  <bruno@clisp.org>
23915
23916         Emit #pragma system_header after the inclusion guard, not before.
23917         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23918         guard that spans the entire file, not before. This enables an
23919         optimization in GCC's preprocessor.
23920         * lib/ctype.in.h: Likewise.
23921         * lib/dirent.in.h: Likewise.
23922         * lib/errno.in.h: Likewise.
23923         * lib/float.in.h: Likewise.
23924         * lib/getopt.in.h: Likewise.
23925         * lib/iconv.in.h: Likewise.
23926         * lib/langinfo.in.h: Likewise.
23927         * lib/locale.in.h: Likewise.
23928         * lib/math.in.h: Likewise.
23929         * lib/netdb.in.h: Likewise.
23930         * lib/netinet_in.in.h: Likewise.
23931         * lib/pty.in.h: Likewise.
23932         * lib/sched.in.h: Likewise.
23933         * lib/se-selinux.in.h: Likewise.
23934         * lib/search.in.h: Likewise.
23935         * lib/spawn.in.h: Likewise.
23936         * lib/stdarg.in.h: Likewise.
23937         * lib/stdint.in.h: Likewise.
23938         * lib/string.in.h: Likewise.
23939         * lib/strings.in.h: Likewise.
23940         * lib/sys_file.in.h: Likewise.
23941         * lib/sys_ioctl.in.h: Likewise.
23942         * lib/sys_time.in.h: Likewise.
23943         * lib/sys_times.in.h: Likewise.
23944         * lib/sys_utsname.in.h: Likewise.
23945         * lib/sys_wait.in.h: Likewise.
23946         * lib/sysexits.in.h: Likewise.
23947         * lib/wctype.in.h: Likewise.
23948
23949 2010-03-28  James Youngman  <jay@gnu.org>
23950
23951         save-cwd: don't leak a file descriptor when the caller execs.
23952         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23953         saved file descriptor.
23954         * modules/save-cwd (Depends-on): Depend on cloexec.
23955
23956 2010-03-29  Bruno Haible  <bruno@clisp.org>
23957
23958         Remove vestiges of fts-lgpl module.
23959         * lib/fts_.h: Assume GNULIB_FTS is 1.
23960         * lib/fts.c: Likewise.
23961         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23962
23963 2010-03-28  Bruno Haible  <bruno@clisp.org>
23964
23965         Fix definition of tests witness macro.
23966         * gnulib-tool (func_import): Fix definition of witness macro.
23967
23968 2010-03-28  Bruno Haible  <bruno@clisp.org>
23969
23970         Fix ioctl's protoype on glibc systems.
23971         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23972         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23973         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23974         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23975         signature. If not, arrange to replace the ioctl function.
23976         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23977         REPLACE_IOCTL.
23978         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23979         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23980         Reported by Ludovic Courtès <ludo@gnu.org>.
23981
23982 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23983
23984         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23985         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23986         made it so grep -r --include=GLOB* ... did not work.
23987
23988 2010-03-26  Jim Meyering  <meyering@redhat.com>
23989             Eric Blake  <eblake@redhat.com>
23990
23991         maint.mk: prohibit use of test's -o and -a operators
23992         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23993
23994 2010-03-28  Bruno Haible  <bruno@clisp.org>
23995
23996         Remove unused GNULIB_XYZ macro definitions.
23997         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23998         invocation.
23999
24000 2010-03-28  Bruno Haible  <bruno@clisp.org>
24001
24002         Mark privileged tests modules.
24003         * modules/idpriv-drop-tests (Status): New section.
24004         * modules/idpriv-droptemp-tests (Status): New section.
24005
24006 2010-03-28  Bruno Haible  <bruno@clisp.org>
24007
24008         Split C++ tests into separate tests modules.
24009         * modules/dirent-c++-tests: New file, extracted from
24010         modules/dirent-tests.
24011         * modules/dirent-tests: Depend on it.
24012         * modules/fcntl-h-c++-tests: New file, extracted from
24013         modules/fcntl-h-tests.
24014         * modules/fcntl-h-tests: Depend on it.
24015         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24016         * modules/glob-tests: Depend on it.
24017         * modules/iconv-h-c++-tests: New file, extracted from
24018         modules/iconv-h-tests.
24019         * modules/iconv-h-tests: Depend on it.
24020         * modules/langinfo-c++-tests: New file, extracted from
24021         modules/langinfo-tests.
24022         * modules/langinfo-tests: Depend on it.
24023         * modules/locale-c++-tests: New file, extracted from
24024         modules/locale-tests.
24025         * modules/locale-tests: Depend on it.
24026         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24027         * modules/math-tests: Depend on it.
24028         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24029         * modules/pty-tests: Depend on it.
24030         * modules/search-c++-tests: New file, extracted from
24031         modules/search-tests.
24032         * modules/search-tests: Depend on it.
24033         * modules/signal-c++-tests: New file, extracted from
24034         modules/signal-tests.
24035         * modules/signal-tests: Depend on it.
24036         * modules/spawn-c++-tests: New file, extracted from
24037         modules/spawn-tests.
24038         * modules/spawn-tests: Depend on it.
24039         * modules/stdio-c++-tests: New file, extracted from
24040         modules/stdio-tests.
24041         * modules/stdio-tests: Depend on it.
24042         * modules/stdlib-c++-tests: New file, extracted from
24043         modules/stdlib-tests.
24044         * modules/stdlib-tests: Depend on it.
24045         * modules/string-c++-tests: New file, extracted from
24046         modules/string-tests.
24047         * modules/string-tests: Depend on it.
24048         * modules/sys_ioctl-c++-tests: New file, extracted from
24049         modules/sys_ioctl-tests.
24050         * modules/sys_ioctl-tests: Depend on it.
24051         * modules/sys_select-c++-tests: New file, extracted from
24052         modules/sys_select-tests.
24053         * modules/sys_select-tests: Depend on it.
24054         * modules/sys_socket-c++-tests: New file, extracted from
24055         modules/sys_socket-tests.
24056         * modules/sys_socket-tests: Depend on it.
24057         * modules/sys_stat-c++-tests: New file, extracted from
24058         modules/sys_stat-tests.
24059         * modules/sys_stat-tests: Depend on it.
24060         * modules/sys_time-c++-tests: New file, extracted from
24061         modules/sys_time-tests.
24062         * modules/sys_time-tests: Depend on it.
24063         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24064         * modules/time-tests: Depend on it.
24065         * modules/unistd-c++-tests: New file, extracted from
24066         modules/unistd-tests.
24067         * modules/unistd-tests: Depend on it.
24068         * modules/wchar-c++-tests: New file, extracted from
24069         modules/wchar-tests.
24070         * modules/wchar-tests: Depend on it.
24071         * modules/wctype-c++-tests: New file, extracted from
24072         modules/wctype-tests.
24073         * modules/wctype-tests: Depend on it.
24074         Reported by Simon Josefsson.
24075
24076 2010-03-28  Bruno Haible  <bruno@clisp.org>
24077
24078         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24079         * gnulib-tool (func_exists_module): New function, extracted from
24080         func_verify_module.
24081         (func_verify_module): Use it.
24082         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24083         'foo' only if 'foo' exists.
24084         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24085         module.
24086
24087 2010-03-28  Bruno Haible  <bruno@clisp.org>
24088
24089         gnulib-tool: Add support for special categories of tests.
24090         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24091         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24092         (func_usage): Document them.
24093         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24094         inc_unportable_tests, inc_all_tests): New variables.
24095         (func_acceptable): Consider these variables.
24096         (func_modules_transitive_closure): Make it work when the 'Status' field
24097         consists of multiple words.
24098         (func_import): Store and restore the values of inc_cxx_tests,
24099         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24100         inc_all_tests in gnulib-comp.m4.
24101         (func_create_testdir): Set inc_all_tests to true.
24102         * doc/gnulib.texi (Extra tests modules): New section.
24103         Suggested by Jim Meyering.
24104
24105 2010-03-28  Bruno Haible  <bruno@clisp.org>
24106
24107         ansi-c++-opt: Allow turning off the C++ build by default.
24108         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24109         gl_CXX_CHOICE_DEFAULT_NO is defined.
24110         Requested by Eric Blake.
24111
24112 2010-03-28  Bruno Haible  <bruno@clisp.org>
24113
24114         unistd: Avoid #define replacements in C++ mode.
24115         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24116         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24117         setsockopt, shutdown, select): In C++, attach a warning to the function
24118         if possible, rather than #defining the symbol to a dysfunctional alias.
24119         Reported by John W. Eaton <jwe@gnu.org>.
24120
24121 2010-03-28  Bruno Haible  <bruno@clisp.org>
24122
24123         Fix link errors on mingw.
24124         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24125         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24126         $(LIBSOCKET).
24127         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24128         $(LIBSOCKET).
24129
24130 2010-03-28  Bruno Haible  <bruno@clisp.org>
24131             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24132
24133         lib-ignore: Determine different options for different compilers.
24134         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24135         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24136         Add comments.
24137         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24138         * NEWS: Mention the change.
24139
24140 2010-03-27  Bruno Haible  <bruno@clisp.org>
24141
24142         Remove unused GNULIB_XYZ macro definitions.
24143         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24144         * modules/fseek (configure.ac): Likewise.
24145         * modules/ioctl (configure.ac): Likewise.
24146         * modules/open (configure.ac): Likewise.
24147         * modules/stdlib-safer (configure.ac): Likewise.
24148
24149 2010-03-27  Bruno Haible  <bruno@clisp.org>
24150
24151         Add a remark about certain modules.
24152         * modules/malloc (Comment): New section.
24153         * modules/realloc (Comment): Likewise.
24154         * modules/sigpipe (Comment): Likewise.
24155
24156 2010-03-27  Bruno Haible  <bruno@clisp.org>
24157
24158         Resolve conflict between the two kinds of module indicators.
24159         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24160         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24161         * modules/canonicalize (configure.ac): Invoke
24162         gl_MODULE_INDICATOR_FOR_TESTS.
24163         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24164         GNULIB_XYZ.
24165         * tests/test-dirent-c++.cc: Likewise.
24166         * tests/test-dirent-safer.c: Likewise.
24167         * tests/test-dup2.c: Likewise.
24168         * tests/test-fchdir.c: Likewise.
24169         * tests/test-fcntl-h-c++.cc: Likewise.
24170         * tests/test-getopt.c: Likewise.
24171         * tests/test-getopt.h: Likewise.
24172         * tests/test-langinfo-c++.cc: Likewise.
24173         * tests/test-locale-c++.cc: Likewise.
24174         * tests/test-math-c++.cc: Likewise.
24175         * tests/test-pty-c++.cc: Likewise.
24176         * tests/test-search-c++.cc: Likewise.
24177         * tests/test-signal-c++.cc: Likewise.
24178         * tests/test-spawn-c++.cc: Likewise.
24179         * tests/test-stdio-c++.cc: Likewise.
24180         * tests/test-stdlib-c++.cc: Likewise.
24181         * tests/test-string-c++.cc: Likewise.
24182         * tests/test-sys_ioctl-c++.cc: Likewise.
24183         * tests/test-sys_select-c++.cc: Likewise.
24184         * tests/test-sys_socket-c++.cc: Likewise.
24185         * tests/test-sys_stat-c++.cc: Likewise.
24186         * tests/test-sys_time-c++.cc: Likewise.
24187         * tests/test-time-c++.cc: Likewise.
24188         * tests/test-unistd-c++.cc: Likewise.
24189         * tests/test-wchar-c++.cc: Likewise.
24190         * tests/uninorm/test-u8-nfc.c: Likewise.
24191         * tests/uninorm/test-u8-nfd.c: Likewise.
24192         * tests/uninorm/test-u8-nfkc.c: Likewise.
24193         * tests/uninorm/test-u8-nfkd.c: Likewise.
24194         * tests/uninorm/test-u16-nfc.c: Likewise.
24195         * tests/uninorm/test-u16-nfd.c: Likewise.
24196         * tests/uninorm/test-u16-nfkc.c: Likewise.
24197         * tests/uninorm/test-u16-nfkd.c: Likewise.
24198         * tests/uninorm/test-u32-nfc.c: Likewise.
24199         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24200         * tests/uninorm/test-u32-nfd.c: Likewise.
24201         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24202         * tests/uninorm/test-u32-nfkc.c: Likewise.
24203         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24204         * tests/uninorm/test-u32-nfkd.c: Likewise.
24205         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24206         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24207
24208 2010-03-27  Bruno Haible  <bruno@clisp.org>
24209
24210         Distinguish two kinds of module indicators.
24211         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24212         gl_MODULE_INDICATOR.
24213         (gl_MODULE_INDICATOR): New macro.
24214         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24215         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24216         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24217         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24218         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24219         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24220         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24221         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24222         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24223         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24224         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24225         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24227         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24228         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24229         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24230         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24231         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24232         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24233         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24234         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24235         * modules/cloexec (configure.ac): Likewise.
24236         * modules/getopt-gnu (configure.ac): Likewise.
24237         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24238         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24239         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24240         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24241
24242 2010-03-27  Bruno Haible  <bruno@clisp.org>
24243
24244         New module description field 'Comment'.
24245         * gnulib-tool: New option --extract-comment.
24246         (func_usage): Document it.
24247         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24248         (func_get_comment): New function.
24249         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24250
24251 2010-03-27  Bruno Haible  <bruno@clisp.org>
24252
24253         Addendum to 2010-02-07 commit.
24254         * gnulib-tool (func_usage): Document --extract-applicability option.
24255
24256 2010-03-27  Bruno Haible  <bruno@clisp.org>
24257
24258         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24259         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24260         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24261         rather than link errors.
24262
24263 2010-03-27  Bruno Haible  <bruno@clisp.org>
24264
24265         Avoid side effects from tests-related modules on the compilation of lib.
24266         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24267         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24268         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24269         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24270         macro.
24271         (func_import): Define a witness macro. Assign it a value that depends
24272         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24273         tests-related modules.
24274         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24275         Reported by Jim Meyering.
24276
24277 2010-03-27  Bruno Haible  <bruno@clisp.org>
24278
24279         Factorize common .m4 code.
24280         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24281         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24282         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24283         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24284         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24285         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24286         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24287         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24288         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24289         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24290         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24291         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24292         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24293         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24294         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24295         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24296         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24297         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24299         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24300         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24302         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24303         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24304         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24305         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24306         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24307         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24308         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24309         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24310         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24311         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24312
24313 2010-03-27  Bruno Haible  <bruno@clisp.org>
24314
24315         Fix a compilation error on Cygwin with g++ >= 4.3.
24316         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24317         if it is undefined or if we alias it to chmod.
24318         (lstat): Don't warn about the use of this function if it is undefined
24319         or if we alias it to stat.
24320         Reported by Simon Josefsson.
24321
24322 2010-03-27  Bruno Haible  <bruno@clisp.org>
24323
24324         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24325         * modules/getlogin (configure.ac): Update.
24326
24327         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24328         * modules/getlogin_r (configure.ac): Update.
24329
24330         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24332         * modules/inet_ntop (configure.ac): Update.
24333
24334         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24335         * modules/inet_pton (configure.ac): Update.
24336
24337         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24338         * modules/mbslen (configure.ac): Update.
24339
24340         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24341         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24342         * modules/forkpty (configure.ac): Update.
24343         * modules/openpty (configure.ac): Update.
24344
24345 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24346
24347         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24348         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24349
24350 2010-03-25  Eric Blake  <eblake@redhat.com>
24351
24352         maint: use pragma consistently across replacement headers
24353         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24354         * lib/dirent.in.h (system_header): Likewise.
24355         * lib/errno.in.h (system_header): Likewise.
24356         * lib/float.in.h (system_header): Likewise.
24357         * lib/getopt.in.h (system_header): Likewise.
24358         * lib/iconv.in.h (system_header): Likewise.
24359         * lib/inttypes.in.h (system_header): Likewise.
24360         * lib/langinfo.in.h (system_header): Likewise.
24361         * lib/locale.in.h (system_header): Likewise.
24362         * lib/math.in.h (system_header): Likewise.
24363         * lib/netdb.in.h (system_header): Likewise.
24364         * lib/netinet_in.in.h (system_header): Likewise.
24365         * lib/pty.in.h (system_header): Likewise.
24366         * lib/sched.in.h (system_header): Likewise.
24367         * lib/se-selinux.in.h (system_header): Likewise.
24368         * lib/search.in.h (system_header): Likewise.
24369         * lib/spawn.in.h (system_header): Likewise.
24370         * lib/stdarg.in.h (system_header): Likewise.
24371         * lib/stdint.in.h (system_header): Likewise.
24372         * lib/string.in.h (system_header): Likewise.
24373         * lib/strings.in.h (system_header): Likewise.
24374         * lib/sys_file.in.h (system_header): Likewise.
24375         * lib/sys_ioctl.in.h (system_header): Likewise.
24376         * lib/sys_socket.in.h (system_header): Likewise.
24377         * lib/sys_times.in.h (system_header): Likewise.
24378         * lib/sys_utsname.in.h (system_header): Likewise.
24379         * lib/sys_wait.in.h (system_header): Likewise.
24380         * lib/sysexits.in.h (system_header): Likewise.
24381         * lib/unistd.in.h (system_header): Likewise.
24382         * lib/wctype.in.h (system_header): Likewise.
24383
24384         arpa/inet: fix mingw compilation warning
24385         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24386         Reported by Matthew Bolte.
24387
24388 2010-03-25  Bruno Haible  <bruno@clisp.org>
24389
24390         Avoid collision between gnulib wrapper and libintl wrapper.
24391         * lib/printf.c (printf): Don't define if a printf wrapper is already
24392         defined in intl/printf.c.
24393         Reported by Michel Boaventura <michel@michelboaventura.com>.
24394
24395 2010-03-25  Bruno Haible  <bruno@clisp.org>
24396
24397         Use ANSI C.
24398         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24399
24400 2010-03-25  Bruno Haible  <bruno@clisp.org>
24401
24402         Minor formatting changes.
24403         * lib/acosl.c: Insert space before function argument list.
24404         * lib/argz.c: Likewise.
24405         * lib/asinl.c: Likewise.
24406         * lib/expl.c: Likewise.
24407         * lib/gen-uni-tables.c: Likewise.
24408         * lib/gettext.h: Likewise.
24409         * lib/glthread/lock.h: Likewise.
24410         * lib/tanl.c: Likewise.
24411         * lib/uniname/uniname.c: Likewise.
24412         * tests/test-idpriv-drop.c: Likewise.
24413         * tests/test-idpriv-droptemp.c: Likewise.
24414         * tests/test-lock.c: Likewise.
24415         * tests/test-tls.c: Likewise.
24416         * lib/argp-help.c: Insert space before function-like macro argument
24417         list.
24418         * lib/memcmp.c: Likewise.
24419         * tests/test-base64.c: Likewise.
24420         * lib/localename.c: Insert space before sizeof's argument list.
24421         * lib/safe-alloc.h: Likewise.
24422         * lib/file-set.h: Insert space before macro argument list.
24423         * tests/test-argp.c: Likewise.
24424         * lib/argp-namefrob.h: Insert space before function parameter list.
24425         * lib/getaddrinfo.c: Likewise.
24426         * lib/netdb.in.h: Likewise.
24427         * lib/parse-duration.h: Likewise.
24428         * lib/parse-duration.c: Likewise.
24429         * lib/poll.c: Likewise.
24430         * lib/select.c: Likewise.
24431         * lib/trim.h: Likewise.
24432         * tests/test-usleep.c: Likewise.
24433         * lib/ldexpl.c: Insert space before function parameter list and before
24434         function argument list.
24435         * lib/logl.c: Likewise.
24436         * lib/sqrtl.c: Likewise.
24437         * lib/trim.c: Likewise.
24438         * lib/cosl.c: Use GNU style indentation. Insert space before function
24439         argument list.
24440         * lib/sinl.c: Likewise.
24441         * lib/tsearch.c: Insert space after 'for'.
24442         Reported by Jim Meyering.
24443
24444 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24445
24446         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24447         config header before grepping, as it's not present before
24448         autoreconf/configure are run.  Reported by Simon Josefsson.
24449
24450 2010-03-23  Bruno Haible  <bruno@clisp.org>
24451
24452         pt_chown: Make it work with automake < 1.11.
24453         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24454         Reported by Simon Josefsson.
24455
24456 2010-03-23  Bruno Haible  <bruno@clisp.org>
24457
24458         pt_chown: Don't depend on GPLed modules.
24459         * lib/pt_chown.c: Don't include idpriv.h.
24460         (main): Don't drop privileges.
24461         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24462         Reported by Simon Josefsson.
24463
24464 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24465
24466         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24467         suggestions from karl@freefriends.org (Karl Berry).
24468
24469 2010-03-22  Eric Blake  <eblake@redhat.com>
24470
24471         gethostname: further tweaks
24472         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24473         are overriding gethostname.
24474         Suggested by Bruno Haible.
24475
24476 2010-03-21  Bruno Haible  <bruno@clisp.org>
24477
24478         Fix comments.
24479         * lib/forkpty.c (rpl_forkpty): Fix comment.
24480         * lib/openpty.c (rpl_openpty): Likewise.
24481         Reported by Eric Blake.
24482
24483 2010-03-22  Eric Blake  <eblake@redhat.com>
24484
24485         gethostname: fix build on mingw
24486         * lib/unistd.in.h (includes): Work around fact that mingw
24487         <winsock2.h> re-includes <unistd.h>, by avoiding any
24488         redeclarations if we are being included by <winsock2.h>.
24489         Reported by Matthias Bolte.
24490
24491 2010-03-21  Bruno Haible  <bruno@clisp.org>
24492
24493         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24494         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24495         modifications.
24496         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24497         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24498         provide the replacement.
24499         * modules/forkpty (Depends-on): Add openpty, login_tty.
24500         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24501         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24502         * doc/glibc-functions/forkpty.texi: More supported platforms.
24503         * config/srclist.txt: Add forkpty.c (commented).
24504
24505 2010-03-21  Bruno Haible  <bruno@clisp.org>
24506
24507         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24508         (Makefile.am): Verify that PTY_LIB is defined.
24509
24510         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24511
24512 2010-03-21  Bruno Haible  <bruno@clisp.org>
24513
24514         Tests for module 'login_tty'.
24515         * modules/login_tty-tests: New file.
24516         * tests/test-login_tty.c: New file.
24517
24518         New module 'login_tty'.
24519         * lib/login_tty.c: New file.
24520         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24521         * modules/login_tty: New file.
24522         * doc/glibc-functions/login_tty.texi: Mention the new module.
24523
24524 2010-03-21  Bruno Haible  <bruno@clisp.org>
24525
24526         login_tty: Documentation.
24527         * doc/glibc-functions/login_tty.texi: New file.
24528         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24529
24530 2010-03-21  Bruno Haible  <bruno@clisp.org>
24531
24532         pty: Consistent macro naming.
24533         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24534         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24535         * modules/pty (configure.ac): Update.
24536
24537 2010-03-21  Bruno Haible  <bruno@clisp.org>
24538
24539         Tests for openpty: Make stricter.
24540         * tests/test-openpty.c (main): Add test of canonical processing and
24541         erase.
24542         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24543
24544         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24545         * lib/openpty.c (openpty): New replacement function.
24546         * lib/pty.in.h: Include <termios.h>.
24547         (openpty): Update declaration. Add comments.
24548         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24549         is not declared, arrange to provide the replacement. Check for _getpty
24550         and posix_openpt.
24551         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24552         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24553         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24554         * modules/pty-tests (test_pty_c___LDADD): New variable.
24555         * doc/glibc-functions/openpty.texi: More supported platforms.
24556
24557 2010-03-21  Bruno Haible  <bruno@clisp.org>
24558
24559         setenv: Tweaks.
24560         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24561         the test program.
24562         * doc/posix-functions/setenv.texi: Update platforms list.
24563
24564 2010-03-21  Bruno Haible  <bruno@clisp.org>
24565
24566         New module 'unlockpt'.
24567         * lib/unlockpt.c: New file, from glibc with modifications.
24568         * m4/unlockpt.m4: New file.
24569         * modules/unlockpt: New file.
24570         * lib/stdlib.in.h (unlockpt): New declaration.
24571         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24572         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24573         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24574         HAVE_UNLOCKPT.
24575         * doc/posix-functions/unlockpt.texi: Mention the new module.
24576         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24577         * config/srclist.txt: Add unlockpt.c (commented).
24578
24579 2010-03-21  Jim Meyering  <meyering@redhat.com>
24580
24581         maint.mk: prohibit inclusion of "intprops.h" without use
24582         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24583
24584 2010-03-21  Bruno Haible  <bruno@clisp.org>
24585
24586         New module 'grantpt'.
24587         * lib/grantpt.c: New file, from glibc with modifications.
24588         * m4/grantpt.m4: New file.
24589         * modules/grantpt: New file.
24590         * lib/stdlib.in.h (grantpt): New declaration.
24591         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24592         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24593         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24594         HAVE_GRANTPT.
24595         * doc/posix-functions/grantpt.texi: Mention the new module.
24596         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24597         * config/srclist.txt: Add grantpt.c (commented).
24598
24599 2010-03-21  Bruno Haible  <bruno@clisp.org>
24600
24601         New module 'pt_chown'.
24602         * lib/pt_chown.c: New file, from glibc with modifications.
24603         * lib/pty-private.h: New file, from glibc with modifications.
24604         * modules/pt_chown: New file.
24605         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24606
24607 2010-03-21  Bruno Haible  <bruno@clisp.org>
24608
24609         Tests for module 'ptsname'.
24610         * modules/ptsname-tests: New file.
24611         * tests/test-ptsname.c: New file.
24612
24613         New module 'ptsname'.
24614         * lib/ptsname.c: New file, from glibc with modifications.
24615         * m4/ptsname.m4: New file.
24616         * modules/ptsname: New file.
24617         * lib/stdlib.in.h (ptsname): New declaration.
24618         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24619         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24620         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24621         HAVE_PTSNAME.
24622         * doc/posix-functions/ptsname.texi: Mention the new module.
24623         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24624         * config/srclist.txt: Add ptsname.c (commented).
24625
24626 2010-03-21  Bruno Haible  <bruno@clisp.org>
24627
24628         Tests for module 'ttyname_r'.
24629         * modules/ttyname_r-tests: New file.
24630         * tests/test-ttyname_r.c: New file.
24631
24632         New module 'ttyname_r'.
24633         * lib/ttyname_r.c: New file.
24634         * m4/ttyname_r.m4: New file.
24635         * modules/ttyname_r: New file.
24636         * lib/unistd.in.h (ttyname_r): New declaration.
24637         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24638         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24639         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24640         HAVE_TTYNAME_R.
24641         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24642         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24643
24644 2010-03-20  Bruno Haible  <bruno@clisp.org>
24645
24646         signal: Undefine macro definitions in C++ mode.
24647         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24648         sigfillset): Undefine macro definitions from the system header in C++
24649         mode.
24650         Reported by John W. Eaton <jwe@gnu.org>.
24651
24652 2010-03-20  Bruno Haible  <bruno@clisp.org>
24653
24654         Ensure no #include statements inside extern "C" { ... }.
24655         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24656         contain #include statements.
24657         * lib/time.in.h: Likewise.
24658
24659 2010-03-20  Bruno Haible  <bruno@clisp.org>
24660
24661         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24662         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24663         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24664         Reported by John W. Eaton <jwe@gnu.org>.
24665
24666 2010-03-20  Bruno Haible  <bruno@clisp.org>
24667
24668         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24669         Reported by Jim Meyering.
24670
24671 2010-03-20  Bruno Haible  <bruno@clisp.org>
24672
24673         pipe: Set errno upon failure.
24674         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24675         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24676         errno value in error message.
24677
24678 2010-03-20  Bruno Haible  <bruno@clisp.org>
24679             Jim Meyering  <meyering@redhat.com>
24680
24681         lchown: Avoid "unused variable" warning.
24682         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24683
24684 2010-03-20  Bruno Haible  <bruno@clisp.org>
24685
24686         Work around unlink() bug on MacOS X 10.5.6.
24687         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24688         attempting to unlink a parent directory.
24689         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24690         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24691         activate for the replacement function.
24692         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24693
24694 2010-03-20  Bruno Haible  <bruno@clisp.org>
24695
24696         Fix link errors on Solaris 8.
24697         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24698         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24699
24700 2010-03-19  Jim Meyering  <meyering@redhat.com>
24701
24702         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24703         The _LIBC implementation of build_range_exp correctly honors the
24704         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24705         However, the non-_LIBC implementation would ignore that syntax-bit
24706         flag and return REG_ERANGE unconditionally.
24707         This change makes it honor that flag.
24708         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24709         Make two pointer parameters "const".
24710         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24711         (parse_bracket_exp): Update caller.
24712
24713         regex.m4: correct the reversed range endpoint ([b-a]) test
24714         * m4/regex.m4: When requiring that [b-a] evoke failure,
24715         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24716         test pass once again for x86-based systems.
24717
24718 2010-03-19  Bruno Haible  <bruno@clisp.org>
24719
24720         scandir: Fix link error on Solaris 8.
24721         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24722         macros.
24723
24724 2010-03-19  Bruno Haible  <bruno@clisp.org>
24725
24726         getusershell: Fix documentation.
24727         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24728         module.
24729         * doc/glibc-functions/setusershell.texi: Likewise.
24730
24731         getusershell: Provide declaration, missing on Solaris 9.
24732         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24733         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24734         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24735         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24737         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24738         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24739         HAVE_GETUSERSHELL.
24740         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24741
24742 2010-03-19  Bruno Haible  <bruno@clisp.org>
24743
24744         wctype: Provide iswblank function.
24745         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24746         exists and is fine.
24747         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24748         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24749         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24750         * doc/posix-functions/iswblank.texi: Update.
24751
24752 2010-03-19  Bruno Haible  <bruno@clisp.org>
24753
24754         Tests of module 'pty' in C++ mode.
24755         * modules/pty-tests: New file.
24756         * tests/test-pty-c++.cc: New file.
24757         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24758
24759 2010-03-19  Eric Blake  <eblake@redhat.com>
24760
24761         logb: fix documentation
24762         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24763         1.5 declaration bug.
24764
24765         forkpty, openpty: prefer glibc's const-safe prototype
24766         * lib/forkpty.c (rpl_forkpty): New file.
24767         * lib/openpty.c (rpl_openpty): Likewise.
24768         * modules/forkpty (Files): Distribute it.
24769         * modules/openpty (Files): Likewise.
24770         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24771         check...
24772         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24773         replacement for for non-const BSD signature.
24774         * modules/pty (Makefile.am): Substitute witnesses.
24775         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24776         * tests/test-forkpty.c: Update signature check.
24777         * tests/test-openpty.c: Likewise.
24778         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24779         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24780
24781         forkpty, openpty: split functions into new modules
24782         * modules/pty (Makefile.am): Substitute new witnesses.
24783         (Libraries): Move library detection...
24784         * modules/forkpty: ...into new module.
24785         * modules/openpty: Another new module.
24786         * modules/pty-tests: Rename and split...
24787         * modules/forkpty-tests: ...to this...
24788         * modules/openpty-tests: ...and this.
24789         * tests/test-pty.c: Rename and split...
24790         * tests/test-forkpty.c: ...to this...
24791         * tests/test-openpty.c: ...and this.
24792         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24793         (gl_PTY): Split library searching...
24794         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24795         (gl_FORKPTY, gl_OPENPTY): New macros.
24796         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24797         * NEWS: Mention the split.
24798         * MODULES.html.sh (Misc): Document the modules.
24799         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24800         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24801
24802         pty: improve replacement header
24803         * lib/pty.in.h: New file.
24804         * modules/pty (Files): Ship it.
24805         (Makefile.am): Always build replacement.
24806         * m4/pty.m4: Rename...
24807         * m4/pty_h.m4: ...to this.
24808         (gl_PTY): Modernize setting of witness macros; update check of
24809         forkpty to take proper advantage of cache.
24810         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24811
24812         getopt: avoid compiler warning
24813         * lib/getopt.c (attribute_hidden): Remove unused macro.
24814
24815 2010-03-18  Bruno Haible  <bruno@clisp.org>
24816
24817         Fix link errors on Solaris 8.
24818         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24819         * modules/search-tests (test_search_c___LDADD): Likewise.
24820         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24821         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24822         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24823         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24824         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24825         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24826         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24827
24828 2010-03-18  Bruno Haible  <bruno@clisp.org>
24829
24830         Fix bug introduced on 2010-03-14.
24831         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24832         (gl_SPAWN_H): Require it.
24833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24834         Reported by Simon Josefsson.
24835
24836 2010-03-18  Bruno Haible  <bruno@clisp.org>
24837
24838         Fix typo introduced on 2009-12-31.
24839         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24840         posix_spawn_file_actions_adddup2.
24841
24842 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24843         and Eric Blake  <eblake@redhat.com>
24844
24845         test-vc-list-files-git: make more robust
24846         * tests/test-vc-list-files-git.sh: Unset problematic environment
24847         variables.  Chain commands together.
24848
24849 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24850
24851         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24852         `AC_CHECK_DECL' invocation.
24853
24854 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24855
24856         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24857         appears before executable statements. Suggested by Petr Sumbera
24858         <Petr.Sumbera@Sun.COM>.
24859
24860 2010-03-14  Bruno Haible  <bruno@clisp.org>
24861
24862         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24863         portability problems. Instead use a simpler test.
24864         (main): Check that invalid arguments are rejected only on Linux.
24865
24866 2010-03-14  Bruno Haible  <bruno@clisp.org>
24867
24868         Fix bug introduced on 2009-12-31.
24869         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24870         gl_PREREQ_SYS_H_WINSOCK2 always.
24871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24872         SYS_SOCKET_H variable.
24873         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24874         Update comments.
24875         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24876         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24877         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24878         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24879         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24880
24881 2010-03-14  Bruno Haible  <bruno@clisp.org>
24882
24883         Fix values returned by sinl, cosl.
24884         * lib/trigl.h: Add specification comments.
24885         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24886         that combines the values from the precomputed table with the values of
24887         the Chebyshev polynomials.
24888
24889 2010-03-14  Bruno Haible  <bruno@clisp.org>
24890
24891         Fix compilation error when modules 'posix_spawn[p]' are not used.
24892         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24894
24895 2010-03-14  Bruno Haible  <bruno@clisp.org>
24896
24897         Fix compilation error on mingw when module 'time_r' is not used.
24898         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24899         is 1.
24900         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24901         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24902         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24903         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24904
24905 2010-03-14  Bruno Haible  <bruno@clisp.org>
24906
24907         Fix compilation error with Sun C.
24908         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24909         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24910         instead of GCC specific ULONG_LONG_MAX.
24911         * lib/xstrtoll.c: Likewise.
24912         * lib/xstrtoull.c: Likewise.
24913
24914 2010-03-13  Bruno Haible  <bruno@clisp.org>
24915
24916         Allow the user to disable C++ code and tests.
24917         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24918         (gl_PROG_ANSI_CXX): Require it.
24919
24920 2010-03-13  Bruno Haible  <bruno@clisp.org>
24921
24922         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24923         cases.
24924
24925 2010-03-13  Bruno Haible  <bruno@clisp.org>
24926
24927         Test that gnulib does not break the standard C++ headers.
24928         * tests/test-locale-c++2.cc: New file.
24929         * modules/locale-tests (Files): Add it.
24930         (Makefile.am): Compile it for test-locale-c++.
24931         * tests/test-math-c++2.cc: New file.
24932         * modules/math-tests (Files): Add it.
24933         (Makefile.am): Compile it for test-math-c++.
24934         * tests/test-signal-c++2.cc: New file.
24935         * modules/signal-tests (Files): Add it.
24936         (Makefile.am): Compile it for test-signal-c++.
24937         * tests/test-stdio-c++2.cc: New file.
24938         * modules/stdio-tests (Files): Add it.
24939         (Makefile.am): Compile it for test-stdio-c++.
24940         * tests/test-stdlib-c++2.cc: New file.
24941         * modules/stdlib-tests (Files): Add it.
24942         (Makefile.am): Compile it for test-stdlib-c++.
24943         * tests/test-string-c++2.cc: New file.
24944         * modules/string-tests (Files): Add it.
24945         (Makefile.am): Compile it for test-string-c++.
24946         * tests/test-time-c++2.cc: New file.
24947         * modules/time-tests (Files): Add it.
24948         (Makefile.am): Compile it for test-time-c++.
24949         Reported by John W. Eaton <jwe@gnu.org>.
24950
24951 2010-03-13  Bruno Haible  <bruno@clisp.org>
24952
24953         * gnulib-tool (func_usage): Clarify which options are available for
24954         --create-testdir and --create-megatestdir.
24955
24956 2010-03-13  Bruno Haible  <bruno@clisp.org>
24957
24958         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24959         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24960         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24961         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24962         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24963         when appropriate.
24964         Reported by Jim Meyering.
24965
24966 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24967
24968         * gnulib-tool (func_import): Explain origin of code.
24969
24970 2010-03-12  Bruno Haible  <bruno@clisp.org>
24971
24972         Fix problem with automake's definition of CXXLINK.
24973         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24974         Reported by Simon Josefsson and Ludovic Courtès.
24975
24976 2010-03-12  Bruno Haible  <bruno@clisp.org>
24977
24978         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24979         stable releases.
24980
24981 2010-03-11  Bruno Haible  <bruno@clisp.org>
24982
24983         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24984         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24985         whether the system provides one variant or multiple variants of the
24986         function.
24987         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24988         C++ compilers.
24989         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24990         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24991         Reported by Jim Meyering.
24992
24993 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24994
24995         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24996
24997 2010-03-08  Bruno Haible  <bruno@clisp.org>
24998
24999         gnulib-tool: Add support for --libtool in --create-testdir.
25000         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25001         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25002
25003 2010-03-08  Eric Blake  <eblake@redhat.com>
25004
25005         gnulib-tool.texi: mention possibility of git submodule
25006         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25007         submodules.
25008         * doc/.gitignore: Ignore another generated file.
25009
25010 2010-03-08  Karl Berry  <karl@gnu.org>
25011
25012         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25013         of committing gnulib files while skipping others.
25014
25015 2010-03-07  Bruno Haible  <bruno@clisp.org>
25016
25017         Tests of module 'wctype' in C++ mode.
25018         * tests/test-wctype-c++.cc: New file.
25019         * modules/wctype-tests (Files): Add it and tests/signature.h.
25020         (Depends-on): Add ansi-c++-opt.
25021         (Makefile.am): Arrange to compile and run test-wctype-c++.
25022
25023         Tests of module 'wchar' in C++ mode.
25024         * tests/test-wchar-c++.cc: New file.
25025         * modules/wchar-tests (Files): Add it and tests/signature.h.
25026         (Depends-on): Add ansi-c++-opt.
25027         (Makefile.am): Arrange to compile and run test-wchar-c++.
25028         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25029         gl_MODULE_INDICATOR.
25030
25031         Tests of module 'unistd' in C++ mode.
25032         * tests/test-unistd-c++.cc: New file.
25033         * modules/unistd-tests (Files): Add it and tests/signature.h.
25034         (Depends-on): Add ansi-c++-opt.
25035         (Makefile.am): Arrange to compile and run test-unistd-c++.
25036         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25037         gl_MODULE_INDICATOR.
25038
25039         Tests of module 'time' in C++ mode.
25040         * tests/test-time-c++.cc: New file.
25041         * modules/time-tests (Files): Add it and tests/signature.h.
25042         (Depends-on): Add ansi-c++-opt.
25043         (Makefile.am): Arrange to compile and run test-time-c++.
25044         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25045
25046         Tests of module 'sys_time' in C++ mode.
25047         * tests/test-sys_time-c++.cc: New file.
25048         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25049         (Depends-on): Add ansi-c++-opt.
25050         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25051         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25052         gl_MODULE_INDICATOR.
25053
25054         Tests of module 'sys_stat' in C++ mode.
25055         * tests/test-sys_stat-c++.cc: New file.
25056         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25057         (Depends-on): Add ansi-c++-opt.
25058         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25059         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25060         gl_MODULE_INDICATOR.
25061
25062         Tests of module 'sys_socket' in C++ mode.
25063         * tests/test-sys_socket-c++.cc: New file.
25064         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25065         (Depends-on): Add ansi-c++-opt.
25066         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25067         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25068         gl_MODULE_INDICATOR.
25069
25070         Tests of module 'sys_select' in C++ mode.
25071         * tests/test-sys_select-c++.cc: New file.
25072         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25073         (Depends-on): Add ansi-c++-opt.
25074         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25075         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25076         gl_MODULE_INDICATOR.
25077
25078         Tests of module 'sys_ioctl' in C++ mode.
25079         * tests/test-sys_ioctl-c++.cc: New file.
25080         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25081         (Depends-on): Add ansi-c++-opt.
25082         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25083         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25084         gl_MODULE_INDICATOR.
25085
25086         Tests of module 'string' in C++ mode.
25087         * tests/test-string-c++.cc: New file.
25088         * modules/string-tests (Files): Add it and tests/signature.h.
25089         (Depends-on): Add ansi-c++-opt.
25090         (Makefile.am): Arrange to compile and run test-string-c++.
25091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25092         gl_MODULE_INDICATOR.
25093
25094         Tests of module 'stdlib' in C++ mode.
25095         * tests/test-stdlib-c++.cc: New file.
25096         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25097         (Depends-on): Add ansi-c++-opt.
25098         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25099         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25100         gl_MODULE_INDICATOR.
25101
25102         Tests of module 'stdio' in C++ mode.
25103         * tests/test-stdio-c++.cc: New file.
25104         * modules/stdio-tests (Files): Add it and tests/signature.h.
25105         (Depends-on): Add ansi-c++-opt.
25106         (Makefile.am): Arrange to compile and run test-stdio-c++.
25107         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25108         gl_MODULE_INDICATOR.
25109
25110         Tests of module 'spawn' in C++ mode.
25111         * tests/test-spawn-c++.cc: New file.
25112         * modules/spawn-tests (Files): Add it and tests/signature.h.
25113         (Depends-on): Add ansi-c++-opt.
25114         (Makefile.am): Arrange to compile and run test-spawn-c++.
25115         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25116         gl_MODULE_INDICATOR.
25117
25118         Tests of module 'signal' in C++ mode.
25119         * tests/test-signal-c++.cc: New file.
25120         * modules/signal-tests (Files): Add it and tests/signature.h.
25121         (Depends-on): Add ansi-c++-opt.
25122         (Makefile.am): Arrange to compile and run test-signal-c++.
25123         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25124         gl_MODULE_INDICATOR.
25125
25126         Tests of module 'search' in C++ mode.
25127         * tests/test-search-c++.cc: New file.
25128         * modules/search-tests (Files): Add it and tests/signature.h.
25129         (Depends-on): Add ansi-c++-opt.
25130         (Makefile.am): Arrange to compile and run test-search-c++.
25131         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25132         gl_MODULE_INDICATOR.
25133
25134         Tests of module 'math' in C++ mode.
25135         * tests/test-math-c++.cc: New file.
25136         * modules/math-tests (Files): Add it and tests/signature.h.
25137         (Depends-on): Add ansi-c++-opt.
25138         (Makefile.am): Arrange to compile and run test-math-c++.
25139         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25140
25141         Tests of module 'locale' in C++ mode.
25142         * tests/test-locale-c++.cc: New file.
25143         * modules/locale-tests (Files): Add it and tests/signature.h.
25144         (Depends-on): Add ansi-c++-opt.
25145         (Makefile.am): Arrange to compile and run test-locale-c++.
25146         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25147         gl_MODULE_INDICATOR.
25148
25149         Tests of module 'langinfo' in C++ mode.
25150         * tests/test-langinfo-c++.cc: New file.
25151         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25152         (Depends-on): Add ansi-c++-opt.
25153         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25154         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25155         gl_MODULE_INDICATOR.
25156
25157         Tests of module 'iconv-h' in C++ mode.
25158         * tests/test-iconv-h-c++.cc: New file.
25159         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25160         (Depends-on): Add ansi-c++-opt.
25161         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25162
25163         Tests of module 'glob' in C++ mode.
25164         * tests/test-glob-c++.cc: New file.
25165         * modules/glob-tests (Files): Add it.
25166         (Depends-on): Add ansi-c++-opt.
25167         (Makefile.am): Arrange to compile and run test-glob-c++.
25168
25169         Tests of module 'fcntl-h' in C++ mode.
25170         * tests/test-fcntl-h-c++.cc: New file.
25171         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25172         (Depends-on): Add ansi-c++-opt.
25173         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25174         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25175         gl_MODULE_INDICATOR.
25176
25177         Tests of module 'dirent' in C++ mode.
25178         * tests/test-dirent-c++.cc: New file.
25179         * modules/dirent-tests (Files): Add it and tests/signature.h.
25180         (Depends-on): Add ansi-c++-opt.
25181         (Makefile.am): Arrange to compile and run test-dirent-c++.
25182         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25183         gl_MODULE_INDICATOR.
25184
25185         New module 'ansi-c++-opt'.
25186         * modules/ansi-c++-opt: New file.
25187         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25188
25189         Document C++ namespace mode.
25190         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25191
25192         wctype: Avoid #define replacements in C++ mode.
25193         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25194         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25195         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25196         In C++, define a namespaced alias symbol.
25197         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25198         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25199         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25200         rule.
25201
25202         wchar: Avoid #define replacements in C++ mode.
25203         * lib/wchar.in.h: Include c++defs.h.
25204         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25205         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25206         symbol.
25207         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25208         * modules/wchar (Depends-on): Add c++defs.
25209         (Makefile.am): Update wchar.h rule.
25210
25211         unistd: Avoid #define replacements in C++ mode.
25212         * lib/unistd.in.h: Include c++defs.h.
25213         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25214         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25215         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25216         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25217         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25218         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25219         symbol.
25220         (environ): Update.
25221         * modules/unistd (Depends-on): Add c++defs.
25222         (Makefile.am): Update unistd.h rule.
25223
25224         time: Avoid #define replacements in C++ mode.
25225         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25226         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25227         define a namespaced alias symbol.
25228         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25229         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25230         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25231         * modules/time (Depends-on): Add c++defs, warn-on-use.
25232         (Makefile.am): Update time.h rule.
25233         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25234         * modules/nanosleep (configure.ac): Likewise.
25235         * modules/strptime (configure.ac): Likewise.
25236         * modules/timegm (configure.ac): Likewise.
25237
25238         sys_time: Avoid #define replacements in C++ mode.
25239         * lib/sys_time.in.h: Include c++defs.h.
25240         (gettimeofday): In C++, define a namespaced alias symbol.
25241         * modules/sys_time (Depends-on): Add c++defs.
25242         (Makefile.am): Update sys/time.h rule.
25243
25244         sys_stat: Avoid #define replacements in C++ mode.
25245         * lib/sys_stat.in.h: Include c++defs.h.
25246         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25247         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25248         namespaced alias symbol.
25249         In C++, define a namespaced alias symbol.
25250         * modules/sys_stat (Depends-on): Add c++defs.
25251         (Makefile.am): Update sys/stat.h rule.
25252
25253         sys_socket: Avoid #define replacements in C++ mode.
25254         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25255         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25256         definitions also when the system has a <sys/socket.h>.
25257         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25258         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25259         In C++, define a namespaced alias symbol.
25260         * modules/sys_socket (Depends-on): Add c++defs.
25261         (Makefile.am): Update sys/socket.h rule.
25262
25263         sys_select: Avoid #define replacements in C++ mode.
25264         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25265         definitions also when the system has a <sys/select.h>.
25266         (select): In C++, define a namespaced alias symbol.
25267         * modules/sys_select (Depends-on): Add c++defs.
25268         (Makefile.am): Update sys/select.h rule.
25269
25270         sys_ioctl: Avoid #define replacements in C++ mode.
25271         * lib/sys_ioctl.in.h: Include c++defs.h.
25272         (ioctl): In C++, define a namespaced alias symbol.
25273         * modules/sys_ioctl (Depends-on): Add c++defs.
25274         (Makefile.am): Update sys/ioctl.h rule.
25275
25276         string: Avoid #define replacements in C++ mode.
25277         * lib/string.in.h: Include c++defs.h.
25278         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25279         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25280         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25281         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25282         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25283         * modules/string (Depends-on): Add c++defs.
25284         (Makefile.am): Update string.h rule.
25285
25286         stdlib: Avoid #define replacements in C++ mode.
25287         * lib/stdlib.in.h: Include c++defs.h.
25288         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25289         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25290         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25291         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25292         symbol.
25293         * modules/stdlib (Depends-on): Add c++defs.
25294         (Makefile.am): Update stdlib.h rule.
25295
25296         stdio: Avoid #define replacements in C++ mode.
25297         * lib/stdio.in.h: Include c++defs.h.
25298         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25299         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25300         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25301         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25302         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25303         namespaced alias symbol.
25304         * modules/stdio (Depends-on): Add c++defs.
25305         (Makefile.am): Update stdio.h rule.
25306
25307         spawn: Avoid #define replacements in C++ mode.
25308         * lib/spawn.in.h: Include c++defs.h.
25309         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25310         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25311         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25312         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25313         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25314         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25315         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25316         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25317         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25318         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25319         In C++, define a namespaced alias symbol.
25320         * modules/spawn (Depends-on): Add c++defs.
25321         (Makefile.am): Update spawn.h rule.
25322
25323         signal: Avoid #define replacements in C++ mode.
25324         * lib/signal.in.h: Include c++defs.h.
25325         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25326         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25327         namespaced alias symbol.
25328         * modules/signal (Depends-on): Add c++defs.
25329         (Makefile.am): Update signal.h rule.
25330
25331         search: Avoid #define replacements in C++ mode.
25332         * lib/search.in.h: Include c++defs.h.
25333         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25334         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25335         symbol.
25336         * modules/search (Depends-on): Add c++defs.
25337         (Makefile.am): Update search.h rule.
25338
25339         math: Avoid #define replacements in C++ mode.
25340         * lib/math.in.h: Include c++defs.h.
25341         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25342         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25343         trunc, truncl): In C++, define a namespaced alias symbol.
25344         * modules/math (Depends-on): Add c++defs.
25345         (Makefile.am): Update math.h rule.
25346
25347         locale: Avoid #define replacements in C++ mode.
25348         * lib/locale.in.h: Include c++defs.h.
25349         (duplocale): In C++, define a namespaced alias symbol.
25350         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25351         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25352         * modules/locale (Depends-on): Add c++defs.
25353         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25354
25355         langinfo: Avoid #define replacements in C++ mode.
25356         * lib/langinfo.in.h: Include c++defs.h.
25357         (nl_langinfo): In C++, define a namespaced alias symbol.
25358         * modules/langinfo (Depends-on): Add c++defs.
25359         (Makefile.am): Update langinfo.h rule.
25360
25361         iconv-h: Avoid #define replacements in C++ mode.
25362         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25363         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25364         symbol.
25365         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25366         whenever iconv is present.
25367         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25368         (Makefile.am): Update iconv.h rule.
25369
25370         glob: Avoid #define replacements in C++ mode.
25371         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25372         (_gl_glob_errfunc_fn): New type.
25373         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25374         symbol.
25375         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25376         (Makefile.am): Update glob.h rule.
25377
25378         fcntl-h: Avoid #define replacements in C++ mode.
25379         * lib/fcntl.in.h: Include c++defs.h.
25380         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25381         * modules/fcntl-h (Depends-on): Add c++defs.
25382         (Makefile.am): Update fcntl.h rule.
25383
25384         dirent: Avoid #define replacements in C++ mode.
25385         * lib/dirent.in.h: Include c++defs.h.
25386         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25387         namespaced alias symbol.
25388         (dirfd): Update declaration.
25389         * modules/dirent (Depends-on): Add c++defs.
25390         (Makefile.am): Update dirent.h rule.
25391
25392         ctype: Make it usable in C++ code.
25393         * lib/ctype.in.h: Include c++defs.h.
25394         (isblank): Declare as extern "C".
25395         * modules/ctype (Depends-on): Add c++defs.
25396         (Makefile.am): Update ctype.h rule.
25397
25398         New module 'c++defs'.
25399         * modules/c++defs: New file.
25400         * build-aux/c++defs.h: New file.
25401         Reported by John W. Eaton <jwe@gnu.org>.
25402
25403 2010-03-07  Bruno Haible  <bruno@clisp.org>
25404
25405         logb: Provide missing declaration for Cygwin.
25406         * lib/math.in.h (logb): New declaration.
25407         * m4/logb.m4: New file.
25408         * modules/logb (Files): Add m4/logb.m4.
25409         (Depends-on): Add math.
25410         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25411         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25413         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25414         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25415
25416 2010-03-07  Bruno Haible  <bruno@clisp.org>
25417
25418         Fix test-cond link error.
25419         * tests/test-cond.c: Include <stdio.h>.
25420
25421 2010-03-07  Bruno Haible  <bruno@clisp.org>
25422
25423         Fix test-dirent-safer link error.
25424         * modules/dirent-safer-tests (Makefile.am): Define
25425         test_dirent_safer_LDADD.
25426
25427 2010-03-07  Bruno Haible  <bruno@clisp.org>
25428
25429         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25430         among default module list.
25431
25432 2010-03-07  Bruno Haible  <bruno@clisp.org>
25433
25434         Fix link error on platforms with GNU libiconv.
25435         * modules/unistr/u8-strcoll-tests (Makefile): Define
25436         test_u8_strcoll_LDADD.
25437         * modules/unistr/u16-strcoll-tests (Makefile): Define
25438         test_u16_strcoll_LDADD.
25439         * modules/unistr/u32-strcoll-tests (Makefile): Define
25440         test_u32_strcoll_LDADD.
25441
25442 2010-03-07  Bruno Haible  <bruno@clisp.org>
25443
25444         Use POSIX declarations for socket functions.
25445         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25446         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25447         rpl_sendto): Change declaration to match POSIX.
25448         * lib/connect.c (rpl_connect): Likewise.
25449         * lib/accept.c (rpl_accept): Likewise.
25450         * lib/bind.c (rpl_bind): Likewise.
25451         * lib/getpeername.c (rpl_getpeername): Likewise.
25452         * lib/getsockname.c (rpl_getsockname): Likewise.
25453         * lib/recv.c (rpl_recv): Likewise.
25454         * lib/send.c (rpl_send): Likewise.
25455         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25456         * lib/sendto.c (rpl_sendto): Likewise.
25457
25458 2010-03-06  Bruno Haible  <bruno@clisp.org>
25459
25460         Clarify access, euidaccess, faccessat.
25461         * doc/posix-functions/faccessat.texi: Mention security problem under
25462         "Other problems", not "Portability problems".
25463         * doc/posix-functions/access.texi: Likewise. Mention a related security
25464         problem.
25465         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25466         * lib/euidaccess.c: Add comments about platforms.
25467         * lib/unistd.in.h (access, euidaccess): Add warnings.
25468
25469 2010-03-07  Bruno Haible  <bruno@clisp.org>
25470
25471         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25472         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25473         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25474         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25475         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25476         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25477         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25478         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25479         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25480         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25481         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25482         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25483         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25484         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25485         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25486         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25487         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25488         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25489         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25490         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25491         Likewise.
25492         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25493         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25494         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25495         Likewise.
25496         * tests/test-spawn.c (main): Make it work when
25497         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25498
25499 2010-03-07  Bruno Haible  <bruno@clisp.org>
25500
25501         Fix incorrect Makefile.am generation in German locale.
25502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25503         Execute sed command with character range in C locale.
25504
25505 2010-03-06  Bruno Haible  <bruno@clisp.org>
25506
25507         Tests for module 'iconv-h'.
25508         * modules/iconv-h-tests: New file.
25509         * tests/test-iconv-h.c: New file.
25510
25511         New module 'iconv-h'.
25512         * modules/iconv-h: New file.
25513         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25514         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25515         (configure.ac): Remove gl_ICONV_H.
25516         (Makefile.am): Remove rule for iconv.h.
25517
25518 2010-03-06  Bruno Haible  <bruno@clisp.org>
25519
25520         More consistent naming of *.m4 files.
25521         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25522         * modules/wctype (Files): Update.
25523
25524         More consistent naming of *.m4 files.
25525         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25526         * modules/wchar (Files): Update.
25527
25528 2010-03-06  Jim Meyering  <meyering@redhat.com>
25529
25530         euidaccess: relax license to LGPLv2+
25531         * modules/euidaccess (License): Relax to LGPLv2+.
25532
25533 2010-03-06  Bruno Haible  <bruno@clisp.org>
25534
25535         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25536         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25537         (Makefile.am): Augment lib_SOURCES instead.
25538
25539 2010-03-04  Jim Meyering  <meyering@redhat.com>
25540
25541         utime: remove obsolete module
25542         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25543         unnecessary for years, and has been marked as obsolete for 10 months.
25544         * modules/utime: Remove file.
25545         * lib/utime.c: Remove file.
25546         * m4/utime.m4: Remove file.
25547         * m4/utimes-null.m4: Remove file.
25548         * doc/posix-functions/utime.texi (utime): Remove reference to
25549         the module.  Move the sole "fixed by gnulib" item into the
25550         "problems not fixed by Gnulib" list.
25551         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25552
25553 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25554
25555         * modules/exit (License): Relax license to LGPLv2+.
25556         (Status): Mark as obsolete.
25557         * NEWS: Mention deprecated 'exit' module.
25558         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25559         of now obsolete 'exit'.
25560
25561 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25562
25563         fts-lgpl: remove unused module
25564         * modules/fts-lgpl: Remove.
25565         * MODULES.html.sh (func_all_modules): Adjust.
25566         * check-module (find_included_lib_files): Adjust.
25567         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25568
25569 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25570
25571         copy-acl: enhance Solaris ACL error handling
25572         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25573         * lib/set-mode-acl.c (qset_acl): Likewise.
25574
25575 2010-03-02  Bruno Haible  <bruno@clisp.org>
25576
25577         spawn: Don't override the system defined values on FreeBSD 8.
25578         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25579         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25580         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25581         if HAVE_POSIX_SPAWN is 1.
25582         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25583
25584 2010-03-01  Bruno Haible  <bruno@clisp.org>
25585
25586         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25587         regarding Automake.
25588
25589 2010-02-25  Bruno Haible  <bruno@clisp.org>
25590
25591         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25592         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25593         setting, not afterwards.
25594         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25595
25596 2010-02-24  Eric Blake  <eblake@redhat.com>
25597
25598         bootstrap, git-version-gen: use timestamp
25599         * build-aux/git-version-gen (scriptversion): Force UTC.
25600         * build-aux/bootstrap (scriptversion): New variable.
25601
25602         bootstrap: allow older git
25603         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25604         older than 1.6.4.  Requested by the libvirt project.
25605
25606 2010-02-23  Eric Blake  <eblake@redhat.com>
25607
25608         warn-on-use: work with old autoconf
25609         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25610         AS_VAR semantics of autoconf 2.60.
25611         Reported by Bruno Haible.
25612
25613         bootstrap: improve some comments
25614         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25615         clarification comments.
25616
25617         gettimeofday: provide correct function
25618         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25619         when replacement is declared, otherwise provide gettimeofday.
25620         Reported by Michael Goffioul.
25621
25622 2010-02-23  Jim Meyering  <meyering@redhat.com>
25623
25624         lib-ignore: relax license to "unlimited", not LGPLv2+
25625         * modules/lib-ignore (License): Relax to "unlimited".
25626
25627 2010-02-23  Jim Meyering  <meyering@redhat.com>
25628
25629         lib-ignore: relax license to LGPLv2+
25630         * modules/lib-ignore (License): Relax to LGPLv2+.
25631
25632 2010-02-22  Eric Blake  <eblake@redhat.com>
25633
25634         lseek: avoid bash 3.2 broken pipe bug
25635         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25636         warning from bash 3.2.
25637         Reported by Ben Pfaff, with analysis from Bruno Haible.
25638
25639         bootstrap: support non-FSF copyright holder
25640         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25641         bootstrap.conf override of COPYRIGHT_HOLDER.
25642         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25643
25644         bootstrap: interoperate with gettext 0.14.1
25645         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25646
25647         bootstrap: allow for alternate submodule location
25648         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25649         hardcoding submodule location.
25650         (gnulib_mk): Allow direct use of Makefile.am.
25651
25652         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25653         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25654         rather than reconfiguring where the submodule points.
25655
25656         gettimeofday: restore support for platforms that lack function
25657         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25658         replacement if function is missing.
25659         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25660         * modules/sys_time (Makefile.am): Substitute it.
25661         * lib/sys_time.in.h (gettimeofday): Check it.
25662         Reported by Michael Goffioul.
25663
25664 2010-02-21  Bruno Haible  <bruno@clisp.org>
25665
25666         * lib/stdio.in.h (obstack_printf): Fix typo.
25667
25668 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25669
25670         vc-list-files: use bzr ls's -R option
25671         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25672         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25673
25674 2010-02-21  Jim Meyering  <meyering@redhat.com>
25675
25676         init.sh: fix EXEEXT shims to work also for names like test-prog
25677         * tests/init.sh: Re-exec a better shell, when needed.
25678         If the current shell lacks support for posix $(...), an init.sh-using
25679         test will now try to find a shell that supports that.  If EXEEXT is
25680         nonempty, we also require support for hyphen-in-alias-name and shell
25681         substitutions like ${var#glob}.  Failure to find such a shell results
25682         in a skipped test.
25683
25684 2010-02-21  Bruno Haible  <bruno@clisp.org>
25685
25686         Really work around around "broken pipe" error message from bash 3.2.
25687         * gnulib-tool (func_reset_sigpipe): Remove function.
25688         (echo): In bash 3.2, define to a function that uses printf.
25689         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25690
25691 2010-02-20  Bruno Haible  <bruno@clisp.org>
25692
25693         Restore support for automake 1.9.6 with autoconf 2.61.
25694         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25695         Reported by James Youngman <jay@gnu.org>.
25696
25697 2010-02-20  Bruno Haible  <bruno@clisp.org>
25698
25699         Improve *printf warning condition.
25700         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25701         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25702         and the function is overridden due to SIGPIPE emulation.
25703
25704 2010-02-20  Bruno Haible  <bruno@clisp.org>
25705
25706         * lib/stdio.in.h: Tweak comments.
25707
25708 2010-02-19  Bruno Haible  <bruno@clisp.org>
25709
25710         Make it easier to find modules. New gnulib-tool option '--find'.
25711         * gnulib-tool: New option --find.
25712         (func_usage): Document it.
25713         (func_sanitize_modulelist): New function, extracted from
25714         func_all_modules.
25715         (func_all_modules): Invoke it.
25716         * doc/gnulib-tool.texi (Which modules?): New node.
25717
25718 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25719
25720         * lib/sys_select.in.h: Provide select replacement even if
25721         sys/select.h exists on a system, for Interix.
25722
25723 2010-02-18  Jim Meyering  <meyering@redhat.com>
25724
25725         init.sh: don't use $(...) just yet
25726         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25727         to accommodate e.g., Solaris' /bin/sh.
25728
25729 2010-02-17  Bruno Haible  <bruno@clisp.org>
25730
25731         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25732         Reported by Ludovic Courtès <ludo@gnu.org>.
25733
25734 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25735
25736         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25737         linking with -lintl.
25738
25739 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25740
25741         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25742         if not provided by the system's netdb.h.  Reported by
25743         ludo@gnu.org (Ludovic Courtès).
25744
25745 2010-02-15  Jim Meyering  <meyering@redhat.com>
25746
25747         init.sh: improve portability and efficiency
25748         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25749         "dummy" in a for loop.
25750         Use '!', not '^' to select the complement of a character set used
25751         in a "case" statement.
25752         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25753         Suggestions from Eric Blake.
25754
25755         init.sh: automatically accommodate programs with the .exe suffix
25756         Automatically arrange for an invocation of "prog" to execute the
25757         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25758         may use the simpler "prog", yet still work when built on a system
25759         that requires specifying the added suffix.
25760         Do this by constructing a function named "prog" that invokes
25761         "prog.exe" for each .exe file in selected directories.
25762         * tests/init.sh (find_exe_basenames_): New function.
25763         (create_exe_shim_functions_): New function.
25764         (path_prepend_): Use it.
25765
25766         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25767         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25768         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25769
25770 2010-02-14  Jim Meyering  <meyering@redhat.com>
25771
25772         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25773         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25774         (sc_prohibit_hash_pjw_without_use): New rule.
25775
25776         maint.mk: allow the default upload destination dir to be overridden
25777         * top/maint.mk (upload_dest_dir_): Define with a default that
25778         preserves the status quo.
25779         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25780         Reported by Peter Simons.
25781
25782         maint.mk: prohibit inclusion of "hash.h" without_use
25783         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25784
25785 2010-02-10  Jim Meyering  <meyering@redhat.com>
25786
25787         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25788         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25789
25790 2010-02-09  Eric Blake  <ebb9@byu.net>
25791         and Bruno Haible  <bruno@clisp.org>
25792
25793         obstack-printf-posix: ensure declaration
25794         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25795         extracted from gl_FUNC_OBSTACK_PRINTF.
25796         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25797         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25798         Likewise.
25799         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25800         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25801         0.
25802
25803 2010-02-08  Bruno Haible  <bruno@clisp.org>
25804
25805         gnulib-tool: Fix typo in 2010-02-07 commit.
25806         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25807         Reported by Eric Blake.
25808
25809 2010-02-07  Bruno Haible  <bruno@clisp.org>
25810
25811         gnulib-tool: Fix up caching patches.
25812         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25813         option --no-cache. Use associative arrays when supported by the shell.
25814         (sed_comments): New variable.
25815         (modcache): Renamed from do_cache.
25816         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25817         abbreviate unnecessarily.
25818         (have_associative): New variable.
25819         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25820         way also for ksh and zsh.
25821         (func_init_sed_convert_to_cache_statements): New function, extracted
25822         from func_cache_lookup_module. Add support for associative arrays.
25823         Don't set the c_MODULE_cached variable here. Ignore all lines before
25824         the first field header. Remove only the final newline, not all trailing
25825         newlines. Support empty fields correctly. Limit the use of 'eval' to
25826         assignments.
25827         (func_get_description, func_get_status, func_get_notice,
25828         func_get_applicability, func_get_filelist, func_get_dependencies,
25829         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25830         func_get_automake_snippet, func_get_include_directive,
25831         func_get_link_directive, func_get_license, func_get_maintainer):
25832         Update documentation. List the unoptimized code first. Add support for
25833         associative arrays. Limit the use of 'eval' to assignments.
25834         (func_get_applicability): Undo stylistic pessimisations.
25835         (func_get_automake_snippet, func_get_include_directive): Reduce code
25836         duplication.
25837         (func_modules_transitive_closure, func_modules_add_dummy,
25838         func_modules_notice, func_modules_to_filelist, func_add_file,
25839         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25840         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25841         func_create_testdir, func_create_megatestdir): Update documentation.
25842
25843 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25844
25845         * gnulib-tool (func_cache_lookup_module): Store the module name
25846         belonging to the cache variable; error out if two different
25847         module names map to the same cache variable name.
25848
25849 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25850
25851         gnulib-tool: Make caching optional.
25852         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25853         Update matching short versions of --no-changelog.
25854         (func_usage): Update.
25855         (sed_extract_cache_prog): Renamed from ...
25856         (sed_extract_prog): ... this; revert to old extraction script.
25857         (func_get_description, func_get_status)
25858         (func_get_notice, func_get_applicability, func_get_filelist)
25859         (func_get_dependencies, func_get_autoconf_early_snippet)
25860         (func_get_autoconf_snippet, func_get_automake_snippet)
25861         (func_get_include_directive, func_get_link_directive)
25862         (func_get_license, func_get_maintainer): If $do_cache is false,
25863         use old, non-caching extraction scripts.
25864         Suggestion by Bruno Haible.
25865
25866 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25867
25868         gnulib-tool: cache module metainformation.
25869         * gnulib-tool (sed_extract_prog): Match newline before each
25870         header, and rewrite header to a shell variable suffix.
25871         (func_cache_var, func_cache_lookup_module): New functions,
25872         to turn a module name into a cache variable prefix, and to
25873         look up and cache module metainformation.
25874         (func_get_description, func_get_status)
25875         (func_get_notice, func_get_applicability, func_get_filelist)
25876         (func_get_dependencies, func_get_autoconf_early_snippet)
25877         (func_get_autoconf_snippet, func_get_automake_snippet)
25878         (func_get_include_directive, func_get_link_directive)
25879         (func_get_license, func_get_maintainer): Use
25880         func_cache_lookup_module.
25881
25882 2010-02-07  Bruno Haible  <bruno@clisp.org>
25883
25884         fnctl: Fix missing dependency.
25885         * modules/fcntl (Depends-on): Add getdtablesize.
25886         Reported by John W. Eaton <jwe@gnu.org>.
25887
25888 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25889
25890         Argp: fix recognition of short alias options.
25891
25892         * lib/argp-parse.c (convert_options): Fix improper use of
25893         `|' between character values.
25894         * tests/test-argp.c (group1_option): New alias option
25895         --read (-r).
25896         (group1_parser): Special handling for 'r'.
25897         (test15): New test case.
25898         (test_fun): Add test15.
25899         * tests/test-argp-2.sh: Update expected --help and --usage
25900         outputs.
25901
25902 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25903
25904         * tests/test-argp.c: Fix indentation.
25905
25906 2010-02-04  Eric Blake  <ebb9@byu.net>
25907
25908         gettimeofday: expose type of second argument
25909         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25910         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25911         * tests/test-gettimeofday.c: Use it to silence warning.
25912         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25913         the issue.
25914
25915 2010-02-03  Jim Meyering  <meyering@redhat.com>
25916
25917         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25918         * lib/regcomp.c (TYPE_SIGNED): Define.
25919         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25920
25921         regcomp.c: avoid a new -Wshadow warning
25922         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25923
25924 2010-02-01  Jim Meyering  <meyering@redhat.com>
25925
25926         removing useless parentheses in cpp #define directives
25927         For motivation, see commit c0221df4, "define STREQ(a,b)
25928         consistently, removing useless parentheses"
25929         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25930         * lib/mountlist.c (MNT_IGNORE): Likewise.
25931         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25932
25933 2010-02-01  Eric Blake  <ebb9@byu.net>
25934
25935         sys_time: use link-warning
25936         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25937         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25938         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25939         * modules/sys_time (Depends-on): Add warn-on-use.
25940         (Makefile.am): Always build replacement.
25941         (configure.ac): Update substitutions.
25942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25943         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25944         bother with SYS_TIME_H.
25945         * modules/gettimeofday (configure.ac): Declare indicator.
25946         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25947         in use.
25948
25949         closein-tests: silence compiler warning
25950         * tests/test-closein.c (main): Ignore fread result.
25951         * modules/closein-tests (Depends-on): Add ignore-value.
25952
25953         tests: silence warning about system return
25954         * tests/test-areadlink-with-size.c (main): Ignore system result.
25955         * tests/test-areadlink.c (main): Likewise.
25956         * tests/test-areadlinkat-with-size.c (main): Likewise.
25957         * tests/test-areadlinkat.c (main): Likewise.
25958         * tests/test-canonicalize-lgpl.c (main): Likewise.
25959         * tests/test-canonicalize.c (main): Likewise.
25960         * tests/test-chown.c (main): Likewise.
25961         * tests/test-fchownat.c (main): Likewise.
25962         * tests/test-fdutimensat.c (main): Likewise.
25963         * tests/test-fstatat.c (main): Likewise.
25964         * tests/test-futimens.c (main): Likewise.
25965         * tests/test-lchown.c (main): Likewise.
25966         * tests/test-link.c (main): Likewise.
25967         * tests/test-linkat.c (main): Likewise.
25968         * tests/test-lstat.c (main): Likewise.
25969         * tests/test-mkdir.c (main): Likewise.
25970         * tests/test-mkdirat.c (main): Likewise.
25971         * tests/test-mkfifo.c (main): Likewise.
25972         * tests/test-mkfifoat.c (main): Likewise.
25973         * tests/test-mknod.c (main): Likewise.
25974         * tests/test-readlink.c (main): Likewise.
25975         * tests/test-remove.c (main): Likewise.
25976         * tests/test-rename.c (main): Likewise.
25977         * tests/test-renameat.c (main): Likewise.
25978         * tests/test-rmdir.c (main): Likewise.
25979         * tests/test-symlink.c (main): Likewise.
25980         * tests/test-symlinkat.c (main): Likewise.
25981         * tests/test-unlink.c (main): Likewise.
25982         * tests/test-unlinkat.c (main): Likewise.
25983         * tests/test-utimens.c (main): Likewise.
25984         * tests/test-utimensat.c (main): Likewise.
25985         * modules/areadlink-tests (Depends-on): Add ignore-value.
25986         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25987         * modules/areadlinkat-tests (Depends-on): Likewise.
25988         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25989         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25990         * modules/canonicalize-tests (Depends-on): Likewise.
25991         * modules/chown-tests (Depends-on): Likewise.
25992         * modules/fdutimensat-tests (Depends-on): Likewise.
25993         * modules/futimens-tests (Depends-on): Likewise.
25994         * modules/lchown-tests (Depends-on): Likewise.
25995         * modules/link-tests (Depends-on): Likewise.
25996         * modules/linkat-tests (Depends-on): Likewise.
25997         * modules/lstat-tests (Depends-on): Likewise.
25998         * modules/mkdir-tests (Depends-on): Likewise.
25999         * modules/mkfifo-tests (Depends-on): Likewise.
26000         * modules/mkfifoat-tests (Depends-on): Likewise.
26001         * modules/mknod-tests (Depends-on): Likewise.
26002         * modules/openat-tests (Depends-on): Likewise.
26003         * modules/readlink-tests (Depends-on): Likewise.
26004         * modules/remove-tests (Depends-on): Likewise.
26005         * modules/rename-tests (Depends-on): Likewise.
26006         * modules/renameat-tests (Depends-on): Likewise.
26007         * modules/rmdir-tests (Depends-on): Likewise.
26008         * modules/symlink-tests (Depends-on): Likewise.
26009         * modules/symlinkat-tests (Depends-on): Likewise.
26010         * modules/unlink-tests (Depends-on): Likewise.
26011         * modules/utimens-tests (Depends-on): Likewise.
26012         * modules/utimensat-tests (Depends-on): Likewise.
26013
26014 2010-01-31  Bruno Haible  <bruno@clisp.org>
26015
26016         Perform the same test for many <math.h> functions.
26017         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26018         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26019         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26020         of gl_MATHFUNC.
26021         * modules/acos (configure.ac): Likewise.
26022         * modules/asin (configure.ac): Likewise.
26023         * modules/atan (configure.ac): Likewise.
26024         * modules/atan2 (configure.ac): Likewise.
26025         * modules/cbrt (configure.ac): Likewise.
26026         * modules/copysign (configure.ac): Likewise.
26027         * modules/cos (configure.ac): Likewise.
26028         * modules/cosh (configure.ac): Likewise.
26029         * modules/erf (configure.ac): Likewise.
26030         * modules/erfc (configure.ac): Likewise.
26031         * modules/exp (configure.ac): Likewise.
26032         * modules/fmod (configure.ac): Likewise.
26033         * modules/hypot (configure.ac): Likewise.
26034         * modules/j0 (configure.ac): Likewise.
26035         * modules/j1 (configure.ac): Likewise.
26036         * modules/jn (configure.ac): Likewise.
26037         * modules/lgamma (configure.ac): Likewise.
26038         * modules/log (configure.ac): Likewise.
26039         * modules/log10 (configure.ac): Likewise.
26040         * modules/log1p (configure.ac): Likewise.
26041         * modules/pow (configure.ac): Likewise.
26042         * modules/remainder (configure.ac): Likewise.
26043         * modules/sin (configure.ac): Likewise.
26044         * modules/sinh (configure.ac): Likewise.
26045         * modules/tan (configure.ac): Likewise.
26046         * modules/tanh (configure.ac): Likewise.
26047         * modules/y0 (configure.ac): Likewise.
26048         * modules/y1 (configure.ac): Likewise.
26049         * modules/yn (configure.ac): Likewise.
26050         Suggested by Paolo Bonzini.
26051
26052 2010-01-31  Bruno Haible  <bruno@clisp.org>
26053
26054         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26055
26056 2010-01-31  Bruno Haible  <bruno@clisp.org>
26057
26058         Work around getdelim() bug on FreeBSD 8.0.
26059         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26060         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26061         not work.
26062         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26063         is 1.
26064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26065         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26066         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26067         a non-zero size.
26068         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26069
26070 2010-01-31  Bruno Haible  <bruno@clisp.org>
26071
26072         Work around getline() bug on FreeBSD 8.0.
26073         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26074         and a non-zero size.
26075         * tests/test-getline.c (main): Likewise.
26076         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26077         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26078
26079 2010-01-28  Eric Blake  <ebb9@byu.net>
26080
26081         regex: fix build failure
26082         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26083         platforms.
26084
26085 2010-01-28  Jim Meyering  <meyering@redhat.com>
26086
26087         regex: do not ignore memory allocation failure
26088         * lib/regex_internal.c (create_cd_newstate): Detect
26089         re_node_set_init_copy failure.   Extracted from glibc commit
26090         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26091
26092         regex: sync more white-space changes from libc
26093         * lib/regex_internal.c: White-space only changes.
26094         * lib/regexec.c: Likewise.
26095
26096         regex: add many uses of __attribute_warn_unused_result__
26097         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26098         * lib/regexec.c: Likewise.
26099         Extracted from a messy glibc commit.
26100
26101         regcomp.c: spelling and merge-artifact from glibc
26102         * lib/regcomp.c: Merge remainder of glibc's
26103         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26104
26105         regcomp.c: sync white-space changes from glibc
26106         * lib/regcomp.c: Merge to accommodate white space
26107         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26108
26109         regcomp.c: do not ignore internal return values
26110         * lib/regcomp.c: Do not ignore internal return values.
26111         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26112         but without its white-space changes and spelling fixes.
26113
26114         regex_internal.h: define __attribute_warn_unused_result__
26115         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26116
26117         maint: add a syntax-check rule to check for vulnerable Makefile.in
26118         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26119
26120 2010-01-27  Jim Meyering  <meyering@redhat.com>
26121
26122         ncftpput-ftp: clean up spaces
26123         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26124         Remove trailing blanks.
26125
26126 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26127
26128         * build-aux/git-version-gen: Fix copyright statement.
26129         * build-aux/gnupload: Likewise.
26130         * tests/test-arcfour.c: Likewise.
26131         * tests/test-arctwo.c: Likewise.
26132         * tests/test-count-one-bits.c: Likewise.
26133         * tests/test-crc.c: Likewise.
26134         * tests/test-des.c: Likewise.
26135         * tests/test-gc-arcfour.c: Likewise.
26136         * tests/test-gc-arctwo.c: Likewise.
26137         * tests/test-gc-des.c: Likewise.
26138         * tests/test-gc-hmac-md5.c: Likewise.
26139         * tests/test-gc-hmac-sha1.c: Likewise.
26140         * tests/test-gc-md2.c: Likewise.
26141         * tests/test-gc-md4.c: Likewise.
26142         * tests/test-gc-md5.c: Likewise.
26143         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26144         * tests/test-gc-rijndael.c: Likewise.
26145         * tests/test-gc-sha1.c: Likewise.
26146         * tests/test-gc.c: Likewise.
26147         * tests/test-gethostname.c: Likewise.
26148         * tests/test-gettimeofday.c: Likewise.
26149         * tests/test-hash.c: Likewise.
26150         * tests/test-hmac-md5.c: Likewise.
26151         * tests/test-hmac-sha1.c: Likewise.
26152         * tests/test-md2.c: Likewise.
26153         * tests/test-md4.c: Likewise.
26154         * tests/test-md5.c: Likewise.
26155         * tests/test-memchr.c: Likewise.
26156         * tests/test-memchr2.c: Likewise.
26157         * tests/test-memcmp.c: Likewise.
26158         * tests/test-memmem.c: Likewise.
26159         * tests/test-memrchr.c: Likewise.
26160         * tests/test-rawmemchr.c: Likewise.
26161         * tests/test-read-file.c: Likewise.
26162         * tests/test-rijndael.c: Likewise.
26163         * tests/test-sockets.c: Likewise.
26164         * tests/test-strchrnul.c: Likewise.
26165         * tests/test-strstr.c: Likewise.
26166         * tests/test-strtod.c: Likewise.
26167         * build-aux/ncftpput-ftp: Likewise.
26168
26169 2010-01-26  Eric Blake  <ebb9@byu.net>
26170
26171         ignore-value: update recommended header name
26172         * modules/ignore-value (Include): Only use <> for headers that
26173         exist in glibc.
26174
26175 2010-01-26  Jim Meyering  <meyering@redhat.com>
26176
26177         test-userspec.c: avoid compiler warnings
26178         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26179         and "initialization discards qualifiers..." warnings.
26180         Put the first "uid" in its own scope, and make char* members "const".
26181
26182 2010-01-25  Bruno Haible  <bruno@clisp.org>
26183
26184         gnulib-tool: Make warning diagnostics consistent.
26185         * gnulib-tool (func_warning): New function.
26186         Use it everywhere where gnulib-tool produces output to stderr and it is
26187         not a fatal error.
26188
26189 2010-01-25  Bruno Haible  <bruno@clisp.org>
26190
26191         Fix test dependencies.
26192         * modules/xstrtol-tests (Depends-on): Add inttypes.
26193         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26194
26195 2010-01-25 Pádraig Brady <P@draigBrady.com>
26196
26197         syntax-check: detect incorrect boolean macro values in config.h
26198         * modules/maintainer-makefile (configure.ac): Parameterize the location
26199         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26200         The logic is from Eric Blake and the location indicated by Jim Meyering.
26201         Note the more natural CONFIG_HEADER name is prohibited by automake
26202         for backwards compatibility reasons.
26203         * top/maint.mk (sc_Wundef_boolean): New rule.
26204
26205 2010-01-25  Jim Meyering  <meyering@redhat.com>
26206
26207         bootstrap: detect MacOS 10.6's shasum, too
26208         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26209         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26210
26211 2010-01-23  Jim Meyering  <meyering@redhat.com>
26212
26213         xstrtoll: new module
26214         * modules/xstrtoll: New file.
26215         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26216         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26217         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26218         ./configure fails if you use this module and lack "long long".
26219         * modules/xstrtoll-tests: New module.
26220         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26221         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26222         new init.sh-based test framework.
26223
26224 2010-01-24  Bruno Haible  <bruno@clisp.org>
26225
26226         Tests for module 'yn'.
26227         * modules/yn-tests: New file.
26228         * tests/test-yn.c: New file.
26229
26230         Tests for module 'y1'.
26231         * modules/y1-tests: New file.
26232         * tests/test-y1.c: New file.
26233
26234         Tests for module 'y0'.
26235         * modules/y0-tests: New file.
26236         * tests/test-y0.c: New file.
26237
26238         Tests for module 'tanh'.
26239         * modules/tanh-tests: New file.
26240         * tests/test-tanh.c: New file.
26241
26242         Tests for module 'tan'.
26243         * modules/tan-tests: New file.
26244         * tests/test-tan.c: New file.
26245
26246         Tests for module 'sqrt'.
26247         * modules/sqrt-tests: New file.
26248         * tests/test-sqrt.c: New file.
26249
26250         Tests for module 'sinh'.
26251         * modules/sinh-tests: New file.
26252         * tests/test-sinh.c: New file.
26253
26254         Tests for module 'sin'.
26255         * modules/sin-tests: New file.
26256         * tests/test-sin.c: New file.
26257
26258         Tests for module 'rint'.
26259         * modules/rint-tests: New file.
26260         * tests/test-rint.c: New file.
26261
26262         Tests for module 'remainder'.
26263         * modules/remainder-tests: New file.
26264         * tests/test-remainder.c: New file.
26265
26266         Tests for module 'pow'.
26267         * modules/pow-tests: New file.
26268         * tests/test-pow.c: New file.
26269
26270         Tests for module 'nextafter'.
26271         * modules/nextafter-tests: New file.
26272         * tests/test-nextafter.c: New file.
26273
26274         Tests for module 'modf'.
26275         * modules/modf-tests: New file.
26276         * tests/test-modf.c: New file.
26277
26278         Tests for module 'logb'.
26279         * modules/logb-tests: New file.
26280         * tests/test-logb.c: New file.
26281
26282         Tests for module 'log1p'.
26283         * modules/log1p-tests: New file.
26284         * tests/test-log1p.c: New file.
26285
26286         Tests for module 'log10'.
26287         * modules/log10-tests: New file.
26288         * tests/test-log10.c: New file.
26289
26290         Tests for module 'log'.
26291         * modules/log-tests: New file.
26292         * tests/test-log.c: New file.
26293
26294         Tests for module 'lgamma'.
26295         * modules/lgamma-tests: New file.
26296         * tests/test-lgamma.c: New file.
26297
26298         Tests for module 'ldexp'.
26299         * modules/ldexp-tests: New file.
26300         * tests/test-ldexp.c: New file.
26301
26302         Tests for module 'jn'.
26303         * modules/jn-tests: New file.
26304         * tests/test-jn.c: New file.
26305
26306         Tests for module 'j1'.
26307         * modules/j1-tests: New file.
26308         * tests/test-j1.c: New file.
26309
26310         Tests for module 'j0'.
26311         * modules/j0-tests: New file.
26312         * tests/test-j0.c: New file.
26313
26314         Tests for module 'hypot'.
26315         * modules/hypot-tests: New file.
26316         * tests/test-hypot.c: New file.
26317
26318         Tests for module 'fmod'.
26319         * modules/fmod-tests: New file.
26320         * tests/test-fmod.c: New file.
26321
26322         Tests for module 'fabs'.
26323         * modules/fabs-tests: New file.
26324         * tests/test-fabs.c: New file.
26325
26326         Tests for module 'exp'.
26327         * modules/exp-tests: New file.
26328         * tests/test-exp.c: New file.
26329
26330         Tests for module 'erfc'.
26331         * modules/erfc-tests: New file.
26332         * tests/test-erfc.c: New file.
26333
26334         Tests for module 'erf'.
26335         * modules/erf-tests: New file.
26336         * tests/test-erf.c: New file.
26337
26338         Tests for module 'cosh'.
26339         * modules/cosh-tests: New file.
26340         * tests/test-cosh.c: New file.
26341
26342         Tests for module 'cos'.
26343         * modules/cos-tests: New file.
26344         * tests/test-cos.c: New file.
26345
26346         Tests for module 'copysign'.
26347         * modules/copysign-tests: New file.
26348         * tests/test-copysign.c: New file.
26349
26350         Tests for module 'cbrt'.
26351         * modules/cbrt-tests: New file.
26352         * tests/test-cbrt.c: New file.
26353
26354         Tests for module 'atan2'.
26355         * modules/atan2-tests: New file.
26356         * tests/test-atan2.c: New file.
26357
26358         Tests for module 'atan'.
26359         * modules/atan-tests: New file.
26360         * tests/test-atan.c: New file.
26361
26362         Tests for module 'asin'.
26363         * modules/asin-tests: New file.
26364         * tests/test-asin.c: New file.
26365
26366         Tests for module 'acos'.
26367         * modules/acos-tests: New file.
26368         * tests/test-acos.c: New file.
26369
26370 2010-01-24  Bruno Haible  <bruno@clisp.org>
26371
26372         Fix tests for common <math.h> functions.
26373         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26374         code snippet that references the function pointer, rather than merely
26375         calling the function. Substitute the FUNC_LIBM variable.
26376         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26377         * modules/acos (configure.ac): Likewise.
26378         * modules/asin (configure.ac): Likewise.
26379         * modules/atan (configure.ac): Likewise.
26380         * modules/atan2 (configure.ac): Likewise.
26381         * modules/cbrt (configure.ac): Likewise.
26382         * modules/copysign (configure.ac): Likewise.
26383         * modules/cos (configure.ac): Likewise.
26384         * modules/cosh (configure.ac): Likewise.
26385         * modules/erf (configure.ac): Likewise.
26386         * modules/erfc (configure.ac): Likewise.
26387         * modules/exp (configure.ac): Likewise.
26388         * modules/fabs (configure.ac): Likewise.
26389         * modules/fmod (configure.ac): Likewise.
26390         * modules/hypot (configure.ac): Likewise.
26391         * modules/j0 (configure.ac): Likewise.
26392         * modules/j1 (configure.ac): Likewise.
26393         * modules/jn (configure.ac): Likewise.
26394         * modules/ldexp (configure.ac): Likewise.
26395         * modules/lgamma (configure.ac): Likewise.
26396         * modules/log (configure.ac): Likewise.
26397         * modules/log10 (configure.ac): Likewise.
26398         * modules/log1p (configure.ac): Likewise.
26399         * modules/logb (configure.ac): Likewise.
26400         * modules/modf (configure.ac): Likewise.
26401         * modules/nextafter (configure.ac): Likewise.
26402         * modules/pow (configure.ac): Likewise.
26403         * modules/remainder (configure.ac): Likewise.
26404         * modules/rint (configure.ac): Likewise.
26405         * modules/sin (configure.ac): Likewise.
26406         * modules/sinh (configure.ac): Likewise.
26407         * modules/tan (configure.ac): Likewise.
26408         * modules/tanh (configure.ac): Likewise.
26409         * modules/y0 (configure.ac): Likewise.
26410         * modules/y1 (configure.ac): Likewise.
26411         * modules/yn (configure.ac): Likewise.
26412
26413 2010-01-24  Bruno Haible  <bruno@clisp.org>
26414
26415         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26416         * tests/test-acosl.c (x): New variable.
26417         (main): Store argument in x and fetch it from x.
26418         * tests/test-asinl.c (x): New variable.
26419         (main): Store argument in x and fetch it from x.
26420         * tests/test-atanl.c (x): New variable.
26421         (main): Store argument in x and fetch it from x.
26422         * tests/test-cosl.c (x): New variable.
26423         (main): Store argument in x and fetch it from x.
26424         * tests/test-expl.c (x): New variable.
26425         (main): Store argument in x and fetch it from x.
26426         * tests/test-logl.c (x): New variable.
26427         (main): Store argument in x and fetch it from x.
26428         * tests/test-sinl.c (x): New variable.
26429         (main): Store argument in x and fetch it from x.
26430         * tests/test-sqrtl.c (x): New variable.
26431         (main): Store argument in x and fetch it from x.
26432         * tests/test-tanl.c (x): New variable.
26433         (main): Store argument in x and fetch it from x.
26434
26435 2010-01-24  Bruno Haible  <bruno@clisp.org>
26436
26437         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26438         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26439         assignments to the initial TESTS_ENVIRONMENT.
26440         * doc/gnulib.texi (Unit test modules): Document it.
26441         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26442         TESTS_ENVIRONMENT.
26443         * modules/btowc-tests (Makefile.am): Likewise.
26444         * modules/c-stack-tests (Makefile.am): Likewise.
26445         * modules/c-strcase-tests (Makefile.am): Likewise.
26446         * modules/copy-file-tests (Makefile.am): Likewise.
26447         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26448         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26449         * modules/mbrtowc-tests (Makefile.am): Likewise.
26450         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26451         * modules/mbscasestr-tests (Makefile.am): Likewise.
26452         * modules/mbschr-tests (Makefile.am): Likewise.
26453         * modules/mbscspn-tests (Makefile.am): Likewise.
26454         * modules/mbsinit-tests (Makefile.am): Likewise.
26455         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26456         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26457         * modules/mbspbrk-tests (Makefile.am): Likewise.
26458         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26459         * modules/mbsrchr-tests (Makefile.am): Likewise.
26460         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26461         * modules/mbsspn-tests (Makefile.am): Likewise.
26462         * modules/mbsstr-tests (Makefile.am): Likewise.
26463         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26464         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26465         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26466         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26467         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26468         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26469         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26470         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26471         * modules/wcrtomb-tests (Makefile.am): Likewise.
26472         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26473         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26474         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26475         assignments from TESTS_ENVIRONMENT.
26476         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26477         augmentation.
26478         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26479         * modules/atexit-tests (Makefile.am): Likewise.
26480         * modules/binary-io-tests (Makefile.am): Likewise.
26481         * modules/closein-tests (Makefile.am): Likewise.
26482         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26483         * modules/exclude-tests (Makefile.am): Likewise.
26484         * modules/fflush-tests (Makefile.am): Likewise.
26485         * modules/fpending-tests (Makefile.am): Likewise.
26486         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26487         * modules/freadahead-tests (Makefile.am): Likewise.
26488         * modules/freadptr-tests (Makefile.am): Likewise.
26489         * modules/freadseek-tests (Makefile.am): Likewise.
26490         * modules/fseek-tests (Makefile.am): Likewise.
26491         * modules/fseeko-tests (Makefile.am): Likewise.
26492         * modules/ftell-tests (Makefile.am): Likewise.
26493         * modules/ftello-tests (Makefile.am): Likewise.
26494         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26495         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26496         * modules/lseek-tests (Makefile.am): Likewise.
26497         * modules/parse-duration-tests (Makefile.am): Likewise.
26498         * modules/perror-tests (Makefile.am): Likewise.
26499         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26500         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26501         * modules/pipe-tests (Makefile.am): Likewise.
26502         * modules/pread-tests (Makefile.am): Likewise.
26503         * modules/printf-posix-tests (Makefile.am): Likewise.
26504         * modules/select-tests (Makefile.am): Likewise.
26505         * modules/sigpipe-tests (Makefile.am): Likewise.
26506         * modules/tsearch-tests (Makefile.am): Likewise.
26507         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26508         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26509         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26510         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26511         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26512         * modules/version-etc-tests (Makefile.am): Likewise.
26513         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26514         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26515         * modules/xalloc-die-tests (Makefile.am): Likewise.
26516         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26517         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26518         * modules/xstrtol-tests (Makefile.am): Likewise.
26519         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26520         * modules/yesno-tests (Makefile.am): Likewise.
26521         Suggested by Jim Meyering.
26522
26523 2010-01-24  Bruno Haible  <bruno@clisp.org>
26524
26525         More documentation.
26526         * doc/gnulib.texi (Writing modules): New chapter.
26527         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26528         the new chapter.
26529
26530 2010-01-24  Jim Meyering  <meyering@redhat.com>
26531
26532         maint.mk: do not prepend "./" after filtering
26533         * top/maint.mk (_prepend_srcdir_prefix): New variable
26534         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26535         "./" when $(srcdir) is ".".
26536
26537         define STREQ(a,b) consistently, removing useless parentheses
26538         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26539         since the only risk is that "a" or "b" contains an unparenthesized
26540         comma, but if either did that, STREQ would have 3 or more arguments.
26541         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26542         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26543         * lib/hash-triple.c (STREQ): Likewise.
26544         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26545         * lib/getugroups.c (STREQ): Likewise.
26546
26547 2010-01-23  Jim Meyering  <meyering@redhat.com>
26548
26549         maint.mk: fix syntax-check in a non-srcdir build directory
26550         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26551         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26552
26553 2010-01-22  Jim Meyering  <meyering@redhat.com>
26554
26555         userspec: add unit tests
26556         * tests/test-userspec.c: New file.
26557         * modules/userspec-tests: Likewise.
26558
26559 2010-01-21  Jim Meyering  <meyering@redhat.com>
26560
26561         maint.mk: handle source file names containing "." robustly
26562         * top/maint.mk (_dot_escaped_srcdir): Define.
26563         (VC_LIST): Use it in LHS of sed substitution.
26564
26565 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26566
26567         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26568         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26569         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26570         from a non-srcdir build.
26571
26572 2010-01-20  Eric Blake  <ebb9@byu.net>
26573
26574         warn-on-use: use instead of link-warning
26575         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26576         * modules/unistd (Depends-on, Makefile.am): Likewise.
26577         * modules/arpa_inet (Depends-on): Replace link-warning with
26578         warn-on-use.
26579         (Makefile.am): Update rules accordingly.
26580         * modules/ctype (Depends-on, Makefile.am): Likewise.
26581         * modules/dirent (Depends-on, Makefile.am): Likewise.
26582         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26583         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26584         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26585         * modules/locale (Depends-on, Makefile.am): Likewise.
26586         * modules/math (Depends-on, Makefile.am): Likewise.
26587         * modules/search (Depends-on, Makefile.am): Likewise.
26588         * modules/signal (Depends-on, Makefile.am): Likewise.
26589         * modules/spawn (Depends-on, Makefile.am): Likewise.
26590         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26591         * modules/string (Depends-on, Makefile.am): Likewise.
26592         * modules/strings (Depends-on, Makefile.am): Likewise.
26593         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26594         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26595         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26596         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26597         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26598         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26599         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26600         * modules/wchar (Depends-on, Makefile.am): Likewise.
26601         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26602         should be poisoned.
26603         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26604         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26605         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26606         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26607         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26608         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26609         * m4/math_h.m4 (gl_MATH_H): Likewise.
26610         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26611         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26612         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26613         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26614         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26615         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26616         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26617         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26619         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26620         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26621         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26622         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26624         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26625         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26626         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26627         GL_LINK_WARNING.
26628         * lib/ctype.in.h: Likewise.
26629         * lib/dirent.in.h: Likewise.
26630         * lib/fcntl.in.h: Likewise.
26631         * lib/inttypes.in.h: Likewise.
26632         * lib/langinfo.in.h: Likewise.
26633         * lib/locale.in.h: Likewise.
26634         * lib/math.in.h: Likewise.
26635         * lib/search.in.h: Likewise.
26636         * lib/signal.in.h: Likewise.
26637         * lib/spawn.in.h: Likewise.
26638         * lib/stdio.in.h: Likewise.
26639         * lib/stdlib.in.h: Likewise.
26640         * lib/string.in.h: Likewise.
26641         * lib/strings.in.h: Likewise.
26642         * lib/sys_file.in.h: Likewise.
26643         * lib/sys_ioctl.in.h: Likewise.
26644         * lib/sys_select.in.h: Likewise.
26645         * lib/sys_socket.in.h: Likewise.
26646         * lib/sys_stat.in.h: Likewise.
26647         * lib/sys_times.in.h: Likewise.
26648         * lib/sys_utsname.in.h: Likewise.
26649         * lib/unistd.in.h: Likewise.
26650         * lib/wchar.in.h: Likewise.
26651
26652 2010-01-20  Bruno Haible  <bruno@clisp.org>
26653
26654         Avoid duplicate -lm.
26655         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26656         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26657         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26658         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26659         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26660         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26661         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26662         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26663         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26664         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26665         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26666         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26667         Reported by Paolo Bonzini.
26668
26669 2010-01-19  Bruno Haible  <bruno@clisp.org>
26670
26671         langinfo, nl_langinfo: Relicense under LGPLv2+.
26672         * modules/langinfo (License): Change to LGPLv2+.
26673         * modules/nl_langinfo (License): Likewise.
26674         Patch by David Lutterkort <lutter@redhat.com>.
26675
26676 2010-01-19  Bruno Haible  <bruno@clisp.org>
26677
26678         Avoid compilation error with cc on OSF/1 5.1.
26679         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26680         statement, not before.
26681         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26682
26683 2010-01-18  Bruno Haible  <bruno@clisp.org>
26684
26685         Avoid a link error due to the __printf__ symbol.
26686         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26687         and 2.6.x.
26688         (__format__, __printf__): Remove definitions.
26689         * lib/argp-fmtstream.h: Likewise.
26690         * lib/argp.h: Likewise.
26691         * lib/error.h: Likewise.
26692         * lib/vasnprintf.h: Likewise.
26693         * lib/xprintf.h: Likewise.
26694         * lib/xvasprintf.h: Likewise.
26695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26696
26697 2010-01-18  Bruno Haible  <bruno@clisp.org>
26698
26699         Tests for module 'tanl'.
26700         * modules/tanl-tests: New file.
26701         * tests/test-tanl.c: New file.
26702
26703         Tests for module 'sqrtl'.
26704         * modules/sqrtl-tests: New file.
26705         * tests/test-sqrtl.c: New file.
26706
26707         Tests for module 'sinl'.
26708         * modules/sinl-tests: New file.
26709         * tests/test-sinl.c: New file.
26710
26711         Tests for module 'logl'.
26712         * modules/logl-tests: New file.
26713         * tests/test-logl.c: New file.
26714
26715         Tests for module 'expl'.
26716         * modules/expl-tests: New file.
26717         * tests/test-expl.c: New file.
26718
26719         Tests for module 'cosl'.
26720         * modules/cosl-tests: New file.
26721         * tests/test-cosl.c: New file.
26722
26723         Tests for module 'atanl'.
26724         * modules/atanl-tests: New file.
26725         * tests/test-atanl.c: New file.
26726
26727         Tests for module 'asinl'.
26728         * modules/asinl-tests: New file.
26729         * tests/test-asinl.c: New file.
26730
26731         Tests for module 'acosl'.
26732         * modules/acosl-tests: New file.
26733         * tests/test-acosl.c: New file.
26734
26735         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26736         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26737         tanl): Use the standard gnulib idiom.
26738         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26739         * lib/sinl.c: Likewise.
26740         * lib/tanl.c: Don't include trigl.c.
26741         (kernel_tanl): Make static.
26742         * lib/sincosl.c: Include trigl.h first.
26743         * lib/trigl.c: Likewise.
26744         * m4/acosl.m4: New file.
26745         * m4/asinl.m4: New file.
26746         * m4/atanl.m4: New file.
26747         * m4/cosl.m4: New file.
26748         * m4/expl.m4: New file.
26749         * m4/logl.m4: New file.
26750         * m4/sinl.m4: New file.
26751         * m4/sqrtl.m4: New file.
26752         * m4/tanl.m4: New file.
26753         * m4/mathl.m4: Remove file.
26754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26755         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26756         Don't initialize GNULIB_MATHL.
26757         * modules/acosl: New file.
26758         * modules/asinl: New file.
26759         * modules/atanl: New file.
26760         * modules/cosl: New file.
26761         * modules/expl: New file.
26762         * modules/logl: New file.
26763         * modules/sinl: New file.
26764         * modules/sqrtl: New file.
26765         * modules/tanl: New file.
26766         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26767         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26768         substitute GNULIB_MATHL.
26769         * modules/mathl: Rewritten.
26770         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26771         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26772         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26773         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26774         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26775         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26776         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26777         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26778         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26779
26780 2010-01-18  Bruno Haible  <bruno@clisp.org>
26781
26782         sqrt: Make gl_FUNC_SQRT requirable.
26783         * m4/sqrt.m4: New file.
26784         * modules/sqrt (Files): Add it.
26785         (configure.ac): Invoke gl_FUNC_SQRT.
26786
26787 2010-01-18  Bruno Haible  <bruno@clisp.org>
26788
26789         New modules for common <math.h> functions.
26790         * m4/mathfunc.m4: New file.
26791         * modules/acos: New file.
26792         * modules/asin: New file.
26793         * modules/atan: New file.
26794         * modules/atan2: New file.
26795         * modules/cbrt: New file.
26796         * modules/copysign: New file.
26797         * modules/cos: New file.
26798         * modules/cosh: New file.
26799         * modules/erf: New file.
26800         * modules/erfc: New file.
26801         * modules/exp: New file.
26802         * modules/fabs: New file.
26803         * modules/fmod: New file.
26804         * modules/hypot: New file.
26805         * modules/j0: New file.
26806         * modules/j1: New file.
26807         * modules/jn: New file.
26808         * modules/ldexp: New file.
26809         * modules/lgamma: New file.
26810         * modules/log: New file.
26811         * modules/log10: New file.
26812         * modules/log1p: New file.
26813         * modules/logb: New file.
26814         * modules/modf: New file.
26815         * modules/nextafter: New file.
26816         * modules/pow: New file.
26817         * modules/remainder: New file.
26818         * modules/rint: New file.
26819         * modules/sin: New file.
26820         * modules/sinh: New file.
26821         * modules/sqrt: New file.
26822         * modules/tan: New file.
26823         * modules/tanh: New file.
26824         * modules/y0: New file.
26825         * modules/y1: New file.
26826         * modules/yn: New file.
26827         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26828         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26829         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26830         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26831         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26832         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26833         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26834         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26835         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26836         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26837         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26838         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26839         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26840         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26841         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26842         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26843         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26844         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26845         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26846         * doc/posix-functions/log.texi: Mention the 'log' module.
26847         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26848         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26849         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26850         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26851         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26852         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26853         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26854         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26855         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26856         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26857         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26858         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26859         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26860         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26861         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26862         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26863
26864 2010-01-18  Jim Meyering  <meyering@redhat.com>
26865
26866         ignore-value: relax license to LGPLv2+
26867         * modules/ignore-value (License): Relax to LGPLv2+.
26868
26869         getdate: don't leak when TZ contains two or more '"'s
26870         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26871         double quote in TZ after the first one.
26872
26873         readtokens: do not leak internal token_lengths buffer
26874         * lib/readtokens.c (readtokens): Free the local, lengths,
26875         when the supplied "token_lengths" parameter is NULL.
26876
26877 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26878
26879         Fix a couple of missing LIBTHREAD link failures on AIX.
26880         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26881         $(LIBTHREAD).
26882         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26883
26884         Link test-poll against INET_PTON_LIB.
26885         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26886         for inet_pton on Solaris 10.
26887
26888 2010-01-17  Bruno Haible  <bruno@clisp.org>
26889
26890         unistdio/*-sprintf: Fix typo in module description.
26891         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26892         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26893         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26894         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26895         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26896         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26897         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26899
26900 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26901
26902         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26903         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26904         variables in shell case patterns, for AIX and HP-UX ksh.
26905
26906         Split large sed scripts, for HP-UX sed.
26907         * modules/stdio: Split sed scripts around 50 sed commands,
26908         to avoid HP-UX limit of 99 commands, in the near future.
26909         * modules/string: Likewise.
26910         * modules/unistd: Likewise.
26911
26912         gnulib-tool: avoid writing in the current directory.
26913         * gnulib-tool (func_emit_lib_Makefile_am)
26914         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26915         not in the current directory, so concurrent gnulib-tool
26916         instances do not interfere.
26917
26918 2010-01-16  Jim Meyering  <meyering@redhat.com>
26919
26920         doc: update users.txt
26921         * users.txt: Add grep.
26922         (diffutils, gzip): Update URLs.
26923
26924 2010-01-12  Bruno Haible  <bruno@clisp.org>
26925
26926         posix_spawn: Avoid test failure on Cygwin.
26927         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26928         characters.
26929         Reported by Simon Josefsson.
26930
26931 2010-01-12  Bruno Haible  <bruno@clisp.org>
26932
26933         * tests/test-cond.c (main): When skipping the test, show the reason.
26934
26935 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26936
26937         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26938
26939 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26940
26941         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26942         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26943
26944 2010-01-12  Eric Blake  <ebb9@byu.net>
26945
26946         build: guarantee AS_VAR_IF
26947         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26948         (gl_AS_VAR_IF): Move...
26949         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26950         Reported by Simon Josefsson.
26951
26952 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26953
26954         * lib/stdio.in.h: Fix typo.
26955
26956 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26957
26958         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26959         libgpg-error.
26960
26961 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26962
26963         * tests/test-xalloc-die.sh: Use $EXEEXT.
26964
26965 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26966             Bruno Haible  <bruno@clisp.org>
26967
26968         getlogin, getlogin_r: Avoid test failure.
26969         * tests/test-getlogin.c: Include <stdio.h>.
26970         (main): Skip the test when the function fails because stdin is not a
26971         tty.
26972         * tests/test-getlogin_r.c: Include <stdio.h>.
26973         (main): Skip the test when the function fails because stdin is not a
26974         tty.
26975
26976 2010-01-11  Eric Blake  <ebb9@byu.net>
26977
26978         tests: avoid more large file warnings
26979         * tests/test-fflush.c: Avoid warning about ftell use.
26980         * tests/test-fseek.c: Avoid warning about fseek use.
26981
26982 2010-01-10  Bruno Haible  <bruno@clisp.org>
26983
26984         nproc: Work better on Linux when /proc and /sys are not mounted.
26985         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26986         as lower bound when, on glibc/Linux systems,
26987         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26988         Suggested by Pádraig Brady <P@draigbrady.com>.
26989         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26990
26991         nproc: Refactor.
26992         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26993         extracted from num_processors.
26994         (num_processors): Call it.
26995
26996 2010-01-11  Jim Meyering  <meyering@redhat.com>
26997
26998         utimecmp: avoid new warning from upcoming gcc-4.5.0
26999         * lib/utimecmp.c (BILLION): Define using #define rather than an
27000         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27001
27002 2010-01-11  Eric Blake  <ebb9@byu.net>
27003
27004         math: add portability warnings for classification macros
27005         * modules/math (Depends-on): Add warn-on-use.
27006         (Makefile.am): Provide new substitutions.
27007         * m4/math_h.m4 (gl_MATH_H): Require inline.
27008         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27009         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27010         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27011         implement warnings.
27012
27013         unistd: warn on use of environ without module
27014         * modules/unistd (Depends-on): Add warn-on-use.
27015         (Makefile.am): Provide new substitutions.
27016         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27017         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27018
27019         stdio: warn on suspicious uses
27020         * modules/stdio (Depends-on): Add warn-on-use.
27021         (Makefile.am): Provide new substitutions.
27022         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27023         fseeko.
27024         * lib/stdio.in.h (gets): Always warn on use.
27025         (fseek, ftell): Adjust when warnings are issued, and honor
27026         _GL_NO_LARGE_FILES as a way to silence the warning.
27027         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27028         any warning about large file offsets.
27029         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27030         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27031         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27032         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27033         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27034         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27035         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27036         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27037
27038         warn-on-use: new module
27039         * modules/warn-on-use: New file.
27040         * build-aux/warn-on-use.h: Likewise.
27041         * m4/warn-on-use.m4: Likewise.
27042         * MODULES.html.sh (Support for building): Mention it.
27043
27044 2010-01-10  Bruno Haible  <bruno@clisp.org>
27045
27046         Tests for module 'unistr/u32-strdup'.
27047         * modules/unistr/u32-strdup-tests: New file.
27048         * tests/unistr/test-u32-strdup.c: New file.
27049
27050         Tests for module 'unistr/u16-strdup'.
27051         * modules/unistr/u16-strdup-tests: New file.
27052         * tests/unistr/test-u16-strdup.c: New file.
27053
27054         Tests for module 'unistr/u8-strdup'.
27055         * modules/unistr/u8-strdup-tests: New file.
27056         * tests/unistr/test-u8-strdup.c: New file.
27057         * tests/unistr/test-strdup.h: New file.
27058
27059         Tests for module 'unistr/u32-strncmp'.
27060         * modules/unistr/u32-strncmp-tests: New file.
27061         * tests/unistr/test-u32-strncmp.c: New file.
27062
27063         Tests for module 'unistr/u16-strncmp'.
27064         * modules/unistr/u16-strncmp-tests: New file.
27065         * tests/unistr/test-u16-strncmp.c: New file.
27066
27067         Tests for module 'unistr/u8-strncmp'.
27068         * modules/unistr/u8-strncmp-tests: New file.
27069         * tests/unistr/test-u8-strncmp.c: New file.
27070         * tests/unistr/test-strncmp.h: New file.
27071
27072         Tests for module 'unistr/u32-strcoll'.
27073         * modules/unistr/u32-strcoll-tests: New file.
27074         * tests/unistr/test-u32-strcoll.c: New file.
27075
27076         Tests for module 'unistr/u16-strcoll'.
27077         * modules/unistr/u16-strcoll-tests: New file.
27078         * tests/unistr/test-u16-strcoll.c: New file.
27079
27080         Tests for module 'unistr/u8-strcoll'.
27081         * modules/unistr/u8-strcoll-tests: New file.
27082         * tests/unistr/test-u8-strcoll.c: New file.
27083
27084         Tests for module 'unistr/u32-strcmp'.
27085         * modules/unistr/u32-strcmp-tests: New file.
27086         * tests/unistr/test-u32-strcmp.c: New file.
27087         * tests/unistr/test-u32-strcmp.h: New file.
27088
27089         Tests for module 'unistr/u16-strcmp'.
27090         * modules/unistr/u16-strcmp-tests: New file.
27091         * tests/unistr/test-u16-strcmp.c: New file.
27092         * tests/unistr/test-u16-strcmp.h: New file.
27093
27094         Tests for module 'unistr/u8-strcmp'.
27095         * modules/unistr/u8-strcmp-tests: New file.
27096         * tests/unistr/test-u8-strcmp.c: New file.
27097         * tests/unistr/test-u8-strcmp.h: New file.
27098         * tests/unistr/test-strcmp.h: New file.
27099
27100         Tests for module 'unistr/u32-strncat'.
27101         * modules/unistr/u32-strncat-tests: New file.
27102         * tests/unistr/test-u32-strncat.c: New file.
27103
27104         Tests for module 'unistr/u16-strncat'.
27105         * modules/unistr/u16-strncat-tests: New file.
27106         * tests/unistr/test-u16-strncat.c: New file.
27107
27108         Tests for module 'unistr/u8-strncat'.
27109         * modules/unistr/u8-strncat-tests: New file.
27110         * tests/unistr/test-u8-strncat.c: New file.
27111         * tests/unistr/test-strncat.h: New file.
27112
27113         Tests for module 'unistr/u32-strcat'.
27114         * modules/unistr/u32-strcat-tests: New file.
27115         * tests/unistr/test-u32-strcat.c: New file.
27116
27117         Tests for module 'unistr/u16-strcat'.
27118         * modules/unistr/u16-strcat-tests: New file.
27119         * tests/unistr/test-u16-strcat.c: New file.
27120
27121         Tests for module 'unistr/u8-strcat'.
27122         * modules/unistr/u8-strcat-tests: New file.
27123         * tests/unistr/test-u8-strcat.c: New file.
27124         * tests/unistr/test-strcat.h: New file.
27125
27126         Tests for module 'unistr/u32-stpncpy'.
27127         * modules/unistr/u32-stpncpy-tests: New file.
27128         * tests/unistr/test-u32-stpncpy.c: New file.
27129
27130         Tests for module 'unistr/u16-stpncpy'.
27131         * modules/unistr/u16-stpncpy-tests: New file.
27132         * tests/unistr/test-u16-stpncpy.c: New file.
27133
27134         Tests for module 'unistr/u8-stpncpy'.
27135         * modules/unistr/u8-stpncpy-tests: New file.
27136         * tests/unistr/test-u8-stpncpy.c: New file.
27137         * tests/unistr/test-stpncpy.h: New file.
27138
27139         Tests for module 'unistr/u32-strncpy'.
27140         * modules/unistr/u32-strncpy-tests: New file.
27141         * tests/unistr/test-u32-strncpy.c: New file.
27142
27143         Tests for module 'unistr/u16-strncpy'.
27144         * modules/unistr/u16-strncpy-tests: New file.
27145         * tests/unistr/test-u16-strncpy.c: New file.
27146
27147         Tests for module 'unistr/u8-strncpy'.
27148         * modules/unistr/u8-strncpy-tests: New file.
27149         * tests/unistr/test-u8-strncpy.c: New file.
27150         * tests/unistr/test-strncpy.h: New file.
27151
27152         Tests for module 'unistr/u32-stpcpy'.
27153         * modules/unistr/u32-stpcpy-tests: New file.
27154         * tests/unistr/test-u32-stpcpy.c: New file.
27155
27156         Tests for module 'unistr/u16-stpcpy'.
27157         * modules/unistr/u16-stpcpy-tests: New file.
27158         * tests/unistr/test-u16-stpcpy.c: New file.
27159
27160         Tests for module 'unistr/u8-stpcpy'.
27161         * modules/unistr/u8-stpcpy-tests: New file.
27162         * tests/unistr/test-u8-stpcpy.c: New file.
27163         * tests/unistr/test-stpcpy.h: New file.
27164
27165         Tests for module 'unistr/u32-strcpy'.
27166         * modules/unistr/u32-strcpy-tests: New file.
27167         * tests/unistr/test-u32-strcpy.c: New file.
27168
27169         Tests for module 'unistr/u16-strcpy'.
27170         * modules/unistr/u16-strcpy-tests: New file.
27171         * tests/unistr/test-u16-strcpy.c: New file.
27172
27173         Tests for module 'unistr/u8-strcpy'.
27174         * modules/unistr/u8-strcpy-tests: New file.
27175         * tests/unistr/test-u8-strcpy.c: New file.
27176         * tests/unistr/test-strcpy.h: New file.
27177
27178         Tests for module 'unistr/u32-strnlen'.
27179         * modules/unistr/u32-strnlen-tests: New file.
27180         * tests/unistr/test-u32-strnlen.c: New file.
27181
27182         Tests for module 'unistr/u16-strnlen'.
27183         * modules/unistr/u16-strnlen-tests: New file.
27184         * tests/unistr/test-u16-strnlen.c: New file.
27185
27186         Tests for module 'unistr/u8-strnlen'.
27187         * modules/unistr/u8-strnlen-tests: New file.
27188         * tests/unistr/test-u8-strnlen.c: New file.
27189         * tests/unistr/test-strnlen.h: New file.
27190
27191         Tests for module 'unistr/u32-strlen'.
27192         * modules/unistr/u32-strlen-tests: New file.
27193         * tests/unistr/test-u32-strlen.c: New file.
27194
27195         Tests for module 'unistr/u16-strlen'.
27196         * modules/unistr/u16-strlen-tests: New file.
27197         * tests/unistr/test-u16-strlen.c: New file.
27198
27199         Tests for module 'unistr/u8-strlen'.
27200         * modules/unistr/u8-strlen-tests: New file.
27201         * tests/unistr/test-u8-strlen.c: New file.
27202
27203         Tests for module 'unistr/u32-prev'.
27204         * modules/unistr/u32-prev-tests: New file.
27205         * tests/unistr/test-u32-prev.c: New file.
27206
27207         Tests for module 'unistr/u16-prev'.
27208         * modules/unistr/u16-prev-tests: New file.
27209         * tests/unistr/test-u16-prev.c: New file.
27210
27211         Tests for module 'unistr/u8-prev'.
27212         * modules/unistr/u8-prev-tests: New file.
27213         * tests/unistr/test-u8-prev.c: New file.
27214
27215         Tests for module 'unistr/u32-next'.
27216         * modules/unistr/u32-next-tests: New file.
27217         * tests/unistr/test-u32-next.c: New file.
27218
27219         Tests for module 'unistr/u16-next'.
27220         * modules/unistr/u16-next-tests: New file.
27221         * tests/unistr/test-u16-next.c: New file.
27222
27223         Tests for module 'unistr/u8-next'.
27224         * modules/unistr/u8-next-tests: New file.
27225         * tests/unistr/test-u8-next.c: New file.
27226
27227         Tests for module 'unistr/u32-strmbtouc'.
27228         * modules/unistr/u32-strmbtouc-tests: New file.
27229         * tests/unistr/test-u32-strmbtouc.c: New file.
27230
27231         Tests for module 'unistr/u16-strmbtouc'.
27232         * modules/unistr/u16-strmbtouc-tests: New file.
27233         * tests/unistr/test-u16-strmbtouc.c: New file.
27234
27235         Tests for module 'unistr/u8-strmbtouc'.
27236         * modules/unistr/u8-strmbtouc-tests: New file.
27237         * tests/unistr/test-u8-strmbtouc.c: New file.
27238
27239         Tests for module 'unistr/u32-strmblen'.
27240         * modules/unistr/u32-strmblen-tests: New file.
27241         * tests/unistr/test-u32-strmblen.c: New file.
27242
27243         Tests for module 'unistr/u16-strmblen'.
27244         * modules/unistr/u16-strmblen-tests: New file.
27245         * tests/unistr/test-u16-strmblen.c: New file.
27246
27247         Tests for module 'unistr/u8-strmblen'.
27248         * modules/unistr/u8-strmblen-tests: New file.
27249         * tests/unistr/test-u8-strmblen.c: New file.
27250
27251         Tests for module 'unistr/u32-cpy-alloc'.
27252         * modules/unistr/u32-cpy-alloc-tests: New file.
27253         * tests/unistr/test-u32-cpy-alloc.c: New file.
27254
27255         Tests for module 'unistr/u16-cpy-alloc'.
27256         * modules/unistr/u16-cpy-alloc-tests: New file.
27257         * tests/unistr/test-u16-cpy-alloc.c: New file.
27258
27259         Tests for module 'unistr/u8-cpy-alloc'.
27260         * modules/unistr/u8-cpy-alloc-tests: New file.
27261         * tests/unistr/test-u8-cpy-alloc.c: New file.
27262         * tests/unistr/test-cpy-alloc.h: New file.
27263
27264         Tests for module 'unistr/u32-mbsnlen'.
27265         * modules/unistr/u32-mbsnlen-tests: New file.
27266         * tests/unistr/test-u32-mbsnlen.c: New file.
27267
27268         Tests for module 'unistr/u16-mbsnlen'.
27269         * modules/unistr/u16-mbsnlen-tests: New file.
27270         * tests/unistr/test-u16-mbsnlen.c: New file.
27271
27272         Tests for module 'unistr/u8-mbsnlen'.
27273         * modules/unistr/u8-mbsnlen-tests: New file.
27274         * tests/unistr/test-u8-mbsnlen.c: New file.
27275
27276         Tests for module 'unistr/u32-chr'.
27277         * modules/unistr/u32-chr-tests: New file.
27278         * tests/unistr/test-u32-chr.c: New file.
27279
27280         Tests for module 'unistr/u16-chr'.
27281         * modules/unistr/u16-chr-tests: New file.
27282         * tests/unistr/test-u16-chr.c: New file.
27283
27284         Tests for module 'unistr/u8-chr'.
27285         * modules/unistr/u8-chr-tests: New file.
27286         * tests/unistr/test-u8-chr.c: New file.
27287         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27288
27289         Tests for module 'unistr/u32-cmp2'.
27290         * modules/unistr/u32-cmp2-tests: New file.
27291         * tests/unistr/test-u32-cmp2.c: New file.
27292
27293         Tests for module 'unistr/u16-cmp2'.
27294         * modules/unistr/u16-cmp2-tests: New file.
27295         * tests/unistr/test-u16-cmp2.c: New file.
27296
27297         Tests for module 'unistr/u8-cmp2'.
27298         * modules/unistr/u8-cmp2-tests: New file.
27299         * tests/unistr/test-u8-cmp2.c: New file.
27300         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27301
27302         Tests for module 'unistr/u32-cmp'.
27303         * modules/unistr/u32-cmp-tests: New file.
27304         * tests/unistr/test-u32-cmp.c: New file.
27305
27306         Tests for module 'unistr/u16-cmp'.
27307         * modules/unistr/u16-cmp-tests: New file.
27308         * tests/unistr/test-u16-cmp.c: New file.
27309
27310         Tests for module 'unistr/u8-cmp'.
27311         * modules/unistr/u8-cmp-tests: New file.
27312         * tests/unistr/test-u8-cmp.c: New file.
27313         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27314
27315         Tests for module 'unistr/u32-set'.
27316         * modules/unistr/u32-set-tests: New file.
27317         * tests/unistr/test-u32-set.c: New file.
27318
27319         Tests for module 'unistr/u16-set'.
27320         * modules/unistr/u16-set-tests: New file.
27321         * tests/unistr/test-u16-set.c: New file.
27322
27323         Tests for module 'unistr/u8-set'.
27324         * modules/unistr/u8-set-tests: New file.
27325         * tests/unistr/test-u8-set.c: New file.
27326         * tests/unistr/test-set.h: New file.
27327
27328         Tests for module 'unistr/u32-move'.
27329         * modules/unistr/u32-move-tests: New file.
27330         * tests/unistr/test-u32-move.c: New file.
27331
27332         Tests for module 'unistr/u16-move'.
27333         * modules/unistr/u16-move-tests: New file.
27334         * tests/unistr/test-u16-move.c: New file.
27335
27336         Tests for module 'unistr/u8-move'.
27337         * modules/unistr/u8-move-tests: New file.
27338         * tests/unistr/test-u8-move.c: New file.
27339         * tests/unistr/test-move.h: New file.
27340
27341         Tests for module 'unistr/u32-cpy'.
27342         * modules/unistr/u32-cpy-tests: New file.
27343         * tests/unistr/test-u32-cpy.c: New file.
27344
27345         Tests for module 'unistr/u16-cpy'.
27346         * modules/unistr/u16-cpy-tests: New file.
27347         * tests/unistr/test-u16-cpy.c: New file.
27348
27349         Tests for module 'unistr/u8-cpy'.
27350         * modules/unistr/u8-cpy-tests: New file.
27351         * tests/unistr/test-u8-cpy.c: New file.
27352         * tests/unistr/test-cpy.h: New file.
27353
27354 2010-01-09  Bruno Haible  <bruno@clisp.org>
27355
27356         Tests for module 'unistr/u32-uctomb'.
27357         * modules/unistr/u32-uctomb-tests: New file.
27358         * tests/unistr/test-u32-uctomb.c: New file.
27359
27360         Tests for module 'unistr/u16-uctomb'.
27361         * modules/unistr/u16-uctomb-tests: New file.
27362         * tests/unistr/test-u16-uctomb.c: New file.
27363
27364         Tests for module 'unistr/u8-uctomb'.
27365         * modules/unistr/u8-uctomb-tests: New file.
27366         * tests/unistr/test-u8-uctomb.c: New file.
27367
27368         Tests for module 'unistr/u32-mbtoucr'.
27369         * modules/unistr/u32-mbtoucr-tests: New file.
27370         * tests/unistr/test-u32-mbtoucr.c: New file.
27371
27372         Tests for module 'unistr/u16-mbtoucr'.
27373         * modules/unistr/u16-mbtoucr-tests: New file.
27374         * tests/unistr/test-u16-mbtoucr.c: New file.
27375
27376         Tests for module 'unistr/u8-mbtoucr'.
27377         * modules/unistr/u8-mbtoucr-tests: New file.
27378         * tests/unistr/test-u8-mbtoucr.c: New file.
27379
27380         Tests for module 'unistr/u32-mbtouc'.
27381         * modules/unistr/u32-mbtouc-tests: New file.
27382         * tests/unistr/test-u32-mbtouc.c: New file.
27383
27384         Tests for module 'unistr/u16-mbtouc'.
27385         * modules/unistr/u16-mbtouc-tests: New file.
27386         * tests/unistr/test-u16-mbtouc.c: New file.
27387
27388         Tests for module 'unistr/u8-mbtouc'.
27389         * modules/unistr/u8-mbtouc-tests: New file.
27390         * tests/unistr/test-u8-mbtouc.c: New file.
27391
27392         Tests for module 'unistr/u32-mbtouc-unsafe'.
27393         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27394         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27395         * tests/unistr/test-u32-mbtouc.h: New file.
27396
27397         Tests for module 'unistr/u16-mbtouc-unsafe'.
27398         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27399         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27400         * tests/unistr/test-u16-mbtouc.h: New file.
27401
27402         Tests for module 'unistr/u8-mbtouc-unsafe'.
27403         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27404         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27405         * tests/unistr/test-u8-mbtouc.h: New file.
27406
27407         Tests for module 'unistr/u32-mblen'.
27408         * modules/unistr/u32-mblen-tests: New file.
27409         * tests/unistr/test-u32-mblen.c: New file.
27410
27411         Tests for module 'unistr/u16-mblen'.
27412         * modules/unistr/u16-mblen-tests: New file.
27413         * tests/unistr/test-u16-mblen.c: New file.
27414
27415         Tests for module 'unistr/u8-mblen'.
27416         * modules/unistr/u8-mblen-tests: New file.
27417         * tests/unistr/test-u8-mblen.c: New file.
27418
27419         Tests for module 'unistr/u32-to-u16'.
27420         * modules/unistr/u32-to-u16-tests: New file.
27421         * tests/unistr/test-u32-to-u16.c: New file.
27422
27423         Tests for module 'unistr/u32-to-u8'.
27424         * modules/unistr/u32-to-u8-tests: New file.
27425         * tests/unistr/test-u32-to-u8.c: New file.
27426
27427         Tests for module 'unistr/u16-to-u32'.
27428         * modules/unistr/u16-to-u32-tests: New file.
27429         * tests/unistr/test-u16-to-u32.c: New file.
27430
27431         Tests for module 'unistr/u16-to-u8'.
27432         * modules/unistr/u16-to-u8-tests: New file.
27433         * tests/unistr/test-u16-to-u8.c: New file.
27434
27435         Tests for module 'unistr/u8-to-u32'.
27436         * modules/unistr/u8-to-u32-tests: New file.
27437         * tests/unistr/test-u8-to-u32.c: New file.
27438
27439         Tests for module 'unistr/u8-to-u16'.
27440         * modules/unistr/u8-to-u16-tests: New file.
27441         * tests/unistr/test-u8-to-u16.c: New file.
27442
27443         Tests for module 'unistr/u32-check'.
27444         * modules/unistr/u32-check-tests: New file.
27445         * tests/unistr/test-u32-check.c: New file.
27446
27447         Tests for module 'unistr/u16-check'.
27448         * modules/unistr/u16-check-tests: New file.
27449         * tests/unistr/test-u16-check.c: New file.
27450
27451         Tests for module 'unistr/u8-check'.
27452         * modules/unistr/u8-check-tests: New file.
27453         * tests/unistr/test-u8-check.c: New file.
27454
27455         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27456         (category_equals): New function.
27457         (main): Add more tests.
27458         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27459
27460         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27461
27462 2010-01-10  Bruno Haible  <bruno@clisp.org>
27463
27464         unistr/u*-strcoll: Try harder to distinguish different strings.
27465         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27466         compare s1 and s2 to see if they are different.
27467
27468 2010-01-10  Bruno Haible  <bruno@clisp.org>
27469
27470         unistr/u*-stpncpy: Fix the return value.
27471         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27472         description of the return value consistent with stpncpy in glibc.
27473         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27474         written non-NUL unit.
27475
27476 2010-01-10  Bruno Haible  <bruno@clisp.org>
27477
27478         unistr/u*-next: Add missing dependencies.
27479         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27480         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27481         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27482
27483 2010-01-10  Bruno Haible  <bruno@clisp.org>
27484
27485         unistr/u8-mbsnlen: Fix return value for incomplete character.
27486         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27487         u8_mblen.
27488         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27489         Remove unistr/u8-mblen.
27490         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27491         u16_mblen.
27492         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27493         Remove unistr/u16-mblen.
27494
27495 2010-01-10  Bruno Haible  <bruno@clisp.org>
27496
27497         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27498         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27499         Reported by Brian Gough <bjg@gnu.org> and
27500         Chris Clayton <chris2553@googlemail.com> via
27501         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27502
27503 2010-01-09  Bruno Haible  <bruno@clisp.org>
27504
27505         unistr/u16-to-u32: Reject invalid input.
27506         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27507         u16_mbtouc.
27508         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27509         Remove unistr/u16-mbtouc.
27510
27511         unistr/u16-to-u8: Reject invalid input.
27512         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27513         u16_mbtouc.
27514         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27515         Remove unistr/u16-mbtouc.
27516
27517         unistr/u8-to-u32: Reject invalid input.
27518         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27519         u8_mbtouc.
27520         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27521         Remove unistr/u8-mbtouc.
27522
27523         unistr/u8-to-u16: Reject invalid input.
27524         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27525         u8_mbtouc.
27526         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27527         Remove unistr/u8-mbtouc.
27528
27529 2010-01-09  Bruno Haible  <bruno@clisp.org>
27530
27531         Tests for module 'getlogin'.
27532         * modules/getlogin-tests: New file.
27533         * tests/test-getlogin.c: New file.
27534
27535         New module 'getlogin'.
27536         * lib/unistd.in.h (getlogin): New declaration.
27537         * lib/getlogin.c: New file.
27538         * m4/getlogin.m4: New file.
27539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27540         HAVE_GETLOGIN.
27541         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27542         HAVE_GETLOGIN.
27543         * modules/getlogin: New file.
27544         * doc/posix-functions/getlogin.texi: Mention the new module.
27545         Reported by John W. Eaton <jwe@gnu.org>.
27546
27547 2010-01-09  Bruno Haible  <bruno@clisp.org>
27548
27549         getlogin_r: Support for native Windows.
27550         * lib/getlogin_r.c: Include <windows.h>
27551         (getlogin_r): Implement for native Windows.
27552         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27553         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27554         via John W. Eaton <jwe@gnu.org>.
27555
27556 2010-01-09  Bruno Haible  <bruno@clisp.org>
27557
27558         getlogin_r: Small fixes.
27559         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27560         succeeds.
27561         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27562         before testing whether getlogin_r is declared. No need to set
27563         HAVE_DECL_GETLOGIN_R to 1.
27564         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27565
27566 2010-01-09  Bruno Haible  <bruno@clisp.org>
27567
27568         * lib/unistd.in.h (getlogin_r): Add comment.
27569
27570 2010-01-09  Bruno Haible  <bruno@clisp.org>
27571
27572         Tests for module 'getlogin_r'.
27573         * modules/getlogin_r-tests: New file.
27574         * tests/test-getlogin_r.c: New file.
27575
27576 2010-01-09  Jim Meyering  <meyering@redhat.com>
27577
27578         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27579         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27580         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27581
27582 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27583
27584         * lib/dup2.c (rpl_dup2): Improve comment.
27585
27586 2010-01-08  Eric Blake  <ebb9@byu.net>
27587
27588         maint.mk: allow packages to add makefile @@ exceptions
27589         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27590         (sc_makefile_check): Rename...
27591         (sc_makefile_at_at_check): ...to this, and use hook.
27592
27593         dup2: work around mingw bug
27594         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27595         Reported by Simon Josefsson.
27596
27597 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27598
27599         glob: Fix C++ compilation.
27600         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27601         C++.
27602
27603 2010-01-07  Bruno Haible  <bruno@clisp.org>
27604
27605         Fix indentation of wctype.in.h, broken since 2007-01-06.
27606         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27607
27608 2010-01-07  Bruno Haible  <bruno@clisp.org>
27609
27610         mbslen: Avoid collision with system function.
27611         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27612         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27613         * m4/mbslen.m4: New file.
27614         * modules/mbslen (Files): Add it.
27615         (configure.ac): Invoke gl_MBSLEN.
27616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27617         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27618         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27619         via Ian Beckwith <ianb@erislabs.net>.
27620
27621 2010-01-07  Bruno Haible  <bruno@clisp.org>
27622
27623         dirent: Document the last fix.
27624         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27625
27626 2010-01-07  Bruno Haible  <bruno@clisp.org>
27627
27628         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27629         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27630         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27631         va_list are defined.
27632         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27633         Reported by Eric Blake.
27634
27635 2010-01-07  Bruno Haible  <bruno@clisp.org>
27636
27637         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27638         * modules/xlist (Depends-on): Add 'list',
27639         * modules/xoset (Depends-on): Add 'oset'.
27640         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27641
27642 2010-01-07  Bruno Haible  <bruno@clisp.org>
27643
27644         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27645         * doc/posix-functions/strncasecmp.texi: Likewise.
27646
27647 2010-01-07  Bruno Haible  <bruno@clisp.org>
27648
27649         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27650
27651 2010-01-07  John W. Eaton  <jwe@octave.org>
27652
27653         wctype: allow C++ use
27654         * lib/wctype.in.h: Add extern "C" block for C++.
27655
27656 2010-01-06  Eric Blake  <ebb9@byu.net>
27657
27658         maint.mk: detect incorrect GFDL usage
27659         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27660
27661 2010-01-06  Jim Meyering  <meyering@redhat.com>
27662         and Eric Blake  <ebb9@byu.net>
27663
27664         maint.mk: ignore multi-line copyright in NEWS
27665         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27666
27667 2010-01-06  Eric Blake  <ebb9@byu.net>
27668
27669         select: add missing dependency
27670         * modules/select-tests (Depends-on): Move sockets dependency...
27671         * modules/select (Depends-on): ...here.
27672         Reported by Ian Beckwith.
27673
27674         doc: regenerate INSTALL
27675         * doc/INSTALL: Reflect recent autoconf update.
27676         * doc/INSTALL.ISO: Likewise.
27677         * doc/INSTALL.UTF-8: Likewise.
27678
27679         pread: fix compilation on glibc
27680         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27681         Reported by Ralf Wildenhues.
27682
27683         dirent: fix test failure
27684         * lib/dirent.in.h (includes): Guarantee ino_t.
27685         Reported by Ralf Wildenhues.
27686
27687 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27688
27689         linkat, renameat: avoid bad free
27690         * lib/at-func2.c (at_func2): Fix typo.
27691         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27692
27693 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27694
27695         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27696         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27697         to avoid failure of symlink test later.
27698
27699 2010-01-06  Eric Blake  <ebb9@byu.net>
27700
27701         stdio, unistd: guarantee ssize_t
27702         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27703         2008 are exposed when needed.
27704         * lib/stdio.in.h (includes): Likewise.
27705         Reported by Ralf Wildenhues.
27706
27707 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27708
27709         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27710         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27711         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27712
27713 2010-01-06  Jim Meyering  <meyering@redhat.com>
27714
27715         readtokens: this module *does* require xalloc.h
27716         It uses only functions that were omitted by the old syntax-check rule.
27717         * lib/readtokens.c: Include "xalloc.h" once again.
27718         * modules/readtokens (Depends-on): Add xalloc.
27719         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27720
27721 2010-01-05  Eric Blake  <ebb9@byu.net>
27722
27723         maint: support 'make announcement' from a VPATH build
27724         * top/maint.mk (announcement): Look for correct NEWS file.
27725
27726 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27727
27728         utimens (fdutimens): ignore a negative FD, per contract
27729         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27730         when we have a valid file descriptor.  Otherwise, using a brand
27731         new glibc (with just-patched futimens that now fails with EBADF)
27732         would cause this function to fail with ENOSYS.
27733         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27734         See also http://bugzilla.redhat.com/552320.
27735
27736 2010-01-05  Eric Blake  <ebb9@byu.net>
27737
27738         strcase: document what it provides
27739         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27740         gnulib module.
27741         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27742         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27743
27744 2010-01-05  Jim Meyering  <meyering@redhat.com>
27745
27746         maint: remove useless inclusions of "xalloc.h"
27747         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27748         * lib/readtokens.c: Likewise.
27749         * lib/same.c: Likewise.
27750         * modules/getloadavg (Depends-on): Remove xalloc.
27751         * modules/readtokens: Likewise.
27752         * modules/same: Likewise.
27753
27754         maint.mk: include 4 more function names in alloca.h-checking regexp
27755         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27756         regexp.  Before, we would give a false-positive (saying alloca.h
27757         is included unnecessarily) when the only uses involved omitted symbols.
27758
27759         xalloc.h: use consistent formatting
27760         * lib/xalloc.h: Move declarations to start in the first column.
27761
27762 2010-01-05  Eric Blake  <ebb9@byu.net>
27763
27764         mkdir: avoid xalloc
27765         * lib/mkdir.c (includes): Drop unused header.
27766         Reported by John W. Eaton.
27767
27768 2010-01-04  Jim Meyering  <meyering@redhat.com>
27769
27770         nl_langinfo: avoid configure-time syntax error
27771         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27772         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27773         the empty string.  Don't let that provoke a shell syntax error.
27774
27775         regcomp, regexec, fnmatch: avoid array bounds read error
27776         * lib/regcomp.c (build_equiv_class): From glibc:
27777         Use only the low 24 bits of a findidx return value as an index
27778         into the weights array.  Patch by Ulrich Drepper:
27779         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27780         * lib/regexec.c (check_node_accept_bytes): Likewise.
27781         * lib/fnmatch_loop.c (FCT): Likewise.
27782
27783         regcomp: skip collseq lookup when there are no rules
27784         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27785         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27786
27787         regcomp: recognize ill-formed { } expressions
27788         * lib/regcomp.c (parse_dup_op): From glibc:
27789         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27790
27791         regcomp: fix typo in comment
27792         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27793         s/satisfy/satisfies/.
27794
27795         regcomp: sync from glibc: remove dead store
27796         * lib/regcomp.c (duplicate_node_closure): Remove useless
27797         search_duplicated_node call and dead store.
27798
27799         regcomp: sync from glibc; always use nl_langinfo
27800         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27801         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27802         * modules/regex (Depends-on): Add nl_langinfo.
27803
27804 2010-01-04  Eric Blake  <ebb9@byu.net>
27805
27806         fdopendir: fix configure test
27807         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27808
27809 2010-01-01  Bruno Haible  <bruno@clisp.org>
27810
27811         wchar: Remove unused configure check.
27812         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27813
27814 2010-01-01  Eric Blake  <ebb9@byu.net>
27815
27816         headers: make check of system header explicit
27817         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27818         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27819         ourselves.
27820         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27821         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27822         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27823         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27824         internals.
27825         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27826         missing.
27827         Suggested by Bruno Haible.
27828
27829 2010-01-01  Jim Meyering  <meyering@redhat.com>
27830
27831         ChangeLog: tweak to eliminate unnecessary copyright line
27832         * ChangeLog: Remove a copyright line that was mistakenly updated
27833         by today's update-copyright run.  Reported by Eric Blake.
27834
27835         test-update-copyright: don't let envvar setting cause test failure
27836         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27837
27838 2010-01-01  Bruno Haible  <bruno@clisp.org>
27839
27840         localename: Avoid gcc warning.
27841         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27842         function if it is not used.
27843
27844 2010-01-01  Jim Meyering  <meyering@redhat.com>
27845
27846         update nearly all FSF copyright year lists to include 2010
27847         Use the same procedure as for 2009, outlined in
27848         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27849
27850         version-etc: set COPYRIGHT_YEAR to 2010
27851         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27852
27853 2009-12-31  Eric Blake  <ebb9@byu.net>
27854
27855         doc: correct availability of cygwin 1.5.x getopt
27856         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27857         variables.
27858         * doc/posix-functions/opterr.texi (opterr): Likewise.
27859         * doc/posix-functions/optind.texi (optind): Likewise.
27860         * doc/posix-functions/optopt.texi (optopt): Likewise.
27861         * doc/posix-functions/tzname.texi (tzname): Likewise.
27862
27863         openat: update maintainer
27864         * modules/openat (Maintainer): Add myself.
27865
27866         utimens: avoid shadowing warning
27867         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27868         buffers into one, to avoid shadowing, as well as avoiding a
27869         redundant stat.
27870         Reported by Jim Meyering.
27871
27872         test-dup2: avoid compiler warning
27873         * tests/test-dup2.c (is_inheritable): Only define if used.
27874
27875 2010-01-01  Bruno Haible  <bruno@clisp.org>
27876
27877         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27878         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27879         defined, use wctomb instead of wcrtomb.
27880
27881 2010-01-01  Bruno Haible  <bruno@clisp.org>
27882
27883         iconv: Reject native Solaris iconv.
27884         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27885         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27886
27887 2009-12-31  Bruno Haible  <bruno@clisp.org>
27888
27889         * tests/test-signal.c (main): Remove test of 'SIG'.
27890
27891 2009-12-31  Bruno Haible  <bruno@clisp.org>
27892
27893         spawn: Fix incomplete fix.
27894         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27895         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27896         warnings for GNULIB_POSIXCHECK again.
27897         Reported by Eric Blake.
27898
27899 2009-12-31  Bruno Haible  <bruno@clisp.org>
27900
27901         Avoid namespace pollution on glibc systems.
27902         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27903         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27904         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27905         glibc systems.
27906
27907 2009-12-31  Bruno Haible  <bruno@clisp.org>
27908
27909         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27910         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27911         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27912         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27913         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27914         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27915         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27916
27917 2009-12-31  Bruno Haible  <bruno@clisp.org>
27918
27919         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27920         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27921         afterwards.
27922
27923 2009-12-31  Bruno Haible  <bruno@clisp.org>
27924
27925         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27926         SYS_UTSNAME_H.
27927
27928 2009-12-31  Bruno Haible  <bruno@clisp.org>
27929
27930         spawn: Fix misapplied patch.
27931         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27932         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27933         warnings for GNULIB_POSIXCHECK.
27934
27935 2009-12-31  Bruno Haible  <bruno@clisp.org>
27936
27937         times: Update after sys_times changed.
27938         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27939         * modules/times (Files): Add it.
27940         (configure.ac): Invoke gl_FUNC_TIMES.
27941
27942 2009-12-31  Bruno Haible  <bruno@clisp.org>
27943
27944         Use AC_C_INLINE where necessary.
27945         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27946         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27948         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27949         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27950         * m4/mbiter.m4 (gl_MBITER): Likewise.
27951         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27952         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27953         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27954         * modules/u64 (configure.ac): Likewise.
27955
27956 2009-12-31  Bruno Haible  <bruno@clisp.org>
27957
27958         Use AC_C_INLINE instead of module 'inline' where possible.
27959         * modules/inline (Description): Clarify purpose.
27960         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27961         * modules/count-one-bits (Depends-on): Remove inline.
27962         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27963         * modules/openat (Depends-on): Remove inline.
27964         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27965         instead of depending on module 'inline'.
27966         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27967         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27968         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27969         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27970         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27971         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27972         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27973         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27974         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27975         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27976         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27977         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27978         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27979         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27980         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27981         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27982         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27983         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27984         Likewise.
27985         * modules/unictype/property-ascii-hex-digit (Depends-on,
27986         configure.ac): Likewise.
27987         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27988         configure.ac): Likewise.
27989         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27990         configure.ac): Likewise.
27991         * modules/unictype/property-bidi-block-separator (Depends-on,
27992         configure.ac): Likewise.
27993         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27994         configure.ac): Likewise.
27995         * modules/unictype/property-bidi-common-separator (Depends-on,
27996         configure.ac): Likewise.
27997         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27998         Likewise.
27999         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28000         configure.ac): Likewise.
28001         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28002         configure.ac): Likewise.
28003         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28004         configure.ac): Likewise.
28005         * modules/unictype/property-bidi-european-digit (Depends-on,
28006         configure.ac): Likewise.
28007         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28008         configure.ac): Likewise.
28009         * modules/unictype/property-bidi-left-to-right (Depends-on,
28010         configure.ac): Likewise.
28011         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28012         configure.ac): Likewise.
28013         * modules/unictype/property-bidi-other-neutral (Depends-on,
28014         configure.ac): Likewise.
28015         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28016         Likewise.
28017         * modules/unictype/property-bidi-segment-separator (Depends-on,
28018         configure.ac): Likewise.
28019         * modules/unictype/property-bidi-whitespace (Depends-on,
28020         configure.ac): Likewise.
28021         * modules/unictype/property-combining (Depends-on, configure.ac):
28022         Likewise.
28023         * modules/unictype/property-composite (Depends-on, configure.ac):
28024         Likewise.
28025         * modules/unictype/property-currency-symbol (Depends-on,
28026         configure.ac): Likewise.
28027         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28028         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28029         Likewise.
28030         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28031         configure.ac): Likewise.
28032         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28033         Likewise.
28034         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28035         Likewise.
28036         * modules/unictype/property-extender (Depends-on, configure.ac):
28037         Likewise.
28038         * modules/unictype/property-format-control (Depends-on, configure.ac):
28039         Likewise.
28040         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28041         Likewise.
28042         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28043         Likewise.
28044         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28045         Likewise.
28046         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28047         Likewise.
28048         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28049         Likewise.
28050         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28051         Likewise.
28052         * modules/unictype/property-id-start (Depends-on, configure.ac):
28053         Likewise.
28054         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28055         Likewise.
28056         * modules/unictype/property-ids-binary-operator (Depends-on,
28057         configure.ac): Likewise.
28058         * modules/unictype/property-ids-trinary-operator (Depends-on,
28059         configure.ac): Likewise.
28060         * modules/unictype/property-ignorable-control (Depends-on,
28061         configure.ac): Likewise.
28062         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28063         Likewise.
28064         * modules/unictype/property-join-control (Depends-on, configure.ac):
28065         Likewise.
28066         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28067         Likewise.
28068         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28069         Likewise.
28070         * modules/unictype/property-logical-order-exception (Depends-on,
28071         configure.ac): Likewise.
28072         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28073         Likewise.
28074         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28075         * modules/unictype/property-non-break (Depends-on, configure.ac):
28076         Likewise.
28077         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28078         Likewise.
28079         * modules/unictype/property-numeric (Depends-on, configure.ac):
28080         Likewise.
28081         * modules/unictype/property-other-alphabetic (Depends-on,
28082         configure.ac): Likewise.
28083         * modules/unictype/property-other-default-ignorable-code-point
28084         (Depends-on, configure.ac): Likewise.
28085         * modules/unictype/property-other-grapheme-extend (Depends-on,
28086         configure.ac): Likewise.
28087         * modules/unictype/property-other-id-continue (Depends-on,
28088         configure.ac): Likewise.
28089         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28090         Likewise.
28091         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28092         Likewise.
28093         * modules/unictype/property-other-math (Depends-on, configure.ac):
28094         Likewise.
28095         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28096         Likewise.
28097         * modules/unictype/property-paired-punctuation (Depends-on,
28098         configure.ac): Likewise.
28099         * modules/unictype/property-paragraph-separator (Depends-on,
28100         configure.ac): Likewise.
28101         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28102         Likewise.
28103         * modules/unictype/property-pattern-white-space (Depends-on,
28104         configure.ac): Likewise.
28105         * modules/unictype/property-private-use (Depends-on, configure.ac):
28106         Likewise.
28107         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28108         Likewise.
28109         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28110         Likewise.
28111         * modules/unictype/property-radical (Depends-on, configure.ac):
28112         Likewise.
28113         * modules/unictype/property-sentence-terminal (Depends-on,
28114         configure.ac): Likewise.
28115         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28116         Likewise.
28117         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28118         * modules/unictype/property-terminal-punctuation (Depends-on,
28119         configure.ac): Likewise.
28120         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28121         Likewise.
28122         * modules/unictype/property-unassigned-code-value (Depends-on,
28123         configure.ac): Likewise.
28124         * modules/unictype/property-unified-ideograph (Depends-on,
28125         configure.ac): Likewise.
28126         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28127         Likewise.
28128         * modules/unictype/property-variation-selector (Depends-on,
28129         configure.ac): Likewise.
28130         * modules/unictype/property-white-space (Depends-on, configure.ac):
28131         Likewise.
28132         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28133         Likewise.
28134         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28135         Likewise.
28136         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28137         Likewise.
28138         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28139         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28140         Likewise.
28141
28142 2009-12-31  Bruno Haible  <bruno@clisp.org>
28143
28144         Remove unnecessary AC_C_INLINE invocation.
28145         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28146         since 2009-08-21.
28147
28148 2009-12-31  Jim Meyering  <meyering@redhat.com>
28149
28150         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28151         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28152         With this change, we can all remove the gpg_key_ID = ... definition
28153         from our respective cfg.mk files.
28154
28155         maint.mk: create announcement template in ~/, not in /tmp
28156         * top/maint.mk (emit_upload_commands): Adjust.
28157         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28158         Remove temporary file, .ci-msg.
28159
28160 2009-12-31  Eric Blake  <ebb9@byu.net>
28161
28162         link-warning: always build headers with link warnings
28163         * modules/arpa_inet (Makefile.am): Always build replacement
28164         header.
28165         * modules/ctype (Makefile.am): Likewise.
28166         * modules/dirent (Makefile.am): Likewise.
28167         * modules/inttypes (Makefile.am): Likewise.
28168         * modules/langinfo (Makefile.am): Likewise.
28169         * modules/locale (Makefile.am): Likewise.
28170         * modules/spawn (Makefile.am): Likewise.
28171         * modules/sys_file (Makefile.am): Likewise.
28172         * modules/sys_ioctl (Makefile.am): Likewise.
28173         * modules/sys_select (Makefile.am): Likewise.
28174         * modules/sys_socket (Makefile.am): Likewise.
28175         * modules/sys_times (Makefile.am): Likewise.
28176         * modules/sys_utsname (Makefile.am): Likewise.
28177         * modules/sys_wait (Makefile.am): Likewise.
28178         * modules/wchar (Makefile.am): Likewise.
28179         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28180         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28181         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28182         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28183         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28184         Likewise.
28185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28186         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28187         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28188         Likewise.
28189         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28190         Likewise.
28191         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28192         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28193         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28195         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28196         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28197         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28198         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28199         (gl_WCHAR_H_DEFAULTS): Likewise.
28200
28201 2009-12-31  Eric Blake  <ebb9@byu.net>
28202
28203         signal, spawn: use link warnings
28204         * lib/signal.in.h (sigset_t): Make unconditional.
28205         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28206         (sigpending, sigprocmask, sigaction): Add link warnings.
28207         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28208         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28209         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28210         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28211         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28212         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28213         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28214         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28215         (posix_spawn_file_actions_destroy)
28216         (posix_spawn_file_actions_addopen)
28217         (posix_spawn_file_actions_addclose)
28218         (posix_spawn_file_actions_adddup2): Likewise.
28219         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28220         * tests/test-signal.c (main): Enhance test.
28221
28222         spawn: improve wrapper support
28223         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28224         (gl_SPAWN_H_DEFAULTS): New defaults.
28225         * modules/spawn (Makefile.am): Substitute them.
28226         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28227         Only declare if missing or broken.
28228
28229         sys_times, sys_utsname: use include_next
28230         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28231         header.
28232         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28233         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28234         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28235         * modules/sys_times (Depends-on): Add include_next.
28236         (Makefile.am): Substitute additional values.
28237         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28238         * lib/sys_times.in.h (includes): Include native header, if
28239         available.
28240         * lib/sys_utsname.in.h (includes): Likewise.
28241         * tests/test-sys_times.c (main): Enhance test.
28242
28243         fdutimensat: revert prior patch
28244         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28245         utimens.h.
28246         Reported by Bruno Haible.
28247
28248 2009-12-30  Eric Blake  <ebb9@byu.net>
28249
28250         sys_wait: drop link-warning dependency
28251         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28252         link-warning efforts.
28253         * lib/sys_wait.in.h: Likewise.
28254
28255         fdutimensat: remove bogus dependency
28256         * modules/fdutimensat (Depends-on): Drop inline.
28257
28258         unistd: fix typo
28259         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28260
28261 2009-12-30  Bruno Haible  <bruno@clisp.org>
28262
28263         Fix compilation error with Solaris cc.
28264         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28265         * lib/unicase/u16-is-invariant.c: Likewise.
28266         * lib/unicase/u32-is-invariant.c: Likewise.
28267         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28268
28269 2009-12-30  Bruno Haible  <bruno@clisp.org>
28270
28271         Fix test crash.
28272         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28273         locales.
28274         Reported by Simon Josefsson <simon@josefsson.org>.
28275
28276 2009-12-30  Bruno Haible  <bruno@clisp.org>
28277
28278         Fix compilation error on most platforms.
28279         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28280         Reported by Simon Josefsson <simon@josefsson.org>
28281         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28282
28283 2009-12-30  Eric Blake  <ebb9@byu.net>
28284
28285         futimens, utimensat: work around ntfs-3g bug
28286         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28287         a ctime bug is present, and expand workaround to cover ntfs-3g.
28288         * lib/utimens.c (fdutimens, lutimens): Likewise.
28289         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28290         (validate_timespec): Adjust return value.
28291         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28292         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28293         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28294
28295 2009-12-29  Eric Blake  <ebb9@byu.net>
28296
28297         link-warning: make usage consistent
28298         * modules/ctype (Depends-on): Add link-warning.
28299         (Makefile.am): Update rules accordingly.
28300         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28301         * modules/locale (Depends-on, Makefile.am): Likewise.
28302         * modules/sys_file (Makefile.am): Likewise.
28303         * modules/getopt-posix (Makefile.am): Delete unused link warning
28304         efforts.
28305         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28306         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28307         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28308         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28309
28310         stdio: remove unused variables
28311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28312         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28313         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28314
28315         tests: test more substitute headers
28316         * modules/ctype-tests: New file.
28317         * modules/dirent-tests: Likewise.
28318         * modules/spawn-tests: Likewise.
28319         * modules/sys_file-tests: Likewise.
28320         * modules/sys_ioctl-tests: Likewise.
28321         * modules/sys_wait-tests: Likewise.
28322         * tests/test-ctype.c: Likewise.
28323         * tests/test-dirent.c: Likewise.
28324         * tests/test-spawn.c: Likewise.
28325         * tests/test-sys_file.c: Likewise.
28326         * tests/test-sys_ioctl.c: Likewise.
28327         * tests/test-sys_wait.c: Likewise.
28328         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28329         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28330         whether or not flock is in use.
28331
28332         tests: remove License section from module
28333         * modules/arpa_inet-tests: Remove unneeded section.
28334         * modules/byteswap-tests: Likewise.
28335         * modules/ceilf-tests: Likewise.
28336         * modules/ceill-tests: Likewise.
28337         * modules/crypto/des-tests: Likewise.
28338         * modules/crypto/gc-arcfour-tests: Likewise.
28339         * modules/crypto/gc-arctwo-tests: Likewise.
28340         * modules/crypto/gc-des-tests: Likewise.
28341         * modules/crypto/gc-hmac-md5-tests: Likewise.
28342         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28343         * modules/crypto/gc-md2-tests: Likewise.
28344         * modules/crypto/gc-md4-tests: Likewise.
28345         * modules/crypto/gc-md5-tests: Likewise.
28346         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28347         * modules/crypto/gc-rijndael-tests: Likewise.
28348         * modules/crypto/gc-sha1-tests: Likewise.
28349         * modules/crypto/gc-tests: Likewise.
28350         * modules/crypto/md2-tests: Likewise.
28351         * modules/crypto/md4-tests: Likewise.
28352         * modules/fcntl-h-tests: Likewise.
28353         * modules/floorf-tests: Likewise.
28354         * modules/floorl-tests: Likewise.
28355         * modules/frexp-nolibm-tests: Likewise.
28356         * modules/frexp-tests: Likewise.
28357         * modules/frexpl-nolibm-tests: Likewise.
28358         * modules/frexpl-tests: Likewise.
28359         * modules/getaddrinfo-tests: Likewise.
28360         * modules/inttypes-tests: Likewise.
28361         * modules/isfinite-tests: Likewise.
28362         * modules/isinf-tests: Likewise.
28363         * modules/ldexpl-tests: Likewise.
28364         * modules/locale-tests: Likewise.
28365         * modules/math-tests: Likewise.
28366         * modules/netdb-tests: Likewise.
28367         * modules/netinet_in-tests: Likewise.
28368         * modules/printf-frexp-tests: Likewise.
28369         * modules/printf-frexpl-tests: Likewise.
28370         * modules/priv-set-tests: Likewise.
28371         * modules/random_r-tests: Likewise.
28372         * modules/round-tests: Likewise.
28373         * modules/roundf-tests: Likewise.
28374         * modules/roundl-tests: Likewise.
28375         * modules/search-tests: Likewise.
28376         * modules/select-tests: Likewise.
28377         * modules/signal-tests: Likewise.
28378         * modules/stdbool-tests: Likewise.
28379         * modules/stddef-tests: Likewise.
28380         * modules/stdint-tests: Likewise.
28381         * modules/stdio-tests: Likewise.
28382         * modules/stdlib-tests: Likewise.
28383         * modules/string-tests: Likewise.
28384         * modules/strings-tests: Likewise.
28385         * modules/sys_select-tests: Likewise.
28386         * modules/sys_socket-tests: Likewise.
28387         * modules/sys_stat-tests: Likewise.
28388         * modules/sys_time-tests: Likewise.
28389         * modules/sys_utsname-tests: Likewise.
28390         * modules/sysexits-tests: Likewise.
28391         * modules/time-tests: Likewise.
28392         * modules/trunc-tests: Likewise.
28393         * modules/truncf-tests: Likewise.
28394         * modules/truncl-tests: Likewise.
28395         * modules/tsearch-tests: Likewise.
28396         * modules/unistd-tests: Likewise.
28397         * modules/wchar-tests: Likewise.
28398         * modules/wctype-tests: Likewise.
28399
28400         tests: fix license on several tests
28401         * tests/test-des.c: Update to GPLv3+.
28402         * tests/test-flock.c: Likewise.
28403         * tests/test-fsync.c: Likewise.
28404         * tests/test-futimens.h: Likewise.
28405         * tests/test-gc-arcfour.c: Likewise.
28406         * tests/test-gc-arctwo.c: Likewise.
28407         * tests/test-gc-des.c: Likewise.
28408         * tests/test-gc-hmac-md5.c: Likewise.
28409         * tests/test-gc-hmac-sha1.c: Likewise.
28410         * tests/test-gc-md2.c: Likewise.
28411         * tests/test-gc-md4.c: Likewise.
28412         * tests/test-gc-md5.c: Likewise.
28413         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28414         * tests/test-gc-rijndael.c: Likewise.
28415         * tests/test-gc-sha1.c: Likewise.
28416         * tests/test-gc.c: Likewise.
28417         * tests/test-getcwd.c: Likewise.
28418         * tests/test-link.c: Likewise.
28419         * tests/test-link.h: Likewise.
28420         * tests/test-lutimens.h: Likewise.
28421         * tests/test-md2.c: Likewise.
28422         * tests/test-md4.c: Likewise.
28423         * tests/test-mkdir.h: Likewise.
28424         * tests/test-rename.c: Likewise.
28425         * tests/test-rename.h: Likewise.
28426         * tests/test-safe-alloc.c: Likewise.
28427         * tests/test-utimens-common.h: Likewise.
28428         * tests/test-utimens.h: Likewise.
28429
28430         maint: sync license texts
28431         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28432         * doc/gpl-3.0.texi: Revert copyright year update.
28433         * doc/lgpl-3.0.texi: Likewise.
28434
28435 2009-12-29  Jim Meyering  <meyering@redhat.com>
28436
28437         update nearly all FSF copyright year lists to include 2009
28438         The files named by the following are exempted:
28439             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28440               test -f "$dst" && { echo "$dst"; continue; }
28441               test -d "$dst" || continue
28442               echo "$dst"/$(basename "$src")
28443             done > exempt
28444             git ls-files tests/unictype >> exempt
28445         In the remaining files, convert to all-interval notation if
28446         - there is already at least one year interval like 2000-2003
28447         - the file is maintained by me
28448         - the file is in lib/uni*/, where that style already prevails
28449         Otherwise, use update-copyright's default.
28450
28451 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28452         and Eric Blake  <ebb9@byu.net>
28453
28454         tests: don't require debug system() to pass
28455         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28456         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28457         * tests/test-unlink.h (test_unlink_func): Likewise.
28458         * tests/test-fstatat.c (main): ...into callers.
28459         * tests/test-lstat.c (main): Likewise.
28460         * tests/test-rmdir.c (main): Likewise.
28461         * tests/test-unlink.c (main): Likewise.
28462         * tests/test-unlinkat.c (main): Likewise.
28463         * tests/test-areadlink-with-size.c (main): Don't require a
28464         debug-only system call to pass, aiding cross-testing to mingw.
28465         * tests/test-areadlink.c (main): Likewise.
28466         * tests/test-areadlinkat-with-size.c (main): Likewise.
28467         * tests/test-areadlinkat.c (main): Likewise.
28468         * tests/test-canonicalize-lgpl.c (main): Likewise.
28469         * tests/test-canonicalize.c (main): Likewise.
28470         * tests/test-chown.c (main): Likewise.
28471         * tests/test-fchownat.c (main): Likewise.
28472         * tests/test-lchown.c (main): Likewise.
28473         * tests/test-fdutimensat.c (main): Likewise.
28474         * tests/test-futimens.c (main): Likewise.
28475         * tests/test-link.c (main): Likewise.
28476         * tests/test-linkat.c (main): Likewise.
28477         * tests/test-mkdir.c (main): Likewise.
28478         * tests/test-mkdirat.c (main): Likewise.
28479         * tests/test-mkfifo.c (main): Likewise.
28480         * tests/test-mkfifoat.c (main): Likewise.
28481         * tests/test-mknod.c (main): Likewise.
28482         * tests/test-readlink.c (main): Likewise.
28483         * tests/test-remove.c (main): Likewise.
28484         * tests/test-rename.c (main): Likewise.
28485         * tests/test-renameat.c (main): Likewise.
28486         * tests/test-symlink.c (main): Likewise.
28487         * tests/test-symlinkat.c (main): Likewise.
28488         * tests/test-utimens.c (main): Likewise.
28489         * tests/test-utimensat.c (main): Likewise.
28490
28491 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28492
28493         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28494         on $(UNUSED_PARAMETER_H) to avoid build failure.
28495
28496 2009-12-28  Jim Meyering  <meyering@redhat.com>
28497
28498         update-copyright: you may specify a max. line length other than 72
28499         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28500
28501         maint: use consistent FSF copyright line syntax
28502         * lib/posixtm.c: Add missing comma in FSF copyright line.
28503         * lib/posixtm.h: Likewise.
28504         * lib/getugroups.c: Add missing ", Inc.".
28505
28506         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28507         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28508         FSF copyright line.  Remove trailing blanks.
28509
28510 2009-12-28  Eric Blake  <ebb9@byu.net>
28511
28512         test-dup2: reduce dependencies
28513         * modules/cloexec (Configure.ac): Set witness.
28514         * modules/dup2-tests (Depends-on): Drop cloexec.
28515         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28516         not present.
28517         Suggested by Bruno Haible.
28518
28519 2009-12-26  Bruno Haible  <bruno@clisp.org>
28520
28521         Remove an unneeded dependency.
28522         * modules/fseterr (Depends-on): Remove dup2.
28523
28524 2009-12-26  Eric Blake  <ebb9@byu.net>
28525
28526         tests: use macros.h in more places
28527         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28528         (ASSERT_STREAM): Provide default of stderr.
28529         * tests/test-dirent-safer.c: Include macros.h, using alternate
28530         stream for assertions.
28531         * tests/test-dup-safer.c: Likewise.
28532         * tests/test-freopen-safer.c: Likewise.
28533         * tests/test-getopt.c: Likewise.
28534         * tests/test-openat-safer.c: Likewise.
28535         * tests/test-pipe.c: Likewise.
28536         * tests/test-popen-safer.c: Likewise.
28537         * modules/dirent-safer-tests (Files): Include macros.h.
28538         * modules/unistd-safer-tests (Files): Likewise.
28539         * modules/freopen-safer-tests (Files): Likewise.
28540         * modules/getopt-posix-tests (Files): Likewise.
28541         * modules/openat-safer-tests (Files): Likewise.
28542         * modules/pipe-tests (Files): Likewise.
28543
28544 2009-12-26  Bruno Haible  <bruno@clisp.org>
28545
28546         javacomp: Portability fix.
28547         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28548         that it also works on Solaris.
28549
28550 2009-12-26  Bruno Haible  <bruno@clisp.org>
28551
28552         localename: Fix storage allocation of gl_locale_name_thread's result.
28553         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28554         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28555         all platforms that have 'uselocale'.
28556         (gl_locale_name_thread_unsafe): New function, extracted from
28557         gl_locale_name_thread.
28558         (gl_locale_name_thread): Call struniq on all platforms that have
28559         'uselocale'.
28560         * tests/test-localename.c (test_locale_name_thread): Check that the
28561         resulting strings are permanently allocated.
28562         * modules/localename-tests (Depends-on): Add strdup.
28563
28564 2009-12-26  Bruno Haible  <bruno@clisp.org>
28565
28566         * tests/test-localename.c (categories): Fill in the strings.
28567
28568 2009-12-26  Jim Meyering  <meyering@redhat.com>
28569
28570         isdir: complete the removal of m4/isdir.m4
28571         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28572
28573         isdir: clean up, since at least grep still uses it
28574         * lib/isdir.c: Include "isdir.h".
28575         (S_ISDIR): Remove now-unneeded definition.
28576         * modules/isdir (Files): Add lib/isdir.h.
28577         * lib/isdir.h: New file, with declaration.
28578         * m4/isdir.m4: Remove file -- unneeded.
28579
28580 2009-12-25  Bruno Haible  <bruno@clisp.org>
28581
28582         selinux-h: Make generated .h files standalone.
28583         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28584         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28585         * lib/se-selinux.in.h: Likewise.
28586         * modules/selinux-h (Depends-on): Add unused-parameter.
28587         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28588         selinux/selinux.h and selinux/context.h.
28589         Suggested by Eric Blake.
28590
28591 2009-12-25  Bruno Haible  <bruno@clisp.org>
28592
28593         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28594         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28595         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28596         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28597         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28598
28599 2009-12-24  Bruno Haible  <bruno@clisp.org>
28600
28601         openat: Fix warning.
28602         * lib/openat-proc.c: Include <unistd.h>.
28603
28604 2009-12-24  Bruno Haible  <bruno@clisp.org>
28605
28606         New module 'unused-parameter'.
28607         * build-aux/unused-parameter.h: New file, extracted from earlier
28608         gnulib-common.m4.
28609         * modules/unused-parameter: New file.
28610         * lib/unistr.h: Include unused-parameter.h.
28611         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28612         _GL_UNUSED.
28613         * modules/unistr/base (Depends-on): Add unused-parameter.
28614
28615 2009-12-24  Bruno Haible  <bruno@clisp.org>
28616
28617         Add missing dependencies to 'extensions' module.
28618         * m4/extensions.m4: Add comment.
28619         * modules/accept4 (Depends-on): Add extensions.
28620         * modules/dup3 (Depends-on): Likewise.
28621         * modules/fcntl (Depends-on): Likewise.
28622         * modules/futimens (Depends-on): Likewise.
28623         * modules/mknod (Depends-on): Likewise.
28624         * modules/pipe2 (Depends-on): Likewise.
28625         * modules/stat-time (Depends-on): Likewise.
28626         * modules/strcasestr-simple (Depends-on): Likewise.
28627         * modules/strsignal (Depends-on): Likewise.
28628         * modules/utimensat (Depends-on): Likewise.
28629         * modules/localcharset (Depends-on): Likewise. Needed because of
28630         gl_FCNTL_O_FLAGS.
28631         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28632         AC_TYPE_MBSTATE_T.
28633         * modules/wcsnrtombs (Depends-on): Likewise.
28634         * modules/wcsrtombs (Depends-on): Likewise.
28635
28636 2009-12-24  Bruno Haible  <bruno@clisp.org>
28637
28638         binary-io: Avoid gcc warning due to SET_BINARY.
28639         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28640         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28641
28642 2009-12-24  Bruno Haible  <bruno@clisp.org>
28643
28644         Avoid future namespace pollution on glibc systems.
28645         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28646         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28647         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28648         glibc systems.
28649
28650 2009-12-24  Bruno Haible  <bruno@clisp.org>
28651
28652         Refactor common macros used in tests.
28653         * tests/macros.h: New file.
28654         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28655         and/or <stdlib.h>, if appropriate.
28656         (ASSERT, SIZEOF): Remove macros.
28657         * tests/test-areadlink-with-size.c: Likewise.
28658         * tests/test-areadlinkat.c: Likewise.
28659         * tests/test-areadlinkat-with-size.c: Likewise.
28660         * tests/test-argmatch.c: Likewise.
28661         * tests/test-argv-iter.c: Likewise.
28662         * tests/test-array-mergesort.c: Likewise.
28663         * tests/test-array_list.c: Likewise.
28664         * tests/test-array_oset.c: Likewise.
28665         * tests/test-avltree_list.c: Likewise.
28666         * tests/test-avltree_oset.c: Likewise.
28667         * tests/test-avltreehash_list.c: Likewise.
28668         * tests/test-base64.c: Likewise.
28669         * tests/test-binary-io.c: Likewise.
28670         * tests/test-bitrotate.c: Likewise.
28671         * tests/test-btowc.c: Likewise.
28672         * tests/test-byteswap.c: Likewise.
28673         * tests/test-c-ctype.c: Likewise.
28674         * tests/test-c-stack.c: Likewise.
28675         * tests/test-c-strcasecmp.c: Likewise.
28676         * tests/test-c-strcasestr.c: Likewise.
28677         * tests/test-c-strncasecmp.c: Likewise.
28678         * tests/test-c-strstr.c: Likewise.
28679         * tests/test-canonicalize-lgpl.c: Likewise.
28680         * tests/test-canonicalize.c: Likewise.
28681         * tests/test-carray_list.c: Likewise.
28682         * tests/test-ceilf1.c: Likewise.
28683         * tests/test-ceilf2.c: Likewise.
28684         * tests/test-ceill.c: Likewise.
28685         * tests/test-chown.c: Likewise.
28686         * tests/test-cloexec.c: Likewise.
28687         * tests/test-copy-acl.c: Likewise.
28688         * tests/test-copy-file.c: Likewise.
28689         * tests/test-count-one-bits.c: Likewise.
28690         * tests/test-dprintf-posix.c: Likewise.
28691         * tests/test-dup2.c: Likewise.
28692         * tests/test-dup3.c: Likewise.
28693         * tests/test-duplocale.c: Likewise.
28694         * tests/test-fbufmode.c: Likewise.
28695         * tests/test-fchdir.c: Likewise.
28696         * tests/test-fchownat.c: Likewise.
28697         * tests/test-fcntl-safer.c: Likewise.
28698         * tests/test-fcntl.c: Likewise.
28699         * tests/test-fdopendir.c: Likewise.
28700         * tests/test-fdutimensat.c: Likewise.
28701         * tests/test-fflush2.c: Likewise.
28702         * tests/test-file-has-acl.c: Likewise.
28703         * tests/test-filevercmp.c: Likewise.
28704         * tests/test-flock.c: Likewise.
28705         * tests/test-floorf1.c: Likewise.
28706         * tests/test-floorf2.c: Likewise.
28707         * tests/test-floorl.c: Likewise.
28708         * tests/test-fnmatch.c: Likewise.
28709         * tests/test-fopen.h: Likewise.
28710         * tests/test-fpending.c: Likewise.
28711         * tests/test-fprintf-posix.c: Likewise.
28712         * tests/test-fpurge.c: Likewise.
28713         * tests/test-freadable.c: Likewise.
28714         * tests/test-freadahead.c: Likewise.
28715         * tests/test-freading.c: Likewise.
28716         * tests/test-freadptr.c: Likewise.
28717         * tests/test-freadptr2.c: Likewise.
28718         * tests/test-freadseek.c: Likewise.
28719         * tests/test-freopen.c: Likewise.
28720         * tests/test-frexp.c: Likewise.
28721         * tests/test-frexpl.c: Likewise.
28722         * tests/test-fseek.c: Likewise.
28723         * tests/test-fseeko.c: Likewise.
28724         * tests/test-fstatat.c: Likewise.
28725         * tests/test-fstrcmp.c: Likewise.
28726         * tests/test-fsync.c: Likewise.
28727         * tests/test-ftell.c: Likewise.
28728         * tests/test-ftello.c: Likewise.
28729         * tests/test-func.c: Likewise.
28730         * tests/test-futimens.c: Likewise.
28731         * tests/test-fwritable.c: Likewise.
28732         * tests/test-fwriting.c: Likewise.
28733         * tests/test-getcwd.c: Likewise.
28734         * tests/test-getdate.c: Likewise.
28735         * tests/test-getdelim.c: Likewise.
28736         * tests/test-getdtablesize.c: Likewise.
28737         * tests/test-getgroups.c: Likewise.
28738         * tests/test-getline.c: Likewise.
28739         * tests/test-getndelim2.c: Likewise.
28740         * tests/test-glob.c: Likewise.
28741         * tests/test-hash.c: Likewise.
28742         * tests/test-i-ring.c: Likewise.
28743         * tests/test-iconv-utf.c: Likewise.
28744         * tests/test-iconv.c: Likewise.
28745         * tests/test-idpriv-drop.c: Likewise.
28746         * tests/test-idpriv-droptemp.c: Likewise.
28747         * tests/test-inet_ntop.c: Likewise.
28748         * tests/test-inet_pton.c: Likewise.
28749         * tests/test-isblank.c: Likewise.
28750         * tests/test-isfinite.c: Likewise.
28751         * tests/test-isinf.c: Likewise.
28752         * tests/test-isnan.c: Likewise.
28753         * tests/test-isnand.h: Likewise.
28754         * tests/test-isnanf.h: Likewise.
28755         * tests/test-isnanl.h: Likewise.
28756         * tests/test-lchown.c: Likewise.
28757         * tests/test-ldexpl.c: Likewise.
28758         * tests/test-link.c: Likewise.
28759         * tests/test-linkat.c: Likewise.
28760         * tests/test-linked_list.c: Likewise.
28761         * tests/test-linkedhash_list.c: Likewise.
28762         * tests/test-localename.c: Likewise.
28763         * tests/test-lseek.c: Likewise.
28764         * tests/test-lstat.c: Likewise.
28765         * tests/test-mbmemcasecmp.c: Likewise.
28766         * tests/test-mbmemcasecoll.c: Likewise.
28767         * tests/test-mbrtowc.c: Likewise.
28768         * tests/test-mbscasecmp.c: Likewise.
28769         * tests/test-mbscasestr1.c: Likewise.
28770         * tests/test-mbscasestr2.c: Likewise.
28771         * tests/test-mbscasestr3.c: Likewise.
28772         * tests/test-mbscasestr4.c: Likewise.
28773         * tests/test-mbschr.c: Likewise.
28774         * tests/test-mbscspn.c: Likewise.
28775         * tests/test-mbsinit.c: Likewise.
28776         * tests/test-mbsncasecmp.c: Likewise.
28777         * tests/test-mbsnrtowcs.c: Likewise.
28778         * tests/test-mbspbrk.c: Likewise.
28779         * tests/test-mbspcasecmp.c: Likewise.
28780         * tests/test-mbsrchr.c: Likewise.
28781         * tests/test-mbsrtowcs.c: Likewise.
28782         * tests/test-mbsspn.c: Likewise.
28783         * tests/test-mbsstr1.c: Likewise.
28784         * tests/test-mbsstr2.c: Likewise.
28785         * tests/test-mbsstr3.c: Likewise.
28786         * tests/test-memchr.c: Likewise.
28787         * tests/test-memchr2.c: Likewise.
28788         * tests/test-memcmp.c: Likewise.
28789         * tests/test-memmem.c: Likewise.
28790         * tests/test-memrchr.c: Likewise.
28791         * tests/test-mkdir.c: Likewise.
28792         * tests/test-mkdirat.c: Likewise.
28793         * tests/test-mkfifo.c: Likewise.
28794         * tests/test-mkfifoat.c: Likewise.
28795         * tests/test-mknod.c: Likewise.
28796         * tests/test-nanosleep.c: Likewise.
28797         * tests/test-nl_langinfo.c: Likewise.
28798         * tests/test-obstack-printf.c: Likewise.
28799         * tests/test-open.c: Likewise.
28800         * tests/test-openat.c: Likewise.
28801         * tests/test-pipe-filter-gi1.c: Likewise.
28802         * tests/test-pipe-filter-gi2-main.c: Likewise.
28803         * tests/test-pipe-filter-ii1.c: Likewise.
28804         * tests/test-pipe-filter-ii2-main.c: Likewise.
28805         * tests/test-pipe2.c: Likewise.
28806         * tests/test-popen.h: Likewise.
28807         * tests/test-posixtm.c: Likewise.
28808         * tests/test-pread.c: Likewise.
28809         * tests/test-printf-frexp.c: Likewise.
28810         * tests/test-printf-frexpl.c: Likewise.
28811         * tests/test-printf-posix.c: Likewise.
28812         * tests/test-priv-set.c: Likewise.
28813         * tests/test-quotearg.c: Likewise.
28814         * tests/test-random_r.c: Likewise.
28815         * tests/test-rawmemchr.c: Likewise.
28816         * tests/test-rbtree_list.c: Likewise.
28817         * tests/test-rbtree_oset.c: Likewise.
28818         * tests/test-rbtreehash_list.c: Likewise.
28819         * tests/test-readlink.c: Likewise.
28820         * tests/test-remove.c: Likewise.
28821         * tests/test-rename.c: Likewise.
28822         * tests/test-renameat.c: Likewise.
28823         * tests/test-rmdir.c: Likewise.
28824         * tests/test-round1.c: Likewise.
28825         * tests/test-roundf1.c: Likewise.
28826         * tests/test-roundl.c: Likewise.
28827         * tests/test-safe-alloc.c: Likewise.
28828         * tests/test-sameacls.c: Likewise.
28829         * tests/test-set-mode-acl.c: Likewise.
28830         * tests/test-setenv.c: Likewise.
28831         * tests/test-sigaction.c: Likewise.
28832         * tests/test-signbit.c: Likewise.
28833         * tests/test-sleep.c: Likewise.
28834         * tests/test-snprintf-posix.c: Likewise.
28835         * tests/test-snprintf.c: Likewise.
28836         * tests/test-sprintf-posix.c: Likewise.
28837         * tests/test-stat-time.c: Likewise.
28838         * tests/test-stat.c: Likewise.
28839         * tests/test-strcasestr.c: Likewise.
28840         * tests/test-strchrnul.c: Likewise.
28841         * tests/test-strerror.c: Likewise.
28842         * tests/test-striconv.c: Likewise.
28843         * tests/test-striconveh.c: Likewise.
28844         * tests/test-striconveha.c: Likewise.
28845         * tests/test-strsignal.c: Likewise.
28846         * tests/test-strstr.c: Likewise.
28847         * tests/test-strtod.c: Likewise.
28848         * tests/test-strverscmp.c: Likewise.
28849         * tests/test-symlink.c: Likewise.
28850         * tests/test-symlinkat.c: Likewise.
28851         * tests/test-trunc1.c: Likewise.
28852         * tests/test-trunc2.c: Likewise.
28853         * tests/test-truncf1.c: Likewise.
28854         * tests/test-truncf2.c: Likewise.
28855         * tests/test-truncl.c: Likewise.
28856         * tests/test-uname.c: Likewise.
28857         * tests/test-unlink.c: Likewise.
28858         * tests/test-unlinkat.c: Likewise.
28859         * tests/test-unsetenv.c: Likewise.
28860         * tests/test-usleep.c: Likewise.
28861         * tests/test-utimens.c: Likewise.
28862         * tests/test-utimensat.c: Likewise.
28863         * tests/test-vasnprintf-posix.c: Likewise.
28864         * tests/test-vasnprintf-posix2.c: Likewise.
28865         * tests/test-vasnprintf.c: Likewise.
28866         * tests/test-vasprintf-posix.c: Likewise.
28867         * tests/test-vasprintf.c: Likewise.
28868         * tests/test-vdprintf-posix.c: Likewise.
28869         * tests/test-vfprintf-posix.c: Likewise.
28870         * tests/test-vprintf-posix.c: Likewise.
28871         * tests/test-vsnprintf-posix.c: Likewise.
28872         * tests/test-vsnprintf.c: Likewise.
28873         * tests/test-vsprintf-posix.c: Likewise.
28874         * tests/test-wcrtomb.c: Likewise.
28875         * tests/test-wcsnrtombs.c: Likewise.
28876         * tests/test-wcsrtombs.c: Likewise.
28877         * tests/test-wctype.c: Likewise.
28878         * tests/test-wcwidth.c: Likewise.
28879         * tests/test-xfprintf-posix.c: Likewise.
28880         * tests/test-xmemdup0.c: Likewise.
28881         * tests/test-xprintf-posix.c: Likewise.
28882         * tests/test-xvasprintf.c: Likewise.
28883         * tests/unicase/test-locale-language.c: Likewise.
28884         * tests/unicase/test-mapping-part1.h: Likewise.
28885         * tests/unicase/test-predicate-part1.h: Likewise.
28886         * tests/unicase/test-u8-casecmp.c: Likewise.
28887         * tests/unicase/test-u8-casecoll.c: Likewise.
28888         * tests/unicase/test-u8-casefold.c: Likewise.
28889         * tests/unicase/test-u8-is-cased.c: Likewise.
28890         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28891         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28892         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28893         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28894         * tests/unicase/test-u8-tolower.c: Likewise.
28895         * tests/unicase/test-u8-totitle.c: Likewise.
28896         * tests/unicase/test-u8-toupper.c: Likewise.
28897         * tests/unicase/test-u16-casecmp.c: Likewise.
28898         * tests/unicase/test-u16-casecoll.c: Likewise.
28899         * tests/unicase/test-u16-casefold.c: Likewise.
28900         * tests/unicase/test-u16-is-cased.c: Likewise.
28901         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28902         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28903         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28904         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28905         * tests/unicase/test-u16-tolower.c: Likewise.
28906         * tests/unicase/test-u16-totitle.c: Likewise.
28907         * tests/unicase/test-u16-toupper.c: Likewise.
28908         * tests/unicase/test-u32-casecmp.c: Likewise.
28909         * tests/unicase/test-u32-casecoll.c: Likewise.
28910         * tests/unicase/test-u32-casefold.c: Likewise.
28911         * tests/unicase/test-u32-is-cased.c: Likewise.
28912         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28913         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28914         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28915         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28916         * tests/unicase/test-u32-tolower.c: Likewise.
28917         * tests/unicase/test-u32-totitle.c: Likewise.
28918         * tests/unicase/test-u32-toupper.c: Likewise.
28919         * tests/unicase/test-ulc-casecmp.c: Likewise.
28920         * tests/unicase/test-ulc-casecoll.c: Likewise.
28921         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28922         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28923         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28924         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28925         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28926         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28927         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28928         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28929         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28930         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28931         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28932         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28933         * tests/unictype/test-bidi_byname.c: Likewise.
28934         * tests/unictype/test-bidi_name.c: Likewise.
28935         * tests/unictype/test-bidi_of.c: Likewise.
28936         * tests/unictype/test-bidi_test.c: Likewise.
28937         * tests/unictype/test-block_list.c: Likewise.
28938         * tests/unictype/test-block_of.c: Likewise.
28939         * tests/unictype/test-block_test.c: Likewise.
28940         * tests/unictype/test-categ_and.c: Likewise.
28941         * tests/unictype/test-categ_and_not.c: Likewise.
28942         * tests/unictype/test-categ_byname.c: Likewise.
28943         * tests/unictype/test-categ_name.c: Likewise.
28944         * tests/unictype/test-categ_none.c: Likewise.
28945         * tests/unictype/test-categ_of.c: Likewise.
28946         * tests/unictype/test-categ_or.c: Likewise.
28947         * tests/unictype/test-categ_test_withtable.c: Likewise.
28948         * tests/unictype/test-combining.c: Likewise.
28949         * tests/unictype/test-decdigit.c: Likewise.
28950         * tests/unictype/test-digit.c: Likewise.
28951         * tests/unictype/test-mirror.c: Likewise.
28952         * tests/unictype/test-numeric.c: Likewise.
28953         * tests/unictype/test-pr_byname.c: Likewise.
28954         * tests/unictype/test-pr_test.c: Likewise.
28955         * tests/unictype/test-predicate-part1.h: Likewise.
28956         * tests/unictype/test-scripts.c: Likewise.
28957         * tests/unictype/test-sy_c_ident.c: Likewise.
28958         * tests/unictype/test-sy_java_ident.c: Likewise.
28959         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28960         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28961         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28962         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28963         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28964         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28965         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28966         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28967         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28968         * tests/uninorm/test-compat-decomposition.c: Likewise.
28969         * tests/uninorm/test-composition.c: Likewise.
28970         * tests/uninorm/test-decomposing-form.c: Likewise.
28971         * tests/uninorm/test-decomposition.c: Likewise.
28972         * tests/uninorm/test-u8-nfc.c: Likewise.
28973         * tests/uninorm/test-u8-nfd.c: Likewise.
28974         * tests/uninorm/test-u8-nfkc.c: Likewise.
28975         * tests/uninorm/test-u8-nfkd.c: Likewise.
28976         * tests/uninorm/test-u8-normcmp.c: Likewise.
28977         * tests/uninorm/test-u8-normcoll.c: Likewise.
28978         * tests/uninorm/test-u16-nfc.c: Likewise.
28979         * tests/uninorm/test-u16-nfd.c: Likewise.
28980         * tests/uninorm/test-u16-nfkc.c: Likewise.
28981         * tests/uninorm/test-u16-nfkd.c: Likewise.
28982         * tests/uninorm/test-u16-normcmp.c: Likewise.
28983         * tests/uninorm/test-u16-normcoll.c: Likewise.
28984         * tests/uninorm/test-u32-nfc.c: Likewise.
28985         * tests/uninorm/test-u32-nfd.c: Likewise.
28986         * tests/uninorm/test-u32-nfkc.c: Likewise.
28987         * tests/uninorm/test-u32-nfkd.c: Likewise.
28988         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28989         * tests/uninorm/test-u32-normcmp.c: Likewise.
28990         * tests/uninorm/test-u32-normcoll.c: Likewise.
28991         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28992         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28993         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28994         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28995         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28996         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28997         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28998         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28999         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29000         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29001         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29002         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29003         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29004         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29005         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29006         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29007         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29008         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29009         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29010         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29011         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29012         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29013         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29014         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29015         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29016         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29017         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29018         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29019         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29020         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29021         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29022         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29023         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29024         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29025         * tests/uniwidth/test-u8-width.c: Likewise.
29026         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29027         * tests/uniwidth/test-u16-width.c: Likewise.
29028         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29029         * tests/uniwidth/test-u32-width.c: Likewise.
29030         * tests/uniwidth/test-uc_width.c: Likewise.
29031         * tests/uniwidth/test-uc_width2.c: Likewise.
29032         * modules/acl-tests (Files): Add tests/macros.h.
29033         * modules/areadlink-tests (Files): Likewise.
29034         * modules/areadlink-with-size-tests (Files): Likewise.
29035         * modules/areadlinkat-tests (Files): Likewise.
29036         * modules/areadlinkat-with-size-tests (Files): Likewise.
29037         * modules/argmatch-tests (Files): Likewise.
29038         * modules/argv-iter-tests (Files): Likewise.
29039         * modules/array-list-tests (Files): Likewise.
29040         * modules/array-mergesort-tests (Files): Likewise.
29041         * modules/array-oset-tests (Files): Likewise.
29042         * modules/avltree-list-tests (Files): Likewise.
29043         * modules/avltree-oset-tests (Files): Likewise.
29044         * modules/avltreehash-list-tests (Files): Likewise.
29045         * modules/base64-tests (Files): Likewise.
29046         * modules/binary-io-tests (Files): Likewise.
29047         * modules/bitrotate-tests (Files): Likewise.
29048         * modules/btowc-tests (Files): Likewise.
29049         * modules/byteswap-tests (Files): Likewise.
29050         * modules/c-ctype-tests (Files): Likewise.
29051         * modules/c-stack-tests (Files): Likewise.
29052         * modules/c-strcase-tests (Files): Likewise.
29053         * modules/c-strcasestr-tests (Files): Likewise.
29054         * modules/c-strstr-tests (Files): Likewise.
29055         * modules/canonicalize-lgpl-tests (Files): Likewise.
29056         * modules/canonicalize-tests (Files): Likewise.
29057         * modules/carray-list-tests (Files): Likewise.
29058         * modules/ceilf-tests (Files): Likewise.
29059         * modules/ceill-tests (Files): Likewise.
29060         * modules/chown-tests (Files): Likewise.
29061         * modules/cloexec-tests (Files): Likewise.
29062         * modules/copy-file-tests (Files): Likewise.
29063         * modules/count-one-bits-tests (Files): Likewise.
29064         * modules/dprintf-posix-tests (Files): Likewise.
29065         * modules/dup2-tests (Files): Likewise.
29066         * modules/dup3-tests (Files): Likewise.
29067         * modules/duplocale-tests (Files): Likewise.
29068         * modules/fbufmode-tests (Files): Likewise.
29069         * modules/fchdir-tests (Files): Likewise.
29070         * modules/fcntl-safer-tests (Files): Likewise.
29071         * modules/fcntl-tests (Files): Likewise.
29072         * modules/fdopendir-tests (Files): Likewise.
29073         * modules/fdutimensat-tests (Files): Likewise.
29074         * modules/fflush-tests (Files): Likewise.
29075         * modules/filevercmp-tests (Files): Likewise.
29076         * modules/flock-tests (Files): Likewise.
29077         * modules/floorf-tests (Files): Likewise.
29078         * modules/floorl-tests (Files): Likewise.
29079         * modules/fnmatch-tests (Files): Likewise.
29080         * modules/fopen-safer-tests (Files): Likewise.
29081         * modules/fopen-tests (Files): Likewise.
29082         * modules/fpending-tests (Files): Likewise.
29083         * modules/fprintf-posix-tests (Files): Likewise.
29084         * modules/fpurge-tests (Files): Likewise.
29085         * modules/freadable-tests (Files): Likewise.
29086         * modules/freadahead-tests (Files): Likewise.
29087         * modules/freading-tests (Files): Likewise.
29088         * modules/freadptr-tests (Files): Likewise.
29089         * modules/freadseek-tests (Files): Likewise.
29090         * modules/freopen-tests (Files): Likewise.
29091         * modules/frexp-nolibm-tests (Files): Likewise.
29092         * modules/frexp-tests (Files): Likewise.
29093         * modules/frexpl-nolibm-tests (Files): Likewise.
29094         * modules/frexpl-tests (Files): Likewise.
29095         * modules/fseek-tests (Files): Likewise.
29096         * modules/fseeko-tests (Files): Likewise.
29097         * modules/fstrcmp-tests (Files): Likewise.
29098         * modules/fsync-tests (Files): Likewise.
29099         * modules/ftell-tests (Files): Likewise.
29100         * modules/ftello-tests (Files): Likewise.
29101         * modules/func-tests (Files): Likewise.
29102         * modules/futimens-tests (Files): Likewise.
29103         * modules/fwritable-tests (Files): Likewise.
29104         * modules/fwriting-tests (Files): Likewise.
29105         * modules/getcwd-tests (Files): Likewise.
29106         * modules/getdate-tests (Files): Likewise.
29107         * modules/getdelim-tests (Files): Likewise.
29108         * modules/getdtablesize-tests (Files): Likewise.
29109         * modules/getgroups-tests (Files): Likewise.
29110         * modules/getline-tests (Files): Likewise.
29111         * modules/getndelim2-tests (Files): Likewise.
29112         * modules/glob-tests (Files): Likewise.
29113         * modules/hash-tests (Files): Likewise.
29114         * modules/i-ring-tests (Files): Likewise.
29115         * modules/iconv-tests (Files): Likewise.
29116         * modules/iconv_open-utf-tests (Files): Likewise.
29117         * modules/idpriv-drop-tests (Files): Likewise.
29118         * modules/idpriv-droptemp-tests (Files): Likewise.
29119         * modules/inet_ntop-tests (Files): Likewise.
29120         * modules/inet_pton-tests (Files): Likewise.
29121         * modules/isblank-tests (Files): Likewise.
29122         * modules/isfinite-tests (Files): Likewise.
29123         * modules/isinf-tests (Files): Likewise.
29124         * modules/isnan-tests (Files): Likewise.
29125         * modules/isnand-nolibm-tests (Files): Likewise.
29126         * modules/isnand-tests (Files): Likewise.
29127         * modules/isnanf-nolibm-tests (Files): Likewise.
29128         * modules/isnanf-tests (Files): Likewise.
29129         * modules/isnanl-nolibm-tests (Files): Likewise.
29130         * modules/isnanl-tests (Files): Likewise.
29131         * modules/lchown-tests (Files): Likewise.
29132         * modules/ldexpl-tests (Files): Likewise.
29133         * modules/link-tests (Files): Likewise.
29134         * modules/linkat-tests (Files): Likewise.
29135         * modules/linked-list-tests (Files): Likewise.
29136         * modules/linkedhash-list-tests (Files): Likewise.
29137         * modules/localename-tests (Files): Likewise.
29138         * modules/lseek-tests (Files): Likewise.
29139         * modules/lstat-tests (Files): Likewise.
29140         * modules/mbmemcasecmp-tests (Files): Likewise.
29141         * modules/mbmemcasecoll-tests (Files): Likewise.
29142         * modules/mbrtowc-tests (Files): Likewise.
29143         * modules/mbscasecmp-tests (Files): Likewise.
29144         * modules/mbscasestr-tests (Files): Likewise.
29145         * modules/mbschr-tests (Files): Likewise.
29146         * modules/mbscspn-tests (Files): Likewise.
29147         * modules/mbsinit-tests (Files): Likewise.
29148         * modules/mbsncasecmp-tests (Files): Likewise.
29149         * modules/mbsnrtowcs-tests (Files): Likewise.
29150         * modules/mbspbrk-tests (Files): Likewise.
29151         * modules/mbspcasecmp-tests (Files): Likewise.
29152         * modules/mbsrchr-tests (Files): Likewise.
29153         * modules/mbsrtowcs-tests (Files): Likewise.
29154         * modules/mbsspn-tests (Files): Likewise.
29155         * modules/mbsstr-tests (Files): Likewise.
29156         * modules/memchr-tests (Files): Likewise.
29157         * modules/memchr2-tests (Files): Likewise.
29158         * modules/memcmp-tests (Files): Likewise.
29159         * modules/memmem-tests (Files): Likewise.
29160         * modules/memrchr-tests (Files): Likewise.
29161         * modules/mkdir-tests (Files): Likewise.
29162         * modules/mkfifo-tests (Files): Likewise.
29163         * modules/mkfifoat-tests (Files): Likewise.
29164         * modules/mknod-tests (Files): Likewise.
29165         * modules/nanosleep-tests (Files): Likewise.
29166         * modules/nl_langinfo-tests (Files): Likewise.
29167         * modules/obstack-printf-tests (Files): Likewise.
29168         * modules/open-tests (Files): Likewise.
29169         * modules/openat-tests (Files): Likewise.
29170         * modules/pipe-filter-gi-tests (Files): Likewise.
29171         * modules/pipe-filter-ii-tests (Files): Likewise.
29172         * modules/pipe2-tests (Files): Likewise.
29173         * modules/popen-safer-tests (Files): Likewise.
29174         * modules/popen-tests (Files): Likewise.
29175         * modules/posixtm-tests (Files): Likewise.
29176         * modules/pread-tests (Files): Likewise.
29177         * modules/printf-frexp-tests (Files): Likewise.
29178         * modules/printf-frexpl-tests (Files): Likewise.
29179         * modules/printf-posix-tests (Files): Likewise.
29180         * modules/priv-set-tests (Files): Likewise.
29181         * modules/quotearg-tests (Files): Likewise.
29182         * modules/random_r-tests (Files): Likewise.
29183         * modules/rawmemchr-tests (Files): Likewise.
29184         * modules/rbtree-list-tests (Files): Likewise.
29185         * modules/rbtree-oset-tests (Files): Likewise.
29186         * modules/rbtreehash-list-tests (Files): Likewise.
29187         * modules/readlink-tests (Files): Likewise.
29188         * modules/remove-tests (Files): Likewise.
29189         * modules/rename-tests (Files): Likewise.
29190         * modules/renameat-tests (Files): Likewise.
29191         * modules/rmdir-tests (Files): Likewise.
29192         * modules/round-tests (Files): Likewise.
29193         * modules/roundf-tests (Files): Likewise.
29194         * modules/roundl-tests (Files): Likewise.
29195         * modules/safe-alloc-tests (Files): Likewise.
29196         * modules/setenv-tests (Files): Likewise.
29197         * modules/sigaction-tests (Files): Likewise.
29198         * modules/signbit-tests (Files): Likewise.
29199         * modules/sleep-tests (Files): Likewise.
29200         * modules/snprintf-posix-tests (Files): Likewise.
29201         * modules/snprintf-tests (Files): Likewise.
29202         * modules/sprintf-posix-tests (Files): Likewise.
29203         * modules/stat-tests (Files): Likewise.
29204         * modules/stat-time-tests (Files): Likewise.
29205         * modules/strcasestr-tests (Files): Likewise.
29206         * modules/strchrnul-tests (Files): Likewise.
29207         * modules/strerror-tests (Files): Likewise.
29208         * modules/striconv-tests (Files): Likewise.
29209         * modules/striconveh-tests (Files): Likewise.
29210         * modules/striconveha-tests (Files): Likewise.
29211         * modules/strsignal-tests (Files): Likewise.
29212         * modules/strstr-tests (Files): Likewise.
29213         * modules/strtod-tests (Files): Likewise.
29214         * modules/strverscmp-tests (Files): Likewise.
29215         * modules/symlink-tests (Files): Likewise.
29216         * modules/symlinkat-tests (Files): Likewise.
29217         * modules/trunc-tests (Files): Likewise.
29218         * modules/truncf-tests (Files): Likewise.
29219         * modules/truncl-tests (Files): Likewise.
29220         * modules/uname-tests (Files): Likewise.
29221         * modules/unicase/cased-tests (Files): Likewise.
29222         * modules/unicase/ignorable-tests (Files): Likewise.
29223         * modules/unicase/locale-language-tests (Files): Likewise.
29224         * modules/unicase/tolower-tests (Files): Likewise.
29225         * modules/unicase/totitle-tests (Files): Likewise.
29226         * modules/unicase/toupper-tests (Files): Likewise.
29227         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29228         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29229         * modules/unicase/u8-casefold-tests (Files): Likewise.
29230         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29231         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29232         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29233         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29234         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29235         * modules/unicase/u8-tolower-tests (Files): Likewise.
29236         * modules/unicase/u8-totitle-tests (Files): Likewise.
29237         * modules/unicase/u8-toupper-tests (Files): Likewise.
29238         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29239         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29240         * modules/unicase/u16-casefold-tests (Files): Likewise.
29241         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29242         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29243         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29244         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29245         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29246         * modules/unicase/u16-tolower-tests (Files): Likewise.
29247         * modules/unicase/u16-totitle-tests (Files): Likewise.
29248         * modules/unicase/u16-toupper-tests (Files): Likewise.
29249         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29250         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29251         * modules/unicase/u32-casefold-tests (Files): Likewise.
29252         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29253         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29254         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29255         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29256         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29257         * modules/unicase/u32-tolower-tests (Files): Likewise.
29258         * modules/unicase/u32-totitle-tests (Files): Likewise.
29259         * modules/unicase/u32-toupper-tests (Files): Likewise.
29260         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29261         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29262         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29263         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29264         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29265         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29266         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29267         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29268         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29269         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29270         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29271         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29272         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29273         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29274         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29275         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29276         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29277         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29278         * modules/unictype/block-list-tests (Files): Likewise.
29279         * modules/unictype/block-of-tests (Files): Likewise.
29280         * modules/unictype/block-test-tests (Files): Likewise.
29281         * modules/unictype/category-C-tests (Files): Likewise.
29282         * modules/unictype/category-Cc-tests (Files): Likewise.
29283         * modules/unictype/category-Cf-tests (Files): Likewise.
29284         * modules/unictype/category-Cn-tests (Files): Likewise.
29285         * modules/unictype/category-Co-tests (Files): Likewise.
29286         * modules/unictype/category-Cs-tests (Files): Likewise.
29287         * modules/unictype/category-L-tests (Files): Likewise.
29288         * modules/unictype/category-Ll-tests (Files): Likewise.
29289         * modules/unictype/category-Lm-tests (Files): Likewise.
29290         * modules/unictype/category-Lo-tests (Files): Likewise.
29291         * modules/unictype/category-Lt-tests (Files): Likewise.
29292         * modules/unictype/category-Lu-tests (Files): Likewise.
29293         * modules/unictype/category-M-tests (Files): Likewise.
29294         * modules/unictype/category-Mc-tests (Files): Likewise.
29295         * modules/unictype/category-Me-tests (Files): Likewise.
29296         * modules/unictype/category-Mn-tests (Files): Likewise.
29297         * modules/unictype/category-N-tests (Files): Likewise.
29298         * modules/unictype/category-Nd-tests (Files): Likewise.
29299         * modules/unictype/category-Nl-tests (Files): Likewise.
29300         * modules/unictype/category-No-tests (Files): Likewise.
29301         * modules/unictype/category-P-tests (Files): Likewise.
29302         * modules/unictype/category-Pc-tests (Files): Likewise.
29303         * modules/unictype/category-Pd-tests (Files): Likewise.
29304         * modules/unictype/category-Pe-tests (Files): Likewise.
29305         * modules/unictype/category-Pf-tests (Files): Likewise.
29306         * modules/unictype/category-Pi-tests (Files): Likewise.
29307         * modules/unictype/category-Po-tests (Files): Likewise.
29308         * modules/unictype/category-Ps-tests (Files): Likewise.
29309         * modules/unictype/category-S-tests (Files): Likewise.
29310         * modules/unictype/category-Sc-tests (Files): Likewise.
29311         * modules/unictype/category-Sk-tests (Files): Likewise.
29312         * modules/unictype/category-Sm-tests (Files): Likewise.
29313         * modules/unictype/category-So-tests (Files): Likewise.
29314         * modules/unictype/category-Z-tests (Files): Likewise.
29315         * modules/unictype/category-Zl-tests (Files): Likewise.
29316         * modules/unictype/category-Zp-tests (Files): Likewise.
29317         * modules/unictype/category-Zs-tests (Files): Likewise.
29318         * modules/unictype/category-and-not-tests (Files): Likewise.
29319         * modules/unictype/category-and-tests (Files): Likewise.
29320         * modules/unictype/category-byname-tests (Files): Likewise.
29321         * modules/unictype/category-name-tests (Files): Likewise.
29322         * modules/unictype/category-none-tests (Files): Likewise.
29323         * modules/unictype/category-of-tests (Files): Likewise.
29324         * modules/unictype/category-or-tests (Files): Likewise.
29325         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29326         * modules/unictype/combining-class-tests (Files): Likewise.
29327         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29328         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29329         * modules/unictype/ctype-blank-tests (Files): Likewise.
29330         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29331         * modules/unictype/ctype-digit-tests (Files): Likewise.
29332         * modules/unictype/ctype-graph-tests (Files): Likewise.
29333         * modules/unictype/ctype-lower-tests (Files): Likewise.
29334         * modules/unictype/ctype-print-tests (Files): Likewise.
29335         * modules/unictype/ctype-punct-tests (Files): Likewise.
29336         * modules/unictype/ctype-space-tests (Files): Likewise.
29337         * modules/unictype/ctype-upper-tests (Files): Likewise.
29338         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29339         * modules/unictype/decimal-digit-tests (Files): Likewise.
29340         * modules/unictype/digit-tests (Files): Likewise.
29341         * modules/unictype/mirror-tests (Files): Likewise.
29342         * modules/unictype/numeric-tests (Files): Likewise.
29343         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29344         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29345         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29346         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29347         Likewise.
29348         * modules/unictype/property-bidi-block-separator-tests (Files):
29349         Likewise.
29350         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29351         Likewise.
29352         * modules/unictype/property-bidi-common-separator-tests (Files):
29353         Likewise.
29354         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29355         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29356         Likewise.
29357         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29358         Likewise.
29359         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29360         Likewise.
29361         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29362         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29363         Likewise.
29364         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29365         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29366         Likewise.
29367         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29368         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29369         * modules/unictype/property-bidi-segment-separator-tests (Files):
29370         Likewise.
29371         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29372         * modules/unictype/property-byname-tests (Files): Likewise.
29373         * modules/unictype/property-combining-tests (Files): Likewise.
29374         * modules/unictype/property-composite-tests (Files): Likewise.
29375         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29376         * modules/unictype/property-dash-tests (Files): Likewise.
29377         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29378         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29379         Likewise.
29380         * modules/unictype/property-deprecated-tests (Files): Likewise.
29381         * modules/unictype/property-diacritic-tests (Files): Likewise.
29382         * modules/unictype/property-extender-tests (Files): Likewise.
29383         * modules/unictype/property-format-control-tests (Files): Likewise.
29384         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29385         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29386         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29387         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29388         * modules/unictype/property-hyphen-tests (Files): Likewise.
29389         * modules/unictype/property-id-continue-tests (Files): Likewise.
29390         * modules/unictype/property-id-start-tests (Files): Likewise.
29391         * modules/unictype/property-ideographic-tests (Files): Likewise.
29392         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29393         * modules/unictype/property-ids-trinary-operator-tests (Files):
29394         Likewise.
29395         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29396         * modules/unictype/property-iso-control-tests (Files): Likewise.
29397         * modules/unictype/property-join-control-tests (Files): Likewise.
29398         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29399         * modules/unictype/property-line-separator-tests (Files): Likewise.
29400         * modules/unictype/property-logical-order-exception-tests (Files):
29401         Likewise.
29402         * modules/unictype/property-lowercase-tests (Files): Likewise.
29403         * modules/unictype/property-math-tests (Files): Likewise.
29404         * modules/unictype/property-non-break-tests (Files): Likewise.
29405         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29406         * modules/unictype/property-numeric-tests (Files): Likewise.
29407         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29408         * modules/unictype/property-other-default-ignorable-code-point-tests
29409         (Files): Likewise.
29410         * modules/unictype/property-other-grapheme-extend-tests (Files):
29411         Likewise.
29412         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29413         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29414         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29415         * modules/unictype/property-other-math-tests (Files): Likewise.
29416         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29417         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29418         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29419         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29420         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29421         * modules/unictype/property-private-use-tests (Files): Likewise.
29422         * modules/unictype/property-punctuation-tests (Files): Likewise.
29423         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29424         * modules/unictype/property-radical-tests (Files): Likewise.
29425         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29426         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29427         * modules/unictype/property-space-tests (Files): Likewise.
29428         * modules/unictype/property-terminal-punctuation-tests (Files):
29429         Likewise.
29430         * modules/unictype/property-test-tests (Files): Likewise.
29431         * modules/unictype/property-titlecase-tests (Files): Likewise.
29432         * modules/unictype/property-unassigned-code-value-tests (Files):
29433         Likewise.
29434         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29435         * modules/unictype/property-uppercase-tests (Files): Likewise.
29436         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29437         * modules/unictype/property-white-space-tests (Files): Likewise.
29438         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29439         * modules/unictype/property-xid-start-tests (Files): Likewise.
29440         * modules/unictype/property-zero-width-tests (Files): Likewise.
29441         * modules/unictype/scripts-tests (Files): Likewise.
29442         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29443         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29444         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29445         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29446         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29447         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29448         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29449         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29450         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29451         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29452         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29453         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29454         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29455         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29456         * modules/uninorm/composition-tests (Files): Likewise.
29457         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29458         * modules/uninorm/decomposition-tests (Files): Likewise.
29459         * modules/uninorm/filter-tests (Files): Likewise.
29460         * modules/uninorm/nfc-tests (Files): Likewise.
29461         * modules/uninorm/nfd-tests (Files): Likewise.
29462         * modules/uninorm/nfkc-tests (Files): Likewise.
29463         * modules/uninorm/nfkd-tests (Files): Likewise.
29464         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29465         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29466         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29467         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29468         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29469         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29470         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29471         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29472         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29473         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29474         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29475         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29476         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29477         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29478         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29479         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29480         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29481         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29482         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29483         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29484         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29485         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29486         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29487         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29488         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29489         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29490         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29491         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29492         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29493         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29494         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29495         * modules/uniwidth/u8-width-tests (Files): Likewise.
29496         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29497         * modules/uniwidth/u16-width-tests (Files): Likewise.
29498         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29499         * modules/uniwidth/u32-width-tests (Files): Likewise.
29500         * modules/uniwidth/width-tests (Files): Likewise.
29501         * modules/unlink-tests (Files): Likewise.
29502         * modules/unsetenv-tests (Files): Likewise.
29503         * modules/usleep-tests (Files): Likewise.
29504         * modules/utimens-tests (Files): Likewise.
29505         * modules/utimensat-tests (Files): Likewise.
29506         * modules/vasnprintf-posix-tests (Files): Likewise.
29507         * modules/vasnprintf-tests (Files): Likewise.
29508         * modules/vasprintf-posix-tests (Files): Likewise.
29509         * modules/vasprintf-tests (Files): Likewise.
29510         * modules/vdprintf-posix-tests (Files): Likewise.
29511         * modules/vfprintf-posix-tests (Files): Likewise.
29512         * modules/vprintf-posix-tests (Files): Likewise.
29513         * modules/vsnprintf-posix-tests (Files): Likewise.
29514         * modules/vsnprintf-tests (Files): Likewise.
29515         * modules/vsprintf-posix-tests (Files): Likewise.
29516         * modules/wcrtomb-tests (Files): Likewise.
29517         * modules/wcsnrtombs-tests (Files): Likewise.
29518         * modules/wcsrtombs-tests (Files): Likewise.
29519         * modules/wctype-tests (Files): Likewise.
29520         * modules/wcwidth-tests (Files): Likewise.
29521         * modules/xmemdup0-tests (Files): Likewise.
29522         * modules/xprintf-posix-tests (Files): Likewise.
29523         * modules/xvasprintf-tests (Files): Likewise.
29524
29525 2009-12-24  Eric Blake  <ebb9@byu.net>
29526
29527         test-nanosleep: fix typo
29528         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29529         patch.
29530         Reported by Bruno Haible.
29531
29532 2009-12-24  Bruno Haible  <bruno@clisp.org>
29533
29534         Reduce namespace pollution on glibc systems.
29535         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29536         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29537         systems.
29538         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29539         <getopt.h> on glibc systems.
29540         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29541         systems.
29542         * lib/fcntl.c: Include <unistd.h> here instead.
29543
29544 2009-12-24  Bruno Haible  <bruno@clisp.org>
29545
29546         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29547
29548 2009-12-24  Eric Blake  <ebb9@byu.net>
29549
29550         tests: add signature checks
29551         * tests/signature.h (SIGNATURE_CHECK): New file.
29552         * modules/atexit-tests (Files): Use it.
29553         * modules/btowc-tests (Files): Likewise.
29554         * modules/canonicalize-lgpl-tests (Files): Likewise.
29555         * modules/ceilf-tests (Files): Likewise.
29556         * modules/ceill-tests (Files): Likewise.
29557         * modules/chown-tests (Files): Likewise.
29558         * modules/dprintf-posix-tests (Files): Likewise.
29559         * modules/dup2-tests (Files): Likewise.
29560         * modules/dup3-tests (Files): Likewise.
29561         * modules/duplocale-tests (Files): Likewise.
29562         * modules/fchdir-tests (Files): Likewise.
29563         * modules/fcntl-tests (Files): Likewise.
29564         * modules/fdopendir-tests (Files): Likewise.
29565         * modules/fflush-tests (Files): Likewise.
29566         * modules/flock-tests (Files): Likewise.
29567         * modules/floorf-tests (Files): Likewise.
29568         * modules/floorl-tests (Files): Likewise.
29569         * modules/fnmatch-tests (Files): Likewise.
29570         * modules/fopen-tests (Files): Likewise.
29571         * modules/fprintf-posix-tests (Files): Likewise.
29572         * modules/freopen-tests (Files): Likewise.
29573         * modules/frexp-nolibm-tests (Files): Likewise.
29574         * modules/frexp-tests (Files): Likewise.
29575         * modules/frexpl-nolibm-tests (Files): Likewise.
29576         * modules/frexpl-tests (Files): Likewise.
29577         * modules/fseek-tests (Files): Likewise.
29578         * modules/fseeko-tests (Files): Likewise.
29579         * modules/fsync-tests (Files): Likewise.
29580         * modules/ftell-tests (Files): Likewise.
29581         * modules/ftello-tests (Files): Likewise.
29582         * modules/futimens-tests (Files): Likewise.
29583         * modules/getaddrinfo-tests (Files): Likewise.
29584         * modules/getcwd-tests (Files): Likewise.
29585         * modules/getdelim-tests (Files): Likewise.
29586         * modules/getdtablesize-tests (Files): Likewise.
29587         * modules/getgroups-tests (Files): Likewise.
29588         * modules/gethostname-tests (Files): Likewise.
29589         * modules/getline-tests (Files): Likewise.
29590         * modules/getopt-posix-tests (Files): Likewise.
29591         * modules/gettimeofday-tests (Files): Likewise.
29592         * modules/glob-tests (Files): Likewise.
29593         * modules/iconv-tests (Files): Likewise.
29594         * modules/inet_ntop-tests (Files): Likewise.
29595         * modules/inet_pton-tests (Files): Likewise.
29596         * modules/isblank-tests (Files): Likewise.
29597         * modules/lchown-tests (Files): Likewise.
29598         * modules/ldexpl-tests (Files): Likewise.
29599         * modules/link-tests (Files): Likewise.
29600         * modules/linkat-tests (Files): Likewise.
29601         * modules/lseek-tests (Files): Likewise.
29602         * modules/lstat-tests (Files): Likewise.
29603         * modules/mbrtowc-tests (Files): Likewise.
29604         * modules/mbsinit-tests (Files): Likewise.
29605         * modules/mbsnrtowcs-tests (Files): Likewise.
29606         * modules/mbsrtowcs-tests (Files): Likewise.
29607         * modules/memchr-tests (Files): Likewise.
29608         * modules/memcmp-tests (Files): Likewise.
29609         * modules/memmem-tests (Files): Likewise.
29610         * modules/memrchr-tests (Files): Likewise.
29611         * modules/mkdir-tests (Files): Likewise.
29612         * modules/mkfifo-tests (Files): Likewise.
29613         * modules/mkfifoat-tests (Files): Likewise.
29614         * modules/mknod-tests (Files): Likewise.
29615         * modules/nanosleep-tests (Files): Likewise.
29616         * modules/nl_langinfo-tests (Files): Likewise.
29617         * modules/obstack-printf-tests (Files): Likewise.
29618         * modules/open-tests (Files): Likewise.
29619         * modules/openat-tests (Files): Likewise.
29620         * modules/perror-tests (Files): Likewise.
29621         * modules/pipe2-tests (Files): Likewise.
29622         * modules/poll-tests (Files): Likewise.
29623         * modules/popen-tests (Files): Likewise.
29624         * modules/posix_spawn-tests (Files): Likewise.
29625         * modules/posix_spawnp-tests (Files): Likewise.
29626         * modules/pread-tests (Files): Likewise.
29627         * modules/printf-posix-tests (Files): Likewise.
29628         * modules/pty-tests (Files): Likewise.
29629         * modules/random_r-tests (Files): Likewise.
29630         * modules/rawmemchr-tests (Files): Likewise.
29631         * modules/readlink-tests (Files): Likewise.
29632         * modules/remove-tests (Files): Likewise.
29633         * modules/rename-tests (Files): Likewise.
29634         * modules/renameat-tests (Files): Likewise.
29635         * modules/rmdir-tests (Files): Likewise.
29636         * modules/round-tests (Files): Likewise.
29637         * modules/roundf-tests (Files): Likewise.
29638         * modules/roundl-tests (Files): Likewise.
29639         * modules/select-tests (Files): Likewise.
29640         * modules/setenv-tests (Files): Likewise.
29641         * modules/sigaction-tests (Files): Likewise.
29642         * modules/sleep-tests (Files): Likewise.
29643         * modules/snprintf-posix-tests (Files): Likewise.
29644         * modules/snprintf-tests (Files): Likewise.
29645         * modules/sprintf-posix-tests (Files): Likewise.
29646         * modules/stat-tests (Files): Likewise.
29647         * modules/strcasestr-tests (Files): Likewise.
29648         * modules/strchrnul-tests (Files): Likewise.
29649         * modules/strerror-tests (Files): Likewise.
29650         * modules/strsignal-tests (Files): Likewise.
29651         * modules/strstr-tests (Files): Likewise.
29652         * modules/strtod-tests (Files): Likewise.
29653         * modules/strverscmp-tests (Files): Likewise.
29654         * modules/symlink-tests (Files): Likewise.
29655         * modules/symlinkat-tests (Files): Likewise.
29656         * modules/times-tests (Files): Likewise.
29657         * modules/trunc-tests (Files): Likewise.
29658         * modules/truncf-tests (Files): Likewise.
29659         * modules/truncl-tests (Files): Likewise.
29660         * modules/tsearch-tests (Files): Likewise.
29661         * modules/uname-tests (Files): Likewise.
29662         * modules/unlink-tests (Files): Likewise.
29663         * modules/unsetenv-tests (Files): Likewise.
29664         * modules/usleep-tests (Files): Likewise.
29665         * modules/utimensat-tests (Files): Likewise.
29666         * modules/vasprintf-tests (Files): Likewise.
29667         * modules/vdprintf-posix-tests (Files): Likewise.
29668         * modules/vfprintf-posix-tests (Files): Likewise.
29669         * modules/vprintf-posix-tests (Files): Likewise.
29670         * modules/vsnprintf-posix-tests (Files): Likewise.
29671         * modules/vsnprintf-tests (Files): Likewise.
29672         * modules/vsprintf-posix-tests (Files): Likewise.
29673         * modules/wcrtomb-tests (Files): Likewise.
29674         * modules/wcsnrtombs-tests (Files): Likewise.
29675         * modules/wcsrtombs-tests (Files): Likewise.
29676         * modules/wcwidth-tests (Files): Likewise.
29677         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29678         * tests/test-isinf.c (isinf): Likewise.
29679         * tests/test-isnan.c (isnan): Likewise.
29680         * tests/test-signbit.c (signbit): Likewise.
29681         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29682         declaration, either as macro or with correct signature.
29683         (select): Ensure function under test is declared with correct
29684         signature in correct header.
29685         * tests/test-atexit.c (atexit): Likewise.
29686         * tests/test-btowc.c (btowc): Likewise.
29687         * tests/test-canonicalize-lgpl.c (realpath)
29688         (canonicalize_file_name): Likewise.
29689         * tests/test-ceilf1.c (ceilf): Likewise.
29690         * tests/test-ceill.c (ceill): Likewise.
29691         * tests/test-chown.c (chown): Likewise.
29692         * tests/test-dprintf-posix.c (dprintf): Likewise.
29693         * tests/test-dup2.c (dup2): Likewise.
29694         * tests/test-dup3.c (dup3): Likewise.
29695         * tests/test-duplocale.c (duplocale): Likewise.
29696         * tests/test-fchdir.c (fchdir): Likewise.
29697         * tests/test-fchownat.c (fchownat): Likewise.
29698         * tests/test-fcntl.c (fcntl): Likewise.
29699         * tests/test-fdopendir.c (fdopendir): Likewise.
29700         * tests/test-fflush.c (fflush): Likewise.
29701         * tests/test-flock.c (flock): Likewise.
29702         * tests/test-floorf1.c (floorf): Likewise.
29703         * tests/test-floorl.c (floorl): Likewise.
29704         * tests/test-fnmatch.c (fnmatch): Likewise.
29705         * tests/test-fopen.c (fopen): Likewise.
29706         * tests/test-fprintf-posix.c (fprintf): Likewise.
29707         * tests/test-freopen.c (freopen): Likewise.
29708         * tests/test-frexp.c (frexp): Likewise.
29709         * tests/test-frexpl.c (frexpl): Likewise.
29710         * tests/test-fseek.c (fseek): Likewise.
29711         * tests/test-fseeko.c (fseeko): Likewise.
29712         * tests/test-fstatat.c (fstatat): Likewise.
29713         * tests/test-fsync.c (fsync): Likewise.
29714         * tests/test-ftell.c (ftell): Likewise.
29715         * tests/test-ftello.c (ftello): Likewise.
29716         * tests/test-futimens.c (futimens): Likewise.
29717         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29718         (gai_strerror): Likewise.
29719         * tests/test-getcwd.c (getcwd): Likewise.
29720         * tests/test-getdelim.c (getdelim): Likewise.
29721         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29722         * tests/test-getgroups.c (getgroups): Likewise.
29723         * tests/test-gethostname.c (gethostname): Likewise.
29724         * tests/test-getline.c (getline): Likewise.
29725         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29726         Likewise.
29727         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29728         * tests/test-glob.c (glob, globfree): Likewise.
29729         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29730         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29731         * tests/test-inet_pton.c (inet_pton): Likewise.
29732         * tests/test-isblank.c (isblank): Likewise.
29733         * tests/test-lchown.c (lchown): Likewise.
29734         * tests/test-ldexpl.c (ldexpl): Likewise.
29735         * tests/test-link.c (link): Likewise.
29736         * tests/test-linkat.c (linkat): Likewise.
29737         * tests/test-lseek.c (lseek): Likewise.
29738         * tests/test-lstat.c (lstat): Likewise.
29739         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29740         * tests/test-mbsinit.c (mbsinit): Likewise.
29741         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29742         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29743         * tests/test-memchr.c (memchr): Likewise.
29744         * tests/test-memcmp.c (memcmp): Likewise.
29745         * tests/test-memmem.c (memmem): Likewise.
29746         * tests/test-memrchr.c (memrchr): Likewise.
29747         * tests/test-mkdir.c (mkdir): Likewise.
29748         * tests/test-mkdirat.c (mkdirat): Likewise.
29749         * tests/test-mkfifo.c (mkfifo): Likewise.
29750         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29751         * tests/test-mknod.c (mknod): Likewise.
29752         * tests/test-nanosleep.c (nanosleep): Likewise.
29753         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29754         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29755         Likewise.
29756         * tests/test-open.c (open): Likewise.
29757         * tests/test-openat.c (openat): Likewise.
29758         * tests/test-perror.c (perror): Likewise.
29759         * tests/test-pipe2.c (pipe2): Likewise.
29760         * tests/test-poll.c (poll): Likewise.
29761         * tests/test-popen.c (popen, pclose): Likewise.
29762         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29763         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29764         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29765         (posix_spawn_file_actions_destroy)
29766         (posix_spawn_file_actions_addclose)
29767         (posix_spawn_file_actions_addopen)
29768         (posix_spawn_file_actions_adddup2): Likewise.
29769         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29770         * tests/test-pread.c (pread): Likewise.
29771         * tests/test-printf-posix.c (printf): Likewise.
29772         * tests/test-pty.c (openpty, forkpty): Likewise.
29773         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29774         (random_r): Likewise.
29775         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29776         * tests/test-readlink.c (readlink): Likewise.
29777         * tests/test-remove.c (remove): Likewise.
29778         * tests/test-rename.c (rename): Likewise.
29779         * tests/test-renameat.c (renameat): Likewise.
29780         * tests/test-rmdir.c (rmdir): Likewise.
29781         * tests/test-round1.c (round): Likewise.
29782         * tests/test-roundf1.c (roundf): Likewise.
29783         * tests/test-roundl.c (roundl): Likewise.
29784         * tests/test-setenv.c (setenv): Likewise.
29785         * tests/test-sigaction.c (sigaction): Likewise.
29786         * tests/test-sleep.c (sleep): Likewise.
29787         * tests/test-snprintf.c (snprintf): Likewise.
29788         * tests/test-sprintf-posix.c (sprintf): Likewise.
29789         * tests/test-stat.c (stat): Likewise.
29790         * tests/test-stpncpy.c (stpncpy): Likewise.
29791         * tests/test-strcasestr.c (strcasestr): Likewise.
29792         * tests/test-strchrnul.c (strchrnul): Likewise.
29793         * tests/test-strerror.c (strerror): Likewise.
29794         * tests/test-strsignal.c (strsignal): Likewise.
29795         * tests/test-strstr.c (strstr): Likewise.
29796         * tests/test-strtod.c (strtod): Likewise.
29797         * tests/test-strverscmp.c (strverscmp): Likewise.
29798         * tests/test-symlink.c (symlink): Likewise.
29799         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29800         * tests/test-times.c (times): Likewise.
29801         * tests/test-trunc1.c (trunc): Likewise.
29802         * tests/test-truncf1.c (truncf): Likewise.
29803         * tests/test-truncl.c (truncl): Likewise.
29804         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29805         Likewise.
29806         * tests/test-uname.c (uname): Likewise.
29807         * tests/test-unlink.c (unlink): Likewise.
29808         * tests/test-unlinkat.c (unlinkat): Likewise.
29809         * tests/test-unsetenv.c (unsetenv): Likewise.
29810         * tests/test-usleep.c (usleep): Likewise.
29811         * tests/test-utimensat.c (utimensat): Likewise.
29812         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29813         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29814         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29815         * tests/test-vprintf-posix.c (vprintf): Likewise.
29816         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29817         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29818         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29819         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29820         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29821         * tests/test-wcwidth.c (wcwidth): Likewise.
29822
29823         build: pull in conditional headers during GNULIB_POSIXCHECK
29824         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29825         definitions from any conditionally-included headers.
29826         * lib/stdlib.in.h (includes): Likewise.
29827         * lib/unistd.in.h (includes): Likewise.
29828
29829 2009-12-24  Bruno Haible  <bruno@clisp.org>
29830
29831         * tests/test-argv-iter.c: Include header file being tested immediately
29832         after config.h.
29833         * tests/test-base64.c: Likewise.
29834         * tests/test-flock.c: Likewise.
29835         * tests/test-fsync.c: Likewise.
29836         * tests/test-getdate.c: Likewise.
29837         * tests/test-getndelim2.c: Likewise.
29838         * tests/test-isfinite.c: Likewise.
29839         * tests/test-isinf.c: Likewise.
29840         * tests/test-strerror.c: Likewise.
29841         * tests/test-strsignal.c: Likewise.
29842
29843 2009-12-23  Eric Blake  <ebb9@byu.net>
29844
29845         unistd: work around cygwin bug
29846         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29847         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29848         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29849
29850 2009-12-23  Bruno Haible  <bruno@clisp.org>
29851
29852         localename: More tests.
29853         * tests/test-localename.c (SIZEOF): New macro.
29854         (categories): New variable.
29855         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29856         test_locale_name_default): Add test w.r.t. thread locale.
29857         (test_locale_name_thread): New function.
29858         (main): Invoke it.
29859
29860         localename: Make aware of thread locale.
29861         * lib/localename.h (gl_locale_name_thread): New declaration.
29862         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29863         behaviour with respect to thread locale.
29864         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29865         <langinfo.h>, glthread/lock.h.
29866         (SIZE_BITS): New macro.
29867         (string_hash): New function.
29868         (struct hash_node): New type.
29869         (HASH_TABLE_SIZE): New macro.
29870         (struniq_hash_table, struniq_lock): New variables.
29871         (struniq): New function.
29872         (gl_locale_name_thread): New function.
29873         (gl_locale_name): Invoke it.
29874         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29875         * modules/localename (Depends-on): Add lock.
29876         Reported by Mike Gran <spk121@yahoo.com>.
29877
29878 2009-12-23  Eric Blake  <ebb9@byu.net>
29879
29880         va-args: new module
29881         * modules/va-args: New file.
29882         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29883         * MODULES.html.sh (Core language properties): Mention it.
29884
29885         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29886         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29887         named alias for __attribute__((__unused__)).
29888         * lib/chown.c: Update client.
29889         * lib/fchmodat.c: Likewise.
29890         * lib/fts.c: Likewise.
29891         * lib/getdate.y: Likewise.
29892         * lib/getgroups.c: Likewise.
29893         * lib/getopt.c: Likewise.
29894         * lib/getugroups.c: Likewise.
29895         * lib/mkdir.c: Likewise.
29896         * lib/mkfifo.c: Likewise.
29897         * lib/mkfifoat.c: Likewise.
29898         * lib/mknod.c: Likewise.
29899         * lib/mknodat.c: Likewise.
29900         * lib/readlink.c: Likewise.
29901         * lib/se-context.in.h: Likewise.
29902         * lib/se-selinux.in.h: Likewise.
29903         * lib/sockets.c: Likewise.
29904         * lib/symlink.c: Likewise.
29905         * lib/symlinkat.c: Likewise.
29906         * lib/unicodeio.c: Likewise.
29907         * lib/unistr.h: Likewise.
29908         * tests/test-areadlink.c: Likewise.
29909         * tests/test-areadlinkat.c: Likewise.
29910         * tests/test-filenamecat.c: Likewise.
29911         * tests/test-fseeko.c: Likewise.
29912         * tests/test-ftello.c: Likewise.
29913         * tests/test-getdate.c: Likewise.
29914         * tests/test-getgroups.c: Likewise.
29915         * tests/test-gethostname.c: Likewise.
29916         * tests/test-quotearg.c: Likewise.
29917         * tests/test-version-etc.c: Likewise.
29918         * tests/test-xalloc-die.c: Likewise.
29919         * tests/test-xfprintf-posix.c: Likewise.
29920         * tests/test-xprintf-posix.c: Likewise.
29921         * tests/test-xvasprintf.c: Likewise.
29922
29923         tests: avoid compiler warnings
29924         * tests/test-fcntl.c (main): Delete unused parameters.
29925         * tests/test-freopen-safer.c (main): Likewise.
29926         * tests/test-xalloc-die.c (main): Mark unused parameters.
29927         * tests/test-fseeko.c (main): Likewise.
29928         * tests/test-ftello.c (main): Likewise.
29929         * tests/test-nanosleep.c (main): Avoid declaration warning.
29930         * tests/test-sleep.c (main): Likewise.
29931         * tests/test-unsetenv.c (main): Silence warning about string
29932         literal.
29933         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29934
29935 2009-12-23  Bruno Haible  <bruno@clisp.org>
29936
29937         * tests/test-localename.c (test_locale_name): New function, extracted
29938         from main. Also test mixed situations.
29939         (test_locale_name_posix, test_locale_name_environ,
29940         test_locale_name_default): New functions.
29941         (main): Invoke them all.
29942         * modules/localename-tests (configure.ac): Test for newlocale.
29943
29944 2009-12-23  Bruno Haible  <bruno@clisp.org>
29945
29946         unistd: Ensure getcwd gets declared before being overridden.
29947         * lib/unistd.in.h: Conditionally include <io.h>.
29948
29949 2009-12-22  Bruno Haible  <bruno@clisp.org>
29950
29951         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29952         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29953         (gl_WCHAR_H): Invoke it.
29954         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29955         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29956         Reported by Karl Berry <karl@freefriends.org>.
29957
29958 2009-12-22  Eric Blake  <ebb9@byu.net>
29959
29960         math, unistd: avoid redundant includes
29961         * lib/math.in.h (isnan): No need to re-include <math.h>.
29962         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29963
29964         getsubopt: work around cygwin bug
29965         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29966         avoid conflicting with system getsubopt.
29967         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29968         bug.
29969
29970         getopt: synchronize from glibc
29971         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29972         parameter order.  Adjust all callers.
29973         (_getopt_internal_r, main): Adjust quoting in error messages.
29974         Drop considerations for outdated POSIX 1003.2 error message.
29975         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29976         callers.
29977         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29978
29979         test-getopt: test stderr behavior
29980         * modules/getopt-posix-tests (Depends-on): Add dup2.
29981         * tests/test-getopt.c (ASSERT): Avoid stderr.
29982         (main): Move stderr to a temporary file.
29983         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29984         Instead, add parameter to inform caller if output occurred.
29985         (test_getopt): Adjust all existing tests to expect silence, and
29986         add new tests of leading ":".
29987         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29988         glibc shortcomings with leading "-:" or "+:" in optstring.
29989         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29990         Likewise.
29991         * doc/posix-functions/getopt.texi (getopt): Likewise.
29992
29993         test-getopt: enhance test
29994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29995         supports optind=0.
29996         * tests/test-getopt.c (OPTIND_MIN): Move...
29997         * tests/test-getopt.h (OPTIND_MIN): ...here.
29998         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29999         Require that optind=0 works, since modern BSD supports it in
30000         addition to optreset, and since coreutils expects it.
30001         (test_getopt_long_only): New test.
30002         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30003         glibc shortcomings with 'W;', and enforcement of optind=0.
30004         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30005         Likewise.
30006
30007 2009-12-21  Bruno Haible  <bruno@clisp.org>
30008
30009         localename: Improvements for MacOS X and Cygwin.
30010         * lib/localename.h (gl_locale_name_environ): New declaration.
30011         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30012         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30013         (gl_locale_name_posix): Invoke it.
30014         (gl_locale_name_default): Add comments. Use Windows native API also on
30015         Cygwin.
30016
30017 2009-12-21  Bruno Haible  <bruno@clisp.org>
30018
30019         Update list of Win32 locale ids.
30020         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30021         (LANG_SAMI): Renamed from LANG_SAAMI.
30022         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30023         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30024         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30025         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30026         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30027         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30028         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30029         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30030         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30031         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30032         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30033         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30034         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30035         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30036         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30037         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30038         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30039         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30040         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30041         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30042         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30043         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30044         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30045         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30046         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30047         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30048         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30049         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30050         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30051         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30052         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30053         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30054         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30055         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30056         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30057         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30058         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30059         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30060         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30061         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30062         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30063         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30064         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30065         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30066         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30067         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30068         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30069         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30070         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30071         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30072         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30073         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30074         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30075         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30076         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30077         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30078         Add more languages and countries for Sami, Sorbian. Add more countries
30079         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30080         for Pashto. Change country for Syriac, Tswana.
30081
30082 2009-12-21  Eric Blake  <ebb9@byu.net>
30083
30084         test-utimens: avoid spurious failure
30085         * tests/test-chown.h (nap): Factor...
30086         * tests/nap.h: ...into new file.
30087         * tests/test-lchown.h (nap): Avoid duplication.
30088         * tests/test-utimens-common.h (nap): Use shared implementation,
30089         necessary on file systems with 1-second resolution.
30090         * modules/chown-tests (Files): Include new file.
30091         * modules/fdutimensat-tests (Files): Likewise.
30092         * modules/futimens-tests (Files): Likewise.
30093         * modules/lchown-tests (Files): Likewise.
30094         * modules/openat-tests (Files): Likewise.
30095         * modules/utimens-tests (Files): Likewise.
30096         * modules/utimensat-tests (Files): Likewise.
30097
30098 2009-12-19  Eric Blake  <ebb9@byu.net>
30099
30100         futimens, utimensat: work around Linux bug
30101         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30102         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30103         * lib/utimensat.c (rpl_utimensat): Work around it.
30104         * lib/futimens.c (rpl_futimens): Adjust comment.
30105
30106         utimens: work around Linux ctime bug
30107         * lib/utimens.c (detect_ctime_bug): New helper function.
30108         (update_timespec): Differentiate between workaround needed for
30109         this bug vs. what is needed for systems that lack utimensat.
30110         (fdutimens, lutimens): Work around bug.
30111
30112         utimens: check for ctime update
30113         * tests/test-utimens-common.h (check_ctime): Define.
30114         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30115         * tests/test-futimens.h (test_futimens): Likewise.
30116         * tests/test-lutimens.h (test_lutimens): Likewise.
30117         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30118         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30119
30120 2009-12-19  Bruno Haible  <bruno@clisp.org>
30121
30122         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30123         * tests/test-dprintf-posix2.sh: New file.
30124         * tests/test-dprintf-posix2.c: New file.
30125         * modules/dprintf-posix-tests (Files): Add them.
30126         (configure.ac): Check for getrlimit and setrlimit.
30127         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30128
30129 2009-12-19  Bruno Haible  <bruno@clisp.org>
30130
30131         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30132         * tests/test-fprintf-posix3.sh: New file.
30133         * tests/test-fprintf-posix3.c: New file.
30134         * modules/fprintf-posix-tests (Files): Add them.
30135         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30136
30137 2009-12-19  Eric Blake  <ebb9@byu.net>
30138
30139         dirfd: fix prototype
30140         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30141         * lib/dirfd.c (dirfd): Likewise.
30142
30143         canonicalize: reduce memory usage
30144         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30145         allocation to size.
30146         Reported by Solar Designer <solar@openwall.com>.
30147
30148 2009-12-19  Bruno Haible  <bruno@clisp.org>
30149
30150         New module attribute 'Applicability'.
30151         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30152         * gnulib-tool: New option --extract-applicability.
30153         (func_usage): Document it.
30154         (sed_extract_prog): Recognize it.
30155         (func_get_applicability): New function.
30156         (func_import): Generalize handling of 'link-warning' module.
30157         * modules/link-warning (Applicability): New section.
30158         * modules/arg-nonnull (Applicability): New section.
30159         Repoted by Simon Josefsson <simon@josefsson.org>.
30160
30161 2009-12-19  Bruno Haible  <bruno@clisp.org>
30162
30163         fflush: tweak
30164         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30165         * lib/fseeko.c (rpl_fseeko): Likewise.
30166
30167 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30168
30169         * lib/gl_list.h: Fix typo in comment.
30170
30171 2009-12-16  Eric Blake  <ebb9@byu.net>
30172
30173         fcntl: use to simplify other modules
30174         * modules/cloexec (Depends-on): Add fcntl.
30175         * modules/fchdir (Depends-on): Likewise.
30176         * modules/fd-safer-flag (Depends-on): Likewise.
30177         * modules/unistd-safer (Depends-on): Likewise.
30178         * modules/dup3 (configure.ac): Set module indicator.
30179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30180         missing.
30181         * lib/fchdir.c (_gl_register_dup): Fix comment.
30182         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30183         * lib/dup-safer.c (dup_safer): Likewise.
30184         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30185         * lib/dup3.c (dup3): Likewise.
30186         * tests/test-fchdir.c (main): Enhance test.
30187         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30188
30189         fcntl: port portions of fcntl to mingw
30190         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30191         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30192         replacement for mingw.
30193         * modules/fcntl (Description): Update.
30194         (Depends-on): Add dup2.
30195         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30196         * modules/fcntl-h (Makefile.am): Substitute it.
30197         * lib/fcntl.in.h (fcntl): Update declaration.
30198         (F_DUPFD, F_GETFD): New macros, when needed.
30199         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30200         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30201         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30202         we now guarantee.
30203
30204         fcntl: work around cygwin bug in F_DUPFD
30205         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30206         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30207         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30208         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30209         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30210
30211         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30212         * modules/fcntl (Files): List new files.
30213         (configure.ac): Run a test.
30214         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30215         * lib/fcntl.c (rpl_fcntl): Likewise.
30216         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30217         (gl_FCNTL_H): Always replace fcntl.h.
30218         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30219         * lib/fcntl.in.h (fcntl): Declare replacement.
30220         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30221         needed, plus a witness.
30222         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30223         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30224         * tests/test-fcntl.c: New file.
30225         * modules/fcntl-tests: Likewise.
30226
30227         binary-io: avoid potential compilation warning
30228         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30229         directives.
30230
30231         fflush: avoid compilation error on NetBSD
30232         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30233         between off_t and fpos_t, since the latter is sometimes a struct.
30234         * lib/fseeko.c (rpl_fseeko): Likewise.
30235         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30236
30237 2009-12-15  Eric Blake  <ebb9@byu.net>
30238
30239         fcntl-h, stdio, sys_ioctl: fix declarations
30240         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30241         function must not take arguments.
30242         * lib/sys_ioctl.in.h (ioctl): Likewise.
30243         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30244         (open): Add a link warning.
30245
30246 2009-12-15  Jim Meyering  <meyering@redhat.com>
30247
30248         areadlink, areadlink-with-size: relax license to LGPLv2+
30249         * modules/areadlink (License): Relax to LGPLv2+.
30250         * modules/areadlink-with-size (License): Likewise.
30251
30252 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30253             Bruno Haible  <bruno@clisp.org>
30254
30255         *printf: Fix memory leak.
30256         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30257         * lib/vfprintf.c (vfprintf): Likewise.
30258         * lib/dprintf.c (dprintf): Likewise.
30259         * lib/vdprintf.c (vdprintf): Likewise.
30260
30261 2009-12-14  Eric Blake  <ebb9@byu.net>
30262
30263         accept4: adjust module dependencies
30264         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30265
30266         utimens: one more try at avoiding compiler warning
30267         * lib/utimens.c (lutimens): Lower scope of result.
30268
30269 2009-12-13  Bruno Haible  <bruno@clisp.org>
30270
30271         Move the malloc checking from module 'list' to new module 'xlist'.
30272         * modules/xlist: New file.
30273         * lib/gl_xlist.h: New file.
30274         * lib/gl_xlist.c: New file.
30275         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30276         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30277         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30278         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30279         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30280         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30281         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30282         gl_sortedlist_nx_add): New declarations.
30283         (struct gl_list_implementation): Rename and change methods accordingly.
30284         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30285         (gl_list_nx_create): Renamed from gl_list_create.
30286         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30287         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30288         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30289         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30290         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30291         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30292         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30293         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30294         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30295         gl_list_create_empty.
30296         (gl_list_nx_create): Renamed from gl_list_create.
30297         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30298         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30299         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30300         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30301         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30302         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30303         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30304         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30305         * lib/gl_array_list.c: Don't include xalloc.h.
30306         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30307         NULL upon out-of-memory.
30308         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30309         out-of-memory.
30310         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30311         Change return type to 'int'.
30312         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30313         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30314         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30315         upon out-of-memory.
30316         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30317         upon out-of-memory.
30318         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30319         upon out-of-memory.
30320         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30321         upon out-of-memory.
30322         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30323         out-of-memory.
30324         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30325         Update.
30326         (gl_array_list_implementation): Update.
30327         * lib/gl_carray_list.c: Don't include xalloc.h.
30328         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30329         Return NULL upon out-of-memory.
30330         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30331         out-of-memory.
30332         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30333         Change return type to 'int'.
30334         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30335         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30336         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30337         upon out-of-memory.
30338         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30339         upon out-of-memory.
30340         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30341         out-of-memory.
30342         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30343         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30344         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30345         Update.
30346         (gl_carray_list_implementation): Update.
30347         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30348         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30349         gl_linked_create_empty. Return NULL upon out-of-memory.
30350         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30351         out-of-memory.
30352         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30353         Change return type to 'int'. Return -1 upon out-of-memory.
30354         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30355         out-of-memory.
30356         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30357         upon out-of-memory.
30358         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30359         upon out-of-memory.
30360         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30361         NULL upon out-of-memory.
30362         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30363         upon out-of-memory.
30364         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30365         out-of-memory.
30366         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30367         Update.
30368         * lib/gl_linked_list.c: Don't include xalloc.h.
30369         (gl_linked_list_implementation): Update.
30370         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30371         (add_to_bucket): Change return type to 'int'.
30372         (gl_linkedhash_list_implementation): Update.
30373         * lib/gl_anytree_list1.h (free_subtree): New function.
30374         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30375         gl_tree_create_empty. Return NULL upon out-of-memory.
30376         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30377         Change return type to 'int'. Return -1 upon out-of-memory.
30378         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30379         out-of-memory.
30380         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30381         (gl_tree_remove_node): New function, moved here from
30382         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30383         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30384         Update.
30385         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30386         malloc, not xmalloc. Return NULL upon out-of-memory.
30387         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30388         out-of-memory.
30389         (gl_tree_remove_node_from_tree): New function, extracted from
30390         gl_tree_remove_node.
30391         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30392         upon out-of-memory.
30393         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30394         out-of-memory.
30395         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30396         upon out-of-memory.
30397         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30398         upon out-of-memory.
30399         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30400         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30401         not xmalloc. Return NULL upon out-of-memory.
30402         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30403         out-of-memory.
30404         (gl_tree_remove_node_from_tree): New function, extracted from
30405         gl_tree_remove_node.
30406         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30407         upon out-of-memory.
30408         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30409         out-of-memory.
30410         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30411         upon out-of-memory.
30412         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30413         upon out-of-memory.
30414         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30415         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30416         gl_anytree_list1.h before gl_anyavltree_list2.h.
30417         (gl_avltree_list_implementation): Update.
30418         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30419         gl_anytree_list1.h before gl_anyavltree_list2.h.
30420         (gl_rbtree_list_implementation): Update.
30421         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30422         Change return type to 'int'. Return -1 upon out-of-memory. Use
30423         __builtin_expect.
30424         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30425         (gl_avltreehash_list_implementation): Update.
30426         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30427         (gl_rbtreehash_list_implementation): Update.
30428         * modules/array-list (Depends-on): Remove xalloc.
30429         * modules/carray-list (Depends-on): Likewise.
30430         * modules/linked-list (Depends-on): Likewise.
30431         * modules/linkedhash-list (Depends-on): Likewise.
30432         * modules/avltree-list (Depends-on): Likewise.
30433         * modules/rbtree-list (Depends-on): Likewise.
30434         * modules/avltreehash-list (Depends-on): Likewise.
30435         * modules/rbtreehash-list (Depends-on): Likewise.
30436
30437         * modules/xsublist: New file.
30438         * lib/gl_xsublist.h: New file.
30439         * lib/gl_xsublist.c: New file.
30440         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30441         (gl_sublist_nx_create): New declaration.
30442         * lib/gl_sublist.c: Don't include xalloc.h.
30443         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30444         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30445         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30446         Change return type to 'int'. Return -1 upon out-of-memory.
30447         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30448         upon out-of-memory.
30449         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30450         NULL upon out-of-memory.
30451         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30452         upon out-of-memory.
30453         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30454         NULL upon out-of-memory.
30455         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30456         NULL upon out-of-memory.
30457         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30458         upon out-of-memory.
30459         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30460         (gl_sublist_list_implementation): Update.
30461         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30462         upon out-of-memory.
30463         * modules/sublist (Depends-on): Remove xalloc.
30464
30465         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30466         * tests/test-carray_list.c: Likewise.
30467         * tests/test-linked_list.c: Likewise.
30468         * tests/test-linkedhash_list.c: Likewise.
30469         * tests/test-avltree_list.c: Likewise.
30470         * tests/test-rbtree_list.c: Likewise.
30471         * tests/test-avltreehash_list.c: Likewise.
30472         * tests/test-rbtreehash_list.c: Likewise.
30473         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30474         * modules/carray-list-tests (Makefile.am): Likewise.
30475         * modules/linked-list-tests (Makefile.am): Likewise.
30476         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30477         * modules/avltree-list-tests (Makefile.am): Likewise.
30478         * modules/rbtree-list-tests (Makefile.am): Likewise.
30479         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30480         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30481
30482         * NEWS: Mention the changes.
30483
30484         * lib/clean-temp.c: Include gl_xlist.h.
30485         * modules/clean-temp (Depends-on): Add xlist.
30486
30487         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30488         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30489
30490         * tests/test-array_oset.c: Include gl_xlist.h.
30491         * modules/array-oset-tests (Depends-on): Add xlist.
30492
30493         Reported by José E. Marchesi <jemarch@gnu.org>.
30494
30495 2009-12-13  Bruno Haible  <bruno@clisp.org>
30496
30497         Move the malloc checking from module 'oset' to new module 'xoset'.
30498         * modules/xoset: New file.
30499         * lib/gl_xoset.h: New file.
30500         * lib/gl_xoset.c: New file.
30501         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30502         declarations.
30503         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30504         (struct gl_oset_implementation): Rename and change methods accordingly.
30505         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30506         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30507         'int'. Mark as __warn_unused_result__.
30508         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30509         gl_oset_create_empty.
30510         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30511         'int'.
30512         * lib/gl_array_oset.c: Don't include xalloc.h.
30513         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30514         malloc, not xmalloc.
30515         (grow): Change return type to 'int'. Don't call xalloc_die.
30516         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30517         to 'int'.
30518         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30519         'int'.
30520         (gl_array_oset_implementation): Update.
30521         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30522         gl_tree_create_empty.
30523         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30524         'int'.
30525         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30526         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30527         xmalloc.
30528         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30529         not xmalloc.
30530         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30531         xmalloc.
30532         (gl_avltree_oset_implementation): Update.
30533         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30534         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30535         xmalloc.
30536         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30537         not xmalloc.
30538         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30539         xmalloc.
30540         (gl_rbtree_oset_implementation): Update.
30541         * modules/array-oset (Depends-on): Remove xalloc.
30542         * modules/avltree-oset (Depends-on): Likewise.
30543         * modules/rbtree-oset (Depends-on): Likewise.
30544         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30545         * tests/test-avltree_oset.c: Likewise.
30546         * tests/test-rbtree_oset.c: Likewise.
30547         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30548         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30549         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30550         * NEWS: Mention the change.
30551
30552 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30553
30554         maint.mk: allow a project to override release-prep commands
30555         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30556         commands into a new rule.
30557         (release-prep): New rule.
30558         (release-prep-hook): New overridable variable.
30559
30560 2009-12-13  Bruno Haible  <bruno@clisp.org>
30561
30562         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30563
30564 2009-12-13  Jim Meyering  <meyering@redhat.com>
30565
30566         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30567         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30568
30569 2009-12-12  Bruno Haible  <bruno@clisp.org>
30570
30571         duplocale: Tweak.
30572         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30573
30574 2009-12-12  Karl Berry  <karl@gnu.org>
30575
30576         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30577
30578 2009-12-12  Bruno Haible  <bruno@clisp.org>
30579
30580         * m4/po.m4: Undo incorrect untabification.
30581
30582 2009-12-12  Bruno Haible  <bruno@clisp.org>
30583
30584         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30585         * modules/c-strtod (Depends-on): Add locale.
30586         * modules/c-strtold (Depends-on): Likewise.
30587
30588 2009-12-12  Bruno Haible  <bruno@clisp.org>
30589
30590         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30591
30592 2009-12-11  Eric Blake  <ebb9@byu.net>
30593
30594         setenv: relax requirement in light of POSIX ruling
30595         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30596         not NULL.
30597         * tests/test-setenv.c (main): Relax test.
30598         * tests/test-unsetenv.c (main): Likewise.
30599         * doc/posix-functions/setenv.texi (setenv): Document this.
30600         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30601
30602 2009-12-11  Bruno Haible  <bruno@clisp.org>
30603
30604         New module 'fd-safer-flag'.
30605         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30606         * lib/dup-safer.c (dup_safer_flag): Remove function.
30607         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30608         * lib/fd-safer.c (fd_safer_flag): Remove function.
30609         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30610         * modules/cloexec (configure.ac): Drop indicator macro.
30611         * modules/fd-safer-flag: New file.
30612         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30613         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30614         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30615
30616 2009-12-11  Bruno Haible  <bruno@clisp.org>
30617
30618         Tests for module 'nl_langinfo'.
30619         * modules/nl_langinfo-tests: New file.
30620         * tests/test-nl_langinfo.sh: New file.
30621         * tests/test-nl_langinfo.c: New file.
30622
30623         New module 'nl_langinfo'.
30624         * lib/nl_langinfo.c: New file.
30625         * m4/nl_langinfo.m4: New file.
30626         * modules/nl_langinfo: New file.
30627         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30628
30629 2009-12-11  Bruno Haible  <bruno@clisp.org>
30630
30631         Tests for module 'langinfo'.
30632         * modules/langinfo-tests: New file.
30633         * tests/test-langinfo.c: New file.
30634
30635         New module 'langinfo'.
30636         * lib/langinfo.in.h: New file.
30637         * m4/langinfo_h.m4: New file.
30638         * modules/langinfo: New file.
30639         * doc/posix-headers/langinfo.texi: Mention the new module.
30640
30641 2009-12-11  Bruno Haible  <bruno@clisp.org>
30642
30643         * lib/config.charset: Untabify.
30644
30645 2009-12-11  Bruno Haible  <bruno@clisp.org>
30646
30647         * modules/unistd-safer (configure.ac): Drop indicator macro.
30648
30649 2009-12-11  Bruno Haible  <bruno@clisp.org>
30650
30651         Move pipe2-safer code to its own file.
30652         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30653         * lib/pipe-safer.c (pipe2_safer): Remove function.
30654         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30655         (Makefile.am): Add it to lib_SOURCES.
30656
30657 2009-12-10  Bruno Haible  <bruno@clisp.org>
30658
30659         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30660
30661 2009-12-10  Bruno Haible  <bruno@clisp.org>
30662
30663         Declare which arguments expect non-NULL values, for GCC and clang.
30664         * build-aux/arg-nonnull.h: New file.
30665         * modules/arg-nonnull: New file.
30666         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30667         (inet_ntop, inet_pton): Use it.
30668         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30669         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30670         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30671         (open, openat): Use it.
30672         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30673         (fnmatch): Use it.
30674         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30675         (getopt, getopt_long, getopt_long_only): Use it.
30676         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30677         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30678         Use it.
30679         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30680         (iconv_open): Use it.
30681         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30682         (strtoimax, strtoumax): Use it.
30683         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30684         (duplocale): Use it.
30685         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30686         (frexp, frexpl): Use it.
30687         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30688         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30689         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30690         (tsearch, tfind, tdelete, twalk): Use it.
30691         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30692         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30693         sigpending): Use it.
30694         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30695         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30696         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30697         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30698         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30699         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30700         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30701         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30702         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30703         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30704         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30705         Use it.
30706         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30707         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30708         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30709         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30710         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30711         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30712         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30713         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30714         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30715         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30716         strtoull, unsetenv): Use it.
30717         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30718         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30719         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30720         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30721         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30722         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30723         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30724         (strcasecmp, strncasecmp): Use it.
30725         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30726         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30727         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30728         rpl_setsockopt): Use it.
30729         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30730         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30731         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30732         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30733         (gettimeofday): Use it.
30734         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30735         (times): Use it.
30736         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30737         (uname): Use it.
30738         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30739         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30740         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30741         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30742         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30743         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30744         unlinkat, write): Use it.
30745         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30746         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30747         * lib/argv-iter.h: Include arg-nonnull.h.
30748         (_ATTRIBUTE_NONNULL_): Remove macro.
30749         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30750         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30751         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30752         optimization.
30753         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30754         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30755         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30756         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30757         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30758         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30759         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30760         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30761         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30762         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30763         * modules/dirent (Depends-on): Add arg-nonnull.
30764         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30765         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30766         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30767         * modules/fnmatch (Depends-on): Add arg-nonnull.
30768         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30769         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30770         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30771         * modules/glob (Depends-on): Add arg-nonnull.
30772         (Makefile.am): Insert arg-nonnull.h into glob.h.
30773         * modules/iconv_open (Depends-on): Add arg-nonnull.
30774         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30775         * modules/inttypes (Depends-on): Add arg-nonnull.
30776         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30777         * modules/locale (Depends-on): Add arg-nonnull.
30778         (Makefile.am): Insert arg-nonnull.h into locale.h.
30779         * modules/math (Depends-on): Add arg-nonnull.
30780         (Makefile.am): Insert arg-nonnull.h into math.h.
30781         * modules/netdb (Depends-on): Add arg-nonnull.
30782         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30783         * modules/search (Depends-on): Add arg-nonnull.
30784         (Makefile.am): Insert arg-nonnull.h into search.h.
30785         * modules/signal (Depends-on): Add arg-nonnull.
30786         (Makefile.am): Insert arg-nonnull.h into signal.h.
30787         * modules/spawn (Depends-on): Add arg-nonnull.
30788         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30789         * modules/stdio (Depends-on): Add arg-nonnull.
30790         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30791         * modules/stdlib (Depends-on): Add arg-nonnull.
30792         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30793         * modules/string (Depends-on): Add arg-nonnull.
30794         (Makefile.am): Insert arg-nonnull.h into string.h.
30795         * modules/strings (Depends-on): Add arg-nonnull.
30796         (Makefile.am): Insert arg-nonnull.h into strings.h.
30797         * modules/sys_socket (Depends-on): Add arg-nonnull.
30798         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30799         * modules/sys_stat (Depends-on): Add arg-nonnull.
30800         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30801         * modules/sys_time (Depends-on): Add arg-nonnull.
30802         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30803         * modules/sys_times (Depends-on): Add arg-nonnull.
30804         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30805         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30806         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30807         * modules/time (Depends-on): Add arg-nonnull.
30808         (Makefile.am): Insert arg-nonnull.h into time.h.
30809         * modules/unistd (Depends-on): Add arg-nonnull.
30810         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30811         * modules/wchar (Depends-on): Add arg-nonnull.
30812         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30813         * modules/argv-iter (Depends-on): Add arg-nonnull.
30814         * tests/test-canonicalize.c (null_ptr): New function.
30815         (main): Use it.
30816         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30817         (main): Use it.
30818         * tests/test-memmem.c (null_ptr): New function.
30819         (main): Use it.
30820         Reported by Jim Meyering.
30821
30822 2009-12-10  Bruno Haible  <bruno@clisp.org>
30823
30824         Use spaces for indentation, not tabs.
30825         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30826         * m4/*.m4: Untabify.
30827         * build-aux/*.h: Untabify.
30828         * tests/**/*.[hc]: Untabify.
30829         * README: New section "Indent with spaces, not TABs", based on
30830         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30831         * NEWS: Mention the change.
30832
30833 2009-12-10  Bruno Haible  <bruno@clisp.org>
30834
30835         pty test: Fix link error.
30836         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30837         test_pty_LDADD.
30838
30839 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30840
30841         * modules/pty: New file.
30842         * modules/pty-tests: New file.
30843         * m4/pty.m4: New file.
30844         * tests/test-pty.c: New file.
30845         * doc/glibc-headers/pty.texi: Modified.
30846         * doc/glibc-functions/forkpty.texi: Modified.
30847         * doc/glibc-functions/openpty.texi: Modified.
30848
30849 2009-12-10  Bruno Haible  <bruno@clisp.org>
30850
30851         Avoid syntax error in C++ mode.
30852         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30853
30854 2009-12-10  Bruno Haible  <bruno@clisp.org>
30855
30856         Use sed with option -e.
30857         * gnulib-tool (func_version, func_emit_copyright_notice,
30858         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30859         option -e to sed.
30860         * modules/link-warning (Makefile.am): Likewise.
30861
30862 2009-12-10  Jim Meyering  <meyering@redhat.com>
30863
30864         mgetgroups: do not write bytes beyond end of malloc'd buffer
30865         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30866         username, we call getgroups with a one-element-shorter buffer,
30867         but still told it the length was original, max_n_groups.
30868
30869 2009-12-09  Eric Blake  <ebb9@byu.net>
30870
30871         cloexec: relax license
30872         * modules/cloexec (Maintainer): Add myself.
30873         (License): Use LGPL, not GPL.
30874
30875         link-warning: optimize generation
30876         * modules/link-warning (Makefile.am): Reduce process usage.
30877
30878 2009-12-09  Bruno Haible  <bruno@clisp.org>
30879
30880         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30881         workaround was added on 2009-11-17.
30882
30883 2009-12-09  Jim Meyering  <meyering@redhat.com>
30884             Bruno Haible  <bruno@clisp.org>
30885
30886         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30887         * modules/link-warning (Makefile.am): Make the comment-removing sed
30888         command more robust in the face of bootstrap-prepended comment lines.
30889
30890 2009-12-09  Bruno Haible  <bruno@clisp.org>
30891
30892         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30893         most one group.
30894
30895 2009-12-09  Simon Josefsson <simon@josefsson.org>
30896             Bruno Haible  <bruno@clisp.org>
30897
30898         * build-aux/link-warning.h: Add copyright notice.
30899         * modules/link-warning (Makefile.am): Generate link-warning.h from
30900         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30901         * NEWS: Mention change in link-warning module.
30902         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30903         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30904         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30905         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30906         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30907         * modules/math (Makefile.am): Add dependency to math.h.
30908         * modules/search (Makefile.am): Add dependency to search.h.
30909         * modules/signal (Makefile.am): Add dependency to signal.h.
30910         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30911         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30912         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30913         * modules/string (Makefile.am): Add dependency to string.h.
30914         * modules/strings (Makefile.am): Add dependency to strings.h.
30915         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30916         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30917         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30918         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30919         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30920         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30921         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30922         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30923         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30924
30925 2009-12-09  Bruno Haible  <bruno@clisp.org>
30926
30927         fchdir: Optimize away rpl_fstat when possible.
30928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30929         REPLACE_OPEN_DIRECTORY.
30930         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30931
30932 2009-12-09  Bruno Haible  <bruno@clisp.org>
30933
30934         * lib/fchdir.c: Update comment.
30935
30936 2009-12-09  Bruno Haible  <bruno@clisp.org>
30937
30938         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30939
30940 2009-12-08  Eric Blake  <ebb9@byu.net>
30941
30942         fchdir: avoid memory leak on re-registration.
30943         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30944
30945 2009-12-08  Jim Meyering  <meyering@redhat.com>
30946
30947         init.sh: avoid Solaris 10 /bin/sh portability problem
30948         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30949         sourced script:
30950           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30951           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30952           bar
30953         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30954         and two tests used that idiom.
30955         * tests/init.sh: Update suggested usage comments.
30956         (path_prepend_): New function, to be used in place
30957         of the --src-path=DIR option.
30958         (setup_): Move PATH-prepending code into path_prepend_.
30959         * tests/test-pread.sh: Adapt to new usage.
30960         * tests/test-xalloc-die.sh: Likewise.
30961
30962 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30963
30964         * doc/gnulib.texi (Glibc pty.h): Add.
30965         * doc/glibc-functions/forkpty.texi: Add.
30966         * doc/glibc-functions/openpty.texi: Add.
30967         Suggested by Bruno Haible.
30968
30969 2009-12-08  Eric Blake  <ebb9@byu.net>
30970
30971         fchdir: fix logic bugs
30972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30973         * tests/test-fchdir.c (main): Enhance test.
30974         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30975         is in use.
30976
30977         dup2: fix logic bugs
30978         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30979         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30980         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30981         exists.
30982         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30983
30984 2009-12-07  Eric Blake  <ebb9@byu.net>
30985
30986         unlink: fix m4 detection
30987         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30988
30989         unistd-safer: add unit test
30990         * modules/unistd-safer-tests: New file.
30991         * tests/test-dup-safer.c: Likewise.
30992         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30993         * tests/test-dup2.c (setmode): Likewise.
30994         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30995
30996         cloexec: preserve text vs. binary across dup_cloexec
30997         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30998         mode.
30999         * modules/dup2-tests (Depends-on): Add binary-io.
31000         * modules/cloexec-tests (Depends-on): Likewise.
31001         * tests/test-dup2.c (setmode, is_mode): New helpers.
31002         (main): Add tests that translation mode is preserved.
31003         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31004         Reported by Bruno Haible.
31005
31006         mgetgroups: reduce duplicate listings
31007         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31008         resulting array.
31009         * tests/test-chown.h (test_chown): Simplify client.
31010         * tests/test-lchown.h (test_lchown): Likewise.
31011
31012 2009-12-06  Bruno Haible  <bruno@clisp.org>
31013
31014         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31015         value.
31016
31017 2009-12-06  Bruno Haible  <bruno@clisp.org>
31018
31019         * lib/progname.c: Include stdio.h, stdlib.h.
31020         (set_program_name): Reject a NULL argument.
31021
31022 2009-12-05  Eric Blake  <ebb9@byu.net>
31023
31024         pipe2-safer: new module
31025         * modules/pipe2-safer: New file.
31026         * lib/unistd-safer.h (pipe2_safer): New prototype.
31027         * lib/unistd--.h (pipe2): New wrapper.
31028         * lib/pipe-safer.c (pipe2_safer): New function.
31029         * modules/pipe (Depends-on): Add pipe2-safer.
31030         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31031
31032         stdlib-safer: preserve cloexec flag for mkostemp[s]
31033         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31034         fd_safer_flag.
31035
31036         unistd-safer: allow preservation of cloexec status via flag
31037         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31038         prototypes.
31039         * lib/dup-safer.c (dup_safer_flag): New function.
31040         * lib/fd-safer.c (fd_safer_flag): Likewise.
31041         * modules/cloexec (configure.ac): Set witness.
31042
31043         test-dup2: enhance test
31044         * modules/dup2-tests (Depends-on): Add cloexec.
31045         * tests/test-dup2.c (main): Enhance test.
31046
31047         cloexec: add dup_cloexec
31048         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31049         header and comments.
31050         * lib/cloexec.c (set_cloexec_flag): Add comments.
31051         (dup_cloexec): New function, with mingw implementation borrowed
31052         from...
31053         * lib/w32spawn.h (dup_noinherit): ...here.
31054         * modules/execute (Depends-on): Add cloexec.
31055         * modules/pipe (Depends-on): Likewise.
31056         * modules/cloexec (Depends-on): Add dup2.
31057         * modules/cloexec-tests (Files): New file.
31058         * tests/test-cloexec.c: Likewise.
31059
31060         test-xalloc-die: fix test for mingw
31061         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31062         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31063         directory and .exe suffix off argv[0] output.
31064
31065         test-fseeko: fix test for mingw
31066         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31067         than undefining fseek, so test will pass on mingw.
31068
31069 2009-12-05  Bruno Haible  <bruno@clisp.org>
31070
31071         * lib/progname.h (set_program_name): Clarify specification.
31072         * lib/progname.c (set_program_name): Likewise.
31073         Reported by Jim Meyering.
31074
31075 2009-12-05  Jim Meyering  <meyering@redhat.com>
31076
31077         maint.mk: backslash-escape parens in default regexp
31078         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31079         backslash-escape the literal parentheses.
31080
31081         maint.mk: news-date-check: use grep -E
31082         * top/maint.mk (today): Define a Make variable, not a...
31083         (news-date-check): ...shell variable.
31084         (news-date-regexp): Use the Make variable.
31085         Use grep's -E option.  Change the failing diagnostic to mention
31086         the variable, $(news-date-regexp).
31087
31088 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31089
31090         maintainer-makefile: allow customization of NEWS entry format
31091         * top/maint.mk (news-date-regexp): New overridable variable.
31092         (news-date-check): Use it.
31093
31094 2009-12-04  Eric Blake  <ebb9@byu.net>
31095
31096         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31097         * lib/mgetgroups.h (xgetgroups): New prototype.
31098         * lib/mgetgroups.c (xgetgroups): New wrapper.
31099         (mgetgroups): Handle ENOSYS.
31100         * modules/mgetgroups (Depends-on): Add realloc.
31101         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31102
31103         mgetgroups: avoid argument promotion issues with -1
31104         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31105         for invalid gid_t.
31106         * tests/test-chown.h (getegid, test_chown): Likewise.
31107         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31108
31109 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31110
31111         exclude: Fix header file problems.
31112         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31113
31114 2009-12-01  Jim Meyering  <meyering@redhat.com>
31115
31116         fts: fts_open: do not let an empty string cause immediate failure
31117         This is required in support of GNU rm, for which the command
31118         "rm A '' B" must process and remove both A and B, in spite of
31119         the empty string argument.
31120         * lib/fts.c (fts_open): Do not let the presence of an empty string
31121         cause fts_open to fail immediately.  Most fts-using tools must be
31122         able to process all arguments, in order, and can be expected to
31123         diagnose such arguments themselves.
31124
31125 2009-11-30  Eric Blake  <ebb9@byu.net>
31126
31127         utimens: fix compilation error
31128         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31129         Declare variable at right scope.
31130
31131 2009-11-29  Jim Meyering  <meyering@redhat.com>
31132
31133         bootstrap: handle perl-5.11's changed --version output
31134         * build-aux/bootstrap (get_version): Handle perl separately,
31135         since perl-5.11's --version output is different.
31136
31137 2009-11-28  Jim Meyering  <meyering@redhat.com>
31138
31139         userspec: depend on the inttostr module, too
31140         * modules/userspec (Depends-on): Add inttostr.
31141
31142         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31143         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31144         number of MAXUID when it evaluates to (uid_t) -1.
31145         Likewise for group ID.  Reported by Matt McCutchen in
31146         <http://savannah.gnu.org/bugs/?28113>
31147
31148         userspec: reformat to use spaces, not TABs
31149         * lib/userspec.c: Expand TABs to spaces.
31150         Add Emacs' "indent-tabs-mode: nil" hint.
31151
31152 2009-11-27  Eric Blake  <ebb9@byu.net>
31153
31154         getopt-gnu: flush out another BSD bug
31155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31156         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31157         flush out BSD bug.
31158         * tests/test-getopt.h (test_getopt): End lists with NULL.
31159         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31160         (test_getopt_long_posix): Enhance test.
31161         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31162         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31163         getopt-gnu.
31164         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31165         Likewise.
31166
31167 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31168
31169         * modules/idpriv-droptemp-tests (Notice): Fix text.
31170
31171 2009-11-27  Jim Meyering  <meyering@redhat.com>
31172
31173         test-xalloc-die: avoid spurious failure due to libtool argv difference
31174         In a libtool-enabled project, this test would fail due to a difference
31175         in the emitted program name, e.g.,
31176         -test-xalloc-die: memory exhausted
31177         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31178         Use program to avoid that.
31179         * modules/xalloc-die-tests (Depends-on): Add progname.
31180         * tests/test-xalloc-die.c: Include progname.h".
31181         (program_name): Remove decl.
31182         (main): Call set_program_name.
31183         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31184
31185 2009-11-26  Richard Jones  <rjones@redhat.com>
31186
31187         w32sock: leave win32 error in place.
31188         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31189
31190 2009-11-26  Eric Blake  <ebb9@byu.net>
31191
31192         init.sh: suggest to use skip_ and fail_ functions in comments
31193         * tests/init.sh: Add a sentence.
31194
31195 2009-11-25  Bruno Haible  <bruno@clisp.org>
31196
31197         init.sh: add documentation in comments
31198         * tests/init.sh: Add some developer and user documentation.
31199
31200 2009-11-26  Jim Meyering  <meyering@redhat.com>
31201
31202         init.sh: accommodate even those who specify bogus srcdir manually
31203         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31204         configure-time tests to be sanitized, so that there is no need to
31205         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31206         (with no double quotes) suffices.  However, since tests may be
31207         invoked manually, and since you may explicitly set srcdir to the
31208         name of a directory containing spaces, do quote its uses here.
31209         * tests/test-pread.sh: Likewise.
31210         Suggested by Bruno Haible.
31211
31212         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31213         * tests/test-pread.sh: Write no data into the pipe, because
31214         test-pread actually reads none.  This avoids a diagnostic,
31215         "bash: echo: write error: Broken pipe", that arises in the unusual
31216         event something is ignoring SIGPIPE, and might be interpreted
31217         as some sort of failure.  Reported by Bruno Haible.
31218
31219 2009-11-25  Jim Meyering  <meyering@redhat.com>
31220
31221         test-pread: cover failure with ESPIPE and EINVAL
31222         * tests/test-pread.c (main): Test for failure, too.
31223         * tests/test-pread.sh: Invoke with stdin on a pipe.
31224         Suggested by Eric Blake.
31225
31226         pread: improvement and fix
31227         * modules/pread (Depends-on): Depend on lseek, for portability to
31228         e.g., mingw.  Suggested by Eric Blake.
31229         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31230
31231         unistd.in.h: correct declaration of pread
31232         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31233         Reported by Richard W.M. Jones.
31234
31235         test-pread.sh: distribute the test script
31236         * modules/pread-tests (Files): Include test-pread.sh.
31237
31238         test-pread.sh: clean up
31239         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31240         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31241         That is unnecessary, since it's always ".".
31242         Suggestion from Eric Blake.
31243
31244         test-pread.sh: make executable
31245         * tests/test-pread.sh: Set executable bit.
31246         Reported by Eric Blake.
31247
31248         correct typo in test-pread.sh
31249         * tests/test-pread.sh: Add #! line.
31250
31251         test pread
31252         * tests/test-pread.c: New file.
31253         * tests/test-pread.sh: Likewise.
31254         * modules/pread-tests: Likewise.
31255
31256         pread: new module
31257         * modules/pread: New file.
31258         * lib/unistd.in.h (pread): Define/declare.
31259         * lib/pread.c (pread): New file.
31260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31261         * modules/unistd (Makefile.am): Substitute witnesses.
31262         * doc/posix-functions/pread.texi (pread): Update.
31263         * MODULES.html.sh: Add pread.
31264
31265 2009-11-25  Jim Meyering  <meyering@redhat.com>
31266
31267         tests/init.sh: new file to be used via most *.sh tests
31268         * tests/init.sh: New file.
31269
31270 2009-11-25  Eric Blake  <ebb9@byu.net>
31271
31272         utimens: work around older Linux failure with symlinks
31273         * lib/utimens.c (lutimensat_works_really): New variable.
31274         (fdutimens, lutimens): Use it to manage kernels that support
31275         nanosecond times on files, but not on symlinks.
31276         Reported by OndÅ™ej Vašík.
31277
31278         utimes: fix configure grammar
31279         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31280
31281 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31282
31283         regex: Fix fastmap for multibyte character ranges.
31284         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31285         characters when a multibyte character range is included.
31286
31287 2009-11-22  Andy Wingo  <wingo@pobox.com>
31288
31289         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31290         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31291
31292 2009-11-24  Bruno Haible  <bruno@clisp.org>
31293
31294         doc: Most *_l functions exist in MacOS X 10.5.
31295         * doc/posix-functions/duplocale.texi: Update platforms list.
31296         * doc/posix-functions/freelocale.texi: Likewise.
31297         * doc/posix-functions/newlocale.texi: Likewise.
31298         * doc/posix-functions/uselocale.texi: Likewise.
31299         * doc/posix-functions/isalnum_l.texi: Likewise.
31300         * doc/posix-functions/isalpha_l.texi: Likewise.
31301         * doc/posix-functions/isblank_l.texi: Likewise.
31302         * doc/posix-functions/iscntrl_l.texi: Likewise.
31303         * doc/posix-functions/isdigit_l.texi: Likewise.
31304         * doc/posix-functions/isgraph_l.texi: Likewise.
31305         * doc/posix-functions/islower_l.texi: Likewise.
31306         * doc/posix-functions/isprint_l.texi: Likewise.
31307         * doc/posix-functions/ispunct_l.texi: Likewise.
31308         * doc/posix-functions/isspace_l.texi: Likewise.
31309         * doc/posix-functions/isupper_l.texi: Likewise.
31310         * doc/posix-functions/iswalnum_l.texi: Likewise.
31311         * doc/posix-functions/iswalpha_l.texi: Likewise.
31312         * doc/posix-functions/iswblank_l.texi: Likewise.
31313         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31314         * doc/posix-functions/iswctype_l.texi: Likewise.
31315         * doc/posix-functions/iswdigit_l.texi: Likewise.
31316         * doc/posix-functions/iswgraph_l.texi: Likewise.
31317         * doc/posix-functions/iswlower_l.texi: Likewise.
31318         * doc/posix-functions/iswprint_l.texi: Likewise.
31319         * doc/posix-functions/iswpunct_l.texi: Likewise.
31320         * doc/posix-functions/iswspace_l.texi: Likewise.
31321         * doc/posix-functions/iswupper_l.texi: Likewise.
31322         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31323         * doc/posix-functions/isxdigit_l.texi: Likewise.
31324         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31325         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31326         * doc/posix-functions/strcoll_l.texi: Likewise.
31327         * doc/posix-functions/strfmon_l.texi: Likewise.
31328         * doc/posix-functions/strftime_l.texi: Likewise.
31329         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31330         * doc/posix-functions/strxfrm_l.texi: Likewise.
31331         * doc/posix-functions/tolower_l.texi: Likewise.
31332         * doc/posix-functions/toupper_l.texi: Likewise.
31333         * doc/posix-functions/towctrans_l.texi: Likewise.
31334         * doc/posix-functions/towlower_l.texi: Likewise.
31335         * doc/posix-functions/towupper_l.texi: Likewise.
31336         * doc/posix-functions/wcscoll_l.texi: Likewise.
31337         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31338         * doc/posix-functions/wctrans_l.texi: Likewise.
31339         * doc/posix-functions/wctype_l.texi: Likewise.
31340         * doc/glibc-functions/strptime_l.texi: Likewise.
31341         * doc/glibc-functions/strtod_l.texi: Likewise.
31342         * doc/glibc-functions/strtof_l.texi: Likewise.
31343         * doc/glibc-functions/strtol_l.texi: Likewise.
31344         * doc/glibc-functions/strtold_l.texi: Likewise.
31345         * doc/glibc-functions/strtoll_l.texi: Likewise.
31346         * doc/glibc-functions/strtoul_l.texi: Likewise.
31347         * doc/glibc-functions/strtoull_l.texi: Likewise.
31348         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31349         * doc/glibc-functions/wcstod_l.texi: Likewise.
31350         * doc/glibc-functions/wcstof_l.texi: Likewise.
31351         * doc/glibc-functions/wcstol_l.texi: Likewise.
31352         * doc/glibc-functions/wcstold_l.texi: Likewise.
31353         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31354         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31355         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31356
31357 2009-11-24  Bruno Haible  <bruno@clisp.org>
31358
31359         duplocale: Fix logic bug.
31360         * lib/duplocale.c: Don't include <langinfo.h>.
31361         (_NL_LOCALE_NAME): Remove macro.
31362         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31363         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31364
31365 2009-11-23  Jim Meyering  <meyering@redhat.com>
31366
31367         test-update-copyright: don't hard-code /usr/bin/perl
31368         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31369         perl to print the current year.  Gilles Espinasse reported that
31370         the replaced use of perl was hard-coded as /usr/bin/perl.
31371
31372 2009-11-23  Bruno Haible  <bruno@clisp.org>
31373
31374         duplocale: Add support for glibc 2.3.x.
31375         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31376
31377 2009-11-22  Bruno Haible  <bruno@clisp.org>
31378
31379         vasnprintf: Tiny optimization.
31380         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31381         MacOS X.
31382
31383 2009-11-22  Bruno Haible  <bruno@clisp.org>
31384
31385         Tests for module 'duplocale'.
31386         * modules/duplocale-tests: New file.
31387         * tests/test-duplocale.c: New file.
31388
31389         New module 'duplocale'.
31390         * m4/duplocale.m4: New file.
31391         * lib/locale.in.h (duplocale): New declaration.
31392         * lib/duplocale.c: New file.
31393         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31394         gl_LOCALE_H_DEFAULTS): New macros.
31395         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31396         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31397         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31398         REPLACE_DUPLOCALE.
31399         * modules/duplocale: New file.
31400         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31401
31402 2009-11-22  Bruno Haible  <bruno@clisp.org>
31403
31404         * modules/locale-tests (configure.ac): Test for newlocale function.
31405         * tests/test-locale.c: When the system has extended locale functions,
31406         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31407
31408         locale: Make locale_t available when possible.
31409         * lib/locale.in.h: Include <xlocale.h> when it exists.
31410         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31411         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31412         * modules/locale (Depends-on): Add extensions.
31413         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31414         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31415
31416 2009-11-22  Bruno Haible  <bruno@clisp.org>
31417
31418         Add comments.
31419         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31420         invocation.
31421         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31422         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31423         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31424
31425 2009-11-22  Bruno Haible  <bruno@clisp.org>
31426
31427         error: account for the possibility of freopen (stdout).
31428         * lib/error.c: Include <unistd.h>.
31429         (flush_stdout): New function, extracted from error and error_at_line.
31430         Determine stdout's fd dynamically.
31431         (error, error_at_line): Invoke flush_stdout.
31432         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31433         * modules/error (Depends-on): Add unistd.
31434
31435 2009-11-22  Bruno Haible  <bruno@clisp.org>
31436
31437         diffseq: Add comment.
31438         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31439
31440 2009-11-22  Jim Meyering  <meyering@redhat.com>
31441
31442         c-stack: avoid defining an unused static function
31443         * lib/c-stack.c (find_stack_direction): Do not define this function
31444         when it will not be used.
31445
31446         diffseq: avoid spurious gcc warnings
31447         * lib/diffseq.h (IF_LINT2): Define.
31448         (compareseq): Use it to initialize two members of "part".
31449         This avoids two used-uninitialized warnings.
31450
31451 2009-11-21  Jim Meyering  <meyering@redhat.com>
31452
31453         c-stack: avoid "ignoring return value of `write'" warning
31454         * lib/c-stack.c: Include "ignore-value.h".
31455         (die): Explicitly ignore each write return value.
31456         * modules/c-stack (Depends-on): Add ignore-value.
31457
31458 2009-11-21  Bruno Haible  <bruno@clisp.org>
31459
31460         diffseq: reduce scope of variable 'best'.
31461         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31462         variable, earlier used for two different purposes.
31463
31464 2009-11-21  Jim Meyering  <meyering@redhat.com>
31465
31466         diffseq: remove useless assignment to "best"
31467         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31468         assignment.  At that point "best" is already guaranteed to be zero.
31469
31470 2009-11-20  Eric Blake  <ebb9@byu.net>
31471
31472         build: mention ftp redirector in release announcements
31473         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31474         values that used to come from cfg.mk; mention FTP redirect URL.
31475         * build-aux/announce-gen: Mention the mirror list.
31476         Suggested by Karl Berry.
31477
31478         nanosleep: improve port to mingw
31479         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31481         LIB_NANOSLEEP, but only when needed.
31482         * modules/select (Link): Document LIBSOCKET.
31483         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31484         enough.
31485
31486         nanosleep: work around cygwin bug
31487         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31488         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31489         bug.
31490         (getnow): Delete, not needed.
31491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31492         LIB_CLOCK_GETTIME.
31493         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31494         clock-time, gettime.
31495         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31496         bug.
31497         * modules/nanosleep-tests: New test.
31498         * tests/test-nanosleep.c: New file.
31499
31500         sleep: work around cygwin bug
31501         * lib/sleep.c (rpl_sleep): Work around the bug.
31502         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31503         (gl_PREREQ_SLEEP): Delete unused macro.
31504         * modules/sleep (Depends-on): Add verify.
31505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31506         * modules/unistd (Makefile.am): Substitute witness.
31507         * lib/unistd.in.h (sleep): Update prototype.
31508         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31509         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31510         * modules/sleep-tests (Depends-on): Check for alarm.
31511
31512 2009-11-20  Jim Meyering  <meyering@redhat.com>
31513
31514         maint.mk: improve sc_prohibit_magic_number_exit
31515         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31516         so it does not match uses like System.exit(1).
31517         Add comments showing how to correct all offenders.
31518
31519 2009-11-19  Eric Blake  <ebb9@byu.net>
31520
31521         xalloc-die-tests: add missing library
31522         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31523
31524         test-xvasprintf: silence compiler warnings
31525         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31526         empty string from gcc.
31527
31528 2009-11-19  Jim Meyering  <meyering@redhat.com>
31529
31530         xfreopen: new module, from coreutils
31531         * modules/xfreopen: New module.
31532         * lib/xfreopen.c: New file.
31533         * lib/xfreopen.h: New file.
31534         * MODULES.html.sh (File stream based Input/Output"): Add it.
31535
31536 2009-11-19  Eric Blake  <ebb9@byu.net>
31537
31538         manywarnings: depend on warnings
31539         * modules/manywarnings (Depends-on): Add warnings.
31540
31541         build: avoid compiler warnings
31542         * lib/select.c (rpl_select): Delete unused variable.
31543         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31544
31545 2009-11-18  Eric Blake  <ebb9@byu.net>
31546
31547         tests: avoid false negative with --with-packager
31548         * tests/test-version-etc.sh: Discard packager information.
31549         * tests/test-argp-version-etc-1.sh: Likewise.
31550         Reported by Mike Frysinger.
31551
31552         utimens: fix regression on Solaris
31553         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31554         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31555         can only change fd timestamps via futimesat.  Instead, use an
31556         additional witness macro to avoid BSD bug.
31557         Reported by Jim Meyering.
31558
31559 2009-11-17  Eric Blake  <ebb9@byu.net>
31560
31561         usleep: use it to simplify tests
31562         * modules/stat-time-tests (Depends-on): Add usleep.
31563         (configure.ac): Drop usleep check.
31564         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31565         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31566         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31567         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31568         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31569         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31570         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31571         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31572         Likewise.
31573         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31574         * tests/test-lchown.h (nap): Likewise.
31575         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31576         * tests/test-stat-time.c (nap): Likewise.
31577         * tests/test-utimens-common.h (nap): Update comments.
31578
31579         usleep: new module
31580         * modules/usleep: New file.
31581         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31582         * lib/usleep.c (usleep): Likewise.
31583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31584         * modules/unistd (Makefile.am): Substitute witnesses.
31585         * lib/unistd.in.h (usleep): Add declaration.
31586         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31587         * MODULES.html.sh (Date and time): Likewise.
31588         * modules/usleep-tests (Depends-on): New test.
31589         * tests/test-usleep.c: New file.
31590
31591         chown: work around OpenBSD bug
31592         * lib/chown.c (rpl_chown): Work around the bug.
31593         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31594         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31595         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31596         * modules/chown (Depends-on): Add stdbool.
31597         * modules/lchown (Depends-on): Likewise.
31598         * doc/posix-functions/chown.texi (chown): Document the bug.
31599         * doc/posix-functions/lchown.texi (lchown): Likewise.
31600         * tests/test-lchown.h (test_chown): Relax test.
31601
31602         mkstemp: avoid conflict with C++ keyword template
31603         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31604         * lib/mkostemp.c (mkostemp): Likewise.
31605         * lib/mkostemps.c (mkostemps): Likewise.
31606         * lib/mkstemp.c (mkstemp): Likewise.
31607         * lib/mkstemps.c (mkstemps): Likewise.
31608
31609         xalloc-die-tests: optimize
31610         * tests/test-xalloc-die.sh: Reduce number of processes.
31611
31612 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31613
31614         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31615         patch from ludo@gnu.org (Ludovic Courtès).
31616
31617 2009-11-17  Jim Meyering  <meyering@redhat.com>
31618
31619         version-etc: use proper license string
31620         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31621         * modules/version-etc-fsf: Likewise.
31622
31623 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31624
31625         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31626         printed to stdout.  Deal with EOL differences.
31627
31628 2009-11-17  Eric Blake  <ebb9@byu.net>
31629
31630         unsetenv: work around Solaris bug
31631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31632         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31633         Reported by Jim Meyering.
31634
31635         vasnprintf: avoid compiler warnings
31636         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31637         variables.
31638         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31639
31640 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31641
31642         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31643         settings since xalloc-die is no longer the self test,
31644         xalloc-die.sh is.
31645
31646 2009-11-17  Jim Meyering  <meyering@redhat.com>
31647
31648         test-xalloc-die.sh: make the code agree with the commit log
31649         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31650         at the end, just in case you happen to have a test-xalloc-die
31651         program in some other PATH directory.
31652
31653         test-xalloc-die.sh: fix a portability bug
31654         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31655         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31656         Otherwise, argv[0] (as often seen in diagnostics) would be too
31657         system-dependent, sometimes with, and sometimes without the leading "./".
31658
31659         version-etc-fsf: relax license to LGPLv3+
31660         * modules/version-etc-fsf (License): Relax license.
31661
31662 2009-11-16  Eric Blake  <ebb9@byu.net>
31663
31664         xalloc-die-tests: avoid printing null pointer
31665         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31666         shell script.
31667         * tests/test-xalloc-die.c (program_name): Declare.
31668         * tests/test-xalloc-die.sh (tmpfiles): New file.
31669
31670         setenv, unsetenv: work around various bugs
31671         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31672         (setenv) [HAVE_SETENV]: Work around bugs.
31673         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31674         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31675         for bugs.
31676         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31677         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31679         * modules/stdlib (Makefile.am): Update substitutions.
31680         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31681         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31682         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31683         * modules/setenv-tests: New test.
31684         * modules/unsetenv-tests: Likewise.
31685         * tests/test-setenv.c: New file.
31686         * tests/test-unsetenv.c: Likewise.
31687
31688 2009-11-16  Jim Meyering  <meyering@redhat.com>
31689
31690         version-etc: relax license to LGPLv3+
31691         * modules/version-etc (License): Relax license.
31692
31693         better AC_REQUIRE expanded-before-required-warning avoidance
31694         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31695         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31696         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31697         which is no longer needed.
31698
31699 2009-11-16  Eric Blake  <ebb9@byu.net>
31700
31701         test-freading: clean up temporary file
31702         * tests/test-freading.c (main): Remove file on success, and use
31703         ASSERT more liberally.
31704         Reported by Jim Meyering.
31705
31706 2009-11-16  Jim Meyering  <meyering@redhat.com>
31707
31708         avoid new AC_REQUIRE expanded-before-required warnings
31709         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31710         merely using it.
31711         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31712         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31713
31714 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31715
31716         * tests/test-xalloc-die.c: New file.
31717         * modules/xalloc-die-tests: New file.
31718         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31719         XFAIL_TESTS so it can be appended by modules.
31720
31721 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31722
31723         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31724         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31725
31726 2009-11-14  Eric Blake  <ebb9@byu.net>
31727
31728         fnmatch: avoid compiler warning
31729         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31730         to silence compiler warning about mismatch signedness in ?:.
31731         Reported by Robert Millan.
31732
31733         intprops: add double-inclusion guard
31734         * lib/intprops.h: Allow idempotent includes.
31735         Suggested by Bruce Korb.
31736
31737         openat: detect Solaris fchownat bug
31738         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31739         penalizing glibc chownat when only lchownat is broken.
31740         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31741         trailing slash bugs.
31742         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31743         * modules/openat-tests (Files): Include more files.
31744         (Depends-on): Add mgetgroups, sleep, stat-time.
31745         (configure.ac): Add additional checks.
31746         (Makefile.am): Build new test.
31747         * tests/test-fchownat.c: New file.
31748
31749         lchown: detect Solaris and FreeBSD bug
31750         * lib/lchown.c (rpl_lchown): Work around bug.
31751         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31753         * modules/unistd (Makefile.am): Populate it.
31754         * lib/unistd.in.h (lchown): Update declaration.
31755         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31756         * modules/lchown-tests: New file.
31757         * tests/test-lchown.h (test_lchown): Likewise.
31758         * tests/test-lchown.c (main): Likewise.
31759
31760         chown: detect Solaris and FreeBSD bug
31761         * lib/chown.c (rpl_chown): Work around bug.
31762         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31763         (gl_PREREQ_CHOWN): Delete.
31764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31765         * modules/unistd (Makefile.am): Populate it.
31766         * lib/unistd.in.h (chown): Update declaration.
31767         * lib/lchown.c (chown): Update client.
31768         * modules/lchown (Depends-on): Add lstat.
31769         * doc/posix-functions/chown.texi (chown): Document the bug.
31770         * doc/posix-functions/getgroups.texi (getgroups): Document
31771         getgroups pitfall.
31772         * modules/chown-tests: New file.
31773         * tests/test-chown.h (test_chown): Likewise.
31774         * tests/test-chown.c (main): Likewise.
31775
31776 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31777
31778         gnulib-tool: correctly detect absence of m4 directories
31779         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31780
31781 2009-11-14  Jim Meyering  <meyering@redhat.com>
31782
31783         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31784         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31785
31786 2009-11-14  John W. Eaton  <jwe@gnu.org>
31787
31788         strftime.h: wrap funtion declaration in extern "C" block
31789         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31790
31791 2009-11-13  Eric Blake  <ebb9@byu.net>
31792
31793         getgroups: avoid compiler warning
31794         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31795
31796         getgroups: work around FreeBSD bug
31797         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31798         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31799         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31800         * tests/test-getgroups.c (main): Fix buffer overrun.
31801
31802         getgroups: avoid compilation failure
31803         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31804         * modules/getgroups (Depends-on): Add stdint.
31805
31806 2009-11-13  Jim Meyering  <meyering@redhat.com>
31807
31808         test-getgroups: avoid compilation failure
31809         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31810
31811 2009-11-13  Eric Blake  <ebb9@byu.net>
31812
31813         mgetgroups: new module, taken from coreutils
31814         * modules/mgetgroups: New file.
31815         * lib/mgetgroups.h: Likewise.
31816         * lib/mgetgroups.c (mgetgroups): Likewise.
31817         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31818         * MODULES.html.sh (Users and groups): Mention it.
31819
31820         getgroups: don't expose GETGROUPS_T to user
31821         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31822         an element at a time if GETGROUPS_T is wrong size.
31823         * lib/getugroups.h (getugroups): Change signature.
31824         * lib/unistd.in.h (getgroups): Likewise.
31825         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31826         signature needs fixing.
31827         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31828         AC_TYPE_GETGROUPS.
31829         * modules/group-member (Depends-on): Add getgroups.
31830         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31831         (group_member): Rely on getgroups replacement.
31832         * lib/getugroups.c (getugroups): Use gid_t.
31833         * tests/test-getgroups.c (main): Likewise.
31834         * NEWS: Mention the signature change.
31835         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31836         problem with signature.
31837         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31838         GETGROUPS_T is still useful for setgroups.
31839
31840         getgroups, getugroups: provide stubs for mingw
31841         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31842         * lib/getugroups.c (getugroups): Likewise.
31843         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31844         function.  Modernize replacement scheme.
31845         (gl_PREREQ_GETGROUPS): Delete.
31846         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31847         * modules/getgroups (configure.ac): Declare witness.
31848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31849         * modules/unistd (Depends-on): Substitute witness.
31850         * lib/unistd.in.h (getgroups): Declare replacement.
31851
31852         getgroups: avoid calling exit
31853         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31854         drop xalloc.
31855         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31856         dependencies.
31857         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31858         exiting, in the rare case of malloc failure.
31859
31860         getgroups: fix logic error
31861         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31862         has more than 20 groups.
31863         * modules/getgroups-tests: New test.
31864         * tests/test-getgroups.c: New file.
31865
31866 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31867
31868         * tests/test-base64.c: Improve.
31869
31870 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31871
31872         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31873         Blake <ebb9@byu.net>.
31874
31875 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31876
31877         * tests/test-xvasprintf.c: Add %s%s related checks.
31878
31879 2009-11-12  Eric Blake  <ebb9@byu.net>
31880
31881         version-etc: match standards.texi style
31882         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31883         and use <> only for URLs.
31884
31885 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31886
31887         fts: do not fail on a submount during traversal
31888         * lib/fts.c (fts_build): Read the stat info again after opening
31889         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31890         Original report at http://bugzilla.redhat.com/501848.
31891
31892 2009-11-12  Jim Meyering  <meyering@redhat.com>
31893
31894         bootstrap: sync from coreutils
31895         * build-aux/bootstrap (bootstrap_epilogue): New function.
31896         Use git_modules_config in one more place.  This make bootstrap's
31897         --gnulib-srcdir option more useful for testing.
31898
31899         bootstrap: generalize autoheader check
31900         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31901         AC_CONFIG_HEADERS.
31902
31903 2009-11-11  Eric Blake  <ebb9@byu.net>
31904
31905         mkfifoat: use new modules for Solaris and BSD bugs
31906         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31907         * lib/mkfifoat.c (mknodat): Split...
31908         * lib/mknodat.c (mknodat): ...into new file.
31909         * modules/mkfifoat (Files): Ship new file.
31910         (Depends-on): Add mkfifo, mknod.
31911         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31912         (Depends-on): Add symlink.
31913         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31914         redundant with test_mkfifo.h.
31915         (do_mkfifoat, do_mknodat): New helpers.
31916
31917         mknod: new module
31918         * modules/mknod: New file.
31919         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31920         * lib/mknod.c (mknod): Likewise.
31921         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31922         defaults.
31923         * modules/sys_stat (Makefile.am): Substitute them.
31924         * lib/sys_stat.in.h (mknod): Declare replacement.
31925         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31926         Document it.
31927         * doc/posix-functions/mknod.texi (mknod): Likewise.
31928         * modules/mknod-tests: New test.
31929         * tests/test-mknod.c: Likewise.
31930
31931         mkfifo: new module
31932         * modules/mkfifo: New file.
31933         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31934         * lib/mkfifo.c (mkfifo): Likewise.
31935         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31936         defaults.
31937         * modules/sys_stat (Makefile.am): Substitute them.
31938         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31939         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31940         Document it.
31941         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31942         * modules/mkfifo-tests: New test.
31943         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31944         from test-mkfifoat.c.
31945         * tests/test-mkfifo.c: New file.
31946
31947         readlink: detect FreeBSD bug
31948         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31949         slash on symlink.
31950         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31951         * tests/test-readlink.h (test_readlink): Enhance test.
31952
31953         symlink: detect FreeBSD bug
31954         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31955         slash on symlink.
31956         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31957         * tests/test-symlink.h (test_symlink): Enhance test.
31958
31959 2009-11-10  Eric Blake  <ebb9@byu.net>
31960
31961         link: detect FreeBSD bug
31962         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31963         symlink.
31964         * doc/posix-functions/link.texi (link): Document the bug.
31965         * tests/test-link.h (test_link): Enhance test.
31966         * tests/test-linkat.c (main): Update caller.
31967
31968         unlink, remove: detect FreeBSD bug
31969         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31970         slash on symlink.
31971         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31972         * doc/posix-functions/remove.texi (remove): Likewise.
31973         * tests/test-unlink.h (test_unlink): Enhance test.
31974         * tests/test-remove.c (main): Likewise.
31975
31976 2009-11-09  Eric Blake  <ebb9@byu.net>
31977
31978         rename: detect FreeBSD bug
31979         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31980         slash on symlink.
31981         * modules/renameat-tests (Depends-on): Add filenamecat.
31982         * tests/test-rename.h (test_rename): Allow one more errno.
31983         * tests/test-renameat.c (main): Likewise.
31984         * doc/posix-functions/rename.texi (rename): Document the bug.
31985
31986         open: detect FreeBSD bug
31987         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31988         symlink.
31989         * doc/posix-functions/open.texi (open): Document the bug.
31990         * doc/posix-functions/utimes.texi (utimes): Likewise.
31991         * tests/test-open.h (test_open): Add parameters, and test symlink
31992         handling.
31993         * tests/test-open.c (main): Adjust caller.
31994         * tests/test-fcntl-safer.c (main): Likewise.
31995         * modules/open-tests (Depends-on): Add stdbool, symlink.
31996         * modules/fcntl-safer-tests (Depends-on): Likewise.
31997         * tests/test-openat.c (main): Add test-open tests.
31998
31999         stat: detect FreeBSD bug
32000         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32001         symlink.
32002         * doc/posix-functions/stat.texi (stat): Document the bug.
32003         * tests/test-stat.h (test_stat_func): Add argument.
32004         * tests/test-stat.c (main): Adjust caller.
32005         * tests/test-fstatat.c (main): Likewise.
32006         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32007         Reported by Jim Meyering.
32008
32009 2009-11-09  James Youngman  <jay@gnu.org>
32010
32011         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32012         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32013
32014 2009-11-08  Jim Meyering  <meyering@redhat.com>
32015
32016         utimens: remove invalid futimesat call
32017         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32018         It used the file descriptor of the target file as the DIR_FD
32019         parameter and NULL as the file name.  That caused failure with
32020         errno == EFAULT on FreeBSD-8.0-rc2
32021
32022 2009-11-07  Eric Blake  <ebb9@byu.net>
32023
32024         fflush, freadseek: use fseeko, not fseek
32025         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32026         (clear_ungetc_buffer): Avoid potential problems on large files.
32027         * lib/freadseek.c (freadseek): Likewise.
32028         * modules/freadseek (Depends-on): Add fseeko.
32029         * modules/fseek (configure.ac): Set a witness.
32030         * tests/test-fflush.c (main): Use fseeko.
32031         * tests/test-fpurge.c (fseek): Disable link warning.
32032         * tests/test-freadable.c (fseek): Likewise.
32033         * tests/test-freading.c (fseek): Likewise.
32034         * tests/test-fseeko.c (fseek): Likewise.
32035         * tests/test-ftell.c (fseek): Likewise.
32036         * tests/test-ftello.c (fseek): Likewise.
32037         * tests/test-fwritable.c (fseek): Likewise.
32038         * tests/test-fwriting.c (fseek): Likewise.
32039
32040 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32041
32042         * modules/memchr (Depends-on): Drop getpagesize dependency.
32043
32044 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32045
32046         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32047         Reported by Ludovic Courtès.
32048         * build-aux/pmccabe2html: Improve example usage.
32049         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32050
32051 2009-11-06  Jim Meyering  <meyering@redhat.com>
32052
32053         do-release-commit-and-tag: New module.
32054         Automate the release-commit and tag process.
32055         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32056         * modules/do-release-commit-and-tag: New file.
32057         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32058
32059 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32060
32061         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32062         because test-select.c uses inet_pton.
32063
32064 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32065
32066         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32067         GETADDRINFO_LIB.  Bump serial number.
32068         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32069         Suggested by Eric Blake <ebb9@byu.net>.
32070
32071 2009-11-05  Eric Blake  <ebb9@byu.net>
32072
32073         strtod: detect darwin bug
32074         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32075         Reported by Leo Davis.
32076
32077         freopen-safer: new module
32078         * modules/freopen-safer: New module.
32079         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32080         * lib/freopen-safer.c (freopen_safer): New file.
32081         * lib/stdio-safer.h (freopen_safer): New declaration.
32082         * lib/stdio--.h (freopen): New override.
32083         * MODULES.html.sh (File stream based Input/Output): Mention it.
32084         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32085         freopen-safer module.
32086         * doc/posix-functions/stderr.texi (stderr): Likewise.
32087         * doc/posix-functions/stdin.texi (stdin): Likewise.
32088         * doc/posix-functions/stdout.texi (stdout): Likewise.
32089         * modules/freopen-safer-tests: New test.
32090         * tests/test-reopen-safer.c: New file.
32091
32092 2009-11-05  Jim Meyering  <meyering@redhat.com>
32093
32094         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32095         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32096
32097 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32098
32099         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32100
32101 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32102
32103         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32104
32105 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32106
32107         Fix link error.
32108         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32109         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32110
32111 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32112
32113         * tests/test-func.c: Also test value of __func__.
32114
32115 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32116
32117         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32118         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32119
32120 2009-11-05  Bruno Haible  <bruno@clisp.org>
32121
32122         Fix link error.
32123         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32124         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32125         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32126
32127 2009-11-05  Bruno Haible  <bruno@clisp.org>
32128
32129         Tests for module 'inet_pton'.
32130         * modules/inet_pton-tests: New file.
32131         * tests/test-inet_pton.c: New file.
32132
32133 2009-11-05  Bruno Haible  <bruno@clisp.org>
32134
32135         Tests for module 'inet_ntop'.
32136         * modules/inet_ntop-tests: New file.
32137         * tests/test-inet_ntop.c: New file.
32138
32139 2009-11-04  Eric Blake  <ebb9@byu.net>
32140
32141         stdlib-safer: wrap all mkstemp variants
32142         * modules/mkostemp (configure.ac): Set witness.
32143         * modules/mkostemps (configure.ac): Likewise.
32144         * modules/mkstemps (configure.ac): Likewise.
32145         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32146         (mkstemps_safer): Wrap more functions.
32147         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32148         wrapping.
32149         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32150         (mkstemps_safer): Implement the wrappers.
32151
32152         mkstemps, mkostemps: new modules
32153         * modules/mkostemps: New module.
32154         * modules/mkstemps: Likewise.
32155         * lib/mkostemps.c (mkostemps): New file.
32156         * lib/mkstemps.c (mkstemps): Likewise.
32157         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32158         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32160         * modules/stdlib (Makefile.am): Substitute them.
32161         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32162         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32163         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32164         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32165         * MODULES.html.sh (File system functions): Mention them.
32166
32167         tempname: resync from glibc
32168         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32169         same values for __GT_FILE as glibc.  Abort even when assertions
32170         are disabled.
32171         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32172         match its value otherwise.  Allow idempotent inclusion.
32173         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32174         * lib/mkostemp.c (mkostemp): Likewise.
32175         * lib/mkstemp.c (mkstemp): Likewise.
32176         * lib/tmpfile.c (tmpfile): Likewise.
32177         * NEWS: Document this.
32178
32179         utimens: fix use of futimens on older Linux
32180         * lib/utimens.c (fdutimens): Use updated, rather than original,
32181         timespec to avoid bug in older Linux kernel.
32182         Reported by Simon Josefsson.
32183
32184 2009-11-04  Bruno Haible  <bruno@clisp.org>
32185
32186         Make num_processors more flexible and consistent.
32187         * lib/nproc.h (enum nproc_query): New type.
32188         (num_processors): Add a 'query' argument.
32189         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32190         (num_processors): Add a 'query' argument. Test the value of the
32191         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32192         mingw, count the number of CPUs available for the current process.
32193         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32194         Check for sched_getaffinity and sched_getaffinity_np.
32195         * modules/nproc (Depends-on): Add c-ctype, extensions.
32196         * NEWS: Mention the change.
32197
32198 2009-11-03  Bruno Haible  <bruno@clisp.org>
32199
32200         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32201
32202 2009-11-03  Jim Meyering  <meyering@redhat.com>
32203
32204         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32205         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32206         if it is defined.
32207
32208 2009-11-02  Eric Blake  <ebb9@byu.net>
32209
32210         mktime, timegm: share common declaration
32211         * lib/mktime-internal.h: New file.
32212         * lib/mktime.c: Use it rather than open-coding a declaration.
32213         * lib/timegm.c: Likewise.
32214         * modules/mktime (Files): Ship it.
32215         * modules/timegm (Files): Likewise.
32216         Suggested by Bruno Haible.
32217
32218         test-update-copyright: update test to match script changes
32219         * tests/test-update-copyright.sh: Avoid hard-coding perl
32220         location.  Don't update *.bak created by earlier runs.
32221
32222 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32223             Simon Josefsson  <simon@josefsson.org>
32224             Bruno Haible  <bruno@clisp.org>
32225
32226         Fix link error on Solaris 8.
32227         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32228         also in libnsl. Define also INET_PTON_LIB.
32229         * modules/inet_pton (Link): New section.
32230
32231 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32232             Bruno Haible  <bruno@clisp.org>
32233
32234         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32235         * modules/inet_ntop (Link): New section.
32236         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32237
32238 2009-11-02  Eric Blake  <ebb9@byu.net>
32239
32240         maint: avoid compiler warnings in m4 macros
32241         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32242         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32243
32244 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32245
32246         * m4/pmccabe2html.m4: Remove file.
32247         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32248         function.  Change maintainer.
32249         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32250         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32251         Courtès).
32252
32253 2009-10-31  Eric Blake  <ebb9@byu.net>
32254
32255         fseeko: fix m4 regression
32256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32257         regression from 2009-10-27.
32258         Reported by Ralf Wildenhues.
32259
32260 2009-10-31  Jim Meyering  <meyering@redhat.com>
32261
32262         inttostr: aesthetics and improved (compile-time) safety
32263         Define inttype_is_signed rather than inttype_is_unsigned,
32264         since the sole use is via "#if inttype_is_signed".
32265         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32266         inttype_is_unsigned.
32267         * lib/offtostr.c (inttype_is_signed): Likewise.
32268         * lib/uinttostr.c (inttype_is_signed): Likewise.
32269         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32270         * lib/inttostr.c (inttostr): Use verify to cross-check the
32271         inttype_is_signed value and the signedness of the actual type.
32272         * modules/inttostr (Depends-on): Add verify.
32273
32274 2009-10-30  Eric Blake  <ebb9@byu.net>
32275
32276         build: avoid compiler warnings
32277         * lib/fchmodat.c (lchmod): Mark unused variables.
32278         * lib/getopt.c (_getopt_initialize): Likewise.
32279         * lib/mktime.c (__mktime_internal): Provide prototype.
32280         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32281         older gcc that do not understand #pragma GCC diagnostic.
32282         * lib/uinttostr.c (inttype_is_unsigned): Define.
32283         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32284
32285 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32286
32287         stat: fix compilation on AIX
32288         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32289         only see struct stat64.
32290
32291 2009-10-30  Eric Blake  <ebb9@byu.net>
32292
32293         exclude: make more robust
32294         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32295         rather than masking a coding bug.
32296         Suggested by Bruno Haible.
32297
32298 2009-10-30  Jim Meyering  <meyering@redhat.com>
32299
32300         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32301         Rather than putting #!/usr/bin/perl on the first line,
32302         start with a variant of what's recommended by "man perlrun" that
32303         invokes the first "perl" program from your shell's search path.
32304         * build-aux/gitlog-to-changelog: Replace #!... as above.
32305         Add a "Local Variables" perl mode setting.
32306         Prompted by a patch from Ludovic Courtès.
32307         Improved by Eric Blake.
32308         * build-aux/useless-if-before-free: Likewise.
32309         * build-aux/announce-gen: Likewise.
32310         * build-aux/update-copyright: Likewise.
32311
32312 2009-10-29  Eric Blake  <ebb9@byu.net>
32313
32314         filenamecat-lgpl: adjust clients
32315         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32316         filenamecat.
32317         * modules/renameat (Depends-on): Likewise.
32318
32319         filenamecat: split into filenamecat-lgpl
32320         * modules/filenamecat-lgpl: New module.
32321         * modules/filenamecat (Files): Move library-safe files into
32322         filenamecat-lgpl.
32323         (Depends-on): Add filenamecat-lgpl.
32324         (configure.ac): Declare witness.
32325         * lib/filenamecat.h (file_name_concat): Only declare when using
32326         GPL module.
32327         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32328         Move...
32329         * lib/filenamecat-lgpl.c: ...into new file.
32330         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32331         (gl_FILE_NAME_CONCAT): Use it.
32332         * MODULES.html.sh (File system functions): Mention new module.
32333
32334         argp: avoid memory leak
32335         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32336         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32337         base_name, since the latter malloc()s and can call exit().
32338         Leak introduced 2006-07-03.
32339
32340         dirname-lgpl: adjust clients that don't need full dirname
32341         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32342         * modules/filenamecat (Depends-on): Likewise.
32343         * modules/linkat (Depends-on): Likewise.
32344         * modules/mkancesdirs (Depends-on): Likewise.
32345         * modules/mkdir (Depends-on): Likewise.
32346         * modules/openat (Depends-on): Likewise.
32347         * modules/savewd (Depends-on): Likewise.
32348         * modules/rename (Depends-on): Likewise.
32349         (License): Relax license.
32350         * modules/mkdir-tests (Depends-on): Drop progname.
32351         (Makefile.am): Delete unneeded LDADD.
32352         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32353
32354         dirname: split into dirname-lgpl
32355         * modules/dirname-lgpl: New module.
32356         * modules/dirname (Files): Move library-safe files into
32357         dirname-lgpl.
32358         (Depends-on): Add dirname-lgpl.
32359         (configure.ac): Declare witness.
32360         * modules/double-slash-root (License): Relax license.
32361         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32362         module.
32363         * lib/dirname.c (dir_len, mdir_name): Move...
32364         * lib/dirname-lgpl.c: ...into new file.
32365         * lib/basename.c (last_component, base_len): Move...
32366         * lib/basename-lgpl.c: ...into new file.
32367         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32368         (gl_DIRNAME): Use it.
32369         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32370         Mention new module.
32371         * modules/dirname-tests (Depends-on): Add progname.
32372         * tests/test-dirname.c (program_name): Delete.
32373
32374         mkdir: make safe for libraries
32375         * modules/mkdir (Depends-on): Drop xalloc.
32376         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32377         exit.
32378
32379         tests: avoid some compiler warnings
32380         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32381         literals.
32382         * tests/test-memchr.c (main): Avoid type mismatch.
32383         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32384         * tests/test-base64.c (main): Likewise.
32385         * tests/test-getdelim.c (main): Likewise.
32386         * tests/test-gethostname.c (main): Likewise.
32387         * tests/test-getline.c (main): Likewise.
32388         * tests/test-netinet_in.c (main): Likewise.
32389         * tests/test-select.c (open_server_socket, main): Likewise.
32390         * tests/test-select-stdin.c (main): Likewise.
32391         * tests/test-sockets.c (main): Likewise.
32392         * tests/test-strsignal.c (main): Likewise.
32393         * tests/test-sys_select.c (main): Likewise.
32394         * tests/test-sys_socket.c (main): Likewise.
32395         * tests/test-u64.c (main): Likewise.
32396         * tests/test-xfprintf-posix.c (main): Likewise.
32397         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32398
32399         sockets: avoid compiler warning
32400         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32401
32402         maint: detect usage(1) and other suspicious exits
32403         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32404
32405 2009-10-29  Jim Meyering  <meyering@redhat.com>
32406
32407         timespec: long-to-int truncation could make timespec_cmp malfunction
32408         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32409         a multiple of 2^32 nanoseconds as no difference.
32410
32411 2009-10-28  Jim Meyering  <meyering@redhat.com>
32412
32413         fprintftime: wrap macro code argument in "do {...} while(0)"
32414         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32415         cpy macro must be a statement that can be followed by a semicolon.
32416         Now that the else clause contains a comment and is hence longer
32417         than one line, I require curly braces.  That in turn requires
32418         that we wrap this code block in the standard do...while(0).
32419
32420         fprintftime: remove stray semicolon from previous change
32421         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32422
32423         fprintftime: avoid a warning about ignored fwrite return value
32424         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32425         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32426         that is unsafe.
32427         * modules/fprintftime (Depends-on): Add ignore-value.
32428
32429         exclude: avoid an unwarranted warning
32430         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32431
32432 2009-10-27  Eric Blake  <ebb9@byu.net>
32433
32434         fseek: avoid compilation failure when fflush is replaced
32435         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32436         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32437         module is in use.
32438         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32439         module is not in use; since REPLACE_FSEEK worked otherwise.
32440         (GNULIB_FTELLO): Likewise for ftell.
32441         Reported by Ian Beckwith and others.
32442
32443 2009-10-27  Bruno Haible  <bruno@clisp.org>
32444
32445         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32446         Reported by Jim Meyering.
32447
32448 2009-10-27  Jim Meyering  <jim@meyering.net>
32449             Bruno Haible  <bruno@clisp.org>
32450
32451         Avoid warning despite dropping the return value of fwrite.
32452         * lib/unicodeio.c: Include ignore-value.h.
32453         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32454         * modules/unicodeio (Depends-on): Add ignore-value.
32455
32456 2009-10-26  Eric Blake  <ebb9@byu.net>
32457
32458         areadlinkat: fix fallback path
32459         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32460         pointer and zero.
32461
32462 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32463
32464         Use a better IO block size for modern systems
32465         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32466         * lib/md2.c: Likewise.
32467         * lib/md4.c: Likewise.
32468         * lib/md5.c: Likewise.
32469         * lib/sha1.c: Likewise.
32470         * lib/sha256.c: Likewise.
32471         * lib/sha512.c: Likewise.
32472
32473 2009-10-22  Eric Blake  <ebb9@byu.net>
32474
32475         tests: avoid several compiler warnings
32476         * tests/test-getcwd.c (main): Avoid buffer underflow.
32477         * tests/test-getdate.c (main): String literals are not safe with
32478         putenv, so use setenv.  Declare unused argument.
32479         * modules/getdate-tests (Depends-on): Add setenv.
32480         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32481         problems with string literals in char *.
32482         * tests/test-hash.c (main): Avoid shadowing declaration.
32483         (insert_new): Treat string literals as char const *.
32484         * tests/test-getopt.h (test_getopt): Likewise.
32485         (getopt_loop): Alter types to minimize casting elsewhere.
32486         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32487         (test_getopt_long_posix): Likewise.
32488         (do_getopt_long): Add wrapper to minimize casting.
32489         * tests/test-atexit.c (clear_temp_file): Use void.
32490         * tests/test-areadlink-with-size.c (main): Declare unused
32491         arguments.
32492         * tests/test-areadlink.c (main): Likewise.
32493         * tests/test-areadlinkat-with-size.c (main): Likewise.
32494         * tests/test-areadlinkat.c (main): Likewise.
32495         * tests/test-canonicalize-lgpl.c (main): Likewise.
32496         * tests/test-canonicalize.c (main): Likewise.
32497         * tests/test-dirent-safer.c (main): Likewise.
32498         * tests/test-dirname.c (main): Likewise.
32499         * tests/test-dup2.c (main): Likewise.
32500         * tests/test-fchdir.c (main): Likewise.
32501         * tests/test-fcntl-h.c (main): Likewise.
32502         * tests/test-fcntl-safer.c (main): Likewise.
32503         * tests/test-fdopendir.c (main): Likewise.
32504         * tests/test-fdutimensat.c (main): Likewise.
32505         * tests/test-fflush.c (main): Likewise.
32506         * tests/test-filenamecat.c (main): Likewise.
32507         * tests/test-filevercmp.c (main): Likewise.
32508         * tests/test-fopen-safer.c (main): Likewise.
32509         * tests/test-fopen.c (main): Likewise.
32510         * tests/test-fpending.c (main): Likewise.
32511         * tests/test-fpurge.c (main): Likewise.
32512         * tests/test-freading.c (main): Likewise.
32513         * tests/test-fstatat.c (main): Likewise.
32514         * tests/test-fsync.c (main): Likewise.
32515         * tests/test-futimens.c (main): Likewise.
32516         * tests/test-getndelim2.c (main): Likewise.
32517         * tests/test-gettimeofday.c (main): Likewise.
32518         * tests/test-getopt.c (main): Likewise.
32519         * tests/test-i-ring.c (main): Likewise.
32520         * tests/test-inttypes.c (main): Likewise.
32521         * tests/test-link.c (main): Likewise.
32522         * tests/test-lstat.c (main): Likewise.
32523         * tests/test-math.c (main): Likewise.
32524         * tests/test-md5.c (main): Likewise.
32525         * tests/test-memchr2.c (main): Likewise.
32526         * tests/test-memrchr.c (main): Likewise.
32527         * tests/test-mkdir.c (main): Likewise.
32528         * tests/test-mkdirat.c (main): Likewise.
32529         * tests/test-mkfifoat.c (main): Likewise.
32530         * tests/test-open.c (main): Likewise.
32531         * tests/test-openat-safer.c (main): Likewise.
32532         * tests/test-openat.c (main): Likewise.
32533         * tests/test-quotearg.c (main): Likewise.
32534         * tests/test-rawmemchr.c (main): Likewise.
32535         * tests/test-readlink.c (main): Likewise.
32536         * tests/test-remove.c (main): Likewise.
32537         * tests/test-rename.c (main): Likewise.
32538         * tests/test-renameat.c (main): Likewise.
32539         * tests/test-rmdir.c (main): Likewise.
32540         * tests/test-sha1.c (main): Likewise.
32541         * tests/test-signal.c (main): Likewise.
32542         * tests/test-sigaction.c (main): Likewise.
32543         * tests/test-stat.c (main): Likewise.
32544         * tests/test-stat-time.c (main): Likewise.
32545         * tests/test-stddef.c (main): Likewise.
32546         * tests/test-stdint.c (main): Likewise.
32547         * tests/test-stdio.c (main): Likewise.
32548         * tests/test-stdlib.c (main): Likewise.
32549         * tests/test-strchrnul.c (main): Likewise.
32550         * tests/test-strerror.c (main): Likewise.
32551         * tests/test-string.c (main): Likewise.
32552         * tests/test-strtod.c (main): Likewise.
32553         * tests/test-strverscmp.c (main): Likewise.
32554         * tests/test-symlink.c (main): Likewise.
32555         * tests/test-symlinkat.c (main): Likewise.
32556         * tests/test-sys_stat.c (main): Likewise.
32557         * tests/test-sys_time.c (main): Likewise.
32558         * tests/test-time.c (main): Likewise.
32559         * tests/test-unistd.c (main): Likewise.
32560         * tests/test-unlink.c (main): Likewise.
32561         * tests/test-unlinkat.c (main): Likewise.
32562         * tests/test-utimens.c (main): Likewise.
32563         * tests/test-utimensat.c (main): Likewise.
32564         * tests/test-version-etc.c (main): Likewise.
32565         * tests/test-wchar.c (main): Likewise.
32566         * tests/test-wctype.c (main): Likewise.
32567         * tests/test-xprintf-posix.c (main): Likewise.
32568         * tests/test-posixtm.c (main): Likewise.
32569         (STREQ): Delete unused macro.
32570         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32571         shadowed variables.
32572         * tests/test-memchr.c (main): Likewise.
32573
32574 2009-10-21  Eric Blake  <ebb9@byu.net>
32575
32576         areadlinkat: avoid failure on older glibc
32577         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32578         rather than mis-comparing 0 against FUNC_RESULT of char*.
32579
32580 2009-10-21  Bruno Haible  <bruno@clisp.org>
32581
32582         * modules/stpncpy (License): Relicense under LGPLv2+.
32583         Reported by David Lutterkort <lutter@redhat.com>.
32584
32585 2009-10-20  Eric Blake  <ebb9@byu.net>
32586
32587         utimensat: work around Solaris 9 bug
32588         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32589         has trailing slash bugs.
32590         * tests/test-lutimens.h (test_lutimens): Enhance test.
32591         * tests/test-utimens.h (test_utimens): Likewise.
32592         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32593         * doc/posix-functions/utimes.texi (utimes): Likewise.
32594         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32595         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32596         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32597         * doc/posix-functions/futimens.texi (futimens): Likewise.
32598
32599         fdutimensat: new module
32600         * modules/fdutimensat: New file.
32601         * lib/fdutimensat.c (fdutimensat): Likewise.
32602         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32603         * MODULES.html.sh (File system functions): Mention module.
32604         * modules/fdutimensat-tests: New test.
32605         * tests/test-fdutimensat.c: Likewise.
32606
32607         doc: regenerate INSTALL
32608         * doc/INSTALL: Reflect recent autoconf update.
32609         * doc/INSTALL.ISO: Likewise.
32610         * doc/INSTALL.UTF-8: Likewise.
32611
32612 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32613
32614         acl: warn if ACL support is not detected
32615         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32616
32617 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32618
32619         * lib/nproc.h: Add extern "C" block for C++.
32620
32621 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32622             Bruno Haible  <bruno@clisp.org>
32623
32624         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32625         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32626         * doc/posix-functions/isalpha.texi: Likewise.
32627         * doc/posix-functions/isblank.texi: Likewise.
32628         * doc/posix-functions/iscntrl.texi: Likewise.
32629         * doc/posix-functions/isdigit.texi: Likewise.
32630         * doc/posix-functions/isgraph.texi: Likewise.
32631         * doc/posix-functions/islower.texi: Likewise.
32632         * doc/posix-functions/isprint.texi: Likewise.
32633         * doc/posix-functions/ispunct.texi: Likewise.
32634         * doc/posix-functions/isspace.texi: Likewise.
32635         * doc/posix-functions/isupper.texi: Likewise.
32636         * doc/posix-functions/isxdigit.texi: Likewise.
32637
32638 2009-10-18  Bruno Haible  <bruno@clisp.org>
32639
32640         Tests for module 'isblank'.
32641         * modules/isblank-tests: New file.
32642         * tests/test-isblank.c: New file.
32643
32644         New module 'isblank'.
32645         * lib/isblank.c: New file.
32646         * m4/isblank.m4: New file.
32647         * modules/isblank: New file.
32648         * doc/posix-functions/isblank.texi: Mention the new module.
32649
32650 2009-10-18  Bruno Haible  <bruno@clisp.org>
32651
32652         New module 'ctype'.
32653         * lib/ctype.in.h: New file.
32654         * m4/ctype.m4: New file.
32655         * modules/ctype: New file.
32656         * doc/posix-headers/ctype.texi: Mention the new module.
32657
32658 2009-10-18  Jim Meyering  <meyering@redhat.com>
32659
32660         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32661         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32662         right after its initialization, rather than farther down.
32663         Keeping these in close proximity makes it easier to ensure
32664         that each such variable is initialized.  E.g.,
32665
32666             LIB_CLOCK_GETTIME=
32667             AC_SUBST([LIB_CLOCK_GETTIME])
32668
32669         This change also increments these serial numbers.
32670         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32671         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32673
32674 2009-10-18  Bruno Haible  <bruno@clisp.org>
32675
32676         Don't let environment variables perturb build.
32677         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32678         (gl_PREREQ_GETHRXTIME): ... not here.
32679
32680 2009-10-18  Bruno Haible  <bruno@clisp.org>
32681
32682         Avoid symlink attack in localcharset module.
32683         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32684         (O_NOFOLLOW): Define fallback.
32685         (get_charset_aliases): Don't open the file if it is a symbolic link.
32686         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32687         gl_FCNTL_H.
32688         (gl_FCNTL_H): Require it.
32689         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32690         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32691         Reported by Fergal Glynn <fglynn@veracode.com>.
32692
32693 2009-10-18  Bruno Haible  <bruno@clisp.org>
32694
32695         Implement nproc for mingw.
32696         * lib/nproc.c: Include <windows.h>
32697         (num_processors): On native Windows platforms, try GetSystemInfo.
32698
32699 2009-10-18  Bruno Haible  <bruno@clisp.org>
32700
32701         Implement nproc for IRIX.
32702         * lib/nproc.c: Include <sys/sysmp.h>.
32703         (num_processors): On IRIX systems, try sysmp.
32704         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32705
32706 2009-10-18  Bruno Haible  <bruno@clisp.org>
32707
32708         Implement nproc for HP-UX.
32709         * lib/nproc.c: Include <sys/pstat.h>
32710         (num_processors): On HP-UX systems, try pstat_getdynamic.
32711         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32712         pstat_getdynamic.
32713
32714 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32715             Bruno Haible  <bruno@clisp.org>
32716
32717         Implement nproc for NetBSD, OpenBSD.
32718         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32719         (ARRAY_SIZE): New macro.
32720         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32721         * m4/nproc.m4: New file.
32722         * modules/nproc (Files): Add m4/nproc.m4.
32723         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32724         (Makefile.am): Instead, augment lib_SOURCES.
32725
32726 2009-10-18  Bruno Haible  <bruno@clisp.org>
32727
32728         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32729         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32730         sys/param.h.
32731
32732 2009-10-16  Eric Blake  <ebb9@byu.net>
32733
32734         utimensat: new module
32735         * modules/utimensat: New file.
32736         * lib/utimensat.c (utimensat): Likewise.
32737         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32738         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32739         so we can work around Linux bugs.
32740         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32741         * modules/sys_stat (Makefile.am): Substitute them.
32742         * lib/sys_stat.in.h (utimensat): Declare it.
32743         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32744         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32745         * modules/utimensat-tests: New test.
32746         * tests/test-utimensat.c: Likewise.
32747
32748         utimens: let lutimens work on non-symlinks
32749         * lib/utimens.c (lutimens): Fall back to utimens rather than
32750         failing with ENOSYS, when file is not a symlink.
32751         (utimens): Reduce redirection.
32752         * tests/test-lutimens.h (test_lutimens): Update test to cover
32753         non-symlinks.
32754         * tests/test-utimens.h (test_utimens): Update test to cover
32755         symlinks.
32756         * tests/test-utimens.c (main): Update caller.
32757
32758         utimens: cache whether utimensat syscall works
32759         * lib/utimens.c (utimensat_works_really): New cache variable.
32760         (fdutimens, lutimens): Use it to avoid failing syscall.
32761
32762         test-stat-time, test-utimens: improve portability
32763         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32764         ext4 on alpha, and for cygwin.
32765         * tests/test-utimens-common.h: New file.
32766         (nap): Factor delays into single function.
32767         * tests/test-lutimens.h (test_lutimens): Use new header.
32768         * tests/test-futimens.h (test_futimens): Likewise.
32769         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32770         timestamps to occur from same machine, as was done previously for
32771         test_utimens.
32772         * modules/utimens-tests (Files): Ship new file.
32773         * modules/futimens-tests (Files): Likewise.
32774         Reported in part by Jim Meyering.
32775
32776         sys_stat: sort replacement declarations
32777         * lib/sys_stat.in.h: Sort declarations.
32778         * lib/futimens.c (futimens): Fix typo.
32779
32780 2009-10-15  Jim Meyering  <meyering@redhat.com>
32781
32782         don't let environment settings perturb build
32783         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32784         could cause a configure-time and/or build-time malfunction.
32785         Typically, a configure-time function-in-library test is performed
32786         via code like this:
32787
32788           LIB_VAR=
32789           AC_SUBST([LIB_VAR])
32790           prefix_saved_LIBS=$LIBS
32791             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32792                        [test "$ac_cv_search_FUNC" = "none required" ||
32793                         LIB_VAR=$ac_cv_search_FUNC])
32794           LIBS=$prefix_saved_LIBS
32795
32796         However, in each of the files affected by this change, the LIB_VAR=
32797         initialization was omitted.  Thus, when set in the environment, its
32798         value would propagate into generated Makefiles when FUNC is not found
32799         in LIB_NAME.
32800         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32801         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32803
32804 2009-10-14  Eric Blake  <ebb9@byu.net>
32805
32806         fchdir: avoid infinite recursion in mingw
32807         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32808         recursing.
32809
32810         test-stat-time: port to mingw
32811         * tests/test-stat-time.c (force_unlink): Return a value.
32812         (test_ctime) [W32]: Fix compilation error.
32813         (nap): Don't call usleep with too large an argument.  Use
32814         force_unlink.
32815         * doc/pastposix-functions/usleep.texi (usleep): Document the
32816         portability issue.
32817
32818 2009-10-13  Jim Meyering  <meyering@redhat.com>
32819
32820         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32821         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32822         * modules/pipe-filter-ii: Likewise.
32823         * modules/sys_socket-tests: Likewise.
32824         * modules/tsearch-tests: Likewise.
32825         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32826         (check): Depend on it.
32827
32828 2009-10-12  Eric Blake  <ebb9@byu.net>
32829
32830         utimens-tests: port to NFS file systems
32831         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32832         comparisons to avoid spurious failures from timestamp drift
32833         between NFS machines.
32834
32835 2009-10-12  Eric Blake  <ebb9@byu.net>
32836
32837         stat-time-tests: minor cleanups
32838         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32839         * tests/test-stat-time.c (nap): Separate assignment from call.
32840         Suggested by Paolo Bonzini and Bruno Haible.
32841
32842         sys_stat: guarantee struct timespec
32843         * lib/sys_stat.in.h (includes): Always include <time.h>
32844         * modules/sys_stat (Depends-on): Add time.
32845         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32846         mode_t permission values.
32847         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32848         get at subsecond timestamps.
32849
32850 2009-10-10  Eric Blake  <ebb9@byu.net>
32851
32852         futimens: new module
32853         * modules/futimens: New file.
32854         * lib/futimens.c (futimens): Likewise.
32855         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32856         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32857         we can work around Linux bugs.
32858         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32859         * modules/sys_stat (Makefile.am): Substitute them.
32860         * lib/sys_stat.in.h (futimens): Declare it.
32861         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32862         * doc/posix-functions/futimens.texi (futimens): Likewise.
32863         * modules/futimens-tests: New test.
32864         * tests/test-futimens.c: Likewise.
32865
32866         utimens: introduce fdutimens
32867         * lib/utimens.h (fdutimens): New prototype.
32868         * lib/utimens.c (gl_futimens): Move guts...
32869         (fdutimens): ...to new interface.
32870         * tests/test-utimens.c (do_fdutimens): Use it.
32871
32872         utimens: add UTIME_NOW and UTIME_OMIT support
32873         * lib/utimens.c (validate_timespec, update_timespec): New helper
32874         functions.
32875         (gl_futimens, lutimens): Use them.
32876         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32877         stdbool, sys_stat.
32878         (Link): Mention resulting library dependency.
32879         * modules/utimecmp (Link): Likewise.
32880         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32881         (Makefile.am): Pick up library dependency.
32882         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32883         definition.
32884         * tests/test-sys_stat.c: Test the definitions.
32885         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32886         * NEWS: Document library dependency.
32887
32888         utimecmp: support symlink timestamps
32889         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32890         hashing when possible.  Use pathconf when available.
32891         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32892         * modules/utimecmp (Depends-on): Add lstat.
32893
32894         utimens: add lutimens interface
32895         * lib/utimens.c (lutimens): New function.
32896         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32897         * lib/utimens.h (lutimens): Declare new interface.
32898         * tests/test-utimens.c (main): Enhance test.
32899         * tests/test-lutimens.h (test_lutimens): New file.
32900         * modules/utimens-tests (Files): Distribute it.
32901         (Depends-on): Add symlink.
32902         (configure.ac): Check for usleep.
32903
32904         utimens: validate futimens usage
32905         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32906         fewer syscalls on failure later on.  Avoid compiler warning on
32907         mingw.
32908         * modules/utimens (Depends-on): Add dup2.
32909
32910         utimens: add test
32911         * modules/utimens-tests: New test.
32912         * tests/test-utimens.h: New file.
32913         * tests/test-futimens.h: Likewise.
32914         * tests/test-utimens.c: Likewise.
32915
32916         doc: mention timestamp portability issues
32917         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32918         instead.
32919         * doc/posix-functions/utime.texi (utime): Likewise.
32920         * doc/posix-functions/utimes.texi (utimes): Likewise.
32921         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32922         instead.
32923         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32924         module.
32925         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32926         Mention weakness with symlink timestamps.
32927         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32928         to utimensat/futimens instead.
32929         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32930
32931         test-dup2: enhance test
32932         * tests/test-dup2.c (main): Also check AT_FDCWD.
32933
32934         test-stat-time: avoid more spurious failures
32935         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32936         xfs; and avoid race if the two timestamps cross quantization edge.
32937
32938         relocatable: prefer 'file system' over 'filesystem'
32939         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32940         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32941         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32942         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32943         * lib/relocatable.c (compute_curr_prefix): Likewise.
32944
32945 2009-10-10  Jim Meyering  <meyering@redhat.com>
32946
32947         stat-time-tests: check for the usleep function
32948         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32949
32950 2009-10-10  Bruno Haible  <bruno@clisp.org>
32951
32952         * modules/xnanosleep: Put the Link section after the Include section.
32953
32954 2009-10-09  Eric Blake  <ebb9@byu.net>
32955
32956         dup2: work around FreeBSD 6.1 bug
32957         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32958         * doc/posix-functions/dup2.texi (dup2): Document it.
32959         Reported by Nelson H. F. Beebe and Jim Meyering.
32960
32961         test-stat-time: port to buggy NFS clients
32962         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32963         (test_ctime): Also skip test if mtime and ctime are skewed.
32964
32965         maint: prefer 'file system' over 'filesystem'
32966         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32967         * doc/posix-functions/lstat.texi (lstat): Likewise.
32968         * lib/file-has-acl.c (file_has_acl): Likewise.
32969         * lib/fwriteerror.c [TEST]: Likewise.
32970         * tests/test-areadlink.h (test_areadlink): Likewise.
32971         * tests/test-areadlinkat-with-size.c (main): Likewise.
32972         * tests/test-areadlinkat.c (main): Likewise.
32973         * tests/test-canonicalize-lgpl.c (main): Likewise.
32974         * tests/test-canonicalize.c (main): Likewise.
32975         * tests/test-fstatat.c (main): Likewise.
32976         * tests/test-linkat.c (main): Likewise.
32977         * tests/test-lstat.h (test_lstat_func): Likewise.
32978         * tests/test-mkdir.h (test_mkdir): Likewise.
32979         * tests/test-readlink.h (test_readlink): Likewise.
32980         * tests/test-remove.c (main): Likewise.
32981         * tests/test-rename.h (test_rename): Likewise.
32982         * tests/test-renameat.c (main): Likewise.
32983         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32984         * tests/test-symlink.h (test_symlink): Likewise.
32985         * tests/test-symlinkat.c (main): Likewise.
32986         * tests/test-unlink.h (test_unlink_func): Likewise.
32987         * tests/test-unlinkat.c (main): Likewise.
32988
32989         maint: make realtime library usage explicit
32990         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32991         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32992         * modules/settime (Link): Likewise.
32993         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32994
32995         test-stat-time: speed up execution
32996         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32997         warning on mingw.
32998         (nap): New helper function.
32999         (prepare_test): Use it to reduce sleep time.
33000         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33001         execution.
33002         * modules/stat-time-tests (configure.ac): Check for usleep.
33003
33004 2009-10-09  Jim Meyering  <meyering@redhat.com>
33005
33006         selinux-h: always use getfilecon wrappers
33007         * lib/getfilecon.c: New file.
33008         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33009         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33010         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33011         (fgetfilecon): Provide a stub.
33012         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33013         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33014         file unconditionally.
33015         When <selinux/selinux.h> is found, arrange to use wrappers.
33016         * modules/selinux-h (Files): Add getfilecon.c.
33017         (Makefile.am): Substitute include-next-related bits
33018         into the now-always-generated selinux/selinux.h file.
33019         * doc/glibc-functions/lgetfilecon.texi: New file.
33020         * doc/glibc-functions/fgetfilecon.texi: New file.
33021         * doc/glibc-functions/getfilecon.texi: New file.
33022         * doc/glibc-functions/getfilecon-desc.texi: New file.
33023         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33024         which to pull in the new files.
33025         * MODULES.html.sh (Misc): Add selinux-h.
33026
33027 2009-10-08  Jim Meyering  <meyering@redhat.com>
33028
33029         unistd: fix comment typo
33030         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33031
33032 2009-10-08  Eric Blake  <ebb9@byu.net>
33033
33034         areadlink: use SIZE_MAX consistently
33035         * modules/areadlink (Depends-on): Add stdint.
33036         * modules/areadlink-with-size (Depends-on): Likewise.
33037         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33038         gives NULL; drop sys/types, since unistd gives size_t; and add
33039         stdint for SIZE_MAX.
33040         (SIZE_MAX): Rely on headers.
33041         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33042         and add stdint.
33043         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33044         (SIZE_MAX): Likewise.
33045         (INITIAL_BUF_SIZE): Turn into enum.
33046         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33047
33048 2009-10-08  Jim Meyering  <meyering@redhat.com>
33049
33050         areadlinkat: avoid compilation failure
33051         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33052         Fix typo in comment.
33053
33054 2009-10-07  Eric Blake  <ebb9@byu.net>
33055
33056         areadlinkat-with-size: new module
33057         * modules/areadlinkat-with-size: New module.
33058         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33059         * lib/areadlink.h (areadlinkat): Declare it.
33060         * MODULES.html.sh (File system functions): Mention it.
33061         * modules/areadlinkat-with-size-tests: New test.
33062         * tests/test-areadlinkat-with-size.c: New file.
33063
33064         xreadlinkat: new module
33065         * modules/xreadlinkat: New module.
33066         * lib/xreadlinkat.c (xreadlinkat): New file.
33067         * lib/xreadlink.h (xreadlinkat): Declare it.
33068         * MODULES.html.sh (File system functions): Mention it.
33069
33070         areadlinkat: new module
33071         * lib/at-func.c (FUNC_FAIL): New define.
33072         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33073         * modules/areadlinkat: New module.
33074         * lib/linkat.c (areadlinkat): Move...
33075         * lib/areadlinkat.c (areadlinkat): ...to new file.
33076         * lib/areadlink.h (areadlinkat): Declare it.
33077         * modules/linkat (Depends-on): Add areadlinkat.
33078         * MODULES.html.sh (File system functions): Mention it.
33079         * modules/areadlinkat-tests: New test.
33080         * tests/test-areadlinkat.c: New file.
33081
33082         areadlink, areadlink-with-size: add tests
33083         * modules/areadlink-tests: New test.
33084         * modules/areadlink-with-size-tests: Likewise.
33085         * tests/test-areadlink.h: New file.
33086         * tests/test-areadlink.c: Likewise.
33087         * tests/test-areadlink-with-size.c: Likewise.
33088
33089         maint: minor cleanups
33090         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33091         _UNUSED_PARAMETER_ instead.
33092         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33093         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33094         * modules/linkat-tests (Files): Distribute test-link.h.
33095
33096         openat, utimens: whitespace cleanup
33097         * lib/openat.c: Prefer space throughout, rather than mix of 8
33098         spaces vs. tabs.
33099         * lib/at-func.c: Likewise.
33100         * lib/utimens.c: Likewise.
33101
33102         openat: avoid using wrong fd
33103         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33104         working directory chooses same fd.
33105         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33106
33107         mkdir, mkdirat: fix cygwin 1.5.x bug
33108         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33109         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33110         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33111         bug.
33112         (gl_PREREQ_MKDIR): Delete unused macro.
33113         * modules/mkdir (Files): Track file rename.
33114         (configure.ac): Update macro name.
33115         * modules/openat (Depends-on): Add mkdir.
33116         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33117
33118         mkdir, mkdirat: add tests
33119         * modules/mkdir-tests: New test.
33120         * tests/test-mkdir.h: New file.
33121         * tests/test-mkdir.c: Likewise.
33122         * tests/test-mkdirat.c: Likewise.
33123         * modules/openat-tests (Files): Add new files.
33124         (Makefile.am): Run new test.
33125
33126 2009-10-06  Eric Blake  <ebb9@byu.net>
33127
33128         doc: tweak *at function documentation
33129         * doc/posix-functions/faccessat.texi (faccessat): Mention
33130         known issue with replacement.
33131         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33132         * doc/posix-functions/linkat.texi (linkat): Likewise.
33133         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33134         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33135         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33136         * doc/posix-functions/renameat.texi (renameat): Likewise.
33137         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33138
33139         openat: fix GNU/Hurd bug in unlinkat
33140         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33141         broken.
33142         * doc/posix-functions/unlink.texi (unlink): Document this.
33143         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33144
33145         fdopendir: fix GNU/Hurd bug
33146         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33147         allowing non-directory fds.
33148         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33150         * modules/dirent (Makefile.am): Substitute it.
33151         * lib/dirent.in.h (fdopendir): Declare replacement.
33152         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33153         * tests/test-fdopendir.c (main): Test something other than
33154         /dev/null, since on Hurd that behaves like a directory.
33155
33156         test-symlink: port to GNU/Hurd
33157         * tests/test-symlink.h (test_symlink): Relax expected errno.
33158
33159         doc: tweak more cygwin information
33160         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33161         now compatible with glibc.
33162         * doc/posix-functions/getopt.texi (getopt): Likewise.
33163
33164         getopt-gnu: add another test
33165         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33166         guarantee behavior relied on by m4.
33167         * tests/test-getopt.c (main): Use it.
33168         * modules/getopt-posix-tests (Depends-on): Add setenv.
33169         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33170
33171         getopt: fix compilation on darwin
33172         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33173         include.
33174         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33175         Reported by Ludovic Courtès.
33176
33177 2009-10-06  Bruno Haible  <bruno@clisp.org>
33178
33179         * modules/size_max (Description): Discourage its use.
33180         Reported by Simon Josefsson.
33181
33182 2009-10-06  Jim Meyering  <meyering@redhat.com>
33183
33184         linkat: avoid compilation failure
33185         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33186
33187 2009-10-05  Eric Blake  <ebb9@byu.net>
33188
33189         linkat: support Linux 2.6.17
33190         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33191         linkat on Linux, but allow cache variable override.
33192         * lib/linkat.c (rpl_linkat): Define override.
33193         * modules/linkat (Depends-on): Add symlinkat.
33194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33195         * modules/unistd (Makefile.am): Substitute it.
33196         * lib/unistd.in.h (linkat): Declare replacement.
33197         Reported by Pádraig Brady.
33198
33199         quotearg: port test to systems with C.UTF-8 locale
33200         * tests/test-quotearg.c (struct result_strings): Add another
33201         member, differentiating between C.ASCII and C.UTF-8 handling.
33202         (compare_strings): Add parameter.
33203         (main): Adjust all callers.
33204
33205         getopt: avoid clash with FreeBSD _getopt_internal
33206         * lib/getopt.in.h (_getopt_internal): Override the name.
33207         * lib/getopt_int.h (includes): Pick up any overrides.
33208         Reported by Reuben Thomas.
33209
33210         hash: allow C89 compilation
33211         * lib/hash.c (check_tuning): Move declaration before statement.
33212         Reported by Reuben Thomas.
33213
33214 2009-10-05  Karl Berry  <karl@gnu.org>
33215
33216         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33217
33218 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33219             Bruno Haible  <bruno@clisp.org>
33220
33221         * lib/uname.c (uname): Use a table-driven algorithm to compute
33222         Windows NT versions.
33223
33224 2009-10-04  Bruno Haible  <bruno@clisp.org>
33225
33226         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33227         program_invocation_short_name.
33228         * modules/progname (configure.ac): Test for presence of
33229         program_invocation_short_name.
33230         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33231
33232 2009-10-04  Bruno Haible  <bruno@clisp.org>
33233
33234         * lib/progname.c (set_program_name): Fix comment.
33235         Reported by Jim Meyering.
33236
33237 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33238             Bruno Haible  <bruno@clisp.org>
33239
33240         * lib/uname.c: Include <string.h>.
33241         (uname): Do only one call to GetVersionEx in the common case.
33242
33243 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33244             Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33247         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33248         (uname): Add support for Windows CE and various non-x86 CPU types.
33249
33250 2009-10-03  Bruno Haible  <bruno@clisp.org>
33251
33252         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33253         invocation to tests/configure.ac.
33254         Reported by Ian Beckwith <ianb@erislabs.net>.
33255
33256 2009-10-02  Eric Blake  <ebb9@byu.net>
33257
33258         fchdir: avoid compiler warning
33259         * lib/fchdir.c (canonicalize_file_name)
33260         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33261
33262         test-open: support mingw errno values
33263         * tests/test-open.h (test_open): Relax test.
33264         * tests/test-fopen.h (test_fopen): Likewise.
33265         * tests/test-openat-safer.c (main): Likewise.
33266
33267         open: fix opening directory on mingw
33268         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33269
33270         test-open: on GNU/Hurd, /dev/null is a directory
33271         * tests/test-fopen.h (main): Rename...
33272         (test_fopen): ...to this.  Use a guaranteed non-directory when
33273         confirming open behavior on trailing slash.
33274         * tests/test-openat-safer.c (main): Likewise.
33275         * tests/test-open.h (main): Likewise....
33276         (test_open): ...to this.
33277         * tests/test-fopen.c (main): Adjust caller.
33278         * tests/test-fopen-safer.c (main): Likewise.
33279         * tests/test-open.c (main): Likewise.
33280         * tests/test-fcntl-safer.c (main): Likewise.
33281         Reported by Samuel Thibault.
33282
33283         rename, fchdir: don't ignore chdir failure
33284         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33285         * lib/rename.c (rpl_rename) [W32]: Likewise.
33286         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33287         an empty destination directory if source cannot be renamed,
33288         although there is still possibility for failure.
33289         * doc/posix-functions/rename.texi (rename): Document the race.
33290         Reported by Jim Meyering.
33291
33292         maint: cleanup whitespace in recent commits
33293         * lib/rename.c (rpl_rename): Remove tabs.
33294         * tests/test-link.h (test_link): Likewise.
33295         * lib/fchdir.c (get_name): Likewise.
33296         Reported by Jim Meyering.
33297
33298 2009-10-02  Ben Pfaff  <blp@gnu.org>
33299
33300         relocatable-prog-wrapper: Add missing dependency on
33301         double-slash-root.
33302         * modules/relocatable-prog-wrapper: Add dependency.
33303         Reported by Ian Beckwith <ianb@erislabs.net>.
33304
33305 2009-10-02  Eric Blake  <ebb9@byu.net>
33306
33307         renameat: fix Solaris bugs
33308         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33309         needed fixing.
33310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33311         * modules/stdio (Makefile.am): Substitute it.
33312         * lib/stdio.in.h (renameat): Declare replacement.
33313         * lib/renameat.c (rpl_renameat): Implement fix.
33314
33315         renameat: new module
33316         * modules/renameat: New file.
33317         * lib/renameat.c (renameat): Likewise.
33318         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33320         * modules/stdio (Makefile.am): Substitute them.
33321         * lib/stdio.in.h (renameat): Declare it.
33322         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33323         * doc/posix-functions/renameat.texi (renameat): Likewise.
33324         * modules/renameat-tests: New test.
33325         * tests/test-renameat.c: Likewise.
33326
33327         rename: fix mingw bugs
33328         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33329         directory overwrite bugs.
33330
33331         rename: fix another cygwin 1.5 bug
33332         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33333         checks.
33334         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33335         unnecessary cygwin workarounds.  Also work around bug with moving
33336         full directory onto an empty one.
33337         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33338
33339         rename-dest-slash: merge into rename module
33340         * modules/rename-dest-slash (Status): Mark obsolete.
33341         (Depends-on): Add rename.
33342         (Files): Let rename do it all.
33343         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33344         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33345         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33346         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33347         * lib/rename.c (rpl_rename): Update comments.
33348
33349         rename: fix cygwin 1.5.x bugs
33350         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33351         * lib/rename.c (rpl_rename): Work around them.
33352         * modules/rename (Depends-on): Add same-inode.
33353
33354         rename: fix Solaris 10 bug
33355         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33356         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33357         was the only bug.
33358
33359         rename: fix Solaris 9 bug
33360         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33361         on non-directory.  Avoid calling exit.
33362         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33363         strdup.
33364         * modules/rename-tests (Depends-on): Drop lstat.
33365         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33366         (gl_PREREQ_RENAME): Delete unused macro.
33367
33368         rename-dest-slash: fix NetBSD bug
33369         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33370         links.
33371         * modules/rename-dest-slash (Depends-on): Add same-inode.
33372
33373         rename-tests: new test, exposes several platform bugs
33374         * modules/rename-tests: New file.
33375         * tests/test-rename.h: Likewise.
33376         * tests/test-rename.c: Likewise.
33377         * doc/posix-functions/rename.texi (rename): Improve documentation,
33378         including bugs that will eventually be fixed in gnulib.
33379
33380 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33381
33382         * lib/uname.c: Include <stdlib.h>
33383         (uname): Assume version info is available.
33384
33385 2009-10-02  Jim Meyering  <meyering@redhat.com>
33386
33387         gnu-web-doc-update: correct --help output
33388         * build-aux/gnu-web-doc-update: Make --help output relevant.
33389
33390         gnu-web-doc-update: add standard options
33391         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33392
33393         gnu-web-doc-update: New module.
33394         Use this script to automatically update the on-line web documentation
33395         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33396         * modules/gnu-web-doc-update: New file, from coreutils.
33397         * build-aux/gnu-web-doc-update: New script.
33398
33399 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33400
33401         link: LoadLibrary is not needed.
33402         * lib/link.c: Use GetModuleHandle.
33403
33404 2009-10-01  Eric Blake  <ebb9@byu.net>
33405
33406         getopt: bump serial number
33407         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33408         change.
33409
33410         tests: tighten link, rmdir, and remove tests
33411         * tests/test-link.h (includes): No need to use <config.h> here.
33412         Clean up if directory hard link was created, otherwise test for
33413         trailing '.'.
33414         * tests/test-linkat.c (main): Simplify.
33415         * tests/test-remove.c (main): Enhance test for trailing '.'.
33416         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33417
33418 2009-10-01  Jim Meyering  <meyering@redhat.com>
33419
33420         maint.mk: requiring "make major" was annoying, for a "minor" release.
33421         What is intended is "stable", to contrast with alpha and beta,
33422         so require "make stable", not "make major".
33423         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33424         (get_tool_versions): Likewise.
33425         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33426
33427 2009-09-30  Ben Pfaff  <blp@gnu.org>
33428
33429         Fix broken build of replacement for Windows tmpfile().
33430         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33431         flags argument added along with the 'mkostemp' module.
33432
33433 2009-09-28  Bruno Haible  <bruno@clisp.org>
33434
33435         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33436         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33437         to 'remove_elt'.
33438         (gl_list_remove): Update.
33439         * lib/gl_list.c (gl_list_remove): Update.
33440         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33441         to 'remove_elt'.
33442         (gl_oset_remove): Update.
33443         * lib/gl_list.c (gl_oset_remove): Update.
33444         Reported by Eric Blake.
33445
33446 2009-09-28  Eric Blake  <ebb9@byu.net>
33447
33448         doc: mention yet more cygwin 1.7 status
33449         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33450         cygwin.
33451         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33452         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33453
33454         argp: fix test failure
33455         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33456         that are not upper-case.  Pass correct range to tolower.
33457
33458 2009-09-27  Jim Meyering  <meyering@redhat.com>
33459
33460         test-yesno: work around sparc-dash here-document infelicity
33461         Without this change, the literal \177 byte in a here document
33462         would make dash 0.5.5.1-3 access uninitialized memory.
33463         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33464         Instead, use a marker, "@", and filter through tr to create the desired
33465         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33466
33467 2009-09-27  Bruno Haible  <bruno@clisp.org>
33468
33469         Disable untested support for new flavours of ACLs on AIX.
33470         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33471         progress.
33472         * lib/set-mode-acl.c (qset_acl): Likewise.
33473
33474 2008-12-07  Bruno Haible  <bruno@clisp.org>
33475
33476         Add support for new flavours of ACLs on AIX. (Untested.)
33477         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33478         (file_has_acl): Add support for newer AIX.
33479         * lib/set-mode-acl.c (qset_acl): Likewise.
33480         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33481         Rainer Tammer <tammer@tammer.net>.
33482
33483 2009-09-26  Eric Blake  <ebb9@byu.net>
33484
33485         argp: fix compilation of getopt
33486         * lib/getopt.in.h (includes): Use different guard than glibc.
33487         Reported by Sergey Poznyakoff.
33488
33489         doc: mention more cygwin 1.7 status
33490         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33491         bug.
33492         * doc/posix-functions/execl.texi (execl): Likewise.
33493         * doc/posix-functions/execle.texi (execle): Likewise.
33494         * doc/posix-functions/execlp.texi (execlp): Likewise.
33495         * doc/posix-functions/execv.texi (execv): Likewise.
33496         * doc/posix-functions/execve.texi (execve): Likewise.
33497         * doc/posix-functions/execvp.texi (execvp): Likewise.
33498         * doc/glibc-functions/canonicalize_file_name.texi
33499         (canonicalize_file_name): Cygwin 1.7 now provides this.
33500         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33501         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33502         on AT_SYMLINK_NOFOLLOW.
33503
33504 2009-09-24  Eric Blake  <ebb9@byu.net>
33505
33506         test-linkat: make test more robust
33507         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33508
33509         getopt: fix inclusion guards for cygwin
33510         * modules/getopt-posix (Depends-on): Add include-next.
33511         (Makefile.am): Substitute more items in replacement header.
33512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33513         <getopt.h>.
33514         * lib/getopt.in.h (includes): Use split inclusion guard, and
33515         prefer <getopt.h> over include <unistd.h> when one is present.
33516         (option): Also override name of 'struct option'.
33517
33518         same-inode: revert prior change; it is not yet ready
33519         * NEWS: Undo mention of this change.
33520         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33521         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33522         * lib/cycle-check.c (cycle_check): Likewise.
33523         * lib/same.c (same_name): Likewise.
33524         * lib/at-func2.c (at_func2): Likewise.
33525
33526 2009-09-23  Eric Blake  <ebb9@byu.net>
33527
33528         linkat: new module
33529         * modules/linkat: New file.
33530         * lib/at-func2.c (at_func2): Likewise.
33531         * lib/linkat.c (linkat): Likewise.
33532         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33533         * lib/openat-priv.h (at_func2): Add declaration.
33534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33535         * modules/unistd (Makefile.am): Substitute them.
33536         * lib/unistd.in.h (linkat): Declare it.
33537         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33538         * doc/posix-functions/linkat.texi (linkat): Likewise.
33539         * doc/posix-functions/link.texi (link): Tweak wording.
33540         * tests/test-link.c (main): Move guts...
33541         * tests/test-link.h (test_link): ...into new file.
33542         * modules/linkat-tests: New test.
33543         * tests/test-linkat.c: Likewise.
33544         * modules/link-tests (Files): Ship new file.
33545         (Depends-on): Add stdbool.
33546
33547         dirname: add library-safe mdir_name
33548         * lib/dirname.h (mdir_name): New prototype.
33549         * lib/dirname.c (dir_name): Move guts...
33550         (mdir_name): ...to new function that avoids xalloc_die.
33551
33552         fchdir: another mingw fix
33553         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33554         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33555         on mingw (where it has not yet been ported), and make it optional
33556         elsewhere.
33557         (_gl_register_fd): Use it.
33558
33559         same-inode: make SAME_INODE tri-state, to port to mingw
33560         * NEWS: Mention this change.
33561         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33562         st_ino always being 0.
33563         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33564         * lib/cycle-check.c (cycle_check): Likewise.
33565         * lib/same.c (same_name): Likewise.
33566
33567         lstat: avoid mingw compilation error
33568         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33569         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33570         lstat ourselves.
33571         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33572         was adequate.
33573         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33574         the checks for lstat.
33575         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33576
33577         link: fix test failure on Solaris 9
33578         * lib/link.c (rpl_link): Don't assume link will catch bogus
33579         trailing slash on source.
33580
33581         test-symlinkat: enhance test
33582         * tests/test-readlink.c (main): Move guts...
33583         * tests/test-readlink.h (test_readlink): ...into new file.
33584         * tests/test-symlink.c (main): Move guts...
33585         * tests/test-symlink.h (test_symlink): ...into new file.
33586         * tests/test-symlinkat.c (main): Use new files for further
33587         coverage.
33588         (do_symlink, do_readlink): New helper functions.
33589         * modules/symlink-tests (Files): Ship new file.
33590         (Depends-on): Add stdbool.
33591         * modules/readlink-tests (Files): Ship new file.
33592         (Depends-on): Add stdbool.
33593         * modules/symlinkat-tests (Files): Use new files.
33594
33595 2009-09-23  Eric Blake  <ebb9@byu.net>
33596
33597         readlink: document portability issue with symlink length
33598         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33599         systems have bogus st_size on symlinks, and mention the
33600         areadlink-with-size module.
33601         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33602         * doc/posix-functions/readlink.texi (readlink): Mention the
33603         areadlink module, and ERANGE failure.
33604         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33605         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33606
33607         readlink: fix Solaris 9 bug with trailing slash
33608         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33609         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33610         * doc/posix-functions/readlink.texi (readlink): Document this.
33611         * modules/readlink-tests: New test.
33612         * tests/test-readlink.c: Likewise.
33613
33614         readlink: fix cygwin 1.5.x bug with return type
33615         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33616         * lib/unistd.in.h (readlink): Use ssize_t.
33617         * lib/readlink.c (readlink): Likewise.
33618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33619         * modules/unistd (Makefile.am): Substitute it.
33620         * lib/unistd.in.h (readlink): Declare replacement.
33621         * doc/posix-functions/readlink.texi (readlink): Document this.
33622
33623         symlink: use throughout gnulib
33624         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33625         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33626         symlink is not used.
33627         * modules/symlinkat (Depends-on): Add symlink.
33628         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33629         * modules/canonicalize-tests (Depends-on): Likewise.
33630         * modules/lstat-tests (Depends-on): Likewise.
33631         * modules/openat-tests (Depends-on): Likewise.
33632         * modules/remove-tests (Depends-on): Likewise.
33633         * modules/rmdir-tests (Depends-on): Likewise.
33634         * modules/unlink-tests (Depends-on): Likewise.
33635         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33636         * tests/test-canonicalize.c (symlink): Likewise.
33637         * tests/test-fstatat.c (symlink): Likewise.
33638         * tests/test-lstat.c (symlink): Likewise.
33639         * tests/test-remove.c (symlink): Likewise.
33640         * tests/test-rmdir.c (symlink): Likewise.
33641         * tests/test-unlink.c (symlink): Likewise.
33642         * tests/test-unlinkat.c (symlink): Likewise.
33643
33644         symlink: new module, for Solaris 9 bug
33645         * modules/symlink: New file.
33646         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33647         * lib/symlink.c: Likewise.
33648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33649         * modules/unistd (Makefile.am): Substitute them.
33650         * lib/unistd.in.h (symlink): Declare replacement.
33651         * MODULES.html.sh (File system functions): Mention it.
33652         * doc/posix-functions/symlink.texi (symlink): Likewise.
33653         * modules/symlink-tests: New test.
33654         * tests/test-symlink.c: Likewise.
33655
33656 2009-09-23  Bruno Haible  <bruno@clisp.org>
33657
33658         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33659         when needed.
33660         Test case: gnulib-tool --import --with-tests atexit inttypes.
33661         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33662
33663 2009-09-23  Bruno Haible  <bruno@clisp.org>
33664
33665         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33666         subcommand, not in a subshell.
33667
33668 2009-09-22  Eric Blake  <ebb9@byu.net>
33669
33670         unistd: sort replacement declarations
33671         * lib/unistd.in.h: Sort declarations.
33672
33673         open, openat: minor optimization
33674         * lib/open.c (open): If open succeeded, len is non-zero.
33675         * lib/openat.c (rpl_openat): Likewise.
33676
33677         link-follow: ensure correct result
33678         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33679         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33680         distinguish between possible failures.
33681
33682 2009-09-21  Eric Blake  <ebb9@byu.net>
33683
33684         fts: avoid compiler warning
33685         * lib/fts.c (dirent_inode_sort_may_be_useful)
33686         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33687
33688 2009-09-19  Bruno Haible  <bruno@clisp.org>
33689
33690         * lib/progreloc.c (canonicalize_file_name): New declaration.
33691
33692 2009-09-19  Eric Blake  <ebb9@byu.net>
33693
33694         link: fix quoting
33695         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33696
33697         openat: fix openat bugs on Solaris 9
33698         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33699         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33700         * modules/openat (Depends-on): Add open.
33701         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33702         * modules/fcntl-h (Makefile.am): Substitute it.
33703         * lib/fcntl.in.h (openat): Declare replacement.
33704         * doc/posix-functions/openat.texi (openat): Document this.
33705
33706         openat: move fstatat and unlinkat into correct files
33707         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33708         compiled.
33709         * lib/openat.c (fstatat, unlinkat): Move...
33710         * lib/fstatat.c (fstatat): ...into correct files.
33711         * lib/unlinkat.c (unlinkat): Likewise.
33712
33713         openat: fix unlinkat bugs on Solaris 9
33714         * lib/unlinkat.c (unlinkat): New file.
33715         * modules/openat (Depends-on): Add unlink.
33716         (Files): Distribute it.
33717         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33718         trailing slash behavior is broken.
33719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33720         * modules/unistd (Makefile.am): Substitute it.
33721         * lib/unistd.in.h (unlinkat): Declare replacement.
33722         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33723
33724         openat: fix fstatat bugs on Solaris 9
33725         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33726         stat.
33727         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33728
33729         test-unlinkat: enhance test, to expose Solaris 9 bug
33730         * tests/test-unlink.c (main): Factor guts...
33731         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33732         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33733         * tests/test-rmdir.c (main): Adjust caller.
33734         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33735         (unlinker): New helper function.
33736         (rmdirat): Enhance check.
33737         * modules/rmdir-tests (Depends-on): Add stdbool.
33738         * modules/unlink-tests (Depends-on): Likewise.
33739         (Files): Add test-unlink.h.
33740         * modules/openat-tests (Files): Likewise.
33741         (Depends-on): Add unlinkdir.
33742
33743         test-fstatat: new test, to expose Solaris 9 bugs
33744         * tests/test-stat.c (main): Factor guts...
33745         * tests/test-stat.h (test_stat_func): ...into new file.
33746         * tests/test-lstat.c (main): Factor guts...
33747         * tests/test-lstat.h (test_lstat_func): ...into new file.
33748         * tests/test-fstatat.c: New file.
33749         * modules/stat-tests (Files): Add test-stat.h.
33750         * modules/lstat-tests (Files): Add test-lstat.h.
33751         (Depends-on): Add stdbool.
33752         * modules/openat-tests (Depends-on): Add pathmax.
33753         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33754         (Makefile.am): Run new test.
33755
33756         remove: new module, for mingw and Solaris 9 bugs
33757         * modules/remove: New file.
33758         * lib/remove.c: Likewise.
33759         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33761         * modules/stdio (Makefile.am): Use them.
33762         * lib/stdio.in.h (remove): Declare replacement.
33763         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33764         * doc/posix-functions/remove.texi (remove): Likewise.
33765         * modules/remove-tests: New test.
33766         * tests/test-remove.c: Likewise.
33767
33768         unlink: new module, for Solaris 9 bug
33769         * modules/unlink: New file.
33770         * lib/unlink.c: Likewise.
33771         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33773         * modules/unistd (Makefile.am): Use them.
33774         * lib/unistd.in.h (stat): Declare replacement.
33775         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33776         * doc/posix-functions/unlink.texi (unlink): Likewise.
33777         * modules/unlink-tests: New test.
33778         * tests/test-unlink.c: Likewise.
33779
33780         lstat: fix Solaris 9 bug
33781         * lib/lstat.c (lstat): Also check for trailing slash on
33782         non-symlink, non-directories.  Use stat module to simplify logic.
33783         * doc/posix-functions/lstat.texi (lstat): Document it.
33784         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33785         (configure.ac): Check for symlink.
33786         * tests/test-lstat.c (main): Add more tests.
33787
33788         stat: add as dependency to other modules
33789         * modules/chown (Depends-on): Add stat.
33790         * modules/euidaccess (Depends-on): Likewise.
33791         * modules/fchdir (Depends-on): Likewise.
33792         * modules/isdir (Depends-on): Likewise.
33793         * modules/link (Depends-on): Likewise.
33794         * modules/lstat (Depends-on): Likewise.
33795         * modules/mkdir-p (Depends-on): Likewise.
33796         * modules/modechange (Depends-on): Likewise.
33797         * modules/open (Depends-on): Likewise.
33798         * modules/readlink (Depends-on): Likewise.
33799         * modules/same (Depends-on): Likewise.
33800
33801         stat: fix Solaris 9 bug
33802         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33803         slash.
33804         * lib/stat.c (rpl_stat): Work around it.
33805         * doc/posix-functions/stat.texi (stat): Update documentation.
33806
33807         stat: new module, for mingw bug
33808         * modules/stat: New file.
33809         * lib/stat.c: Likewise.
33810         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33811         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33812         * modules/sys_stat (Makefile.am): Use them.
33813         * lib/sys_stat.in.h (stat): Declare replacement.
33814         * lib/openat.c (fstatat): Deal with lstat and stat being function
33815         macros.
33816         * modules/openat (Depends-on): Add inline.
33817         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33818         * doc/posix-functions/stat.texi (stat): Likewise.
33819         * modules/stat-tests: New test.
33820         * tests/test-stat.c: Likewise.
33821
33822 2009-09-19  Jim Meyering  <meyering@redhat.com>
33823
33824         syntax-check: detect unnecessary inclusion of canonicalize.h
33825         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33826
33827 2009-09-19  Eric Blake  <ebb9@byu.net>
33828
33829         canonicalize-lgpl: adjust clients to use correct header
33830         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33831         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33832         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33833         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33834         * lib/progreloc.c (includes): Likewise.
33835
33836 2009-09-19  Jim Meyering  <meyering@redhat.com>
33837
33838         test-posixtm.c: correct a comment
33839         * tests/test-posixtm.c: Correct first-line comment.
33840         Spotted by Eric Blake.
33841
33842 2009-09-16  Jim Meyering  <meyering@redhat.com>
33843
33844         posixtm-tests: make T const-correct; add a test case
33845         * tests/test-posixtm.c (T): Declare const.
33846         Add a test for -(2^31+1).
33847         Remove useless can-succeed-only-in-2002 test.
33848
33849         posixtm-tests: adjust the sole failing test
33850         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33851         expected output matches what mktime now produces.  Cross-checked via
33852         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33853
33854         posixtm: move #ifdef'd tests into a new module
33855         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33856         * tests/test-posixtm.c: ... this new file.
33857         * modules/posixtm-tests: New module.
33858
33859 2009-09-19  Eric Blake  <ebb9@byu.net>
33860
33861         openat: simplify use of at-func.c
33862         * lib/at-func.c (includes): Include prerequisites here, to
33863         simplify requirements on client files.
33864         * lib/openat-priv.h: Add double-inclusion guard.
33865         * lib/faccessat.c (includes): Simplify.
33866         * lib/fchmodat.c (includes): Likewise.
33867         * lib/fchownat.c (includes): Likewise.
33868         * lib/mkdirat.c (includes): Likewise.
33869         * lib/mkfifoat.c (includes): Likewise.
33870         * lib/symlinkat.c (includes): Likewise.
33871
33872         openat: allow return of fd 0
33873         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33874         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33875         unistd-safer.
33876         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33877         <fcntl.h>; this module does not leak fds.
33878         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33879         must be allowed to return 0, leaving openat_safer to add the
33880         safety.
33881         (openat_permissive): Avoid writing to just-opened fd 2 if
33882         restoring the current directory fails.
33883         * lib/openat-die.c (openat_restore_fail): Add comment.
33884         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33885         (save_cwd): Guarantee safe fd, but without use of open_safer.
33886         * tests/test-openat.c: New test.
33887         * modules/openat-tests (Files, Makefile.am): Distribute and build
33888         new file.
33889
33890         relocatable-prog-wrapper: fix build
33891         * modules/relocatable-prog-wrapper (Files): Update name of
33892         canonicalize m4 file, broken on 2009-09-17.
33893         Reported by emad hajjar <aleppos@hotmail.com>.
33894
33895 2009-09-19  Bruno Haible  <bruno@clisp.org>
33896
33897         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33898         * lib/safe-alloc.c: Likewise.
33899         Reported by Ian Beckwith <ianb@erislabs.net>.
33900
33901 2009-09-18  Bruno Haible  <bruno@clisp.org>
33902
33903         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33904         Reported by <erobles@sensacd.com.mx>.
33905
33906 2009-09-17  Eric Blake  <ebb9@byu.net>
33907
33908         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33909         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33910         slashes when checking if last component is missing.
33911         * tests/test-canonicalize.c (main): Test this.
33912
33913         canonicalize, canonicalize-lgpl: honor // if distinct from /
33914         * modules/canonicalize (Files): Add double-slash-root.m4.
33915         * modules/canonicalize-lgpl (Files): Likewise.
33916         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33917         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33918         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33919         fallback definition.
33920         (canonicalize_filename_mode): Use it to protect //.
33921         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33922         (__realpath): Likewise.
33923         * tests/test-canonicalize.c (main): Test this.
33924         * tests/test-canonicalize-lgpl.c (main): Likewise.
33925         * modules/canonicalize-tests (Depends-on): Add same-inode.
33926         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33927
33928         canonicalize-lgpl: fix glibc bug with trailing slash
33929         * m4/canonicalize-lgpl.m4: Move contents...
33930         * m4/canonicalize.m4: ...here.
33931         (gl_CANONICALIZE_LGPL): Factor realpath check...
33932         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33933         glibc 2.3.5 bug, fixed 2005-04-27.
33934         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33935         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33936         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33937         * modules/canonicalize-lgpl (Files): Manage file rename.
33938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33939         * modules/stdlib (Makefile.am): Substitute witness.
33940         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33941         is needed.
33942         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33943         replacement is required.
33944         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33945         * doc/glibc-functions/canonicalize_file_name.texi
33946         (canonicalize_file_name): Document this.
33947         * doc/posix-functions/realpath.texi (realpath): Likewise.
33948
33949         canonicalize-lgpl: reject non-directory with trailing slash
33950         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33951         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33952         catches failures in glibc 2.3.5.
33953         * tests/test-canonicalize.c (main): Likewise.
33954
33955         canonicalize-lgpl: use native realpath if it works
33956         * lib/canonicalize-lgpl.c (realpath): Guard with
33957         FUNC_REALPATH_WORKS.
33958         * lib/stdlib.in.h (realpath): Make declaration optional based on
33959         HAVE_REALPATH.
33960         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33961         native realpath works.
33962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33963         * modules/stdlib (Makefile.am): Substitute witness.
33964
33965         canonicalize, canonicalize-lgpl: use <stdlib.h>
33966         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33967         (Include): Mention <stdlib.h>.
33968         (configure.ac): Mention functions we provide.
33969         * modules/canonicalize (configure.ac): Likewise.
33970         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33971         realpath if canonicalize_file_name is missing.
33972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33973         * modules/stdlib (Makefile.am): Substitute witnesses.
33974         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33975         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33976         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33977         * NEWS: Document this.
33978         * doc/glibc-functions/canonicalize_file_name.texi
33979         (canonicalize_file_name): Likewise.
33980         * doc/posix-functions/realpath.texi (realpath): Likewise.
33981         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33982
33983         test-canonicalize: consolidate into single C program
33984         * tests/test-canonicalize.sh: Delete; move setup into...
33985         * tests/test-canonicalize.c (main): ...the program, making it
33986         easier to run in debugger.  Add some tests.
33987         * modules/canonicalize-tests (Files): Remove unused file.
33988         (Depends-on): Add progname.
33989         (configure.ac, Makefile.am): Simplify.
33990
33991         test-canonicalize-lgpl: consolidate into single C program
33992         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33993         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33994         easier to run in debugger.  Add some tests.
33995         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33996         (configure.ac, Makefile.am): Simplify.
33997
33998         canonicalize: avoid resolvepath
33999         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34000         unnecessary checks.
34001         * lib/canonicalize.c (includes): Simplify.
34002         (canonicalize_file_name): Drop resolvepath implementation.
34003         * modules/canonicalize (Depends-on): Drop filenamecat.
34004
34005         canonicalize: don't lose errno
34006         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34007         over calls to free.
34008
34009         canonicalize: simplify errno handling
34010         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34011         assignment.
34012
34013         canonicalize, canonicalize-lgpl: update module dependencies
34014         * modules/canonicalize (Depends-on): Add extensions, lstat,
34015         pathmax, stdlib.
34016         (Files): Drop pathmax.h.
34017         (configure.ac): Adjust macro name.
34018         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34019         lstat, stdlib, sys_stat.
34020         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34021         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34022         extensions.
34023         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34024         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34025         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34026         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34027         declaration, if available.
34028         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34029         we can rely on the readlink module.
34030         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34031         (includes): Use <unistd.h> unconditionally.
34032
34033 2009-09-17  Eric Blake  <ebb9@byu.net>
34034
34035         maint: make Include sections of modules consistent
34036         * modules/alloca: Use only header name; no need to list #include.
34037         * modules/alloca-opt: Likewise.
34038         * modules/arpa_inet: Likewise.
34039         * modules/canon-host: Likewise.
34040         * modules/configmake: Likewise.
34041         * modules/dirent: Likewise.
34042         * modules/eealloc: Likewise.
34043         * modules/environ: Likewise.
34044         * modules/fchdir: Likewise.
34045         * modules/fcntl: Likewise.
34046         * modules/fcntl-h: Likewise.
34047         * modules/gethrxtime: Likewise.
34048         * modules/gettime: Likewise.
34049         * modules/ignore-value: Likewise.
34050         * modules/inet_ntop: Likewise.
34051         * modules/inet_pton: Likewise.
34052         * modules/inttypes: Likewise.
34053         * modules/isnand-nolibm: Likewise.
34054         * modules/isnanf-nolibm: Likewise.
34055         * modules/mbchar: Likewise.
34056         * modules/mbfile: Likewise.
34057         * modules/mbiter: Likewise.
34058         * modules/mbuiter: Likewise.
34059         * modules/netdb: Likewise.
34060         * modules/netinet_in: Likewise.
34061         * modules/nproc: Likewise.
34062         * modules/pagealign_alloc: Likewise.
34063         * modules/poll: Likewise.
34064         * modules/printf-frexp: Likewise.
34065         * modules/pthread: Likewise.
34066         * modules/putenv: Likewise.
34067         * modules/random_r: Likewise.
34068         * modules/relocatable-prog: Likewise.
34069         * modules/search: Likewise.
34070         * modules/select: Likewise.
34071         * modules/selinux-h: Likewise.
34072         * modules/settime: Likewise.
34073         * modules/signal: Likewise.
34074         * modules/size_max: Likewise.
34075         * modules/socklen: Likewise.
34076         * modules/ssize_t: Likewise.
34077         * modules/stdarg: Likewise.
34078         * modules/stdbool: Likewise.
34079         * modules/stddef: Likewise.
34080         * modules/stdint: Likewise.
34081         * modules/stdio: Likewise.
34082         * modules/stdlib: Likewise.
34083         * modules/string: Likewise.
34084         * modules/strings: Likewise.
34085         * modules/sys_file: Likewise.
34086         * modules/sys_ioctl: Likewise.
34087         * modules/sys_select: Likewise.
34088         * modules/sys_socket: Likewise.
34089         * modules/sys_stat: Likewise.
34090         * modules/sys_time: Likewise.
34091         * modules/sys_times: Likewise.
34092         * modules/sys_utsname: Likewise.
34093         * modules/sys_wait: Likewise.
34094         * modules/sysexits: Likewise.
34095         * modules/time: Likewise.
34096         * modules/times: Likewise.
34097         * modules/tmpfile: Likewise.
34098         * modules/trim: Likewise.
34099         * modules/unistd: Likewise.
34100         * modules/wchar: Likewise.
34101         * modules/wctype: Likewise.
34102
34103 2009-09-17  Bruno Haible  <bruno@clisp.org>
34104
34105         Make getdate.y compile on QNX and NetBSD 5 / i386.
34106         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34107         TIME_T_FITS_IN_LONG_INT.
34108         * lib/getdate.y (long_time_t): New type.
34109         (relative_time): Change type of 'seconds' field to long_time_t.
34110         (get_date): Update types of local variables. Check against overflow
34111         during conversion from long_time_t to time_t.
34112         Reported by Matt Kraai <kraai@ftbfs.org>
34113         and Hasso Tepper <hasso@netbsd.org>.
34114
34115 2009-09-17  Bruno Haible  <bruno@clisp.org>
34116
34117         * modules/COPYING: Update copyright years.
34118         * modules/README: Likeiwse.
34119         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34120         Reported by Ian Beckwith <ianb@erislabs.net>.
34121
34122 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34123
34124         * users.txt: Update references for gnuit package.
34125
34126 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34127
34128         * m4/getdelim.m4: Fix typo in copyright line.
34129
34130 2009-09-17  Bruno Haible  <bruno@clisp.org>
34131
34132         * lib/atoll.c: Use the standard header with GPL copyright.
34133         * lib/argz.in.h: Likewise.
34134         * lib/glob.c: Likewise.
34135         * lib/glob-libc.h: Likewise.
34136         * lib/random_r.c: Likewise.
34137         * lib/siglist.h: Likewise.
34138         * lib/strsignal.c: Likewise.
34139         Reported by Ian Beckwith <ianb@erislabs.net>.
34140
34141 2009-09-17  Eric Blake  <ebb9@byu.net>
34142
34143         rmdir: ensure correct dependency order
34144         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34145
34146 2009-09-17  Bruno Haible  <bruno@clisp.org>
34147
34148         Disable assertion that fails on NetBSD 5 / i386.
34149         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34150         Reported by Sam Steingold <sds@gnu.org>
34151         and Hasso Tepper <hasso@netbsd.org>.
34152
34153 2009-09-16  Eric Blake  <ebb9@byu.net>
34154
34155         unlinkdir: port to mingw
34156         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34157         on which no one can unlink a directory.
34158
34159         stdlib: sort witness names
34160         * modules/stdlib (Makefile.am): Sort replacements.
34161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34162         * lib/stdlib.in.h: Likewise.
34163
34164         parse-duration-tests: avoid link failure
34165         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34166         LIBINTL.
34167         Reported by Tom G. Christensen.
34168
34169         openat-tests: ensure unlinkat behaves like rmdir
34170         * tests/test-rmdir.c (main): Factor guts...
34171         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34172         * modules/rmdir-tests (Files): Ship new file.
34173         * modules/openat-tests: New test.
34174         * tests/test-unlinkat.c: Likewise.
34175
34176         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34177         * modules/rmdir-errno (Status, Notice): Now obsolete.
34178
34179         rmdir: work around cygwin 1.5.x and mingw bugs
34180         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34181         * lib/rmdir.c (rmdir): Work around it.
34182         * modules/rmdir (Status, Notice): No longer obsolete.
34183         (Files): Add dos.m4.
34184         (Depends-on): Add unistd.
34185         (configure.ac): Set witnesses.
34186         (License): Relax to LGPLv2+.
34187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34188         * modules/unistd (Makefile.am): Substitute witnesses.
34189         * lib/unistd.in.h (rmdir): Declare replacement.
34190         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34191         * modules/rmdir-tests: New tests.
34192         * tests/test-rmdir.c: Likewise.
34193
34194 2009-09-15  Eric Blake  <ebb9@byu.net>
34195
34196         fchdir: improve use of replacement functions
34197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34198         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34199         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34200         REPLACE_CLOSEDIR.
34201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34202         * modules/sys_stat (Makefile.am): Substitute correct witness.
34203         * modules/dirent (Makefile.am): Likewise.
34204         * modules/unistd (Makefile.am): Likewise.
34205         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34206         * lib/unistd.in.h (dup): Likewise.
34207         * lib/sys_stat.in.h (fstat): Likewise.
34208
34209         maint: ignore gnulib-tool temp files
34210         * .gitignore: Ignore files created during gnulib-tool --test.
34211
34212 2009-09-13  Jim Meyering  <meyering@redhat.com>
34213
34214         posixtm: don't reject a time that specify "60" as the number of seconds
34215         * lib/posixtm.c (posixtime): The code to reject invalid dates
34216         would also reject a time specified with the .60 suffix.
34217         But POSIX allows that, in order to accommodate leap seconds.
34218         So don't reject it.
34219         (main): Adjust tests accordingly.
34220         * modules/posixtm (Depends-on): Add stpcpy.
34221
34222 2009-09-11  Jim Meyering  <meyering@redhat.com>
34223
34224         announce-gen: include [$release_type] in emitted Subject:
34225         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34226         e.g., [stable] in the emitted Subject: line.
34227
34228 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34229
34230         Remove obsolete macros from several modules.
34231         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34232         obsolete Autoconf macros with their modern counterparts.
34233         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34234         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34236         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34237         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34238         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34240         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34241         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34242         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34243         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34244         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34245         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34246         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34247         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34248         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34249         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34250         * m4/time_r.m4 (gl_TIME_R): Likewise.
34251         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34252         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34253         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34254
34255         Fix copyright header in build-aux scripts.
34256         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34257         recommendation.
34258         * build-aux/ncftpput-ftp: Likewise.
34259         * build-aux/update-copyright: Likewise.
34260
34261 2009-09-09  Eric Blake  <ebb9@byu.net>
34262
34263         test-link: allow Linux choice of errno
34264         * tests/test-link.c (main): Relax test for alternate error.
34265
34266         strndup: fix improper m4 caching
34267         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34268         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34269         (gl_PREREQ_STRNDUP): Delete.
34270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34271         * modules/string (Makefile.am): Substitute it.
34272         * lib/string.in.h (strndup): Modernize prototype.
34273
34274         getcwd: port to mingw
34275         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34276         different from the POSIX assumptions made throughout the getcwd
34277         module; fortunately, the mingw getcwd does not need replacement.
34278         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34279         * modules/getcwd-tests: New test.
34280         * tests/test-getcwd.c: Likewise.
34281
34282         link: fix platform bugs
34283         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34284         * lib/link.c (link): Work around them.  Fix related mingw bug.
34285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34286         * modules/unistd (Makefile.am): Substitute it.
34287         * lib/unistd.in.h (link): Declare replacement.
34288         * doc/posix-functions/link.texi (link): Document this.
34289         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34290
34291         test-link: consolidate into single C program, test more cases
34292         * tests/test-link.sh: Delete.
34293         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34294         at least Cygwin and Solaris.
34295         * modules/link-tests (Files): Remove unused file.
34296         (Depends-on): Add errno, sys_stat.
34297         (Makefile.am): Simplify.
34298
34299 2009-09-08  Bruno Haible  <bruno@clisp.org>
34300
34301         Work around towlower, towupper bug on mingw.
34302         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34303         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34304         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34305         * doc/posix-functions/towupper.texi: Likewise.
34306         Reported by Eric Blake.
34307
34308 2009-09-08  Jim Meyering  <meyering@redhat.com>
34309
34310         build: don't try to run autoheader if we don't use it
34311         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34312         is not used in configure.ac.
34313
34314 2009-09-08  Eric Blake  <ebb9@byu.net>
34315
34316         euidaccess: fix compilation error
34317         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34318
34319         rawmemchr: relax license
34320         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34321         okay.
34322         Reported by Jim Meyering.
34323
34324         mkfifoat: new module
34325         * modules/mkfifoat: New file.
34326         * lib/mkfifoat.c: Likewise.
34327         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34329         * modules/sys_stat (Makefile.am): Use them.
34330         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34331         * MODULES.html.sh (File system functions): Mention module.
34332         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34333         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34334         * modules/mkfifoat-tests: New test.
34335         * tests/test-mkfifoat.c: Likewise.
34336
34337         strchrnul: relax license
34338         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34339         okay.
34340         Reported by Jim Meyering.
34341
34342 2009-09-08  Eric Blake  <ebb9@byu.net>
34343
34344         fstatat: fix compilation on Solaris
34345         * lib/fstatat.c (includes): Add fcntl.h.
34346         Reported by Pádraig Brady.
34347
34348 2009-09-07  Eric Blake  <ebb9@byu.net>
34349
34350         rename: modernize replacement
34351         * modules/rename (Depends-on): Add stdio.
34352         (configure.ac): Declare witness.
34353         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34354         stdio take care of replacement.
34355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34356         * modules/stdio (Makefile.am): Substitute them.
34357         * lib/stdio.in.h (rename): Declare replacement.
34358         * lib/rename.c (includes): Allow cross-compilation to non-windows
34359         machines.
34360         * doc/posix-functions/rename.texi (rename): Improve
34361         documentation.
34362
34363         stdio: sort witness names
34364         * modules/stdio (Makefile.am): Sort replacements.
34365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34366         * lib/stdio.in.h: Likewise.
34367
34368         getcwd: minor cleanups
34369         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34370         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34371
34372         openat: provide more convenience names
34373         * modules/faccessat (configure.ac): Add C witness.
34374         * lib/unistd.in.h (readlinkat): Fix typo.
34375         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34376         convenience wrappers.
34377         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34378         wrappers in syntax checks.
34379
34380 2009-09-06  Eric Blake  <ebb9@byu.net>
34381
34382         doc: fix comments in recent patches
34383         * lib/faccessat.c: Mention correct function.
34384         * lib/fchmodat.c: Likewise.
34385         * lib/fchownat.c: Likewise.
34386         * lib/symlinkat.c: Likewise.
34387         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34388         constants.
34389
34390         faccessat, symlinkat: continue cleanup of previous patch
34391         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34392         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34393         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34395         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34396         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34397         set.
34398
34399 2009-09-06  Bruno Haible  <bruno@clisp.org>
34400
34401         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34402         (fstatat): Declare if GNULIB_FSTATAT is set.
34403         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34404         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34405         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34406         * modules/fcntl-h (Files): Remove m4/openat.m4.
34407         * modules/sys_stat (Files): Remove m4/openat.m4.
34408         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34409         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34410         * modules/unistd (Files): Remove m4/openat.m4.
34411         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34412         GNULIB_OPENAT.
34413         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34414         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34416         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34417         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34418         gl_OPENAT_DEFAULTS.
34419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34420         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34421         Don't require gl_OPENAT_DEFAULTS.
34422         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34423         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34424         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34425         (gl_OPENAT_DEFAULTS): Remove macro.
34426
34427 2009-09-06  Bruno Haible  <bruno@clisp.org>
34428
34429         * modules/openat (configure.ac): Remove unneeded witness.
34430
34431 2009-09-06  Bruno Haible  <bruno@clisp.org>
34432
34433         Set errno to ENOSYS when a function is entirely unsupported.
34434         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34435         EOPNOTSUPP.
34436         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34437         * modules/chown (Depends-on): Remove errno.
34438
34439 2009-09-06  Bruno Haible  <bruno@clisp.org>
34440
34441         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34442
34443 2009-09-06  Bruno Haible  <bruno@clisp.org>
34444
34445         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34446
34447 2009-09-06  Ben Pfaff  <blp@gnu.org>
34448             Bruno Haible  <bruno@clisp.org>
34449
34450         Work around a glibc bug in strtok_r.
34451         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34452         Undefine if UNDEFINE_STRTOK_R is set.
34453         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34455         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34456         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34457         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34458         UNDEFINE_STRTOK_R.
34459         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34460
34461 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34462
34463         exclude: minor fix
34464         * lib/exclude.c: Include wctype.h
34465
34466 2009-09-06  Akim Demaille  <demaille@gostai.com>
34467
34468         bootstrap: improve error message
34469         * build-aux/bootstrap (find_tool): Upon failure, report the list
34470         of candidates.
34471         Honor the initial value of the envvar.
34472
34473 2009-09-05  Eric Blake  <ebb9@byu.net>
34474
34475         symlinkat: new module
34476         * modules/symlinkat: New file.
34477         * lib/symlinkat.c: Likewise.
34478         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34480         * modules/unistd (Makefile.am): Use them.
34481         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34482         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34483         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34484         * MODULES.html.sh (File system functions): Mention module.
34485         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34486         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34487         * modules/symlinkat-tests: New test.
34488         * tests/test-symlinkat.c: Likewise.
34489
34490         test-openat-safer: add more checks
34491         * tests/test-openat-safer.c (main): Check more code paths.
34492
34493 2009-09-05  Jim Meyering  <meyering@redhat.com>
34494
34495         syntax-check: detect unnecessary inclusion of openat.h
34496         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34497
34498 2009-09-05  Bruno Haible  <bruno@clisp.org>
34499
34500         Support towlower, towupper.
34501         * doc/posix-functions/towlower.texi: Mention module wctype.
34502         * doc/posix-functions/towupper.texi: Likewise.
34503         * lib/wctype.in.h (towlower, towupper): New functions.
34504         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34505         (ASSERT): New macro.
34506         (e): New variable.
34507         (main): Test also towlower, towupper. Test WEOF argument.
34508         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34509
34510 2009-09-05  Bruno Haible  <bruno@clisp.org>
34511
34512         Fix conversion behaviour when the input is invalid.
34513         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34514         mark occurring in first pass of indirect conversion.
34515         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34516         input.
34517         Found by clang's static analyzer.
34518
34519 2009-09-05  Bruno Haible  <bruno@clisp.org>
34520
34521         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34522         where direct conversion is possible.
34523
34524 2009-09-04  Eric Blake  <ebb9@byu.net>
34525
34526         openat: fail with ENOENT on empty name
34527         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34528         buffer.
34529
34530         link-follow: fix logic bug in prior patch
34531         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34532         reversed sense of yes and no in prior patch.  Avoid confusing
34533         compilation failure with desired semantics.
34534
34535         link-follow: accomodate mingw and cross-compilation
34536         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34537         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34538         cross-compilation results to -1, to make linkat easier to
34539         implement when cross-compiling.  Trivially support mingw.
34540         * modules/link-follow (configure.ac): Call new name.
34541         * NEWS: Mention this.
34542
34543 2009-09-03  Eric Blake  <ebb9@byu.net>
34544
34545         faccessat: compile replacement
34546         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34547         needed.
34548
34549         fts: fix compilation error
34550         * lib/fts.c (includes): Re-add "openat.h", for
34551         openat_needs_fchdir.
34552
34553         faccessat: new module
34554         * modules/faccessat: New file.
34555         * lib/faccessat.c: Likewise.
34556         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34558         * modules/unistd (Makefile.am): Use it.
34559         * lib/unistd.in.h (faccessat): Declare it.
34560         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34561         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34562         * MODULES.html.sh (File system functions): Mention it.
34563         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34564         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34565
34566         euidaccess: prefer POSIX over non-standard implementation
34567         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34568         * lib/euidaccess.c (euidaccess): Use it if available.
34569
34570         openat: make template easier to use
34571         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34572         AT_FUNC_F2 to be undefined.
34573         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34574         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34575         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34576         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34577         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34578         Likewise.
34579         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34580         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34581         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34582         Likewise.
34583
34584         openat: declare in POSIX headers
34585         * NEWS: Mention this.
34586         * modules/openat (configure.ac): Declare witnesses.
34587         (Depends-on): Add fcntl-h, sys_stat, unistd.
34588         (Include): Mention correct headers.
34589         * modules/fcntl-h (Depends-on): Add link-warning.
34590         (Files): Add openat.m4.
34591         (Makefile.am): Substitute witnesses.
34592         * modules/sys_stat (Files, Makefile.am): Likewise.
34593         * modules/unistd (Files, Makefile.am): Likewise.
34594         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34595         (gl_OPENAT_DEFAULTS): New macro.
34596         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34598         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34599         (SYS_STAT_H): Remove unused variable.
34600         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34601         * lib/fcntl--.h (includes): Remove unneeded header.
34602         * lib/openat-safer.c (includes): Likewise.
34603         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34604         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34605         appropriate headers.
34606         (__OPENAT_PREFIX): Delete.
34607         * lib/fcntl.in.h (openat): Provide declaration.
34608         (AT_FDCWD): Fix Solaris bug.
34609         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34610         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34611         * lib/fchmodat.c (includes):  Adjust to find declaration.
34612         * lib/fchownat.c (includes): Likewise.
34613         * lib/mkdirat.c (includes): Likewise.
34614         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34615         still visible.
34616
34617 2009-09-02  Eric Blake  <ebb9@byu.net>
34618
34619         errno: use consistently
34620         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34621         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34622         * lib/canonicalize.c (ELOOP): Likewise.
34623         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34624         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34625         * lib/lchown.c (EOPNOTSUPP): Likewise.
34626         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34627         * lib/savewd.c (ESTALE): Likewise.
34628         * lib/settime.c (ENOSYS): Likewise.
34629         * lib/utimens.c (ENOSYS): Likewise.
34630         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34631         * lib/chdir-safer.c (ELOOP): Likewise.
34632         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34633         * modules/c-stack (Depends-on): Add errno.
34634         * modules/canonicalize (Depends-on): Likewise.
34635         * modules/chdir-safer (Depends-on): Likewise.
34636         * modules/fdopendir (Depends-on): Likewise.
34637         * modules/inet_ntop (Depends-on): Likewise.
34638         * modules/inet_pton (Depends-on): Likewise.
34639         * modules/lchown (Depends-on): Likewise.
34640         * modules/openat (Depends-on): Likewise.
34641         * modules/savewd (Depends-on): Likewise.
34642         * modules/settime (Depends-on): Likewise.
34643         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34644
34645         fts: avoid leaking fds
34646         * modules/fts (Depends-on): Add cloexec.
34647         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34648         flag.
34649
34650         fts: make directory fds more robust
34651         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34652         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34653
34654         backupfile, chdir-long, fts, savedir: make safer
34655         * lib/backupfile.c (includes): Use "dirent--.h", since
34656         numbered_backup can write to stderr during readdir.
34657         * lib/savedir.c (includes): Likewise.
34658         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34659         emulation can write to stderr on failure.
34660         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34661         * lib/getcwd.c: Document why opendir_safer is unused.
34662         * lib/glob.c: Likewise.
34663         * lib/scandir.c: Likewise.
34664         * lib/openat-proc.c: Likewise, for open_safer.
34665         * modules/backupfile (Depends-on): Add dirent-safer.
34666         * modules/savedir (Depends-on): Likewise.
34667         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34668         * modules/chdir-long (Depends-on): Add openat-safer.
34669
34670         openat-safer: new module
34671         * modules/openat-safer: New file.
34672         * lib/openat-safer.c: Likewise.
34673         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34674         * lib/fcntl-safer.h (openat_safer): Declare.
34675         * lib/fcntl--.h (openat): Override.
34676         * MODULES.html.sh (File descriptor based I/O): Mention it.
34677         * lib/openat.h: Add double-inclusion guards.
34678         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34679         "fcntl--.h", so we can implement openat.
34680         * modules/openat-safer-tests: New test.
34681         * tests/test-openat-safer.c: New file.
34682
34683         dirent-safer: new module
34684         * modules/dirent-safer: New file.
34685         * lib/dirent--.h: Likewise.
34686         * lib/dirent-safer.h: Likewise.
34687         * lib/opendir-safer.c: Likewise.
34688         * m4/dirent-safer.m4: Likewise.
34689         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34690         * modules/dirent-safer-tests: New test.
34691         * tests/test-dirent-safer.c: New file.
34692         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34693
34694         fdopendir: optimize on mingw
34695         * lib/unistd.in.h (_gl_directory_name): New prototype.
34696         * lib/fchdir.c (_gl_directory_name): Implement it.
34697         (fchdir): Use it to simplify implementation.
34698         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34699         fchdir, when available, to avoid calling [f]chdir().
34700
34701         fdopendir: split into its own module
34702         * lib/openat.c (fdopendir): Move...
34703         * lib/fdopendir.c: ...into new file.
34704         * modules/fdopendir: New module.
34705         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34706         * modules/openat (Depends-on): Add fdopendir.
34707         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34708         fdopendir here.
34709         * modules/savedir (Depends-on): Only need fdopendir, not full
34710         openat.
34711         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34712         * lib/openat.h (fdopendir): Drop prototype.
34713         * lib/dirent.in.h (fdopendir): Provide prototype.
34714         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34715         * modules/dirent (Makefile.am): Substitute them.
34716         * MODULES.html.sh (File system functions): Mention it.
34717         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34718         * modules/fdopendir-tests: New file.
34719         * tests/test-fdopendir.c: Likewise.
34720
34721         fchdir: use more consistent macro convention
34722         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34723         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34724         REPLACE_FCHDIR, rather than relying on config.h macros.
34725         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34726         inside a single make-time REPLACE_FCHDIR block, rather than using
34727         the config.h FCHDIR_REPLACEMENT.
34728         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34729         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34730         Manage fstat replacement.
34731         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34732         REPLACE_FCHDIR.
34733         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34734         (Makefile.am): Substitute REPLACE_FCHDIR.
34735         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34736         FCHDIR_REPLACEMENT.
34737         * lib/dup-safer.c (dup_safer): Likewise.
34738         * lib/dup2.c (rpl_dup2): Likewise.
34739         * lib/dup3.c (rpl_dup3): Likewise.
34740         * lib/open.c (rpl_open): Likewise.
34741
34742         fchdir: simplify error handling, and support dup3
34743         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34744         stdbool, malloc-posix, realloc-posix.
34745         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34746         (ensure_dirs_slot): Return false on allocation failure.
34747         (rpl_dup2): Delete.
34748         (_gl_register_dup): New function.
34749         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34750         (_gl_register_fd): Close fd on allocation failure.
34751         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34752         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34753         prototype.
34754         (rpl_dup2_fchdir): Delete prototype.
34755         * lib/open.c (open): Update caller.
34756         * lib/dup2.c (dup2): Track fchdir metadata.
34757         * lib/dup3.c (dup3): Likewise.
34758         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34760
34761 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34762
34763         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34764         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34765         don't pass arguments to AC_OUTPUT.
34766
34767 2009-09-02  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/mkdtemp (License): Relicense under LGPLv2+.
34770         Reported by Paolo Bonzini.
34771
34772 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34773
34774         Replace uses of obsolete autoconf macros in Jim's modules.
34775         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34776         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34777         can evoke a warning from autoconf when run with -Wobsolete
34778         enabled.  They were declared obsolete for good reasons (see
34779         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34780         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34781         should not continue using the deprecated macros.
34782         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34783         obsolete Autoconf macros with modern counterparts.
34784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34785         * m4/dos.m4 (gl_AC_DOS): Likewise.
34786         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34787         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34788         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34789         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34790         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34792         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34793         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34794         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34795         Likewise.
34796         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34797         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34798         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34799         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34800         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34801         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34802
34803 2009-09-01  Eric Blake  <ebb9@byu.net>
34804
34805         fchdir: fix off-by-one bug in previous patch
34806         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34807         (_gl_unregister_fd): Delete useless if.
34808
34809 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34810
34811         maint.mk: sort the list of syntax-check rules
34812         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34813         easier to get a sense of progress when the rules are run sequentially
34814         and take a long time.
34815
34816 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34817
34818         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34819         * modules/netinet_in: Likewise.
34820         * modules/sys_file: Likewise.
34821         * modules/sys_ioctl: Likewise.
34822         * modules/sys_select: Likewise.
34823         * modules/sys_socket: Likewise.
34824         * modules/sys_stat: Likewise.
34825         * modules/sys_time: Likewise.
34826         * modules/sys_times: Likewise.
34827         * modules/sys_utsname: Likewise.
34828         * modules/sys_wait: Likewise.
34829
34830 2009-09-01  Jim Meyering  <meyering@redhat.com>
34831
34832         fts: help ensure that return values are not ignored
34833         * lib/fts_.h (__GNUC_PREREQ): Define.
34834         (__attribute_warn_unused_result__): Define.
34835         (fts_children, fts_close, fts_open, fts_read): Declare with
34836         __attribute_warn_unused_result__.
34837
34838         fts: fts_close now fails also when closing a dir file descriptor fails
34839         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34840         and propagate to caller, along with errno.
34841
34842         announce-gen: correct formatting in --help output
34843         * build-aux/announce-gen (usage): Move the one-line description in
34844         --help output "up", to where it belongs, just after Usage:.
34845
34846 2009-08-31  Eric Blake  <ebb9@byu.net>
34847
34848         fchdir: port to mingw
34849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34850         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34851         opened, then use a substitute.
34852         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34853         replacement.
34854         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34855         (_gl_register_fd): No need to check stat if open already filters
34856         all directories.
34857         (fchdir): Fix error condition to match POSIX.
34858         * modules/fchdir (Depends-on): Add sys_stat.
34859         * doc/posix-functions/open.texi (open): Document the limitation.
34860         * modules/fchdir-tests: New file.
34861         * tests/test-fchdir.c: Likewise.
34862
34863         canonicalize: allow cross-testing from cygwin to mingw
34864         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34865         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34866         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34867         Likewise.
34868         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34869         target does not support symlinks.
34870         * tests/test-canonicalize-lgpl.sh: Likewise.
34871
34872         chown: avoid compilation warning on mingw
34873         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34874         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34875         mingw.
34876         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34877         * modules/chown (Depends-on): Add errno.
34878
34879 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34880
34881         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34882         command.
34883
34884 2009-08-31  Jim Meyering  <meyering@redhat.com>
34885
34886         canonicalize: remove useless initialization
34887         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34888         initialization of local, "end".
34889
34890 2009-08-30  Bruno Haible  <bruno@clisp.org>
34891
34892         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34893         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34894         ENOSYS.
34895
34896 2009-08-30  Bruno Haible  <bruno@clisp.org>
34897
34898         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34899         /usr/xpg4/bin/tr when it exists.
34900         * tests/test-pipe-filter-gi1.sh: Likewise.
34901
34902 2009-08-30  Bruno Haible  <bruno@clisp.org>
34903
34904         Work around deficient /usr/bin/id program on Solaris.
34905         * tests/test-file-has-acl.sh (ID): New variable.
34906         * tests/test-set-mode-acl.sh (ID): Likewise.
34907         * tests/test-copy-acl.sh (ID): Likewise.
34908         * tests/test-copy-file.sh (ID): Likewise.
34909
34910 2009-08-30  Bruno Haible  <bruno@clisp.org>
34911
34912         New module 'xstriconveh'.
34913         * lib/xstriconveh.h: New file.
34914         * lib/xstriconveh.c: New file.
34915         * modules/xstriconveh: New file.
34916
34917 2009-08-30  Bruno Haible  <bruno@clisp.org>
34918
34919         Make it easier to use mem_cd_iconveh.
34920         * lib/striconveh.h (iconveh_t): New type.
34921         (iconveh_open, iconveh_close): New declarations.
34922         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34923         with a single 'const iconveh_t *' argument.
34924         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34925         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34926         with a single 'const iconveh_t *' argument.
34927         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34928         * tests/test-striconveh.c (main): Update.
34929         * NEWS: Mention the change.
34930
34931 2009-08-30  Bruno Haible  <bruno@clisp.org>
34932
34933         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34934         problem.
34935
34936 2009-08-30  Bruno Haible  <bruno@clisp.org>
34937
34938         Work around iconv_open problem on Solaris.
34939         * lib/iconv_open-solaris.gperf: New file.
34940         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34941         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34942         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34943         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34944         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34945         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34946
34947 2009-08-29  Jim Meyering  <meyering@redhat.com>
34948
34949         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34950         * top/maint.mk (cvs-check): Remove target; it was just an alias
34951         to the better-named vc-diff-check.
34952         (maintainer-distcheck): Remove rule.  It was used only from
34953         the (alpha/beta/major) target, and all of its commands but one
34954         were coreutils-specific.
34955         (vc-dist): Remove rule.
34956         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34957         Run vc-diff-check, not vc-dist.
34958         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34959
34960 2009-08-27  Bruno Haible  <bruno@clisp.org>
34961
34962         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34963         of 0.
34964
34965 2009-08-27  Bruno Haible  <bruno@clisp.org>
34966
34967         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34968         compilers.
34969         * doc/func.texi: Document the SunPRO C bug.
34970
34971 2009-08-27  Bruno Haible  <bruno@clisp.org>
34972
34973         Fix link error on Solaris.
34974         * tests/test-parse-duration.c (xstrdup): Remove function.
34975
34976 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34977
34978         ignore-value: handle pointer types, too
34979         * lib/ignore-value.h (__attribute__): Remove definition.
34980         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34981         of a more concise and more-often effective "(void) i" statement.
34982         (ignore_ptr): New function to suppress warnings from functions that
34983         return pointers, and to make it explicit that one function doesn't
34984         handle all cases.
34985
34986 2009-08-25  Bruno Haible  <bruno@clisp.org>
34987
34988         dup2: work around a Linux bug.
34989         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34990         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34991         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34992         Reported by Simon Josefsson.
34993
34994 2009-08-25  Jim Meyering  <meyering@redhat.com>
34995
34996         libguestfs uses gnulib
34997         * users.txt: Add libguestfs.
34998
34999 2009-08-24  Eric Blake  <ebb9@byu.net>
35000
35001         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35002         * lib/pipe2.c (includes): Add binary-io.h.
35003         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35004
35005 2009-08-24  Bruno Haible  <bruno@clisp.org>
35006
35007         Tolerate declared but missing accept4 syscall.
35008         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35009         available.
35010         * lib/sys_socket.in.h (accept4): If the function is already present,
35011         override it.
35012         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35013         * modules/accept4 (Makefile.am): Compile accept4.c always.
35014         Reported by Paolo Bonzini and Eric Blake.
35015
35016 2009-08-23  Bruno Haible  <bruno@clisp.org>
35017
35018         New module 'accept4'.
35019         * lib/sys_socket.in.h (accept4): New declaration.
35020         * lib/accept4.c: New file.
35021         * m4/accept4.m4: New file.
35022         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35023         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35024         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35025         HAVE_ACCEPT4.
35026         * modules/accept4: New file.
35027         * doc/glibc-functions/accept4.texi: Mention the new module.
35028
35029 2009-08-24  Jim Meyering  <meyering@redhat.com>
35030
35031         progname: also set global program_invocation_name, when possible
35032         Before this change, a libtool-enabled program that calls glibc's
35033         error function would report the program name as
35034         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35035         * modules/progname (configure.ac): Check for a declaration of
35036         program_invocation_name.
35037         * lib/progname.c:  Include <errno.h>.
35038         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35039         Set program_invocation_name.
35040
35041 2009-08-23  Bruno Haible  <bruno@clisp.org>
35042
35043         * lib/dup3.c: Include <string.h>.
35044
35045 2009-08-23  Bruno Haible  <bruno@clisp.org>
35046
35047         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35048         * lib/pipe2.c (pipe2): Likewise.
35049         Suggested by Eric Blake.
35050
35051 2009-08-23  Bruno Haible  <bruno@clisp.org>
35052
35053         Tolerate declared but missing dup3 syscall.
35054         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35055         * lib/unistd.in.h (dup3): If the function is already present,
35056         override it.
35057         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35058         * modules/dup3 (Makefile.am): Compile dup3.c always.
35059         Reported by Paolo Bonzini.
35060
35061 2009-08-23  Bruno Haible  <bruno@clisp.org>
35062
35063         Tolerate declared but missing pipe2 syscall.
35064         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35065         available.
35066         * lib/unistd.in.h (pipe2): If the function is already present,
35067         override it.
35068         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35069         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35070         Reported by Paolo Bonzini.
35071
35072 2009-08-23  Bruno Haible  <bruno@clisp.org>
35073
35074         * lib/pipe2.c (pipe2): Move #ifs inside function.
35075
35076 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35077
35078         quotearg: document limitations of quote_these_too
35079         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35080         those limitations are created.
35081         * lib/quotearg.h (set_char_quoting): Document that digits and
35082         letters that are special after backslash are not permitted.
35083         (quotearg_char): Cross-reference set_char_quoting documentation.
35084
35085 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35086
35087         quotearg: implement custom_quoting_style
35088         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35089         right_quote fields.
35090         (set_custom_quoting): New public function.
35091         (quotearg_buffer_restyled): Add left_quote and right_quote
35092         arguments, handle them very much like locale quoting, and update
35093         all uses.
35094         (quotearg_n_custom): New public function.
35095         (quotearg_n_custom_mem): New public function.
35096         (quotearg_custom): New public function.
35097         (quotearg_custom_mem): New public function.
35098         * lib/quotearg.h: Prototype and document new public functions.
35099         (enum quoting_style): For escape_quoting_style and
35100         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35101         ignored even though they're otherwise like c_quoting_style.
35102         Add custom_quoting_style member and document with comparison to
35103         clocale_quoting_style.
35104         * tests/test-quotearg.c (custom_quotes): New array.
35105         (custom_results): New array.
35106         (main): Extend to test custom quoting.
35107
35108 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35109
35110         quotearg: fix right quote escaping when it's in quote_these_too
35111         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35112         quote, be sure to prepend only one backslash.
35113         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35114         (main): Test it.
35115
35116 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35117
35118         quotearg-tests: test escaping of embedded locale quotes
35119         * tests/test-quotearg.c (struct result_strings): Add member for
35120         new input.
35121         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35122         (inputs): Add new input.
35123         (results_g): Add expected results.
35124         (flag_results): Likewise.
35125         (locale_results): Likewise.
35126         (compare_strings): Check those.
35127
35128 2009-08-23  Bruno Haible  <bruno@clisp.org>
35129
35130         Tests for module 'dup3'.
35131         * modules/dup3-tests: New file.
35132         * tests/test-dup3.c: New file.
35133
35134         New module 'dup3'.
35135         * lib/unistd.in.h (dup3): New declaration.
35136         * lib/dup3.c: New file.
35137         * m4/dup3.m4: New file.
35138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35139         HAVE_DUP3.
35140         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35141         * modules/dup3: New file.
35142         * doc/glibc-functions/dup3.texi: Mention the new module.
35143
35144 2009-08-23  Bruno Haible  <bruno@clisp.org>
35145
35146         Tweak the dup2 test.
35147         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35148         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35149         the test file is still empty. Fix argument order of lseek.
35150
35151 2009-08-23  Bruno Haible  <bruno@clisp.org>
35152
35153         Avoid test link errors when the modules getopt-gnu, gettext are used.
35154         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35156
35157 2009-08-23  Bruno Haible  <bruno@clisp.org>
35158
35159         Fix getdtablesize() on mingw.
35160         * lib/getdtablesize.c (getdtablesize): Implement differently.
35161         * lib/unistd.in.h (getdtablesize): Improve comment.
35162
35163 2009-08-23  Bruno Haible  <bruno@clisp.org>
35164
35165         New module 'mkostemp'.
35166         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35167         * lib/stdlib.in.h (mksotemp): New declaration.
35168         * lib/mkostemp.c: New file, from glibc with modifications.
35169         * lib/tempname.h (GT_FILE): Remove outdated comment.
35170         (gen_tempname): Add flags argument.
35171         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35172         (__GT_FILE): Map to 1.
35173         (small_open, large_open): Remove macros.
35174         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35175         * lib/mkstemp.c (mkstemp): Update.
35176         * lib/mkdtemp.c (mkdtemp): Likewise.
35177         * m4/mkostemp.m4: New file.
35178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35179         HAVE_MKOSTEMP.
35180         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35181         HAVE_MKOSTEMP.
35182         * modules/mkostemp: New file, based on modules/mkstemp.
35183         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35184         * NEWS: Mention the change.
35185
35186 2009-08-23  Bruno Haible  <bruno@clisp.org>
35187
35188         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35189         Reported by Eric Blake.
35190
35191 2009-08-23  Bruno Haible  <bruno@clisp.org>
35192
35193         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35194         Reported by Eric Blake.
35195
35196 2009-08-23  Bruno Haible  <bruno@clisp.org>
35197
35198         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35199         * modules/pipe2 (Depends-on): Likewise.
35200
35201 2009-08-23  Eric Blake  <ebb9@byu.net>
35202
35203         fcntl-h: add O_TTY_INIT support
35204         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35205         * tests/test-fcntl-h.c (o): Test it.
35206         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35207
35208         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35209         * modules/fcntl: Move <fcntl.h> header replacement...
35210         * modules/fcntl-h: ...to new name, so as not to collide with
35211         like-named function.
35212         * tests/test-fcntl.c: Rename...
35213         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35214         * modules/fcntl-tests: Rename...
35215         * modules/fcntl-h-tests: ...to this.  Update test file name.
35216         * modules/chdir-long (Depends-on): Update clients.
35217         * modules/chdir-safer (Depends-on): Likewise.
35218         * modules/fcntl-safer (Depends-on): Likewise.
35219         * modules/fts (Depends-on): Likewise.
35220         * modules/mkancesdirs (Depends-on): Likewise.
35221         * modules/mkdir-p (Depends-on): Likewise.
35222         * modules/open (Depends-on): Likewise.
35223         * modules/savewd (Depends-on): Likewise.
35224         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35225         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35226
35227 2009-08-22  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/binary-io (License): Relicense under LGPL.
35230         * modules/pipe2 (License): Likewise.
35231
35232 2009-08-22  Bruno Haible  <bruno@clisp.org>
35233
35234         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35235         return value.
35236         * lib/pipe-filter-gi.c (filter_init): Likewise.
35237         Reported by Eric Blake.
35238
35239 2009-08-22  Bruno Haible  <bruno@clisp.org>
35240
35241         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35242         * modules/pipe (Depends-on): Add pipe2.
35243
35244 2009-08-22  Bruno Haible  <bruno@clisp.org>
35245
35246         Tests for module 'pipe2'.
35247         * modules/pipe2-tests: New file.
35248         * tests/test-pipe2.c: New file.
35249
35250         New module 'pipe2'.
35251         * lib/unistd.in.h (pipe2): New declaration.
35252         * lib/pipe2.c: New file.
35253         * m4/pipe2.m4: New file.
35254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35255         HAVE_PIPE2.
35256         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35257         * modules/pipe2: New file.
35258         * doc/glibc-functions/pipe2.texi: Mention the new module.
35259
35260 2009-08-22  Bruno Haible  <bruno@clisp.org>
35261
35262         Reference some new glibc functions.
35263         * doc/glibc-functions/accept4.texi: New file.
35264         * doc/glibc-functions/dup3.texi: New file.
35265         * doc/glibc-functions/mkostemp.texi: New file.
35266         * doc/glibc-functions/pipe2.texi: New file.
35267         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35268         (Glibc sys/socket.h): Refer to accept4.
35269         (Glibc unistd.h): Refer to dup3, pipe2.
35270         Reported by Eric Blake.
35271
35272 2009-08-22  Jim Meyering  <meyering@redhat.com>
35273             Bruno Haible  <bruno@clisp.org>
35274
35275         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35276         This makes it so packages using automake-1.11's silent-rules option
35277         can print e.g., a single "GEN    configmake.h" line, rather than
35278         the 30+ statements that perform the job.  If you want to see the
35279         actual commands, you can still run "make V=1".
35280         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35281         so that make output is abbreviated when those variables are defined
35282         appropriately.
35283         * modules/argz: Likewise.
35284         * modules/arpa_inet: Likewise.
35285         * modules/byteswap: Likewise.
35286         * modules/configmake: Likewise.
35287         * modules/dirent: Likewise.
35288         * modules/errno: Likewise.
35289         * modules/fcntl: Likewise.
35290         * modules/float: Likewise.
35291         * modules/fnmatch: Likewise.
35292         * modules/getopt-posix: Likewise.
35293         * modules/glob: Likewise.
35294         * modules/iconv_open: Likewise.
35295         * modules/inttypes: Likewise.
35296         * modules/localcharset: Likewise.
35297         * modules/locale: Likewise.
35298         * modules/math: Likewise.
35299         * modules/netdb: Likewise.
35300         * modules/netinet_in: Likewise.
35301         * modules/poll: Likewise.
35302         * modules/posix_spawnp-tests: Likewise.
35303         * modules/sched: Likewise.
35304         * modules/search: Likewise.
35305         * modules/selinux-h: Likewise.
35306         * modules/signal: Likewise.
35307         * modules/spawn: Likewise.
35308         * modules/stdarg: Likewise.
35309         * modules/stdbool: Likewise.
35310         * modules/stddef: Likewise.
35311         * modules/stdint: Likewise.
35312         * modules/stdio: Likewise.
35313         * modules/stdlib: Likewise.
35314         * modules/string: Likewise.
35315         * modules/strings: Likewise.
35316         * modules/sys_file: Likewise.
35317         * modules/sys_ioctl: Likewise.
35318         * modules/sys_select: Likewise.
35319         * modules/sys_socket: Likewise.
35320         * modules/sys_stat: Likewise.
35321         * modules/sys_time: Likewise.
35322         * modules/sys_times: Likewise.
35323         * modules/sys_utsname: Likewise.
35324         * modules/sys_wait: Likewise.
35325         * modules/sysexits: Likewise.
35326         * modules/time: Likewise.
35327         * modules/unistd: Likewise.
35328         * modules/wchar: Likewise.
35329         * modules/wctype: Likewise.
35330
35331 2009-08-22  Jim Meyering  <meyering@redhat.com>
35332
35333         announce-gen: detect write failure
35334         * build-aux/announce-gen: Add Coda at end.
35335         Remove equivalent-but-more-verbose block at top.
35336
35337 2009-08-19  Akim Demaille  <demaille@gostai.com>
35338
35339         bootstrap: --help to stdout.
35340         * bootstrap (usage): Don't send --help to stderr.
35341         Use a here doc instead of a long string.
35342
35343 2009-08-21  Eric Blake  <ebb9@byu.net>
35344
35345         test-popen-safer: split from test-popen
35346         * tests/test-popen.c (main): Move...
35347         * tests/test-popen.h: ...into new file.
35348         * tests/test-popen-safer2.c: New file.
35349         * modules/popen-tests (Files): Add test-popen.h.
35350         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35351         Suggested by Bruno Haible.
35352
35353         test-fcntl-safer: split from test-open
35354         * tests/test-open.c (main): Move...
35355         * tests/test-open.h: ...into new file.
35356         * tests/test-fcntl-safer.c: New file.
35357         * modules/open-tests (Files): Add test-open.h.
35358         * modules/fcntl-safer-tests: New file.
35359         Suggested by Bruno Haible.
35360
35361         test-fopen-safer: split from test-fopen
35362         * tests/test-fopen.c (main): Move...
35363         * tests/test-fopen.h: ...into new file.
35364         * tests/test-fopen-safer.c: New file.
35365         * modules/fopen-tests (Files): Add test-fopen.h.
35366         * modules/fopen-safer-tests: New file.
35367         Suggested by Bruno Haible.
35368
35369 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35370
35371         popen-safer: test O_CLOEXEC at run-time.
35372         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35373
35374 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35375
35376         fcntl: move more flags to the header
35377         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35378         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35379         * lib/fcntl.in.h: Do both things here.
35380
35381 2009-08-21  Jim Meyering  <meyering@redhat.com>
35382
35383         consistently remove $@-t before redirecting to it
35384         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35385         * modules/alloca-opt: Likewise.
35386         * modules/byteswap: Likewise.
35387         * modules/fnmatch: Likewise.
35388         * modules/getopt-posix: Likewise.
35389         * modules/glob: Likewise.
35390         * modules/poll: Likewise.
35391         * modules/posix_spawnp-tests: Likewise.
35392         * modules/sys_socket: Likewise.
35393         * modules/sysexits: Likewise.
35394
35395 2009-08-21  Eric Blake  <ebb9@byu.net>
35396
35397         popen: simplify access to original popen
35398         * lib/popen.c (rpl_popen): No need to worry about popen being a
35399         macro.
35400         Reported by Bruno Haible.
35401
35402 2009-08-20  Eric Blake  <ebb9@byu.net>
35403
35404         build: avoid some compiler warnings
35405         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35406         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35407         type.
35408         (new_exclude_segment, excluded_file_pattern_p)
35409         (excluded_file_name_p): Reduce scope.
35410         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35411         old-style declaration.
35412
35413 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35414
35415         * tests/test-exclude1.sh: Handle Windows EOL.
35416         * tests/test-exclude2.sh: Likewise.
35417         * tests/test-exclude3.sh: Likewise.
35418         * tests/test-exclude4.sh: Likewise.
35419         * tests/test-exclude5.sh: Likewise.
35420         * tests/test-exclude6.sh: Likewise.
35421         * tests/test-exclude7.sh: Likewise.
35422
35423 2009-08-19  Akim Demaille  <demaille@gostai.com>
35424
35425         bootstrap: find sha1sum when named gsha1sum.
35426         * bootstrap (find_tool): New.
35427         ($SHA1SUM): New.
35428         Use it.
35429
35430 2009-08-20  Jim Meyering  <meyering@redhat.com>
35431
35432         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35433         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35434         expression that converts "." in a file name to "\." in the resulting
35435         regexp.  Start with a dummy statement, so that prior shell variable
35436         definitions are expanded portably.  Reported by Simon Josefsson.
35437
35438 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35439
35440         Fix polling for writeability of a screen buffer.
35441         * lib/poll.c: Distinguish input and screen buffers for the
35442         Win32 implementation.
35443         * lib/select.c: Likewise.
35444
35445 2009-08-19  Eric Blake  <ebb9@byu.net>
35446
35447         popen-safer: prevent popen from clobbering std descriptors
35448         * modules/popen-safer: New file.
35449         * lib/popen-safer.c: Likewise.
35450         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35451         * lib/stdio--.h (popen): Provide override.
35452         * lib/stdio-safer.h (popen_safer): Provide declaration.
35453         * tests/test-popen.c (includes): Partially test this.
35454         * modules/popen-safer-tests: New file, for more tests.
35455         * tests/test-popen-safer.c: Likewise.
35456         * MODULES.html.sh (file stream based Input/Output): Mention it.
35457
35458         tests: test some of the *-safer modules
35459         * modules/fopen-safer (Depends-on): Add fopen.
35460         * modules/fcntl-safer (Depends-on): Add fcntl.
35461         * modules/stdlib-safer (Depends-on): Add stdlib.
35462         (configure.ac): Set indicator.
35463         * modules/unistd-safer (configure.ac): Likewise.
35464         * modules/tmpfile-safer (configure.ac): Likewise.
35465         (Depends-on): Add tmpfile.
35466         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35467         active.
35468         * tests/test-fopen.c (includes): Test safer versions when they are
35469         in use.
35470         * tests/test-open.c (includes): Likewise.
35471
35472         popen: fix cygwin 1.5 bug when stdin closed
35473         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35474         * modules/popen: New file.
35475         * modules/popen-tests: Likewise.
35476         * tests/test-popen.c: Likewise.
35477         * m4/popen.m4: Likewise.
35478         * lib/popen.c: Likewise.
35479         * lib/stdio.in.h (popen): New declaration.
35480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35481         * modules/stdio (Makefile.am): Likewise.
35482         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35483
35484 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35485
35486         maint.mk: give full control over update-copyright exclusions
35487         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35488         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35489         (update-copyright): Don't force inclusion of top-level
35490         ChangeLog.  Don't force exclusion of all COPYING files, but make
35491         them the default exclusion instead.
35492
35493 2009-08-16  Bruno Haible  <bruno@clisp.org>
35494
35495         Fix test failures on Solaris 10.
35496         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35497         tests when Solaris iconv() is used.
35498         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35499         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35500         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35501         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35502         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35503
35504 2009-08-16  Bruno Haible  <bruno@clisp.org>
35505
35506         Fix test failures on Solaris 10.
35507         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35508         'tr' program and pass it as first argument.
35509         * tests/test-pipe-filter-gi1.sh: Likewise.
35510         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35511         program as first argument.
35512         * tests/test-pipe-filter-gi1.c (main): Likewise.
35513
35514 2009-08-16  Eric Blake  <ebb9@byu.net>
35515
35516         fpurge: fix previous commits
35517         * modules/fpurge (Makefile.am): Make replacement conditional,
35518         partially reverting 2007-04-29 change; missed in previous
35519         attempt.
35520         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35521         is missing.
35522
35523 2009-08-16  Bruno Haible  <bruno@clisp.org>
35524
35525         Clarify fpurge's effect on the file position.
35526         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35527         * tests/test-fpurge.c (main): Make a second pass for checking the file
35528         position.
35529
35530 2009-08-16  Bruno Haible  <bruno@clisp.org>
35531
35532         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35533         declaration of fpurge is missing.
35534         * tests/test-fpurge.c (main): Check that the file has not more contents
35535         than expected. Close the file before removing it.
35536
35537 2009-08-15  Eric Blake  <ebb9@byu.net>
35538
35539         fpurge: don't wrap working cygwin implementation
35540         * lib/fpurge.c (fpurge): Fix comment typo.
35541         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35542         1.7 to avoid replacement.
35543         * tests/test-fpurge.c (main): Enhance test.
35544
35545 2009-08-15  Eric Blake  <ebb9@byu.net>
35546         and Jim Meyering  <meyering@redhat.com>
35547
35548         test-update-copyright: skip if perl is insufficient
35549         * tests/test-update-copyright.sh: Failure to run maintainer tool
35550         should not cause testsuite failure on cygwin 1.5.
35551
35552 2009-08-14  Eric Blake  <ebb9@byu.net>
35553
35554         doc: mention more functions added in cygwin 1.7.0
35555         * doc/posix-headers/limits.texi (limits.h): Update for recent
35556         cygwin additions.
35557         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35558         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35559         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35560         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35561         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35562
35563 2009-08-14  Eric Blake  <ebb9@byu.net>
35564
35565         maint.mk: simplify update-copyright rule
35566         * top/maint.mk (update-copyright-local): Delete, and document how
35567         to do it in cfg.mk instead.
35568         (update-copyright-exclude-regexp): Delete, and document how to do
35569         it in .x-update-copyright instead.
35570         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35571         exclude ChangeLog.
35572
35573 2009-08-14  Bruno Haible  <bruno@clisp.org>
35574
35575         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35576
35577 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35578
35579         maint.mk: support update-copyright-env
35580         * top/maint.mk (update-copyright-env): Define place-holder.
35581         (update-copyright): Expand $(update-copyright-env) before
35582         invoking update-copyright.
35583
35584 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35585
35586         update-copyright: implement forced reformatting
35587         * build-aux/update-copyright: Implement and document
35588         UPDATE_COPYRIGHT_FORCE.
35589         * tests/test-update-copyright.sh: Test it.
35590
35591 2009-08-14  Eric Blake  <ebb9@byu.net>
35592         and Bruno Haible  <bruno@clisp.org>
35593
35594         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35595         * tests/test-locale.c: Revert previous patch related to NULL.
35596         * tests/test-stdio.c: Likewise.
35597         * tests/test-stdlib.c: Likewise.
35598         * tests/test-string.c: Likewise.
35599         * tests/test-unistd.c: Likewise.
35600         * modules/time-tests (Depends-on): Add verify.
35601         * modules/wchar-tests (Depends-on): Likewise.
35602         * tests/test-time.c: Test for NULL compliance.
35603         * tests/test-wchar.c: Likewise.
35604         * modules/locale (Depends-on): Add stddef.
35605         * modules/stdio (Depends-on): Likewise.
35606         * modules/stdlib (Depends-on): Likewise.
35607         * modules/string (Depends-on): Likewise.
35608         * modules/time (Depends-on): Likewise.
35609         * modules/unistd (Depends-on): Likewise.
35610         * modules/wchar (Depends-on): Likewise.
35611         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35612         * lib/stdlib.in.h (includes): Likewise.
35613         * lib/string.in.h (includes): Likewise.
35614         * lib/time.in.h (includes): Likewise.
35615         * lib/unistd.in.h (includes): Likewise.
35616         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35617         replaced.
35618         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35619         * m4/stddef_h.m4: New file.
35620         * modules/stddef: Likewise.
35621         * lib/stddef.in.h: Likewise.
35622         * modules/stddef-tests: Likewise.
35623         * tests/test-stddef.c: Likewise.
35624         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35625         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35626         * doc/posix-headers/locale.texi (locale.h): Likewise.
35627         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35628         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35629         * doc/posix-headers/string.texi (string.h): Likewise.
35630         * doc/posix-headers/time.texi (time.h): Likewise.
35631         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35632         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35633
35634 2009-08-14  Eric Blake  <ebb9@byu.net>
35635
35636         doc: improve git diff of texinfo files
35637         * .gitattributes: Add rule for *.texi files, with hint on how to
35638         use it.
35639         Copied from m4, and based on a report by Bruno Haible.
35640
35641 2009-08-14  Bruno Haible  <bruno@clisp.org>
35642
35643         Disable multithread support by default on Cygwin 1.5.x for real.
35644         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35645
35646 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35647
35648         update-copyright: much ado about intervals
35649         * build-aux/update-copyright: Implement and document
35650         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35651         of copyright year intervals.
35652         Also, document UPDATE_COPYRIGHT_YEAR.
35653         * tests/test-update-copyright.sh: Test it.
35654
35655         update-copyright: convert 2-digit to 4-digit years
35656         * build-aux/update-copyright: Implement and document.
35657         * tests/test-update-copyright.sh: Update.
35658
35659 2009-08-14  Jim Meyering  <meyering@redhat.com>
35660
35661         test-exclude: avoid coreutils "make check" failure
35662         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35663         just as in test-argmatch.c.
35664
35665 2009-08-13  Eric Blake  <ebb9@byu.net>
35666
35667         test-dup2: fix bad assumption
35668         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35669         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35670
35671         test-version-etc: fix CRLF portability issue
35672         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35673         recognize \r.
35674         * tests/test-argp-version-etc-1.sh: Likewise.
35675
35676         getopt: update client modules
35677         * modules/argp (Depends-on): Use getopt-gnu.
35678         * modules/git-merge-changelog (Depends-on): Likewise.
35679         * modules/long-options (Depends-on): Likewise.
35680         * modules/xstrtol (Depends-on): Likewise.
35681
35682 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35683
35684         * tests/test-version-etc.sh: Don't fail on different
35685         project/version.  Don't fail on CRLF differences.  Rewrite to use
35686         multiple -e instead of multiple sed forks, suggested by Eric Blake
35687         <ebb9@byu.net>.
35688         * tests/test-argp-version-etc-1.sh: Likewise.
35689
35690 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35691
35692         * tests/test-version-etc.sh: Don't fail on different
35693         project/version.
35694
35695 2009-08-12  Bruno Haible  <bruno@clisp.org>
35696
35697         Tests for modules 'getopt-posix', 'getopt-gnu'.
35698         * modules/getopt-posix-tests: New file.
35699         * tests/test-getopt.c: New file.
35700         * tests/test-getopt.h: New file.
35701         * tests/test-getopt_long.h: New file.
35702
35703         New modules 'getopt-posix', 'getopt-gnu'.
35704         * modules/getopt-gnu: New file, renamed from modules/getopt.
35705         * modules/getopt-posix: New file.
35706         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35707         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35708         (gl_GETOPT): Remove macro.
35709         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35710         Disable the test against BSD systems that declare optreset. Test
35711         against mingw bug. Test against lack of support of optional arguments
35712         on many platforms.
35713         * doc/glibc-headers/getopt.texi: Update module name and list of
35714         relevant platforms.
35715         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35716         'getopt-gnu' and more portability problems.
35717         * NEWS: Mention the changes.
35718
35719 2009-08-12  Bruno Haible  <bruno@clisp.org>
35720
35721         Ensure that optarg etc. get declared by <unistd.h>.
35722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35723         AC_USE_SYSTEM_EXTENSIONS.
35724         * modules/getopt (Depends-on): Add 'extensions'.
35725
35726 2009-08-12  Bruno Haible  <bruno@clisp.org>
35727
35728         Avoid test link errors.
35729         * modules/pipe-filter-ii-tests (Makefile.am): Define
35730         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35731         * modules/pipe-filter-gi-tests (Makefile.am): Define
35732         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35734
35735 2009-08-12  Bruno Haible  <bruno@clisp.org>
35736
35737         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35738         gl_GETOPT_SUBSTITUTE before.
35739         (gl_GETOPT): Use it.
35740         * m4/argp.m4 (gl_ARGP): Update.
35741         Reported by Sergey Poznyakoff.
35742
35743         * m4/getopt.m4: Reorder macros.
35744         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35745         (gl_GETOPT_SUBSTITUTE): Remove macro.
35746
35747 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35748
35749         Minor improvement in gitlog-to-changelog
35750
35751         * build-aux/gitlog-to-changelog: New option `--format' makes
35752         output format string configurable.
35753
35754 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35755
35756         Optimize exclude: use hash tables for non-wildcard patterns.
35757
35758         * lib/exclude.c: Include hash.h and mbuiter.h
35759         (struct exclude_pattern, exclude_segment): New data types.
35760         (struct exclude): Rewrite.
35761         (fnmatch_pattern_has_wildcards): New function.
35762         (new_exclude_segment, free_exclude_segment): New functions.
35763         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35764         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35765         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35766         * modules/exclude: Depend on hash and mbuiter.
35767
35768         * modules/exclude-tests: New file.
35769         * tests/test-exclude.c: New file.
35770         * tests/test-exclude1.sh: New file.
35771         * tests/test-exclude2.sh: New file.
35772         * tests/test-exclude3.sh: New file.
35773         * tests/test-exclude4.sh: New file.
35774         * tests/test-exclude5.sh: New file.
35775         * tests/test-exclude6.sh: New file.
35776         * tests/test-exclude7.sh: New file.
35777
35778 2009-08-12  Bruno Haible  <bruno@clisp.org>
35779
35780         Ensure that getopt() gets declared by <unistd.h>.
35781         * lib/unistd.in.h: Conditionally include getopt.h.
35782         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35783         Set GNULIB_UNISTD_H_GETOPT.
35784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35785         GNULIB_UNISTD_H_GETOPT.
35786         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35787
35788 2009-08-12  Bruno Haible  <bruno@clisp.org>
35789
35790         Clarify logic.
35791         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35792         gl_replace_getopt instead of GETOPT_H.
35793
35794 2009-08-12  Bruno Haible  <bruno@clisp.org>
35795
35796         * m4/getopt.m4: Add comments.
35797
35798 2009-08-12  Bruno Haible  <bruno@clisp.org>
35799
35800         Disable multithread support by default on Cygwin 1.5.x.
35801         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35802         set gl_use_threads=no if not specified otherwise.
35803
35804 2009-08-11  Bruno Haible  <bruno@clisp.org>
35805
35806         Avoid compilation error on NetBSD 5.0.
35807         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35808         * tests/test-stdio.c: Likewise.
35809         * tests/test-stdlib.c: Likewise.
35810         * tests/test-string.c: Likewise.
35811         * tests/test-unistd.c: Likewise.
35812         Reported by Greg Troxel <gdt@ir.bbn.com>
35813         at <https://savannah.gnu.org/support/?106973>.
35814
35815 2009-08-11  Bruno Haible  <bruno@clisp.org>
35816
35817         * modules/dup2-tests (Depends-on): Remove close.
35818
35819         Undo 2009-07-19 commit.
35820         * modules/acl-tests (Depends-on): Remove close.
35821         * modules/binary-io-tests (Depends-on): Likewise.
35822         * modules/closein-tests (Depends-on): Likewise.
35823         * modules/flock-tests (Depends-on): Likewise.
35824         * modules/fsync-tests (Depends-on): Likewise.
35825         * modules/lseek-tests (Depends-on): Likewise.
35826         * modules/pipe-tests (Depends-on): Likewise.
35827         * modules/posix_spawn-tests (Depends-on): Likewise.
35828         * modules/posix_spawnp-tests (Depends-on): Likewise.
35829         * modules/stat-time-tests (Depends-on): Likewise.
35830         * modules/yesno-tests (Depends-on): Likewise.
35831
35832 2009-08-10  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35835
35836 2009-08-10  Bruno Haible  <bruno@clisp.org>
35837
35838         Fix a gcc warning.
35839         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35840
35841 2009-08-10  Bruno Haible  <bruno@clisp.org>
35842
35843         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35844         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35845         not only the first time.
35846         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35847         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35848         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35849         is 1, not only the the first time.
35850
35851 2009-08-10  Bruno Haible  <bruno@clisp.org>
35852
35853         Make it possible to use module 'gethostname' without module 'close'.
35854         * lib/unistd.in.h (close): Evoke a link error only if
35855         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35857         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35858         * modules/unistd (Makefile.am): Substitute
35859         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35860         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35861         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35863         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35864         * modules/sys_ioctl (Makefile.am): Substitute
35865         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35866         * modules/socket (configure.ac): On native Windows, set
35867         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35868         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35869         Reported by Sam Steingold <sds@gnu.org>.
35870
35871 2009-08-10  Bruno Haible  <bruno@clisp.org>
35872
35873         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35874         * modules/ioctl (configure.ac): Likewise.
35875
35876 2009-08-10  Bruno Haible  <bruno@clisp.org>
35877
35878         Avoid collision between gnulib wrapper and libintl wrapper.
35879         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35880         already defined in intl/printf.c.
35881         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35882         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35883
35884 2009-08-09  Bruno Haible  <bruno@clisp.org>
35885
35886         Make <sys/select.h> really self-contained, also on Solaris 10.
35887         * lib/sys_select.in.h: Include <string.h>.
35888         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35889         Solaris 10 problem.
35890         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35891         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35892         Reported by Jim Meyering.
35893
35894 2009-08-09  Bruno Haible  <bruno@clisp.org>
35895
35896         Avoid warnings from 'aclocal' that are due to a use of macro name
35897         AM_XGETTEXT_OPTION that is not defined in automake.
35898         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35899         automake.
35900         * modules/error (configure.ac): Likewise.
35901         * modules/propername (configure.ac): Likewise.
35902         * modules/vasprintf (configure.ac): Likewise.
35903         * modules/verror (configure.ac): Likewise.
35904         * modules/xprintf (configure.ac): Likewise.
35905         * modules/xvasprintf (configure.ac): Likewise.
35906
35907 2009-08-08  Bruno Haible  <bruno@clisp.org>
35908
35909         Avoid compilation error in C++ mode.
35910         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35911         Reported by Sam Steingold <sds@gnu.org>.
35912
35913 2009-08-08  Bruno Haible  <bruno@clisp.org>
35914
35915         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35916         for the various Unix platforms.
35917         * doc/posix-headers/limits.texi: Update platforms list regarding
35918         HOST_NAME_MAX.
35919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35920
35921 2009-08-07  Jim Meyering  <meyering@redhat.com>
35922
35923         selinux-at: fix typo in a comment
35924         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35925         Spotted by Paolo Bonzini.
35926
35927         selinux-at: remove redundant m4 code, add documentation
35928         * modules/selinux-at (configure.ac): Remove redundant code.
35929         LIB_SELINUX is already set via the dependent module, selinux-h.
35930         (Include): Add quotes around selinux-at.h.
35931         * lib/selinux-at.h: Add documentation.
35932         Reported by Bruno Haible in
35933         http://marc.info/?l=gnulib-bug&m=124958988300749
35934
35935 2009-08-07  Bruno Haible  <bruno@clisp.org>
35936
35937         Avoid link error on MacOS X 10.3 and 10.4.
35938         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35939         on non-ELF systems.
35940         * lib/argp-pv.c (argp_program_version): Likewise.
35941         Reported by Simon Josefsson.
35942
35943 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35944
35945         * tests/test-version-etc.sh: Use $EXEEXT.
35946
35947 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35948
35949         update-copyright: update documentation to point to maint.mk
35950         * build-aux/update-copyright: Here.
35951
35952 2009-08-06  Jim Meyering  <meyering@redhat.com>
35953
35954         maint.mk: support update-copyright-local
35955         * top/maint.mk (update-copyright-local): Define place-holder.
35956         (update-copyright): Depend on $(update-copyright-local).
35957
35958 2009-08-06  Jim Meyering  <meyering@redhat.com>
35959
35960         selinux-at: new module
35961         Initially written for coreutils, this module will soon be
35962         used by findutils, too.
35963         * MODULES.html.sh [Misc]: Add selinux-at.
35964         * lib/selinux-at.h: New file, from coreutils.
35965         * lib/selinux-at.c: Likewise.
35966         * modules/selinux-at: Likewise.
35967         (License): Change from LGPL to GPL, since it depends
35968         on the GPL'd openat module.
35969
35970         doc: update README
35971         * README: Remove references to cogito.
35972         Remove cvs-repo-updating instructions from 2007.
35973         Don't imply that CVS is better if you have limited disk space.
35974
35975 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35976
35977         update-copyright: support C-style comments
35978         * build-aux/update-copyright: Implement and document.
35979         * tests/test-update-copyright.sh: Test.
35980
35981 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35982
35983         update-copyright: support omitted "(C)"
35984         * build-aux/update-copyright: Implement and document.  Also,
35985         allow variable whitespace before "(C)".
35986         * tests/test-update-copyright.sh: Test.
35987
35988 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35989
35990         update-copyright: don't trip on non-FSF copyright statements
35991         * build-aux/update-copyright: Fix so that the first correctly
35992         formatted FSF copyright statement is recognized no matter what
35993         appears before it.  Update documentation.
35994         * tests/test-update-copyright.sh: Test that.
35995
35996 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35997
35998         update-copyright: clean up code a little
35999         * build-aux/update-copyright: Append "_re" to the name of any
36000         variable holding a regular expression.
36001         Replace "old" and "new" with "stmt" in variable names.
36002         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36003         handled correctly.
36004         Format code more consistently.
36005
36006 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36007
36008         update-copyright-tests: improve portability
36009         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36010         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36011
36012 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36013
36014         update-copyright: support @copyright{} and &copy;
36015         * build-aux/update-copyright: Implement and document.
36016         * tests/test-update-copyright.sh: Test.
36017
36018 2009-08-04  Jim Meyering  <meyering@redhat.com>
36019
36020         update-copyright-tests: correctly test EOL=\r\n handling
36021         * tests/test-update-copyright.sh: Put \r at the end of some lines
36022         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36023
36024         maint.mk: make update-copyright exclusion list more configurable
36025         * top/maint.mk (update-copyright): Default to excluding COPYING,
36026         but allow an override, in case someone does want to update that file.
36027
36028         maint.mk: don't update copyright date in COPYING
36029         * top/maint.mk (update-copyright): Exclude COPYING.
36030
36031         maint.mk: add a copyright-updating rule
36032         * top/maint.mk (update-copyright): New rule.
36033         Derived from coreutils/Makefile.am.
36034
36035         update-copyright: rename some variables
36036         * build-aux/update-copyright: Rename a few variables for clarity.
36037         Tweak syntax.  List Joel E. Denny as coauthor.
36038
36039 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36040
36041         update-copyright: fix bug for 2-digit last year and add tests
36042         * build-aux/update-copyright: Fix bug.
36043         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36044         specified.
36045         * modules/update-copyright-tests: New
36046         * tests/test-update-copyright.sh: New.
36047
36048 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36049
36050         update-copyright: handle leading tabs in line prefix
36051         * build-aux/update-copyright: Count leading tabs as 8 spaces
36052         when computing margin.  This helps with the formatting of
36053         ChangeLogs, for example.
36054         Fix documentation a little.
36055
36056 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36057
36058         update-copyright: support EOL=\r\n
36059         * build-aux/update-copyright: Implement that.
36060
36061 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36062
36063         update-copyright: automatically format copyright statements
36064         * build-aux/update-copyright: Implement that.
36065         Also, be a little more predictable and safer by always failing
36066         when the full copyright format is not perfectly recognized as an
36067         unbroken whole.  Discussed at
36068         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36069         Rewrite documentation.
36070
36071 2009-08-03  Bruno Haible  <bruno@clisp.org>
36072
36073         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36074
36075 2009-08-02  Bruno Haible  <bruno@clisp.org>
36076
36077         Tests for module 'uname'.
36078         * modules/uname-tests: New file.
36079         * tests/test-uname.c: New file.
36080
36081         New module 'uname'.
36082         * lib/uname.c: New file.
36083         * m4/uname.m4: New file.
36084         * modules/uname: New file.
36085         * doc/posix-functions/uname.texi: Mention the new module.
36086
36087 2009-08-02  Bruno Haible  <bruno@clisp.org>
36088
36089         Tests for module 'sys_utsname'.
36090         * modules/sys_utsname-tests: New file.
36091         * tests/test-sys_utsname.c: New file.
36092
36093         New module 'sys_utsname'.
36094         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36095         * m4/sys_utsname_h.m4: New file.
36096         * modules/sys_utsname: New file.
36097         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36098
36099 2009-08-02  Bruno Haible  <bruno@clisp.org>
36100
36101         Implicitly initialize the sockets library.
36102         * lib/gethostname.c: Include sockets.h.
36103         (rpl_gethostname): Invoke gl_sockets_startup.
36104         * lib/socket.c: Include sockets.h.
36105         (rpl_socket): Invoke gl_sockets_startup.
36106         * modules/gethostname (Depends-on): Add sockets.
36107         * modules/socket (Depends-on): Likewise.
36108         * tests/test-poll.c: Don't include sockets.h.
36109         (main): Don't invoke gl_sockets_startup.
36110         * tests/test-select.c: Don't include sockets.h.
36111         (main): Don't invoke gl_sockets_startup.
36112
36113 2009-08-02  Bruno Haible  <bruno@clisp.org>
36114
36115         Allow multiple calls to gl_sockets_startup.
36116         * lib/sockets.c (initialized_sockets_version): New variable.
36117         (gl_sockets_startup): Do nothing if already called for this or a higher
36118         version.
36119         (gl_sockets_cleanup): Reset initialized_sockets_version.
36120
36121 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36122
36123         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36124         different project/version.
36125
36126 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36127             Bruno Haible  <bruno@clisp.org>
36128
36129         Tests for module 'pipe-filter-gi'.
36130         * modules/pipe-filter-gi-tests: New file.
36131         * tests/test-pipe-filter-gi1.sh: New file.
36132         * tests/test-pipe-filter-gi1.c: New file.
36133         * tests/test-pipe-filter-gi2.sh: New file.
36134         * tests/test-pipe-filter-gi2-main.c: New file.
36135         * tests/test-pipe-filter-gi2-child.c: New file.
36136
36137         New module 'pipe-filter-gi'.
36138         * lib/pipe-filter-gi.c: New file.
36139         * modules/pipe-filter-gi: New file.
36140
36141 2009-08-02  Bruno Haible  <bruno@clisp.org>
36142             Paolo Bonzini  <bonzini@gnu.org>
36143
36144         Tests for module 'pipe-filter-ii'.
36145         * modules/pipe-filter-ii-tests: New file.
36146         * tests/test-pipe-filter-ii1.sh: New file.
36147         * tests/test-pipe-filter-ii1.c: New file.
36148         * tests/test-pipe-filter-ii2.sh: New file.
36149         * tests/test-pipe-filter-ii2-main.c: New file.
36150         * tests/test-pipe-filter-ii2-child.c: New file.
36151
36152         New module 'pipe-filter-ii'.
36153         * lib/pipe-filter.h: New file.
36154         * lib/pipe-filter-ii.c: New file.
36155         * lib/pipe-filter-aux.h: New file.
36156         * modules/pipe-filter-ii: New file.
36157
36158 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36159
36160         * lib/gc-libgcrypt.c: Change copyright to FSF.
36161         * lib/gc-gnulib.c: Likewise.
36162
36163 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36164
36165         * lib/gethostname.c: Include limits.h.
36166
36167 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36168             Bruno Haible  <bruno@clisp.org>
36169
36170         Ensure HOST_NAME_MAX as part of the gethostname module.
36171         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36172         define also HOST_NAME_MAX.
36173         * tests/test-gethostname.c: Include <limits.h>.
36174         (main): Check also HOST_NAME_MAX.
36175         * doc/posix-headers/limits.texi: Document the mingw problem.
36176
36177 2009-08-02  Bruno Haible  <bruno@clisp.org>
36178
36179         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36180         Add comments.
36181
36182 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36183
36184         * lib/gethostname.c: Add Windows wrapper.
36185         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36186         * modules/gethostname: Depend on sys_socket & errno, for also
36187         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36188         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36189
36190 2009-07-31  Jim Meyering  <meyering@redhat.com>
36191
36192         getloadavg: fix symbol name in comment
36193         * lib/getloadavg.c: Correct a typo I introduced when adding
36194         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36195         Matt Kraai spotted the problem.
36196
36197 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36198
36199         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36200         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36201         code also if ! defined N_NAME_POINTER.
36202         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36203         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36204         but the n_name member is a 12-byte array.
36205
36206 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36207
36208         update-copyright: generalize comment handling
36209         * build-aux/update-copyright: Handle copyright statements
36210         within more comment styles.
36211         Document usage.
36212         Report any file with an external copyright holder or parse failure.
36213
36214 2009-07-29  Jim Meyering  <meyering@redhat.com>
36215
36216         mktime: correct setting of REPLACE_MKTIME
36217         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36218
36219         update-copyright: new module
36220         * modules/update-copyright: New file.
36221         * build-aux/update-copyright: New file.
36222         * MODULES.html.sh (maint+release support): Add update-copyright.
36223
36224 2009-07-27  Bruno Haible  <bruno@clisp.org>
36225
36226         Fix compilation error when <ctime> is used and mktime is replaced.
36227         * lib/time.in.h (mktime): New declaration.
36228         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36229         REPLACE_MKTIME instead of defining mktime in config.h.
36230         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36231         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36232         Reported by Ross McFarland <rwmcfa1@neces.com>.
36233
36234 2009-07-27  Bruno Haible  <bruno@clisp.org>
36235
36236         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36237         Reported by Matt Kraai <mkraai@beckman.com>.
36238
36239 2009-07-25  Jim Meyering  <meyering@redhat.com>
36240
36241         maint.mk: avoid warnings about missing files
36242         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36243         diagnostic when .prev-version does not exist.
36244         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36245         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36246         nonexistent cfg.mk.
36247         Suggestions from Simon Josefsson.
36248
36249 2009-07-25  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36252         defined as macros. Needed on QNX 6.4.1.
36253         Reported by Matt Kraai <mkraai@beckman.com>.
36254
36255 2009-07-23  Jim Meyering  <meyering@redhat.com>
36256
36257         maint.mk: invoke "make dist" with a working value of XZ_OPT
36258         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36259
36260 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36261
36262         Make fseeko.c compile on QNX.
36263         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36264
36265 2009-07-22  Peter Simons  <simons@cryp.to>
36266
36267         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36268         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36269         * lib/md4.h: Likewise.
36270         * lib/md5.h: Likewise.
36271         * lib/sha1.h: Likewise.
36272         * lib/sha256.h: Likewise.
36273         * lib/sha512.h: Likewise.
36274
36275         tests-sha1: don't assign literal string to 'char *' variable
36276         * tests/test-sha1.c (main): Declare locals with "const" to match
36277         attributes of the right hand side.
36278
36279 2009-07-21  Eric Blake  <ebb9@byu.net>
36280
36281         dup2: fix more mingw problems
36282         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36283         fd to itself.
36284         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36285         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36286         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36287         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36288         care of mingw bugs.
36289
36290 2009-07-21  Jim Meyering  <meyering@redhat.com>
36291
36292         vc-list-files: avoid failure when /bin/sh is dash
36293         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36294         On some Debian based systems, /bin/sh is a symlink to dash, and running
36295         this command would omit the "/" following each 'tests' prefix:
36296           dash -x build-aux/vc-list-files -C . tests
36297         That is because bash and dash work differently:
36298           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36299           bash ok
36300           dash odd
36301
36302 2009-07-21  Eric Blake  <ebb9@byu.net>
36303
36304         dup2-tests: test previous patch
36305         * modules/dup2-tests: New file.
36306         * tests/test-dup2.c: Likewise.
36307         * tests/test-open.c (main): Avoid unspecified behavior.
36308         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36309         test.
36310
36311         dup2: work around mingw and cygwin 1.5 bug
36312         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36314         * modules/unistd (Makefile.am): Substitute it.
36315         * lib/unistd.in.h (dup2): Declare the replacement.
36316         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36317         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36318         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36319         * modules/execute (Depends-on): Add dup2.
36320         * modules/fseterr (Depends-on): Likewise.
36321         * modules/pipe (Depends-on): Likewise.
36322         * modules/posix_spawn-internal (Depends-on): Likewise.
36323
36324 2009-07-21  Bruno Haible  <bruno@clisp.org>
36325
36326         * modules/.gitattributes: New file.
36327
36328 2009-07-20  Bruno Haible  <bruno@clisp.org>
36329
36330         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36331         (main): Use it.
36332
36333 2009-07-20  Eric Blake  <ebb9@byu.net>
36334
36335         test-pipe: make a bit more robust.
36336         * tests/test-pipe.c (myerr): Allow error messages regardless of
36337         what we do to stderr.
36338         (test_pipe): Rearrange to avoid deadlock.
36339         (child_main): Try a larger read, to ensure we avoided deadlock.
36340         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36341         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36342         if misused.
36343
36344 2009-07-19  Jim Meyering  <meyering@redhat.com>
36345
36346         fts: avoid false-positive cycle-detection
36347         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36348         for each new command line argument.
36349
36350 2009-07-19  Bruno Haible  <bruno@clisp.org>
36351
36352         Fix build error on mingw with the modules sys_select and unistd.
36353         * modules/acl-tests (Depends-on): Add close.
36354         * modules/binary-io-tests (Depends-on): Likewise.
36355         * modules/closein-tests (Depends-on): Likewise.
36356         * modules/flock-tests (Depends-on): Likewise.
36357         * modules/fsync-tests (Depends-on): Likewise.
36358         * modules/lseek-tests (Depends-on): Likewise.
36359         * modules/pipe-tests (Depends-on): Likewise.
36360         * modules/posix_spawn-tests (Depends-on): Likewise.
36361         * modules/posix_spawnp-tests (Depends-on): Likewise.
36362         * modules/stat-time-tests (Depends-on): Likewise.
36363         * modules/yesno-tests (Depends-on): Likewise.
36364
36365 2009-07-19  Bruno Haible  <bruno@clisp.org>
36366
36367         Unify conditionals.
36368         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36369         macros, not at the compiler macros.
36370         * lib/pipe.c: Likewise.
36371         * lib/execute.c: Likewise.
36372         * lib/spawni.c: Likewise.
36373
36374 2009-07-19  Bruno Haible  <bruno@clisp.org>
36375
36376         Fix handling of closed stdin/stdout/stderr on mingw.
36377         * lib/w32spawn.h: Include unistd.h.
36378         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36379         file descriptor with O_NOINHERIT flag.
36380         (fd_safer_noinherit): New function, based on fd-safer.c.
36381         (dup_safer_noinherit): New function, based on dup-safer.c.
36382         (undup_safer_noinherit): New function.
36383         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36384         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36385         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36386         instead of fd_safer.
36387         * tests/test-pipe.c: Include <windows.h>.
36388         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36389         result.
36390
36391         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36392         from main.
36393         (test_pipe): Pass an extra argument for disambiguation.
36394         (main): Invoke parent_main or child_main.
36395
36396         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36397         consistently.
36398
36399 2009-07-18  Eric Blake  <ebb9@byu.net>
36400
36401         test-pipe: fix mingw build
36402         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36403
36404 2009-07-18  Bruno Haible  <bruno@clisp.org>
36405
36406         * modules/pipe-tests (Makefile.am): Fix typo.
36407
36408 2009-07-18  Eric Blake  <ebb9@byu.net>
36409
36410         error: fix mingw build
36411         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36412         Reported by Bruno Haible.
36413
36414         error: avoid undefined use of stdout
36415         * lib/error.c (error, error_at_line): Check that fd 1 is open
36416         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36417         is handling faults and the close_stdout module wants to report the
36418         detection of closed stdout as an error.
36419
36420 2009-07-17  Eric Blake  <ebb9@byu.net>
36421
36422         pipe: be robust in face of closed fds
36423         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36424         should cause child to misbehave.
36425         * modules/pipe-tests: New module.
36426         * tests/test-pipe.c: New file.
36427         * tests/test-pipe.sh: New file.
36428         Reported by Akim Demaille.
36429
36430 2009-07-14  Bruno Haible  <bruno@clisp.org>
36431
36432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36433         Reported by anonymous kc.
36434
36435 2009-07-07  Jim Meyering  <meyering@redhat.com>
36436
36437         maint.mk: don't look for translatable strings in *.m4 or *.mk
36438         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36439         when searching for translatable strings.
36440
36441 2009-07-05  Jim Meyering  <meyering@redhat.com>
36442
36443         remove superfluous parentheses in STREQ definition
36444         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36445         * lib/getugroups.c (STREQ): Likewise.
36446         * lib/fnmatch.c (STREQ): Likewise.
36447         Spotted by Bruno Haible.
36448
36449 2009-07-04  Jim Meyering  <meyering@redhat.com>
36450
36451         argv-iter: new module
36452         * MODULES.html.sh: Add argv-iter.
36453         * lib/argv-iter.c, lib/argv-iter.h: New files.
36454         * modules/argv-iter: New file.
36455         * modules/argv-iter-tests: New file.
36456         * tests/test-argv-iter.c: Test it.
36457
36458 2009-07-04  Bruno Haible  <bruno@clisp.org>
36459
36460         Fix assertion.
36461         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36462         contains more exact copies of a given entry than file2, leave the extra
36463         copies unpaired rather than aborting.
36464         Reported by Eric Blake.
36465
36466 2009-07-02  Bruno Haible  <bruno@clisp.org>
36467
36468         Speedup git-merge-changelog for git cherry-pick.
36469         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36470         (entries_mapping_get): New function, extracted from compute_mapping.
36471         (entries_mapping_reverse_get): New function.
36472         (compute_mapping): Add a 'full' argument. Return the result in a
36473         'struct entries_mapping'.
36474         (main): Update. Access the mappings through entries_mapping_get.
36475         Reported by Eric Blake.
36476
36477 2009-07-02  Bruno Haible  <bruno@clisp.org>
36478
36479         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36480         best_i.
36481
36482 2009-07-02  Bruno Haible  <bruno@clisp.org>
36483
36484         Speed up approximate search for matching ChangeLog entries.
36485         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36486         argument. Call fstrcmp_bounded instead of fstrcmp.
36487         (compute_mapping, try_split_merged_entry, main): Update callers.
36488
36489 2009-07-02  Bruno Haible  <bruno@clisp.org>
36490
36491         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36492
36493 2009-06-30  Bruno Haible  <bruno@clisp.org>
36494
36495         Reduce the number of uc_is_cased calls.
36496         * lib/unicase.h (casing_suffix_context_t): Add
36497         'first_char_except_ignorable' field.
36498         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36499         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36500         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36501         Update initializer.
36502         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36503         case-ignorable characters.
36504         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36505         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36506         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36507         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36508         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36509
36510 2009-06-30  Bruno Haible  <bruno@clisp.org>
36511
36512         Tests for module 'unicase/ignorable'.
36513         * modules/unicase/ignorable-tests: New file.
36514         * tests/unicase/test-ignorable.c: New file, generated by
36515         gen-uni-tables.
36516
36517         Tests for module 'unicase/cased'.
36518         * modules/unicase/cased-tests: New file.
36519         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36520         * tests/unicase/test-predicate-part1.h: New file, derived from
36521         tests/unictype/test-predicate-part1.h.
36522         * tests/unicase/test-predicate-part2.h: New file, same as
36523         tests/unictype/test-predicate-part2.h.
36524
36525         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36526         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36527         (output_casing_properties): New function.
36528         (main): Call it.
36529         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36530         * lib/unicase/cased.c: Include unictype/bitmap.h.
36531         (uc_is_cased): Define through a bitmap lookup.
36532         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36533         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36534         (uc_is_case_ignorable): Define through a bitmap lookup.
36535         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36536         lib/unictype/bitmap.h.
36537         (Depends-on): Add inline. Clean up.
36538         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36539         lib/unictype/bitmap.h.
36540         (Depends-on): Add inline. Clean up.
36541         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36542         recognition.
36543         * tests/unicase/test-u16-tolower.c (main): Likewise.
36544         * tests/unicase/test-u32-tolower.c (main): Likewise.
36545
36546 2009-06-30  Bruno Haible  <bruno@clisp.org>
36547
36548         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36549         * lib/unicase/u16-casemap.c: Likewise.
36550         * lib/unicase/u32-casemap.c: Likewise.
36551
36552 2009-06-29  Bruno Haible  <bruno@clisp.org>
36553
36554         Define u32_casefold as a wrapper around u32_ct_casefold.
36555         * lib/unicase/u32-casefold.c: Update.
36556         * modules/unicase/u32-casefold (Depends-on): Add
36557         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36558         unicase/empty-suffix-context. Clean up.
36559
36560         Define u16_casefold as a wrapper around u16_ct_casefold.
36561         * lib/unicase/u16-casefold.c: Update.
36562         * modules/unicase/u16-casefold (Depends-on): Add
36563         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36564         unicase/empty-suffix-context. Clean up.
36565
36566         Define u8_casefold as a wrapper around u8_ct_casefold.
36567         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36568         * lib/unicase/u8-casefold.c: Update.
36569         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36570         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36571
36572         Define u32_totitle as a wrapper around u32_ct_totitle.
36573         * lib/unicase/u32-totitle.c: Update.
36574         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36575         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36576
36577         Define u16_totitle as a wrapper around u16_ct_totitle.
36578         * lib/unicase/u16-totitle.c: Update.
36579         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36580         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36581
36582         Define u8_totitle as a wrapper around u8_ct_totitle.
36583         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36584         functions.
36585         (FUNC): Delegate to U_CT_TOTITLE.
36586         * lib/unicase/u8-totitle.c: Update.
36587         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36588         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36589
36590         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36591         invocation.
36592         * modules/unicase/u32-tolower (Depends-on): Add
36593         unicase/empty-prefix-context, unicase/empty-suffix-context.
36594
36595         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36596         invocation.
36597         * modules/unicase/u16-tolower (Depends-on): Add
36598         unicase/empty-prefix-context, unicase/empty-suffix-context.
36599
36600         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36601         * modules/unicase/u8-tolower (Depends-on): Add
36602         unicase/empty-prefix-context, unicase/empty-suffix-context.
36603
36604         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36605         invocation.
36606         * modules/unicase/u32-toupper (Depends-on): Add
36607         unicase/empty-prefix-context, unicase/empty-suffix-context.
36608
36609         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36610         invocation.
36611         * modules/unicase/u16-toupper (Depends-on): Add
36612         unicase/empty-prefix-context, unicase/empty-suffix-context.
36613
36614         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36615         * modules/unicase/u8-toupper (Depends-on): Add
36616         unicase/empty-prefix-context, unicase/empty-suffix-context.
36617
36618         New module 'unicase/u32-ct-casefold'.
36619         * lib/unicase/u32-ct-casefold.c: New file.
36620         * modules/unicase/u32-ct-casefold: New file.
36621
36622         New module 'unicase/u16-ct-casefold'.
36623         * lib/unicase/u16-ct-casefold.c: New file.
36624         * modules/unicase/u16-ct-casefold: New file.
36625
36626         New module 'unicase/u8-ct-casefold'.
36627         * lib/unicase/u8-ct-casefold.c: New file.
36628         * lib/unicase/u-ct-casefold.h: New file, derived from
36629         lib/unicase/u-casefold.h.
36630         * modules/unicase/u8-ct-casefold: New file.
36631
36632         New module 'unicase/u32-ct-totitle'.
36633         * lib/unicase/u32-ct-totitle.c: New file.
36634         * modules/unicase/u32-ct-totitle: New file.
36635
36636         New module 'unicase/u16-ct-totitle'.
36637         * lib/unicase/u16-ct-totitle.c: New file.
36638         * modules/unicase/u16-ct-totitle: New file.
36639
36640         New module 'unicase/u8-ct-totitle'.
36641         * lib/unicase/u8-ct-totitle.c: New file.
36642         * lib/unicase/u-ct-totitle.h: New file, derived from
36643         lib/unicase/u-totitle.h.
36644         * modules/unicase/u8-ct-totitle: New file.
36645
36646         New module 'unicase/u32-ct-tolower'.
36647         * lib/unicase/u32-ct-tolower.c: New file.
36648         * modules/unicase/u32-ct-tolower: New file.
36649
36650         New module 'unicase/u16-ct-tolower'.
36651         * lib/unicase/u16-ct-tolower.c: New file.
36652         * modules/unicase/u16-ct-tolower: New file.
36653
36654         New module 'unicase/u8-ct-tolower'.
36655         * lib/unicase/u8-ct-tolower.c: New file.
36656         * modules/unicase/u8-ct-tolower: New file.
36657
36658         New module 'unicase/u32-ct-toupper'.
36659         * lib/unicase/u32-ct-toupper.c: New file.
36660         * modules/unicase/u32-ct-toupper: New file.
36661
36662         New module 'unicase/u16-ct-toupper'.
36663         * lib/unicase/u16-ct-toupper.c: New file.
36664         * modules/unicase/u16-ct-toupper: New file.
36665
36666         New module 'unicase/u8-ct-toupper'.
36667         * lib/unicase/u8-ct-toupper.c: New file.
36668         * modules/unicase/u8-ct-toupper: New file.
36669
36670         Add context arguments to u*_casemap functions.
36671         * lib/unicase/unicasemap.h: Include unicase.h.
36672         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36673         suffix_context arguments.
36674         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36675         functions.
36676         (FUNC): Add prefix_context and suffix_context arguments. Use
36677         uc_is_cased and uc_is_case_ignorable.
36678         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36679         * lib/unicase/u16-casemap.c: Likewise.
36680         * lib/unicase/u32-casemap.c: Likewise.
36681         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36682         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36683         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36684         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36685         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36686         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36687
36688         New module 'unicase/u32-suffix-context'.
36689         * lib/unicase/u32-suffix-context.c: New file.
36690         * modules/unicase/u32-suffix-context: New file.
36691
36692         New module 'unicase/u16-suffix-context'.
36693         * lib/unicase/u16-suffix-context.c: New file.
36694         * modules/unicase/u16-suffix-context: New file.
36695
36696         New module 'unicase/u8-suffix-context'.
36697         * lib/unicase/u8-suffix-context.c: New file.
36698         * lib/unicase/u-suffix-context.h: New file.
36699         * modules/unicase/u8-suffix-context: New file.
36700
36701         New module 'unicase/empty-suffix-context'.
36702         * lib/unicase/empty-suffix-context.c: New file.
36703         * modules/unicase/empty-suffix-context: New file.
36704
36705         New module 'unicase/u32-prefix-context'.
36706         * lib/unicase/u32-prefix-context.c: New file.
36707         * modules/unicase/u32-prefix-context: New file.
36708
36709         New module 'unicase/u16-prefix-context'.
36710         * lib/unicase/u16-prefix-context.c: New file.
36711         * modules/unicase/u16-prefix-context: New file.
36712
36713         New module 'unicase/u8-prefix-context'.
36714         * lib/unicase/u8-prefix-context.c: New file.
36715         * lib/unicase/u-prefix-context.h: New file.
36716         * lib/unicase/context.h: New file.
36717         * modules/unicase/u8-prefix-context: New file.
36718
36719         New module 'unicase/empty-prefix-context'.
36720         * lib/unicase/empty-prefix-context.c: New file.
36721         * modules/unicase/empty-prefix-context: New file.
36722
36723         New module 'unicase/ignorable'.
36724         * lib/unicase/ignorable.c: New file.
36725         * modules/unicase/ignorable: New file.
36726
36727         New module 'unicase/cased'.
36728         * lib/unicase/caseprop.h: New file.
36729         * lib/unicase/cased.c: New file.
36730         * modules/unicase/cased: New file.
36731
36732         New functions for case mapping of substrings.
36733         * lib/unicase.h (casing_prefix_context_t): New type.
36734         (unicase_empty_prefix_context): New variable.
36735         (u8_casing_prefix_context, u16_casing_prefix_context,
36736         u32_casing_prefix_context, u8_casing_prefixes_context,
36737         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36738         declarations.
36739         (casing_suffix_context_t): New type.
36740         (unicase_empty_suffix_context): New variable.
36741         (u8_casing_suffix_context, u16_casing_suffix_context,
36742         u32_casing_suffix_context, u8_casing_suffixes_context,
36743         u16_casing_suffixes_context, u32_casing_suffixes_context,
36744         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36745         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36746         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36747         declarations.
36748
36749 2009-06-28  Jim Meyering  <meyering@redhat.com>
36750
36751         boostrap: indent only with spaces
36752         * build-aux/bootstrap: Indent only with spaces, never TABs.
36753
36754         bootstrap: split long lines
36755         * build-aux/bootstrap: Keep line length < 80.
36756
36757         bootstrap: sync from coreutils
36758         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36759         just as autoreconf does.  Verify a list of prerequisite
36760         package-name,version-number pairs if defined in bootstrap.conf.
36761         Refer to README-prereq, if prerequisites are not satisfied.
36762
36763 2009-06-27  Eric Blake  <ebb9@byu.net>
36764
36765         tests: add test for bogus NULL definition
36766         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36767         * tests/test-stdlib.c: Likewise.
36768         * tests/test-string.c: Likewise.
36769         * tests/test-locale.c: Likewise.
36770         * tests/test-unistd.c: Likewise.
36771         * modules/stdio-tests (Depends-on): Add verify.
36772         * modules/stdlib-tests (Depends-on): Likewise.
36773         * modules/string-tests (Depends-on): Likewise.
36774         * modules/locale-tests (Depends-on): Likewise.
36775         * modules/unistd-tests (Depends-on): Likewise.
36776
36777 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36778
36779         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36780         self-explaining comment.
36781         * m4/selinux-selinux-h: Update serial.
36782         (gl_LIBSELINUX): New macro, adding a warning for missing development
36783         packages to code extracted from...
36784         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36785         Add warning for missing development packages here, too.
36786
36787 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36788
36789         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36790
36791 2009-06-25  Eric Blake  <ebb9@byu.net>
36792
36793         version-etc: fix regression
36794         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36795         gcc.
36796         (version_etc): Use it, to catch bugs with trailing NULL.
36797         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36798         (version_etc_va): Fix logic bug.
36799         * modules/version-etc-tests: Add test.
36800         * tests/test-version-etc.c: New file.
36801         * tests/test-version-etc.sh: Likewise.
36802
36803 2009-06-25  Sam Steingold  <sds@gnu.org>
36804
36805         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36806         mbtowc declaration.
36807
36808 2009-06-25  Eric Blake  <ebb9@byu.net>
36809
36810         fpurge: migrate into <stdio.h>
36811         * lib/fpurge.h: Delete...
36812         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36813         * lib/fpurge.c (fpurge): Change declaring header.
36814         * modules/fpurge (Files): Drop deleted file.
36815         (Depends-on): Add stdio.
36816         (configure.ac): Set witness.
36817         * modules/stdio (Makefile.am): Support fpurge macros.
36818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36819         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36820         * lib/fflush.c: Update client.
36821         * tests/test-fpurge.c: Likewise.
36822         * NEWS: Mention the change.
36823
36824 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36825
36826         * lib/argp-version-etc.c (program_authors): Add const
36827         qualifier.
36828         * lib/version-etc.c: Fix typos in the comments.
36829         * modules/argp-version-etc: Depends on version-etc.
36830
36831 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36832
36833         argp-version-etc: new module.
36834
36835         * lib/argp-version-etc.c: New file.
36836         * lib/argp-version-etc.h: New file.
36837         * modules/argp-version-etc: New file.
36838         * modules/argp-version-etc-tests: New file.
36839         * tests/test-argp-version-etc.c: New test.
36840         * tests/test-argp-version-etc-1.sh: New test.
36841
36842 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36843
36844         Provide additional interfaces and documentation for version-etc
36845         module.
36846
36847         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36848         interfaces.
36849         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36850         prototypes.
36851
36852 2009-06-24  Bruno Haible  <bruno@clisp.org>
36853
36854         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36855         HAVE_LIB${NAME} macro.
36856         Reported by Sam Steingold <sds@gnu.org>.
36857
36858 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36859
36860         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36861         needed.
36862
36863 2009-06-21  Bruno Haible  <bruno@clisp.org>
36864
36865         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36866         work.
36867         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36868         together with LIB${NAME}, LTLIB${NAME}.
36869         Reported by Sam Steingold <sds@gnu.org>.
36870
36871 2009-06-20  Jim Meyering  <meyering@redhat.com>
36872
36873         tests: make sc_require_test_exit_idiom more generic
36874         * top/maint.mk (Exit_witness_file): New overridable variable.
36875         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36876         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36877
36878 2009-06-19  Jim Meyering  <meyering@redhat.com>
36879
36880         hash: reverse order of src/dst parameters in an internal interface
36881         * lib/hash.c (transfer_entries): Reverse order of parameters to
36882         put DST before SRC.  Adjust callers.
36883
36884         tests: test-hash: avoid wholesale duplication
36885         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36886         Instead, use a loop and add a single conditional.
36887
36888         tests: test-hash: allow seed selection via a command line argument
36889         * tests/test-hash.c (get_seed): New function.
36890         (main): Use it.
36891
36892 2009-06-19  Eric Blake  <ebb9@byu.net>
36893
36894         hash: avoid memory leak on allocation failure
36895         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36896         failure.  Factor repeated algorithm...
36897         (transfer_entries): ...into new helper routine.
36898         (hash_delete): React to hash_rehash return value.
36899
36900         hash: reduce memory pressure in hash_rehash no-op case
36901         * lib/hash.c (next_prime): Avoid overflow.
36902         (hash_initialize): Factor bucket size computation...
36903         (compute_bucket_size): ...into new helper function.
36904         (hash_rehash): Use new function and open coding to reduce memory
36905         pressure, and avoid a memory leak in USE_OBSTACK code.
36906         Reported by Jim Meyering.
36907
36908 2009-06-18  Eric Blake  <ebb9@byu.net>
36909
36910         hash: make rotation more obvious
36911         * modules/hash (Depends-on): Add bitrotate and stdint.
36912         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36913         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36914         (SIZE_MAX): Rely on headers for definition.
36915         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36916         (raw_hasher): Use rotr_sz.
36917         Suggested by Jim Meyering.
36918
36919         hash: fix memory leak in last patch
36920         * lib/hash.c (hash_rehash): Avoid memory leak.
36921
36922         hash: avoid no-op rehashing
36923         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36924
36925         hash: provide default callback functions
36926         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36927         (hash_initialize): Use them as defaults.
36928         * tests/test-hash.c (main): Test this.
36929
36930         hash: minor optimization
36931         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36932         when possible.
36933         (hash_initialize): Document this promise.
36934         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36935         * tests/test-hash.c (hash_compare_strings): Test this.
36936
36937 2009-06-18  Bruno Haible  <bruno@clisp.org>
36938
36939         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36940         going to be replaced anyway.
36941
36942 2009-06-18  Bruno Haible  <bruno@clisp.org>
36943
36944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36945         in one place.
36946         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36947         be replaced anyway.
36948
36949 2009-06-18  Eric Blake  <ebb9@byu.net>
36950
36951         hash: check for resize before insertion
36952         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36953         threshold before insertion, so that a pathological hash_rehash
36954         that fills every bucket can still trigger another rehash.
36955
36956 2009-06-18  Jim Meyering  <meyering@redhat.com>
36957
36958         hash-tests: add a loop around the small tests
36959         * tests/test-hash.c (main): Repeat small tests with selected
36960         small initial table sizes.
36961
36962 2009-06-17  Eric Blake  <ebb9@byu.net>
36963
36964         hash: minor cleanups
36965         * lib/hash.h (hash_entry): Make opaque, by moving...
36966         * lib/hash.c (hash_entry): ...here.
36967         (hash_insert): Clarify restrictions on what can be inserted.
36968         (hash_get_next): Clarify when it is safe to remove an element
36969         during traversal.
36970         (check_tuning): Skip verification when tuning is known safe.
36971         (hash_initialize): Clarify restrictions on tuning.
36972
36973 2009-06-17  Jim Meyering  <jim@meyering.net>
36974         and Eric Blake  <ebb9@byu.net>
36975
36976         hash-tests: new module
36977         * modules/hash-tests: New file.
36978         * tests/test-hash.c: New file.
36979
36980 2009-06-17  Eric Blake  <ebb9@byu.net>
36981
36982         strstr-simple: document new module
36983         * MODULES.html.sh: Document new module.
36984
36985         strstr, strcasestr: replace on platforms with broken memchr
36986         * modules/strstr: Split into...
36987         * modules/strstr-simple: ...new module that does not care about
36988         performance, but does care about glibc bug.
36989         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36990         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36991         if platform memchr is broken, per Debian bug 521737.
36992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36993         memchr.
36994         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36995         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36996         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36997         * modules/mountlist (Depends-on): Add strstr-simple.
36998         * modules/gen-uni-tables (Depends-on): Likewise.
36999         * modules/argz (Depends-on): Add strstr.
37000
37001 2009-06-17  Bruno Haible  <bruno@clisp.org>
37002
37003         * modules/posix_spawn-internal (Depends-on): Add errno.
37004
37005 2009-06-17  Bruno Haible  <bruno@clisp.org>
37006
37007         Define missing ESTALE on Interix 3.5.
37008         * lib/errno.in.h (ESTALE): Assign a value if missing.
37009         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37011         missing.
37012         * doc/posix-headers/errno.texi: Mention the Interix bug.
37013         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37014
37015 2009-06-15  Eric Blake  <ebb9@byu.net>
37016
37017         memchr, memchr2: add valgrind exception
37018         * lib/memchr.valgrind: New file.
37019         * lib/memchr2.valgrind: New file.
37020         * modules/memchr (Files): Distribute valgrind file.
37021         * modules/memchr2 (Files): Likewise.
37022
37023         docs: memchr is no longer obsolete
37024         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37025         * lib/string.in.h (memchr): Simplify logic.
37026
37027 2009-06-14  Jim Meyering  <meyering@redhat.com>
37028
37029         link-follow: fix the "checking..." message to not mention trailing slash
37030         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37031         never considered trailing slashes.
37032
37033 2009-06-14  Bruno Haible  <bruno@clisp.org>
37034
37035         * m4/memchr.m4: Mention also the bug on IA-64.
37036         * doc/posix-functions/memchr.texi: Likewise.
37037
37038 2009-06-12  Eric Blake  <ebb9@byu.net>
37039
37040         memchr: detect broken x86_64 and alpha implementations
37041         * modules/memchr-tests (Depends-on): Move mmap detection...
37042         * modules/memchr (Depends-on): ...here.
37043         (configure.ac): Set indicator.
37044         * lib/string.in.h (memchr): Declare replacement.
37045         * modules/string (Makefile.am): Trigger replacement.
37046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37047         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37048         bugs.
37049         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37050         * modules/getpagesize (License): Relax license.
37051
37052 2009-06-11  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/idpriv.h: Add more references.
37055
37056 2009-06-08  Bruno Haible  <bruno@clisp.org>
37057
37058         Tests for module 'idpriv-droptemp'.
37059         * modules/idpriv-droptemp-tests: New file.
37060         * tests/test-idpriv-droptemp.sh: New file.
37061         * tests/test-idpriv-droptemp.su.sh: New file.
37062         * tests/test-idpriv-droptemp.c: New file.
37063
37064         New module 'idpriv-droptemp'.
37065         * lib/idpriv-droptemp.c: New file.
37066         * modules/idpriv-droptemp: New file.
37067
37068 2009-06-08  Bruno Haible  <bruno@clisp.org>
37069
37070         Tests for module 'idpriv-drop'.
37071         * modules/idpriv-drop-tests: New file.
37072         * tests/test-idpriv-drop.sh: New file.
37073         * tests/test-idpriv-drop.su.sh: New file.
37074         * tests/test-idpriv-drop.c: New file.
37075
37076         New module 'idpriv-drop'.
37077         * lib/idpriv.h: New file.
37078         * lib-idpriv-drop.c: New file.
37079         * m4/idpriv.m4: New file.
37080         * modules/idpriv-drop: New file.
37081
37082 2009-06-08  Bruno Haible  <bruno@clisp.org>
37083
37084         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37085         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37086         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37087         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37088         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37089         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37090         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37091
37092 2009-06-08  Eric Blake  <ebb9@byu.net>
37093
37094         test-strstr: use memory fence, when possible
37095         * tests/test-strstr.c (main): Use memory fence, in order to be
37096         more likely to trigger Debian bug 521737.
37097         * modules/strstr-tests (Files): Pull in additional files.
37098
37099         memchr: no longer obsolete, for wider field testing
37100         * modules/memchr (Status, Notice): Delete, this module is no
37101         longer obsolete.
37102         * modules/vasnprintf (Depends-on): Add memchr.
37103
37104 2009-06-07  Jim Meyering  <meyering@redhat.com>
37105
37106         hash: declare some functions with the warn_unused_result attribute
37107         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37108
37109 2009-06-07  Bruno Haible  <bruno@clisp.org>
37110
37111         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37112         Reported by Eric Blake.
37113
37114 2009-06-06  Eric Blake  <ebb9@byu.net>
37115
37116         test-alignof: fix typo with long double
37117         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37118         compiler error.
37119
37120 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37121
37122         Escape non-texinfo { and }s.
37123         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37124         markup error.
37125
37126 2009-06-04  Jim Meyering  <meyering@redhat.com>
37127
37128         gitlog-to-changelog: don't infloop on an empty commit log
37129         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37130         Reported by Boris Petersen <transacid@centerim.org>.
37131
37132 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37133
37134         version-etc: extend for packagers
37135         Add three new configure options, intended for packagers:
37136           --with-packager="packager name"
37137           --with-packager-version="packager-specific version"
37138           --with-packager-bug-reports="packager bug reporting"
37139         An example with coreutils:
37140           $ ./configure \
37141             --with-packager=Gentoo \
37142             --with-packager-bug-report=http://bugs.gentoo.org/ \
37143             --with-packager-version="patchset 1.6"
37144           $ ./src/ls --version | head -n2
37145           ls (GNU coreutils) 7.1-dirty
37146           Packaged by Gentoo (patchset 1.6)
37147         Note that the bug reporting info via --help doesn't show up because
37148         coreutils uses its own custom emit_bug_reporting_address() implementation
37149         in src/system.h.  If it didn't, it'd look like:
37150           $ ./src/ls --help | tail -n4
37151           Report bugs to <bug-coreutils@gnu.org>.
37152           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37153           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37154           General help using GNU software: <http://www.gnu.org/gethelp/>.
37155         * lib/version-etc.c: Print new information, if provided.
37156         * m4/version-etc.m4: New file.
37157         * modules/version-etc (Files): Add m4/version-etc.m4.
37158         (configure.ac): Add gl_VERSION_ETC.
37159
37160 2009-05-31  Bruno Haible  <bruno@clisp.org>
37161
37162         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37163         and 'int64_t'.
37164         * modules/alignof-tests (Dependencies): Add stdint.
37165         Reported by Eric Blake.
37166
37167 2009-05-31  Bruno Haible  <bruno@clisp.org>
37168
37169         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37170         restriction due to compiler bugs.
37171         Reported by Eric Blake.
37172
37173 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37174             Bruno Haible  <bruno@clisp.org>
37175
37176         Fix test-alignof failure.
37177         * lib/alignof.h (alignof_slot): New macro.
37178         (alignof_type): New macro, with the same semantics as the previous
37179         'alignof'.
37180         (alignof): Alias to alignof_slot.
37181         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37182         check that the results are usable as constant expressions.
37183
37184 2009-05-31  Bruno Haible  <bruno@clisp.org>
37185
37186         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37187         * tests/test-memchr.c (main): Check that memchr does not read past the
37188         first occurrence of the byte.
37189         * tests/test-strstr.c (main): Update comment.
37190         Suggested by Eric Blake.
37191
37192 2009-05-30  Bruno Haible  <bruno@clisp.org>
37193
37194         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37195         detail how to use dumpbin.
37196         Reported by David Byron <dbyron@dbyron.com>.
37197
37198 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37199
37200         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37201
37202 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37203
37204         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37205
37206 2009-05-28  Bruno Haible  <bruno@clisp.org>
37207
37208         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37209         build-aux/ files.
37210
37211 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37212
37213         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37214
37215 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37216
37217         * gnulib-tool (sed_transform_main_lib_file)
37218         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37219         regexps.
37220
37221 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37222
37223         * tests/test-strstr.c: Add another self-test.
37224         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37225         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37226
37227 2009-05-23  Bruno Haible  <bruno@clisp.org>
37228
37229         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37230         change.
37231
37232 2009-05-21  Bruno Haible  <bruno@clisp.org>
37233
37234         Simplify use of mode_t varargs.
37235         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37236         uses 'mode_t' or 'int'.
37237         * lib/openat.c (openat): Likewise.
37238         * lib/open-safer.c (open_safer): Likewise.
37239         * m4/mode_t.m4: New file.
37240         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37241         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37242         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37243         * modules/open (Files): Add m4/mode_t.m4.
37244         * modules/openat (Files): Likewise.
37245         * modules/fcntl-safer (Files): Likewise.
37246         Suggested by Eric Blake.
37247
37248 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37249
37250         * doc/glibc-functions/fallocate.texi: New file.
37251         * doc/gnulib.texi: Include it.
37252
37253 2009-05-21  Eric Blake  <ebb9@byu.net>
37254             Bruno Haible  <bruno@clisp.org>
37255
37256         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37257         invocations.
37258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37259
37260 2009-05-21  Eric Blake  <ebb9@byu.net>
37261             Bruno Haible  <bruno@clisp.org>
37262
37263         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37264         include_next. Fix of 2008-11-20 commit.
37265         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37266         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37267         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37268         NEXT_MATH_H.
37269         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37270         instead of NEXT_MATH_H.
37271
37272 2009-05-21  Bruno Haible  <bruno@clisp.org>
37273
37274         Avoid redefinition warnings for SIZE_MAX.
37275         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37276         Reported by Simon Josefsson.
37277
37278 2009-05-21  Bruno Haible  <bruno@clisp.org>
37279
37280         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37281         AC_CACHE_VAL.
37282
37283 2009-05-20  Bruno Haible  <bruno@clisp.org>
37284
37285         Make zeroptr.h work on mingw.
37286         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37287         mprotect.
37288         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37289         * modules/memchr2-tests (configure.ac): Likewise.
37290         * modules/memcmp-tests (configure.ac): Likewise.
37291         * modules/memmem-tests (configure.ac): Likewise.
37292         * modules/memrchr-tests (configure.ac): Likewise.
37293         Reported by Simon Josefsson.
37294
37295 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37296
37297         * tests/test-glob.c: Include string.h for strcmp prototype.
37298
37299 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37300
37301         * modules/getdelim (Depends-on): Add explicit stdint, although it
37302         was implicitly already pulled in via realloc-posix.
37303         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37304
37305 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37306
37307         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37308         G. Christensen" <tgc@jupiterrise.com>.
37309         * m4/sys_socket_h.m4: Check for sa_family_t.
37310         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37311         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37312         * tests/test-sys_socket.c: Check that sa_family_t works.
37313
37314 2009-05-18  Eric Blake  <ebb9@byu.net>
37315
37316         maint.mk: allow gnulib_dir in VPATH build
37317         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37318
37319 2009-05-15  Jim Meyering  <meyering@redhat.com>
37320
37321         maint.mk: Give gnulib_dir a default definition.
37322         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37323         Thus, most packages no longer need to specify this variable in cfg.mk
37324
37325 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37326
37327         rename.m4: fix typos that would make non-mingw cross-configure fail
37328         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37329
37330 2009-05-13  Eric Blake  <ebb9@byu.net>
37331
37332         mmap-anon: avoid out-of-order autoconf expansion
37333         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37334         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37335         * modules/memchr-tests (Depends-on): Add extensions.
37336         * modules/memchr2-tests (Depends-on): Add extensions.
37337         * modules/memcmp-tests (Depends-on): Add extensions.
37338         * modules/memmem-tests (Depends-on): Add extensions.
37339         * modules/memrchr-tests (Depends-on): Add extensions.
37340
37341 2009-05-13  Bruno Haible  <bruno@clisp.org>
37342
37343         Make some tests ISO C 99 compliant.
37344         * tests/zerosize-ptr.h: New file.
37345         * tests/test-memchr.c: Include zerosize-ptr.h.
37346         (main): Use a zero-size object pointer instead of NULL.
37347         * tests/test-memchr2.c: Include zerosize-ptr.h.
37348         (main): Use a zero-size object pointer instead of NULL.
37349         * tests/test-memcmp.c: Include zerosize-ptr.h.
37350         (main): Use a zero-size object pointer instead of NULL.
37351         * tests/test-memmem.c: Include zerosize-ptr.h.
37352         (main): Use a zero-size object pointer instead of NULL.
37353         * tests/test-memrchr.c: Include zerosize-ptr.h.
37354         (main): Use a zero-size object pointer instead of NULL.
37355         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37356         m4/mmap-anon.m4.
37357         (Depends-on): Add getpagesize.
37358         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37359         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37360         m4/mmap-anon.m4.
37361         (Depends-on): Add getpagesize.
37362         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37363         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37364         m4/mmap-anon.m4.
37365         (Depends-on): Add getpagesize.
37366         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37367         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37368         m4/mmap-anon.m4.
37369         (Depends-on): Add getpagesize.
37370         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37371         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37372         m4/mmap-anon.m4.
37373         (Depends-on): Add getpagesize.
37374         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37375
37376 2009-05-12  Bruno Haible  <bruno@clisp.org>
37377
37378         Tests for module 'alignof'.
37379         * modules/alignof-tests: New file.
37380         * tests/test-alignof.c: New file.
37381
37382 2009-05-12  Bruno Haible  <bruno@clisp.org>
37383
37384         Fix alignof macro.
37385         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37386         vendor compilers that are always correct.
37387
37388 2009-05-12  Bruno Haible  <bruno@clisp.org>
37389
37390         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37391         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37392         not whether its fully works.
37393
37394 2009-05-12  Bruno Haible  <bruno@clisp.org>
37395
37396         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37397
37398 2009-05-12  Jim Meyering  <meyering@redhat.com>
37399
37400         * top/maint.mk: Adjust backslash alignment.
37401
37402 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37403
37404         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37405
37406 2009-05-11  Eric Blake  <ebb9@byu.net>
37407
37408         argp: avoid undefined behavior
37409         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37410         macros.
37411
37412 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37413
37414         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37415         user.name to prevent git commit from complaining.
37416
37417 2009-05-10  Bruno Haible  <bruno@clisp.org>
37418
37419         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37420         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37421         it rewrites every file name only once.
37422         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37423
37424 2009-05-08  Bruno Haible  <bruno@clisp.org>
37425
37426         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37427         instead of 'max'.
37428
37429 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37430
37431         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37432         sockaddr_storage test.
37433
37434 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37435
37436         * modules/sys_socket (Makefile.am): Substitute
37437         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37438         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37439         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37440         * tests/test-sys_socket.c: Check sockaddr_storage.
37441
37442 2009-05-08  Bruno Haible  <bruno@clisp.org>
37443
37444         New module 'alignof'.
37445         * lib/alignof.h: New file.
37446         * modules/alignof: New file.
37447
37448 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37449             Bruno Haible  <bruno@clisp.org>
37450
37451         Fix test-file-has-acl on FreeBSD.
37452         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37453         mask is implicitly added.
37454         * tests/test-file-has-acl.c: Include <signal.h>.
37455         (main): Terminate the test after 5 seconds.
37456         * modules/acl-tests (configure.ac): Check for alarm function.
37457
37458 2009-05-04  Bruno Haible  <bruno@clisp.org>
37459
37460         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37462         * modules/errno (configure.ac): Drop AC_REQUIRE.
37463         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37464         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37465
37466 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37467
37468         * modules/glob-tests: New module.
37469         * tests/test-glob.c: Add.
37470
37471 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37472
37473         * modules/fnmatch-tests: New module.
37474         * tests/test-fnmatch.c: Add.
37475
37476 2009-05-04  Eric Blake  <ebb9@byu.net>
37477
37478         maint: make the new no-submodule-changes rule VPATH-safe
37479         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37480
37481 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37482             Bruno Haible  <bruno@clisp.org>
37483
37484         acl: Fix infinite loop on FreeBSD.
37485         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37486         of return value from acl_get_entry.
37487         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37488         Likewise.
37489
37490 2009-05-03  Bruno Haible  <bruno@clisp.org>
37491
37492         * lib/acl-internal.h (acl_entries): Clarify return value.
37493         * lib/acl_entries.c (acl_entries): Likewise.
37494
37495 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37496
37497         Bug fix in acl module.
37498         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37499
37500 2009-05-03  Bruno Haible  <bruno@clisp.org>
37501
37502         Create gperf-generated file in the source dir, not in the build dir.
37503         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37504         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37505         * modules/unicase/locale-language (unicase/locale-languages.h):
37506         Likewise.
37507         * modules/unicase/special-casing (unicase/special-casing-table.h):
37508         Likewise.
37509         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37510         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37511         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37512         Reported by Ralf Wildenhues.
37513
37514 2009-05-03  Bruno Haible  <bruno@clisp.org>
37515
37516         * modules/fnmatch (Description, configure.ac): Taken from
37517         fnmatch-posix.
37518         * modules/fnmatch-posix: Turn into a symbolic reference to the
37519         'fnmatch' module, and deprecate.
37520         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37521
37522 2009-05-03  Bruno Haible  <bruno@clisp.org>
37523
37524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37525         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37526         Reported by Ralf Wildenhues.
37527
37528 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37529
37530         * m4/fnmatch.m4: Fix fnmatch re-define.
37531
37532 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37533
37534         priv-set: new module and tests; adapt write-any-file
37535         * lib/priv-set.c: New file.
37536         * lib/priv-set.h: New file.
37537         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37538         * lib/write-any-file.c: Simplify by using priv-set module.
37539         * m4/priv-set.m4: New file.
37540         * modules/priv-set: New file.
37541         * modules/unlinkdir: Add dependency on priv-set module.
37542         * modules/write-any-file: Likewise.
37543
37544         Tests for module 'priv-set'.
37545         * modules/priv-set-tests: New file.
37546         * tests/test-priv-set.c: New file.
37547
37548 2009-05-03  Jim Meyering  <meyering@redhat.com>
37549             Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37552         use the converted UTF-8 variant of the name instead.
37553
37554 2009-05-03  Jim Meyering  <meyering@redhat.com>
37555
37556         tests: tighten some getdate tests
37557         * tests/test-getdate.c (main): Tighten tests: require equality,
37558         not just greater than.  Set TZ envvar to UTC0.
37559
37560 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37561
37562         getdate: correctly interpret "next monday" when run on a Monday
37563         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37564         that e.g., "next tues" (when run on a tuesday) results in a date
37565         that is one week in the future, and not today's date.
37566         I.e., add a week when the wday is the same as the current one.
37567         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37568         and earlier by Martin Bernreuther and Jan Minář.
37569         * tests/test-getdate.c (main): Check that "next DAY" is always in
37570         the future and that "last DAY" is always in the past.
37571
37572 2009-05-02  Jim Meyering  <meyering@redhat.com>
37573
37574         build: ensure that a release build fails when a submodule is unclean
37575         * top/maint.mk (no-submodule-changes): New rule.
37576         (alpha beta major): Depend on it.
37577
37578 2009-05-02  Bruno Haible  <bruno@clisp.org>
37579
37580         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37581         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37582         shell variable gl_fnmatch_required to detect which variant is
37583         requested.
37584         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37585         gl_FUNC_FNMATCH_POSIX.
37586         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37587         exclude fnmatch-posix.
37588
37589 2009-05-02  Bruno Haible  <bruno@clisp.org>
37590
37591         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37592         * modules/mbsrtowcs (License): Change to LGPLv2+.
37593         * modules/strnlen1 (License): Likewise.
37594         Reported by Simon Josefsson.
37595
37596 2009-05-02  Bruno Haible  <bruno@clisp.org>
37597
37598         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37599         "cross".
37600         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37601         gnulib-tool was called with option --source-base=lib.
37602
37603 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37604
37605         Use automake *-local hooks without commands, for extensibility.
37606         * modules/localcharset (Makefile.am): Rename install-exec-local
37607         rule to install-exec-localcharset, and make it a prerequisite of
37608         install-exec-local.  Likewise, rename the uninstall-local rule to
37609         uninstall-localcharset, and make it a prerequisite of the former.
37610
37611 2009-05-01  Bruno Haible  <bruno@clisp.org>
37612
37613         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37614         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37615         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37617         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37618         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37619         m4/locale-zh.m4, m4/codeset.m4.
37620
37621         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37622         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37623         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37624         m4/locale-zh.m4.
37625
37626         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37627         REPLACE_WCRTOMB if mbstate_t must be replaced.
37628         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37629         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37630
37631 2009-05-01  Bruno Haible  <bruno@clisp.org>
37632
37633         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37634         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37635         dngettext, dcngettext, textdomain, bindtextdomain,
37636         bind_textdomain_codeset): Undefine before redefining.
37637
37638 2009-04-30  Bruno Haible  <bruno@clisp.org>
37639
37640         Fix bug introduced on 2009-04-25.
37641         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37642         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37643         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37644         is defined.
37645         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37646         is defined.
37647         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37648         is defined.
37649         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37650
37651 2009-04-28  Bruno Haible  <bruno@clisp.org>
37652
37653         Comment tweaks.
37654         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37655         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37656         * lib/unicase.h (u*_casexfrm): Likewise.
37657         Reported by Paolo Bonzini.
37658
37659 2009-04-28  Bruno Haible  <bruno@clisp.org>
37660
37661         Fix a compilation error.
37662         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37663         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37664         Reported by Jim Meyering.
37665
37666 2009-04-27  Bruno Haible  <bruno@clisp.org>
37667
37668         New module 'libunistring'.
37669         * modules/libunistring: New file.
37670         * m4/libunistring.m4: New file.
37671         * MODULES.html.sh (Unicode string functions): Add it.
37672
37673 2009-04-27  Eric Blake  <ebb9@byu.net>
37674
37675         maint.mk: allow package-specific header to provide <config.h>
37676         * top/maint.mk (sc_require_config_h): New variable.
37677         (sc_require_config_h, sc_require_config_h_first): Use it.
37678
37679 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37680
37681         * top/maint.mk (sc_avoid_if_before_free): Except
37682         useless-if-before-free script.
37683
37684 2009-04-27  Eric Blake  <ebb9@byu.net>
37685
37686         maintainer-makefile: depend on all required helper scripts
37687         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37688         useless-if-before-free.
37689         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37690         version, rather than assuming gnulib checkout is available.
37691         Reported by Simen Josefsson.
37692
37693 2009-04-26  Bruno Haible  <bruno@clisp.org>
37694
37695         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37696         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37697         "../" or "..".
37698
37699 2009-04-26  Bruno Haible  <bruno@clisp.org>
37700
37701         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37702         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37703         AC_LIB_HAVE_LINKFLAGS.
37704
37705 2009-04-26  Bruno Haible  <bruno@clisp.org>
37706
37707         Simplify calling convention of u*_conv_from_encoding.
37708         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37709         u32_conv_from_encoding): Expect a resultbuf argument and return the
37710         result directly as a pointer.
37711         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37712         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37713         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37714         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37715         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37716         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37717         Update.
37718         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37719         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37720         * lib/vasnprintf.c (VASNPRINTF): Update.
37721         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37722         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37723         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37724         * NEWS: Mention the change.
37725
37726 2009-04-26  Bruno Haible  <bruno@clisp.org>
37727
37728         Simplify calling convention of u*_conv_to_encoding.
37729         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37730         u32_conv_to_encoding): Expect a resultbuf argument and return the
37731         result directly as a pointer.
37732         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37733         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37734         freeing scaled_offsets if mem_iconveha failed.
37735         * lib/unicase/u-casexfrm.h (FUNC): Update.
37736         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37737         * lib/vasnprintf.c (VASNPRINTF): Update.
37738         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37739         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37740         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37741         * NEWS: Mention the change.
37742
37743 2009-04-26  Bruno Haible  <bruno@clisp.org>
37744
37745         Avoid test failures on AIX and OSF/1.
37746         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37747         malloc(0).
37748         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37749         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37750         Likewise.
37751         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37752         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37753         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37754         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37755         * doc/posix-functions/malloc.texi: Document the portability problem
37756         related to malloc(0).
37757
37758 2009-04-26  Bruno Haible  <bruno@clisp.org>
37759
37760         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37761         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37762         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37763
37764 2009-04-25  Bruno Haible  <bruno@clisp.org>
37765
37766         Avoid link error when creating a namespace clean library.
37767         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37768         as macro with arguments if already defined as an alias.
37769         * lib/signbitf.c (gl_signbitf): Don't undefine.
37770         * lib/signbitd.c (gl_signbitd): Don't undefine.
37771         * lib/signbitl.c (gl_signbitl): Don't undefine.
37772
37773 2009-04-25  Jim Meyering  <meyering@redhat.com>
37774
37775         vc-list-files: fix another quoting bug
37776         * build-aux/vc-list-files: Avoid sed backslash expansion
37777         of pathological directory names.
37778
37779 2009-04-25  Eric Blake  <ebb9@byu.net>
37780
37781         vc-list-files: fix shell quoting error
37782         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37783         timestamp.
37784
37785 2009-04-25  Jim Meyering  <meyering@redhat.com>
37786
37787         vc-list-files: restore lost functionality with subdir argument
37788         * build-aux/vc-list-files: When given a non-"." sub-directory
37789         argument, substitute the $dir/ prefix back onto each resulting name.
37790         Otherwise, coreutils' root_tests check would fail.
37791
37792 2009-04-24  Eric Blake  <ebb9@byu.net>
37793
37794         vc-list-files: ignore git symlinks
37795         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37796         than ls-files, to ignore git symlinks.
37797
37798         maint.mk: import improvements from m4
37799         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37800         (move_if_change): Delete unused macro.
37801         (news-date-check, vc-diff-check): Support VPATH builds.
37802         (announcement): Likewise.  Split --bootstrap-tools list...
37803         (boostrap-tools): ...into separate list, which can be overridden
37804         in cfg.mk.
37805         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37806         requiring dependency on useless-if-before-free module.
37807         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37808         Support VPATH builds.
37809
37810 2009-04-24  Jim Meyering  <meyering@redhat.com>
37811
37812         maint.mk: remove coreutils-specific rules and variables
37813         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37814         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37815         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37816
37817         maint.mk: remove obsolete rule
37818         * top/maint.mk (rel-check): Remove rule.
37819         (WGET, WGETFLAGS): Remove now-unused variables.
37820
37821 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37822
37823         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37824         consistency.
37825
37826         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37827         '$(PATH_SEPARATOR)' instead of ':'.
37828
37829 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37830
37831         * lib/getopt1.c (main): Use 'const' for static array.
37832
37833 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37834
37835         * top/maint.mk: Sync with coreutils.
37836         * NEWS: Explain incompatibilities.
37837
37838 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37839             Bruno Haible  <bruno@clisp.org>
37840
37841         Fix cross-compilation results.
37842         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37843         statement, as third argument of AC_TRY_RUN.
37844         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37845         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37846         Likewise.
37847         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37848         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37849         Likewise.
37850         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37851         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37852         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37853
37854 2009-04-20  Bruno Haible  <bruno@clisp.org>
37855
37856         Avoid test failure on mingw.
37857         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37858
37859 2009-04-20  Bruno Haible  <bruno@clisp.org>
37860
37861         Avoid compilation error on mingw.
37862         * modules/localename-tests (Depends-on): Add locale.
37863
37864 2009-04-19  Bruno Haible  <bruno@clisp.org>
37865
37866         Support for building a shared library on Windows platforms.
37867         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37868         (main): Test the presence of UNINORM_NFC here.
37869         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37870         (main): Test the presence of UNINORM_NFD here.
37871         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37872         (main): Test the presence of UNINORM_NFKC here.
37873         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37874         (main): Test the presence of UNINORM_NFKD here.
37875
37876 2009-04-19  Bruno Haible  <bruno@clisp.org>
37877
37878         Avoid a compiler warning.
37879         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37880         Change type of variable 'sequence'.
37881
37882 2009-04-19  Bruno Haible  <bruno@clisp.org>
37883
37884         * modules/configmake (Makefile.am): When the contents of configmake.h
37885         does not change, arrange to preserve its modification time.
37886
37887 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37888
37889         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37890         gettext domain.
37891
37892 2009-04-16  Jim Meyering  <meyering@redhat.com>
37893
37894         useless-if-before-free: improve conversion code
37895         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37896         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37897
37898 2009-04-14  Bruno Haible  <bruno@clisp.org>
37899
37900         * modules/fcntl (Depends-on): Add extensions.
37901         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37902
37903 2009-04-12  Ben Pfaff  <blp@gnu.org>
37904
37905         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37906         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37907
37908 2009-03-20  Ben Pfaff  <blp@gnu.org>
37909
37910         Make rename replace existing destinations on Windows.
37911         * m4/rename.m4: Add test for Mingw.
37912         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37913         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37914         * doc/posix-functions/rename.texi: Document.
37915
37916 2009-04-10  Bruno Haible  <bruno@clisp.org>
37917
37918         New include file "iconveh.h".
37919         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37920         * lib/striconveh.h: Include it.
37921         (enum iconv_ilseq_handler): Remove definition.
37922         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37923         striconveh.h.
37924         * lib/striconveha.c: Include striconveh.h.
37925         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37926         * modules/striconveh (Files): Add lib/iconveh.h.
37927         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37928         lib/striconveh.h.
37929
37930 2009-04-10  Bruno Haible  <bruno@clisp.org>
37931
37932         * lib/uniconv.h: Update comment.
37933
37934 2009-04-10  Bruno Haible  <bruno@clisp.org>
37935
37936         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37937         always.
37938         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37939         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37940         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37941         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37942         "unistring-notinline.h", so that the function gets defined always.
37943         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37944         * lib/unistr/u8-uctomb.c: Likewise.
37945         * lib/unistr/u16-mbtouc.c: Likewise.
37946         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37947         * lib/unistr/u16-uctomb.c: Likewise.
37948         * lib/unistr/u32-mbtouc.c: Likewise.
37949         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37950         * lib/unistr/u32-uctomb.c: Likewise.
37951
37952 2009-04-10  Bruno Haible  <bruno@clisp.org>
37953
37954         Mark 'utime' obsolete.
37955         * modules/utime (Status, Notice): New sections.
37956         Suggested by Jim Meyering.
37957
37958         Fix cross-compile guess for utime test.
37959         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37960         autoconf.
37961         * doc/posix-functions/utime.texi: Give more precisions.
37962         Reported by Jan <ipif@ymail.com>.
37963
37964 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37965
37966         filevercmp: correct today's change
37967         * lib/filevercmp.c: Also handle coreutils' test inputs.
37968         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37969
37970         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37971         for reporting it.
37972         * lib/filevercmp.c: Special handle for "", "." and "..".
37973         * tests/test-filevercmp.c: Enlarge the set suite.
37974
37975 2009-04-07  Jim Meyering  <meyering@redhat.com>
37976
37977         useless-if-before-free: show how to remove braced useless free, too
37978         * build-aux/useless-if-before-free: still only in a comment, though.
37979
37980 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37981
37982         maint.mk: import changes to syntax-check macros from coreutils
37983         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37984         Use them in the relevant macros.
37985
37986 2009-04-06  Bruno Haible  <bruno@clisp.org>
37987
37988         Fix unportable use of bit-fields.
37989         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37990         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37991         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37992
37993 2009-04-06  Bruno Haible  <bruno@clisp.org>
37994
37995         Avoid test failures on AIX and OSF/1.
37996         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37997         that malloc(0) = NULL.
37998         * tests/unicase/test-u8-tolower.c (check): Likewise.
37999         * tests/unicase/test-u8-totitle.c (check): Likewise.
38000         * tests/unicase/test-u8-toupper.c (check): Likewise.
38001         * tests/unicase/test-u16-casefold.c (check): Likewise.
38002         * tests/unicase/test-u16-tolower.c (check): Likewise.
38003         * tests/unicase/test-u16-totitle.c (check): Likewise.
38004         * tests/unicase/test-u16-toupper.c (check): Likewise.
38005         * tests/unicase/test-u32-casefold.c (check): Likewise.
38006         * tests/unicase/test-u32-tolower.c (check): Likewise.
38007         * tests/unicase/test-u32-totitle.c (check): Likewise.
38008         * tests/unicase/test-u32-toupper.c (check): Likewise.
38009         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38010         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38011         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38012         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38013         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38014         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38015         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38016         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38017         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38018         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38019         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38020         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38021
38022 2009-04-05  Bruno Haible  <bruno@clisp.org>
38023
38024         Work around an autoconf limitation.
38025         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38026         comment line if it would be longer than 3 KB.
38027
38028 2009-04-05  Bruno Haible  <bruno@clisp.org>
38029
38030         Avoid test failure with libiconv-1.13.
38031         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38032         of the expected test results.
38033
38034 2009-04-05  Bruno Haible  <bruno@clisp.org>
38035
38036         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38037         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38038         that it should be installed.
38039
38040 2009-04-05  Bruno Haible  <bruno@clisp.org>
38041
38042         * gnulib-tool: New option --copy-file.
38043         (func_usage): Document it.
38044         (func_dest_tmpfilename): Moved out of func_import.
38045         (func_add_file, func_update_file): New functions, extracted from
38046         func_import.
38047         (func_import): Update.
38048
38049 2009-04-05  Karl Berry  <karl@gnu.org>
38050
38051         * README: prominently mention gnulib-tool.
38052         Rearrange sections so getting the code is near the top.
38053
38054 2009-04-05  Bruno Haible  <bruno@clisp.org>
38055
38056         * lib/unicase.h: Mention u*_cmp2.
38057         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38058         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38059         * lib/unicase/ulc-casecmp.c: Likewise.
38060         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38061         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38062         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38063         unistr/u8-cmp.
38064         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38065         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38066         unistr/u16-cmp.
38067         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38068         unistr/u32-cmp.
38069
38070         * lib/uninorm.h: Mention u*_cmp2.
38071         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38072         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38073         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38074         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38075         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38076         unistr/u8-cmp.
38077         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38078         unistr/u16-cmp.
38079         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38080         unistr/u32-cmp.
38081
38082         New module 'unistr/u32-cmp2'.
38083         * lib/unistr/u32-cmp2.c: New file.
38084         * modules/unistr/u32-cmp2: New file.
38085
38086         New module 'unistr/u16-cmp2'.
38087         * lib/unistr/u16-cmp2.c: New file.
38088         * modules/unistr/u16-cmp2: New file.
38089
38090         New module 'unistr/u8-cmp2'.
38091         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38092         * lib/unistr/u8-cmp2.c: New file.
38093         * lib/unistr/u-cmp2.h: New file.
38094         * modules/unistr/u8-cmp2: New file.
38095
38096 2009-04-05  Bruno Haible  <bruno@clisp.org>
38097
38098         * lib/unictype.h (uc_property_is_valid): New macro.
38099         * tests/unictype/test-pr_byname.c (main): Use it.
38100
38101         * lib/unistr.h: Doc fixes.
38102         * lib/uniconv.h: Doc fixes.
38103         * lib/unictype.h: Doc fixes.
38104
38105 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38106
38107         Port coreutils 7.2 to Solaris 8.
38108
38109         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38110         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38111         for Solaris 8.  This is a bit of a hack, as it means it's the
38112         caller's responsibility to add -lnsl if needed, but most likely it
38113         won't be needed since only getaddrinfo uses this and getaddrinfo
38114         isn't needed on Solaris 8.
38115
38116         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38117         problem to Solaris 8 encountered with coreutils 7.2, which
38118         resulted in a message "fnmatch.c:292: warning: passing argument 4
38119         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38120         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38121
38122 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38123
38124         * m4/ld-version-script.m4: Add FIXME comment.
38125
38126 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38127
38128         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38129         SOVERSION variable.
38130
38131 2009-04-02  Bruno Haible  <bruno@clisp.org>
38132
38133         * Makefile (info, html, dvi, pdf): Combine the rules.
38134         Suggested by Jim Meyering.
38135
38136 2009-04-01  Bruno Haible  <bruno@clisp.org>
38137
38138         * Makefile (info, html, dvi, pdf): New targets.
38139         Reported by Reuben Thomas <rrt@sc3d.org>.
38140
38141 2009-04-01  Bruno Haible  <bruno@clisp.org>
38142
38143         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38144         can be put into PATH.
38145         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38146
38147 2009-04-01  Bruno Haible  <bruno@clisp.org>
38148
38149         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38150
38151 2009-04-01  Bruno Haible  <bruno@clisp.org>
38152
38153         Rename module 'visibility'.
38154         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38155         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38156         * doc/gnulib.texi: Update.
38157         * MODULES.html.sh (Misc): Update.
38158         * NEWS: Mention the change.
38159
38160 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38161
38162         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38163         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38164         Eric Blake <ebb9@byu.net> for review.
38165         * MODULES.html.sh: Add lib-msvc-compat.
38166         * doc/gnulib.texi: Link to new section.
38167         * m4/ld-output-def.m4: New file.
38168         * doc/ld-output-def.texi: New file.
38169
38170 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38171
38172         Rename ld-version-script to lib-symbol-versions.  Suggested by
38173         Bruno Haible <bruno@clisp.org>.
38174         * modules/ld-version-script: Renamed to lib-symbol-versions.
38175         * doc/ld-version-script.texi: Fix module name.
38176         * MODULES.html.sh: Add lib-symbol-versions.
38177
38178 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38179
38180         * modules/u64-tests: New file.
38181         * tests/test-u64.c: New file.
38182
38183 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38184
38185         * MODULES.html.sh: Mention u64.
38186         * modules/u64: New module.
38187         * modules/crypto/sha512: Depend on u64 module instead of providing
38188         u64.h.
38189
38190 2009-03-27  Eric Blake  <ebb9@byu.net>
38191
38192         test-strerror: make debugging EAI_SYSTEM easier
38193         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38194         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38195         failure was EAI_SYSTEM.
38196
38197 2009-03-25  Bruno Haible  <bruno@clisp.org>
38198
38199         Fix a problem with --enable-relocatable on Solaris 7.
38200         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38201         since 2008-02-24.
38202
38203 2009-03-25  Eric Blake  <ebb9@byu.net>
38204
38205         test-sockets: avoid gcc warning
38206         * tests/test-sockets.c (main): Silence compiler warning.
38207
38208 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38209
38210         New modules nproc, pthread, contributed by Glen Lenker.
38211
38212         * MODULES.html.sh: Add pthread, nproc.
38213         * lib/nproc.c: New file.
38214         * lib/nproc.h: New file.
38215         * lib/pthread.in.h: New file.
38216         * m4/pthread.m4: New file.
38217         * modules/nproc: New file.
38218         * modules/pthread: New file.
38219
38220 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38221
38222         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38223         New variable.
38224
38225 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38226
38227         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38228         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38229         * tests/test-filevercmp.c: Add tests for backup suffixes.
38230
38231 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38232
38233         * modules/stdlib (Depends-on): Add stdint, needed when defining
38234         struct random_data on, for example, HP-UX 10.20.  Reported by
38235         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38236
38237 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38238
38239         * lib/readline.c (readline): Call fflush on stdout after printing
38240         prompt.
38241
38242 2009-03-20  Bruno Haible  <bruno@clisp.org>
38243
38244         Remove dependency from 'close' module to -lws2_32 on native Windows.
38245         * lib/close-hook.h: New file.
38246         * lib/close-hook.c: New file.
38247         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38248         w32sock.h.
38249         (_gl_close_fd_maybe_socket): Remove function.
38250         (rpl_close): Invoke execute_all_close_hooks instead of
38251         _gl_close_fd_maybe_socket.
38252         * lib/sockets.c: Include close-hook.h, w32sock.h.
38253         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38254         (close_sockets_hook): New variable.
38255         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38256         (gl_sockets_cleanup): Unregister it.
38257         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38258         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38259         * modules/close-hook: New file.
38260         * modules/close (Files): Remove lib/w32sock.h.
38261         (Depends-on): Add close-hook.
38262         (Link): Remove section.
38263         * modules/sockets (Files): Add lib/w32sock.h.
38264         (Depends-on): Add close-hook.
38265         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38266         invocation.
38267         * NEWS: Mention that LIB_CLOSE is gone.
38268
38269 2009-03-23  Eric Blake  <ebb9@byu.net>
38270
38271         signal-tests: test previous patch
38272         * tests/test-signal.c: New file.
38273         * modules/signal-tests: Likewise.
38274
38275         signal.h: always support 'volatile sig_atomic_t'
38276         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38277         (gl_SIGNAL_H_DEFAULTS): Add a default.
38278         * modules/signal (Makefile.am): Substitute if needed.
38279         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38280         users can blindly add volatile.
38281         * doc/posix-headers/signal.texi (signal.h): Document it.
38282         Reported by Matthew Woehlke.
38283
38284 2009-03-23  Jim Meyering  <meyering@redhat.com>
38285
38286         pathmax: PATH_MAX: use pathconf only when available
38287         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38288         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38289         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38290         This avoids a link failure in a PSP cross-compilation environment
38291         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38292
38293         * lib/vasnprintf.c (divide): Fix typo in comment.
38294
38295 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38296
38297         * gnulib-tool (func_filter_filelist): Fix comment.
38298
38299 2009-03-20  Bruno Haible  <bruno@clisp.org>
38300
38301         Make sockets.h self-contained.
38302         * lib/sockets.c: Include sockets.h first.
38303         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38304
38305 2009-03-19  Eric Blake  <ebb9@byu.net>
38306
38307         doc: mention more functions added in cygwin 1.7.0
38308         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38309         addition.
38310         * doc/posix-functions/log2f.texi: Likewise.
38311
38312 2009-03-19  Jim Meyering  <meyering@redhat.com>
38313
38314         fsusage: avoid syntax error due to statement-before-declaration
38315         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38316         after all declarations.  Reported by Matthew Woehlke in
38317         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38318
38319 2009-03-18  Eric Blake  <ebb9@byu.net>
38320
38321         build-aux/compile: sync from automake
38322         * build-aux/compile: New file, from automake.
38323         * config/srclist.txt: Mention build-aux/compile.
38324
38325 2009-03-17  Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/git-merge-changelog.c: Fix typo in comment.
38328         Reported by Reuben Thomas <rrt@sc3d.org>.
38329
38330 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38331
38332         * m4/regex.m4: update and improve help for
38333         --without-included-regex.
38334
38335 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38336
38337         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38338         failure on missing include files.
38339
38340 2009-03-17  Eric Blake  <ebb9@byu.net>
38341
38342         doc: mention more functions added in cygwin 1.7.0
38343         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38344         addition.
38345         * doc/posix-functions/fwscanf.texi: Likewise.
38346         * doc/posix-functions/swprintf.texi: Likewise.
38347         * doc/posix-functions/swscanf.texi: Likewise.
38348         * doc/posix-functions/vfwprintf.texi: Likewise.
38349         * doc/posix-functions/vfwscanf.texi: Likewise.
38350         * doc/posix-functions/vswprintf.texi: Likewise.
38351         * doc/posix-functions/vswscanf.texi: Likewise.
38352         * doc/posix-functions/vwprintf.texi: Likewise.
38353         * doc/posix-functions/vwscanf.texi: Likewise.
38354         * doc/posix-functions/wcscasecmp.texi: Likewise.
38355         * doc/posix-functions/wcsdup.texi: Likewise.
38356         * doc/posix-functions/wcsftime.texi: Likewise.
38357         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38358         * doc/posix-functions/wprintf.texi: Likewise.
38359         * doc/posix-functions/wscanf.texi: Likewise.
38360         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38361
38362 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38363
38364         maint.mk: really add $(AM_MAKEFLAGS)
38365         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38366         was inadvertently omitted in the last commit.
38367         Spotted by Bruno Haible.
38368
38369         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38370         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38371         $(AM_MAKEFLAGS)' rather than plain `make'.
38372
38373         gnulib-tool: execute $MAKE not make
38374         * gnulib-tool: Default $MAKE to 'make'.
38375         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38376         than make.  Initialize $MAKE in the do-autobuild script.
38377
38378         gnulib-tool: use $MAKE not make in generated files
38379         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38380         make, in generated files.  Initialize $MAKE in the do-autobuild
38381         script.
38382
38383         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38384
38385         GNUmakefile: disable parallelism only for multiple, recursive targets
38386         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38387         additions in the Makefile.
38388         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38389         by Automake.
38390         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38391         are listed on the command line and at least one of them is
38392         listed in $(ALL_RECURSIVE_TARGETS).
38393
38394 2009-03-14  Bruno Haible  <bruno@clisp.org>
38395
38396         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38397         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38398         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38399         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38400         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38401         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38402         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38403         unistr/u8-uctomb.
38404         * modules/unistr/u8-strchr (Depends-on): Likewise.
38405         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38406         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38407         unistr/u16-uctomb.
38408         * modules/unistr/u16-strchr (Depends-on): Likewise.
38409         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38410
38411 2009-03-12  Bruno Haible  <bruno@clisp.org>
38412
38413         Work around select() bug on Interix 3.5.
38414         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38415         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38416         * m4/select.m4: New file.
38417         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38418         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38419         * modules/select (Files): Add m4/select.m4.
38420         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38421         * modules/nanosleep (Depends-on): Add select.
38422         * modules/poll (Depends-on): Likewise.
38423         * doc/posix-functions/select.texi: Mention the Interix bug.
38424         Reported by Markus Duft <mduft@gentoo.org>.
38425
38426         * lib/select.c: Renamed from lib/winsock-select.c.
38427         * modules/select (Files): Add lib/select.c, remove
38428         lib/winsock-select.c.
38429         (configure.ac): Update.
38430
38431 2009-03-12  Jim Meyering  <meyering@redhat.com>
38432
38433         avoid gcc warnings about unused macro definitions
38434         * lib/readtokens.c (STREQ): Remove unused definition.
38435         * lib/xmalloc.c (SIZE_MAX): Likewise.
38436         * lib/openat-die.c (N_): Likewise.
38437         * lib/mountlist.c (SIZE_MAX): Remove definition.
38438         Instead, include <stdint.h>.
38439         * lib/readutmp.c: Likewise.
38440         * modules/readutmp (Depends-on): Add stdint.
38441         * modules/mountlist (Depends-on): Add stdint.
38442         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38443
38444 2009-03-10  Bruno Haible  <bruno@clisp.org>
38445
38446         Tests for module 'mbmemcasecoll'.
38447         * modules/mbmemcasecoll-tests: New file.
38448         * tests/test-mbmemcasecoll1.sh: New file.
38449         * tests/test-mbmemcasecoll2.sh: New file.
38450         * tests/test-mbmemcasecoll3.sh: New file.
38451         * tests/test-mbmemcasecoll.c: New file.
38452
38453         New module 'mbmemcasecoll'.
38454         * lib/mbmemcasecoll.h: New file.
38455         * lib/mbmemcasecoll.c: New file.
38456         * modules/mbmemcasecoll: New file.
38457
38458         * tests/test-mbmemcasecmp.h: New file, extracted from
38459         tests/test-mbmemcasecmp.c.
38460         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38461         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38462         (main): Update.
38463         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38464
38465 2009-03-09  Bruno Haible  <bruno@clisp.org>
38466
38467         Tests for module 'mbmemcasecmp'.
38468         * modules/mbmemcasecmp-tests: New file.
38469         * tests/test-mbmemcasecmp1.sh: New file.
38470         * tests/test-mbmemcasecmp2.sh: New file.
38471         * tests/test-mbmemcasecmp3.sh: New file.
38472         * tests/test-mbmemcasecmp.c: New file.
38473
38474         New module 'mbmemcasecmp'.
38475         * lib/mbmemcasecmp.h: New file.
38476         * lib/mbmemcasecmp.c: New file.
38477         * modules/mbmemcasecmp: New file.
38478
38479 2009-03-09  Bruno Haible  <bruno@clisp.org>
38480
38481         Tests for module 'unicase/ulc-casecoll'.
38482         * modules/unicase/ulc-casecoll-tests: New file.
38483         * tests/unicase/test-ulc-casecoll1.sh: New file.
38484         * tests/unicase/test-ulc-casecoll2.sh: New file.
38485         * tests/unicase/test-ulc-casecoll.c: New file.
38486
38487         New module 'unicase/ulc-casecoll'.
38488         * lib/unicase.h (ulc_casecoll): New declaration.
38489         * lib/unicase/ulc-casecoll.c: New file.
38490         * modules/unicase/ulc-casecoll: New file.
38491
38492         New module 'unicase/ulc-casexfrm'.
38493         * lib/unicase.h (ulc_casexfrm): New declaration.
38494         * lib/unicase/ulc-casexfrm.c: New file.
38495         * modules/unicase/ulc-casexfrm: New file.
38496
38497 2009-03-09  Bruno Haible  <bruno@clisp.org>
38498
38499         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38500         invocations.
38501
38502         * m4/mbscasecmp.m4: Remove file.
38503         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38504         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38505
38506         * m4/mbscasestr.m4: Remove file.
38507         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38508         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38509
38510         * m4/mbschr.m4: Remove file.
38511         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38512         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38513
38514         * m4/mbscspn.m4: Remove file.
38515         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38516         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38517
38518         * m4/mbslen.m4: Remove file.
38519         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38520         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38521
38522         * m4/mbsncasecmp.m4: Remove file.
38523         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38524         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38525
38526         * m4/mbsnlen.m4: Remove file.
38527         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38528         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38529
38530         * m4/mbspbrk.m4: Remove file.
38531         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38532         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38533
38534         * m4/mbspcasecmp.m4: Remove file.
38535         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38536         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38537
38538         * m4/mbsrchr.m4: Remove file.
38539         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38540         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38541
38542         * m4/mbssep.m4: Remove file.
38543         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38544         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38545
38546         * m4/mbsspn.m4: Remove file.
38547         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38548         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38549
38550         * m4/mbsstr.m4: Remove file.
38551         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38552         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38553
38554         * m4/mbstok_r.m4: Remove file.
38555         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38556         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38557
38558         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38559
38560         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38561         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38562
38563         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38564
38565 2009-03-08  Bruno Haible  <bruno@clisp.org>
38566
38567         Tests for module 'unicase/ulc-casecmp'.
38568         * modules/unicase/ulc-casecmp-tests: New file.
38569         * tests/unicase/test-ulc-casecmp1.sh: New file.
38570         * tests/unicase/test-ulc-casecmp2.sh: New file.
38571         * tests/unicase/test-ulc-casecmp.c: New file.
38572
38573         New module 'unicase/ulc-casecmp'.
38574         * lib/unicase.h (ulc_casecmp): New declaration.
38575         * lib/unicase/ulc-casecmp.c: New file.
38576         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38577         'const SRC_UNIT *'.
38578         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38579         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38580         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38581         * modules/unicase/ulc-casecmp: New file.
38582
38583         Tests for module 'unicase/u32-is-cased'.
38584         * modules/unicase/u32-is-cased-tests: New file.
38585         * tests/unicase/test-u32-is-cased.c: New file.
38586
38587         Tests for module 'unicase/u16-is-cased'.
38588         * modules/unicase/u16-is-cased-tests: New file.
38589         * tests/unicase/test-u16-is-cased.c: New file.
38590
38591         Tests for module 'unicase/u8-is-cased'.
38592         * modules/unicase/u8-is-cased-tests: New file.
38593         * tests/unicase/test-u8-is-cased.c: New file.
38594         * tests/unicase/test-is-cased.h: New file.
38595
38596         New module 'unicase/u32-is-cased'.
38597         * lib/unicase/u32-is-cased.c: New file.
38598         * modules/unicase/u32-is-cased: New file.
38599
38600         New module 'unicase/u16-is-cased'.
38601         * lib/unicase/u16-is-cased.c: New file.
38602         * modules/unicase/u16-is-cased: New file.
38603
38604         New module 'unicase/u8-is-cased'.
38605         * lib/unicase/u8-is-cased.c: New file.
38606         * lib/unicase/u-is-cased.h: New file.
38607         * modules/unicase/u8-is-cased: New file.
38608
38609         Tests for module 'unicase/u32-is-casefolded'.
38610         * modules/unicase/u32-is-casefolded-tests: New file.
38611         * tests/unicase/test-u32-is-casefolded.c: New file.
38612
38613         Tests for module 'unicase/u16-is-casefolded'.
38614         * modules/unicase/u16-is-casefolded-tests: New file.
38615         * tests/unicase/test-u16-is-casefolded.c: New file.
38616
38617         Tests for module 'unicase/u8-is-casefolded'.
38618         * modules/unicase/u8-is-casefolded-tests: New file.
38619         * tests/unicase/test-u8-is-casefolded.c: New file.
38620         * tests/unicase/test-is-casefolded.h: New file.
38621
38622         New module 'unicase/u32-is-casefolded'.
38623         * lib/unicase/u32-is-casefolded.c: New file.
38624         * modules/unicase/u32-is-casefolded: New file.
38625
38626         New module 'unicase/u16-is-casefolded'.
38627         * lib/unicase/u16-is-casefolded.c: New file.
38628         * modules/unicase/u16-is-casefolded: New file.
38629
38630         New module 'unicase/u8-is-casefolded'.
38631         * lib/unicase/u8-is-casefolded.c: New file.
38632         * modules/unicase/u8-is-casefolded: New file.
38633
38634         Tests for module 'unicase/u32-is-titlecase'.
38635         * modules/unicase/u32-is-titlecase-tests: New file.
38636         * tests/unicase/test-u32-is-titlecase.c: New file.
38637
38638         Tests for module 'unicase/u16-is-titlecase'.
38639         * modules/unicase/u16-is-titlecase-tests: New file.
38640         * tests/unicase/test-u16-is-titlecase.c: New file.
38641
38642         Tests for module 'unicase/u8-is-titlecase'.
38643         * modules/unicase/u8-is-titlecase-tests: New file.
38644         * tests/unicase/test-u8-is-titlecase.c: New file.
38645         * tests/unicase/test-is-titlecase.h: New file.
38646
38647         New module 'unicase/u32-is-titlecase'.
38648         * lib/unicase/u32-is-titlecase.c: New file.
38649         * modules/unicase/u32-is-titlecase: New file.
38650
38651         New module 'unicase/u16-is-titlecase'.
38652         * lib/unicase/u16-is-titlecase.c: New file.
38653         * modules/unicase/u16-is-titlecase: New file.
38654
38655         New module 'unicase/u8-is-titlecase'.
38656         * lib/unicase/u8-is-titlecase.c: New file.
38657         * modules/unicase/u8-is-titlecase: New file.
38658
38659         Tests for module 'unicase/u32-is-lowercase'.
38660         * modules/unicase/u32-is-lowercase-tests: New file.
38661         * tests/unicase/test-u32-is-lowercase.c: New file.
38662
38663         Tests for module 'unicase/u16-is-lowercase'.
38664         * modules/unicase/u16-is-lowercase-tests: New file.
38665         * tests/unicase/test-u16-is-lowercase.c: New file.
38666
38667         Tests for module 'unicase/u8-is-lowercase'.
38668         * modules/unicase/u8-is-lowercase-tests: New file.
38669         * tests/unicase/test-u8-is-lowercase.c: New file.
38670         * tests/unicase/test-is-lowercase.h: New file.
38671
38672         New module 'unicase/u32-is-lowercase'.
38673         * lib/unicase/u32-is-lowercase.c: New file.
38674         * modules/unicase/u32-is-lowercase: New file.
38675
38676         New module 'unicase/u16-is-lowercase'.
38677         * lib/unicase/u16-is-lowercase.c: New file.
38678         * modules/unicase/u16-is-lowercase: New file.
38679
38680         New module 'unicase/u8-is-lowercase'.
38681         * lib/unicase/u8-is-lowercase.c: New file.
38682         * modules/unicase/u8-is-lowercase: New file.
38683
38684         Tests for module 'unicase/u32-is-uppercase'.
38685         * modules/unicase/u32-is-uppercase-tests: New file.
38686         * tests/unicase/test-u32-is-uppercase.c: New file.
38687
38688         Tests for module 'unicase/u16-is-uppercase'.
38689         * modules/unicase/u16-is-uppercase-tests: New file.
38690         * tests/unicase/test-u16-is-uppercase.c: New file.
38691
38692         Tests for module 'unicase/u8-is-uppercase'.
38693         * modules/unicase/u8-is-uppercase-tests: New file.
38694         * tests/unicase/test-u8-is-uppercase.c: New file.
38695         * tests/unicase/test-is-uppercase.h: New file.
38696
38697         New module 'unicase/u32-is-uppercase'.
38698         * lib/unicase/u32-is-uppercase.c: New file.
38699         * modules/unicase/u32-is-uppercase: New file.
38700
38701         New module 'unicase/u16-is-uppercase'.
38702         * lib/unicase/u16-is-uppercase.c: New file.
38703         * modules/unicase/u16-is-uppercase: New file.
38704
38705         New module 'unicase/u8-is-uppercase'.
38706         * lib/unicase/u8-is-uppercase.c: New file.
38707         * modules/unicase/u8-is-uppercase: New file.
38708
38709         New module 'unicase/u32-is-invariant'.
38710         * lib/unicase/u32-is-invariant.c: New file.
38711         * modules/unicase/u32-is-invariant: New file.
38712
38713         New module 'unicase/u16-is-invariant'.
38714         * lib/unicase/u16-is-invariant.c: New file.
38715         * modules/unicase/u16-is-invariant: New file.
38716
38717         New module 'unicase/u8-is-invariant'.
38718         * lib/unicase/u8-is-invariant.c: New file.
38719         * lib/unicase/invariant.h: New file.
38720         * lib/unicase/u-is-invariant.h: New file.
38721         * modules/unicase/u8-is-invariant: New file.
38722
38723         Tests for module 'unicase/u32-casecoll'.
38724         * modules/unicase/u32-casecoll-tests: New file.
38725         * tests/unicase/test-u32-casecoll.c: New file.
38726
38727         Tests for module 'unicase/u16-casecoll'.
38728         * modules/unicase/u16-casecoll-tests: New file.
38729         * tests/unicase/test-u16-casecoll.c: New file.
38730
38731         Tests for module 'unicase/u8-casecoll'.
38732         * modules/unicase/u8-casecoll-tests: New file.
38733         * tests/unicase/test-u8-casecoll.c: New file.
38734
38735         New module 'unicase/u32-casecoll'.
38736         * lib/unicase/u32-casecoll.c: New file.
38737         * modules/unicase/u32-casecoll: New file.
38738
38739         New module 'unicase/u16-casecoll'.
38740         * lib/unicase/u16-casecoll.c: New file.
38741         * modules/unicase/u16-casecoll: New file.
38742
38743         New module 'unicase/u8-casecoll'.
38744         * lib/unicase/u8-casecoll.c: New file.
38745         * lib/unicase/u-casecoll.h: New file.
38746         * modules/unicase/u8-casecoll: New file.
38747
38748         New module 'unicase/u32-casexfrm'.
38749         * lib/unicase/u32-casexfrm.c: New file.
38750         * modules/unicase/u32-casexfrm: New file.
38751
38752         New module 'unicase/u16-casexfrm'.
38753         * lib/unicase/u16-casexfrm.c: New file.
38754         * modules/unicase/u16-casexfrm: New file.
38755
38756         New module 'unicase/u8-casexfrm'.
38757         * lib/unicase/u8-casexfrm.c: New file.
38758         * lib/unicase/u-casexfrm.h: New file.
38759         * modules/unicase/u8-casexfrm: New file.
38760
38761         Tests for module 'unicase/u32-casecmp'.
38762         * modules/unicase/u32-casecmp-tests: New file.
38763         * tests/unicase/test-u32-casecmp.c: New file.
38764
38765         Tests for module 'unicase/u16-casecmp'.
38766         * modules/unicase/u16-casecmp-tests: New file.
38767         * tests/unicase/test-u16-casecmp.c: New file.
38768
38769         Tests for module 'unicase/u8-casecmp'.
38770         * modules/unicase/u8-casecmp-tests: New file.
38771         * tests/unicase/test-u8-casecmp.c: New file.
38772         * tests/unicase/test-casecmp.h: New file.
38773
38774         New module 'unicase/u32-casecmp'.
38775         * lib/unicase/u32-casecmp.c: New file.
38776         * modules/unicase/u32-casecmp: New file.
38777
38778         New module 'unicase/u16-casecmp'.
38779         * lib/unicase/u16-casecmp.c: New file.
38780         * modules/unicase/u16-casecmp: New file.
38781
38782         New module 'unicase/u8-casecmp'.
38783         * lib/unicase/u8-casecmp.c: New file.
38784         * lib/unicase/u-casecmp.h: New file.
38785         * modules/unicase/u8-casecmp: New file.
38786
38787         Tests for module 'unicase/u32-casefold'.
38788         * modules/unicase/u32-casefold-tests: New file.
38789         * tests/unicase/test-u32-casefold.c: New file.
38790
38791         Tests for module 'unicase/u16-casefold'.
38792         * modules/unicase/u16-casefold-tests: New file.
38793         * tests/unicase/test-u16-casefold.c: New file.
38794
38795         Tests for module 'unicase/u8-casefold'.
38796         * modules/unicase/u8-casefold-tests: New file.
38797         * tests/unicase/test-u8-casefold.c: New file.
38798
38799         New module 'unicase/u32-casefold'.
38800         * lib/unicase/u32-casefold.c: New file.
38801         * modules/unicase/u32-casefold: New file.
38802
38803         New module 'unicase/u16-casefold'.
38804         * lib/unicase/u16-casefold.c: New file.
38805         * modules/unicase/u16-casefold: New file.
38806
38807         New module 'unicase/u8-casefold'.
38808         * lib/unicase/u8-casefold.c: New file.
38809         * lib/unicase/u-casefold.h: New file.
38810         * modules/unicase/u8-casefold: New file.
38811
38812         New module 'unicase/tocasefold'.
38813         * lib/unicase/casefold.h: New file.
38814         * lib/unicase/tocasefold.c: New file.
38815         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38816         * modules/unicase/tocasefold: New file.
38817
38818         Tests for module 'unicase/u32-totitle'.
38819         * modules/unicase/u32-totitle-tests: New file.
38820         * tests/unicase/test-u32-totitle.c: New file.
38821
38822         Tests for module 'unicase/u16-totitle'.
38823         * modules/unicase/u16-totitle-tests: New file.
38824         * tests/unicase/test-u16-totitle.c: New file.
38825
38826         Tests for module 'unicase/u8-totitle'.
38827         * modules/unicase/u8-totitle-tests: New file.
38828         * tests/unicase/test-u8-totitle.c: New file.
38829
38830         New module 'unicase/u32-totitle'.
38831         * lib/unicase/u32-totitle.c: New file.
38832         * modules/unicase/u32-totitle: New file.
38833
38834         New module 'unicase/u16-totitle'.
38835         * lib/unicase/u16-totitle.c: New file.
38836         * modules/unicase/u16-totitle: New file.
38837
38838         New module 'unicase/u8-totitle'.
38839         * lib/unicase/u8-totitle.c: New file.
38840         * lib/unicase/u-totitle.h: New file.
38841         * modules/unicase/u8-totitle: New file.
38842
38843         Tests for module 'unicase/u32-tolower'.
38844         * modules/unicase/u32-tolower-tests: New file.
38845         * tests/unicase/test-u32-tolower.c: New file.
38846
38847         Tests for module 'unicase/u16-tolower'.
38848         * modules/unicase/u16-tolower-tests: New file.
38849         * tests/unicase/test-u16-tolower.c: New file.
38850
38851         Tests for module 'unicase/u8-tolower'.
38852         * modules/unicase/u8-tolower-tests: New file.
38853         * tests/unicase/test-u8-tolower.c: New file.
38854
38855         New module 'unicase/u32-tolower'.
38856         * lib/unicase/u32-tolower.c: New file.
38857         * modules/unicase/u32-tolower: New file.
38858
38859         New module 'unicase/u16-tolower'.
38860         * lib/unicase/u16-tolower.c: New file.
38861         * modules/unicase/u16-tolower: New file.
38862
38863         New module 'unicase/u8-tolower'.
38864         * lib/unicase/u8-tolower.c: New file.
38865         * modules/unicase/u8-tolower: New file.
38866
38867         Tests for module 'unicase/u32-toupper'.
38868         * modules/unicase/u32-toupper-tests: New file.
38869         * tests/unicase/test-u32-toupper.c: New file.
38870
38871         Tests for module 'unicase/u16-toupper'.
38872         * modules/unicase/u16-toupper-tests: New file.
38873         * tests/unicase/test-u16-toupper.c: New file.
38874
38875         Tests for module 'unicase/u8-toupper'.
38876         * modules/unicase/u8-toupper-tests: New file.
38877         * tests/unicase/test-u8-toupper.c: New file.
38878
38879         New module 'unicase/u32-toupper'.
38880         * lib/unicase/u32-toupper.c: New file.
38881         * modules/unicase/u32-toupper: New file.
38882
38883         New module 'unicase/u16-toupper'.
38884         * lib/unicase/u16-toupper.c: New file.
38885         * modules/unicase/u16-toupper: New file.
38886
38887         New module 'unicase/u8-toupper'.
38888         * lib/unicase/u8-toupper.c: New file.
38889         * modules/unicase/u8-toupper: New file.
38890
38891         New module 'unicase/u32-casemap'.
38892         * lib/unicase/u32-casemap.c: New file.
38893         * modules/unicase/u32-casemap: New file.
38894
38895         New module 'unicase/u16-casemap'.
38896         * lib/unicase/u16-casemap.c: New file.
38897         * modules/unicase/u16-casemap: New file.
38898
38899         New module 'unicase/u8-casemap'.
38900         * lib/unicase/unicasemap.h: New file.
38901         * lib/unicase/u8-casemap.c: New file.
38902         * lib/unicase/u-casemap.h: New file.
38903         * modules/unicase/u8-casemap: New file.
38904
38905         New module 'unicase/special-casing'.
38906         * lib/unicase/special-casing.h: New file.
38907         * lib/unicase/special-casing.c: New file.
38908         * lib/unicase/special-casing-table.gperf: New file, generated by
38909         gen-uni-tables.c.
38910         * modules/unicase/special-casing: New file.
38911
38912         Tests for module 'unicase/locale-language'.
38913         * modules/unicase/locale-language-tests: New file.
38914         * tests/unicase/test-locale-language.sh: New file.
38915         * tests/unicase/test-locale-language.c: New file.
38916
38917         New module 'unicase/locale-language'.
38918         * lib/unicase/locale-language.c: New file.
38919         * lib/unicase/locale-languages.gperf: New file.
38920         * modules/unicase/locale-language: New file.
38921
38922         Generate more tables for case conversion and case folding.
38923         * lib/gen-uni-tables.c (SCC_*): New enum items.
38924         (struct special_casing_rule): New type.
38925         (casing_rules, num_casing_rules, allocated_casing_rules): New
38926         variables.
38927         (add_casing_rule, fill_casing_rules): New functions.
38928         (struct casefold_rule): New type.
38929         (casefolding_rules, num_casefolding_rules,
38930         allocated_casefolding_rules): New variables.
38931         (fill_casefolding_rules): New function.
38932         (unicode_casefold): New variable.
38933         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38934         sort_casing_rules, output_casing_rules): New functions.
38935         (main): Accept to more arguments: SpecialCasing.txt and
38936         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38937         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38938         Output mapping for casefolding.
38939
38940         * lib/unicase.h: Include stdbool.h, uninorm.h.
38941         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38942         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38943         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38944         arguments.
38945         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38946         resultp arguments.
38947         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38948         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38949         resultp arguments.
38950         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38951         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38952         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38953         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38954         declarations.
38955         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38956
38957 2009-03-08  Bruno Haible  <bruno@clisp.org>
38958
38959         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38960         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38961         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38962         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38963
38964 2009-03-07  Bruno Haible  <bruno@clisp.org>
38965
38966         Adjust u*_normcmp, u*_normcoll API.
38967         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38968         u16_normcoll, u32_normcoll): Change failure conventions.
38969         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38970         errno and return -1.
38971         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38972
38973 2009-03-07  Bruno Haible  <bruno@clisp.org>
38974
38975         Tests for module 'uninorm/u32-normcoll'.
38976         * modules/uninorm/u32-normcoll-tests: New file.
38977         * tests/uninorm/test-u32-normcoll.c: New file.
38978
38979         Tests for module 'uninorm/u16-normcoll'.
38980         * modules/uninorm/u16-normcoll-tests: New file.
38981         * tests/uninorm/test-u16-normcoll.c: New file.
38982
38983         Tests for module 'uninorm/u8-normcoll'.
38984         * modules/uninorm/u8-normcoll-tests: New file.
38985         * tests/uninorm/test-u8-normcoll.c: New file.
38986
38987 2009-03-07  Bruno Haible  <bruno@clisp.org>
38988
38989         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38990         tests/uninorm/test-u32-normcmp.c.
38991         * tests/uninorm/test-u32-normcmp.c: Include it.
38992         (test_nonascii): New function, extracted from main. Add some more
38993         tests.
38994         (main): Invoke test_ascii and test_nonascii.
38995         * modules/uninorm/u32-normcmp-tests (Files): Add
38996         tests/uninorm/test-u32-normcmp.h.
38997         (Depends-on): Remove uninorm/u32-normcmp.
38998
38999         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39000         tests/uninorm/test-u16-normcmp.c.
39001         * tests/uninorm/test-u16-normcmp.c: Include it.
39002         (test_nonascii): New function, extracted from main. Add some more
39003         tests.
39004         (main): Invoke test_ascii and test_nonascii.
39005         * modules/uninorm/u16-normcmp-tests (Files): Add
39006         tests/uninorm/test-u16-normcmp.h.
39007         (Depends-on): Remove uninorm/u16-normcmp.
39008
39009         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39010         tests/uninorm/test-u8-normcmp.c.
39011         * tests/uninorm/test-u8-normcmp.c: Include it.
39012         (test_nonascii): New function, extracted from main. Add some more
39013         tests.
39014         (main): Invoke test_ascii and test_nonascii.
39015         * modules/uninorm/u8-normcmp-tests (Files): Add
39016         tests/uninorm/test-u8-normcmp.h.
39017         (Depends-on): Remove uninorm/u8-normcmp.
39018
39019 2009-03-07  Bruno Haible  <bruno@clisp.org>
39020
39021         New module 'uninorm/u32-normcoll'.
39022         * lib/uninorm/u32-normcoll.c: New file.
39023         * modules/uninorm/u32-normcoll: New file.
39024
39025         New module 'uninorm/u16-normcoll'.
39026         * lib/uninorm/u16-normcoll.c: New file.
39027         * modules/uninorm/u16-normcoll: New file.
39028
39029         New module 'uninorm/u8-normcoll'.
39030         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39031         declarations.
39032         * lib/uninorm/u8-normcoll.c: New file.
39033         * lib/uninorm/u-normcoll.h: New file.
39034         * modules/uninorm/u8-normcoll: New file.
39035
39036         New module 'uninorm/u32-normxfrm'.
39037         * lib/uninorm/u32-normxfrm.c: New file.
39038         * modules/uninorm/u32-normxfrm: New file.
39039
39040         New module 'uninorm/u16-normxfrm'.
39041         * lib/uninorm/u16-normxfrm.c: New file.
39042         * modules/uninorm/u16-normxfrm: New file.
39043
39044         New module 'uninorm/u8-normxfrm'.
39045         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39046         declarations.
39047         * lib/uninorm/u8-normxfrm.c: New file.
39048         * lib/uninorm/u-normxfrm.h: New file.
39049         * modules/uninorm/u8-normxfrm: New file.
39050
39051 2009-03-07  Bruno Haible  <bruno@clisp.org>
39052
39053         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39054         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39055         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39056
39057 2009-03-07  Bruno Haible  <bruno@clisp.org>
39058
39059         New module 'memxfrm'.
39060         * lib/memxfrm.h: New file.
39061         * lib/memxfrm.c: New file.
39062         * modules/memxfrm: New file.
39063
39064 2009-03-07  Bruno Haible  <bruno@clisp.org>
39065
39066         New module 'memcmp2'.
39067         * lib/memcmp2.h: New file.
39068         * lib/memcmp2.c: New file.
39069         * modules/memcmp2: New file.
39070
39071 2009-03-07  Bruno Haible  <bruno@clisp.org>
39072
39073         Tests for module 'uninorm/decomposing-form'.
39074         * modules/uninorm/decomposing-form-tests: New file.
39075         * tests/uninorm/test-decomposing-form.c: New file.
39076
39077         New module 'uninorm/decomposing-form'.
39078         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39079         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39080         Add 'decomposing_variant' field.
39081         * lib/uninorm/decomposing-form.c: New file.
39082         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39083         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39084         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39085         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39086         * modules/uninorm/decomposing-form: New file.
39087         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39088         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39089
39090 2009-03-07  Bruno Haible  <bruno@clisp.org>
39091
39092         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39093         strings.
39094
39095 2009-03-06  Bruno Haible  <bruno@clisp.org>
39096
39097         Tests for module 'uninorm/u32-normcmp'.
39098         * tests/uninorm/test-u32-normcmp.c: New file.
39099         * modules/uninorm/u32-normcmp-tests: New file.
39100
39101         Tests for module 'uninorm/u16-normcmp'.
39102         * tests/uninorm/test-u16-normcmp.c: New file.
39103         * modules/uninorm/u16-normcmp-tests: New file.
39104
39105         Tests for module 'uninorm/u8-normcmp'.
39106         * tests/uninorm/test-u8-normcmp.c: New file.
39107         * modules/uninorm/u8-normcmp-tests: New file.
39108
39109         New module 'uninorm/u32-normcmp'.
39110         * lib/uninorm/u32-normcmp.c: New file.
39111         * modules/uninorm/u32-normcmp: New file.
39112
39113         New module 'uninorm/u16-normcmp'.
39114         * lib/uninorm/u16-normcmp.c: New file.
39115         * modules/uninorm/u16-normcmp: New file.
39116
39117         New module 'uninorm/u8-normcmp'.
39118         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39119         declarations.
39120         * lib/uninorm/u8-normcmp.c: New file.
39121         * lib/uninorm/u-normcmp.h: New file.
39122         * modules/uninorm/u8-normcmp: New file.
39123
39124 2009-03-06  Bruno Haible  <bruno@clisp.org>
39125
39126         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39127         Reported by Eric Blake.
39128
39129 2009-03-06  Eric Blake  <ebb9@byu.net>
39130             Bruno Haible  <bruno@clisp.org>
39131
39132         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39133         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39134         condition.
39135         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39136         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39137         condition.
39138         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39139
39140 2009-03-06  Eric Blake  <ebb9@byu.net>
39141
39142         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39143         to avoid compiler warnings.
39144         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39145
39146 2009-03-05  Bruno Haible  <bruno@clisp.org>
39147
39148         * tests/test-ftell.c (main): Disable test beyond end of file on
39149         FreeMiNT.
39150         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39151
39152 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39153
39154         * lib/filevercmp.c: Move hidden files up in ordering.
39155         * tests/test-filevercmp.c: Add tests for hidden files.
39156
39157 2009-03-04  Bruno Haible  <bruno@clisp.org>
39158
39159         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39160         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39161         AM_CFLAGS.
39162         Reported by Simon Josefsson.
39163
39164 2009-03-03  Bruno Haible  <bruno@clisp.org>
39165
39166         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39167         Reported by Simon Josefsson.
39168
39169         * doc/ld-version-script.texi: Update node reference.
39170
39171 2009-03-03  Bruno Haible  <bruno@clisp.org>
39172
39173         * modules/visibility (License): Change to 'unlimited'.
39174         Suggested by Simon Josefsson.
39175
39176 2009-03-03  Jim Meyering  <meyering@redhat.com>
39177
39178         unlinkdir: cannot_unlink_dir may modify process state
39179         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39180         it's neither thread-safe nor appropriate for use in a library.
39181
39182 2009-03-03  Eric Blake  <ebb9@byu.net>
39183
39184         test-closein: silence test under Darwin
39185         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39186         care if it dies from EPIPE or EBADF.
39187
39188 2009-03-03  Bruno Haible  <bruno@clisp.org>
39189
39190         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39191         earlier.
39192         * doc/visibility.texi: Fix @node and @section.
39193
39194 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39195
39196         * doc/gnulib.texi: Link to sections for ld version script and
39197         visibility.
39198         * doc/visibility.texi: Add @node and @section.
39199         * modules/ld-version-script: New module.
39200         * m4/ld-version-script.m4: New file.
39201         * doc/ld-version-script.texi: New file.
39202
39203 2009-03-02  David Lutterkort  <lutter@redhat.com>
39204
39205         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39207
39208 2009-03-02  Bruno Haible  <bruno@clisp.org>
39209
39210         * doc/visibility.texi: Mention libtool's -export-symbols option.
39211
39212 2009-03-02  Jim Meyering  <meyering@redhat.com>
39213
39214         announce-gen: new option: --no-print-checksums
39215         * build-aux/announce-gen (usage): Describe it.
39216         (print_checksums): Print a newline here, not in the [*] footnote.
39217         (main): Honor it.
39218
39219 2009-03-01  Bruno Haible  <bruno@clisp.org>
39220
39221         Use socklen_t in the native Windows replacements prototypes.
39222         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39223         instead of 'int'.
39224         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39225         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39226         * modules/getsockopt (Depends-on): Add socklen.
39227         * modules/setsockopt (Depends-on): Add socklen.
39228
39229 2009-03-01  Bruno Haible  <bruno@clisp.org>
39230
39231         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39232         least 4.2.
39233
39234 2009-03-01  Eric Blake  <ebb9@byu.net>
39235             Bruno Haible  <bruno@clisp.org>
39236
39237         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39238         error messages.
39239         * lib/wait-process.c (wait_subprocess): Omit error message about
39240         deadly signal sent to the child of termsigp != NULL.
39241
39242 2009-03-01  Eric Blake  <ebb9@byu.net>
39243
39244         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39245
39246 2009-03-01  Bruno Haible  <bruno@clisp.org>
39247
39248         Avoid a gcc warning.
39249         * tests/test-sched.c (b): Make global.
39250         Reported by Eric Blake.
39251
39252 2009-01-19  Martin Lambers  <marlam@marlam.de>
39253
39254         Provide POSIX semantics for socket timeout options on W32.
39255         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39256         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39257         * modules/setsockopt: Depend on sys_time module for struct timeval.
39258         * modules/getsockopt: Depend on sys_time module for struct timeval.
39259
39260 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39261
39262         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39263         __USE_GNU, for consistency with netdb.in.h.
39264         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39265
39266 2009-03-01  Bruno Haible  <bruno@clisp.org>
39267
39268         More support for FreeMiNT.
39269         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39270         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39271
39272 2009-03-01  Bruno Haible  <bruno@clisp.org>
39273
39274         More support for FreeMiNT.
39275         * lib/fpurge.c (fpurge): Correct last commit.
39276         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39277
39278 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39279
39280         Fix unportable awk script in vc-list-files.
39281         * build-aux/vc-list-files: In the replacement awk script, use
39282         substr with a second argument of 1, not zero.
39283         Report by Simon Josefsson.
39284
39285 2009-02-28  Bruno Haible  <bruno@clisp.org>
39286
39287         More support for FreeMiNT.
39288         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39289         to FreeMiNT today.
39290         * lib/fwriting.c (fwriting): Likewise.
39291         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39292
39293 2009-02-28  Bruno Haible  <bruno@clisp.org>
39294
39295         * tests/test-freadseek.c (main): Disable test beyond end of file on
39296         FreeMiNT.
39297         * tests/test-ftello.c (main): Likewise.
39298         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39299
39300 2009-02-28  Bruno Haible  <bruno@clisp.org>
39301
39302         Add tentative support for FreeMiNT.
39303         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39304         * lib/fpurge.c (fpurge): Likewise.
39305         * lib/freadable.c (freadable): Likewise.
39306         * lib/freading.c (freading): Likewise.
39307         * lib/freadptr.c (freadptr): Likewise.
39308         * lib/freadseek.c (freadptrinc): Likewise.
39309         * lib/fseeko.c (rpl_fseeko): Likewise.
39310         * lib/fseterr.c (fseterr): Likewise.
39311         * lib/fwritable.c (fwritable): Likewise.
39312         * lib/fwriting.c (fwriting): Likewise.
39313         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39314         Hourihane.
39315         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39316
39317 2009-02-28  Bruno Haible  <bruno@clisp.org>
39318
39319         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39320         SIGCHLD.
39321         Reported by Jim Meyering.
39322
39323 2009-02-28  Bruno Haible  <bruno@clisp.org>
39324
39325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39326         Mention the results of these tests on various platforms.
39327         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39328         order.
39329         * doc/posix-functions/printf.texi: Likewise.
39330         * doc/posix-functions/snprintf.texi: Likewise.
39331         * doc/posix-functions/sprintf.texi: Likewise.
39332         * doc/posix-functions/vfprintf.texi: Likewise.
39333         * doc/posix-functions/vprintf.texi: Likewise.
39334         * doc/posix-functions/vsnprintf.texi: Likewise.
39335         * doc/posix-functions/vsprintf.texi: Likewise.
39336         * doc/glibc-functions/obstack_printf.texi: Likewise.
39337         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39338
39339 2009-02-28  Bruno Haible  <bruno@clisp.org>
39340
39341         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39342         Reported by Loïc Minier <lool@dooz.org>.
39343
39344 2009-02-27  Bruno Haible  <bruno@clisp.org>
39345
39346         * gnulib-tool (func_import): Make the sed expression used to create the
39347         sed script for updating the .gitignore file POSIX compliant.
39348         Reported by Eric Blake.
39349
39350 2009-02-27  Bruno Haible  <bruno@clisp.org>
39351
39352         * gnulib-tool (sed): Don't alias as "sed --posix".
39353         Reported by Eric Blake.
39354
39355 2009-02-27  Bruno Haible  <bruno@clisp.org>
39356
39357         Avoid test link errors.
39358         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39359         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39360         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39361         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39363
39364 2009-02-27  Bruno Haible  <bruno@clisp.org>
39365
39366         Avoid spurious "(cached)" in configure output.
39367         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39368         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39369         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39370         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39371         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39372         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39373         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39374         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39375         Reported by Eric Blake.
39376
39377 2009-02-27  Eric Blake  <ebb9@byu.net>
39378
39379         printf: fix regression in previous patch
39380         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39381
39382 2009-02-27  Bruno Haible  <bruno@clisp.org>
39383
39384         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39385         value.
39386         * lib/stdint.in.h: Likewise.
39387         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39388
39389 2009-02-27  Eric Blake  <ebb9@byu.net>
39390
39391         doc: mention more functions added in cygwin 1.7.0
39392         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39393         addition.
39394         * doc/posix-functions/open_wmemstream.texi: Likewise.
39395         * doc/posix-functions/wcsnlen.texi: Likewise.
39396         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39397         * doc/posix-functions/wcstod.texi: Likewise.
39398         * doc/posix-functions/wcstof.texi: Likewise.
39399         * doc/posix-functions/wcstoimax.texi: Likewise.
39400         * doc/posix-functions/wcstok.texi: Likewise.
39401         * doc/posix-functions/wcstoumax.texi: Likewise.
39402
39403         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39404         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39405         * doc/posix-functions/fprintf.texi: Update.
39406         * doc/posix-functions/printf.texi: Update.
39407         * doc/posix-functions/snprintf.texi: Update.
39408         * doc/posix-functions/sprintf.texi: Update.
39409         * doc/posix-functions/vfprintf.texi: Update.
39410         * doc/posix-functions/vprintf.texi: Update.
39411         * doc/posix-functions/vsnprintf.texi: Update.
39412         * doc/posix-functions/vsprintf.texi: Update.
39413         * doc/glibc-functions/obstack_printf.texi: Update.
39414         * doc/glibc-functions/obstack_vprintf.texi: Update.
39415
39416 2009-02-26  Eric Blake  <ebb9@byu.net>
39417
39418         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39419         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39420         compilation bug by using runtime conversion.
39421         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39422         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39423         * modules/ceill-tests (Files): Use nan.h.
39424         * modules/floorl-tests (Files): Likewise.
39425         * modules/frexpl-tests (Files): Likewise.
39426         * modules/isnanl-tests (Files): Likewise.
39427         * modules/ldexpl-tests (Files): Likewise.
39428         * modules/roundl-tests (Files): Likewise.
39429         * modules/truncl-tests (Files): Likewise.
39430         * tests/test-ceill.c (main): Use a working NaN.
39431         * tests/test-floorl.c (main): Likewise.
39432         * tests/test-frexpl.c (main): Likewise.
39433         * tests/test-isnan.c (test_long_double): Likewise.
39434         * tests/test-isnanl.h (main): Likewise.
39435         * tests/test-ldexpl.h (main): Likewise.
39436         * tests/test-roundl.h (main): Likewise.
39437         * tests/test-truncl.h (main): Likewise.
39438         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39439
39440 2009-02-26  Eric Blake  <ebb9@byu.net>
39441             Bruno Haible  <bruno@clisp.org>
39442
39443         Work around a *printf bug with %ls on Solaris.
39444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39445         precision is specified, sprintf stops converting the wide string
39446         argument when the number of bytes that have been produced by this
39447         conversion equals or exceeds the precision.
39448         * doc/posix-functions/fprintf.texi: Update.
39449         * doc/posix-functions/printf.texi: Update.
39450         * doc/posix-functions/snprintf.texi: Update.
39451         * doc/posix-functions/sprintf.texi: Update.
39452         * doc/posix-functions/vfprintf.texi: Update.
39453         * doc/posix-functions/vprintf.texi: Update.
39454         * doc/posix-functions/vsnprintf.texi: Update.
39455         * doc/posix-functions/vsprintf.texi: Update.
39456         * doc/glibc-functions/obstack_printf.texi: Update.
39457         * doc/glibc-functions/obstack_vprintf.texi: Update.
39458
39459 2009-02-26  Eric Blake  <ebb9@byu.net>
39460
39461         stdlib: favor compiler check of random.h
39462         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39463         to avoid an ObjC random.h installed by Swarm.
39464
39465 2009-02-26  Bruno Haible  <bruno@clisp.org>
39466
39467         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39468         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39469         Reported by Gary V. Vaughan <gary@gnu.org>.
39470
39471 2009-02-26  Bruno Haible  <bruno@clisp.org>
39472
39473         Fix *printf behaviour regarding the %ls directive.
39474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39475         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39476         NEED_PRINTF_DIRECTIVE_LS.
39477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39478         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39480         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39481         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39482         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39483         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39488         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39492         * doc/posix-functions/fprintf.texi: Update.
39493         * doc/posix-functions/printf.texi: Update.
39494         * doc/posix-functions/snprintf.texi: Update.
39495         * doc/posix-functions/sprintf.texi: Update.
39496         * doc/posix-functions/vfprintf.texi: Update.
39497         * doc/posix-functions/vprintf.texi: Update.
39498         * doc/posix-functions/vsnprintf.texi: Update.
39499         * doc/posix-functions/vsprintf.texi: Update.
39500         * doc/glibc-functions/obstack_printf.texi: Update.
39501         * doc/glibc-functions/obstack_vprintf.texi: Update.
39502         Reported by Eric Blake.
39503
39504 2009-02-25  Bruno Haible  <bruno@clisp.org>
39505
39506         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39507         with known value.
39508         Reported by Gary V. Vaughan <gary@gnu.org>.
39509
39510 2009-02-25  Bruno Haible  <bruno@clisp.org>
39511
39512         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39513         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39514         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39515         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39516         Reported by Gary V. Vaughan <gary@gnu.org>.
39517
39518 2009-02-25  Bruno Haible  <bruno@clisp.org>
39519
39520         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39521         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39522         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39523         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39524         Reported by Gary V. Vaughan <gary@gnu.org>.
39525
39526 2009-02-25  Eric Blake  <ebb9@byu.net>
39527
39528         tests: skip fseek/ftell tests if ungetc is broken
39529         * m4/ungetc.m4: New file.
39530         * modules/fseek-tests: Split test, so ungetc dependency is
39531         separate from rest of test.
39532         * modules/fseeko-tests: Likewise.
39533         * modules/ftell-tests: Likewise.
39534         * modules/ftello-tests: Likewise.
39535         * tests/test-fseek.c (main): Isolate ungetc dependency.
39536         * tests/test-fseeko.c (main): Likewise.
39537         * tests/test-ftell.c (main): Likewise.
39538         * tests/test-ftello.c (main): Likewise.
39539         * tests/test-fseek2.sh: New file.
39540         * tests/test-fseeko2.sh: Likewise.
39541         * tests/test-ftell2.sh: Likewise.
39542         * tests/test-ftello2.sh: Likewise.
39543
39544 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39545
39546         test-getaddrinfo: fix usage of skip return code 77
39547         * tests/test-gettaddrinfo.c: Return skip code 77 only
39548         for first occurance of skip (4x77 is not 77)
39549
39550 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39551
39552         strtod: avoid C99 decl-after-statement
39553         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39554
39555 2009-02-24  Eric Blake  <ebb9@byu.net>
39556
39557         strtod: detect HP-UX 11.31 bug
39558         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39559         Reported by Gary V. Vaughan.
39560
39561 2009-02-23  Bruno Haible  <bruno@clisp.org>
39562
39563         Fix invalid read past end of memory block.
39564         * lib/vasnprintf.c (DCHAR_SET): Define.
39565         (local_wcslen): Define only when needed.
39566         (local_strnlen, local_wcsnlen): New functions.
39567         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39568         directives that involve a conversion ourselves.
39569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39570         wcsnlen, mbrtowc, wcrtomb.
39571         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39572         * tests/test-vasprintf-posix.c (test_function): Likewise.
39573         * tests/test-snprintf-posix.h (test_function): Likewise.
39574         * tests/test-sprintf-posix.h (test_function): Likewise.
39575         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39576
39577 2009-02-22  Bruno Haible  <bruno@clisp.org>
39578
39579         Implement new clarified decomposition of Hangul syllables.
39580         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39581         of type LTV, return only a pairwise decomposition.
39582         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39583         Likewise.
39584         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39585         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39586         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39587
39588 2009-02-22  Bruno Haible  <bruno@clisp.org>
39589
39590         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39591         zero-length results and shrink excess allocated memory.
39592         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39593         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39594         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39595         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39596         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39597         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39598         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39599         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39600         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39601         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39602         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39603         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39604
39605 2009-02-21  Bruno Haible  <bruno@clisp.org>
39606
39607         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39608         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39609         spaces after a period. Put a space between a macro name and its
39610         argument list. Trivial rewordings.
39611         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39612         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39613         (main): Return 0 explicitly.
39614
39615 2009-02-21  Bruno Haible  <bruno@clisp.org>
39616
39617         Tests for module 'uninorm/filter'.
39618         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39619         * modules/uninorm/filter-tests: New file.
39620
39621         New module 'uninorm/filter'.
39622         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39623         uninorm_filter_flush, uninorm_filter_free): New declarations.
39624         * lib/uninorm/uninorm-filter.c: New file.
39625         * modules/uninorm/filter: New file.
39626
39627 2009-02-21  Bruno Haible  <bruno@clisp.org>
39628
39629         Tests for module 'uninorm/nfkc'.
39630         * tests/uninorm/test-nfkc.c: New file.
39631         * tests/uninorm/test-u8-nfkc.c: New file.
39632         * tests/uninorm/test-u16-nfkc.c: New file.
39633         * tests/uninorm/test-u32-nfkc.c: New file.
39634         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39635         * tests/uninorm/test-u32-nfkc-big.c: New file.
39636         * modules/uninorm/nfkc-tests: New file.
39637
39638         New module 'uninorm/nfkc'.
39639         * lib/uninorm/nfkc.c: New file.
39640         * modules/uninorm/nfkc: New file.
39641
39642         Tests for module 'uninorm/nfkd'.
39643         * tests/uninorm/test-nfkd.c: New file.
39644         * tests/uninorm/test-u8-nfkd.c: New file.
39645         * tests/uninorm/test-u16-nfkd.c: New file.
39646         * tests/uninorm/test-u32-nfkd.c: New file.
39647         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39648         * tests/uninorm/test-u32-nfkd-big.c: New file.
39649         * modules/uninorm/nfkd-tests: New file.
39650
39651         New module 'uninorm/nfkd'.
39652         * lib/uninorm/nfkd.c: New file.
39653         * modules/uninorm/nfkd: New file.
39654
39655         Tests for module 'uninorm/nfc'.
39656         * tests/uninorm/test-nfc.c: New file.
39657         * tests/uninorm/test-u8-nfc.c: New file.
39658         * tests/uninorm/test-u16-nfc.c: New file.
39659         * tests/uninorm/test-u32-nfc.c: New file.
39660         * tests/uninorm/test-u32-nfc-big.sh: New file.
39661         * tests/uninorm/test-u32-nfc-big.c: New file.
39662         * modules/uninorm/nfc-tests: New file.
39663
39664         New module 'uninorm/nfc'.
39665         * lib/uninorm/nfc.c: New file.
39666         * modules/uninorm/nfc: New file.
39667
39668         Tests for module 'uninorm/nfd'.
39669         * tests/uninorm/test-nfd.c: New file.
39670         * tests/uninorm/test-u8-nfd.c: New file.
39671         * tests/uninorm/test-u16-nfd.c: New file.
39672         * tests/uninorm/test-u32-nfd.c: New file.
39673         * tests/uninorm/test-u32-nfd-big.sh: New file.
39674         * tests/uninorm/test-u32-nfd-big.c: New file.
39675         * tests/uninorm/test-u32-normalize-big.h: New file.
39676         * tests/uninorm/test-u32-normalize-big.c: New file.
39677         * tests/uninorm/NormalizationTest.txt: New file, created from
39678         Unicode 5.1.0 NormalizationTest.txt.
39679         * modules/uninorm/nfd-tests: New file.
39680
39681         New module 'uninorm/nfd'.
39682         * lib/uninorm/nfd.c: New file.
39683         * modules/uninorm/nfd: New file.
39684
39685         New module 'uninorm/u32-normalize'.
39686         * lib/uninorm/u32-normalize.c: New file.
39687         * modules/uninorm/u32-normalize: New file.
39688
39689         New module 'uninorm/u16-normalize'.
39690         * lib/uninorm/u16-normalize.c: New file.
39691         * modules/uninorm/u16-normalize: New file.
39692
39693         New module 'uninorm/u8-normalize'.
39694         * lib/uninorm/u8-normalize.c: New file.
39695         * lib/uninorm/normalize-internal.h: New file.
39696         * lib/uninorm/u-normalize-internal.h: New file.
39697         * modules/uninorm/u8-normalize: New file.
39698
39699         New module 'uninorm/decompose-internal'.
39700         * lib/uninorm/decompose-internal.c: New file.
39701         * modules/uninorm/decompose-internal: New file.
39702
39703         Tests for module 'uninorm/composition'.
39704         * tests/uninorm/test-composition.c: New file.
39705         * modules/uninorm/composition-tests: New file.
39706
39707         New module 'uninorm/composition'.
39708         * lib/uninorm/composition.c: New file.
39709         * lib/uninorm/composition-table.gperf: New file, generated by
39710         gen-uni-tables.
39711         * modules/uninorm/composition: New file.
39712
39713         Tests for module 'uninorm/compat-decomposition'.
39714         * tests/uninorm/test-compat-decomposition.c: New file.
39715         * modules/uninorm/compat-decomposition-tests: New file.
39716
39717         New module 'uninorm/compat-decomposition'.
39718         * lib/uninorm/decompose-internal.h: New file.
39719         * lib/uninorm/compat-decomposition.c: New file.
39720         * modules/uninorm/compat-decomposition: New file.
39721
39722         Tests for module 'uninorm/canonical-decomposition'.
39723         * tests/uninorm/test-canonical-decomposition.c: New file.
39724         * modules/uninorm/canonical-decomposition-tests: New file.
39725
39726         New module 'uninorm/canonical-decomposition'.
39727         * lib/uninorm/canonical-decomposition.c: New file.
39728         * modules/uninorm/canonical-decomposition: New file.
39729
39730         Tests for module 'uninorm/decomposition'.
39731         * tests/uninorm/test-decomposition.c: New file.
39732         * modules/uninorm/decomposition-tests: New file.
39733
39734         New module 'uninorm/decomposition'.
39735         * lib/uninorm/decomposition.c: New file.
39736         * modules/uninorm/decomposition: New file.
39737
39738         New module 'uninorm/decomposition-table'.
39739         * lib/uninorm/decomposition-table.h: New file.
39740         * lib/uninorm/decomposition-table.c: New file.
39741         * lib/uninorm/decomposition-table1.h: New file, generated by
39742         gen-uni-tables.
39743         * lib/uninorm/decomposition-table2.h: New file, generated by
39744         gen-uni-tables.
39745         * modules/uninorm/decomposition-table: New file.
39746
39747         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39748         (UC_DECOMP_*): New enumeration items.
39749         (get_decomposition): New function.
39750         (struct decomp_table): New type.
39751         (output_decomposition, output_decomposition_tables): New functions.
39752         (unicode_composition_exclusions): New variable.
39753         (fill_composition_exclusions, debug_output_composition_tables): New
39754         functions.
39755         (main): Accept one more argument. Invoke fill_composition_exclusions.
39756         Output decomposition and composition tables.
39757
39758         New module 'uninorm/base'.
39759         * lib/uninorm.h: New file.
39760         * lib/unictype.h: Update comment.
39761         * modules/uninorm/base: New file.
39762
39763 2009-02-21  David Lutterkort  <lutter@redhat.com>
39764
39765         Tests for module 'safe-alloc'.
39766         * tests/test-safe-alloc.c: New file.
39767         * modules/safe-alloc-tests: New file.
39768
39769         New module 'safe-alloc'.
39770         * lib/safe-alloc.h: New file.
39771         * lib/safe-alloc.c: New file.
39772         * m4/safe-alloc.m4: New file.
39773         * modules/safe-alloc: New file.
39774         * doc/safe-alloc.texi: New file.
39775         * doc/gnulib.texi: Include it.
39776         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39777         safe-alloc.
39778
39779 2009-02-18  Bruno Haible  <bruno@clisp.org>
39780
39781         Fix link error on non-glibc systems.
39782         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39783         variable.
39784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39785
39786 2009-02-18  Jim Meyering  <meyering@redhat.com>
39787
39788         fts: avoid used-uninitialized error due to recent change
39789         * lib/fts.c (fts_read): Guard uses of the new member,
39790         parent->fts_n_dirs_remaining, since it's not relevant for
39791         the parent of a directory specified on the command-line.
39792
39793 2009-02-17  James Youngman  <jay@gnu.org>
39794             Bruno Haible  <bruno@clisp.org>
39795
39796         * m4/include_next.m4: Reformulate comment.
39797
39798 2009-02-16  Jim Meyering  <meyering@redhat.com>
39799
39800         fts: add #if guards so that the fts_lgpl module still builds
39801         * lib/fts.c: Guard just-added hash-table-using parts with
39802         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39803         Reported by Simon Josefsson.
39804
39805 2009-02-15  Bruno Haible  <bruno@clisp.org>
39806
39807         * modules/array-mergesort-tests: New file.
39808         * tests/test-array-mergesort.c: New file.
39809
39810         New module 'array-mergesort'.
39811         * modules/array-mergesort: New file.
39812         * lib/array-mergesort.h: New file.
39813
39814 2009-02-15  Bruno Haible  <bruno@clisp.org>
39815
39816         Fix 2009-02-07 commit.
39817         * lib/gen-uni-tables.c (output_predicate, output_category,
39818         output_combclass, output_bidi_category, output_decimal_digit,
39819         output_digit, output_numeric, output_mirror, output_scripts,
39820         output_ident_category, output_simple_mapping): Fix format directives.
39821         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39822
39823 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39824
39825         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39826         fixes are available from IBM.
39827
39828 2009-02-13  Jim Meyering  <meyering@redhat.com>
39829
39830         fts: arrange not to stat non-directories in more cases
39831         This makes GNU find (when it doesn't need to stat each file)
39832         *much* more efficient at traversing reiserfs file systems.
39833         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39834         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39835         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39836         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39837         (leaf_optimization_applies): New function.
39838         (LCO_hash, LCO_compare): New helper functions.
39839         (link_count_optimize_ok): New function.
39840         (fts_stat): Initialize new member (if dir).
39841         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39842         we've just stat'ed a directory.  Skip the stat call when possible.
39843         ---
39844         Note this AFS-related exchange:
39845         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39846         and note find's pioctl call in find/fstype.c.
39847         But that is necessary only if you want to enable the
39848         optimization for AFS, and for now, I don't.
39849
39850         fts: move a function definition "up" (no semantic change)
39851         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39852         "up" to precede upcoming use of a related function.
39853
39854 2009-02-11  Jim Meyering  <meyering@redhat.com>
39855
39856         fts: correct internal computation of nlinks (optimization-related)
39857         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39858         whether the current entry is a directory, so don't test it.
39859
39860 2009-02-10  Bruno Haible  <bruno@clisp.org>
39861
39862         Tests for module 'uniwbrk/ulc-wordbreaks'.
39863         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39864         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39865         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39866
39867         Tests for module 'uniwbrk/u32-wordbreaks'.
39868         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39869         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39870
39871         Tests for module 'uniwbrk/u16-wordbreaks'.
39872         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39873         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39874
39875         Tests for module 'uniwbrk/u8-wordbreaks'.
39876         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39877         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39878
39879 2009-02-10  Bruno Haible  <bruno@clisp.org>
39880
39881         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39882         property.
39883         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39884         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39885         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39886
39887 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39888
39889         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39890         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39891
39892 2009-02-10  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39895         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39896         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39897         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39898         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39899         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39900
39901 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39902
39903         * lib/sockets.h (gl_fd_to_handle): New function.
39904
39905         * tests/test-sockets.c: Call gl_fd_to_handle.
39906
39907 2009-02-09  Bruno Haible  <bruno@clisp.org>
39908
39909         * doc/havelib.texi: Document the conventions on bi-arch systems.
39910
39911 2009-02-08  Bruno Haible  <bruno@clisp.org>
39912
39913         Document the AC_LIB_LINKFLAGS macro.
39914         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39915         * doc/gnulib.texi: Include it.
39916
39917 2009-02-08  Bruno Haible  <bruno@clisp.org>
39918
39919         Fix wrong order of sections, compared to TOC.
39920         * doc/gnulib.texi: Include relocatable-maint.texi after the
39921         "Regular expressions" node, not before.
39922
39923 2009-02-08  Bruno Haible  <bruno@clisp.org>
39924
39925         Tests for module 'unicase/totitle'.
39926         * modules/unicase/totitle-tests: New file.
39927
39928         Tests for module 'unicase/tolower'.
39929         * modules/unicase/tolower-tests: New file.
39930
39931         Tests for module 'unicase/toupper'.
39932         * modules/unicase/toupper-tests: New file.
39933         * tests/unicase/test-mapping-part1.h: New file.
39934         * tests/unicase/test-mapping-part2.h: New file.
39935
39936         New module 'unicase/totitle'.
39937         * modules/unicase/totitle: New file.
39938         * lib/unicase/totitle.c: New file.
39939
39940         New module 'unicase/tolower'.
39941         * modules/unicase/tolower: New file.
39942         * lib/unicase/tolower.c: New file.
39943
39944         New module 'unicase/toupper'.
39945         * modules/unicase/toupper: New file.
39946         * lib/unicase/toupper.c: New file.
39947         * lib/unicase/simple-mapping.h: New file.
39948
39949         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39950         (mapping_table): New structure.
39951         (output_simple_mapping): New function.
39952         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39953         * modules/gen-uni-tables (Description): Update.
39954         * lib/unicase/toupper.h: New file, automatically generated by
39955         gen-uni-tables.
39956         * lib/unicase/tolower.h: New file, automatically generated by
39957         gen-uni-tables.
39958         * lib/unicase/totitle.h: New file, automatically generated by
39959         gen-uni-tables.
39960         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39961         gen-uni-tables.
39962         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39963         gen-uni-tables.
39964         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39965         gen-uni-tables.
39966
39967         New module 'unicase/base'.
39968         * modules/unicase/base: New file.
39969         * lib/unicase.h: New file.
39970
39971 2009-02-08  Bruno Haible  <bruno@clisp.org>
39972
39973         New module 'uniwbrk/ulc-wordbreaks'.
39974         * modules/uniwbrk/ulc-wordbreaks: New file.
39975         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39976
39977         New module 'uniwbrk/u32-wordbreaks'.
39978         * modules/uniwbrk/u32-wordbreaks: New file.
39979         * lib/uniwbrk/u32-wordbreaks.c: New file.
39980
39981         New module 'uniwbrk/u16-wordbreaks'.
39982         * modules/uniwbrk/u16-wordbreaks: New file.
39983         * lib/uniwbrk/u16-wordbreaks.c: New file.
39984
39985         New module 'uniwbrk/u8-wordbreaks'.
39986         * modules/uniwbrk/u8-wordbreaks: New file.
39987         * lib/uniwbrk/u8-wordbreaks.c: New file.
39988         * lib/uniwbrk/u-wordbreaks.h: New file.
39989
39990         New module 'uniwbrk/table'.
39991         * modules/uniwbrk/table: New file.
39992         * lib/uniwbrk/wbrktable.h: New file.
39993         * lib/uniwbrk/wbrktable.c: New file.
39994
39995         New module 'uniwbrk/wordbreak-property'.
39996         * modules/uniwbrk/wordbreak-property: New file.
39997         * lib/uniwbrk/wordbreak-property.c: New file.
39998
39999         * lib/gen-uni-tables.c (WBP_*): New enum items.
40000         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40001         (unicode_org_wbp): New variable.
40002         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40003         New functions.
40004         (wbp_table): New structure.
40005         (output_wbp, output_wbrk_tables): New functions.
40006         (main): Accept additional argument. Invoke fill_org_wbp,
40007         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40008         output_wbrk_tables.
40009         * modules/gen-uni-tables (Description): Update.
40010         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40011         gen-uni-tables.
40012
40013         New module 'uniwbrk/base'.
40014         * modules/uniwbrk/base: New file.
40015         * lib/uniwbrk.h: New file.
40016
40017 2009-02-08  Bruno Haible  <bruno@clisp.org>
40018
40019         Update to Unicode 5.1.0.
40020         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40021         U+2185..U+2188.
40022         (is_property_default_ignorable_code_point): Don't include characters
40023         of category Cc or Cs and not-a-characters.
40024         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40025         U+0D79, U+109E, U+109F, U+A60C.
40026         * lib/unictype/bidi_of.h: Regenerated.
40027         * lib/unictype/blocks.h: Regenerated.
40028         * lib/unictype/categ_C.h: Regenerated.
40029         * lib/unictype/categ_Cf.h: Regenerated.
40030         * lib/unictype/categ_Cn.h: Regenerated.
40031         * lib/unictype/categ_L.h: Regenerated.
40032         * lib/unictype/categ_Ll.h: Regenerated.
40033         * lib/unictype/categ_Lm.h: Regenerated.
40034         * lib/unictype/categ_Lo.h: Regenerated.
40035         * lib/unictype/categ_Lu.h: Regenerated.
40036         * lib/unictype/categ_M.h: Regenerated.
40037         * lib/unictype/categ_Mc.h: Regenerated.
40038         * lib/unictype/categ_Me.h: Regenerated.
40039         * lib/unictype/categ_Mn.h: Regenerated.
40040         * lib/unictype/categ_N.h: Regenerated.
40041         * lib/unictype/categ_Nd.h: Regenerated.
40042         * lib/unictype/categ_Nl.h: Regenerated.
40043         * lib/unictype/categ_No.h: Regenerated.
40044         * lib/unictype/categ_P.h: Regenerated.
40045         * lib/unictype/categ_Pd.h: Regenerated.
40046         * lib/unictype/categ_Pe.h: Regenerated.
40047         * lib/unictype/categ_Pf.h: Regenerated.
40048         * lib/unictype/categ_Pi.h: Regenerated.
40049         * lib/unictype/categ_Po.h: Regenerated.
40050         * lib/unictype/categ_Ps.h: Regenerated.
40051         * lib/unictype/categ_S.h: Regenerated.
40052         * lib/unictype/categ_Sk.h: Regenerated.
40053         * lib/unictype/categ_Sm.h: Regenerated.
40054         * lib/unictype/categ_So.h: Regenerated.
40055         * lib/unictype/categ_of.h: Regenerated.
40056         * lib/unictype/combining.h: Regenerated.
40057         * lib/unictype/ctype_alnum.h: Regenerated.
40058         * lib/unictype/ctype_alpha.h: Regenerated.
40059         * lib/unictype/ctype_graph.h: Regenerated.
40060         * lib/unictype/ctype_lower.h: Regenerated.
40061         * lib/unictype/ctype_print.h: Regenerated.
40062         * lib/unictype/ctype_punct.h: Regenerated.
40063         * lib/unictype/ctype_upper.h: Regenerated.
40064         * lib/unictype/decdigit.h: Regenerated.
40065         * lib/unictype/digit.h: Regenerated.
40066         * lib/unictype/mirror.h: Regenerated.
40067         * lib/unictype/numeric.h: Regenerated.
40068         * lib/unictype/pr_alphabetic.h: Regenerated.
40069         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40070         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40071         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40072         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40073         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40074         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40075         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40076         * lib/unictype/pr_combining.h: Regenerated.
40077         * lib/unictype/pr_dash.h: Regenerated.
40078         * lib/unictype/pr_decimal_digit.h: Regenerated.
40079         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40080         * lib/unictype/pr_deprecated.h: Regenerated.
40081         * lib/unictype/pr_diacritic.h: Regenerated.
40082         * lib/unictype/pr_extender.h: Regenerated.
40083         * lib/unictype/pr_format_control.h: Regenerated.
40084         * lib/unictype/pr_grapheme_base.h: Regenerated.
40085         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40086         * lib/unictype/pr_grapheme_link.h: Regenerated.
40087         * lib/unictype/pr_id_continue.h: Regenerated.
40088         * lib/unictype/pr_id_start.h: Regenerated.
40089         * lib/unictype/pr_ideographic.h: Regenerated.
40090         * lib/unictype/pr_ignorable_control.h: Regenerated.
40091         * lib/unictype/pr_lowercase.h: Regenerated.
40092         * lib/unictype/pr_math.h: Regenerated.
40093         * lib/unictype/pr_numeric.h: Regenerated.
40094         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40095         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40096         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40097         * lib/unictype/pr_other_id_continue.h: Regenerated.
40098         * lib/unictype/pr_other_lowercase.h: Regenerated.
40099         * lib/unictype/pr_other_math.h: Regenerated.
40100         * lib/unictype/pr_punctuation.h: Regenerated.
40101         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40102         * lib/unictype/pr_soft_dotted.h: Regenerated.
40103         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40104         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40105         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40106         * lib/unictype/pr_uppercase.h: Regenerated.
40107         * lib/unictype/pr_xid_continue.h: Regenerated.
40108         * lib/unictype/pr_xid_start.h: Regenerated.
40109         * lib/unictype/pr_zero_width.h: Regenerated.
40110         * lib/unictype/scripts.h: Regenerated.
40111         * lib/unictype/scripts_byname.gperf: Regenerated.
40112         * lib/unictype/sy_java_ident.h: Regenerated.
40113         * lib/unilbrk/lbrkprop1.h: Regenerated.
40114         * lib/unilbrk/lbrkprop2.h: Regenerated.
40115         * tests/unictype/test-categ_C.c: Regenerated.
40116         * tests/unictype/test-categ_Cf.c: Regenerated.
40117         * tests/unictype/test-categ_Cn.c: Regenerated.
40118         * tests/unictype/test-categ_L.c: Regenerated.
40119         * tests/unictype/test-categ_Ll.c: Regenerated.
40120         * tests/unictype/test-categ_Lm.c: Regenerated.
40121         * tests/unictype/test-categ_Lo.c: Regenerated.
40122         * tests/unictype/test-categ_Lu.c: Regenerated.
40123         * tests/unictype/test-categ_M.c: Regenerated.
40124         * tests/unictype/test-categ_Mc.c: Regenerated.
40125         * tests/unictype/test-categ_Me.c: Regenerated.
40126         * tests/unictype/test-categ_Mn.c: Regenerated.
40127         * tests/unictype/test-categ_N.c: Regenerated.
40128         * tests/unictype/test-categ_Nd.c: Regenerated.
40129         * tests/unictype/test-categ_Nl.c: Regenerated.
40130         * tests/unictype/test-categ_No.c: Regenerated.
40131         * tests/unictype/test-categ_P.c: Regenerated.
40132         * tests/unictype/test-categ_Pd.c: Regenerated.
40133         * tests/unictype/test-categ_Pe.c: Regenerated.
40134         * tests/unictype/test-categ_Pf.c: Regenerated.
40135         * tests/unictype/test-categ_Pi.c: Regenerated.
40136         * tests/unictype/test-categ_Po.c: Regenerated.
40137         * tests/unictype/test-categ_Ps.c: Regenerated.
40138         * tests/unictype/test-categ_S.c: Regenerated.
40139         * tests/unictype/test-categ_Sk.c: Regenerated.
40140         * tests/unictype/test-categ_Sm.c: Regenerated.
40141         * tests/unictype/test-categ_So.c: Regenerated.
40142         * tests/unictype/test-ctype_alnum.c: Regenerated.
40143         * tests/unictype/test-ctype_alpha.c: Regenerated.
40144         * tests/unictype/test-ctype_graph.c: Regenerated.
40145         * tests/unictype/test-ctype_lower.c: Regenerated.
40146         * tests/unictype/test-ctype_print.c: Regenerated.
40147         * tests/unictype/test-ctype_punct.c: Regenerated.
40148         * tests/unictype/test-ctype_upper.c: Regenerated.
40149         * tests/unictype/test-decdigit.h: Regenerated.
40150         * tests/unictype/test-digit.h: Regenerated.
40151         * tests/unictype/test-numeric.h: Regenerated.
40152         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40153         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40154         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40155         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40156         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40157         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40158         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40159         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40160         * tests/unictype/test-pr_combining.c: Regenerated.
40161         * tests/unictype/test-pr_dash.c: Regenerated.
40162         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40163         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40164         * tests/unictype/test-pr_deprecated.c: Regenerated.
40165         * tests/unictype/test-pr_diacritic.c: Regenerated.
40166         * tests/unictype/test-pr_extender.c: Regenerated.
40167         * tests/unictype/test-pr_format_control.c: Regenerated.
40168         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40169         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40170         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40171         * tests/unictype/test-pr_id_continue.c: Regenerated.
40172         * tests/unictype/test-pr_id_start.c: Regenerated.
40173         * tests/unictype/test-pr_ideographic.c: Regenerated.
40174         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40175         * tests/unictype/test-pr_lowercase.c: Regenerated.
40176         * tests/unictype/test-pr_math.c: Regenerated.
40177         * tests/unictype/test-pr_numeric.c: Regenerated.
40178         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40179         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40180         Regenerated.
40181         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40182         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40183         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40184         * tests/unictype/test-pr_other_math.c: Regenerated.
40185         * tests/unictype/test-pr_punctuation.c: Regenerated.
40186         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40187         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40188         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40189         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40190         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40191         * tests/unictype/test-pr_uppercase.c: Regenerated.
40192         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40193         * tests/unictype/test-pr_xid_start.c: Regenerated.
40194         * tests/unictype/test-pr_zero_width.c: Regenerated.
40195
40196         Update to Unicode 5.1.0.
40197         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40198         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40199         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40200         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40201         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40202         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40203         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40204         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40205         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40206         (nonspacing_table_ind): Update.
40207         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40208
40209         Update to Unicode 5.1.0.
40210         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40211         code transform.
40212         * lib/uniname/uniname.c (unicode_character_name,
40213         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40214         * lib/uniname/uninames.h: Regenerated.
40215         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40216
40217 2009-02-07  Bruno Haible  <bruno@clisp.org>
40218
40219         Merge gen-ctype and gen-lbrk into a single program.
40220         * lib/gen-uni-tables.c: New file, incorporating
40221         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40222         Add directory prefixes to the names of the generated files.
40223         * lib/unictype/gen-ctype.c: Remove file.
40224         * lib/unilbrk/gen-lbrk.c: Remove file.
40225         * modules/gen-uni-tables: New file.
40226         * modules/unictype/gen-ctype: Remove file.
40227         * modules/unilbrk/gen-lbrk: Remove file.
40228
40229 2009-02-07  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40232
40233         New module 'unistr/u32-strcoll'.
40234         * modules/unistr/u32-strcoll: New file.
40235         * lib/unistr/u32-strcoll.c: New file.
40236
40237         New module 'unistr/u16-strcoll'.
40238         * modules/unistr/u16-strcoll: New file.
40239         * lib/unistr/u16-strcoll.c: New file.
40240
40241         New module 'unistr/u8-strcoll'.
40242         * modules/unistr/u8-strcoll: New file.
40243         * lib/unistr/u8-strcoll.c: New file.
40244         * lib/unistr/u-strcoll.h: New file.
40245
40246 2009-02-07  Bruno Haible  <bruno@clisp.org>
40247
40248         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40249         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40250         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40251         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40252         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40253         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40254
40255 2009-02-07  Bruno Haible  <bruno@clisp.org>
40256
40257         Make 64-bit clean.
40258         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40259         output_combclass, output_bidi_category, output_decimal_digit,
40260         output_digit, output_numeric, output_mirror, output_scripts,
40261         output_ident_category): Use proper width specifier in format strings.
40262
40263 2009-02-07  Bruno Haible  <bruno@clisp.org>
40264
40265         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40266         failure behaviour.
40267
40268 2009-02-07  Jim Meyering  <meyering@redhat.com>
40269
40270         regex: avoid compilation failure with upcoming gcc-4.4
40271         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40272         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40273         "... error: integer overflow in preprocessor expression".
40274
40275 2009-02-05  Ben Pfaff  <blp@gnu.org>
40276
40277         Fix link errors on Windows when close module is used.
40278         * modules/close: Add $(LIB_CLOSE) to Link section.
40279         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40280         $(LIB_CLOSE) on Windows.
40281
40282 2009-02-05  Jim Meyering  <meyering@redhat.com>
40283
40284         still avoid unused-parameter warnings, but do it cleanly
40285         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40286         (get_fs_usage): Cast to void instead.
40287         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40288         (dev_from_mount_options, read_file_system_list): Cast to void.
40289         Prompted by Bruno Haible.
40290
40291 2009-02-04  Jim Meyering  <meyering@redhat.com>
40292
40293         fsusage.c: correct copyright year
40294         * lib/fsusage.c: Reflect year in which the change is pushed into
40295
40296         avoid misc. warnings
40297         * lib/fsusage.c (UNUSED_PARAM): Define.
40298         (get_fs_usage): Mark parameter "disk" as unused.
40299         * lib/getugroups.c (getgrent): Use "void" in prototype.
40300         * lib/mountlist.c: Mark unused parameters.
40301         (read_file_system_list): Declare a local with "const".
40302         * lib/nanosleep.c (getnow): Declare static.
40303         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40304
40305         dirfd: set errno upon failure
40306         * lib/dirfd.c: Include <errno.h>.
40307         Set errno to ENOTSUP when returning -1.
40308         * modules/dirfd (Depends-on): Add errno.
40309         Suggested by John Kodis <kodis@comcast.net>.
40310
40311 2009-02-01  Bruno Haible  <bruno@clisp.org>
40312
40313         Don't assume sizeof (long) >= sizeof (void *).
40314         * lib/memcmp.c: Include stdint.h.
40315         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40316         srcp2 to 'const byte *'.
40317         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40318         types to uintptr_t.
40319         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40320         * modules/memcmp (Depends-on): Add stdint.
40321         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40322
40323 2009-01-30  Eric Blake  <ebb9@byu.net>
40324
40325         fix more require-before-expand issues
40326         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40327         expand, AC_PROG_AWK.
40328         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40329
40330 2009-01-28  Eric Blake  <ebb9@byu.net>
40331
40332         version-etc: use consistent URL formatting
40333         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40334         Improve formatting.  Use fputs for string without %.
40335
40336 2009-01-28  Jim Meyering  <meyering@redhat.com>
40337
40338         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40339         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40340         "underquoted definition of NAME" from autoconf-2.59.
40341
40342 2009-01-28  Bruno Haible  <bruno@clisp.org>
40343
40344         * doc/gnulib.texi: Add "Obsolete modules" to index.
40345
40346 2009-01-28  Jim Meyering  <meyering@redhat.com>
40347
40348         useless-if-before-free: recognize more variants
40349         * build-aux/useless-if-before-free: Also recognize e.g.,
40350         if (NULL != p) free (p);
40351
40352 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40353
40354         test-getaddrinfo: skip (don't fail) this test when there's no network
40355         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40356         on the presumption that it means you lack network access.
40357
40358 2009-01-26  Jim Meyering  <meyering@redhat.com>
40359
40360         fflush: avoid warnings on modern systems
40361         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40362         pos and result, into scopes where they're used.
40363
40364 2009-01-26  Eric Blake  <ebb9@byu.net>
40365
40366         Silence warning reintroduced by recent extensions patch.
40367         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40368         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40369         autoconf.
40370
40371         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40372         * m4/00gnulib.m4: New file.
40373         * gnulib-tool (func_get_filelist): Always use it.
40374         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40375         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40376
40377 2009-01-25  Bruno Haible  <bruno@clisp.org>
40378
40379         Make test-quotearg work on MacOS X and AIX.
40380         * tests/test-quotearg.sh: New file.
40381         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40382         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40383         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40384         include <libintl.h>.
40385         (fake_locale): Remove variable.
40386         (gettext, dgettext, dcgettext): Remove functions.
40387         (main): Instead of setting a fake locale, set a real locale. Call
40388         textdomain and bindtextdomain.
40389         * modules/quotearg-tests (Files): Add the new files.
40390         (Depends-on): Add gettext, setenv, unsetenv.
40391         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40392         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40393         Augment TESTS_ENVIRONMENT.
40394
40395 2009-01-25  Bruno Haible  <bruno@clisp.org>
40396
40397         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40398         fr_FR.ISO8859-1 locale on MacOS X.
40399         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40400         ja_JP.eucJP locale on MacOS X.
40401         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40402         zh_CN.GB18030 locale on MacOS X.
40403
40404 2009-01-25  Bruno Haible  <bruno@clisp.org>
40405
40406         Avoid link errors on MacOS X 10.3.
40407         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40408         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40409
40410 2009-01-25  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40413         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40414         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40415         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40416         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40417         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40418         posix_spawnattr_init, posix_spawnattr_setsigmask,
40419         posix_spawnattr_setflags, posix_spawnattr_destroy.
40420
40421         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40422         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40423         * modules/execute (Files): Remove m4/posix_spawn.m4.
40424         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40425         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40426         posix_spawnattr_init, posix_spawnattr_setsigmask,
40427         posix_spawnattr_setflags, posix_spawnattr_destroy.
40428
40429 2009-01-25  Bruno Haible  <bruno@clisp.org>
40430
40431         * lib/glthread/threadlib.c: Include <stdlib.h>.
40432
40433 2009-01-25  Bruno Haible  <bruno@clisp.org>
40434
40435         * lib/glthread/threadlib.c (dummy): New declaration.
40436
40437 2009-01-25  Bruno Haible  <bruno@clisp.org>
40438
40439         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40440         multibyte characters also for the GB18030 encoding. Don't crash when
40441         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40442
40443 2009-01-25  Bruno Haible  <bruno@clisp.org>
40444
40445         Avoid redefining 'struct random_data' on OSF/1 5.1.
40446         * lib/stdlib.in.h: Include <random.h> if it exists.
40447         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40448         HAVE_RANDOM_H. Include <random.h> when testing whether
40449         'struct random_data' exists.
40450         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40451
40452 2009-01-25  Bruno Haible  <bruno@clisp.org>
40453
40454         Don't install charset.alias on MacOS X >= 10.3.
40455         * lib/localcharset.c (DARWIN7): New macro.
40456         (get_charset_aliases): Hardcode the result for Darwin7.
40457         * modules/localcharset (install-exec-local): Don't install
40458         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40459
40460 2009-01-25  Bruno Haible  <bruno@clisp.org>
40461
40462         Don't install charset.alias on mingw and Cygwin.
40463         * modules/localcharset (install-exec-local): Don't install
40464         charset.alias on mingw and Cygwin, if the file does not yet exist.
40465         The result for these platforms is hardcoded in localcharset.c.
40466
40467 2009-01-25  Bruno Haible  <bruno@clisp.org>
40468
40469         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40471         before requiring AC_USE_SYSTEM_EXTENSIONS.
40472
40473 2009-01-25  Jim Meyering  <meyering@redhat.com>
40474
40475         c-strtod: avoid warnings
40476         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40477         "assignment discards qualifiers from pointer target type" warnings.
40478
40479 2009-01-24  Bruno Haible  <bruno@clisp.org>
40480
40481         Add support for non-UTF-8 locales on MacOS X.
40482         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40483         canonical encodings. For Darwin 7 and newer, don't map traditional
40484         encodings to UTF-8.
40485         Reported by Vincent Lefevre <vincent@vinc17.org>
40486         at <http://savannah.gnu.org/bugs/?25235>.
40487
40488 2009-01-24  Bruno Haible  <bruno@clisp.org>
40489
40490         * doc/gnulib.texi (Obsolete modules): New section.
40491         Reported by Mike Frysinger <vapier@gentoo.org>.
40492
40493 2009-01-24  Bruno Haible  <bruno@clisp.org>
40494
40495         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40496         (%.dvi): New rule.
40497
40498 2009-01-24  Bruno Haible  <bruno@clisp.org>
40499
40500         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40501         Reported by Eric Blake.
40502
40503 2009-01-24  Bruno Haible  <bruno@clisp.org>
40504
40505         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40506         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40507         Reported by Gary V. Vaughan <gary@gnu.org>.
40508
40509 2009-01-24  Bruno Haible  <bruno@clisp.org>
40510
40511         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40512
40513 2009-01-23  Bruno Haible  <bruno@clisp.org>
40514
40515         Make c-strtod, c-strtold usable in libraries.
40516         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40517         (C_STRTOD): Call strdup instead of xstrdup.
40518         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40519         * modules/c-strtold (Depends-on): Likewise.
40520         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40521         * NEWS: Mention the change.
40522         Reported by Michael Gold <mgold@ncf.ca>.
40523
40524 2009-01-23  Jim Meyering  <meyering@redhat.com>
40525
40526         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40527         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40528         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40529
40530 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40531
40532         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40533         GNU CoreUtils.
40534         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40535         * modules/version-etc (Description): Update.
40536
40537 2009-01-22  Bruno Haible  <bruno@clisp.org>
40538
40539         Cache the C locale object.
40540         * lib/c-strtod.c (c_locale_cache): New variable.
40541         (c_locale): New function.
40542         (C_STRTOD): Use it, and don't call freelocale.
40543         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40544         Suggested by Paolo Bonzini.
40545
40546 2009-01-21  Bruno Haible  <bruno@clisp.org>
40547
40548         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40549         conditions other than overflow.
40550
40551 2009-01-21  Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/c-strtod.c: Include errno.h.
40554         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40555         value from STRTOD_L and STRTOD.
40556
40557 2009-01-21  Bruno Haible  <bruno@clisp.org>
40558         and Jim Meyering  <meyering@redhat.com>
40559
40560         nanosleep: skip configure test (fail it) for apple universal builds
40561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40562         universal builds, assume that nanosleep does not work.
40563         * modules/nanosleep (Depends-on): Add multiarch.
40564
40565         mktime: skip configure test (fail it) for apple universal builds
40566         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40567         universal builds, assume that mktime does not work.
40568         * modules/mktime (Depends-on): Add multiarch.
40569
40570 2009-01-21  Eric Blake  <ebb9@byu.net>
40571
40572         multiarch: avoid expand-before-require warning
40573         * modules/multiarch (configure.ac): Require, rather than expand,
40574         gl_MULTIARCH.
40575         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40576         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40577         enforce that all clients require it.  Partial reversion of
40578         2008-12-29 patch.
40579
40580         error: avoid expand-before-require warning
40581         * modules/errno (configure.ac): Require, rather than expand,
40582         gl_HEADER_ERRNO_H.
40583         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40584         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40585         enforce that all clients require it.
40586
40587         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40588         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40589         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40590         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40591
40592 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40593
40594         Revert:
40595         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40596
40597         regex: do not depend on obsolete modules.
40598         * modules/regex: Remove memcmp and memmove.
40599
40600 2009-01-20  Bruno Haible  <bruno@clisp.org>
40601
40602         Make the 'link' module link on Windows NT 4.
40603         * lib/link.c (_WIN32_WINNT): Don't define.
40604         (CreateHardLinkFuncType): New type.
40605         (CreateHardLinkFunc, initialized): New variables.
40606         (initialize): New function.
40607         (link): Invoke CreateHardLink indirectly through the function pointer.
40608
40609 2009-01-20  Bruno Haible  <bruno@clisp.org>
40610
40611         Fix compilation failure on mingw.
40612         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40613
40614 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40615
40616         * doc/c-strtod.texi: Mention a couple of restrictions.
40617
40618 2009-01-20  Jim Meyering  <meyering@redhat.com>
40619
40620         gettimeofday: move more declarations out of functions
40621         * lib/gettimeofday.c: Move extern declarations of tzset and
40622         gmtime out of containing functions.  Prompted by Bruno Haible.
40623
40624 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40625
40626         regex: do not depend on obsolete modules.
40627         * modules/regex: Remove memcmp and memmove.
40628
40629 2009-01-19  Bruno Haible  <bruno@clisp.org>
40630
40631         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40632         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40633         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40634         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40635         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40636
40637 2009-01-19  Bruno Haible  <bruno@clisp.org>
40638
40639         * tests/test-link.c: Include <errno.h>.
40640         (main): Exit with code 77 when a hard link cannot be created due to
40641         the file system.
40642         * tests/test-link.sh: Skip test when a hard link cannot be created due
40643         to the file system.
40644         Suggested by Eric Blake.
40645
40646 2009-01-19  Martin Lambers  <marlam@marlam.de>
40647
40648         * modules/link-tests: New file.
40649         * tests/test-link.sh: New file.
40650         * tests/test-link.c: New file.
40651
40652 2009-01-19  Eric Blake  <ebb9@byu.net>
40653
40654         doc: mention another function added in cygwin 1.7.0
40655         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40656         Another new function in cygwin 1.7.
40657
40658 2009-01-19  Bruno Haible  <bruno@clisp.org>
40659
40660         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40661         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40662         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40663         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40664         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40665         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40666         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40667         * m4/md4.m4 (gl_MD4): Likewise.
40668         * m4/md5.m4 (gl_MD5): Likewise.
40669         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40670         * m4/sha1.m4 (gl_SHA1): Likewise.
40671         * m4/sha256.m4 (gl_SHA256): Likewise.
40672         * m4/sha512.m4 (gl_SHA512): Likewise.
40673
40674 2009-01-19  Bruno Haible  <bruno@clisp.org>
40675
40676         * modules/uniname/uniname-tests (Depends-on): Add progname.
40677         * tests/uniname/test-uninames.c: Include progname.h.
40678         (main): Call set_program_name.
40679
40680         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40681         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40682         (main): Call set_program_name.
40683
40684         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40685         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40686         (main): Call set_program_name.
40687
40688         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40689         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40690         (main): Call set_program_name.
40691
40692         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40693         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40694         (main): Call set_program_name.
40695
40696         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40697         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40698         (main): Call set_program_name.
40699
40700         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40701         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40702         (main): Call set_program_name.
40703
40704         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40705         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40706         (main): Call set_program_name.
40707
40708         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40709         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40710         (main): Call set_program_name.
40711
40712 2009-01-19  Eric Blake  <ebb9@byu.net>
40713
40714         test-unistd: test previous patch
40715         * tests/test-unistd.c: Test *_FILENO macros.
40716
40717         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40718         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40719         Guarantee a definition.
40720         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40721         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40722         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40723         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40724         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40725         Likewise.
40726         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40727         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40728         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40729         Likewise.
40730         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40731         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40732         (STDERR_FILENO): Likewise.
40733         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40734         (STDERR_FILENO): Likewise.
40735         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40736         (STDERR_FILENO): Likewise.
40737         Reported by Elbert Pol.
40738
40739 2009-01-19  Eric Blake  <ebb9@byu.net>
40740
40741         doc: mention more functions added in cygwin 1.7.0
40742         * doc/posix-functions/abort.texi (abort): Update wording related
40743         to cygwin.
40744         * doc/posix-functions/daylight.texi (daylight): Likewise.
40745         * doc/posix-functions/optarg.texi (optarg): Likewise.
40746         * doc/posix-functions/optarg.texi (opterr): Likewise.
40747         * doc/posix-functions/optarg.texi (optind): Likewise.
40748         * doc/posix-functions/optarg.texi (optopt): Likewise.
40749         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40750         worked in 1.5.x, and was withdrawn in 1.7.
40751         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40752         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40753         cygwin versions.
40754         * doc/posix-functions/perror.texi (perror): Likewise.
40755         * doc/posix-functions/printf.texi (printf): Likewise.
40756         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40757         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40758         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40759         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40760         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40761         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40762         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40763         Likewise.
40764         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40765         Likewise.
40766         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40767         this function.
40768         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40769         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40770         Likewise.
40771         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40772         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40773         * doc/posix-functions/confstr.texi (confstr): Likewise.
40774         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40775         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40776         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40777         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40778         * doc/posix-functions/fputws.texi (fputws): Likewise.
40779         * doc/posix-functions/fwide.texi (fwide): Likewise.
40780         * doc/posix-functions/getwc.texi (getwc): Likewise.
40781         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40782         * doc/posix-functions/putwc.texi (putwc): Likewise.
40783         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40784         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40785         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40786         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40787         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40788         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40789         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40790         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40791         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40792         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40793         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40794
40795 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40796
40797         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40798         * lib/ioctl.c: Include <sys/ioctl.h>.
40799
40800 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40801
40802         * modules/getdate-tests (Depends-on): Add progname.
40803         * tests/test-getdate.c: Use progname module, to avoid link errors
40804         on non-glibc systems.
40805
40806 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40807
40808         * modules/filenamecat-tests (Depends-on): Add progname.
40809         * modules/fstrcmp-tests (Depends-on): Likewise.
40810
40811         * tests/test-filenamecat.c: Use progname module, to avoid link
40812         errors on non-glibc systems.
40813         * tests/test-fstrcmp.c: Likewise.
40814
40815 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40816
40817         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40818         * lib/gettimeofday.c: Move extern declaration out of function.
40819
40820 2009-01-18  Bruno Haible  <bruno@clisp.org>
40821
40822         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40823         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40824         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40825
40826 2009-01-18  Bruno Haible  <bruno@clisp.org>
40827
40828         * lib/strftime.c (MEMPCPY): Remove unused macro.
40829         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40830
40831 2009-01-18  Martin Lambers  <marlam@marlam.de>
40832
40833         New module 'link'.
40834         * lib/unistd.in.h (link): New declaration.
40835         * lib/link.c: New file.
40836         * m4/link.m4: New file.
40837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40838         HAVE_LINK.
40839         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40840         * modules/link: New file.
40841         * doc/posix-functions/link.texi: Mention the new module.
40842
40843 2009-01-18  Bruno Haible  <bruno@clisp.org>
40844
40845         * tests/test-avltree_list.c (main): Call set_program_name.
40846         * tests/test-avltree_oset.c (main): Likewise.
40847         * tests/test-obstack-printf.c: Include progname.h.
40848         (main): Call set_program_name.
40849         * tests/test-quotearg.c: Include progname.h.
40850         (main): Call set_program_name.
40851         * tests/test-xmemdup0.c: Include progname.h.
40852         (main): Call set_program_name.
40853
40854 2009-01-18  Bruno Haible  <bruno@clisp.org>
40855
40856         New module 'alphasort'.
40857         * lib/dirent.in.h (alphasort): New declaration.
40858         * lib/alphasort.c: New file, from glibc with modifications.
40859         * m4/alphasort.m4: New file.
40860         * modules/alphasort: New file.
40861         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40862         HAVE_ALPHASORT.
40863         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40864         HAVE_ALPHASORT.
40865         * doc/posix-functions/alphasort.texi: Mention the new module and the
40866         portability problems.
40867
40868 2009-01-18  Bruno Haible  <bruno@clisp.org>
40869
40870         New module 'scandir'.
40871         * lib/dirent.in.h (scandir): New declaration.
40872         * lib/scandir.c: New file, from glibc with modifications.
40873         * m4/scandir.m4: New file.
40874         * modules/scandir: New file.
40875         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40876         HAVE_SCANDIR.
40877         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40878         HAVE_SCANDIR.
40879         * doc/posix-functions/scandir.texi: Mention the new module and the
40880         portability problems.
40881
40882 2009-01-17  Bruno Haible  <bruno@clisp.org>
40883
40884         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40885         Update documentation.
40886         (func_remove_suffix): Escape all dots in the suffix. Update
40887         documentation.
40888         (func_filter_filelist): Update documentation.
40889         Reported by Ralf Wildenhues.
40890
40891 2009-01-17  Bruno Haible  <bruno@clisp.org>
40892
40893         * modules/dprintf-posix-tests: New file.
40894         * tests/test-dprintf-posix.sh: New file.
40895         * tests/test-dprintf-posix.c: New file.
40896
40897         New modules 'dprintf', 'dprintf-posix'.
40898         * lib/stdio.in.h (dprintf): New declaration.
40899         * lib/dprintf.c: New file.
40900         * m4/dprintf.m4: New file.
40901         * m4/dprintf-posix.m4: New file.
40902         * modules/dprintf: New file.
40903         * modules/dprintf-posix: New file.
40904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40905         HAVE_DPRINTF, REPLACE_DPRINTF.
40906         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40907         HAVE_DPRINTF, REPLACE_DPRINTF.
40908         * doc/posix-functions/dprintf.texi: Mention the new modules.
40909
40910 2009-01-17  Bruno Haible  <bruno@clisp.org>
40911
40912         * modules/vdprintf-posix-tests: New file.
40913         * tests/test-vdprintf-posix.sh: New file.
40914         * tests/test-vdprintf-posix.c: New file.
40915
40916         New modules 'vdprintf', 'vdprintf-posix'.
40917         * lib/stdio.in.h (vdprintf): New declaration.
40918         * lib/vdprintf.c: New file.
40919         * m4/vdprintf.m4: New file.
40920         * m4/vdprintf-posix.m4: New file.
40921         * modules/vdprintf: New file.
40922         * modules/vdprintf-posix: New file.
40923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40924         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40925         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40926         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40927         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40928
40929 2009-01-17  Bruno Haible  <bruno@clisp.org>
40930
40931         Fix replacement of fopen on mingw.
40932         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40933         mingw.
40934
40935 2009-01-17  Bruno Haible  <bruno@clisp.org>
40936
40937         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40938         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40939
40940 2009-01-17  Bruno Haible  <bruno@clisp.org>
40941
40942         Avoid test-fflush2.sh failure on mingw.
40943         * tests/test-fflush2.c: Include binary-io.h.
40944         (main): Put standard input into binary mode.
40945         * modules/fflush-tests (Depends-on): Add binary-io.
40946
40947 2009-01-17  Bruno Haible  <bruno@clisp.org>
40948
40949         * lib/wchar.in.h: In another particular situation, include only the
40950         system's <wchar.h> file.
40951         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40952         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40953         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40954
40955 2009-01-17  Bruno Haible  <bruno@clisp.org>
40956
40957         Support for stripping executables in --enable-relocatable.
40958         * build-aux/install-reloc: Expect one more argument, or an environment
40959         variable RELOC_STRIP_PROG. If set, strip the destination program and
40960         its wrapper.
40961         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40962         RELOC_STRIP_PROG.
40963         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40964         to set RELOCATABLE_STRIP.
40965         * NEWS: Mention the new Makefile requirement.
40966
40967 2009-01-17  Bruno Haible  <bruno@clisp.org>
40968
40969         * build-aux/install-reloc: Remove debugging information left over by
40970         C compiler on MacOS X.
40971
40972 2009-01-17  Bruno Haible  <bruno@clisp.org>
40973
40974         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40975         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40976         _NSGetExecutablePath.
40977
40978 2009-01-16  Jim Meyering  <meyering@redhat.com>
40979
40980         strerror: avoid warnings about discarding "const"
40981         * lib/strerror.c (rpl_strerror): Instead of returning a const
40982         string from each and every "case", use a variable, and add a single
40983         cast after the switch.
40984
40985 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40986
40987         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40988
40989 2009-01-16  Bruno Haible  <bruno@clisp.org>
40990
40991         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40992         array initializer syntax that also works in C++ mode.
40993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40994
40995 2009-01-16  Jim Meyering  <meyering@redhat.com>
40996
40997         poll: suppress a warning
40998         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40999         to ignore "...unsigned expression < 0 is always false" warnings.
41000
41001 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41002
41003         poll: remove declarations of unused variables
41004         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41005         sockbuf and optlen.
41006
41007 2009-01-15  Bruno Haible  <bruno@clisp.org>
41008
41009         Make fflush-after-ungetc POSIX compliant on BSD systems.
41010         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41011         (clear_ungetc_buffer): Implement also for other systems.
41012         (rpl_fflush): On glibc systems, invoke
41013         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41014         clear_ungetc_buffer after fetching the stream's position, not before.
41015
41016 2009-01-15  Bruno Haible  <bruno@clisp.org>
41017
41018         Make fflush-after-ungetc POSIX compliant on glibc systems.
41019         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41020         after ungetc.
41021         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41022         (rpl_fflush): On glibc systems, simply call the system's fflush
41023         function after clearing the ungetc buffer.
41024         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41025         Instead, lseek only to the end of file, then use the system's fseeko
41026         for the rest. On glibc systems, reset the EOF indicator bit.
41027
41028 2009-01-15  Jim Meyering  <meyering@redhat.com>
41029
41030         openmp.m4: revert quote-adding change, for portability to older autoconf
41031         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41032         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41033         Simon Josefsson noticed the problem when using autoconf-2.61.
41034
41035 2009-01-15  Bruno Haible  <bruno@clisp.org>
41036
41037         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41038         * tests/test-fflush2.c (ASSERT): Always fail.
41039         (main): Add two tests for fflush() after ungetc(), taking into account
41040         the Austin Group's clarification.
41041         Suggested by Eric Blake.
41042
41043 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41044
41045         mktime.m4: remove K&R-style function prototypes
41046         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41047         for the Sun C++ compiler.
41048
41049 2009-01-14  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41052         while including <wchar.h>.
41053         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41054         the system's <wchar.h> file.
41055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41056
41057 2009-01-14  Bruno Haible  <bruno@clisp.org>
41058
41059         * m4/csharp.m4: Don't mention gettext on the serial number line.
41060         * m4/csharpexec.m4: Likewise.
41061         * m4/eaccess.m4: Likewise.
41062         * m4/javaexec.m4: Likewise.
41063         * m4/sig_atomic_t.m4: Likewise.
41064         * m4/tmpdir.m4: Likewise.
41065         * m4/intldir.m4: Bump gettext version.
41066         * m4/lib-ld.m4: Likewise.
41067
41068 2009-01-14  Bruno Haible  <bruno@clisp.org>
41069
41070         * lib/progname.c (set_program_name): Add more comments.
41071         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41072
41073 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41074
41075         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41076         were sys/stat.h does not define it.
41077
41078 2009-01-14  Jim Meyering  <meyering@redhat.com>
41079
41080         many *.m4 files: improve m4 quoting
41081         99% of this change was performed by running the following commands:
41082         git ls-files | grep '\.m4$' | xargs perl -pi \
41083           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41084           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41085           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41086           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41087         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41088         The remainder were to add Copyright dates, increment serial numbers,
41089         undo some changes in comments, exclude m4/intl.m4, and add quotes
41090         around the "1" in ",1" where the unusual spacing prohibited the
41091         above regexps from doing the job.  For more details, see
41092         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41093         * m4/acl.m4: Modified.
41094         * m4/afs.m4: Likewise.
41095         * m4/alloca.m4: Likewise.
41096         * m4/argp.m4: Likewise.
41097         * m4/argz.m4: Likewise.
41098         * m4/atexit.m4: Likewise.
41099         * m4/bison-i18n.m4: Likewise.
41100         * m4/bison.m4: Likewise.
41101         * m4/byteswap.m4: Likewise.
41102         * m4/c-stack.m4: Likewise.
41103         * m4/c-strtod.m4: Likewise.
41104         * m4/calloc.m4: Likewise.
41105         * m4/canonicalize-lgpl.m4: Likewise.
41106         * m4/chown.m4: Likewise.
41107         * m4/clock_time.m4: Likewise.
41108         * m4/codeset.m4: Likewise.
41109         * m4/copy-file.m4: Likewise.
41110         * m4/csharp.m4: Likewise.
41111         * m4/csharpcomp.m4: Likewise.
41112         * m4/csharpexec.m4: Likewise.
41113         * m4/d-ino.m4: Likewise.
41114         * m4/d-type.m4: Likewise.
41115         * m4/dirfd.m4: Likewise.
41116         * m4/double-slash-root.m4: Likewise.
41117         * m4/eaccess.m4: Likewise.
41118         * m4/eealloc.m4: Likewise.
41119         * m4/environ.m4: Likewise.
41120         * m4/errno_h.m4: Likewise.
41121         * m4/euidaccess.m4: Likewise.
41122         * m4/execute.m4: Likewise.
41123         * m4/fatal-signal.m4: Likewise.
41124         * m4/fchdir.m4: Likewise.
41125         * m4/fcntl_h.m4: Likewise.
41126         * m4/fileblocks.m4: Likewise.
41127         * m4/filenamecat.m4: Likewise.
41128         * m4/findprog.m4: Likewise.
41129         * m4/flexmember.m4: Likewise.
41130         * m4/fnmatch.m4: Likewise.
41131         * m4/fopen.m4: Likewise.
41132         * m4/fpending.m4: Likewise.
41133         * m4/fprintf-posix.m4: Likewise.
41134         * m4/free.m4: Likewise.
41135         * m4/frexp.m4: Likewise.
41136         * m4/frexpl.m4: Likewise.
41137         * m4/fsusage.m4: Likewise.
41138         * m4/ftruncate.m4: Likewise.
41139         * m4/gc-camellia.m4: Likewise.
41140         * m4/gc-random.m4: Likewise.
41141         * m4/gc.m4: Likewise.
41142         * m4/getaddrinfo.m4: Likewise.
41143         * m4/getcwd-abort-bug.m4: Likewise.
41144         * m4/getcwd-path-max.m4: Likewise.
41145         * m4/getdate.m4: Likewise.
41146         * m4/getdomainname.m4: Likewise.
41147         * m4/getgroups.m4: Likewise.
41148         * m4/gethostname.m4: Likewise.
41149         * m4/gethrxtime.m4: Likewise.
41150         * m4/getline.m4: Likewise.
41151         * m4/getloadavg.m4: Likewise.
41152         * m4/getndelim2.m4: Likewise.
41153         * m4/getpass.m4: Likewise.
41154         * m4/gettext.m4: Likewise.
41155         * m4/gettime.m4: Likewise.
41156         * m4/gettimeofday.m4: Likewise.
41157         * m4/gnulib-common.m4: Likewise.
41158         * m4/group-member.m4: Likewise.
41159         * m4/host-os.m4: Likewise.
41160         * m4/iconv.m4: Likewise.
41161         * m4/iconv_open.m4: Likewise.
41162         * m4/inet_ntop.m4: Likewise.
41163         * m4/inet_pton.m4: Likewise.
41164         * m4/inline.m4: Likewise.
41165         * m4/intldir.m4: Likewise.
41166         * m4/intlmacosx.m4: Likewise.
41167         * m4/intmax.m4: Likewise.
41168         * m4/intmax_t.m4: Likewise.
41169         * m4/inttypes.m4: Likewise.
41170         * m4/inttypes_h.m4: Likewise.
41171         * m4/inttypes-pri.m4: Likewise.
41172         * m4/isapipe.m4: Likewise.
41173         * m4/isnand.m4: Likewise.
41174         * m4/isnanf.m4: Likewise.
41175         * m4/isnanl.m4: Likewise.
41176         * m4/javacomp.m4: Likewise.
41177         * m4/javaexec.m4: Likewise.
41178         * m4/jm-winsz1.m4: Likewise.
41179         * m4/jm-winsz2.m4: Likewise.
41180         * m4/lchown.m4: Likewise.
41181         * m4/lcmessage.m4: Likewise.
41182         * m4/ldexpl.m4: Likewise.
41183         * m4/lib-ld.m4: Likewise.
41184         * m4/lib-link.m4: Likewise.
41185         * m4/libsigsegv.m4: Likewise.
41186         * m4/link-follow.m4: Likewise.
41187         * m4/localcharset.m4: Likewise.
41188         * m4/locale-fr.m4: Likewise.
41189         * m4/locale-ja.m4: Likewise.
41190         * m4/locale-tr.m4: Likewise.
41191         * m4/locale-zh.m4: Likewise.
41192         * m4/lock.m4: Likewise.
41193         * m4/longlong.m4: Likewise.
41194         * m4/ls-mntd-fs.m4: Likewise.
41195         * m4/lstat.m4: Likewise.
41196         * m4/malloc.m4: Likewise.
41197         * m4/mathl.m4: Likewise.
41198         * m4/mbrtowc.m4: Likewise.
41199         * m4/mbstate_t.m4: Likewise.
41200         * m4/mbswidth.m4: Likewise.
41201         * m4/memchr.m4: Likewise.
41202         * m4/memcmp.m4: Likewise.
41203         * m4/memcpy.m4: Likewise.
41204         * m4/memmem.m4: Likewise.
41205         * m4/memmove.m4: Likewise.
41206         * m4/mempcpy.m4: Likewise.
41207         * m4/memrchr.m4: Likewise.
41208         * m4/memset.m4: Likewise.
41209         * m4/minmax.m4: Likewise.
41210         * m4/mkdir-slash.m4: Likewise.
41211         * m4/mkdtemp.m4: Likewise.
41212         * m4/mktime.m4: Likewise.
41213         * m4/mmap-anon.m4: Likewise.
41214         * m4/mountlist.m4: Likewise.
41215         * m4/nanosleep.m4: Likewise.
41216         * m4/nls.m4: Likewise.
41217         * m4/nocrash.m4: Likewise.
41218         * m4/open.m4: Likewise.
41219         * m4/openat.m4: Likewise.
41220         * m4/openmp.m4: Likewise.
41221         * m4/pathmax.m4: Likewise.
41222         * m4/perl.m4: Likewise.
41223         * m4/physmem.m4: Likewise.
41224         * m4/pipe.m4: Likewise.
41225         * m4/po.m4: Likewise.
41226         * m4/poll.m4: Likewise.
41227         * m4/posixtm.m4: Likewise.
41228         * m4/posixver.m4: Likewise.
41229         * m4/printf-frexp.m4: Likewise.
41230         * m4/printf-frexpl.m4: Likewise.
41231         * m4/printf-posix.m4: Likewise.
41232         * m4/printf-posix-rpl.m4: Likewise.
41233         * m4/printf.m4: Likewise.
41234         * m4/progtest.m4: Likewise.
41235         * m4/putenv.m4: Likewise.
41236         * m4/readline.m4: Likewise.
41237         * m4/readlink.m4: Likewise.
41238         * m4/readutmp.m4: Likewise.
41239         * m4/realloc.m4: Likewise.
41240         * m4/regex.m4: Likewise.
41241         * m4/relocatable.m4: Likewise.
41242         * m4/relocatable-lib.m4: Likewise.
41243         * m4/rename-dest-slash.m4: Likewise.
41244         * m4/rename.m4: Likewise.
41245         * m4/rmdir-errno.m4: Likewise.
41246         * m4/rmdir.m4: Likewise.
41247         * m4/roundf.m4: Likewise.
41248         * m4/roundl.m4: Likewise.
41249         * m4/rpmatch.m4: Likewise.
41250         * m4/save-cwd.m4: Likewise.
41251         * m4/selinux-selinux-h.m4: Likewise.
41252         * m4/setenv.m4: Likewise.
41253         * m4/settime.m4: Likewise.
41254         * m4/sig2str.m4: Likewise.
41255         * m4/sig_atomic_t.m4: Likewise.
41256         * m4/signalblocking.m4: Likewise.
41257         * m4/signbit.m4: Likewise.
41258         * m4/sigpipe.m4: Likewise.
41259         * m4/sockets.m4: Likewise.
41260         * m4/sockpfaf.m4: Likewise.
41261         * m4/st_dm_mode.m4: Likewise.
41262         * m4/stat-time.m4: Likewise.
41263         * m4/stdbool.m4: Likewise.
41264         * m4/stdint.m4: Likewise.
41265         * m4/stdint_h.m4: Likewise.
41266         * m4/stpcpy.m4: Likewise.
41267         * m4/stpncpy.m4: Likewise.
41268         * m4/strcase.m4: Likewise.
41269         * m4/strchrnul.m4: Likewise.
41270         * m4/strcspn.m4: Likewise.
41271         * m4/strdup.m4: Likewise.
41272         * m4/strftime.m4: Likewise.
41273         * m4/strndup.m4: Likewise.
41274         * m4/strnlen.m4: Likewise.
41275         * m4/strpbrk.m4: Likewise.
41276         * m4/strptime.m4: Likewise.
41277         * m4/strsep.m4: Likewise.
41278         * m4/strtod.m4: Likewise.
41279         * m4/strtoimax.m4: Likewise.
41280         * m4/strtok_r.m4: Likewise.
41281         * m4/strtol.m4: Likewise.
41282         * m4/strtoll.m4: Likewise.
41283         * m4/strtoul.m4: Likewise.
41284         * m4/strtoull.m4: Likewise.
41285         * m4/strtoumax.m4: Likewise.
41286         * m4/strverscmp.m4: Likewise.
41287         * m4/threadlib.m4: Likewise.
41288         * m4/timegm.m4: Likewise.
41289         * m4/tm_gmtoff.m4: Likewise.
41290         * m4/tmpdir.m4: Likewise.
41291         * m4/tmpfile.m4: Likewise.
41292         * m4/tzset.m4: Likewise.
41293         * m4/uintmax_t.m4: Likewise.
41294         * m4/unlinkdir.m4: Likewise.
41295         * m4/unlocked-io.m4: Likewise.
41296         * m4/uptime.m4: Likewise.
41297         * m4/userspec.m4: Likewise.
41298         * m4/utimbuf.m4: Likewise.
41299         * m4/utime.m4: Likewise.
41300         * m4/utimes-null.m4: Likewise.
41301         * m4/utimes.m4: Likewise.
41302         * m4/vararrays.m4: Likewise.
41303         * m4/vasnprintf.m4: Likewise.
41304         * m4/vfprintf-posix.m4: Likewise.
41305         * m4/vprintf-posix.m4: Likewise.
41306         * m4/wait-process.m4: Likewise.
41307         * m4/wchar_t.m4: Likewise.
41308         * m4/wint_t.m4: Likewise.
41309         * m4/write-any-file.m4: Likewise.
41310         * m4/yield.m4: Likewise.
41311
41312 2009-01-13  Bruno Haible  <bruno@clisp.org>
41313
41314         Avoid test-copy-file.sh failures when ACL support insufficient.
41315         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41316         TESTS_ENVIRONMENT.
41317         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41318         Reported by Jim Meyering.
41319
41320 2009-01-13  Bruno Haible  <bruno@clisp.org>
41321
41322         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41323         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41324         * modules/unistdio/u8-printf-parse (Files): Likewise.
41325         * modules/unistdio/u32-printf-parse (Files): Likewise.
41326         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41327
41328 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41329
41330         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41331         and m4/inttypes_h.m4 too.
41332
41333 2009-01-12  Eric Blake  <ebb9@byu.net>
41334
41335         tests: IRIX 6.2 cc can't compile -0.0 into .data
41336         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41337         rather than at compile-time.
41338         * tests/test-floorl.c (minus_zero): Likewise.
41339         * tests/test-frexpl.c (minus_zero): Likewise.
41340         * tests/test-isnan.c (minus_zerol): Likewise.
41341         * tests/test-isnanl.h (minus_zero): Likewise.
41342         * tests/test-ldexpl.c (minus_zero): Likewise.
41343         * tests/test-roundl.c (minus_zero): Likewise.
41344         * tests/test-signbit.c (minus_zerol): Likewise.
41345         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41346         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41347         * tests/test-truncl.c (minus_zero): Likewise.
41348         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41349         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41350         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41351
41352 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41353
41354         regex: fix glibc bug 9697
41355         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41356         handling.
41357
41358 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41359
41360         regex: fix glibc bug 697
41361         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41362         being NULL also if there are no backreferences.
41363
41364 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41365
41366         regex: merge glibc changes
41367         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41368         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41369         re_string_skip_chars, re_string_reconstruct): Likewise.
41370         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41371
41372 2009-01-07  Jim Meyering  <meyering@redhat.com>
41373
41374         poll: filter through cppi
41375         * lib/poll.c: Indent cpp directives to reflect nesting.
41376
41377 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41378
41379         poll: don't return uninitialized
41380         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41381
41382 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41383
41384         avoid compile failure on AIX 6.1
41385         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41386         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41387
41388 2009-01-04  Jim Meyering  <meyering@redhat.com>
41389
41390         remove duplicate inclusion of <stdio.h>
41391         * tests/test-fprintf-posix.c: Likewise.
41392         * tests/test-printf-posix.c: Likewise.
41393         * tests/test-snprintf-posix.c: Likewise.
41394         * tests/test-sprintf-posix.c: Likewise.
41395         * tests/test-vasprintf-posix.c: Likewise.
41396         * tests/test-vfprintf-posix.c: Likewise.
41397         * tests/test-vprintf-posix.c: Likewise.
41398         * tests/test-vsnprintf-posix.c: Likewise.
41399         * tests/test-vsprintf-posix.c: Likewise.
41400
41401 2009-01-03  Jim Meyering  <meyering@redhat.com>
41402
41403         gnulib-tool: fix sed-based filtering
41404         * gnulib-tool (func_filter_filelist): Remove extra backslash
41405         in sed_fff_filter definition.
41406
41407 2009-01-02  Jim Meyering  <meyering@redhat.com>
41408
41409         strftime: avoid compilation failure on Solaris 2.6
41410         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41411         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41412         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41413         be available.  Reported by Tom G. Christensen.  Details in
41414         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41415
41416 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41417             Bruno Haible  <bruno@clisp.org>
41418
41419         Speed up gnulib-tool by doing more string processing through shell
41420         built-ins.
41421         * gnulib-tool (fast_func_append): New variable.
41422         (func_remove_prefix, func_remove_suffix): New functions.
41423         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41424         (func_filter_filelist): New function.
41425         (func_get_dependencies): Use func_remove_suffix instead of sed.
41426         (func_get_automake_snippet): Use func_filter_filelist instead of a
41427         subshell and sed invocation.
41428
41429 2009-01-01  Bruno Haible  <bruno@clisp.org>
41430
41431         Fix a security bug.
41432         * gnulib-tool (func_import, import, update): Don't allow the characters
41433         '"', '$', '`', '\' in macro arguments that become part of commands that
41434         are evaluated.
41435
41436 2009-01-01  Bruno Haible  <bruno@clisp.org>
41437
41438         * gnulib-tool (func_reset_sigpipe): Add more comments.
41439
41440 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41441
41442         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41443         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41444         already know the answer.
41445
41446 2009-01-01  Jim Meyering  <meyering@redhat.com>
41447
41448         * lib/version-etc.c (version_etc_va): Update copyright year.
41449
41450 2008-12-30  Bruno Haible  <bruno@clisp.org>
41451
41452         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41453         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41454         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41455
41456 2008-12-29  Eric Blake  <ebb9@byu.net>
41457
41458         multiarch: avoid autoconf AC_REQUIRE bug
41459         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41460         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41461         2.63 and older.
41462         Reported by Bruno Haible, and analyzed in
41463         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41464
41465 2008-12-29  Bruno Haible  <bruno@clisp.org>
41466
41467         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41468         files in subdirectories correctly.
41469         Reported by Ralf Wildenhues.
41470
41471 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41472
41473         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41474         rather than 'join FILE -', for Solaris join.
41475
41476 2008-12-29  Bruno Haible  <bruno@clisp.org>
41477
41478         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41479         quoting.
41480         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41481         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41482         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41483         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41484         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41485         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41486         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41487         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41488         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41489         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41490         * m4/nls.m4 (AM_NLS): Likewise.
41491         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41492         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41493         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41494         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41495         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41496         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41497         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41498         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41499         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41500         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41501         * m4/xsize.m4 (gl_XSIZE): Likewise.
41502         Suggested by Jim Meyering.
41503
41504 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41505
41506         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41507         * lib/parse-duration.c: use a switch instead of cascading if's.
41508
41509 2008-12-29  Eric Blake  <ebb9@byu.net>
41510
41511         wchar.h: supply WEOF on Irix 5.3
41512         * lib/wchar.in.h (wint_t): Also supply WEOF.
41513         * lib/wctype.in.h (wint_t): Likewise.
41514         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41515         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41516         Reported by Tom G. Christensen.
41517
41518 2008-12-26  Bruno Haible  <bruno@clisp.org>
41519
41520         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41521         i486, i586, i686.
41522
41523 2008-12-26  Bruno Haible  <bruno@clisp.org>
41524
41525         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41526
41527 2008-12-26  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41530         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41531         not __STDC_CONSTANT_MACROS.
41532         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41533
41534 2008-12-25  Bruno Haible  <bruno@clisp.org>
41535
41536         Add support for universal builds to vasnprintf.
41537         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41538         universal builds, guess no.
41539         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41540         * modules/vasprintf-posix (Depends-on): Likewise.
41541         * modules/fprintf-posix (Depends-on): Likewise.
41542         * modules/vfprintf-posix (Depends-on): Likewise.
41543         * modules/snprintf-posix (Depends-on): Likewise.
41544         * modules/vsnprintf-posix (Depends-on): Likewise.
41545         * modules/sprintf-posix (Depends-on): Likewise.
41546         * modules/vsprintf-posix (Depends-on): Likewise.
41547         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41548         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41549         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41550         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41551         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41552         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41553         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41554
41555         Add support for universal builds to <inttypes.h>.
41556         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41557         _SCNu64_PREFIX): In Apple
41558         universal builds, define directly, using _LP64.
41559         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41560         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41561         * modules/inttypes (Depends-on): Add multiarch.
41562         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41563
41564         Add support for universal builds to <stdint.h>.
41565         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41566         universal builds, define directly, using _LP64.
41567         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41568         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41569         and size_t.
41570         * modules/stdint (Depends-on): Add multiarch.
41571         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41572
41573         New module 'multiarch'.
41574         * modules/multiarch: New file.
41575         * m4/multiarch.m4: New file.
41576
41577 2008-12-25  Bruno Haible  <bruno@clisp.org>
41578
41579         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41580
41581 2008-12-25  Bruno Haible  <bruno@clisp.org>
41582
41583         * modules/btowc (License): Relicense under LGPLv2+.
41584         * modules/mbsinit (License): Likewise.
41585         * modules/mbrtowc (License): Likewise.
41586         * modules/wcrtomb (License): Likewise.
41587         * modules/streq (License): Likewise.
41588         Reported by David Lutterkort <lutter@redhat.com>.
41589
41590 2008-12-23  Bruno Haible  <bruno@clisp.org>
41591
41592         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41593
41594 2008-12-23  Bruno Haible  <bruno@clisp.org>
41595
41596         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41598         GETADDRINFO_LIB, not in LIBS.
41599         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41600         * modules/canon-host (Link): Likewise.
41601         * NEWS: Mention the change.
41602         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41603         GETADDRINFO_LIB.
41604
41605 2008-12-22  Bruno Haible  <bruno@clisp.org>
41606
41607         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41608         * doc/posix-functions/iswalpha_l.texi: Likewise.
41609         * doc/posix-functions/iswblank_l.texi: Likewise.
41610         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41611         * doc/posix-functions/iswctype_l.texi: Likewise.
41612         * doc/posix-functions/iswdigit_l.texi: Likewise.
41613         * doc/posix-functions/iswgraph_l.texi: Likewise.
41614         * doc/posix-functions/iswlower_l.texi: Likewise.
41615         * doc/posix-functions/iswprint_l.texi: Likewise.
41616         * doc/posix-functions/iswpunct_l.texi: Likewise.
41617         * doc/posix-functions/iswspace_l.texi: Likewise.
41618         * doc/posix-functions/iswupper_l.texi: Likewise.
41619         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41620         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41621         * doc/posix-functions/open_wmemstream.texi: Likewise.
41622         * doc/posix-functions/swscanf.texi: Likewise.
41623         * doc/posix-functions/towctrans_l.texi: Likewise.
41624         * doc/posix-functions/towlower.texi: Likewise.
41625         * doc/posix-functions/towlower_l.texi: Likewise.
41626         * doc/posix-functions/towupper.texi: Likewise.
41627         * doc/posix-functions/towupper_l.texi: Likewise.
41628         * doc/posix-functions/vfwprintf.texi: Likewise.
41629         * doc/posix-functions/vfwscanf.texi: Likewise.
41630         * doc/posix-functions/vswscanf.texi: Likewise.
41631         * doc/posix-functions/vwprintf.texi: Likewise.
41632         * doc/posix-functions/vwscanf.texi: Likewise.
41633         * doc/posix-functions/wcpcpy.texi: Likewise.
41634         * doc/posix-functions/wcpncpy.texi: Likewise.
41635         * doc/posix-functions/wcscasecmp.texi: Likewise.
41636         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41637         * doc/posix-functions/wcscoll_l.texi: Likewise.
41638         * doc/posix-functions/wcsdup.texi: Likewise.
41639         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41640         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41641         * doc/posix-functions/wcsnlen.texi: Likewise.
41642         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41643         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41644         * doc/posix-functions/wctrans_l.texi: Likewise.
41645         * doc/posix-functions/wctype_l.texi: Likewise.
41646         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41647         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41648         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41649         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41650         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41651         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41652         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41653         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41654         * doc/glibc-functions/wcschrnul.texi: Likewise.
41655         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41656         * doc/glibc-functions/wcstod_l.texi: Likewise.
41657         * doc/glibc-functions/wcstof_l.texi: Likewise.
41658         * doc/glibc-functions/wcstol_l.texi: Likewise.
41659         * doc/glibc-functions/wcstold_l.texi: Likewise.
41660         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41661         * doc/glibc-functions/wcstoq.texi: Likewise.
41662         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41663         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41664         * doc/glibc-functions/wcstouq.texi: Likewise.
41665         * doc/glibc-functions/wmempcpy.texi: Likewise.
41666
41667 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41668             Eric Blake  <ebb9@byu.net>
41669             Paolo Bonzini  <bonzini@gnu.org>
41670             Bruno Haible  <bruno@clisp.org>
41671
41672         Make c-stack work on Haiku.
41673         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41674         (c_stack_action): Use SA_ONSTACK flag.
41675
41676 2008-12-22  Bruno Haible  <bruno@clisp.org>
41677
41678         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41679
41680 2008-12-22  Bruno Haible  <bruno@clisp.org>
41681
41682         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41683         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41684         being overridden.
41685         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41686         New macros.
41687         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41689         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41690         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41691
41692 2008-12-22  Bruno Haible  <bruno@clisp.org>
41693
41694         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41695         from test code.
41696
41697 2008-12-22  Eric Blake  <ebb9@byu.net>
41698
41699         Avoid gcc warnings on cygwin.
41700         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41701         Avoid unused variable.
41702         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41703         Likewise.
41704
41705 2008-12-22  Bruno Haible  <bruno@clisp.org>
41706
41707         Remove HAVE_MBRTOWC conditionals.
41708         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41709         (mbscasecmp): Assume mbrtowc function.
41710         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41711         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41712         * lib/mbschr.c: Include mbuiter.h unconditionally.
41713         (mbschr): Assume mbrtowc function.
41714         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41715         (mbscspn): Assume mbrtowc function.
41716         * lib/mbslen.c: Include mbuiter.h unconditionally.
41717         (mbslen): Assume mbrtowc function.
41718         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41719         (mbsncasecmp): Assume mbrtowc function.
41720         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41721         (mbsnlen): Assume mbrtowc function.
41722         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41723         (mbspbrk): Assume mbrtowc function.
41724         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41725         (mbspcasecmp): Assume mbrtowc function.
41726         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41727         (mbsrchr): Assume mbrtowc function.
41728         * lib/mbssep.c: Include mbuiter.h unconditionally.
41729         (mbssep): Assume mbrtowc function.
41730         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41731         (mbsspn): Assume mbrtowc function.
41732         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41733         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41734         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41735         (mbstok_r): Assume mbrtowc function.
41736         * lib/propername.c: Include mbuiter.h unconditionally.
41737         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41738         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41739         (trim2): Assume mbrtowc function.
41740         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41741         (mbsnwidth): Assume mbrtowc function.
41742         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41743         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41744         fallback definitions.
41745         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41746
41747 2008-12-22  Bruno Haible  <bruno@clisp.org>
41748
41749         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41750
41751 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41752
41753         * modules/regex: Request emulations for the mb*/wc* functions we need.
41754         * m4/regex.m4: Don't look for those functions here.
41755         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41756
41757 2008-12-22  Bruno Haible  <bruno@clisp.org>
41758
41759         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41760
41761 2008-12-21  Bruno Haible  <bruno@clisp.org>
41762
41763         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41764         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41765         (Include): Remove conditionalization.
41766         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41767         (Include): Remove conditionalization.
41768         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41769         (Include): Remove conditionalization.
41770         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41771         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41772         * NEWS: Mention the change.
41773         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41774         via Sergey Poznyakoff <gray@gnu.org.ua>.
41775
41776 2008-12-21  Bruno Haible  <bruno@clisp.org>
41777
41778         * MODULES.html.sh (Extended multibyte and wide character utilities
41779         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41780         wcrtomb, wcsrtombs.
41781         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41782         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41783         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41784         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41785
41786 2008-12-21  Bruno Haible  <bruno@clisp.org>
41787
41788         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41789
41790 2008-12-21  Bruno Haible  <bruno@clisp.org>
41791
41792         * modules/wcsnrtombs-tests: New file.
41793         * tests/test-wcsnrtombs1.sh: New file.
41794         * tests/test-wcsnrtombs2.sh: New file.
41795         * tests/test-wcsnrtombs3.sh: New file.
41796         * tests/test-wcsnrtombs4.sh: New file.
41797         * tests/test-wcsnrtombs.c: New file.
41798
41799         New module 'wcsnrtombs'.
41800         * lib/wchar.in.h (wcsnrtombs): New declaration.
41801         * lib/wcsnrtombs.c: New file.
41802         * lib/wcsrtombs-state.c: New file.
41803         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41804         (internal_state): Remove variable.
41805         * m4/wcsnrtombs.m4: New file.
41806         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41807         compilation units.
41808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41809         HAVE_WCSNRTOMBS.
41810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41811         HAVE_WCSNRTOMBS.
41812         * modules/wcsnrtombs: New file.
41813         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41814         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41815
41816 2008-12-21  Bruno Haible  <bruno@clisp.org>
41817
41818         * modules/wcsrtombs-tests: New file.
41819         * tests/test-wcsrtombs1.sh: New file.
41820         * tests/test-wcsrtombs2.sh: New file.
41821         * tests/test-wcsrtombs3.sh: New file.
41822         * tests/test-wcsrtombs4.sh: New file.
41823         * tests/test-wcsrtombs.c: New file.
41824
41825         New module 'wcsrtombs'.
41826         * lib/wchar.in.h (wcsrtombs): New declaration.
41827         * lib/wcsrtombs.c: New file.
41828         * m4/wcsrtombs.m4: New file.
41829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41830         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41832         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41833         * modules/wcsrtombs: New file.
41834         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41835         bugs.
41836
41837 2008-12-21  Bruno Haible  <bruno@clisp.org>
41838
41839         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41840         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41842         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41843         if not correct.
41844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41845         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41846         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41847         m4/locale-zh.m4, m4/codeset.m4.
41848         * doc/posix-functions/wcrtomb.texi: Document the bug.
41849
41850 2008-12-21  Bruno Haible  <bruno@clisp.org>
41851
41852         Work around a btowc() bug on IRIX 6.5.
41853         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41854         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41855         REPLACE_WTOBC if not.
41856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41857         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41858         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41859
41860 2008-12-21  Bruno Haible  <bruno@clisp.org>
41861
41862         * modules/wcrtomb-tests: New file.
41863         * tests/test-wcrtomb.sh: New file.
41864         * tests/test-wcrtomb.c: New file.
41865
41866         New module 'wcrtomb'.
41867         * lib/wchar.in.h (wcrtomb): New declaration.
41868         * lib/wcrtomb.c: New file.
41869         * m4/wcrtomb.m4: New file.
41870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41871         HAVE_WCRTOMB.
41872         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41873         HAVE_WCRTOMB.
41874         * modules/wcrtomb: New file.
41875         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41876
41877 2008-12-21  Bruno Haible  <bruno@clisp.org>
41878
41879         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41880         * modules/mbsrtowcs (Files): Likewise.
41881         * modules/wctob (Files): Likewise.
41882         * modules/c-strcase-tests (Files): Likewise.
41883         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41884         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41885         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41886         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41887         * modules/vasnprintf-posix-tests (Files): Likewise.
41888
41889 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41890
41891         gitlog-to-changelog: pass all command-line arguments to git-log
41892         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41893         it is sometimes convenient to filter the commits in various ways.
41894         gitlog-to-changelog only allows --since to specify a start date,
41895         but git-log itself supports many other filtering mechanisms.
41896         At the moment, I want to filter by branch name.  Rather than
41897         adding a --branch option to gitlog-to-changelog, it seems more
41898         flexible to simply pass all options directly to git-log and let
41899         git do the work.  Notice that this effectively makes --since a
41900         redundant option for gitlog-to-changelog, but removing it would
41901         require current usage to change since calls would then require
41902         an additional '--'.
41903
41904 2008-12-21  Bruno Haible  <bruno@clisp.org>
41905
41906         * modules/mbsnrtowcs-tests: New file.
41907         * tests/test-mbsnrtowcs1.sh: New file.
41908         * tests/test-mbsnrtowcs2.sh: New file.
41909         * tests/test-mbsnrtowcs3.sh: New file.
41910         * tests/test-mbsnrtowcs4.sh: New file.
41911         * tests/test-mbsnrtowcs.c: New file.
41912
41913         New module 'mbsnrtowcs'.
41914         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41915         * lib/mbsnrtowcs.c: New file.
41916         * lib/mbsrtowcs-state.c: New file.
41917         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41918         (internal_state): Remove variable.
41919         * m4/mbsnrtowcs.m4: New file.
41920         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41921         compilation units.
41922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41923         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41924         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41925         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41926         * modules/mbsnrtowcs: New file.
41927         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41928         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41929         portability problem.
41930
41931 2008-12-21  Bruno Haible  <bruno@clisp.org>
41932
41933         Work around mbsrtowcs bug.
41934         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41935         (gl_FUNC_MBSRTOWCS): Invoke it.
41936         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41937         m4/locale-zh.m4.
41938         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41939
41940 2008-12-21  Bruno Haible  <bruno@clisp.org>
41941
41942         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41943
41944 2008-12-21  Bruno Haible  <bruno@clisp.org>
41945
41946         Update doc for AIX.
41947         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41948         16-bit wchar_t type.
41949         * doc/posix-functions/btowc.texi: Likewise.
41950         * doc/posix-functions/fgetwc.texi: Likewise.
41951         * doc/posix-functions/fgetws.texi: Likewise.
41952         * doc/posix-functions/fputwc.texi: Likewise.
41953         * doc/posix-functions/fputws.texi: Likewise.
41954         * doc/posix-functions/fwide.texi: Likewise.
41955         * doc/posix-functions/fwprintf.texi: Likewise.
41956         * doc/posix-functions/fwscanf.texi: Likewise.
41957         * doc/posix-functions/getwchar.texi: Likewise.
41958         * doc/posix-functions/getwc.texi: Likewise.
41959         * doc/posix-functions/iswalnum.texi: Likewise.
41960         * doc/posix-functions/iswalpha.texi: Likewise.
41961         * doc/posix-functions/iswblank.texi: Likewise.
41962         * doc/posix-functions/iswcntrl.texi: Likewise.
41963         * doc/posix-functions/iswctype.texi: Likewise.
41964         * doc/posix-functions/iswdigit.texi: Likewise.
41965         * doc/posix-functions/iswgraph.texi: Likewise.
41966         * doc/posix-functions/iswlower.texi: Likewise.
41967         * doc/posix-functions/iswprint.texi: Likewise.
41968         * doc/posix-functions/iswpunct.texi: Likewise.
41969         * doc/posix-functions/iswspace.texi: Likewise.
41970         * doc/posix-functions/iswupper.texi: Likewise.
41971         * doc/posix-functions/iswxdigit.texi: Likewise.
41972         * doc/posix-functions/mbrtowc.texi: Likewise.
41973         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41974         * doc/posix-functions/mbstowcs.texi: Likewise.
41975         * doc/posix-functions/mbtowc.texi: Likewise.
41976         * doc/posix-functions/putwchar.texi: Likewise.
41977         * doc/posix-functions/putwc.texi: Likewise.
41978         * doc/posix-functions/swprintf.texi: Likewise.
41979         * doc/posix-functions/tolower.texi: Likewise.
41980         * doc/posix-functions/toupper.texi: Likewise.
41981         * doc/posix-functions/towctrans.texi: Likewise.
41982         * doc/posix-functions/ungetwc.texi: Likewise.
41983         * doc/posix-functions/vswprintf.texi: Likewise.
41984         * doc/posix-functions/wcrtomb.texi: Likewise.
41985         * doc/posix-functions/wcscat.texi: Likewise.
41986         * doc/posix-functions/wcschr.texi: Likewise.
41987         * doc/posix-functions/wcscmp.texi: Likewise.
41988         * doc/posix-functions/wcscoll.texi: Likewise.
41989         * doc/posix-functions/wcscpy.texi: Likewise.
41990         * doc/posix-functions/wcscspn.texi: Likewise.
41991         * doc/posix-functions/wcsftime.texi: Likewise.
41992         * doc/posix-functions/wcslen.texi: Likewise.
41993         * doc/posix-functions/wcsncat.texi: Likewise.
41994         * doc/posix-functions/wcsncmp.texi: Likewise.
41995         * doc/posix-functions/wcsncpy.texi: Likewise.
41996         * doc/posix-functions/wcspbrk.texi: Likewise.
41997         * doc/posix-functions/wcsrchr.texi: Likewise.
41998         * doc/posix-functions/wcsrtombs.texi: Likewise.
41999         * doc/posix-functions/wcsspn.texi: Likewise.
42000         * doc/posix-functions/wcsstr.texi: Likewise.
42001         * doc/posix-functions/wcstod.texi: Likewise.
42002         * doc/posix-functions/wcstof.texi: Likewise.
42003         * doc/posix-functions/wcstoimax.texi: Likewise.
42004         * doc/posix-functions/wcstok.texi: Likewise.
42005         * doc/posix-functions/wcstold.texi: Likewise.
42006         * doc/posix-functions/wcstoll.texi: Likewise.
42007         * doc/posix-functions/wcstol.texi: Likewise.
42008         * doc/posix-functions/wcstombs.texi: Likewise.
42009         * doc/posix-functions/wcstoull.texi: Likewise.
42010         * doc/posix-functions/wcstoul.texi: Likewise.
42011         * doc/posix-functions/wcstoumax.texi: Likewise.
42012         * doc/posix-functions/wcswidth.texi: Likewise.
42013         * doc/posix-functions/wcsxfrm.texi: Likewise.
42014         * doc/posix-functions/wctob.texi: Likewise.
42015         * doc/posix-functions/wctomb.texi: Likewise.
42016         * doc/posix-functions/wctrans.texi: Likewise.
42017         * doc/posix-functions/wctype.texi: Likewise.
42018         * doc/posix-functions/wcwidth.texi: Likewise.
42019         * doc/posix-functions/wmemchr.texi: Likewise.
42020         * doc/posix-functions/wmemcmp.texi: Likewise.
42021         * doc/posix-functions/wmemcpy.texi: Likewise.
42022         * doc/posix-functions/wmemmove.texi: Likewise.
42023         * doc/posix-functions/wmemset.texi: Likewise.
42024         * doc/posix-functions/wprintf.texi: Likewise.
42025         * doc/posix-functions/wscanf.texi: Likewise.
42026
42027 2008-12-21  Bruno Haible  <bruno@clisp.org>
42028
42029         Update doc for HP-UX 11.11.
42030         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42031         in HP-UX version 11.00, not in all versions of HP-UX 11.
42032         * doc/posix-functions/fwide.texi: Likewise.
42033         * doc/posix-functions/fwprintf.texi: Likewise.
42034         * doc/posix-functions/fwscanf.texi: Likewise.
42035         * doc/posix-functions/inet_ntop.texi: Likewise.
42036         * doc/posix-functions/inet_pton.texi: Likewise.
42037         * doc/posix-functions/mbrlen.texi: Likewise.
42038         * doc/posix-functions/mbrtowc.texi: Likewise.
42039         * doc/posix-functions/mbsinit.texi: Likewise.
42040         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42041         * doc/posix-functions/swprintf.texi: Likewise.
42042         * doc/posix-functions/swscanf.texi: Likewise.
42043         * doc/posix-functions/towctrans.texi: Likewise.
42044         * doc/posix-functions/vfwprintf.texi: Likewise.
42045         * doc/posix-functions/vswprintf.texi: Likewise.
42046         * doc/posix-functions/vwprintf.texi: Likewise.
42047         * doc/posix-functions/wcrtomb.texi: Likewise.
42048         * doc/posix-functions/wcsrtombs.texi: Likewise.
42049         * doc/posix-functions/wcsstr.texi: Likewise.
42050         * doc/posix-functions/wctob.texi: Likewise.
42051         * doc/posix-functions/wctrans.texi: Likewise.
42052         * doc/posix-functions/wmemchr.texi: Likewise.
42053         * doc/posix-functions/wmemcmp.texi: Likewise.
42054         * doc/posix-functions/wmemcpy.texi: Likewise.
42055         * doc/posix-functions/wmemmove.texi: Likewise.
42056         * doc/posix-functions/wmemset.texi: Likewise.
42057         * doc/posix-functions/wprintf.texi: Likewise.
42058         * doc/posix-functions/wscanf.texi: Likewise.
42059
42060 2008-12-21  Bruno Haible  <bruno@clisp.org>
42061
42062         Work around a portability problem.
42063         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42064         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42065
42066 2008-12-20  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42069         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42070         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42072         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42073
42074         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42075         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42076         set.
42077         (GNULIB_defined_mbstate_t): New macro.
42078         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42079         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42080         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42081         reuses the system's mbrtowc function but works around the bugs.
42082         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42083         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42084         macros.
42085         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42086         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42087         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42088         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42089         REPLACE_MBSINIT if mbsinit needs to be overridden.
42090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42091         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42092         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42093         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42094         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42095         m4/locale-zh.m4.
42096         (Depends): Add mbsinit.
42097         * modules/mbsinit (Depends): Add mbrtowc.
42098         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42099
42100 2008-12-20  Bruno Haible  <bruno@clisp.org>
42101
42102         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42103         so that there are no conversion errors on AIX.
42104         * tests/test-mbsrtowcs.c (main): LIkewise.
42105
42106 2008-12-20  Bruno Haible  <bruno@clisp.org>
42107
42108         Work around wctob bug on Solaris <= 9.
42109         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42110         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42112         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42113         * modules/wctob (Files): Add m4/locale-fr.m4.
42114         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42115
42116 2008-12-20  Bruno Haible  <bruno@clisp.org>
42117
42118         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42119         /dev/null.
42120         * tests/test-select-in.sh: Likewise.
42121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42122
42123 2008-12-20  Bruno Haible  <bruno@clisp.org>
42124
42125         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42126         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42127         Cygwin 1.5.x.
42128
42129 2008-12-20  Bruno Haible  <bruno@clisp.org>
42130
42131         Ensure mbstate_t is defined on HP-UX 11.11.
42132         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42133         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42134         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42135         AC_USE_SYSTEM_EXTENSIONS.
42136         * modules/fnmatch (Depends-on): Add extensions.
42137         * modules/mbrlen (Depends-on): Likewise.
42138         * modules/mbrtowc (Depends-on): Likewise.
42139         * modules/mbsinit (Depends-on): Likewise.
42140         * modules/mbsrtowcs (Depends-on): Likewise.
42141         * modules/mbswidth (Depends-on): Likewise.
42142         * modules/quotearg (Depends-on): Likewise.
42143         * modules/strftime (Depends-on): Likewise.
42144
42145 2008-12-20  Bruno Haible  <bruno@clisp.org>
42146
42147         Ensure wctob is declared on IRIX 6.5.
42148         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42149         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42150         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42152         of HAVE_WCTOB.
42153         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42154         HAVE_WCTOB.
42155         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42156
42157 2008-12-19  Bruno Haible  <bruno@clisp.org>
42158
42159         * modules/mbsrtowcs-tests: New file.
42160         * tests/test-mbsrtowcs1.sh: New file.
42161         * tests/test-mbsrtowcs2.sh: New file.
42162         * tests/test-mbsrtowcs3.sh: New file.
42163         * tests/test-mbsrtowcs4.sh: New file.
42164         * tests/test-mbsrtowcs.c: New file.
42165
42166         New module 'mbsrtowcs'.
42167         * lib/wchar.in.h (mbsrtowcs): New declaration.
42168         * lib/mbsrtowcs.c: New file.
42169         * m4/mbsrtowcs.m4: New file.
42170         * modules/mbsrtowcs: New file.
42171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42172         HAVE_MBSRTOWCS.
42173         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42174         HAVE_MBSRTOWCS.
42175         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42176
42177 2008-12-19  Bruno Haible  <bruno@clisp.org>
42178
42179         New module 'mbrlen'.
42180         * lib/wchar.in.h (mbrlen): New declaration.
42181         * lib/mbrlen.c: New file.
42182         * m4/mbrlen.m4: New file.
42183         * modules/mbrlen: New file.
42184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42185         HAVE_MBRLEN.
42186         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42187         HAVE_MBRLEN.
42188         * doc/posix-functions/mbrlen.texi: Document the new module.
42189
42190 2008-12-19  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42193         * modules/mbrtowc (Depends-on): Add verify.
42194         Suggested by Paul Eggert.
42195
42196 2008-12-18  Bruno Haible  <bruno@clisp.org>
42197
42198         * modules/mbsinit-tests: New file.
42199         * tests/test-mbsinit.sh: New file.
42200         * tests/test-mbsinit.c: New file.
42201
42202 2008-12-18  Bruno Haible  <bruno@clisp.org>
42203
42204         * modules/mbrtowc-tests: New file.
42205         * tests/test-mbrtowc1.sh: New file.
42206         * tests/test-mbrtowc2.sh: New file.
42207         * tests/test-mbrtowc3.sh: New file.
42208         * tests/test-mbrtowc4.sh: New file.
42209         * tests/test-mbrtowc.c: New file.
42210
42211         New module 'mbrtowc'.
42212         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42213         mbsinit and mbrtowc.
42214         (mbrtowc): New declaration.
42215         * lib/mbrtowc.c: New file.
42216         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42217         * modules/mbrtowc: New file.
42218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42219         HAVE_MBRTOWC.
42220         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42221         HAVE_MBRTOWC.
42222         * doc/posix-functions/mbrtowc.texi: Document the new module.
42223
42224 2008-12-18  Bruno Haible  <bruno@clisp.org>
42225
42226         New module 'wctob'.
42227         * lib/wchar.in.h (wctob): New declaration.
42228         * lib/wctob.c: New file.
42229         * m4/wctob.m4: New file.
42230         * modules/wctob: New file.
42231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42232         HAVE_WCTOB.
42233         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42234         * doc/posix-functions/wctob.texi: Document the new module.
42235
42236 2008-12-18  Bruno Haible  <bruno@clisp.org>
42237
42238         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42239         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42240
42241 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42242
42243         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42244         G. Christensen" <tgc@jupiterrise.com>.
42245
42246         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42247         G. Christensen" <tgc@jupiterrise.com>.
42248
42249         * lib/flock.c: Need to include string.h.  Reported by "Tom
42250         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42251         <ebb9@byu.net>.
42252
42253 2008-12-18  Bruno Haible  <bruno@clisp.org>
42254
42255         * m4/locale-ja.m4: New file, from GNU gettext.
42256
42257 2008-12-17  Bruno Haible  <bruno@clisp.org>
42258
42259         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42260         Suggested by Eric Blake.
42261
42262 2008-12-17  Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42265
42266 2008-12-17  Bruno Haible  <bruno@clisp.org>
42267
42268         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42269         * modules/mbsinit (Depends-on): Add verify.
42270         Suggested by Paul Eggert.
42271
42272 2008-12-17  Bruno Haible  <bruno@clisp.org>
42273
42274         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42275         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42276         gl_FUNC_MBRTOWC.
42277         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42278         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42279         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42280         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42281         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42282         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42283         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42284         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42285         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42286         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42287         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42288         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42289         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42290         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42291         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42292         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42293         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42294         * modules/trim (configure.ac): Likewise.
42295
42296 2008-12-17  Bruno Haible  <bruno@clisp.org>
42297
42298         * modules/btowc-tests: New file.
42299         * tests/test-btowc1.sh: New file.
42300         * tests/test-btowc2.sh: New file.
42301         * tests/test-btowc.c: New file.
42302
42303         New module 'btowc'.
42304         * lib/wchar.in.h (btowc): New declaration.
42305         * lib/btowc.c: New file.
42306         * m4/btowc.m4: New file.
42307         * modules/btowc: New file.
42308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42309         HAVE_BTOWC.
42310         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42311         * doc/posix-functions/btowc.texi: Document the new module.
42312
42313 2008-12-17  Bruno Haible  <bruno@clisp.org>
42314
42315         New module 'mbsinit'.
42316         * lib/wchar.in.h (mbsinit): New declaration.
42317         * lib/mbsinit.c: New file.
42318         * m4/mbsinit.m4: New file.
42319         * modules/mbsinit: New file.
42320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42321         HAVE_MBSINIT.
42322         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42323         HAVE_MBSINIT.
42324         * doc/posix-functions/mbsinit.texi: Document the new module.
42325
42326 2008-12-16  Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/unistd.in.h: Add comment.
42329         * tests/test-environ.c: Don't include <stdlib.h>.
42330
42331 2008-12-16  Bruno Haible  <bruno@clisp.org>
42332
42333         * lib/parse-duration.h (parse_duration): Document return value
42334         convention.
42335         * lib/parse-duration.c: Include specification header first. Add
42336         comments.
42337         (_): Remove macro.
42338         (parse_year_month_day, parse_hour_minute_second): Move side effects
42339         outside of strchr call.
42340         (parse_non_iso8601): Move side effects outside of isspace call.
42341         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42342         call.
42343
42344 2008-12-16  Bruno Haible  <bruno@clisp.org>
42345
42346         * tests/test-parse-duration.sh: Produce no output when the test
42347         succeeds.
42348
42349 2008-12-16  Bruno Haible  <bruno@clisp.org>
42350
42351         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42352         expressions.
42353
42354 2008-12-15  Bruno Haible  <bruno@clisp.org>
42355
42356         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42357         * doc/glibc-functions/flistxattr.texi: Likewise.
42358         * doc/glibc-functions/fopencookie.texi: Likewise.
42359         * doc/glibc-functions/fremovexattr.texi: Likewise.
42360         * doc/glibc-functions/fsetxattr.texi: Likewise.
42361         * doc/glibc-functions/getxattr.texi: Likewise.
42362         * doc/glibc-functions/lgetxattr.texi: Likewise.
42363         * doc/glibc-functions/listxattr.texi: Likewise.
42364         * doc/glibc-functions/llistxattr.texi: Likewise.
42365         * doc/glibc-functions/lremovexattr.texi: Likewise.
42366         * doc/glibc-functions/lsetxattr.texi: Likewise.
42367         * doc/glibc-functions/removexattr.texi: Likewise.
42368         * doc/glibc-functions/setxattr.texi: Likewise.
42369         * doc/posix-functions/open_memstream.texi: Likewise.
42370
42371 2008-12-15  Eric Blake  <ebb9@byu.net>
42372
42373         Update doc for cygwin 1.7.
42374         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42375         functions.
42376         * doc/posix-functions/fchmodat.texi: Likewise.
42377         * doc/posix-functions/fchownat.texi: Likewise.
42378         * doc/posix-functions/fdopendir.texi: Likewise.
42379         * doc/posix-functions/fmemopen.texi: Likewise.
42380         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42381         * doc/posix-functions/fstatat.texi: Likewise.
42382         * doc/posix-functions/futimens.texi: Likewise.
42383         * doc/posix-functions/gai_strerror.texi: Likewise.
42384         * doc/posix-functions/getaddrinfo.texi: Likewise.
42385         * doc/posix-functions/getnameinfo.texi: Likewise.
42386         * doc/posix-functions/if_freenameindex.texi: Likewise.
42387         * doc/posix-functions/if_indextoname.texi: Likewise.
42388         * doc/posix-functions/if_nameindex.texi: Likewise.
42389         * doc/posix-functions/if_nametoindex.texi: Likewise.
42390         * doc/posix-functions/insque.texi: Likewise.
42391         * doc/posix-functions/linkat.texi: Likewise.
42392         * doc/posix-functions/llrint.texi: Likewise.
42393         * doc/posix-functions/llrintf.texi: Likewise.
42394         * doc/posix-functions/llrintl.texi: Likewise.
42395         * doc/posix-functions/lockf.texi: Likewise.
42396         * doc/posix-functions/lrintl.texi: Likewise.
42397         * doc/posix-functions/mkdirat.texi: Likewise.
42398         * doc/posix-functions/mkfifoat.texi: Likewise.
42399         * doc/posix-functions/mknodat.texi: Likewise.
42400         * doc/posix-functions/mq_close.texi: Likewise.
42401         * doc/posix-functions/mq_getattr.texi: Likewise.
42402         * doc/posix-functions/mq_notify.texi: Likewise.
42403         * doc/posix-functions/mq_open.texi: Likewise.
42404         * doc/posix-functions/mq_receive.texi: Likewise.
42405         * doc/posix-functions/mq_send.texi: Likewise.
42406         * doc/posix-functions/mq_setattr.texi: Likewise.
42407         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42408         * doc/posix-functions/mq_timedsend.texi: Likewise.
42409         * doc/posix-functions/mq_unlink.texi: Likewise.
42410         * doc/posix-functions/open_memstream.texi: Likewise.
42411         * doc/posix-functions/openat.texi: Likewise.
42412         * doc/posix-functions/posix_fadvise.texi: Likewise.
42413         * doc/posix-functions/posix_fallocate.texi: Likewise.
42414         * doc/posix-functions/posix_madvise.texi: Likewise.
42415         * doc/posix-functions/posix_memalign.texi: Likewise.
42416         * doc/posix-functions/posix_openpt.texi: Likewise.
42417         * doc/posix-functions/readlinkat.texi: Likewise.
42418         * doc/posix-functions/remque.texi: Likewise.
42419         * doc/posix-functions/renameat.texi: Likewise.
42420         * doc/posix-functions/rintl.texi: Likewise.
42421         * doc/posix-functions/sem_unlink.texi: Likewise.
42422         * doc/posix-functions/shm_open.texi: Likewise.
42423         * doc/posix-functions/shm_unlink.texi: Likewise.
42424         * doc/posix-functions/signgam.texi: Likewise.
42425         * doc/posix-functions/sigset.texi: Likewise.
42426         * doc/posix-functions/stpcpy.texi: Likewise.
42427         * doc/posix-functions/stpncpy.texi: Likewise.
42428         * doc/posix-functions/strerror.texi: Likewise.
42429         * doc/posix-functions/strtod.texi: Likewise.
42430         * doc/posix-functions/symlinkat.texi: Likewise.
42431         * doc/posix-functions/unlinkat.texi: Likewise.
42432         * doc/posix-functions/utimensat.texi: Likewise.
42433         * doc/glibc-functions/bindresvport.texi: Likewise.
42434         * doc/glibc-functions/dn_expand.texi: Likewise.
42435         * doc/glibc-functions/exp10.texi: Likewise.
42436         * doc/glibc-functions/exp10f.texi: Likewise.
42437         * doc/glibc-functions/fgetxattr.texi: Likewise.
42438         * doc/glibc-functions/flistxattr.texi: Likewise.
42439         * doc/glibc-functions/fopencookie.texi: Likewise.
42440         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42441         * doc/glibc-functions/fremovexattr.texi: Likewise.
42442         * doc/glibc-functions/fsetxattr.texi: Likewise.
42443         * doc/glibc-functions/getifaddrs.texi: Likewise.
42444         * doc/glibc-functions/getxattr.texi: Likewise.
42445         * doc/glibc-functions/lgetxattr.texi: Likewise.
42446         * doc/glibc-functions/listxattr.texi: Likewise.
42447         * doc/glibc-functions/llistxattr.texi: Likewise.
42448         * doc/glibc-functions/lremovexattr.texi: Likewise.
42449         * doc/glibc-functions/lsetxattr.texi: Likewise.
42450         * doc/glibc-functions/pow10.texi: Likewise.
42451         * doc/glibc-functions/pow10f.texi: Likewise.
42452         * doc/glibc-functions/rcmd_af.texi: Likewise.
42453         * doc/glibc-functions/removexattr.texi: Likewise.
42454         * doc/glibc-functions/res_init.texi: Likewise.
42455         * doc/glibc-functions/res_mkquery.texi: Likewise.
42456         * doc/glibc-functions/res_query.texi: Likewise.
42457         * doc/glibc-functions/res_querydomain.texi: Likewise.
42458         * doc/glibc-functions/res_send.texi: Likewise.
42459         * doc/glibc-functions/rresvport_af.texi: Likewise.
42460         * doc/glibc-functions/setxattr.texi: Likewise.
42461         * doc/glibc-functions/strcasestr.texi: Likewise.
42462
42463 2008-12-15  Bruno Haible  <bruno@clisp.org>
42464
42465         Fix compilation error on OSF/1 4.0.
42466         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42467         <sys/time.h>, simply delegate to the system header.
42468         Reported by Daniel Richard G. <oss@teragram.com>.
42469
42470 2008-12-15  Bruno Haible  <bruno@clisp.org>
42471
42472         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42473         * doc/posix-functions/fchmodat.texi: Likewise.
42474         * doc/posix-functions/fchownat.texi: Likewise.
42475         * doc/posix-functions/fdopendir.texi: Likewise.
42476         * doc/posix-functions/fstatat.texi: Likewise.
42477         * doc/posix-functions/mkdirat.texi: Likewise.
42478         * doc/posix-functions/unlinkat.texi: Likewise.
42479
42480 2008-12-14  Bruno Haible  <bruno@clisp.org>
42481
42482         Update doc for POSIX:2008.
42483         * doc/posix-functions/faccessat.texi: New file.
42484         * doc/posix-functions/fchmodat.texi: New file.
42485         * doc/posix-functions/fchownat.texi: New file.
42486         * doc/posix-functions/fdopendir.texi: New file.
42487         * doc/posix-functions/fstatat.texi: New file.
42488         * doc/posix-functions/futimens.texi: New file.
42489         * doc/posix-functions/linkat.texi: New file.
42490         * doc/posix-functions/mkdirat.texi: New file.
42491         * doc/posix-functions/mkfifoat.texi: New file.
42492         * doc/posix-functions/mknodat.texi: New file.
42493         * doc/posix-functions/open_wmemstream.texi: New file.
42494         * doc/posix-functions/openat.texi: New file.
42495         * doc/posix-functions/psiginfo.texi: New file.
42496         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42497         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42498         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42499         * doc/posix-functions/readlinkat.texi: New file.
42500         * doc/posix-functions/renameat.texi: New file.
42501         * doc/posix-functions/strerror_l.texi: New file.
42502         * doc/posix-functions/symlinkat.texi: New file.
42503         * doc/posix-functions/unlinkat.texi: New file.
42504         * doc/posix-functions/utimensat.texi: New file.
42505         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42506
42507 2008-12-14  Bruno Haible  <bruno@clisp.org>
42508
42509         Update doc for POSIX:2008.
42510         * doc/posix-functions/alphasort.texi: Renamed from
42511         doc/glibc-functions/alphasort.texi.
42512         * doc/posix-functions/dirfd.texi: Renamed from
42513         doc/glibc-functions/dirfd.texi.
42514         * doc/posix-functions/dprintf.texi: Renamed from
42515         doc/glibc-functions/dprintf.texi.
42516         * doc/posix-functions/duplocale.texi: Renamed from
42517         doc/glibc-functions/duplocale.texi.
42518         * doc/posix-functions/fexecve.texi: Renamed from
42519         doc/glibc-functions/fexecve.texi.
42520         * doc/posix-functions/fmemopen.texi: Renamed from
42521         doc/glibc-functions/fmemopen.texi.
42522         * doc/posix-functions/freelocale.texi: Renamed from
42523         doc/glibc-functions/freelocale.texi.
42524         * doc/posix-functions/getdate_err.texi: Renamed from
42525         doc/glibc-functions/getdate_err.texi.
42526         * doc/posix-functions/isalnum_l.texi: Renamed from
42527         doc/glibc-functions/isalnum_l.texi.
42528         * doc/posix-functions/isalpha_l.texi: Renamed from
42529         doc/glibc-functions/isalpha_l.texi.
42530         * doc/posix-functions/isblank_l.texi: Renamed from
42531         doc/glibc-functions/isblank_l.texi.
42532         * doc/posix-functions/iscntrl_l.texi: Renamed from
42533         doc/glibc-functions/iscntrl_l.texi.
42534         * doc/posix-functions/isdigit_l.texi: Renamed from
42535         doc/glibc-functions/isdigit_l.texi.
42536         * doc/posix-functions/isgraph_l.texi: Renamed from
42537         doc/glibc-functions/isgraph_l.texi.
42538         * doc/posix-functions/islower_l.texi: Renamed from
42539         doc/glibc-functions/islower_l.texi.
42540         * doc/posix-functions/isprint_l.texi: Renamed from
42541         doc/glibc-functions/isprint_l.texi.
42542         * doc/posix-functions/ispunct_l.texi: Renamed from
42543         doc/glibc-functions/ispunct_l.texi.
42544         * doc/posix-functions/isspace_l.texi: Renamed from
42545         doc/glibc-functions/isspace_l.texi.
42546         * doc/posix-functions/isupper_l.texi: Renamed from
42547         doc/glibc-functions/isupper_l.texi.
42548         * doc/posix-functions/iswalnum_l.texi: Renamed from
42549         doc/glibc-functions/iswalnum_l.texi.
42550         * doc/posix-functions/iswalpha_l.texi: Renamed from
42551         doc/glibc-functions/iswalpha_l.texi.
42552         * doc/posix-functions/iswblank_l.texi: Renamed from
42553         doc/glibc-functions/iswblank_l.texi.
42554         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42555         doc/glibc-functions/iswcntrl_l.texi.
42556         * doc/posix-functions/iswctype_l.texi: Renamed from
42557         doc/glibc-functions/iswctype_l.texi.
42558         * doc/posix-functions/iswdigit_l.texi: Renamed from
42559         doc/glibc-functions/iswdigit_l.texi.
42560         * doc/posix-functions/iswgraph_l.texi: Renamed from
42561         doc/glibc-functions/iswgraph_l.texi.
42562         * doc/posix-functions/iswlower_l.texi: Renamed from
42563         doc/glibc-functions/iswlower_l.texi.
42564         * doc/posix-functions/iswprint_l.texi: Renamed from
42565         doc/glibc-functions/iswprint_l.texi.
42566         * doc/posix-functions/iswpunct_l.texi: Renamed from
42567         doc/glibc-functions/iswpunct_l.texi.
42568         * doc/posix-functions/iswspace_l.texi: Renamed from
42569         doc/glibc-functions/iswspace_l.texi.
42570         * doc/posix-functions/iswupper_l.texi: Renamed from
42571         doc/glibc-functions/iswupper_l.texi.
42572         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42573         doc/glibc-functions/iswxdigit_l.texi.
42574         * doc/posix-functions/isxdigit_l.texi: Renamed from
42575         doc/glibc-functions/isxdigit_l.texi.
42576         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42577         doc/glibc-functions/mbsnrtowcs.texi.
42578         * doc/posix-functions/mkdtemp.texi: Renamed from
42579         doc/glibc-functions/mkdtemp.texi.
42580         * doc/posix-functions/newlocale.texi: Renamed from
42581         doc/glibc-functions/newlocale.texi.
42582         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42583         doc/glibc-functions/nl_langinfo_l.texi.
42584         * doc/posix-functions/open_memstream.texi: Renamed from
42585         doc/glibc-functions/open_memstream.texi.
42586         * doc/posix-functions/opterr.texi: Renamed from
42587         doc/glibc-functions/opterr.texi.
42588         * doc/posix-functions/optind.texi: Renamed from
42589         doc/glibc-functions/optind.texi.
42590         * doc/posix-functions/optopt.texi: Renamed from
42591         doc/glibc-functions/optopt.texi.
42592         * doc/posix-functions/psignal.texi: Renamed from
42593         doc/glibc-functions/psignal.texi.
42594         * doc/posix-functions/scandir.texi: Renamed from
42595         doc/glibc-functions/scandir.texi.
42596         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42597         doc/glibc-functions/sched_get_priority_min.texi.
42598         * doc/posix-functions/signgam.texi: Renamed from
42599         doc/glibc-functions/signgam.texi.
42600         * doc/posix-functions/stpcpy.texi: Renamed from
42601         doc/glibc-functions/stpcpy.texi.
42602         * doc/posix-functions/stpncpy.texi: Renamed from
42603         doc/glibc-functions/stpncpy.texi.
42604         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42605         doc/glibc-functions/strcasecmp_l.texi.
42606         * doc/posix-functions/strcoll_l.texi: Renamed from
42607         doc/glibc-functions/strcoll_l.texi.
42608         * doc/posix-functions/strfmon_l.texi: Renamed from
42609         doc/glibc-functions/strfmon_l.texi.
42610         * doc/posix-functions/strftime_l.texi: Renamed from
42611         doc/glibc-functions/strftime_l.texi.
42612         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42613         doc/glibc-functions/strncasecmp_l.texi.
42614         * doc/posix-functions/strndup.texi: Renamed from
42615         doc/glibc-functions/strndup.texi.
42616         * doc/posix-functions/strnlen.texi: Renamed from
42617         doc/glibc-functions/strnlen.texi.
42618         * doc/posix-functions/strsignal.texi: Renamed from
42619         doc/glibc-functions/strsignal.texi.
42620         * doc/posix-functions/strxfrm_l.texi: Renamed from
42621         doc/glibc-functions/strxfrm_l.texi.
42622         * doc/posix-functions/timer_gettime.texi: Renamed from
42623         doc/glibc-functions/timer_gettime.texi.
42624         * doc/posix-functions/tolower_l.texi: Renamed from
42625         doc/glibc-functions/tolower_l.texi.
42626         * doc/posix-functions/toupper_l.texi: Renamed from
42627         doc/glibc-functions/toupper_l.texi.
42628         * doc/posix-functions/towctrans_l.texi: Renamed from
42629         doc/glibc-functions/towctrans_l.texi.
42630         * doc/posix-functions/towlower_l.texi: Renamed from
42631         doc/glibc-functions/towlower_l.texi.
42632         * doc/posix-functions/towupper_l.texi: Renamed from
42633         doc/glibc-functions/towupper_l.texi.
42634         * doc/posix-functions/uselocale.texi: Renamed from
42635         doc/glibc-functions/uselocale.texi.
42636         * doc/posix-functions/vdprintf.texi: Renamed from
42637         doc/glibc-functions/vdprintf.texi.
42638         * doc/posix-functions/wcpcpy.texi:
42639         Renamed from doc/glibc-functions/wcpcpy.texi.
42640         * doc/posix-functions/wcpncpy.texi: Renamed from
42641         doc/glibc-functions/wcpncpy.texi.
42642         * doc/posix-functions/wcscasecmp.texi: Renamed from
42643         doc/glibc-functions/wcscasecmp.texi.
42644         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42645         doc/glibc-functions/wcscasecmp_l.texi.
42646         * doc/posix-functions/wcscoll_l.texi: Renamed from
42647         doc/glibc-functions/wcscoll_l.texi.
42648         * doc/posix-functions/wcsdup.texi: Renamed from
42649         doc/glibc-functions/wcsdup.texi.
42650         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42651         doc/glibc-functions/wcsncasecmp.texi.
42652         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42653         doc/glibc-functions/wcsncasecmp_l.texi.
42654         * doc/posix-functions/wcsnlen.texi: Renamed from
42655         doc/glibc-functions/wcsnlen.texi.
42656         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42657         doc/glibc-functions/wcsnrtombs.texi.
42658         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42659         doc/glibc-functions/wcsxfrm_l.texi.
42660         * doc/posix-functions/wctrans_l.texi: Renamed from
42661         doc/glibc-functions/wctrans_l.texi.
42662         * doc/posix-functions/wctype_l.texi: Renamed from
42663         doc/glibc-functions/wctype_l.texi.
42664         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42665         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42666         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42667         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42668         these subsections.
42669         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42670         Remove sections.
42671
42672 2008-12-14  Bruno Haible  <bruno@clisp.org>
42673
42674         Update doc for POSIX:2008.
42675         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42676
42677 2008-12-14  Bruno Haible  <bruno@clisp.org>
42678
42679         Update doc for POSIX:2008.
42680         * doc/pastposix-functions/bcmp.texi: Renamed from
42681         doc/posix-functions/bcmp.texi.
42682         * doc/pastposix-functions/bcopy.texi: Renamed from
42683         doc/posix-functions/bcopy.texi.
42684         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42685         doc/posix-functions/bsd_signal.texi.
42686         * doc/pastposix-functions/bzero.texi: Renamed from
42687         doc/posix-functions/bzero.texi.
42688         * doc/pastposix-functions/ecvt.texi: Renamed from
42689         doc/posix-functions/ecvt.texi.
42690         * doc/pastposix-functions/fcvt.texi: Renamed from
42691         doc/posix-functions/fcvt.texi.
42692         * doc/pastposix-functions/ftime.texi: Renamed from
42693         doc/posix-functions/ftime.texi.
42694         * doc/pastposix-functions/gcvt.texi: Renamed from
42695         doc/posix-functions/gcvt.texi.
42696         * doc/pastposix-functions/getcontext.texi: Renamed from
42697         doc/posix-functions/getcontext.texi.
42698         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42699         doc/posix-functions/gethostbyaddr.texi.
42700         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42701         doc/posix-functions/gethostbyname.texi.
42702         * doc/pastposix-functions/getwd.texi: Renamed from
42703         doc/posix-functions/getwd.texi.
42704         * doc/pastposix-functions/h_errno.texi: Renamed from
42705         doc/posix-functions/h_errno.texi.
42706         * doc/pastposix-functions/index.texi: Renamed from
42707         doc/posix-functions/index.texi.
42708         * doc/pastposix-functions/makecontext.texi: Renamed from
42709         doc/posix-functions/makecontext.texi.
42710         * doc/pastposix-functions/mktemp.texi: Renamed from
42711         doc/posix-functions/mktemp.texi.
42712         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42713         doc/posix-functions/pthread_attr_getstackaddr.texi.
42714         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42715         doc/posix-functions/pthread_attr_setstackaddr.texi.
42716         * doc/pastposix-functions/rindex.texi: Renamed from
42717         doc/posix-functions/rindex.texi.
42718         * doc/pastposix-functions/scalb.texi: Renamed from
42719         doc/posix-functions/scalb.texi.
42720         * doc/pastposix-functions/setcontext.texi: Renamed from
42721         doc/posix-functions/setcontext.texi.
42722         * doc/pastposix-functions/swapcontext.texi: Renamed from
42723         doc/posix-functions/swapcontext.texi.
42724         * doc/pastposix-functions/ualarm.texi: Renamed from
42725         doc/posix-functions/ualarm.texi.
42726         * doc/pastposix-functions/usleep.texi: Renamed from
42727         doc/posix-functions/usleep.texi.
42728         * doc/pastposix-functions/vfork.texi: Renamed from
42729         doc/posix-functions/vfork.texi.
42730         * doc/pastposix-functions/wcswcs.texi: Renamed from
42731         doc/posix-functions/wcswcs.texi.
42732         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42733         (Function Substitutes): Update.
42734
42735 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42736
42737         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42738         m4/strerror.m4.
42739
42740 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42741             Bruno Haible  <bruno@clisp.org>
42742
42743         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42744
42745 2008-12-13  Bruno Haible  <bruno@clisp.org>
42746
42747         * modules/strtoull (Depends-on): Remove unistd.
42748
42749 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42750
42751         * modules/strtoull (Depends-on): Add stdlib.
42752
42753 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42754
42755         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42756
42757 2008-12-10  Jim Meyering  <meyering@redhat.com>
42758
42759         gl_ASSERT: don't say assertions are disabled when they're not
42760         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42761         "checking whether to enable assertions... no", when they are in
42762         fact enabled.  This is solely a bug in the output of configure.
42763         In spite of saying "no", NDEBUG was not defined in that case.
42764         Also, as noted by Eric Blake, leave assertions enabled upon
42765         --enable-assert=INVALID.
42766
42767 2008-12-10  Bruno Haible  <bruno@clisp.org>
42768
42769         Change MODULES.html to refer to POSIX:2008 where possible.
42770         * MODULES.html.sh (POSIX2008_URL): New variable.
42771         (posix_headers): Remove sys/timeb, ucontext.
42772         (posix2001_headers): New variable.
42773         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42774         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42775         index, makecontext, mktemp, pthread_attr_getstackaddr,
42776         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42777         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42778         (posix2001_functions): New variable.
42779         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42780         otherwise.
42781
42782 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42783
42784         add missing include to parse-duration.c
42785         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42786         * modules/parse-duration (Depends-on): Add xalloc.
42787
42788         fix sed script reading maint.mk
42789         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42790         (syntax-check-rules): Use it.
42791
42792 2008-12-09  Bruno Haible  <bruno@clisp.org>
42793
42794         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42795         MacOS X 10.4/PowerPC.
42796         Reported by Simon Josefsson.
42797
42798 2008-12-08  Jim Meyering  <meyering@redhat.com>
42799
42800         work around mingw's lack of some S_IF definitions
42801         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42802         Reported by Simon Josefsson.
42803
42804 2008-12-08  Bruno Haible  <bruno@clisp.org>
42805
42806         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42807         applied to variables. Needed on MacOS X 10.4/PowerPC.
42808         Reported by Simon Josefsson.
42809
42810 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42811         and Eric Blake  <ebb9@byu.net>
42812
42813         assert: honor --enable-assert
42814         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42815         order to honor --enable-assert, rather than treating it as a
42816         synonym for --disable-assert.
42817
42818 2008-12-08  Jim Meyering  <meyering@redhat.com>
42819
42820         * lib/posixtm.c: Remove now-useless declaration of mktime.
42821
42822         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42823
42824 2008-12-07  Bruno Haible  <bruno@clisp.org>
42825
42826         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42827         test_once): Mark functions as static.
42828         * tests/test-tls.c (test_tls): Likewise.
42829
42830 2008-12-07  Bruno Haible  <bruno@clisp.org>
42831
42832         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42833         iconv_register_autodetect.
42834
42835 2008-12-07  Jim Meyering  <meyering@redhat.com>
42836
42837         posixtm.c: avoid a warning
42838         * lib/posixtm.c (posixtime): Don't initialize tm0.
42839         It's no longer needed to placate gcc4's -Wuninitialized,
42840         and the attempt to placate would elicit a new warning.
42841
42842         unicodeio.c: mark unused parameters
42843         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42844         (fallback_failure_callback): Likewise.
42845
42846 2008-12-07  Bruno Haible  <bruno@clisp.org>
42847
42848         * gnulib-tool (func_create_testdir): When building the tests
42849         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42850         Reported by Simon Josefsson.
42851
42852 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42853
42854         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42855
42856 2008-12-06  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42859         Suggested by Eric Blake.
42860
42861 2008-12-06  Bruno Haible  <bruno@clisp.org>
42862
42863         Fix a c-stack test failure on MacOS X.
42864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42865         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42866         handler for SIGBUS as well.
42867         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42868         install a signal handler for SIGBUS as well.
42869         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42870
42871 2008-12-06  Bruno Haible  <bruno@clisp.org>
42872
42873         Advocacy documentation.
42874         * doc/gnulib-intro.texi (Benefits): New section.
42875         * doc/gnulib.texi: Update.
42876
42877 2008-12-06  Bruno Haible  <bruno@clisp.org>
42878
42879         Document the 'manywarnings' module.
42880         * doc/manywarnings.texi: New file.
42881         * doc/gnulib.texi: Include it.
42882
42883 2008-12-05  Eric Blake  <ebb9@byu.net>
42884
42885         tests: silence some gcc warnings
42886         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42887         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42888         type mismatches.
42889
42890 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42891             Bruno Haible  <bruno@clisp.org>
42892
42893         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42894
42895 2008-11-29  Jim Meyering  <meyering@redhat.com>
42896
42897         unicodeio.c: mark unused parameters
42898         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42899         (fallback_failure_callback): Likewise.
42900
42901         fts: fix a thinko
42902         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42903         (set_stat_type): Return S_IF*-valued "type" directly.
42904         Prompted by James Youngman's spotting a related bug.
42905         Confirmed by further testing through find.
42906
42907         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42908         * lib/fts.c (D_TYPE): Define.
42909         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42910         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42911         (s_ifmt_shift_bits): New function.
42912         (set_stat_type): New function.
42913         (fts_build): When not calling fts_stat, call set_stat_type
42914         to propagate dirent.d_type info to fts_read caller.
42915         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42916         fts_statp->st_mode type information may be valid.
42917
42918 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42919
42920         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42921         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42922         <sds@gnu.org>.
42923
42924 2008-11-20  Bruno Haible  <bruno@clisp.org>
42925
42926         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42927         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42928         INCLUDE_NEXT.
42929         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42930         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42931         * modules/math (Makefile.am): Substitute
42932         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42933         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42934
42935 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42936             Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/stdint.in.h: Define all type macros so that their expansion is
42939         a single typedef'ed token. Fixes a compilation failure in Boost which
42940         does "using ::int8_t;".
42941
42942 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42943
42944         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42945         gl_MANYWARN_ALL_GCC.
42946         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42947         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42948         * modules/manywarnings: New file.
42949         * MODULES.html.sh: Mention manywarnings module.
42950
42951 2008-11-18  Bruno Haible  <bruno@clisp.org>
42952
42953         * doc/gnulib-tool.texi (Unit tests): New section.
42954
42955 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42956
42957         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42958         paths like 'lib/po/foo.po'.
42959
42960 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42961
42962         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42963         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42964
42965 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42966
42967         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42968         parameter works.
42969
42970 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42971
42972         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42973
42974 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42975
42976         * modules/parse-duration-tests: New file.
42977         * tests/test-parse-duration.sh: New file.
42978         * tests/test-parse-duration.c: New file.
42979
42980         New module 'parse-duration'.
42981         * lib/parse-duration.h: New file.
42982         * lib/parse-duration.c: New file.
42983         * modules/parse-duration: New file.
42984
42985 2008-11-17  Bruno Haible  <bruno@clisp.org>
42986
42987         * tests/test-select-out.sh: Comment out the first pipe test.
42988         Reported by Simon Josefsson.
42989
42990 2008-11-17  Bruno Haible  <bruno@clisp.org>
42991
42992         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42993         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42994         gl_HOSTENT.
42995
42996 2008-11-17  Bruno Haible  <bruno@clisp.org>
42997
42998         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42999         -lnetwork and -lnet. Needed for Haiku and BeOS.
43000
43001 2008-11-16  Bruno Haible  <bruno@clisp.org>
43002
43003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43004
43005 2008-11-16  Bruno Haible  <bruno@clisp.org>
43006
43007         Avoid test failure on Haiku.
43008         * tests/test-fsync.c: Include <errno.h>.
43009         (main): Don't require that fsync (0) fails.
43010
43011 2008-11-15  Bruno Haible  <bruno@clisp.org>
43012
43013         New module 'hostent'.
43014         * modules/hostent: New file.
43015         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43016
43017 2008-11-15  Bruno Haible  <bruno@clisp.org>
43018
43019         New module 'servent'.
43020         * modules/servent: New file.
43021         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43022
43023 2008-11-15  Bruno Haible  <bruno@clisp.org>
43024
43025         Avoid generating same test program with two different rules.
43026         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43027         test-frexp to test-frexp-nolibm.
43028         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43029         test-frexpl to test-frexpl-nolibm.
43030
43031 2008-11-15  Bruno Haible  <bruno@clisp.org>
43032
43033         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43034         $(FREXPL_LIBM).
43035
43036 2008-11-15  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/netdb.in.h: Activate the definitions also when the system's
43039         <netdb.h> has 'struct addrinfo'.
43040         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43041         EAI_OVERFLOW or AI_NUMERICSERV.
43042         * doc/posix-headers/netdb.texi: Document the problem.
43043
43044 2008-11-15  Bruno Haible  <bruno@clisp.org>
43045
43046         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43047
43048         Make the 'sched' module work on platforms where <sched.h> exists but
43049         is incomplete (such as Haiku).
43050         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43051         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43052         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43053         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43054         HAVE_STRUCT_SCHED_PARAM.
43055         * modules/sched (Depends-on): Add include_next.
43056         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43057         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43058         * doc/posix-headers/sched.texi: Document the issue.
43059
43060 2008-11-13  Jim Meyering  <meyering@redhat.com>
43061
43062         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43063         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43064         test would fail due to the difference in the Report bugs to ...
43065         line.  The expected address is empty, "<>", while the actual
43066         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43067
43068 2008-11-12  Bruno Haible  <bruno@clisp.org>
43069
43070         lstat: don't compile lstat.c on systems lacking lstat
43071         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43072         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43073         Reported by Daniel P. Berrange via Jim Meyering.
43074
43075 2008-11-12  Jim Meyering  <meyering@redhat.com>
43076
43077         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43078
43079 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43080
43081         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43082         instead.
43083
43084 2008-11-12  Bruno Haible  <bruno@clisp.org>
43085
43086         * lib/unicodeio.c: Include unistr.h.
43087         (utf8_wctomb): Remove function.
43088         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43089
43090 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43091
43092         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43093         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43094         <bruno@clisp.org>.
43095         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43096
43097 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43098
43099         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43100         * doc/gnulib.texi: Add section for warnings.
43101
43102 2008-11-11  Bruno Haible  <bruno@clisp.org>
43103
43104         * lib/sockets.h: Add a comment.
43105
43106 2008-11-11  Karl Berry  <karl@gnu.org>
43107
43108         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43109
43110 2008-11-11  Eric Blake  <ebb9@byu.net>
43111
43112         fdl.texi: avoid git symlinks
43113         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43114
43115 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43116
43117         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43118
43119 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43120
43121         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43122         (gl_WARN_ADD): Substitute $2 if literal.
43123
43124 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43125
43126         * m4/warning.m4: Remove.
43127
43128 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43129
43130         * m4/warnings.m4: Almost complete rewrite. :-)
43131
43132 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43133
43134         * modules/warnings: New module.
43135         * m4/warnings.m4: New file.
43136         * MODULES.html.sh: Mention warnings module.
43137         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43138         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43139
43140 2008-11-10  Eric Blake  <ebb9@byu.net>
43141
43142         fdl.texi: make a symlink to the latest version
43143         * doc/standards.texi: Revert today's earlier change.
43144         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43145         * doc/fdl.texi: ...and replace this with a symlink to the newer
43146         fdl-1.3.texi.
43147
43148 2008-11-10  Bruno Haible  <bruno@clisp.org>
43149
43150         * tests/test-select-fd.c (main): Accept the result file name as fourth
43151         argument.
43152         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43153         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43154
43155 2008-11-10  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43158         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43159         as autoconf-substituted macros.
43160         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43162         gl_NETDB_H_DEFAULTS. Set these variables.
43163         * modules/netdb (Makefile.am): Substitute these variables.
43164
43165 2008-11-10  Eric Blake  <ebb9@byu.net>
43166
43167         standards.texi: include correct file for FDL 1.3
43168         * doc/standards.texi (GNU Free Documentation License): Change
43169         include file to pull in FDL 1.3, not 1.2.
43170
43171         fdl.texi: revert accidental change to license
43172         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43173
43174 2008-11-10  Bruno Haible  <bruno@clisp.org>
43175
43176         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43177         cross-compiling guesses also when the native compile gives no result.
43178
43179 2008-11-10  Bruno Haible  <bruno@clisp.org>
43180
43181         * lib/spawni.c (__spawni): Force variable into the stack.
43182
43183 2008-11-10  Bruno Haible  <bruno@clisp.org>
43184
43185         Add support for Haiku.
43186         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43187         glibc and BeOS, but also on Haiku.
43188         * lib/fpurge.c (fpurge): Likewise.
43189         * lib/freadable.c (freadable): Likewise.
43190         * lib/freadahead.c (freadahead): Likewise.
43191         * lib/freading.c (freading): Likewise.
43192         * lib/freadptr.c (freadptr): Likewise.
43193         * lib/freadseek.c (freadptrinc): Likewise.
43194         * lib/fseeko.c (rpl_fseeko): Likewise.
43195         * lib/fseterr.c (fseterr): Likewise.
43196         * lib/fwritable.c (fwritable): Likewise.
43197         * lib/fwriting.c (fwriting): Likewise.
43198         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43199
43200 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43201
43202         * lib/config.charset: Treat Haiku like BeOS.
43203
43204 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43205
43206         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43207         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43208
43209 2008-11-08  Bruno Haible  <bruno@clisp.org>
43210
43211         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43212         AC_CACHE_CHECK.
43213
43214 2008-11-08  Bruno Haible  <bruno@clisp.org>
43215
43216         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43217
43218 2008-11-08  Bruno Haible  <bruno@clisp.org>
43219
43220         * tests/test-select-fd.c: New file.
43221         * tests/test-select-in.sh: New file.
43222         * tests/test-select-out.sh: New file.
43223         * tests/test-select-stdin.c: New file.
43224         * modules/select-tests (Files): Add the new files.
43225         (Depends-on): Add gettimeofday.
43226         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43227         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43228         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43229
43230 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43231             Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43234
43235 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43236
43237         * build-aux/pmccabe2html: Added support for C++ source files.
43238
43239 2008-11-05  Ben Pfaff  <blp@gnu.org>
43240
43241         Fix lib/close.c build on Windows.
43242         * modules/close (Files): Add lib/w32sock.h.
43243
43244 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43245
43246         Accept Bison's NEWS format.
43247         * build-aux/announce-gen (print_news_deltas): Tweak
43248         $re_prefix.
43249
43250 2008-11-04  Bruno Haible  <bruno@clisp.org>
43251
43252         * modules/random_r (Maintainer): Add glibc.
43253
43254 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43255
43256         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43257         by karl@freefriends.org (Karl Berry).
43258         * doc/alloca.texi: Likewise.
43259         * doc/c-ctype.texi: Likewise.
43260         * doc/c-strcase.texi: Likewise.
43261         * doc/c-strcaseeq.texi: Likewise.
43262         * doc/c-strcasestr.texi: Likewise.
43263         * doc/c-strstr.texi: Likewise.
43264         * doc/c-strtod.texi: Likewise.
43265         * doc/c-strtold.texi: Likewise.
43266         * doc/ctime.texi: Likewise.
43267         * doc/error.texi: Likewise.
43268         * doc/fdl.texi: Likewise.
43269         * doc/gcd.texi: Likewise.
43270         * doc/getdate.texi: Likewise.
43271         * doc/gnulib-intro.texi: Likewise.
43272         * doc/gnulib-tool.texi: Likewise.
43273         * doc/gnulib.texi: Likewise.
43274         * doc/inet_ntoa.texi: Likewise.
43275         * doc/maintain.texi: Likewise.
43276         * doc/make-stds.texi: Likewise.
43277         * doc/quote.texi: Likewise.
43278         * doc/regexprops-generic.texi: Likewise.
43279         * doc/standards.texi: Likewise.
43280         * doc/verify.texi: Likewise.
43281         * doc/visibility.texi: Likewise.
43282         * doc/gnulib.texi (GNU Free Documentation License): Include
43283         fdl-1.3.texi instead of fdl.texi.
43284
43285 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43286
43287         * doc/fdl-1.3.texi: New file, from
43288         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43289         * modules/fdl-1.3: Add.
43290         * MODULES.html.sh: Add fdl-1.3.
43291
43292 2008-11-03  Bruno Haible  <bruno@clisp.org>
43293
43294         Make determination of absolute name of header file work with AIX xlc.
43295         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43296         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43297         preprocessing.
43298         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43299         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43300
43301 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43302
43303         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43304         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43305         <ludo@gnu.org>.
43306
43307 2008-11-02  Bruno Haible  <bruno@clisp.org>
43308
43309         Mark 'strpbrk' obsolete.
43310         * modules/strpbrk (Status, Notice): New sections.
43311         * modules/strtok_r (Depends-on): Add strpbrk.
43312
43313 2008-11-02  Bruno Haible  <bruno@clisp.org>
43314
43315         Mark 'strdup' obsolete.
43316         * modules/strdup (Status, Notice): New sections.
43317         * modules/findprog (Depends-on): Add strdup.
43318         * modules/getaddrinfo (Depends-on): Likewise.
43319         * modules/localename (Depends-on): Likewise.
43320         * modules/relocatable-lib (Depends-on): Likewise.
43321         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43322         * modules/relocatable-prog (Depends-on): Likewise.
43323         * modules/trim (Depends-on): Likewise.
43324         * modules/unictype/gen-ctype (Depends-on): Likewise.
43325         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43326
43327 2008-11-02  Bruno Haible  <bruno@clisp.org>
43328
43329         Mark 'strcspn' obsolete.
43330         * modules/strcspn (Status, Notice): New sections.
43331
43332 2008-11-02  Bruno Haible  <bruno@clisp.org>
43333
43334         Mark 'rmdir' obsolete.
43335         * modules/rmdir (Status, Notice): New sections.
43336         * modules/clean-temp (Depends-on): Add rmdir.
43337         * modules/openat (Depends-on): Likewise.
43338
43339 2008-11-02  Bruno Haible  <bruno@clisp.org>
43340
43341         Mark 'raise' obsolete.
43342         * modules/raise (Status, Notice): New sections.
43343         (Include): Specify <signal.h>.
43344         * modules/stdio (Depends-on): Add raise.
43345         * modules/write (Depends-on): Likewise.
43346
43347 2008-11-02  Bruno Haible  <bruno@clisp.org>
43348
43349         Mark 'memset' obsolete.
43350         * modules/memset (Status, Notice): New sections.
43351
43352 2008-11-02  Bruno Haible  <bruno@clisp.org>
43353
43354         Mark 'memmove' obsolete.
43355         * modules/memmove (Status, Notice): New sections.
43356         * modules/argp (Depends-on): Add memmove.
43357         * modules/argz (Depends-on): Likewise.
43358         * modules/canonicalize (Depends-on): Likewise.
43359         * modules/canonicalize-lgpl (Depends-on): Likewise.
43360         * modules/fts (Depends-on): Likewise.
43361         * modules/getcwd (Depends-on): Likewise.
43362         * modules/human (Depends-on): Likewise.
43363         * modules/regex (Depends-on): Likewise.
43364         * modules/striconveh (Depends-on): Likewise.
43365         * modules/trim (Depends-on): Likewise.
43366         * modules/unistr/u8-move (Depends-on): Likewise.
43367         * modules/unistr/u16-move (Depends-on): Likewise.
43368         * modules/unistr/u32-move (Depends-on): Likewise.
43369
43370 2008-11-02  Bruno Haible  <bruno@clisp.org>
43371
43372         Mark 'memcpy' obsolete.
43373         * modules/memcpy (Status, Notice): New sections.
43374
43375 2008-11-02  Bruno Haible  <bruno@clisp.org>
43376
43377         Mark 'memcmp' obsolete.
43378         * modules/memcmp (Status, Notice): New sections.
43379         * modules/argmatch (Depends-on): Add memchr.
43380         * modules/backupfile (Depends-on): Likewise.
43381         * modules/c-strcasestr (Depends-on): Likewise.
43382         * modules/crypto/des (Depends-on): Likewise.
43383         * modules/csharpcomp (Depends-on): Likewise.
43384         * modules/fnmatch (Depends-on): Likewise.
43385         * modules/git-merge-changelog (Depends-on): Likewise.
43386         * modules/isnand (Depends-on): Likewise.
43387         * modules/isnand-nolibm (Depends-on): Likewise.
43388         * modules/isnanf (Depends-on): Likewise.
43389         * modules/isnanf-nolibm (Depends-on): Likewise.
43390         * modules/isnanl (Depends-on): Likewise.
43391         * modules/isnanl-nolibm (Depends-on): Likewise.
43392         * modules/mbchar (Depends-on): Likewise.
43393         * modules/memcoll (Depends-on): Likewise.
43394         * modules/quotearg (Depends-on): Likewise.
43395         * modules/regex (Depends-on): Likewise.
43396         * modules/relocatable-prog (Depends-on): Likewise.
43397         * modules/same (Depends-on): Likewise.
43398         * modules/signbit (Depends-on): Likewise.
43399         * modules/strcasestr-simple (Depends-on): Likewise.
43400         * modules/unictype/gen-ctype (Depends-on): Likewise.
43401         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43402         * modules/uniname/uniname (Depends-on): Likewise.
43403         * modules/unistr/u8-cmp (Depends-on): Likewise.
43404
43405 2008-11-02  Bruno Haible  <bruno@clisp.org>
43406
43407         Mark 'memchr' obsolete.
43408         * modules/memchr (Status, Notice): New sections.
43409         * modules/argp (Depends-on): Add memchr.
43410         * modules/base64 (Depends-on): Likewise.
43411         * modules/c-strcasestr (Depends-on): Likewise.
43412         * modules/chdir-long (Depends-on): Likewise.
43413         * modules/fnmatch (Depends-on): Likewise.
43414         * modules/getsubopt (Depends-on): Likewise.
43415         * modules/git-merge-changelog (Depends-on): Likewise.
43416         * modules/glob (Depends-on): Likewise.
43417         * modules/strcasestr-simple (Depends-on): Likewise.
43418         * modules/strnlen (Depends-on): Likewise.
43419
43420 2008-11-02  Bruno Haible  <bruno@clisp.org>
43421
43422         Mark 'atexit' obsolete.
43423         * modules/atexit (Status, Notice): New sections.
43424         * modules/chdir-long (Depends-on): Add atexit.
43425         * modules/wait-process (Depends-on): Likewise.
43426
43427 2008-11-02  Bruno Haible  <bruno@clisp.org>
43428
43429         * gnulib-tool: New option --with-obsolete.
43430         (func_usage): Document it.
43431         (func_modules_transitive_closure): Drop obsolete dependencies if
43432         incobsolete is not true.
43433         (func_import): Read and save the incobsolete variable to the cache.
43434
43435 2008-11-02  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43438         * gnulib-tool: New option --extract-status.
43439         (func_usage): Document it.
43440         (sed_extract_prog): Recognize it.
43441         (func_get_status): New function.
43442
43443 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43444
43445         * modules/sockets (License): Change from LGPL to LGPLv2+.
43446
43447 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43448
43449         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43450
43451 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43452
43453         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43454         Mention times and sys_times.
43455         * modules/sys_times, modules/sys_times-tests: New modules.
43456         * modules/times, modules/times-tests: Likewise
43457         * m4/sys_times_h.m4: New file.
43458         * lib/sys_times.in.h: Likewise
43459         * lib/times.c: Likewise.
43460         * tests/test-sys_times.c: Likewise.
43461         * tests/test-times.c: Likewise.
43462         * doc/posix-headers/sys_times.texi: Update.
43463         * doc/posix-functions/times.texi: Update.
43464
43465 2008-10-28  Jim Meyering  <meyering@redhat.com>
43466
43467         * modules/tempname (Depends-on): Add lstat.
43468
43469         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43470
43471 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43472
43473         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43474         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43475         using idiom used elsewhere in gnulib.
43476
43477 2008-10-27  Jim Meyering  <meyering@redhat.com>
43478
43479         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43480
43481 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43482
43483         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43484         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43485         programs.
43486         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43487
43488 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43489
43490         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43491
43492 2008-10-27  Bruno Haible  <bruno@clisp.org>
43493
43494         * tests/test-lstat.c: Include <stdio.h>.
43495
43496 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43497
43498         * modules/lstat-tests: New module.
43499         * tests/test-lstat.c: New file.
43500
43501 2008-10-26  Jim Meyering  <meyering@redhat.com>
43502
43503         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43504
43505 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43506             Bruno Haible  <bruno@clisp.org>
43507
43508         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43509         * modules/configmake (Include): Add a note that the include must come
43510         after all system headers.
43511         * lib/javaversion.c: Include configmake.h after all other includes.
43512
43513 2008-10-26  Bruno Haible  <bruno@clisp.org>
43514
43515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43516         HAVE_STRUCT_RANDOM_DATA to 1.
43517         (gl_STDLIB_H): Simplify.
43518
43519 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43520
43521         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43522         substitute HAVE_STRUCT_RANDOM_DATA.
43523         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43524         random_data.
43525         * modules/stdlib (Makefile.am): Substitute
43526         HAVE_STRUCT_RANDOM_DATA.
43527
43528 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43529
43530         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43531         * doc/gnulib-intro.texi (Copyright): Likewise.
43532
43533 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43534
43535         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43536         findings.
43537
43538 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43539             Bruno Haible  <bruno@clisp.org>
43540
43541         * lib/unistd.in.h: Include <winsock2.h>.
43542         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43543         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43544         Provide dummy declarations.
43545         (gethostname): Override.
43546         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43547         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43548         gl_PREREQ_SYS_H_WINSOCK2.
43549         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43550         * doc/posix-functions/gethostname.texi: More details.
43551
43552 2008-10-25  Bruno Haible  <bruno@clisp.org>
43553
43554         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43555         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43556         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43557
43558         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43559         here ...
43560         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43561         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43562         gl_UNISTD_H_DEFAULTS.
43563
43564 2008-10-25  Eric Blake  <ebb9@byu.net>
43565
43566         signbit: avoid spurious compiler failure
43567         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43568         declarations inside function.
43569
43570 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43571             Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43574         * modules/random_r (Depends-on): Add stdint.
43575
43576 2008-10-24  Bruno Haible  <bruno@clisp.org>
43577
43578         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43579         Eggert.
43580         * modules/strerror (License): Likewise.
43581
43582 2008-10-24  Jim Meyering  <meyering@redhat.com>
43583
43584         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43585         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43586
43587 2008-10-24  Eric Blake  <ebb9@byu.net>
43588
43589         getgroups: fix compilation when getgroups is available
43590         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43591         but with <config.h> override of getgroups disabled.
43592
43593 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43594
43595         * doc/gnulib.texi (Header files): Add note about C++ problems.
43596         Explained by Bruno Haible <bruno@clisp.org>.
43597
43598 2008-10-23  Bruno Haible  <bruno@clisp.org>
43599
43600         Define a dummy SA_NODEFER macro on Interix.
43601         * lib/signal.in.h (SA_NODEFER): Define fallback.
43602         Reported by Aleksey Cheusov <cheusov@tut.by> via
43603         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43604
43605 2008-10-23  Bruno Haible  <bruno@clisp.org>
43606
43607         * modules/freadahead (License): Change to LGPLv2+.
43608         Suggested by Simon Josefsson.
43609
43610 2008-10-23  Jim Meyering  <meyering@redhat.com>
43611
43612         random_r: new module
43613         * modules/random_r: New file.
43614         * m4/random_r.m4: New file.
43615         * lib/random_r.c: New file, from glibc.
43616         * modules/random_r-tests: New file.
43617         * tests/test-random_r.c: New file.
43618         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43619          Declare.
43620         (RAND_MAX): Define.
43621         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43622         * modules/stdlib: Substitute them, too.
43623         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43624         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43625         * doc/glibc-functions/random_r.texi: Likewise.
43626         * doc/glibc-functions/setstate_r.texi: Likewise.
43627         * doc/glibc-functions/srandom_r.texi: Likewise.
43628         * config/srclist.txt: Mention it.
43629
43630 2008-10-23  David Lutterkort  <lutter@redhat.com>
43631
43632         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43633         link requirement
43634
43635 2008-10-23  Jim Meyering  <meyering@redhat.com>
43636
43637         selinux-h: mark parameters of stub functions as intentionally unused
43638         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43639         * lib/se-context.in.h: Likewise.
43640
43641 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43642
43643         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43644
43645 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43646
43647         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43648
43649 2008-10-22  Eric Blake  <ebb9@byu.net>
43650
43651         glthread/thread: avoid compiler warning
43652         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43653         Add unreachable abort to silence compiler.
43654
43655 2008-10-22  Eric Blake  <ebb9@byu.net>
43656
43657         netdb: also supply struct addrinfo for cygwin 1.5.x
43658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43659         older cygwin.
43660         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43661         cygwin.
43662         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43663
43664 2008-10-22  Bruno Haible  <bruno@clisp.org>
43665
43666         * users.txt: Update entry about pspp.
43667
43668 2008-10-21  Bruno Haible  <bruno@clisp.org>
43669
43670         Simplification.
43671         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43672         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43673
43674         Simplification.
43675         * lib/ioctl.c (ioctl): Don't undefine.
43676         * lib/socket.c (socket): Don't undefine.
43677
43678         Remove unused module indicator macros.
43679         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43680         GNULIB_$1 as a C macro.
43681
43682         * doc/posix-functions/close.texi: Undo last change.
43683         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43684         Windows platforms.
43685
43686 2008-10-21  Bruno Haible  <bruno@clisp.org>
43687
43688         Add gethostname() declaration to <unistd.h>.
43689         * lib/unistd.in.h (gethostname): New declaration.
43690         * lib/gethostname.c: Include <unistd.h>.
43691         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43692         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43694         and HAVE_GETHOSTNAME.
43695         * modules/gethostname (Depends-on): Add unistd.
43696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43697         (Include): Specify <unistd.h>.
43698         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43699         HAVE_GETHOSTNAME.
43700         * tests/test-gethostname.c: Include <unistd.h> first.
43701
43702 2008-10-21  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43705         * modules/select-tests (Depends-on): Likewise.
43706         Reported by Simon Josefsson.
43707
43708 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43709
43710         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43711         * lib/accept.c: New file, based on winsock.c.
43712         * lib/bind.c: New file, based on winsock.c.
43713         * lib/connect.c: New file, based on winsock.c.
43714         * lib/getpeername.c: New file, based on winsock.c.
43715         * lib/getsockname.c: New file, based on winsock.c.
43716         * lib/getsockopt.c: New file, based on winsock.c.
43717         * lib/ioctl.c: New file, based on winsock.c.
43718         * lib/listen.c: New file, based on winsock.c.
43719         * lib/recv.c: New file, based on winsock.c.
43720         * lib/recvfrom.c: New file, based on winsock.c.
43721         * lib/send.c: New file, based on winsock.c.
43722         * lib/sendto.c: New file, based on winsock.c.
43723         * lib/setsockopt.c: New file, based on winsock.c.
43724         * lib/shutdown.c: New file, based on winsock.c.
43725         * lib/socket.c: New file, based on winsock.c.
43726         * lib/w32sock.h: New file, based on winsock.c.
43727         * lib/winsock.c: Remove file.
43728         * modules/accept: Likewise.
43729         * modules/bind: Likewise.
43730         * modules/connect: Likewise.
43731         * modules/getpeername: Likewise.
43732         * modules/getsockname: Likewise.
43733         * modules/getsockopt: Likewise.
43734         * modules/ioctl: Likewise.
43735         * modules/listen: Likewise.
43736         * modules/recv: Likewise.
43737         * modules/recvfrom: Likewise.
43738         * modules/send: Likewise.
43739         * modules/sendto: Likewise.
43740         * modules/setsockopt: Likewise.
43741         * modules/shutdown: Likewise.
43742         * modules/socket: Use socket.c instead of winsock.c.
43743         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43744         * doc/posix-functions/accept.texi: Doc fix.
43745         * doc/posix-functions/bind.texi: Doc fix.
43746         * doc/posix-functions/close.texi: Doc fix.
43747         * doc/posix-functions/connect.texi: Doc fix.
43748         * doc/posix-functions/getpeername.texi: Doc fix.
43749         * doc/posix-functions/getsockname.texi: Doc fix.
43750         * doc/posix-functions/getsockopt.texi: Doc fix.
43751         * doc/posix-functions/ioctl.texi: Doc fix.
43752         * doc/posix-functions/listen.texi: Doc fix.
43753         * doc/posix-functions/recv.texi: Doc fix.
43754         * doc/posix-functions/recvfrom.texi: Doc fix.
43755         * doc/posix-functions/send.texi: Doc fix.
43756         * doc/posix-functions/sendto.texi: Doc fix.
43757         * doc/posix-functions/setsockopt.texi: Doc fix.
43758         * doc/posix-functions/shutdown.texi: Doc fix.
43759         * doc/posix-functions/socket.texi: Doc fix.
43760
43761 2008-10-20  Bruno Haible  <bruno@clisp.org>
43762
43763         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43764         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43765         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43766         as an alias for SIGABRT.
43767         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43768         (sigaction): Map it to SIGABRT.
43769         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43770
43771 2008-10-20  Bruno Haible  <bruno@clisp.org>
43772
43773         * lib/fts.c: Don't include lstat.h.
43774         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43775
43776         Move the lstat() declaration to <sys/stat.h>.
43777         * lib/lstat.h: Remove file.
43778         * lib/sys_stat.in.h: Add special invocation convention.
43779         (lstat): New declaration.
43780         * lib/lstat.c (orig_lstat): New function.
43781         (rpl_lstat): Use orig_lstat instead of lstat.
43782         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43783         AC_C_INLINE. Set REPLACE_LSTAT.
43784         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43785         and REPLACE_LSTAT.
43786         * modules/lstat (Files): Remove lib/lstat.h.
43787         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43788         (Include): Specify <sys/stat.h> instead of lstat.h.
43789         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43790         REPLACE_LSTAT.
43791         * NEWS: Mention the change.
43792
43793 2008-10-20  Bruno Haible  <bruno@clisp.org>
43794
43795         * modules/posix_spawn-tests: New file.
43796         * tests/test-posix_spawn3.c: New file.
43797
43798 2008-10-20  Bruno Haible  <bruno@clisp.org>
43799
43800         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43801         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43802         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43803         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43804         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43805
43806 2008-10-20  Bruno Haible  <bruno@clisp.org>
43807
43808         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43809         of posix_spawn on AIX 5.3.
43810
43811 2008-10-20  Bruno Haible  <bruno@clisp.org>
43812
43813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43814
43815 2008-10-20  Bruno Haible  <bruno@clisp.org>
43816
43817         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43818         of AC_LANG_PROGRAM.
43819
43820 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43821
43822         * lib/netdb.in.h: Don't define GNU specific constants until they
43823         are supported or needed.  Reported by Bruno Haible
43824         <bruno@clisp.org>.
43825
43826 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43827
43828         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43829
43830 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43831
43832         * lib/getaddrinfo.h: Remove file.
43833         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43834         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43835         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43836         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43837         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43838         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43839         * tests/test-getaddrinfo.c: Likewise.
43840         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43841         * NEWS: Mention change.
43842
43843 2008-10-19  Bruno Haible  <bruno@clisp.org>
43844
43845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43846
43847 2008-10-19  Bruno Haible  <bruno@clisp.org>
43848
43849         * lib/wait-process.c: Include simply <sys/wait.h>.
43850         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43851         WIFSTOPPED): Remove fallback definitions.
43852         * modules/wait-process (Depends-on): Add sys_wait.
43853
43854         New module 'sys_wait'.
43855         * modules/sys_wait: New file.
43856         * lib/sys_wait.in.h: New file, partially copied from
43857         lib/wait-process.c.
43858         * m4/sys_wait_h.m4: New file.
43859         * doc/posix-headers/sys_wait.texi: Mention the new module.
43860
43861 2008-10-19  Bruno Haible  <bruno@clisp.org>
43862
43863         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43864
43865 2008-10-19  Bruno Haible  <bruno@clisp.org>
43866
43867         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43868         * lib/wait-process.c (WAIT_T): Remove type.
43869         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43870         (wait_subprocess): Update.
43871
43872 2008-10-19  Bruno Haible  <bruno@clisp.org>
43873
43874         New module 'atoll'.
43875         * modules/atoll: New file.
43876         * lib/stdlib.in.h (atoll): New declaration.
43877         * lib/atoll.c: New file, from glibc with modifications.
43878         * m4/atoll.m4: New file.
43879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43880         HAVE_ATOLL.
43881         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43882         * doc/posix-functions/atoll.texi: Mention the new module.
43883
43884 2008-10-19  Bruno Haible  <bruno@clisp.org>
43885
43886         Add strtoull() declaration to <stdlib.h>.
43887         * lib/stdlib.in.h (strtoull): New declaration.
43888         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43889         Set HAVE_STRTOULL.
43890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43891         HAVE_STRTOULL.
43892         * modules/strtoull (Depends-on): Add stdlib.
43893         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43894         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43895         HAVE_STRTOULL.
43896
43897 2008-10-19  Bruno Haible  <bruno@clisp.org>
43898
43899         Add strtoll() declaration to <stdlib.h>.
43900         * lib/stdlib.in.h (strtoll): New declaration.
43901         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43902         Set HAVE_STRTOLL.
43903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43904         HAVE_STRTOLL.
43905         * modules/strtoll (Depends-on): Add stdlib.
43906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43907         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43908
43909 2008-10-19  Bruno Haible  <bruno@clisp.org>
43910
43911         * modules/bcopy (Depends-on): Add strings.
43912         (Include): Specify <strings.h>.
43913
43914 2008-10-19  Bruno Haible  <bruno@clisp.org>
43915
43916         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43917
43918 2008-10-19  Bruno Haible  <bruno@clisp.org>
43919
43920         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43921         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43922         mingw.
43923
43924 2008-10-19  Bruno Haible  <bruno@clisp.org>
43925
43926         * lib/atanl.c: Don't include isnanl.h.
43927         * lib/cosl.c: Likewise.
43928         * lib/ldexpl.c: Likewise.
43929         * lib/logl.c: Likewise.
43930         * lib/sinl.c: Likewise.
43931         * lib/sqrtl.c: Likewise.
43932         * lib/tanl.c: Likewise.
43933
43934         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43935         * lib/isnanf.h: Remove file.
43936         * lib/isnand.h: Remove file.
43937         * lib/isnanl.h: Remove file.
43938         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43939         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43940         macros.
43941         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43942         HAVE_ISNANF, don't define it as a C macro.
43943         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43944         HAVE_ISNAND, don't define it as a C macro.
43945         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43946         HAVE_ISNANL, don't define it as a C macro.
43947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43948         HAVE_ISNAN[FDL].
43949         * modules/isnanf (Files): Remove lib/isnanf.h.
43950         (Depends-on): Add math.
43951         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43952         (Include): Specify <math.h> instead of isnanf.h.
43953         * modules/isnand (Files): Remove lib/isnand.h.
43954         (Depends-on): Add math.
43955         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43956         (Include): Specify <math.h> instead of isnand.h.
43957         * modules/isnanl (Files): Remove lib/isnanl.h.
43958         (Depends-on): Add math.
43959         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43960         (Include): Specify <math.h> instead of isnanl.h.
43961         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43962         HAVE_ISNAN[FDL].
43963         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43964         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43965         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43966         * NEWS: Mention the change.
43967
43968 2008-10-18  Bruno Haible  <bruno@clisp.org>
43969
43970         Add getusershell(), setusershell(), endusershell() declarations to
43971         <unistd.h>.
43972         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43973         declarations.
43974         * lib/getusershell.c: Include unistd.h.
43975         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43976         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43977         HAVE_GETUSERSHELL.
43978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43979         and HAVE_GETUSERSHELL.
43980         * modules/getusershell (Depends-on): Add unistd, extensions.
43981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43982         (Include): Specify <unistd.h>.
43983         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43984         HAVE_GETUSERSHELL.
43985
43986 2008-10-18  Bruno Haible  <bruno@clisp.org>
43987
43988         Add a getloadavg() declaration to <stdlib.h>.
43989         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43990         getloadavg declaration.
43991         (getloadavg): New declaration.
43992         * lib/getloadavg.c: Include <stdlib.h> first.
43993         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43994         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43995         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43997         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43998         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43999         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44000         (Include): Specify <stdlib.h>.
44001         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44002         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44003
44004 2008-10-18  Bruno Haible  <bruno@clisp.org>
44005
44006         * lib/dirchownmod.c: Don't include lchmod.h.
44007
44008         Move the lchmod() declaration to <sys/stat.h>.
44009         * lib/lchmod.h: Remove file.
44010         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44011         (lchmod): New declaration, moved here from lib/lchown.h.
44012         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44013         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44015         and HAVE_LCHMOD.
44016         * modules/lchmod (Files): Remove lib/lchmod.h.
44017         (Depends-on): Add sys_stat, extensions.
44018         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44019         (Include): Specify <sys/stat.h> instead of lchmod.h.
44020         * modules/sys_stat (Depends-on): Add link-warning.
44021         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44022         definition of GL_LINK_WARNING.
44023         * NEWS: Mention the change.
44024
44025 2008-10-18  Bruno Haible  <bruno@clisp.org>
44026
44027         * lib/fchdir.c: Don't include dirfd.h.
44028         * lib/fts.c: Likewise.
44029         * lib/getcwd.c: Likewise.
44030         * lib/glob.c: Likewise.
44031
44032         Move the dirfd() declaration to <dirent.h>.
44033         * lib/dirfd.h: Remove file.
44034         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44035         (dirfd): New declaration.
44036         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44037         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44038         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44039         HAVE_DECL_DIRFD.
44040         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44041         HAVE_DECL_DIRFD.
44042         * modules/dirfd (Files): Remove lib/dirfd.h.
44043         (Depends-on): Add dirent, extensions.
44044         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44045         (Include): Specify <dirent.h> instead of dirfd.h.
44046         * modules/dirent (Depends-on): Add link-warning.
44047         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44048         definition of GL_LINK_WARNING.
44049         * NEWS: Mention the change.
44050
44051 2008-10-18  Bruno Haible  <bruno@clisp.org>
44052
44053         Move the euidaccess() declaration to <unistd.h>.
44054         * lib/euidaccess.h: Remove file.
44055         * lib/unistd.in.h (euidaccess): New declaration.
44056         * lib/euidaccess.c: Don't include euidaccess.h.
44057         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44058         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44060         and HAVE_EUIDACCESS.
44061         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44062         (Depends-on): Add unistd.
44063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44064         (Include): Specify <unistd.h> instead of euidaccess.h.
44065         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44066         HAVE_EUIDACCESS.
44067         * NEWS: Mention the change.
44068
44069 2008-10-18  Bruno Haible  <bruno@clisp.org>
44070
44071         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44072
44073         Move the getdomainname() declaration to <unistd.h>.
44074         * lib/getdomainname.h: Remove file.
44075         * lib/unistd.in.h (getdomainname): New declaration.
44076         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44077         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44078         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44079         HAVE_GETDOMAINNAME.
44080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44081         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44082         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44083         (Depends-on): Add unistd, extensions.
44084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44085         (Includes): Specify <unistd.h> instead of getdomainname.h.
44086         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44087         HAVE_GETDOMAINNAME.
44088         * NEWS: Mention the change.
44089
44090 2008-10-18  Bruno Haible  <bruno@clisp.org>
44091
44092         * modules/dirent: New file.
44093         * m4/dirent_h.m4: New file.
44094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44095         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44096         * modules/fchdir (Files): Remove lib/dirent.in.h.
44097         (Depends-on): Add dirent.
44098         (Makefile.am): Move rules to modules/dirent.
44099         * doc/posix-headers/dirent.texi: Mention the new module.
44100
44101 2008-10-18  Bruno Haible  <bruno@clisp.org>
44102
44103         Avoid -Wunused-parameter warnings in public gnulib header files.
44104         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44105         macro.
44106         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44107
44108 2008-10-18  Bruno Haible  <bruno@clisp.org>
44109
44110         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44111         * doc/glibc-functions/error.texi: Mention the module 'error'.
44112         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44113         * doc/glibc-functions/getdomainname.texi: Mention the module
44114         'getdomainname'.
44115         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44116         * doc/glibc-functions/getpagesize.texi: Mention the module
44117         'getpagesize'.
44118         * doc/glibc-functions/getusershell.texi: Mention the module
44119         'getusershell'.
44120         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44121         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44122         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44123         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44124         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44125         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44126         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44127         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44128         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44129         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44130         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44131         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44132         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44133         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44134
44135 2008-10-17  Bruno Haible  <bruno@clisp.org>
44136
44137         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44138         HP-UX and IRIX, use -0.0L.
44139         * tests/test-ceill.c (minus_zero): Likewise.
44140         * tests/test-floorl.c (minus_zero): Likewise.
44141         * tests/test-frexpl.c (minus_zero): Likewise.
44142         * tests/test-isnan.c (minus_zerol): Likewise.
44143         * tests/test-isnanl.h (minus_zero): Likewise.
44144         * tests/test-ldexpl.c (minus_zero): Likewise.
44145         * tests/test-roundl.c (minus_zero): Likewise.
44146         * tests/test-signbit.c (minus_zerol): Likewise.
44147         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44148         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44149         * tests/test-truncl.c (minus_zero): Likewise.
44150         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44151         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44152         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44153         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44154
44155 2008-10-17  Bruno Haible  <bruno@clisp.org>
44156
44157         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44158         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44159         that it gets activated only for gcc >= 3.0.
44160         * lib/dirent.in.h: Likewise.
44161         * lib/errno.in.h: Likewise.
44162         * lib/fcntl.in.h: Likewise.
44163         * lib/float.in.h: Likewise.
44164         * lib/iconv.in.h: Likewise.
44165         * lib/inttypes.in.h: Likewise.
44166         * lib/locale.in.h: Likewise.
44167         * lib/math.in.h: Likewise.
44168         * lib/netdb.in.h: Likewise.
44169         * lib/netinet_in.in.h: Likewise.
44170         * lib/search.in.h: Likewise.
44171         * lib/signal.in.h: Likewise.
44172         * lib/spawn.in.h: Likewise.
44173         * lib/stdarg.in.h: Likewise.
44174         * lib/stdint.in.h: Likewise.
44175         * lib/stdio.in.h: Likewise.
44176         * lib/stdlib.in.h: Likewise.
44177         * lib/string.in.h: Likewise.
44178         * lib/strings.in.h: Likewise.
44179         * lib/sys_file.in.h: Likewise.
44180         * lib/sys_ioctl.in.h: Likewise.
44181         * lib/sys_select.in.h: Likewise.
44182         * lib/sys_socket.in.h: Likewise.
44183         * lib/sys_stat.in.h: Likewise.
44184         * lib/sys_time.in.h: Likewise.
44185         * lib/sysexits.in.h: Likewise.
44186         * lib/time.in.h: Likewise.
44187         * lib/unistd.in.h: Likewise.
44188         * lib/wchar.in.h: Likewise.
44189         * lib/wctype.in.h: Likewise.
44190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44191
44192 2008-10-17  Jim Meyering  <meyering@redhat.com>
44193
44194         ignore-value: don't depend on inline module
44195         * modules/ignore-value (Depends-on): Remove 'inline'.
44196         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44197         Suggestion from Bruno Haible.
44198
44199 2008-10-17  Bruno Haible  <bruno@clisp.org>
44200
44201         New implementation of condition variables for Win32.
44202         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44203         (gl_linked_waitqueue_t): New type.
44204         (gl_cond_t): Use it.
44205         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44206         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44207         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44208         (glthread_cond_init_func, glthread_cond_wait_func,
44209         glthread_cond_timedwait_func, glthread_cond_signal_func,
44210         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44211         Reimplemented on the basis of gl_linked_waitqueue_t.
44212         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44213         gl_waitqueue_t.
44214         (gl_rwlock_t): Update.
44215         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44216
44217 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44218
44219         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44220         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44221
44222 2008-10-17  Jim Meyering  <meyering@redhat.com>
44223
44224         ignore-value: new module
44225         * modules/ignore-value: New file.
44226         * lib/ignore-value.h: New file.
44227         * MODULES.html.sh (Compiler warning management): New section,
44228         just for this module.  More to come.
44229
44230 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44231
44232         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44233         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44234         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44235
44236 2008-10-16  Jim Meyering  <meyering@redhat.com>
44237
44238         openat-die.c: avoid 'no previous prototype' warning
44239         * lib/openat-die.c: Include "openat.h".
44240         Reported by Reuben Thomas <rrt@sc3d.org>.
44241
44242 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44243
44244         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44245         * lib/netdb.in.h: Fix typo.
44246         Reported by Bruno Haible  <bruno@clisp.org>
44247
44248         * lib/netdb.in.h: Include sys/socket.h for platforms without
44249         netdb.h, to get structures like hostent on MinGW.
44250         * modules/netdb (Depends-on): Add sys_socket.
44251
44252 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44253
44254         * modules/netdb, modules/netdb-tests: New file.
44255         * m4/netdb_h.m4: New file.
44256         * lib/netdb.in.h: Add, currently just an empty file pending
44257         definitions.
44258         * tests/test-netdb.c: New file.
44259         * doc/posix-headers/netdb.texi: Mention that we replace it if
44260         needed.
44261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44262         netdb.
44263
44264 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44265
44266         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44267         with code.
44268
44269 2008-10-13  Bruno Haible  <bruno@clisp.org>
44270
44271         * lib/glthread/cond.c (glthread_cond_wait_func,
44272         glthread_cond_timedwait_func): Add a comment.
44273
44274 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44275
44276         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44277         * tests/test-select.c: Likewise,
44278
44279 2008-10-13  Bruno Haible  <bruno@clisp.org>
44280
44281         * lib/glthread/cond.c (glthread_cond_wait_func,
44282         glthread_cond_timedwait_func): Fix variable name.
44283         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44284
44285 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44286
44287         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44288         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44289         struct sockaddr.sa_len.
44290         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44291
44292 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44293
44294         * build-aux/pmccabe2html: Add css and css_url parameters.
44295
44296 2008-10-12  Bruno Haible  <bruno@clisp.org>
44297
44298         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44299         calling aclx_get.
44300         Reported by Rainer Tammer <tammer@tammer.net>.
44301
44302 2008-10-12  Bruno Haible  <bruno@clisp.org>
44303
44304         Use msvcrt aware primitives for creation/termination of Win32 threads.
44305         * lib/glthread/thread.c: Include <process.h>.
44306         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44307         (wrapper_func): Update signature.
44308         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44309
44310 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44311             Bruno Haible  <bruno@clisp.org>
44312
44313         Provide a Win32 implementation of the 'cond' module.
44314         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44315         * lib/glthread/cond.c (glthread_cond_init_func,
44316         glthread_cond_wait_func, glthread_cond_timedwait_func,
44317         glthread_cond_signal_func, glthread_cond_broadcast_func,
44318         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44319         * modules/cond (Dependencies): Add gettimeofday.
44320
44321 2008-10-11  Bruno Haible  <bruno@clisp.org>
44322
44323         Make sleep work on older versions of mingw.
44324         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44325         only whether it exists.
44326         * doc/posix-functions/sleep.texi: Mention the problem with older
44327         versions of mingw.
44328
44329 2008-10-11  Bruno Haible  <bruno@clisp.org>
44330
44331         New module 'shutdown'.
44332         * modules/shutdown: New file.
44333         * lib/sys_socket.in.h (shutdown): New declaration.
44334         * lib/winsock.c (shutdown): New function.
44335         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44336         GNULIB_SHUTDOWN.
44337         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44338         * doc/posix-functions/shutdown.texi: Document the new module.
44339
44340 2008-10-11  Jim Meyering  <meyering@redhat.com>
44341
44342         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44343
44344 2008-10-11  Bruno Haible  <bruno@clisp.org>
44345
44346         New module 'fclose'.
44347         * modules/fclose: New file.
44348         * lib/stdio.in.h (fclose): New declaration.
44349         * lib/fclose.c: New file.
44350         * m4/fclose.m4: New file.
44351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44352         REPLACE_FCLOSE.
44353         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44354         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44355         REPLACE_FCLOSE.
44356         * modules/close (Depends-on): fclose.
44357         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44358
44359 2008-10-11  Bruno Haible  <bruno@clisp.org>
44360
44361         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44362         set errno and don't call _close.
44363
44364 2008-10-10  Bruno Haible  <bruno@clisp.org>
44365
44366         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44367         ACL, not afterwards. Fixes test failure on Cygwin.
44368
44369 2008-10-09  Ben Pfaff  <blp@gnu.org>
44370
44371         * build-aux/announce-gen: Fix gnulib version related part of usage
44372         message.  Die with a useful error message if no tarballs are
44373         found.
44374
44375 2008-10-10  Jim Meyering  <meyering@redhat.com>
44376
44377         bootstrap: use git's --depth=N option only if it's supported
44378         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44379         recognize the --depth option.  Reported by Pádraig Brady.
44380
44381 2008-10-09  Bruno Haible  <bruno@clisp.org>
44382
44383         New module 'ioctl'.
44384         * modules/ioctl: New file.
44385         * lib/sys_socket.in.h (ioctl): Remove declaration.
44386         * lib/winsock.c: Include <sys/ioctl.h>.
44387         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44388         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44389         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44390         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44391         * doc/posix-functions/ioctl.texi: Mention the new module.
44392
44393 2008-10-09  Bruno Haible  <bruno@clisp.org>
44394
44395         New module 'sys_ioctl'.
44396         * lib/sys_ioctl.in.h: New file.
44397         * m4/sys_ioctl_h.m4: New file.
44398         * modules/sys_ioctl: New file.
44399         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44400
44401 2008-10-09  Bruno Haible  <bruno@clisp.org>
44402
44403         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44404         * lib/winsock.c: Include <stdarg.h>.
44405         (rpl_ioctl): Change to second argument 'int' and then varargs.
44406
44407 2008-10-09  Bruno Haible  <bruno@clisp.org>
44408
44409         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44410         when the sys_socket module is present and the system has <winsock2.h>.
44411
44412 2008-10-09  Bruno Haible  <bruno@clisp.org>
44413
44414         * doc/posix-functions/close.texi: Mention module 'close' instead of
44415         module 'sys_socket'.
44416
44417 2008-10-09  Bruno Haible  <bruno@clisp.org>
44418
44419         * doc/glibc-headers/sys_ioctl.texi: New file.
44420         * doc/gnulib.texi: Include it.
44421
44422 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44423             Bruno Haible  <bruno@clisp.org>
44424
44425         Combine the two replacements of 'close'.
44426         * lib/sys_socket.in.h (close): Define to a reminder to include
44427         <unistd.h>.
44428         (_gl_close_fd_maybe_socket): New declaration.
44429         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44430         * lib/winsock.c (close): Remove undefinition.
44431         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44432         needed for the gnulib module 'close'.
44433         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44434         define to an error symbol or to a warning, if suitable.
44435         * lib/close.c: Include <sys/socket.h>.
44436         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44437         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44438         UNISTD_H_HAVE_WINSOCK2_H.
44439         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44441         UNISTD_H_HAVE_WINSOCK2_H.
44442         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44443         (configure.ac): Set a module indicator.
44444         (Makefile.am): Substitute GNULIB_CLOSE.
44445         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44446         * modules/poll-tests (Depends-on): Add close.
44447         * modules/select-tests (Depends-on): Likewise.
44448
44449 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44450             Bruno Haible  <bruno@clisp.org>
44451
44452         New module 'close'.
44453         * modules/close: New file.
44454         * lib/unistd.in.h (close): Move declaration out of the
44455         FCHDIR_REPLACEMENT scope.
44456         (_gl_unregister_fd): New declaration.
44457         * lib/close.c: New file.
44458         * lib/fchdir.c (rpl_close): Remove function.
44459         * m4/close.m4: New file.
44460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44461         close.
44462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44463         REPLACE_CLOSE.
44464         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44465         REPLACE_CLOSE.
44466         * modules/fchdir (Depends-on): Add close.
44467
44468 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44469             Bruno Haible  <bruno@clisp.org>
44470
44471         * lib/fcntl.in.h (open): Simplify conditionals.
44472         (_gl_register_fd): New declaration.
44473         * lib/fchdir.c (rpl_open): Remove function.
44474         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44475         also.
44476         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44478         open.
44479
44480 2008-10-09  Jim Meyering  <meyering@redhat.com>
44481
44482         GNUmakefile: use the more name-space-friendly "_version"
44483         * top/GNUmakefile (_dummy): Update.
44484         (_version): Rename from "version".
44485
44486 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44487             Bruno Haible  <bruno@clisp.org>
44488
44489         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44490         rpl_close.
44491         (_gl_register_fd): New function, extracted from rpl_open.
44492         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44493         (rpl_open, rpl_opendir): Use _gl_register_fd.
44494
44495 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44496
44497         Fix organization of 'open' replacement.
44498         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44499         (gl_FUNC_OPEN): Use it.
44500         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44501
44502 2008-10-08  Bruno Haible  <bruno@clisp.org>
44503
44504         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44505
44506 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44507
44508         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44509         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44510         listen).
44511
44512 2008-10-08  Eric Blake  <ebb9@byu.net>
44513
44514         GNUmakefile: add 'make version' target
44515         * top/GNUmakefile (_curr-ver): Split version update rules...
44516         (version): ...into a target.
44517
44518 2008-10-07  Bruno Haible  <bruno@clisp.org>
44519
44520         Use a more portable replacement expression for -0.0L.
44521         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44522         instead of -0.0L. Fix m4 quotation.
44523
44524         * tests/test-signbit.c: Include <float.h>.
44525         (minus_zero): New variable.
44526         (test_signbitl): Use minus_zero instead of -zero.
44527         * modules/signbit-tests (Depends-on): Add float.
44528
44529         * tests/test-ceill.c: Include <float.h>.
44530         (zero): Remove variable.
44531         (minus_zero): New variable.
44532         (main): Use minus_zero instead of -zero.
44533         * modules/ceill-tests (Depends-on): Add float.
44534
44535         * tests/test-floorl.c: Include <float.h>.
44536         (zero): Remove variable.
44537         (minus_zero): New variable.
44538         (main): Use minus_zero instead of -zero.
44539         * modules/floorl-tests (Depends-on): Add float.
44540
44541         * tests/test-roundl.c: Include <float.h>.
44542         (zero): Remove variable.
44543         (minus_zero): New variable.
44544         (main): Use minus_zero instead of -zero.
44545         * modules/roundl-tests (Depends-on): Add float.
44546
44547         * tests/test-truncl.c: Include <float.h>.
44548         (zero): Remove variable.
44549         (minus_zero): New variable.
44550         (main): Use minus_zero instead of -zero.
44551         * modules/truncl-tests (Depends-on): Add float.
44552
44553         * tests/test-frexpl.c (zero): Remove variable.
44554         (minus_zero): New variable.
44555         (main): Use minus_zero instead of -zero.
44556         * modules/frexpl-tests (Depends-on): Add float.
44557
44558         * tests/test-isnan.c (zerol): Remove variable.
44559         (minus_zerol): New variable.
44560         (test_long_double): Use minus_zerol instead of -zerol.
44561         * modules/isnan-tests (Depends-on): Add float.
44562
44563         * tests/test-isnanl.h (zero): Remove variable.
44564         (minus_zero): New variable.
44565         (main): Use minus_zero instead of -zero.
44566         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44567         * modules/isnanl-tests (Depends-on): Add float.
44568
44569         * tests/test-ldexpl.c (zero): Remove variable.
44570         (minus_zero): New variable.
44571         (main): Use minus_zero instead of -zero.
44572         * modules/ldexpl-tests (Depends-on): Add float.
44573
44574         * tests/test-snprintf-posix.h (zerol): Remove variable.
44575         (minus_zerol): New variable.
44576         (test_function): Use minus_zerol instead of -zerol.
44577         * modules/snprintf-posix-tests (Depends-on): Add float.
44578         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44579
44580         * tests/test-sprintf-posix.h (zerol): Remove variable.
44581         (minus_zerol): New variable.
44582         (test_function): Use minus_zerol instead of -zerol.
44583         * modules/sprintf-posix-tests (Depends-on): Add float.
44584         * modules/vsprintf-posix-tests (Depends-on): Add float.
44585
44586         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44587         (minus_zerol): New variable.
44588         (test_function): Use minus_zerol instead of -zerol.
44589         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44590
44591         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44592         (minus_zerol): New variable.
44593         (test_function): Use minus_zerol instead of -zerol.
44594         * modules/vasprintf-posix-tests (Depends-on): Add float.
44595
44596 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44597
44598         * MODULES.html.sh (Support for building documentation): Mention
44599         pmccabe2html.  Sort entries.
44600
44601         Add pmccabe2html module, from gnupdf.
44602         * build-aux/pmccabe.css: New file.
44603         * build-aux/pmccabe2html: New file.
44604         * m4/pmccabe2html.m4: New file.
44605         * modules/pmccabe2html: New file.
44606
44607 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44608
44609         flock: new module
44610         * MODULES.html.sh: Add to list of modules.
44611         * lib/flock.c: flock implementation for Windows and Unix systems
44612         which have fcntl.
44613         * doc/glibc-functions/flock.texi: Update documentation.
44614         * lib/sys_file.in.h: <sys/file.h> header file.
44615         * m4/flock.m4: M4 macros.
44616         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44617         * modules/flock: flock module.
44618         * modules/flock-tests: flock tests module.
44619         * modules/sys_file: sys/file.h module.
44620         * tests/test-flock.c: test suite for flock.
44621
44622 2008-10-06  Jim Meyering  <meyering@redhat.com>
44623
44624         bootstrap: check for LT_INIT more portably still ;-)
44625         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44626         Spotted by Bruno Haible.
44627
44628 2008-10-06  Eric Blake  <ebb9@byu.net>
44629
44630         test-signbit: avoid tripping Irix cc bug on -0.0L
44631         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44632         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44633         entire testsuite consistent and avoids an Irix 6.2 bug.
44634
44635 2008-10-05  Bruno Haible  <bruno@clisp.org>
44636             Jim Meyering  <jim@meyering.net>
44637
44638         Add an option for ignoring EPIPE during close_stdout.
44639         * lib/closeout.h: Include <stdbool.h>.
44640         (close_stdout_set_ignore_EPIPE): New declaration.
44641         * lib/closeout.c: Include <stdbool.h>.
44642         (ignore_EPIPE): New variable.
44643         (close_stdout_set_ignore_EPIPE): New function.
44644         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44645         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44646         failure.
44647         * modules/closeout (Depends-on): Add stdbool.
44648
44649 2008-10-05  Bruno Haible  <bruno@clisp.org>
44650
44651         * modules/accept: New file.
44652         * modules/bind: New file.
44653         * modules/connect: New file.
44654         * modules/getpeername: New file.
44655         * modules/getsockname: New file.
44656         * modules/getsockopt: New file.
44657         * modules/listen: New file.
44658         * modules/recv: New file.
44659         * modules/recvfrom: New file.
44660         * modules/send: New file.
44661         * modules/sendto: New file.
44662         * modules/setsockopt: New file.
44663         * modules/socket: New file.
44664         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44665         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44666         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44667         the particular module is requested. Add a link warning when the
44668         particular module is not requested.
44669         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44670         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44671         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44672         the particular module is requested.
44673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44674         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44675         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44676         * modules/sys_socket (Depends-on): Add link-warning.
44677         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44678         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44679         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44680         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44681         GL_LINK_WARNING.
44682         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44683         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44684         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44685         * doc/posix-functions/getpeername.texi: Mention the new module
44686         'getpeername'.
44687         * doc/posix-functions/getsockname.texi: Mention the new module
44688         'getsockname'.
44689         * doc/posix-functions/getsockopt.texi: Mention the new module
44690         'getsockopt'.
44691         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44692         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44693         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44694         * doc/posix-functions/send.texi: Mention the new module 'send'.
44695         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44696         * doc/posix-functions/setsockopt.texi: Mention the new module
44697         'setsockopt'.
44698         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44699         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44700         listen, connect, accept.
44701         * modules/select-tests (Depends-on): Likewise.
44702
44703 2008-10-05  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/winsock.c (strerror): Remove unused #undef.
44706         (rpl_close): Remove unused local variable.
44707
44708         * modules/sys_socket (Depends-on); Add errno.
44709
44710 2008-10-05  Bruno Haible  <bruno@clisp.org>
44711
44712         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44713         (select): Add a link warning when the 'select' module is not used.
44714         * modules/sys_select (Depends-on): Add link-warning.
44715         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44716         Suggested by Paolo Bonzini.
44717
44718 2008-10-05  Jim Meyering  <meyering@redhat.com>
44719
44720         bootstrap: check for LT_INIT more portably
44721         * build-aux/bootstrap: Avoid using grep -E, since it's not
44722         portable enough.  Suggestion from Bruno Haible.
44723
44724 2008-10-05  Bruno Haible  <bruno@clisp.org>
44725
44726         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44727         as being fixed by gnulib.
44728
44729 2008-10-05  Bruno Haible  <bruno@clisp.org>
44730
44731         * modules/select-tests: New file, mostly copied from
44732         modules/sys_select-tests.
44733         * tests/test-select.c: New file, mostly copied from
44734         tests/test-sys_select.c.
44735         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44736         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44737         (Makefile.am): Remove test_sys_select_LDADD.
44738
44739         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44740         to an undefined symbol, for an error message.
44741         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44742         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44743         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44744         winsock-select.c here.
44745         * modules/sys_select (Files): Remove lib/winsock-select.c.
44746         (Depends-on): Remove alloca.
44747         (Makefile.am): Substitute GNULIB_SELECT.
44748         * modules/select: New file.
44749         * doc/posix-functions/select.texi: Update.
44750
44751 2008-10-05  Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44754         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44755         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44756         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44757         getdtablesize.
44758         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44759         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44760
44761 2008-10-05  Bruno Haible  <bruno@clisp.org>
44762
44763         * modules/getdtablesize-tests: New file.
44764         * tests/test-getdtablesize.c: New file.
44765
44766         New module 'getdtablesize'.
44767         * lib/unistd.in.h (getdtablesize): New declaration.
44768         * lib/getdtablesize.c: New file.
44769         * m4/getdtablesize.m4: New file.
44770         * modules/getdtablesize: New file.
44771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44772         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44773         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44774         HAVE_GETDTABLESIZE.
44775         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44776
44777 2008-10-05  Bruno Haible  <bruno@clisp.org>
44778
44779         * modules/sched (Makefile.am): Fix typo.
44780         Reported by Simon Josefsson.
44781
44782 2008-10-05  Jim Meyering  <meyering@redhat.com>
44783
44784         bootstrap: check for LT_INIT, too
44785         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44786         are deprecated.  Suggestion from Ralf Wildenhues.
44787
44788 2008-10-05  Bruno Haible  <bruno@clisp.org>
44789
44790         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44791         overriding them by ours.
44792         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44793
44794 2008-10-05  Jim Meyering  <meyering@redhat.com>
44795
44796         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44797         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44798         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44799
44800 2008-10-04  Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/dup2 (License): Change to LGPLv2+.
44803         * modules/sleep (License): Likewise.
44804         * modules/perror (License): Likewise.
44805         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44806         Blake.
44807         * modules/signal (License): Likewise.
44808         * modules/sigprocmask (License): Likewise.
44809         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44810         Meyering.
44811
44812 2008-10-04  Bruno Haible  <bruno@clisp.org>
44813
44814         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44815         Reported by Rainer Tammer <tammer@tammer.net>.
44816
44817 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44818             Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44821         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44822         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44823
44824 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44825
44826         filevercmp: new module
44827         * lib/filevercmp.h: New function filevercmp comparing version strings.
44828         * lib/filevercmp.c: Implementation of filevercmp function.
44829         * modules/filevercmp: Module metadata.
44830         * tests/test-filevercmp.c: Unit test for new module.
44831         * modules/filevercmp-tests: Unit test metadata.
44832         * MODULES.html.sh: Add filevercmp module.
44833
44834 2008-10-03  Bruno Haible  <bruno@clisp.org>
44835
44836         * lib/c-ctype.h: Add comment.
44837         Reported by Jim Meyering.
44838
44839 2008-10-02  Bruno Haible  <bruno@clisp.org>
44840
44841         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44842
44843 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44844
44845         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44846         name of bootstrap.conf accordingly.
44847
44848 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44849
44850         * build-aux/bootstrap: Install git-merge-changelog configuration
44851         items into .gitconfig if needed.
44852
44853 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44854
44855         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44856         git repository, and initialize/update it accordingly.
44857
44858 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44859
44860         * modules/fsync-tests: New file.
44861         * tests/test-fsync.c: New file.
44862
44863         New module 'fsync'.
44864         * lib/fsync.c: New file.
44865         * m4/fsync.m4: New file.
44866         * modules/fsync: New file.
44867         * lib/unistd.in.h (fsync): New declaration.
44868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44869         GNULIB_FSYNC and HAVE_FSYNC.
44870         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44871         * MODULES.html.sh (posix_functions): Add fsync.
44872         * doc/posix-functions/fsync.texi: Mention the new module.
44873
44874 2008-10-02  Jim Meyering  <meyering@redhat.com>
44875
44876         fts.c: sync with similar code from coreutils' remove.c
44877         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44878         Guard also with "#if defined __linux__", since for now at least,
44879         this code is Linux-kernel-specific.
44880
44881 2008-10-02  Jim Meyering  <meyering@redhat.com>
44882
44883         fts: bug fixes
44884         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44885         Include <sys/vfs.h>, not <sys/statfs.h>.
44886
44887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44888         Include <sys/vfs.h>, not <sys/statfs.h>.
44889
44890 2008-10-01  Bruno Haible  <bruno@clisp.org>
44891
44892         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44894         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44895         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44896         * doc/posix-functions/posix_spawnp.texi: Likewise.
44897         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44898         whether posix_spawn actually works.
44899         * m4/pipe.m4 (gl_PIPE): Likewise.
44900         * modules/execute (Files): Add m4/posix_spawn.m4.
44901         * modules/pipe (Files): Add m4/posix_spawn.m4.
44902         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44903
44904 2008-10-01  Jim Meyering  <meyering@redhat.com>
44905
44906         remove trailing spaces
44907         * NEWS: Likewise.
44908         * lib/poll.c (poll): Likewise.
44909         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44910         * lib/winsock.c (rpl_close): Likewise.
44911         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44912         * modules/yield: Likewise.
44913         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44914         * tests/test-sys_select.c (connect_to_socket): Likewise.
44915
44916         fts.c: adjust a new interface to be more generally useful
44917         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44918         (fts_build): Adjust caller.
44919
44920 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44921
44922         * modules/cond-tests: New file.
44923         * tests/test-cond.c: New file.
44924
44925 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44926             Bruno Haible  <bruno@clisp.org>
44927
44928         * modules/cond (Dependencies): Add errno, time.
44929         * lib/glthread/cond.h: Include <time.h>.
44930         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44931         across platforms.
44932
44933 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44934             Bruno Haible  <bruno@clisp.org>
44935
44936         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44937
44938 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44939             Bruno Haible  <bruno@clisp.org>
44940
44941         * modules/tls-tests (Depends-on): Add thread, yield.
44942         (configure.ac): Remove all checks.
44943         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44944         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44945         gl_thread_self): Remove definitions. Include glthread/thread.h and
44946         glthread/yield.h instead.
44947         (test_tls): Pass an additional NULL argument to gl_thread_join.
44948
44949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44950             Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/lock-tests (Depends-on): Add thread, yield.
44953         (configure.ac): Remove all checks.
44954         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44955         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44956         gl_thread_self): Remove definitions. Include glthread/thread.h and
44957         glthread/yield.h instead.
44958         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44959         additional NULL argument to gl_thread_join.
44960
44961 2008-09-30  Bruno Haible  <bruno@clisp.org>
44962
44963         Fix the Win32 implementation of the 'thread' module.
44964         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44965         pointer type.
44966         (gl_thread_self): Invoke gl_thread_self_func.
44967         (gl_thread_self_func): New declaration.
44968         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44969         (do_init_self_key, init_self_key): New functions.
44970         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44971         Remove some fields.
44972         (running_threads, running_lock): Remove variables.
44973         (get_current_thread_handle): New function.
44974         (gl_thread_self_func, wrapper_func, glthread_create_func,
44975         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44976         simplified.
44977
44978 2008-09-30  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44981         files.
44982
44983 2008-09-30  Jim Meyering  <meyering@redhat.com>
44984
44985         fts.m4: correct the test for statfs.f_type
44986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44987         when checking for statfs.f_type.
44988
44989 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44990
44991         tests: avoid some compiler warnings
44992         * tests/test-memchr.c (main): Pass NULL indirectly.
44993         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44994
44995 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44996
44997         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44998         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44999         exactly specified dayshifts.
45000         (dayshift): New rule.
45001         (rel): Add dayshift.
45002         (relative_time_table) [tomorrow, yesterday, today, now]:
45003         Use tDAY_SHIFT in place of tDAY_UNIT.
45004         * tests/test-getdate.c: Add tests for now-disallowed countable
45005         dayshifts, e.g., "4 yesterday ago".
45006
45007 2008-09-29  Bruno Haible  <bruno@clisp.org>
45008
45009         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45010         * tests/test-posix_spawn1.in.sh: Renamed from
45011         tests/test-posix_spawn.in.sh.
45012         * tests/test-posix_spawn2.c: New file.
45013         * tests/test-posix_spawn2.in.sh: New file.
45014         * modules/posix_spawnp-tests (Files): Update.
45015         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45016
45017 2008-09-29  Bruno Haible  <bruno@clisp.org>
45018
45019         Propagate effects of putenv/setenv/unsetenv to child processes.
45020         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45021         * lib/pipe.c (create_pipe): Likewise.
45022
45023 2008-09-29  Bruno Haible  <bruno@clisp.org>
45024
45025         Enable use of shell scripts as executables in mingw.
45026         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45027         run the program as a shell script.
45028         * lib/pipe.c (create_pipe): Likewise.
45029         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45030         resulting array.
45031
45032 2008-09-29  Eric Blake  <ebb9@byu.net>
45033
45034         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45035
45036 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45037
45038         * doc/posix-functions/accept.texi: Update mingw problems.
45039         * doc/posix-functions/bind.texi: Update mingw problems.
45040         * doc/posix-functions/close.texi: Update mingw problems.
45041         * doc/posix-functions/connect.texi: Update mingw problems.
45042         * doc/posix-functions/getpeername.texi: Update mingw problems.
45043         * doc/posix-functions/getsockname.texi: Update mingw problems.
45044         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45045         * doc/posix-functions/ioctl.texi: Update mingw problems.
45046         * doc/posix-functions/listen.texi: Update mingw problems.
45047         * doc/posix-functions/recv.texi: Update mingw problems.
45048         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45049         * doc/posix-functions/select.texi: Update mingw problems.
45050         * doc/posix-functions/send.texi: Update mingw problems.
45051         * doc/posix-functions/sendto.texi: Update mingw problems.
45052         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45053         * doc/posix-functions/socket.texi: Update mingw problems.
45054
45055 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45056             Bruno Haible  <bruno@clisp.org>
45057
45058         * lib/sys_select.in.h: Include sys/time.h.
45059         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45060         * modules/sys_select: Depend on sys_time.
45061         * tests/test-sys_select.c: Test that sys/select.h defines struct
45062         timeval fully.
45063
45064 2008-09-29  Bruno Haible  <bruno@clisp.org>
45065
45066         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45067         * lib/sys_select.in.h: Likewise.
45068
45069 2008-09-29  Bruno Haible  <bruno@clisp.org>
45070
45071         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45072
45073 2008-09-29  Bruno Haible  <bruno@clisp.org>
45074
45075         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45076         Set LIBSOCKET instead of augmenting LIBS.
45077         * modules/sockets (Link): New section.
45078         * modules/sockets-tests (test_sockets_LDADD): New variable.
45079         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45080         * modules/poll-tests (test_poll_LDADD): New variable.
45081         * NEWS: Document the change.
45082
45083 2008-09-29  Bruno Haible  <bruno@clisp.org>
45084
45085         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45086         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45087         ARPA_INET_H directly.
45088         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45089
45090 2008-09-28  Bruno Haible  <bruno@clisp.org>
45091
45092         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45093         from gl_HEADER_SYS_SOCKET.
45094         (gl_HEADER_SYS_SOCKET): Invoke it.
45095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45096
45097 2008-09-28  Bruno Haible  <bruno@clisp.org>
45098
45099         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45100         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45101         Needed on OSF/1 4.0.
45102
45103 2008-09-28  Bruno Haible  <bruno@clisp.org>
45104
45105         Override open more carefully.
45106         * lib/open.c (orig_open): New function.
45107         (rpl_open): Use orig_open instead of open.
45108         * lib/fcntl.in.h: Add special invocation convention.
45109         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45110         (gl_FUNC_OPEN): Invoke it.
45111
45112         Override freopen more carefully.
45113         * lib/freopen.c (orig_freopen): New function.
45114         (rpl_freopen): Use orig_freopen instead of freopen.
45115         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45116         (gl_FUNC_FREOPEN): Invoke it.
45117
45118         Override fopen more carefully.
45119         * lib/fopen.c (orig_fopen): New function.
45120         (rpl_fopen): Use orig_fopen instead of fopen.
45121         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45122         (gl_FUNC_FOPEN): Invoke it.
45123         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45124
45125 2008-09-28  Bruno Haible  <bruno@clisp.org>
45126
45127         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45128         SIGPIPE.
45129
45130 2008-09-28  Bruno Haible  <bruno@clisp.org>
45131
45132         * tests/test-sigaction.c (handler, main): Disable the check whether
45133         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45134         glibc systems with LinuxThreads.
45135
45136 2008-09-28  Bruno Haible  <bruno@clisp.org>
45137
45138         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45139
45140         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45141         with AIX xlc.
45142         * lib/fcntl.in.h (open): Likewise.
45143         Reported by Rainer Tammer <tammer@tammer.net>.
45144
45145 2008-09-28  Bruno Haible  <bruno@clisp.org>
45146
45147         * modules/posix_spawnp-tests: New file.
45148         * tests/test-posix_spawn.c: New file.
45149         * tests/test-posix_spawn.in.sh: New file.
45150
45151         New module 'posix_spawnp'.
45152         * modules/posix_spawnp: New file.
45153         * lib/spawnp.c: New file, from GNU libc with modifications.
45154         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45155
45156         New module 'posix_spawn'.
45157         * modules/posix_spawn: New file.
45158         * lib/spawn.c: New file, from GNU libc with modifications.
45159         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45160
45161         New module 'posix_spawnattr_destroy'.
45162         * modules/posix_spawnattr_destroy: New file.
45163         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45164         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45165         module.
45166
45167         New module 'posix_spawnattr_setsigmask'.
45168         * modules/posix_spawnattr_setsigmask: New file.
45169         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45170         modifications.
45171         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45172         new module.
45173
45174         New module 'posix_spawnattr_getsigmask'.
45175         * modules/posix_spawnattr_getsigmask: New file.
45176         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45177         modifications.
45178         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45179         new module.
45180
45181         New module 'posix_spawnattr_setsigdefault'.
45182         * modules/posix_spawnattr_setsigdefault: New file.
45183         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45184         modifications.
45185         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45186         new module.
45187
45188         New module 'posix_spawnattr_getsigdefault'.
45189         * modules/posix_spawnattr_getsigdefault: New file.
45190         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45191         modifications.
45192         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45193         new module.
45194
45195         New module 'posix_spawnattr_setschedpolicy'.
45196         * modules/posix_spawnattr_setschedpolicy: New file.
45197         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45198         modifications.
45199         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45200         new module.
45201
45202         New module 'posix_spawnattr_getschedpolicy'.
45203         * modules/posix_spawnattr_getschedpolicy: New file.
45204         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45205         modifications.
45206         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45207         new module.
45208
45209         New module 'posix_spawnattr_setschedparam'.
45210         * modules/posix_spawnattr_setschedparam: New file.
45211         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45212         modifications.
45213         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45214         new module.
45215
45216         New module 'posix_spawnattr_getschedparam'.
45217         * modules/posix_spawnattr_getschedparam: New file.
45218         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45219         modifications.
45220         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45221         new module.
45222
45223         New module 'posix_spawnattr_setpgroup'.
45224         * modules/posix_spawnattr_setpgroup: New file.
45225         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45226         modifications.
45227         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45228         module.
45229
45230         New module 'posix_spawnattr_getpgroup'.
45231         * modules/posix_spawnattr_getpgroup: New file.
45232         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45233         modifications.
45234         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45235         module.
45236
45237         New module 'posix_spawnattr_setflags'.
45238         * modules/posix_spawnattr_setflags: New file.
45239         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45240         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45241         module.
45242
45243         New module 'posix_spawnattr_getflags'.
45244         * modules/posix_spawnattr_getflags: New file.
45245         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45246         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45247         module.
45248
45249         New module 'posix_spawnattr_init'.
45250         * modules/posix_spawnattr_init: New file.
45251         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45252         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45253         module.
45254
45255         New module 'posix_spawn_file_actions_destroy'.
45256         * modules/posix_spawn_file_actions_destroy: New file.
45257         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45258         modifications.
45259         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45260         the new module.
45261
45262         New module 'posix_spawn_file_actions_addopen'.
45263         * modules/posix_spawn_file_actions_addopen: New file.
45264         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45265         modifications.
45266         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45267         the new module.
45268
45269         New module 'posix_spawn_file_actions_adddup2'.
45270         * modules/posix_spawn_file_actions_adddup2: New file.
45271         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45272         modifications.
45273         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45274         the new module.
45275
45276         New module 'posix_spawn_file_actions_addclose'.
45277         * modules/posix_spawn_file_actions_addclose: New file.
45278         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45279         modifications.
45280         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45281         the new module.
45282
45283         New module 'posix_spawn_file_actions_init'.
45284         * modules/posix_spawn_file_actions_init: New file.
45285         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45286         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45287         new module.
45288
45289         New module 'posix_spawn-internal'.
45290         * modules/posix_spawn-internal: New file.
45291         * lib/spawn_int.h: New file, from GNU libc with modifications.
45292         * lib/spawni.c: New file, from GNU libc with modifications.
45293         * m4/posix_spawn.m4: New file.
45294
45295         New module 'spawn'.
45296         * modules/spawn: New file.
45297         * lib/spawn.in.h: New file, from GNU libc with modifications.
45298         * m4/spawn_h.m4: New file.
45299         * doc/posix-headers/spawn.texi: Mention the new module.
45300
45301 2008-09-28  Bruno Haible  <bruno@clisp.org>
45302
45303         * modules/sched-tests: New file.
45304         * tests/test-sched.c: New file.
45305
45306         New module 'sched'.
45307         * modules/sched: New file.
45308         * lib/sched.in.h: New file.
45309         * m4/sched_h.m4: New file.
45310         * doc/posix-headers/sched.texi: Mention the new module.
45311
45312 2008-09-27  Eric Blake  <ebb9@byu.net>
45313
45314         Fix previous patch, and tweak references to $0.
45315         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45316         (func_version, func_gnulib_dir): Don't call this program
45317         gnulib-tool.
45318         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45319         with using $0 in function.
45320         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45321         (func_fatal_error): Reuse the name the user invoked us with.
45322
45323 2008-09-27  Bruno Haible  <bruno@clisp.org>
45324
45325         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45326         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45327         (gl_ICONV_H): Not here.
45328         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45329         instead of assigning ICONV_H directly.
45330
45331         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45333         WCHAR_H directly.
45334
45335 2008-09-27  Bruno Haible  <bruno@clisp.org>
45336
45337         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45338         * modules/arpa_inet (Depends-on): Add link-warning.
45339         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45340         * modules/unistd (Makefile.am): Likewise.
45341
45342 2008-09-26  Bruno Haible  <bruno@clisp.org>
45343
45344         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45345         variables.
45346         (func_version): Essentially copied from gnulib-tool.
45347         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45348         func_readlink): Copied from gnulib-tool.
45349
45350 2008-09-26  Bruno Haible  <bruno@clisp.org>
45351
45352         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45353         invoking git-version-gen.
45354
45355 2008-09-26  Bruno Haible  <bruno@clisp.org>
45356
45357         * posix-modules: Update to directory names changed on 2008-01-19.
45358         Remove commas in output before splitting into words. No more need to
45359         avoid 'ftruncate' since 2007-02-19.
45360
45361 2008-09-26  Bruno Haible  <bruno@clisp.org>
45362
45363         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45364
45365 2008-09-26  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45368         * modules/fwriteerror (Depends-on): Add errno.
45369
45370 2008-09-26  Bruno Haible  <bruno@clisp.org>
45371
45372         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45373         * tests/test-vc-list-files-cvs.sh: Likewise.
45374
45375 2008-09-26  Bruno Haible  <bruno@clisp.org>
45376
45377         * doc/posix-headers/sys_resource.texi: Reorder items.
45378
45379 2008-09-26  Jim Meyering  <meyering@redhat.com>
45380
45381         fts: tweak inode comparison function
45382         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45383         inode numbers, as documented.
45384
45385         fts: sort dirent entries on inode number before traversing
45386         This avoids a quadratic, seek-related performance penalty when
45387         operating on a directory containing many entries (measurable at 10k;
45388         3.5 hours at 2 million entries with a cold cache) on certain types
45389         of file systems, including ext3 and ext4, but not tmpfs.
45390         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45391         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45392         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45393         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45394         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45395         (fts_build): Set the stat.st_ino member from D_INO.
45396         If it is likely to be useful, sort dirent entries on inode number.
45397
45398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45399         and the struct statfs.f_type member.
45400         * modules/fts (Depends-on): Add d-ino.
45401
45402 2008-09-26  Bruno Haible  <bruno@clisp.org>
45403
45404         * modules/sigpipe-die (Depends-on): Add sigpipe.
45405
45406         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45407         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45408         and GNULIB_STDIO_H_SIGPIPE are set.
45409         * lib/stdio-write.c: New file.
45410         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45411         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45412         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45413         REPLACE_STDIO_WRITE_FUNCS.
45414         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45415         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45416         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45417         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45418         * modules/stdio (Files): Add lib/stdio-write.c.
45419         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45420         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45421         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45422         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45423         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45424         REPLACE_FPRINTF_POSIX.
45425         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45426         REPLACE_PRINTF_POSIX.
45427         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45428         REPLACE_VFPRINTF_POSIX.
45429         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45430         REPLACE_VPRINTF_POSIX.
45431         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45432         SIGPIPE issue.
45433         * doc/posix-functions/fputc.texi: Likewise.
45434         * doc/posix-functions/fputs.texi: Likewise.
45435         * doc/posix-functions/fwrite.texi: Likewise.
45436         * doc/posix-functions/printf.texi: Likewise.
45437         * doc/posix-functions/putc.texi: Likewise.
45438         * doc/posix-functions/putchar.texi: Likewise.
45439         * doc/posix-functions/puts.texi: Likewise.
45440         * doc/posix-functions/vfprintf.texi: Likewise.
45441         * doc/posix-functions/vprintf.texi: Likewise.
45442
45443         * modules/safe-write (Depends-on): Add write.
45444
45445         * modules/sigpipe-tests: New file.
45446         * tests/test-sigpipe.c: New file.
45447         * tests/test-sigpipe.sh: New file.
45448
45449         * modules/write: New file.
45450         * lib/unistd.in.h: Include <sys/types.h>.
45451         (write): New declaration.
45452         * lib/write.c: New file.
45453         * m4/write.m4: New file.
45454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45455         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45456         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45457         GNULIB_WRITE, REPLACE_WRITE.
45458         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45459         and the SIGPIPE issue.
45460
45461         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45462         (raise): New declaration.
45463         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45464         (ext_signal): New function.
45465         (rpl_raise): New function.
45466         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45467         GNULIB_SIGNAL_H_SIGPIPE.
45468         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45469         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45470
45471         * modules/sigpipe: New file.
45472         * m4/sigpipe.m4: New file.
45473
45474 2008-09-25  Derek Price  <derek@ximbiot.com>
45475             Bruno Haible  <bruno@clisp.org>
45476
45477         * gnulib-tool (func_import): Report all license incompatibilities, not
45478         just the first one.
45479
45480 2008-09-25  Bruno Haible  <bruno@clisp.org>
45481
45482         * gnulib-tool (func_import): When computing the edits, consider not
45483         only the Makefile.ams that exist but also those that will be generated.
45484
45485 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45486
45487         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45488         fixes gnulib-tool --test warning about duplicate dependency.
45489
45490 2008-09-25  Bruno Haible  <bruno@clisp.org>
45491
45492         * gnulib-tool: Don't ask the user to perform edits in the generated
45493         Makefile.ams.
45494         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45495         apply to the Makefile.am being generated.
45496         (func_emit_tests_Makefile_am): Execute edits that apply to the
45497         Makefile.am being generated.
45498         (func_import): Setup list of Makefile.am edits before emitting the
45499         Makefile.ams, not at the end.
45500         (func_create_testdir): Update.
45501         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45502
45503 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45504
45505         * gnulib-tool (func_import): Store the --tests-base option in the
45506         comment in gnulib-cache.m4.
45507
45508 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45509
45510         * NEWS: Document increased portability that sys_select now provides.
45511
45512         * lib/sys_select.in.h: Install select wrapper.
45513         * lib/sys_socket.in.h: Use more descriptive name when there is no
45514         select wrapper.
45515         * lib/winsock-select.c: New.
45516         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45517         Require gl_HEADER_SYS_SOCKET.
45518         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45519         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45520         * tests/test-sys_select.c: Add functional tests.
45521
45522 2008-09-24  Eric Blake  <ebb9@byu.net>
45523
45524         open, fopen: close fd leak in last patch
45525         * lib/open.c (rpl_open): Close fd before returning error.
45526         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45527         * doc/posix-functions/open.texi (open): Document that Irix also
45528         has the bug.
45529         * doc/posix-functions/fopen.texi (fopen): Likewise.
45530         Reported by Paolo Bonzini.
45531
45532 2008-09-24  Bruno Haible  <bruno@clisp.org>
45533
45534         Ensure that a filename ending in a slash cannot be used to access a
45535         non-directory.
45536         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45537         to check whether it's really a directory.
45538         * lib/fopen.c: Include fcntl.h, unistd.h.
45539         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45540         and fdopen().
45541         * modules/fopen (Depends-on): Add unistd.
45542         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45543         * tests/test-fopen.c (main): Likewise.
45544         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45545         * doc/posix-functions/fopen.texi: Likewise.
45546         Reported by Eric Blake.
45547
45548 2008-09-23  Eric Blake  <ebb9@byu.net>
45549
45550         c-stack: avoid compiler optimizations when provoking overflow
45551         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45552         recursion harder to optimize, to ensure a stack overflow occurs.
45553         * tests/test-c-stack.c (recurse): Likewise.
45554         Borrowed from libsigsegv.
45555
45556         c-stack: work around Irix sigaltstack bug
45557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45558         whether sigaltstack uses wrong end of stack_t (copied in part from
45559         libsigsegv).
45560         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45561         Irix bug, without requiring an over-allocation.
45562         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45563         bug.
45564
45565         fopen: document mingw bug on directories
45566         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45567         not allowing a stream visiting a directory, even though reading
45568         from such a stream is not portable.
45569
45570 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45571
45572         * lib/poll.c: Rewrite.
45573         * modules/poll: Depend on alloca.
45574
45575 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45576
45577         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45578         instead define prototypes for a full set of wrappers.  Ensure
45579         that Cygwin does not use the compatibility code, which is only
45580         for MinGW.
45581         * lib/winsock.c: New.
45582         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45583         * modules/sys_socket: Add lib/winsock.c.
45584
45585         * modules/poll-tests: Add errno and perror.
45586         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45587
45588 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45589
45590         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45591
45592 2008-09-23  Bruno Haible  <bruno@clisp.org>
45593
45594         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45595         * doc/glibc-functions/*: Likewise.
45596
45597 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45598
45599         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45600         success.
45601
45602 2008-09-22  Eric Blake  <ebb9@byu.net>
45603             Bruno Haible  <bruno@clisp.org>
45604
45605         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45606         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45607         supply %A but mishandle pseudo-NaN.
45608         Reported by Simon Josefsson.
45609
45610 2008-09-21  Bruno Haible  <bruno@clisp.org>
45611
45612         * tests/test-lock.c (main): Tweak skip message.
45613         * tests/test-tls.c (main): Likewise.
45614
45615 2008-09-21  Bruno Haible  <bruno@clisp.org>
45616
45617         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45618         whether 'struct sigaction' has sa_sigaction here...
45619         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45620         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45621
45622 2008-09-21  Bruno Haible  <bruno@clisp.org>
45623
45624         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45625         section.
45626         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45627         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45628         the new section.
45629         (Support for obsolete systems lacking POSIX:2001): New section.
45630         (String handling <string.h>): Move strdup to the new section.
45631         Suggested by Simon Josefsson and Paolo Bonzini.
45632
45633 2008-09-21  Bruno Haible  <bruno@clisp.org>
45634
45635         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45636         exponents in %e and %g results on 'long double'. Needed for mingw's
45637         improved *printf functions.
45638         * tests/test-vasprintf-posix.c (test_function): Likewise.
45639         * tests/test-snprintf-posix.h (test_function): Likewise.
45640         * tests/test-sprintf-posix.h (test_function): Likewise.
45641         Reported by Eric Blake.
45642
45643 2008-09-21  Bruno Haible  <bruno@clisp.org>
45644
45645         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45646         * tests/test-sprintf-posix.h (test_function): Likewise.
45647
45648 2008-09-21  Bruno Haible  <bruno@clisp.org>
45649
45650         * modules/getpass (Depends-on): Add strdup-posix.
45651
45652         New module 'strdup-posix'.
45653         * modules/strdup-posix: New file.
45654         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45655         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45657         REPLACE_STRDUP.
45658         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45659         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45661         strdup-posix.
45662
45663         * modules/strdup (Depends-on): Remove malloc-posix.
45664
45665 2008-09-20  Bruno Haible  <bruno@clisp.org>
45666
45667         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45668         Wildenhues.
45669
45670 2008-09-20  Bruno Haible  <bruno@clisp.org>
45671
45672         Ensure that wint_t gets defined on IRIX 5.3.
45673         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45674         * lib/wctype.in.h (wint_t): Likewise.
45675         (__wctype_wint_t): Remove type.
45676         (isw*): Use wint_t instead of __wctype_wint_t.
45677         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45678         * modules/wchar (Files): Add m4/wint_t.m4.
45679         (Makefile.am): Substitute HAVE_WINT_T.
45680         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45681         * tests/test-wctype.c: Check that wint_t is defined.
45682         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45683         * doc/posix-headers/wctype.texi: Likewise.
45684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45685
45686 2008-09-18  Bruno Haible  <bruno@clisp.org>
45687
45688         * gnulib-tool (func_exit): Update comment.
45689
45690 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45691
45692         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45693         assumes strdup exists and does not depend on strdup to return
45694         ENOMEM on out of memory conditions.
45695
45696 2008-09-18  Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45699         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45700         digits for the exponent.
45701
45702 2008-09-18  Jim Meyering  <meyering@redhat.com>
45703             Bruno Haible  <bruno@clisp.org>
45704
45705         * lib/vasnprintf.c (decimal_point_char): Define also if
45706         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45707
45708 2008-09-16  Bruno Haible  <bruno@clisp.org>
45709         and Eric Blake  <ebb9@byu.net>
45710
45711         vasnprintf: support Irix 5.3
45712         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45713         that mishandle long double infinity.
45714         Reported by Tom G. Christensen.
45715
45716 2008-09-16  Bruno Haible  <bruno@clisp.org>
45717
45718         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45719         Solaris 9.
45720         * doc/glibc-functions/alphasort.texi: Likewise.
45721         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45722
45723 2008-09-16  Jim Meyering  <meyering@redhat.com>
45724
45725         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45726         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45727         a umask modification leak out of a subshell.  Otherwise, the
45728         opensolaris /bin/sh would be accepted and thus cause unwarranted
45729         failures in the coreutils test suite.
45730
45731 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45732
45733         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45734         to succeed.
45735
45736 2008-09-16  Jim Meyering  <meyering@redhat.com>
45737
45738         avoid spurious test failure when library is built without ACL support
45739         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45740         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45741         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45742         * tests/test-copy-acl.sh: Likewise.
45743
45744 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45745
45746         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45747         based on character occurrence counts.
45748
45749 2008-09-15  Eric Blake  <ebb9@byu.net>
45750
45751         tests: avoid some compiler warnings
45752         * tests/test-memchr.c (main): Pass NULL indirectly.
45753         * tests/test-closein.c (main): Avoid unused variable.
45754
45755 2008-09-15  Bruno Haible  <bruno@clisp.org>
45756
45757         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45758         are missing on OpenBSD 4.0 individually.
45759         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45760
45761 2008-09-15  Bruno Haible  <bruno@clisp.org>
45762
45763         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45764         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45765         * doc/posix-functions/perror.texi: Likewise.
45766         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45767         is missing.
45768         Reported by Eric Blake.
45769
45770         * lib/errno.in.h: Use replacement values >= 2000.
45771         Reported by Eric Blake.
45772
45773 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45774
45775         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45776         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45777         limit.
45778         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45779         compareseq was aborted.
45780
45781 2008-09-14  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45784         yvec_edit_count.
45785         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45786         (fstrcmp_bounded): Simplify result computation accordingly.
45787
45788 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45789
45790         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45791         (fstrcmp): Define in terms of fstrcmp_bounded.
45792         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45793         lower_bound argument.
45794         Return quickly if the result is certainly < lower_bound.
45795         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45796
45797 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45798
45799         * lib/diffseq.h (EARLY_ABORT): New macro.
45800         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45801         evaluates to true.
45802
45803 2008-09-14  Bruno Haible  <bruno@clisp.org>
45804
45805         * modules/perror-tests: New file.
45806         * tests/test-perror.sh: New file.
45807         * tests/test-perror.c: New file.
45808
45809         New module 'perror'.
45810         * lib/stdio.in.h (perror): New declaration.
45811         * lib/perror.c: New file.
45812         * m4/perror.m4: New file.
45813         * modules/perror: New file.
45814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45815         * doc/posix-functions/perror.texi: Mention the perror module.
45816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45817         REPLACE_PERROR.
45818         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45819         REPLACE_PERROR.
45820
45821 2008-09-14  Bruno Haible  <bruno@clisp.org>
45822
45823         * modules/stdio (Makefile.am): Reorder to match the order in
45824         lib/stdio.in.h.
45825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45826
45827 2008-09-13  Bruno Haible  <bruno@clisp.org>
45828
45829         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45830
45831 2008-09-13  Bruno Haible  <bruno@clisp.org>
45832
45833         Extend strerror to cover the added errno values.
45834         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45835         (rpl_strerror): Provide error messages for the added errno values and
45836         for the WSA* values.
45837         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45838         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45839         strerror.
45840         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45841         * modules/strerror (Depends-on): Add errno.
45842         * doc/posix-functions/strerror.texi: Document the change.
45843         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45844         and EOVERFLOW.
45845
45846 2008-09-13  Bruno Haible  <bruno@clisp.org>
45847
45848         * modules/EOVERFLOW: Remove file.
45849         * m4/eoverflow.m4: Remove file.
45850         * modules/EOVERFLOW-tests: Remove file.
45851         * tests/test-EOVERFLOW.c: Remove file.
45852         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45853         * modules/ftell (Depends-on): Likewise.
45854         * modules/getdelim (Depends-on): Likewise.
45855         * modules/getugroups (Depends-on): Likewise.
45856         * modules/poll (Depends-on): Likewise.
45857         * modules/snprintf (Depends-on): Likewise.
45858         * modules/sprintf-posix (Depends-on): Likewise.
45859         * modules/vasnprintf (Depends-on): Likewise.
45860         * modules/vasprintf (Depends-on): Likewise.
45861         * modules/vfprintf-posix (Depends-on): Likewise.
45862         * modules/vsnprintf (Depends-on): Likewise.
45863         * modules/vsprintf-posix (Depends-on): Likewise.
45864         * modules/xvasprintf (Depends-on): Likewise.
45865         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45866         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45867         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45868         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45869         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45870         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45871         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45872         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45873         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45874         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45875         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45876         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45877         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45878         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45879         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45880         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45881         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45882         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45883         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45884         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45885         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45886         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45887         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45888         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45889         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45890         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45891         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45892         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45893         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45894         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45895         * MODULES.html.sh: Remove EOVERFLOW.
45896         * NEWS: Mention the change.
45897
45898 2008-09-13  Bruno Haible  <bruno@clisp.org>
45899
45900         * modules/errno-tests: New file.
45901         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45902
45903         * lib/errno.in.h: New file.
45904         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45905         * modules/errno: New file.
45906         * doc/posix-headers/errno.texi: Update documentation.
45907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45908
45909 2008-09-13  Bruno Haible  <bruno@clisp.org>
45910
45911         * tests/test-poll.c: Use #if for native Windows, rather than testing
45912         __MSVCRT__.
45913
45914 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45915             Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/glob.c: Don't include <pwd.h> on native Windows.
45918         (WINDOWS32): New macro.
45919         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45920
45921 2008-09-13  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45924         (ETIMEDOUT): Remove macro.
45925         (glthread_cond_timedwait_multithreaded): New declaration.
45926         (glthread_cond_timedwait): Use it.
45927         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45928         (glthread_cond_timedwait_multithreaded): New function.
45929
45930 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45931
45932         * modules/poll-tests: Do not check for io.h.
45933         * tests/test-poll.c: Check for __MSVCRT__ instead.
45934
45935 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45936
45937         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45938         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45939         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45940
45941 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45942
45943         * modules/poll-tests: New.
45944         * tests/test-poll.c: New.
45945
45946 2008-09-12  Eric Blake  <ebb9@byu.net>
45947
45948         frexp: test for NetBSD failure on -0.0
45949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45950         not all, bugs from NetBSD 3.0 have been fixed.
45951         * doc/posix-functions/frexp.texi (frexp): Document bug.
45952         Reported by Thomas Klausner.
45953
45954         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45955         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45956         literal -0.0.
45957         Reported by Jonathan C. Patschke <jp@centtech.com>.
45958
45959 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45960
45961         * lib/glthread/cond.h: Use dummy implementation also if
45962         USE_WIN32_THREADS.
45963
45964 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45965
45966         * modules/fnmatch-posix (License): Change to LGPLv2+.
45967         * modules/fnmatch-gnu (License): Likewise.
45968
45969 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45970
45971         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45972
45973 2008-09-11  Jim Meyering  <meyering@redhat.com>
45974
45975         * users.txt: Add gtk-vnc.
45976
45977 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45978
45979         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45980         rotate amounts.
45981
45982         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45983         required for 16-bit and 8-bit rotates.
45984         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45985         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45986         UINT8_MAX instead of hard-coded constants.
45987         Suggested by Paul Eggert.
45988
45989 2008-09-07  Bruno Haible  <bruno@clisp.org>
45990
45991         * tests/test-striconveh.c (main): Check behaviour when converting from
45992         UTF-7.
45993
45994         Make striconveh work better with stateful encodings.
45995         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45996         that iconv does not increment the inptr when returning -1/EINVAL.
45997
45998 2008-09-07  Bruno Haible  <bruno@clisp.org>
45999
46000         * build-aux/config.rpath: Update according to libtool-2.2.6.
46001         * build-aux/config.libpath: Likewise.
46002
46003 2008-09-06  Bruno Haible  <bruno@clisp.org>
46004
46005         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46006         * lib/freadptr.c (freadptr): Likewise.
46007         * lib/freadseek.c (freadptrinc): Likewise.
46008         Reported by Simon Josefsson.
46009
46010 2008-09-06  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/freadptr (License): Change to LGPLv2+.
46013         * modules/freadseek (License): Likewise.
46014         Suggested by Eric Blake.
46015
46016         * modules/memchr2 (License): Change to LGPLv2+.
46017         Approved by Eric Blake.
46018
46019 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46020             Bruno Haible  <bruno@clisp.org>
46021
46022         Make gnulib-tool work with native 'sed' on AIX.
46023         * gnulib-tool (sed_noop): New variable.
46024         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46025         func_add_or_update, func_create_testdir): Use it to initialize sed
46026         script variables.
46027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46028
46029 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46030             Bruno Haible  <bruno@clisp.org>
46031
46032         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46033         also works after #include directives.
46034
46035 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46036
46037         getdate.y: reject an out-of-range timezone value
46038         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46039         the range [-24...+24].  When specified with only one or two digits,
46040         * tests/test-getdate.c: Tests for the fix.
46041         * doc/getdate.texi: Document this change.
46042
46043 2008-09-03  Bruno Haible  <bruno@clisp.org>
46044
46045         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46046
46047 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46048
46049         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46050         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46051         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46052         Blake <ebb9@byu.net>.
46053
46054         * tests/test-bitrotate.c: Add more test vectors.
46055
46056 2008-09-02  Eric Blake  <ebb9@byu.net>
46057
46058         vasnprintf-posix: handle large precision via %.*d
46059         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46060         when handling it ourselves.
46061         * tests/test-vasnprintf-posix.c (test_function): Add test.
46062         * tests/test-snprintf-posix.h (test_function): Likewise.
46063         * tests/test-sprintf-posix.h (test_function): Likewise.
46064         * tests/test-vasprintf-posix.c (test_function): Likewise.
46065         Reported by Alain Guibert.
46066
46067 2008-09-01  Eric Blake  <ebb9@byu.net>
46068
46069         c-stack: make configure-time check more robust
46070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46071         successful sigaction call.
46072         Reported by Tom G. Christensen.
46073
46074 2008-09-01  Bruno Haible  <bruno@clisp.org>
46075
46076         New module 'findprog-lgpl'.
46077         * modules/findprog-lgpl: New file.
46078         * lib/findprog-lgpl.c: New file.
46079         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46080         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46081         to decide whether to use strdup or xstrdup, concatenated_filename or
46082         xconcatenated_filename.
46083
46084 2008-09-01  Bruno Haible  <bruno@clisp.org>
46085
46086         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46087         'xconcat-filename' (GPL).
46088         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46089         (License): Change to LGPLv2+.
46090         * modules/xconcat-filename: New file.
46091         * lib/concat-filename.h (concatenated_filename): Change specification.
46092         (xconcatenated_filename): New declaration.
46093         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46094         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46095         memory situations.
46096         * lib/xconcat-filename.c: New file.
46097         * NEWS: Mention the change.
46098         * lib/findprog.c: Include concat-filename.h, not filename.h.
46099         (find_in_path): Use xconcatenated_filename instead of
46100         concatenated_filename.
46101         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46102         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46103         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46104         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46105         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46106         instead of concatenated_filename.
46107         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46108         (execute_java_class): Use xconcatenated_filename instead of
46109         concatenated_filename.
46110         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46111         * modules/javacomp (Depends-on): Likewise.
46112         * modules/javaexec (Depends-on): Likewise.
46113
46114 2008-09-01  Bruno Haible  <bruno@clisp.org>
46115
46116         Split module 'filename' into 'filename' and 'concat-filename'.
46117         * modules/filename: Keep only lib/filename.h.
46118         (License): Change to LGPLv2+.
46119         * modules/concat-filename: New file, extracted from modules/filename.
46120         * lib/filename.h (concatenated_filename): Remove declaration.
46121         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46122         * lib/concat-filename.c: Include concat-filename.h.
46123         * NEWS: Mention the change.
46124
46125 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46126
46127         * lib/bitrotate.h (rotl8, rotr8): Add.
46128
46129         * modules/bitrotate (configure.ac): Need
46130         AC_REQUIRE([AC_C_INLINE]).
46131         (Description): Mention stdint.h.  Reported by Bruno Haible
46132         <bruno@clisp.org>.
46133
46134         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46135         Paolo Bonzini <bonzini@gnu.org>.
46136
46137 2008-08-31  Bruno Haible  <bruno@clisp.org>
46138
46139         Assume Solaris specific bi-arch conventions on Solaris systems.
46140         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46141         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46142         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46143         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46144         like acl_libdirstem.
46145         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46146         acl_libdirstem.
46147         * NEWS: Mention the change.
46148         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46149
46150 2008-08-31  Jim Meyering  <meyering@redhat.com>
46151
46152         * lib/strftime.h: Add comments describing the two added arguments.
46153
46154         remove duplicate #include directives
46155         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46156         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46157
46158 2008-08-31  Bruno Haible  <bruno@clisp.org>
46159
46160         New module 'sigpipe-die'.
46161         * modules/sigpipe-die: New file.
46162         * lib/sigpipe-die.h: New file.
46163         * lib/sigpipe-die.c: New file.
46164         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46165
46166 2008-08-31  Bruno Haible  <bruno@clisp.org>
46167
46168         Don't override previously installed signal handlers.
46169         * lib/fatal-signal.c (saved_sigactions): New variable.
46170         (uninstall_handlers): Reset the signal to the saved handler, not
46171         to SIG_DFL (except when ignored).
46172         (install_handlers): Save the previous handlers.
46173
46174 2008-08-30  Bruno Haible  <bruno@clisp.org>
46175
46176         * gnulib-tool (func_reset_sigpipe): New function.
46177         (func_get_automake_snippet, func_modules_transitive_closure,
46178         func_import): Invoke it before a join command that reads from stdin,
46179         to avoid "echo: write error: Broken pipe" error messages on stderr.
46180         Reported by Sam Steingold <sds@gnu.org>.
46181
46182 2008-08-30  Bruno Haible  <bruno@clisp.org>
46183
46184         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46185         Code copied from m4/open.m4.
46186         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46187         access and the filename ends in a slash. Code copied from lib/open.c.
46188         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46189         * tests/test-fopen.c (main): Check against bug with trailing slash.
46190
46191 2008-08-29  Bruno Haible  <bruno@clisp.org>
46192
46193         Avoid some "gcc -pedantic" warnings.
46194         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46195         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46196         * lib/dirent.in.h: Likewise.
46197         * lib/fcntl.in.h: Likewise.
46198         * lib/float.in.h: Likewise.
46199         * lib/iconv.in.h: Likewise.
46200         * lib/inttypes.in.h: Likewise.
46201         * lib/locale.in.h: Likewise.
46202         * lib/math.in.h: Likewise.
46203         * lib/netinet_in.in.h: Likewise.
46204         * lib/search.in.h: Likewise.
46205         * lib/signal.in.h: Likewise.
46206         * lib/stdarg.in.h: Likewise.
46207         * lib/stdint.in.h: Likewise.
46208         * lib/stdio.in.h: Likewise.
46209         * lib/stdlib.in.h: Likewise.
46210         * lib/string.in.h: Likewise.
46211         * lib/strings.in.h: Likewise.
46212         * lib/sys_select.in.h: Likewise.
46213         * lib/sys_socket.in.h: Likewise.
46214         * lib/sys_stat.in.h: Likewise.
46215         * lib/sys_time.in.h: Likewise.
46216         * lib/sysexits.in.h: Likewise.
46217         * lib/time.in.h: Likewise.
46218         * lib/unistd.in.h: Likewise.
46219         * lib/wchar.in.h: Likewise.
46220         * lib/wctype.in.h: Likewise.
46221         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46222         * modules/fchdir (Makefile.am): Likewise.
46223         * modules/fcntl (Makefile.am): Likewise.
46224         * modules/float (Makefile.am): Likewise.
46225         * modules/iconv_open (Makefile.am): Likewise.
46226         * modules/inttypes (Makefile.am): Likewise.
46227         * modules/locale (Makefile.am): Likewise.
46228         * modules/math (Makefile.am): Likewise.
46229         * modules/netinet_in (Makefile.am): Likewise.
46230         * modules/search (Makefile.am): Likewise.
46231         * modules/signal (Makefile.am): Likewise.
46232         * modules/stdarg (Makefile.am): Likewise.
46233         * modules/stdint (Makefile.am): Likewise.
46234         * modules/stdio (Makefile.am): Likewise.
46235         * modules/stdlib (Makefile.am): Likewise.
46236         * modules/string (Makefile.am): Likewise.
46237         * modules/strings (Makefile.am): Likewise.
46238         * modules/sys_select (Makefile.am): Likewise.
46239         * modules/sys_socket (Makefile.am): Likewise.
46240         * modules/sys_stat (Makefile.am): Likewise.
46241         * modules/sys_time (Makefile.am): Likewise.
46242         * modules/sysexits (Makefile.am): Likewise.
46243         * modules/time (Makefile.am): Likewise.
46244         * modules/unistd (Makefile.am): Likewise.
46245         * modules/wchar (Makefile.am): Likewise.
46246         * modules/wctype (Makefile.am): Likewise.
46247         Reported by Reuben Thomas <rrt@sc3d.org>.
46248
46249 2008-08-29  Bruno Haible  <bruno@clisp.org>
46250
46251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46252         any more.
46253
46254 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46255
46256         * MODULES.html.sh (Misc): Add bitrotate.
46257
46258         * modules/bitrotate: New file.
46259
46260         * lib/bitrotate.h: New file.
46261
46262         * modules/bitrotate-tests: New file.
46263
46264         * tests/test-bitrotate.c: New file.
46265
46266         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46267         on the bitrotate module.
46268
46269         * lib/arctwo.c: Use new bitrotate module.
46270
46271 2008-08-29  Jim Meyering  <meyering@redhat.com>
46272
46273         bootstrap: merge changes from coreutils
46274         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46275         of copied files.  Remove a kludge, now that this is fixed.
46276         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46277         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46278         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46279
46280 2008-08-29  Bruno Haible  <bruno@clisp.org>
46281
46282         * MODULES.html.sh: Remove --cvs-urls option.
46283
46284 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46285
46286         maint.mk: adjust to file name change
46287         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46288
46289 2008-08-28  Jim Meyering  <meyering@redhat.com>
46290
46291         * modules/getndelim2 (License): Relicense to LGPLv2+.
46292         Approved by Richard Stallman for the version of 1995, and by
46293         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46294
46295 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46296
46297         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46298         dummy if one is not available.  Do not touch them if
46299         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46300         (getc_maybe_unlocked): New.
46301         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46302
46303 2008-08-26  Eric Blake  <ebb9@byu.net>
46304
46305         doc/INSTALL: resync from autoconf
46306         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46307         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46308         moving...
46309         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46310         * INSTALL: Regenerate.
46311         * INSTALL.ISO: New file.
46312         * INSTALL.UTF-8: Likewise.
46313
46314 2008-08-26  Jim Meyering  <meyering@redhat.com>
46315
46316         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46317         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46318         these definitions conditional, so that they may be overridden, too.
46319
46320 2008-08-26  Bruno Haible  <bruno@clisp.org>
46321
46322         Generate INSTALL file variants with prettier quotes.
46323         * doc/Makefile (INSTALL_PRELUDE): New macro.
46324         (INSTALL): Use it.
46325         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46326
46327 2008-08-26  Bruno Haible  <bruno@clisp.org>
46328
46329         Run makeinfo in an English locale.
46330         * doc/Makefile (MAKEINFO): New variable.
46331
46332 2008-08-26  Bruno Haible  <bruno@clisp.org>
46333
46334         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46335         Suggested by Eric Blake.
46336
46337 2008-08-25  Bruno Haible  <bruno@clisp.org>
46338
46339         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46340
46341 2008-08-25  Eric Blake  <ebb9@byu.net>
46342
46343         c-stack: test that stack overflow can be caught
46344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46345         that platform allows handling stack overflow; at least OS/2 EMX
46346         has sigaltstack, but crashes before transferring control to
46347         handler on stack overflow.
46348         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46349         check for HAVE_STACK_OVERFLOW_HANDLING.
46350         Reported by Elbert Pol.
46351
46352 2008-08-25  Bruno Haible  <bruno@clisp.org>
46353
46354         * doc/posix-functions/strftime.texi: Fix description of strftime
46355         module.
46356
46357 2008-08-24  Bruno Haible  <bruno@clisp.org>
46358
46359         * tests/uniwidth/test-uc_width2.c: New file.
46360         * tests/uniwidth/test-uc_width2.sh: New file.
46361         * modules/uniwidth/width-tests (Files): Add the new files.
46362         (TESTS): Add uniwidth/test-uc_width2.sh.
46363         (TESTS_ENVIRONMENT): New variable.
46364         (check_PROGRAMS): Add test-uc_width2.
46365         (test_uc_width2_SOURCES): New variable.
46366
46367         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46368         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46369         not 0x00AB.
46370         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46371
46372 2008-08-22  Eric Blake  <ebb9@byu.net>
46373
46374         test-lock, test-tls: mention why a test is skipped
46375         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46376         skipped.
46377         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46378
46379         count-one-bits: relax license
46380         * modules/count-one-bits (License): Relicense to LGPLv2+.
46381         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46382
46383 2008-08-22  Andreas Schwab  <schwab@suse.de>
46384
46385         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46386         Remove spurious space in assignment.
46387
46388 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46389
46390         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46391         Paul Eggert <eggert@CS.UCLA.EDU>.
46392
46393 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46394
46395         * modules/gettext: Add m4/threadlib.m4.
46396
46397 2008-08-19  Eric Blake  <ebb9@byu.net>
46398
46399         test-c-stack: fix compilation failure on FreeBSD 5.0
46400         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46401         headers before <sys/resource.h>.
46402         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46403         the bug.
46404         Reported by Nelson H. F. Beebe.
46405
46406         strverscmp: migrate from "strverscmp.h" to <string.h>
46407         * modules/string (Makefile.am): Add new hooks.
46408         * modules/strverscmp (Files): Remove strverscmp.h.
46409         (Depends-on): Add string.
46410         (configure.ac): Add indicator.
46411         (Include): Mention new header.
46412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46413         defaults.
46414         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46415         results.
46416         * lib/strverscmp.h: Delete.
46417         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46418         * tests/test-strverscmp.c (includes): Adjust client.
46419         * lib/check-version.c (includes): Likewise.
46420         * NEWS: Document the change.
46421
46422         strverscmp: add unit test
46423         * modules/strverscmp-tests: New file.
46424         * tests/test-strverscmp.c: Likewise.
46425
46426 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46427
46428         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46429         regarding Windows crypto stuff, from Mono.
46430
46431 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46432
46433         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46434         if present, for intel RND.  Return error on failures.
46435
46436 2008-08-18  Ben Pfaff  <blp@gnu.org>
46437
46438         gitlog-to-changelog: give better diagnostic for failed pipe-open
46439         * build-aux/gitlog-to-changelog: Improve error message: suggest
46440         that the version of Git may be too old.
46441
46442 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46443
46444         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46445         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46446
46447 2008-08-18  Bruno Haible  <bruno@clisp.org>
46448
46449         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46450         pthread_in_use().
46451
46452 2008-08-18  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/glthread/threadlib.c: Include <pthread.h>.
46455
46456 2008-08-18  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46459         glthread_recursive_lock_* macros.
46460         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46461         Fix syntax error.
46462
46463 2008-08-18  Bruno Haible  <bruno@clisp.org>
46464
46465         * lib/glthread/thread.c: Avoid forcing a context switch right after
46466         thread creation.
46467
46468 2008-08-17  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46471         * lib/glthread/thread.h: Provide Win32 specific implementation.
46472         * modules/thread (Files): Add lib/glthread/thread.c.
46473         (Depends-on): Add lock.
46474         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46475
46476 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46477
46478         New module 'yield'.
46479         * modules/yield: New file.
46480         * lib/glthread/yield.h: New file.
46481         * m4/yield.m4: New file.
46482         * MODULES.html.sh (Multithreading): Add yield.
46483
46484 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46485
46486         New module 'thread'.
46487         * modules/thread: New file.
46488         * lib/glthread/thread.h: New file.
46489         * m4/thread.m4: New file.
46490         * MODULES.html.sh (Multithreading): Add thread.
46491
46492 2008-08-17  Bruno Haible  <bruno@clisp.org>
46493
46494         * lib/glthread/lock.h: Include <stdlib.h> always.
46495         * lib/glthread/tls.h: Likewise.
46496         * lib/glthread/cond.h: Likewise.
46497
46498 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46499
46500         New module 'cond'.
46501         * modules/cond: New file.
46502         * lib/glthread/cond.h: New file.
46503         * lib/glthread/cond.c: New file.
46504         * m4/cond.m4: New file.
46505         * MODULES.html.sh (Multithreading): Add cond.
46506
46507 2008-08-16  Eric Blake  <ebb9@byu.net>
46508
46509         c-stack: fix regression on Irix 5.3 from 2008-06-21
46510         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46511         sa_sigaction...
46512         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46513         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46514         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46515         * modules/signal (Makefile.am): Use the value.
46516         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46517         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46518         * doc/posix-headers/signal.texi (signal.h): Document this
46519         portability issue.
46520         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46521         Reported by Tom G. Christensen.
46522
46523 2008-08-17  Bruno Haible  <bruno@clisp.org>
46524
46525         New module 'threadlib'.
46526         * modules/threadlib: New file.
46527         * lib/glthread/threadlib.c: New file, extracted from
46528         lib/glthread/lock.c.
46529         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46530         functions.
46531         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46532         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46533         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46534         macros.
46535         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46536         (gl_DISABLE_THREADS): Remove macro.
46537         * modules/lock (Files): Remove build-aux/config.rpath.
46538         (Depends-on): Remove havelib. Add threadlib.
46539         (configure.ac-early): Remove section.
46540         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46541         * modules/tls (Depends-on): Remove lock. Add threadlib.
46542         (Link): New section, copied from threadlib.
46543         * MODULES.html.sh (Multithreading): Add threadlib.
46544
46545 2008-08-14  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46548         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46549         glthread_rwlock_unlock, glthread_rwlock_destroy,
46550         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46551         glthread_recursive_lock_destroy): Define as macros always.
46552         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46553         glthread_lock_lock.
46554         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46555         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46556         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46557         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46558         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46559         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46560         (glthread_recursive_lock_lock_func): Renamed from
46561         glthread_recursive_lock_lock.
46562         (glthread_recursive_lock_unlock_func): Renamed from
46563         glthread_recursive_lock_unlock.
46564         (glthread_recursive_lock_destroy_func): Renamed from
46565         glthread_recursive_lock_destroy.
46566
46567 2008-08-14  Bruno Haible  <bruno@clisp.org>
46568
46569         * lib/glthread/lock.h: Renamed from lib/lock.h.
46570         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46571         * lib/glthread/tls.h: Renamed from lib/tls.h.
46572         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46573         * lib/fstrcmp.c: Update includes.
46574         * lib/strsignal.c: Update includes.
46575         * modules/lock (Files, Makefile.am): Update.
46576         (Include): Change to "glthread/lock.h".
46577         * modules/tls (Files, Makefile.am): Update.
46578         (Include): Change to "glthread/tls.h".
46579         * tests/test-lock.c: Update includes.
46580         * tests/test-tls.c: Update includes.
46581         * NEWS: Mention the renamed header files.
46582
46583 2008-08-11  Jim Meyering  <meyering@redhat.com>
46584
46585         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46586
46587 2008-08-11  Eric Blake  <ebb9@byu.net>
46588
46589         test-c-stack: avoid C99-ism
46590         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46591         before statement.
46592         Reported by Alain Guibert.
46593
46594 2008-08-10  Jim Meyering  <meyering@redhat.com>
46595
46596         ensure that return value of uinttostr et al are not ignored
46597         * lib/inttostr.h (__GNUC_PREREQ): Define.
46598         (__attribute_warn_unused_result__): Define.
46599         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46600
46601 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46602
46603         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46604         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46605
46606 2008-08-07  Jim Meyering  <meyering@redhat.com>
46607
46608         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46609
46610         * modules/mkstemp (License): Relicense under LGPLv2+.
46611         * modules/tempname (License): Likewise.
46612
46613 2008-08-06  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/poll.c (poll): Further micro-optimization.
46616
46617 2008-08-06  Jim Meyering  <meyering@redhat.com>
46618
46619         inet_pton.c: use locale-independent tolower
46620         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46621         (inet_pton6): Use c_tolower rather than tolower.
46622         * modules/inet_pton (Depends-on): Add c-ctype.
46623
46624 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46625
46626         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46627         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46628
46629 2008-08-06  Jim Meyering  <meyering@redhat.com>
46630
46631         * modules/inet_pton (License): Relicense under LGPLv2+.
46632
46633 2008-08-03  Bruno Haible  <bruno@clisp.org>
46634
46635         Additional non-aborting API for lock and tls.
46636         * lib/lock.h: Include <errno.h>.
46637         (glthread_lock_init): New macro/function.
46638         (gl_lock_init): Define as wrapper around glthread_lock_init.
46639         (glthread_lock_lock): New macro/function.
46640         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46641         (glthread_lock_unlock): New macro/function.
46642         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46643         (glthread_lock_destroy): New macro/function.
46644         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46645         (glthread_rwlock_init): New macro/function.
46646         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46647         (glthread_rwlock_rdlock): New macro/function.
46648         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46649         (glthread_rwlock_wrlock): New macro/function.
46650         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46651         (glthread_rwlock_unlock): New macro/function.
46652         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46653         (glthread_rwlock_destroy): New macro/function.
46654         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46655         (glthread_recursive_lock_init): New macro/function.
46656         (gl_recursive_lock_init): Define as wrapper around
46657         glthread_recursive_lock_init.
46658         (glthread_recursive_lock_lock): New macro/function.
46659         (gl_recursive_lock_lock): Define as wrapper around
46660         glthread_recursive_lock_lock.
46661         (glthread_recursive_lock_unlock): New macro/function.
46662         (gl_recursive_lock_unlock): Define as wrapper around
46663         glthread_recursive_lock_unlock.
46664         (glthread_recursive_lock_destroy): New macro/function.
46665         (gl_recursive_lock_destroy): Define as wrapper around
46666         glthread_recursive_lock_destroy.
46667         (glthread_once): New macro/function.
46668         (gl_once): Define as wrapper around glthread_once.
46669         Update function declarations.
46670         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46671         glthread_rwlock_init. Return error code.
46672         (glthread_rwlock_rdlock_multithreaded): Renamed from
46673         glthread_rwlock_rdlock. Return error code.
46674         (glthread_rwlock_wrlock_multithreaded): Renamed from
46675         glthread_rwlock_wrlock. Return error code.
46676         (glthread_rwlock_unlock_multithreaded): Renamed from
46677         glthread_rwlock_unlock. Return error code.
46678         (glthread_rwlock_destroy_multithreaded): Renamed from
46679         glthread_rwlock_destroy. Return error code.
46680         (glthread_recursive_lock_init_multithreaded): Renamed from
46681         glthread_recursive_lock_init. Return error code.
46682         (glthread_recursive_lock_lock_multithreaded): Renamed from
46683         glthread_recursive_lock_lock. Return error code.
46684         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46685         glthread_recursive_lock_unlock. Return error code.
46686         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46687         glthread_recursive_lock_destroy. Return error code.
46688         (glthread_once_call): Make static.
46689         (glthread_once_multithreaded): Renamed from glthread_once.
46690         * lib/tls.h: Include <errno.h>.
46691         (glthread_tls_key_init): New macro/function.
46692         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46693         (glthread_tls_set): New macro/function.
46694         (gl_tls_set): Define as wrapper around glthread_tls_set.
46695         (glthread_tls_key_destroy): New macro/function.
46696         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46697         Update function declarations.
46698         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46699         glthread_tls_get.
46700         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46701
46702 2008-08-04  Eric Blake  <ebb9@byu.net>
46703
46704         gnumakefile: use space, not TAB, outside of targets
46705         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46706
46707 2008-08-02  Jim Meyering  <meyering@redhat.com>
46708
46709         getdate.y: avoid locale-dependent date parsing failure
46710         In Turkish locales, getdate would fail to recognize keywords
46711         containing a lowercase "i".  The solution is not to rely on
46712         locale-sensitive case-conversion.
46713         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46714         (lookup_word): Use c_toupper in place of toupper.
46715         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46716         Reported by Vefa Bicakci <bicave@superonline.com> in
46717         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46718         * modules/getdate (Depends-on): Add c-ctype.
46719
46720 2008-08-02  Bruno Haible  <bruno@clisp.org>
46721
46722         * gnulib-tool (func_import): When updating or creating a .gitignore
46723         file, prepend each added line with a slash, and ignore leading slashes
46724         from the existing lines.
46725         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46726
46727 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46728
46729         Portability fix for GNU make 3.79.1.
46730         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46731         versions do not understand.
46732
46733 2008-08-01  Bruno Haible  <bruno@clisp.org>
46734
46735         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46736         * tests/test-isnanf.h (zero): New variable.
46737         (main): Avoid literal -0.0f.
46738         * tests/test-isnand.h (zero): New variable.
46739         (main): Avoid literal -0.0.
46740         * tests/test-isnanl.h (zero): New variable.
46741         (main): Avoid literal -0.0L.
46742         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46743         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46744         -0.0, -0.0L.
46745         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46746         (test_signbitd): Avoid literal -0.0.
46747         (test_signbitl): Avoid literal -0.0L.
46748         * tests/test-ceilf1.c (zero): New variable.
46749         (main): Avoid literal -0.0f.
46750         * tests/test-ceill.c (zero): New variable.
46751         (main): Avoid literal -0.0L.
46752         * tests/test-floorf1.c (zero): New variable.
46753         (main): Avoid literal -0.0f.
46754         * tests/test-floorl.c (zero): New variable.
46755         (main): Avoid literal -0.0L.
46756         * tests/test-roundf1.c (zero): New variable.
46757         (main): Avoid literal -0.0f.
46758         * tests/test-round1.c (zero): New variable.
46759         (main): Avoid literal -0.0.
46760         * tests/test-roundl.c (zero): New variable.
46761         (main): Avoid literal -0.0L.
46762         * tests/test-truncf1.c (zero): New variable.
46763         (main): Avoid literal -0.0f.
46764         * tests/test-trunc1.c (zero): New variable.
46765         (main): Avoid literal -0.0.
46766         * tests/test-truncl.c (zero): New variable.
46767         (main): Avoid literal -0.0L.
46768         * tests/test-frexp.c (zero): New variable.
46769         (main): Avoid literal -0.0.
46770         * tests/test-frexpl.c (zero): New variable.
46771         (main): Avoid literal -0.0L.
46772         * tests/test-ldexpl.c (zero): New variable.
46773         (main): Avoid literal -0.0L.
46774         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46775         (zerod, zerol): New variables.
46776         (test_function): Avoid literals -0.0, -0.0L.
46777         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46778         (zerod, zerol): New variables.
46779         (test_function): Avoid literals -0.0, -0.0L.
46780         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46781         (zerod, zerol): New variables.
46782         (test_function): Avoid literals -0.0, -0.0L.
46783         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46784         (zerod, zerol): New variables.
46785         (test_function): Avoid literals -0.0, -0.0L.
46786         * tests/test-strtod.c (zero): New variable.
46787         (main): Avoid literal -0.0.
46788         Reported by Jonathan C. Patschke <jp@centtech.com>.
46789
46790 2008-07-31  Jim Meyering  <meyering@redhat.com>
46791
46792         sha256.h: correct definition of SHA224_DIGEST_SIZE
46793         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46794         Reported by Paulie Pena IV <paulie4@gmail.com>.
46795         Define as 224 / 8, rather than as a literal.
46796         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46797         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46798         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46799
46800 2008-07-31  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46803         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46804         Reported by Jonathan Patschke <jp@centtech.com>.
46805
46806 2008-07-31  Bruno Haible  <bruno@clisp.org>
46807
46808         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46809         Reported by Paolo Bonzini <bonzini@gnu.org>.
46810
46811 2008-07-30  Eric Blake  <ebb9@byu.net>
46812
46813         test-strtod: allow compilation without -lm
46814         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46815         Reported by Dennis Clarke <blastwave@gmail.com>.
46816
46817 2008-07-28  Jim Meyering  <meyering@redhat.com>
46818
46819         bootstrap: work also when there are no .po files in po/
46820         * build-aux/bootstrap (update_po_files): Complete the change
46821         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46822
46823 2008-07-27  Jim Meyering  <meyering@redhat.com>
46824
46825         * users.txt: Add zile.
46826
46827 2008-07-26  Ben Pfaff  <blp@gnu.org>
46828
46829         Add missing dependencies on new m4/exponent[fdl].m4 files.
46830         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46831         * modules/isnand-nolibm: Add m4/exponentd.m4.
46832         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46833         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46834         m4/isnan[fdl].m4, because the macros actually used moved.
46835         Reported by Jim Meyering.
46836
46837 2008-07-14  Ben Pfaff  <blp@gnu.org>
46838
46839         Add isinf module.
46840         * lib/isinf.c: New file.
46841         * lib/math.in.h: Define isinf macro if we have decided to replace
46842         it.
46843         * m4/isinf.m4: New file.
46844         * m4/math_h.m4: Initialize and substitute variables for isinf
46845         module.
46846         * modules/isinf: New file.
46847         * modules/isinf-tests: New file.
46848         * modules/math: Add substitutions for new module.
46849         * tests/test-isinf.c: New file.
46850         * doc/posix-functions/isinf.texi: Mention new module.
46851         * MODULES.html.sh: Mention new module.
46852
46853 2008-07-14  Ben Pfaff  <blp@gnu.org>
46854
46855         Factor out some macros for use by additional modules.
46856         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46857         exponentf.m4.
46858         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46859         exponentd.m4.
46860         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46861         file exponentl.m4.
46862         * m4/exponentf.m4: New file.
46863         * m4/exponentd.m4: New file.
46864         * m4/exponentl.m4: New file.
46865         * modules/isnanf: Use new file m4/exponentf.m4.
46866         * modules/isnand: Use new file m4/exponentd.m4.
46867         * modules/isnanl: Use new file m4/exponentl.m4.
46868
46869 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46870
46871         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46872         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46873         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46874         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46875
46876         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46877         readlink on platforms without PATH_MAX.
46878
46879 2008-07-21  Eric Blake  <ebb9@byu.net>
46880
46881         Warn, not fail, on stale version.
46882         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46883
46884         Don't allow installation with stale devel version number.
46885         * top/GNUmakefile (_is-install-target): New macro.
46886         (_curr-ver): Forbid installation with stale version number.
46887
46888 2008-07-20  Bruno Haible  <bruno@clisp.org>
46889
46890         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46891         TESTS_ENVIRONMENT.
46892         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46893
46894 2008-07-20  Bruno Haible  <bruno@clisp.org>
46895
46896         * lib/c-stack.h (c_stack_action): Add documentation.
46897         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46898
46899 2008-07-20  Bruno Haible  <bruno@clisp.org>
46900
46901         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46902         * modules/readlink (License): Likewise.
46903
46904 2008-07-17  Eric Blake  <ebb9@byu.net>
46905
46906         * modules/c-stack (Link): Fix typo.
46907
46908         Make c-stack use libsigsegv, when available.
46909         * modules/c-stack (Depends-on): Add libsigsegv.
46910         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46911         needed.
46912         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46913         (segv_handler, overflow_handler, c_stack_action)
46914         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46915         implementation when libsigsegv is available, but only when using
46916         the library is necessary.
46917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46918         comment, explaining why XSI check fails on Linux.
46919         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46920         * tests/test-c-stack2.sh: Tweak skip message.
46921         * NEWS: Document new link-time requirements.
46922
46923 2008-07-16  Eric Blake  <ebb9@byu.net>
46924
46925         c-stack: Expose false positives when not using libsigsegv.
46926         * modules/c-stack-tests (Files): Expand test.
46927         * tests/test-c-stack.c (main): Add means to conditionally trigger
46928         non-overflow SIGSEGV.
46929         * tests/test-c-stack2.sh: New file.
46930
46931 2008-07-14  Bruno Haible  <bruno@clisp.org>
46932
46933         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46934         Reported by Eric Blake.
46935
46936 2008-07-14  Sam Steingold  <sds@gnu.org>
46937             Bruno Haible  <bruno@clisp.org>
46938
46939         New module libsigsegv.
46940         * modules/libsigsegv: New file.
46941         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46942         modifications.
46943         * MODULES.html.sh (Signal handling): New section.
46944
46945 2008-07-14  Bruno Haible  <bruno@clisp.org>
46946
46947         * modules/unictype/ctype-* (Description): Add the word "function".
46948         Improves the resulting doc in MODULES.html.
46949
46950 2008-07-12  Ben Pfaff  <blp@gnu.org>
46951
46952         Add longlong module.
46953         * modules/longlong: New file.
46954
46955 2008-07-12  Bruno Haible  <bruno@clisp.org>
46956
46957         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46958         to empty.
46959
46960 2008-07-10  Ben Pfaff  <blp@gnu.org>
46961
46962         Add isnan module.
46963         * doc/posix-functions/isnan.texi: Mention new module.
46964         * lib/math.in.h: Define isnan macro if we have decided to replace
46965         it.
46966         * m4/isnan.m4: New file.
46967         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46968         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46969         also.
46970         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46971         redundancy.
46972         * m4/math_h.m4: Initialize and substitute variables for isnan
46973         module.
46974         * modules/isnan: New file.
46975         * modules/isnan-tests: New file.
46976         * modules/math: Add substitutions for new module.
46977         * tests/test-isnan.c: New file.
46978         * MODULES.html.sh: Mention new module.
46979
46980 2008-07-10  Ben Pfaff  <blp@gnu.org>
46981
46982         Add isnanf module.
46983         * lib/isnanf.m4: New file.
46984         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46985         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46986         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46987         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46988         * modules/isnanf: New file.
46989         * modules/isnanf-tests: New file.
46990         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46991         files.
46992         * tests/test-isnanf-nolibm.c: factored most of its contents into
46993         new file tests/test-isnanf.h.
46994         * tests/test-isnanf.h: New file.
46995         * tests/test-isnanf.c: New file.
46996         * MODULES.html.sh: Mention new module.
46997         * doc/glibc-functions/isnanf.texi: Mention new module.
46998
46999 2008-07-10  Ben Pfaff  <blp@gnu.org>
47000
47001         Add isnand module.
47002         * lib/isnand.h: New file.
47003         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47004         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47005         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47006         functionality also.
47007         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47008         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47009         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47010         * modules/isnand: New file.
47011         * modules/isnand-tests: New file.
47012         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47013         files.
47014         * tests/test-isnand-nolibm.c: factored most of its contents into
47015         new file tests/test-isnand.h.
47016         * tests/test-isnand.h: New file.
47017         * tests/test-isnand.c: New file.
47018         * MODULES.html.sh: Mention new module.
47019
47020 2008-07-10  Ben Pfaff  <blp@gnu.org>
47021
47022         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47023         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47024         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47025         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47026         * modules/isnanf-nolibm: Update references to renamed files.
47027         * modules/isnand-nolibm: Likewise.
47028         * modules/isnanf-nolibm-tests: Likewise.
47029         * modules/isnand-nolibm-tests: Likewise.
47030         * lib/frexp.c: Likewise.
47031         * lib/isfinite.c: Likewise.
47032         * lib/signbitd.c: Likewise.
47033         * lib/signbitf.c: Likewise.
47034         * lib/vasnprintf.c: Likewise.
47035         * tests/test-ceilf1.c: Likewise.
47036         * tests/test-ceilf2.c: Likewise.
47037         * tests/test-floorf1.c: Likewise.
47038         * tests/test-floorf2.c: Likewise.
47039         * tests/test-frexp.c: Likewise.
47040         * tests/test-round1.c: Likewise.
47041         * tests/test-round2.c: Likewise.
47042         * tests/test-roundf1.c: Likewise.
47043         * tests/test-strtod.c: Likewise.
47044         * tests/test-trunc1.c: Likewise.
47045         * tests/test-trunc2.c: Likewise.
47046         * tests/test-truncf1.c: Likewise.
47047         * tests/test-truncf2.c: Likewise.
47048         * NEWS: Mention the renamed header files.
47049
47050 2008-07-11  Jim Meyering  <meyering@redhat.com>
47051
47052         vc-list-files: make the last-resort awk code more portable
47053         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47054         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47055         does not support it.
47056
47057 2008-07-10  Eric Blake  <ebb9@byu.net>
47058
47059         Work with tar's bootstrap.
47060         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47061         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47062         an m4 comment.
47063
47064 2008-07-09  Jim Meyering  <meyering@redhat.com>
47065
47066         posix-shell.m4: fix typo that made this test malfunction
47067         * m4/posix-shell.m4: Remove capitalization in variable name.
47068
47069 2008-07-08  Bruno Haible  <bruno@clisp.org>
47070
47071         * m4/onceonly.m4: Update comments.
47072         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47073
47074 2008-07-04  Jim Meyering  <meyering@redhat.com>
47075
47076         * users.txt: Add vc-dwim.
47077         (bison, coreutils): Use the gitweb URL.
47078
47079 2008-07-03  Jim Meyering  <meyering@redhat.com>
47080
47081         * users.txt: Add libffcall.  From Sam Steingold.
47082
47083 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47084
47085         getdate.y: do not ignore TZ with relative day, month or year offset
47086         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47087         relative-date-handling, since otherwise, the latter would clobber the
47088         sole output (an updated Start value) of the tz-handling block.
47089         * tests/test-getdate.c: Tests for the fix
47090
47091 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47092
47093         Recognize 'foo_LIBRARIES += libgnu.a'.
47094         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47095         makefile snippet has already specified an installation location,
47096         also using '+='.
47097
47098 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47099
47100         getdate.y: factor out common actions
47101         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47102         Use them in place of open-coded actions.
47103
47104 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47105
47106         Add self-test for getdate module.
47107         * modules/getdate-tests: New file.
47108         * tests/test-getdate.c: New file.
47109
47110 2008-06-29  Bruno Haible  <bruno@clisp.org>
47111
47112         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47113         .gitignore.
47114         Reported by Sylvain Beucler <beuc@beuc.net>.
47115
47116 2008-06-29  Bruno Haible  <bruno@clisp.org>
47117
47118         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47119         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47120
47121 2008-06-29  Bruno Haible  <bruno@clisp.org>
47122
47123         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47124         EXTRA_DIST.
47125         Reported by Sylvain Beucler <beuc@beuc.net>.
47126
47127 2008-06-26  Jim Meyering  <meyering@redhat.com>
47128
47129         make several modules depend on the "open" module
47130         This provides slightly increased consistency when opening-for-write
47131         the name of a non-directory spelled with a trailing slash.
47132         * modules/chdir-safer: Likewise.
47133         * modules/chown: Likewise.
47134         * modules/clean-temp: Likewise.
47135         * modules/copy-file: Likewise.
47136         * modules/fchdir: Likewise.
47137         * modules/fcntl-safer: Likewise.
47138         * modules/pipe: Likewise.
47139         * modules/utime: Likewise.
47140         Prompted by Eric Blake and Bruno Haible.
47141
47142 2008-06-24  Andreas Schwab  <schwab@suse.de>
47143
47144         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47145         literals can be used as initializers for global variables.
47146
47147 2008-06-23  Eric Blake  <ebb9@byu.net>
47148
47149         Make gnulib-cache.m4 easier to diff.
47150         * gnulib-tool (func_import): Allow newlines when reading cached
47151         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47152
47153 2008-06-23  Bruno Haible  <bruno@clisp.org>
47154
47155         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47156         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47157         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47158         m4/signalblocking.m4.
47159         (gl_PREREQ_SIGACTION): Don't invoke it.
47160         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47161         gl_PREREQ_SIG_HANDLER_H.
47162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47163         Don't check for sigaction here.
47164
47165 2008-06-23  Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47168         (install_handlers): Don't set the SA_RESETHAND flag.
47169
47170 2008-06-23  Bruno Haible  <bruno@clisp.org>
47171
47172         * m4/sigaction.m4: Comment fixes.
47173         * lib/signal.in.h: Likewise.
47174
47175 2008-06-23  Eric Blake  <ebb9@byu.net>
47176
47177         Fix typo.
47178         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47179
47180         Avoid SA_ namespace.
47181         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47182         Reported by Ralf Wildenhues.
47183
47184         Avoid test failure due to SA_RESTORER.
47185         * tests/test-sigaction.c (SA_MASK): New macro.
47186         (main): Avoid failing due to extension flags being set.
47187         Reported by Jim Meyering.
47188
47189         Revert use of sig-handler.h in sigprocmask.c.
47190         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47191         it requires the existence of struct sigaction.
47192         * lib/sigprocmask.c (handler_t): Restore typedef.
47193         (rpl_signal, old_handlers): Use local type.
47194
47195 2008-06-22  Bruno Haible  <bruno@clisp.org>
47196
47197         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47198         conditionally.
47199         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47200
47201 2008-06-22  Bruno Haible  <bruno@clisp.org>
47202
47203         * doc/posix-functions/siginterrupt.texi: Move note.
47204
47205         * lib/signal.in.h (SA_RESTART): New macro.
47206         * lib/sigaction.c: Update comment.
47207
47208         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47209
47210         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47211         (gl_PREREQ_SIGPROCMASK): Invoke it.
47212         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47213
47214         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47215
47216         * lib/sigprocmask.c: Update a comment.
47217
47218 2008-06-21  Eric Blake  <ebb9@byu.net>
47219
47220         Use sigaction module rather than signal().
47221         * modules/c-stack (Depends-on): Add sigaction.
47222         * modules/fatal-signal (Depends-on): Likewise.
47223         * modules/nanosleep (Depends-on): Likewise.
47224         * modules/sigprocmask (Files): Add sig-handler.h.
47225         * modules/sigaction (Files): Likewise.
47226         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47227         Eggert.
47228         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47229         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47230         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47231         (init_fatal_signals): Likewise.
47232         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47233         (siginterrupt): Delete fallback.
47234         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47235         instead.
47236         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47237         siginterrupt.
47238
47239         New module sigaction, for mingw.
47240         * modules/sigaction: New module...
47241         * modules/sigaction-tests: ...and its test.
47242         * m4/sigaction.m4: New file.
47243         * lib/sigaction.c: Likewise.
47244         * tests/test-sigaction.c: Likewise.
47245         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47246         * modules/signal (Makefile.am): Likewise.
47247         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47248         needed.
47249         * doc/posix-headers/signal.texi (signal.h): Mention provided
47250         types.
47251         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47252         that sigaction is preferable.
47253         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47254         module.
47255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47256         sigaction.
47257
47258         Improve robustness of sigprocmask by overriding signal.
47259         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47260         is in use.
47261         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47262         (SIGKILL, SIGSTOP): Provide fallbacks.
47263         (rpl_signal): Implement.
47264         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47265         signal can be called inside handlers.
47266
47267         Fix nanosleep module on mingw.
47268         * modules/nanosleep (Depends-on): Add sys_select.
47269         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47270
47271         Fix licensing of sigprocmask.
47272         * modules/raise (License): Relicense as LGPL.
47273
47274 2008-06-21  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47277         result if it contains question marks.
47278         Reported by Michael Geng <linux@michaelgeng.de>.
47279
47280 2008-06-19  Bruno Haible  <bruno@clisp.org>
47281
47282         Fix CVS-ism.
47283         * doc/gnulib.texi: Include updated-stamp.texi.
47284         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47285         (updated-stamp.texi): New rule.
47286         (gnulib.info): Depend on it.
47287         * doc/.gitignore: Add updated-stamp.texi.
47288         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47289
47290 2008-06-19  Bruno Haible  <bruno@clisp.org>
47291
47292         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47293         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47294
47295 2008-06-19  Eric Blake  <ebb9@byu.net>
47296
47297         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47298         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47299         Reported by Stepan Kasal.
47300
47301 2008-06-18  Bruno Haible  <bruno@clisp.org>
47302
47303         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47304         Reported by Eric Blake.
47305
47306 2008-06-18  Eric Blake  <ebb9@byu.net>
47307
47308         Work around cygwin 1.5.25 strsignal bug.
47309         * tests/test-strsignal.c: Allow for const char *.
47310         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47311
47312 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47313
47314         * users.txt: Update URL to article and add author/date
47315         information.
47316
47317 2008-06-17  Bruno Haible  <bruno@clisp.org>
47318
47319         New macro gl_DISABLE_THREADS.
47320         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47321         if the user did not pass --enable-threads or --disable-threads option.
47322         (gl_DISABLE_THREADS): New macro.
47323         Reported by Eric Blake <ebb9@byu.net>.
47324
47325 2008-06-17  Bruno Haible  <bruno@clisp.org>
47326
47327         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47328         when the macro ignores it.
47329         Based on a patch by Eric Blake <ebb9@byu.net>.
47330
47331 2008-06-17  Bruno Haible  <bruno@clisp.org>
47332
47333         * modules/tls (License): Change to LGPLv2+.
47334         Reported by Eric Blake.
47335
47336 2008-06-17  Eric Blake  <ebb9@byu.net>
47337
47338         Simplify c-stack prerequisites.
47339         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47341         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47342         check.
47343         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47344         <sys/resource.h>.
47345
47346         Move c-stack test into testsuite.
47347         * modules/c-stack-tests: New file.
47348         * lib/c-stack.c [DEBUG]: Move test program...
47349         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47350         fail test if sigaltstack is lacking.
47351         * tests/test-c-stack.sh: New driver file.
47352
47353 2008-06-16  Eric Blake  <ebb9@byu.net>
47354
47355         Use raise module consistently.
47356         * modules/fatal-signal (Depends-on): Add raise.
47357         * modules/sigprocmask (Depends-on): Likewise.
47358         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47359         * lib/sigprocmask.c (sigprocmask): Likewise.
47360         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47361         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47362
47363         Fix compliance bug in sigpending.
47364         * lib/sigprocmask.c (sigpending): Return pending array via
47365         parameter, not return value.
47366
47367 2008-06-14  Eric Blake  <ebb9@byu.net>
47368
47369         Improve obstack-printf test code.
47370         * tests/test-obstack-printf.c (test_function): Fix comment, and
47371         simplify usage of obstack_* in macros.  Add a test for coverage.
47372         Reported by Bruno Haible.
47373
47374 2008-06-14  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47377         array size as a constant, not as a const variable.
47378         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47379         AC_USE_SYSTEM_EXTENSIONS.
47380         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47381         Test whether the obstack_printf function actually exists.
47382         * modules/obstack-printf (Depends-on): Add extensions.
47383         (Include): Remove obstack.h.
47384         * modules/obstack-printf-posix (Depends-on): Add extensions.
47385         (Include): Remove obstack.h.
47386
47387 2008-06-13  Eric Blake  <ebb9@byu.net>
47388
47389         Add obstack-printf and obstack-printf-posix modules.
47390         * modules/obstack-printf: New file.
47391         * modules/obstack-printf-posix: Likewise.
47392         * MODULES.html.sh (Misc): Mention them.
47393         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47394         Likewise.
47395         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47396         Likewise.
47397         * modules/stdio (Makefile.am): Accomodate new modules.
47398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47399         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47400         Declare.
47401         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47402         functions.
47403         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47404         (gl_REPLACE_OBSTACK_PRINTF): New macros
47405         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47406         * tests/test-obstack-printf.c: New file.
47407         * modules/obstack-printf-tests: Likewise.
47408         * modules/obstack-printf-posix-tests: Likewise.
47409
47410 2008-06-11  Bruno Haible  <bruno@clisp.org>
47411
47412         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47413         * lib/open.c: Include errno.h.
47414         (open): Fail when attempting to write to a file that has a trailing
47415         slash.
47416         * tests/test-open.c (main): Test against trailing slash bug.
47417         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47418
47419 2008-06-10  Bruno Haible  <bruno@clisp.org>
47420
47421         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47422         for $? to work inside the trap command, with various /bin/sh-s.
47423         * tests/test-vc-list-files-cvs.sh: Likewise.
47424
47425 2008-06-10  Bruno Haible  <bruno@clisp.org>
47426
47427         * lib/acl-internal.h: Don't include gettext.h here.
47428         * lib/set-mode-acl.c: Include gettext.h here.
47429         * lib/copy-acl.c: Likewise.
47430
47431 2008-06-10  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47434         * lib/wait-process.c (wait_subprocess): Likewise.
47435         * lib/execute.h (execute): Add termsigp argument.
47436         * lib/execute.c (execute): Likewise.
47437         * lib/csharpcomp.c (compile_csharp_using_pnet,
47438         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47439         * lib/csharpexec.c (execute_csharp_using_pnet,
47440         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47441         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47442         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47443         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47444         is_jikes_present): Update.
47445         * lib/javaexec.c (execute_java_class): Update.
47446         * lib/javaversion.c (execute_and_read_line): Update.
47447         * NEWS: Document the changes.
47448         Reported by Eric Blake.
47449
47450 2008-06-10  Eric Blake  <ebb9@byu.net>
47451
47452         Add missing include.
47453         * tests/test-strstr.c (includes): Add <signal.h>.
47454         * tests/test-strcasestr.c (includes): Likewise.
47455         * tests/test-memmem.c (includes): Likewise.
47456
47457 2008-06-10  Bruno Haible  <bruno@clisp.org>
47458
47459         * lib/wait-process.c (wait_subprocess): Add an assertion.
47460
47461 2008-06-10  Bruno Haible  <bruno@clisp.org>
47462
47463         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47464
47465 2008-06-10  Bruno Haible  <bruno@clisp.org>
47466
47467         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47468         using alarm().
47469         * tests/test-strcasestr.c (main): Likewise.
47470         * tests/test-strstr.c (main): Likewise.
47471
47472 2008-06-09  Bruno Haible  <bruno@clisp.org>
47473
47474         Work around the Solaris 10 ACE ACLs ABI change.
47475         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47476         declare if ACL_NO_TRIVIAL is present.
47477         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47478         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47479         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47480         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47481         define if ACL_NO_TRIVIAL is present.
47482         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47483         and use the current ABI.
47484         (file_has_acl): Use same #if condition as elsewhere.
47485         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47486         in use, and use the current ABI.
47487         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47488         Reported by Jim Meyering.
47489
47490 2008-06-09  Eric Blake  <ebb9@byu.net>
47491
47492         Work around environments that (stupidly) ignore SIGALRM.
47493         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47494         before using alarm().
47495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47497         Reported by Ian Beckwith <ianb@erislabs.net>.
47498
47499         Produce autobuild blurb earlier in log.
47500         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47501
47502 2008-06-09  Jim Meyering  <meyering@redhat.com>
47503         and OndÅ™ej Vašík  <ovasik@redhat.com>
47504
47505         utimens.c: correct kernel bug work-around
47506         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47507         failure, not success, and the kernel bug we're trying to work
47508         around affects not just the utimensat call, but also the fallback
47509         futimens call.
47510         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47511         not success.
47512         [HAVE_FUTIMENS]: Use the same work-around, here.
47513
47514 2008-06-09  Jim Meyering  <meyering@redhat.com>
47515
47516         add more guards around definition of ACE_-related code
47517         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47518         ALLOW and ACE_OWNER are also defined.
47519
47520 2008-06-08  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/acl-internal.h: Add me as co-author.
47523         * lib/file-has-acl.c: Likewise.
47524         * lib/set-mode-acl.c: Likewise.
47525         * lib/copy-acl.c: Likewise.
47526
47527 2008-06-08  Bruno Haible  <bruno@clisp.org>
47528
47529         Add support for AIX ACLs.
47530         * lib/acl-internal.h (acl_nontrivial): New declaration.
47531         * lib/file-has-acl.c (acl_nontrivial): New function.
47532         (file_has_acl): Add implementation using AIX 4 ACL API.
47533         * lib/set-mode-acl.c (qset_acl): Likewise.
47534         * lib/copy-acl.c (qcopy_acl): Likewise.
47535
47536 2008-06-08  Bruno Haible  <bruno@clisp.org>
47537
47538         Add support for HP-UX ACLs.
47539         * lib/acl-internal.h (acl_nontrivial): New declaration.
47540         * lib/file-has-acl.c (acl_nontrivial): New function.
47541         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47542         * lib/set-mode-acl.c (qset_acl): Likewise.
47543         * lib/copy-acl.c (qcopy_acl): Likewise.
47544
47545 2008-06-08  Bruno Haible  <bruno@clisp.org>
47546
47547         Add support for Cygwin ACLs.
47548         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47549         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47550         the chmod_or_fchmod call.
47551         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47552
47553 2008-06-08  Bruno Haible  <bruno@clisp.org>
47554
47555         Fix bug with setuid modes in Solaris 10+ code.
47556         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47557         succeeded, when the mode contains some special bits.
47558
47559 2008-06-08  Bruno Haible  <bruno@clisp.org>
47560
47561         Add support for Solaris 7..10 ACLs.
47562         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47563         declarations.
47564         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47565         functions.
47566         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47567         * lib/set-mode-acl.c (qset_acl): Likewise.
47568         * lib/copy-acl.c (qcopy_acl): Likewise.
47569
47570 2008-06-08  Bruno Haible  <bruno@clisp.org>
47571
47572         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47573         declaration.
47574         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47575         (acl_access_nontrivial): Remove MacOS X case.
47576         (file_has_acl): Use acl_extended_nontrivial.
47577         * lib/copy-acl.c (qcopy_acl): Likewise.
47578
47579 2008-06-08  Bruno Haible  <bruno@clisp.org>
47580
47581         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47582
47583 2008-06-08  Jim Meyering  <meyering@redhat.com>
47584
47585         * modules/acl (Maintainer): Add Bruno Haible.
47586
47587 2008-06-07  Bruno Haible  <bruno@clisp.org>
47588
47589         Improve support for Tru64 ACLs.
47590         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47591         ACL on OSF/1.
47592
47593 2008-06-07  Bruno Haible  <bruno@clisp.org>
47594
47595         Add support for MacOS X ACLs.
47596         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47597         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47598         * lib/set-mode-acl.c (qset_acl): Likewise.
47599         * lib/copy-acl.c (qcopy_acl): Likewise.
47600
47601 2008-06-07  Bruno Haible  <bruno@clisp.org>
47602
47603         Fix memory leak introduced on 2008-05-22.
47604         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47605         use.
47606
47607 2008-06-07  Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47610         to construct an empty ACL.
47611
47612 2008-06-07  Bruno Haible  <bruno@clisp.org>
47613
47614         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47615         precisely.
47616         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47617
47618 2008-06-07  Bruno Haible  <bruno@clisp.org>
47619
47620         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47621         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47622
47623 2008-06-07  Bruno Haible  <bruno@clisp.org>
47624
47625         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47626         regardless of POSIX.
47627         * doc/posix-functions/_longjmp.texi: Likewise.
47628         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47629         SystemV platform in this case.
47630
47631 2008-06-06  Eric Blake  <ebb9@byu.net>
47632
47633         Document abort() bugs.
47634         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47635
47636         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47637         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47638         sigsetjmp.
47639         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47640         siglongjmp, but only as a macro.
47641         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47642         is obsolete.
47643         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47644
47645         Tweak documentation to cover cygwin argz bugs.
47646         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47647         argz bug fix; no code change needed since no cygwin releases
47648         occurred between the last fix and the bug being tested.
47649         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47650         module and recently fixed cygwin bugs.
47651         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47652         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47653         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47654         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47655         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47656         Likewise.
47657         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47658         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47659         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47660         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47661         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47662         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47663         Likewise.
47664
47665         Avoid gcc warning on cygwin.
47666         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47667         !ACL_NO_TRIVIAL]: Avoid unused variable.
47668
47669 2008-06-05  Eric Blake  <ebb9@byu.net>
47670
47671         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47672         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47673         git-version-gen fails to come up with a version.
47674         Reported by Simon Josefsson.
47675
47676 2008-06-05  Jim Meyering  <meyering@redhat.com>
47677             Paul Eggert  <eggert@cs.ucla.edu>
47678
47679         utimens.c: work around a probable Linux kernel bug
47680         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47681         appears to be a kernel bug that causes utimensat to return 280
47682         instead of 0, indicating success.
47683
47684 2008-06-04  Bruno Haible  <bruno@clisp.org>
47685
47686         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47687         2008-06-01 commit.
47688
47689 2008-06-04  Bruno Haible  <bruno@clisp.org>
47690
47691         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47692         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47693         (file_has_acl): Use it. Save errno afterwards.
47694         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47695
47696 2008-06-03  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47699         draft code. Simplify #ifs.
47700         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47701         Put Solaris code after POSIX-draft code. Fix comments regarding
47702         Solaris 10, HP-UX. Mention Cygwin.
47703         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47704
47705 2008-06-03  Eric Blake  <ebb9@byu.net>
47706
47707         Provide fallback for older kernels.
47708         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47709         Provide runtime fallback if kernel lacks support.
47710         Reported by Mike Frysinger.
47711
47712 2008-06-02  Bruno Haible  <bruno@clisp.org>
47713
47714         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47715         it exists.
47716
47717 2008-06-02  Bruno Haible  <bruno@clisp.org>
47718
47719         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47720         * lib/copy-acl.c (qcopy_acl): Update comment.
47721
47722 2008-06-02  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47725         like ACL APIs.
47726
47727 2008-06-02  Bruno Haible  <bruno@clisp.org>
47728
47729         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47730         * tests/test-set-mode-acl.sh: Likewise.
47731         * tests/test-copy-acl.sh: Likewise.
47732         * tests/test-copy-file.sh: Likewise.
47733
47734 2008-06-02  Bruno Haible  <bruno@clisp.org>
47735
47736         * tests/test-file-has-acl.sh: Remove unused code.
47737
47738 2008-06-01  Bruno Haible  <bruno@clisp.org>
47739
47740         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47741         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47742         messages.
47743         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47744
47745 2008-06-01  Bruno Haible  <bruno@clisp.org>
47746
47747         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47748         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47749         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47750         APIs.
47751         * modules/acl-tests (configure.ac): Remove tests now contained in
47752         m4/acl.m4.
47753
47754 2008-06-02  Jim Meyering  <meyering@redhat.com>
47755
47756         announce-gen: use a better key-server host name
47757         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47758         it may be more consistently reliable.  Suggested by Werner Koch
47759         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47760
47761 2008-06-01  Bruno Haible  <bruno@clisp.org>
47762
47763         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47764         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47765
47766 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47767
47768         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47769
47770 2008-06-01  Bruno Haible  <bruno@clisp.org>
47771
47772         New ACL tests.
47773         * tests/test-file-has-acl.sh: New file.
47774         * tests/test-file-has-acl.c: New file.
47775         * tests/test-set-mode-acl.sh: New file.
47776         * tests/test-set-mode-acl.c: New file.
47777         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47778         * tests/test-copy-acl.c: New file.
47779         * modules/acl-tests: New file, based on modules/copy-file-tests.
47780         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47781         (Depends-on): Add acl-tests.
47782         (configure.ac): Remove checks.
47783         (Makefile.am): Don't create test-sameacls program here any more.
47784
47785 2008-06-01  Bruno Haible  <bruno@clisp.org>
47786
47787         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47788         * tests/test-sameacls.c: Include progname.h.
47789         (main): Invoke set_program_name. Portability fixes for MacOS X,
47790         Solaris, HP-UX.
47791
47792 2008-06-01  Bruno Haible  <bruno@clisp.org>
47793
47794         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47795         function.
47796         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47797
47798 2008-06-01  Bruno Haible  <bruno@clisp.org>
47799
47800         * modules/rpmatch (Depends-on): Add strdup.
47801
47802 2008-06-01  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/pipe.c: Include unistd-safer.h.
47805         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47806         * modules/pipe (Depends-on): Add unistd-safer.
47807
47808 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47809
47810         * modules/autobuild (configure.ac): Call AB_INIT.
47811
47812 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47813
47814         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47815         Suggested by Bruno Haible <bruno@clisp.org>.
47816
47817 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47818
47819         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47820         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47821         <bruno@clisp.org>.
47822
47823 2008-05-29  Eric Blake  <ebb9@byu.net>
47824
47825         Prefer new POSIX 200x interfaces over futimesat.
47826         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47827         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47828         when available.
47829         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47830
47831 2008-05-28  Bruno Haible  <bruno@clisp.org>
47832
47833         * modules/stpcpy (License): Change to LGPLv2+.
47834         Requested by David Lutterkort <dlutter@redhat.com>.
47835
47836 2008-05-27  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47839         current mingw.
47840         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47841
47842 2008-05-27  Bruno Haible  <bruno@clisp.org>
47843
47844         * modules/iconv_open (Link): New section, from module 'iconv'.
47845         * modules/striconv (Link): Likewise.
47846         * modules/striconveh (Link): Likewise.
47847         * modules/xstriconv (Link): Likewise.
47848         * modules/unicodeio (Link): Likewise.
47849         * modules/propername (Link): Likewise.
47850         Reported by Jim Meyering.
47851
47852 2008-05-26  Jim Meyering  <meyering@redhat.com>
47853
47854         sha256: do not artificially restrict buffer length to be < 2^32
47855         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47856         uint32_t to size_t.
47857         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47858         to match.
47859
47860         avoid unaligned access errors, e.g., on sparc
47861         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47862         direct access through a possibly-unaligned uint64* pointer.
47863         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47864         direct access through a possibly-unaligned uint32* pointer.
47865         Prompted by this patch from Tom "spot" Callaway:
47866         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47867
47868         sha512.c: fix typo in comment
47869         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47870
47871 2008-05-25  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47874         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47875         (Makefile.am): Update lib_SOURCES.
47876
47877 2008-05-25  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47880
47881 2008-05-25  Jim Meyering  <meyering@redhat.com>
47882
47883         useless-if-before-free: freed expr may have white-space differences
47884         * build-aux/useless-if-before-free: Recognize cases in which the
47885         freed expression differs from the tested one in embedded white
47886         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47887         $1 was used, so we can't make any regexp shy.  Improved tests now
47888         detect this.
47889
47890         useless-if-before-free: accept white space in the expression.
47891         * build-aux/useless-if-before-free: For now, any white space
47892         in the expression must be identical in the free argument.
47893
47894         useless-if-before-free: efficiency tweak
47895         * build-aux/useless-if-before-free: Make the expression-matching
47896         regexp "shy".
47897         Make the *outer* regexp shy, not the expr-matching one.
47898
47899         update code-in-comment to accept cast of free arg
47900         * build-aux/useless-if-before-free: Update regexp.
47901
47902 2008-05-25  Bruno Haible  <bruno@clisp.org>
47903
47904         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47905         * modules/copy-file-tests (Files, Makefile.am): Update.
47906         * tests/test-copy-file.c (func_test_copy): Update.
47907
47908 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47909
47910         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47911
47912 2008-05-23  Bruno Haible  <bruno@clisp.org>
47913
47914         Improve support for ACLs on OSF/1.
47915         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47916         Remove fallback for unknown flavors of ACLs.
47917
47918 2008-05-22  Bruno Haible  <bruno@clisp.org>
47919
47920         Add support for ACLs on OSF/1.
47921         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47922         replacements.
47923         (acl_free_text): New macro fallback.
47924         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47925         acl_free.
47926         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47927         acl_free_text function. Require AC_C_INLINE.
47928
47929 2008-05-22  Bruno Haible  <bruno@clisp.org>
47930
47931         Make copy_acl work on MacOS X 10.5.
47932         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47933         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47934         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47935         If MODE_INSIDE_ACL, don't assume that every system has the same text
47936         representation for ACLs as FreeBSD.
47937         * lib/copy-acl.c (copy_acl): Add support for platforms with
47938         !MODE_INSIDE_ACL.
47939         * lib/file-has-acl.c (file_has_acl): Likewise.
47940         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47941         FreeBSD, MacOS X, or IRIX, respectively.
47942
47943 2008-05-22  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/acl.h: Don't include <sys/acl.h>.
47946         (GETACLCNT): Move fallback to lib/acl-internal.h.
47947         * lib/acl-internal.h: Include <sys/acl.h> here.
47948         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47949
47950 2008-05-22  Bruno Haible  <bruno@clisp.org>
47951
47952         Split off copy_acl function to separate file.
47953         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47954         * lib/acl.c (copy_acl): Moved function to separate file.
47955         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47956         * modules/acl (Files): Add lib/copy-acl.c.
47957         (Makefiles.am): Augment lib_SOURCES.
47958
47959 2008-05-22  Bruno Haible  <bruno@clisp.org>
47960
47961         * modules/copy-file-tests: New file.
47962         * tests/test-copy-file.sh: New file.
47963         * tests/test-copy-file.c: New file.
47964         * tests/test-copy-file-sameacls.c: New file.
47965
47966 2008-05-22  Eric Blake  <ebb9@byu.net>
47967
47968         Avoid gcc warning.
47969         * tests/test-memcmp.c (main): Pass NULL indirectly.
47970
47971 2008-05-21  Bruno Haible  <bruno@clisp.org>
47972
47973         Add reference doc about ACLs.
47974         * doc/acl-resources.txt: New file.
47975         * doc/acl-cygwin.txt: New file.
47976
47977 2008-05-21  Bruno Haible  <bruno@clisp.org>
47978
47979         Avoid one more warning from gcc.
47980         * lib/vasnprintf.c (IF_LINT): Update comments.
47981         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47982
47983 2008-05-21  Jim Meyering  <meyering@redhat.com>
47984
47985         avoid a warning from gcc
47986         * lib/vasnprintf.c (IF_LINT): Define.
47987         (scale10_round_decimal_long_double):
47988         Use it to avoid a "may be used uninitialized" warning.
47989         (scale10_round_decimal_double): Likewise.
47990
47991 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47992
47993         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47994         declared.
47995
47996 2008-05-20  Bruno Haible  <bruno@clisp.org>
47997
47998         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47999         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48000
48001 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48002
48003         * modules/memcmp-tests: New file.
48004         * tests/test-memcmp.c: New file.
48005
48006 2008-05-19  Bruno Haible  <bruno@clisp.org>
48007
48008         * modules/propername (Notice, configure.ac): Put quoted "..." into
48009         --keyword option.
48010         * lib/propername.h: Update comments accordingly.
48011         Reported by Eric Blake.
48012
48013 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48014
48015         * modules/getpass-gnu (Depends-on): Add fseeko.
48016
48017 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48018
48019         * modules/base64-tests: New file.
48020
48021 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48022
48023         * lib/base64.c (base64_decode_ctx): If a decode context structure
48024         was passed in use it to ignore newlines.  If a context structure
48025         was _not_ passed in, continue to treat newlines as garbage (this
48026         is the historical behavior).  Formerly base64_decode.
48027         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48028         takes a decode context structure.
48029         * lib/base64.h (base64_decode): Macro for four-argument calls.
48030         (base64_decode_alloc): Likewise.
48031         * lib/base64.c (base64_decode_ctx): If a decode context structure
48032         was passed in use it to ignore newlines.  If a context structure
48033         was _not_ passed in, continue to treat newlines as garbage (this
48034         is the historical behavior).  Formerly base64_decode.
48035         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48036         takes a decode context structure.
48037         * lib/base64.h (base64_decode): Macro for four-argument calls.
48038         (base64_decode_alloc): Likewise.
48039
48040 2008-05-19  Jim Meyering  <meyering@redhat.com>
48041
48042         avoid a warning from gcc
48043         * lib/trim.c (IF_LINT): Define.
48044         (trim2): Use it to avoid a "may be used uninitialized" warning.
48045
48046         Fix doc typo.
48047         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48048
48049 2008-05-19  Bruno Haible  <bruno@clisp.org>
48050
48051         * doc/glibc-functions/getpass.texi: Document limits of other
48052         implementations.
48053
48054 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48055             Bruno Haible <bruno@clisp.org>
48056
48057         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48058
48059 2008-05-18  Bruno Haible  <bruno@clisp.org>
48060
48061         * modules/propername: New file, from GNU gettext.
48062         * lib/propername.h: New file, from GNU gettext.
48063         * lib/propername.c: New file, from GNU gettext.
48064         * MODULES.html.sh (Internationalization functions): Add propername.
48065
48066 2008-05-16  Jim Meyering  <meyering@redhat.com>
48067             Bruno Haible  <bruno@clisp.org>
48068
48069         Avoid some warnings from "gcc -Wshadow".
48070         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48071
48072 2008-05-15  Eric Blake  <ebb9@byu.net>
48073
48074         Extend previous patch to cygwin 1.7.0.
48075         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48076         fast implementation in cygwin >= 1.7.0.
48077         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48079
48080 2008-05-15  Bruno Haible  <bruno@clisp.org>
48081
48082         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48083         implementation in glibc >= 2.9.
48084         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48086
48087 2008-05-15  Bruno Haible  <bruno@clisp.org>
48088
48089         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48090         (Unicode string functions): Add unilbrk/*.
48091         Reported by Karl Berry.
48092
48093 2008-05-15  Eric Blake  <ebb9@byu.net>
48094
48095         Fix violation of <stdbool.h> replacement in regex.
48096         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48097         * lib/regexec.c (re_search_internal): Likewise.
48098         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48099
48100 2008-05-15  Jim Meyering  <meyering@redhat.com>
48101
48102         avoid distracting test output when git or cvs is not found
48103         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48104         * tests/test-vc-list-files-git.sh: Likewise.
48105
48106 2008-05-15  Eric Blake  <ebb9@byu.net>
48107
48108         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48109         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48110         glibc version.
48111         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48112         * doc/posix-functions/strstr.texi (strstr): Likewise.
48113         * lib/str-two-way.h (MAX): Sychronize with glibc.
48114
48115 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48116
48117         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48118         opr.ctx_type.
48119         (calc_first): Initialize constraint field.
48120         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48121         Fix grammar.
48122         (duplicate_node): Merge constraint field for all node types.
48123         (calc_eclosure_iter): Look at constraint field for all node types.
48124         * lib/regex_internal.c (create_cd_newstate): Don't look at
48125         opr.ctx_type.
48126
48127 2008-05-14  Bruno Haible  <bruno@clisp.org>
48128
48129         Help GCC to do better code generation.
48130         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48131         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48132         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48133         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48134         Declare with attribute 'malloc' if supported.
48135
48136 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48137
48138         use "echo STR|wc -c" rather than unportable "expr length STR"
48139         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48140         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48141
48142 2008-05-14  Jim Meyering  <meyering@redhat.com>
48143
48144         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48145         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48146         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48147         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48148         via Collin Lasse.
48149
48150 2008-05-14  Eric Blake  <ebb9@byu.net>
48151
48152         Avoid quadratic growth in gl_LIBSOURCES.
48153         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48154         Suggested by Bruno Haible.
48155
48156         Test xmemdup0.
48157         * modules/xmemdup0-tests: New file.
48158         * tests/test-xmemdup0.c: Likewise.
48159
48160 2008-05-13  Eric Blake  <ebb9@byu.net>
48161
48162         Split xmemdup0 into its own module.
48163         * modules/xmemdup0: New file.
48164         * lib/xmemdup0.h: Likewise.
48165         * lib/xmemdup0.c: Likewise.
48166         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48167         * lib/xalloc.h (xmemdup0): Remove.
48168         * lib/xmalloc.c (xmemdup0): Likewise.
48169
48170 2008-05-13  Eric Blake  <ebb9@byu.net>
48171             Bruno Haible  <bruno@clisp.org>
48172
48173         Reduce number of forks required during autoconf.
48174         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48175         and gl_LIBSOURCES_DIR.
48176         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48177         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48178         m4_syscmd per file.
48179         <m4_foreach_w>: Move...
48180         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48181
48182 2008-05-13  Eric Blake  <ebb9@byu.net>
48183
48184         * gnulib-tool: Fix various comment typos.
48185
48186 2008-05-12  Bruno Haible  <bruno@clisp.org>
48187
48188         Tailor the linebreaking algorithm.
48189         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48190
48191 2008-05-12  Bruno Haible  <bruno@clisp.org>
48192
48193         Update to Unicode 5.0.0.
48194         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48195         LBP_JV, LBP_JT. Redistribute values.
48196         (unilbrk_table): Change size.
48197         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48198         Unicode TR#14 rev. 22.
48199         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48200         LBP_JV, LBP_JT. Redistribute values.
48201         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48202         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48203         Update.
48204         * lib/unilbrk/lbrkprop1.h: Regenerated.
48205         * lib/unilbrk/lbrkprop2.h: Regenerated.
48206         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48207         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48208         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48209         Likewise.
48210         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48211         Likewise.
48212         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48213         result.
48214         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48215         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48216         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48217         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48218         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48219         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48220
48221 2008-05-11  Bruno Haible  <bruno@clisp.org>
48222
48223         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48224
48225 2008-05-11  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48228         * modules/unilbrk/gen-lbrk: New file.
48229
48230 2008-05-11  Bruno Haible  <bruno@clisp.org>
48231
48232         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48233         * m4/sha512.m4 (gl_SHA512): Likewise.
48234
48235 2008-05-11  Jim Meyering  <meyering@redhat.com>
48236
48237         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48238         * modules/crypto/sha256: New file.
48239         * modules/crypto/sha512: Likewise.
48240         * lib/sha256.c: Likewise.
48241         * lib/sha256.h: Likewise.
48242         * lib/sha512.c: Likewise.
48243         * lib/sha512.h: Likewise.
48244         * lib/u64.h: Likewise.
48245         * m4/sha256.m4: Likewise.
48246         * m4/sha512.m4: Likewise.
48247         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48248
48249 2008-05-10  Bruno Haible  <bruno@clisp.org>
48250
48251         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48252         (Input/Output <stdio.h>): Add xprintf.
48253         (Signal handling <signal.h>): Add strsignal.
48254         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48255         (Core language properties): Add func.
48256         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48257         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48258         strings.
48259         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48260         (Input/output): New section.
48261         (File system functions): Add openat-die, stat-macros.
48262         (Networking functions): Add sockets.
48263         (Unicode string functions): Add unictype/*.
48264         (Support for building libraries and executables): Add gperf.
48265         (Support for building documentation): Add agpl-3.0.
48266         (Misc): Add nocrash.
48267
48268 2008-05-10  Bruno Haible  <bruno@clisp.org>
48269
48270         * modules/unictype/gen-ctype: New file.
48271
48272 2008-05-10  Jim Meyering  <meyering@redhat.com>
48273
48274         Make chdir-safer.c more efficient on a system with no symlinks.
48275         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48276         also if ELOOP is zero.  Suggested by Bruno Haible.
48277
48278         Make chdir-safer.c slightly safer.
48279         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48280         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48281
48282         Avoid compile failure on systems without ELOOP (like mingw).
48283         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48284         Reported by Bruno Haible.
48285
48286 2008-05-10  Bruno Haible  <bruno@clisp.org>
48287
48288         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48289         (is_utf8_encoding): Use a case-insensitive comparison.
48290         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48291         streq.
48292
48293 2008-05-10  Bruno Haible  <bruno@clisp.org>
48294
48295         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48296         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48297         * lib/unilbrk/ulc-common.h (iconv_string_length,
48298         iconv_string_keeping_offsets): Remove declarations.
48299         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48300         Don't include <iconv.h>, streq.h, xsize.h.
48301         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48302         conversion.
48303         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48304         <iconv.h>, streq.h, xsize.h.
48305         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48306         conversion.
48307         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48308         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48309         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48310         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48311
48312 2008-05-10  Bruno Haible  <bruno@clisp.org>
48313
48314         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48315         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48316
48317         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48318         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48319
48320         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48321         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48322
48323         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48324         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48325
48326         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48327         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48328
48329         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48330         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48331
48332         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48333         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48334
48335         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48336         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48337
48338 2008-05-10  Bruno Haible  <bruno@clisp.org>
48339
48340         Split up 'linebreak' module.
48341         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48342         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48343         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48344         modifications.
48345         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48346         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48347         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48348         lib/linebreak.c.
48349         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48350         lib/linebreak.c.
48351         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48352         lib/linebreak.c.
48353         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48354         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48355         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48356         lib/linebreak.c.
48357         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48358         lib/linebreak.c.
48359         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48360         lib/linebreak.c.
48361         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48362         lib/linebreak.c.
48363         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48364         lib/linebreak.c.
48365         * modules/unilbrk/base: New file.
48366         * modules/unilbrk/tables: New file.
48367         * modules/unilbrk/u8-possible-linebreaks: New file.
48368         * modules/unilbrk/u16-possible-linebreaks: New file.
48369         * modules/unilbrk/u32-possible-linebreaks: New file.
48370         * modules/unilbrk/ulc-common: New file.
48371         * modules/unilbrk/ulc-possible-linebreaks: New file.
48372         * modules/unilbrk/u8-width-linebreaks: New file.
48373         * modules/unilbrk/u16-width-linebreaks: New file.
48374         * modules/unilbrk/u32-width-linebreaks: New file.
48375         * modules/unilbrk/ulc-width-linebreaks: New file.
48376         * lib/linebreak.h: Remove file.
48377         * lib/linebreak.c: Remove file.
48378         * m4/linebreak.m4: Remove file.
48379         * modules/linebreak: Remove file.
48380         * NEWS: Mention the changes.
48381
48382 2008-05-09  Eric Blake  <ebb9@byu.net>
48383
48384         Add xmemdup0.
48385         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48386         implementation.
48387         * lib/xmalloc.c (xmemdup0): New C implementation.
48388
48389 2008-05-08  Bruno Haible  <bruno@clisp.org>
48390
48391         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48392
48393 2008-05-07  Eric Blake  <ebb9@byu.net>
48394
48395         Support cross-compilation of <wctype.h>.
48396         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48397         AC_CACHE_CHECK.
48398
48399 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48400
48401         * build-aux/vc-list-files: Add support for bzr.
48402
48403 2008-05-03  Jim Meyering  <meyering@redhat.com>
48404
48405         avoid failed assertion with tight malloc
48406         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48407
48408 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48409
48410         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48411         are needed from arpa/inet.h.
48412         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48413         Reported by Bruno Haible.
48414
48415 2008-05-02  Jim Meyering  <meyering@redhat.com>
48416
48417         avoid compilation error on FreeBSD 6
48418         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48419
48420 2008-05-01  Jim Meyering  <meyering@redhat.com>
48421
48422         useless-if-before-free: correct --help's exit status description
48423         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48424         for one or more matches, etc.  Reported by Bruno Haible.
48425
48426         vc-list-files: make the stand-alone gnulib test work
48427         * modules/vc-list-files-tests (configure.ac):
48428         Define and AC_SUBST abs_aux_dir.
48429         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48430         $(abs_top_srcdir) to each script and having each of them
48431         duplicate the work of setting PATH, set PATH here, using
48432         the new variable, abs_aux_dir instead.
48433         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48434         * tests/test-vc-list-files-git.sh: Likewise.
48435         Reported by Bruno Haible.
48436
48437 2008-05-01  Bruno Haible  <bruno@clisp.org>
48438
48439         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48440         reallocation. Rename 'done' to 'found_delimiter'.
48441
48442 2008-05-01  Jim Meyering  <meyering@redhat.com>
48443
48444         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48445         * build-aux/vc-list-files: Use `...`, not $(...).
48446
48447 2008-04-30  Jim Meyering  <meyering@redhat.com>
48448
48449         add tests for vc-list-files
48450         * modules/vc-list-files-tests: New module.
48451         * tests/test-vc-list-files-cvs.sh: New file.
48452         * tests/test-vc-list-files-git.sh: New file.
48453
48454         avoid a warning from gcc
48455         * lib/getndelim2.c (IF_LINT): Define.
48456         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48457
48458         vc-list-files: work properly with build-aux/cvsu, too
48459         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48460         to all cvs-based clauses.
48461
48462         vc-list-files: work properly in the CVS+awk case, too
48463         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48464
48465         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48466         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48467         take more than one file argument, so .  Add quotes, just in case $dir
48468         ever contains a shell meta-character.  Prompted by Soren Hansen in
48469         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48470
48471 2008-04-29  Eric Blake  <ebb9@byu.net>
48472
48473         Optimize getndelim2 to use block operations when possible.
48474         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48475         freadseek, and memchr2.
48476         * lib/getndelim2.c (getndelim2): Use them for block reads.
48477
48478 2008-04-29  Bruno Haible  <bruno@clisp.org>
48479
48480         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48481         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48482         * modules/inet_ntop (Depends-on): Add extensions.
48483         * modules/inet_pton (Depends-on): Likewise.
48484         Reported by Simon Josefsson.
48485
48486 2008-04-29  Jim Meyering  <meyering@redhat.com>
48487
48488         When the is more than one match in a block, match all of them.
48489         * build-aux/useless-if-before-free: Iterate through each block
48490         until there are no more matches.
48491
48492         Fix broken useless-if-before-free script.
48493         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48494         the expression to match cast of argument to free-like function.
48495
48496 2008-04-29  Eric Blake  <ebb9@byu.net>
48497
48498         Use new header.
48499         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48500
48501 2008-04-29  Jim Meyering  <meyering@redhat.com>
48502
48503         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48504         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48505         by gnulib to exist and to declare e.g., inet_ntop.
48506         Don't include "inet_ntop.h", now removed.
48507
48508         * m4/arpa_inet_h.m4: Remove trailing blanks.
48509
48510 2008-04-29  Eric Blake  <ebb9@byu.net>
48511
48512         Silence valgrind on safe reads beyond potential array bounds.
48513         * lib/rawmemchr.valgrind: New file.
48514         * lib/strchrnul.valgrind: Likewise.
48515         * modules/rawmemchr (Files): Distribute new file.
48516         * modules/strchrnul (Files): Likewise.
48517         Suggested by Bruno Haible.
48518
48519 2008-04-29  Bruno Haible  <bruno@clisp.org>
48520
48521         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48522         (inet_ntop, inet_pton): Change portability warning's wording.
48523         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48524         Invoke gl_CHECK_NEXT_HEADERS.
48525         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48526         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48527         set ARPA_INET_H.
48528         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48529         * modules/arpa_inet (Description): No longer only for systems that
48530         lack it.
48531         (Depends-on): Add include_next.
48532         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48533         HAVE_ARPA_INET_H.
48534
48535 2008-04-29  Jim Meyering  <meyering@redhat.com>
48536
48537         * modules/mkdir (License): Re-license as LGPLv2+.
48538
48539 2008-04-29  Bruno Haible  <bruno@clisp.org>
48540
48541         * modules/rawmemchr (Maintainer): Set to Eric.
48542         * modules/strchrnul (Maintainer): Likewise.
48543
48544 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48545
48546         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48547         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48548
48549         * modules/arpa_inet (arpa/inet.h): Use them.
48550
48551 2008-04-28  Eric Blake  <ebb9@byu.net>
48552
48553         Test getndelim2.
48554         * modules/getndelim2-tests: New file.
48555         * tests/test-getndelim2.c: Likewise.
48556         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48557         stream.
48558         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48559
48560         * MODULES.html.sh: Document new module.
48561
48562 2008-04-20  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/c-stack.c (die): Use raise.
48565         * modules/c-stack (Depends-on): Add raise.
48566
48567 2008-04-28  Bruno Haible  <bruno@clisp.org>
48568
48569         Expect rpmatch to be declared.
48570         * lib/yesno.c (rpmatch): Remove declaration.
48571
48572         Declare rpmatch.
48573         * lib/stdlib.in.h (rpmatch): New declaration.
48574         * lib/rpmatch.c: Include <stdlib.h> first.
48575         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48576         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48578         HAVE_RPMATCH.
48579         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48580         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48581         (Include): Set to <stdlib.h>.
48582         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48583         HAVE_RPMATCH.
48584         * NEWS: Document the change.
48585
48586 2008-04-28  Bruno Haible  <bruno@clisp.org>
48587
48588         Change rpmatch to use nl_langinfo when appropriate.
48589         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48590         (N_): New macro.
48591         (localized_pattern): New function/macro.
48592         (try): Remove match, nomatch arguments. Copy the pattern into safe
48593         memory before caching it.
48594         (rpmatch): Use localized_pattern. Add translator comments.
48595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48596         Suggested by Eric Blake.
48597         * modules/rpmatch (Depends-on): Add stdbool.
48598
48599 2008-04-28  Eric Blake  <ebb9@byu.net>
48600
48601         Add rawmemchr module, matching glibc.
48602         * modules/string (Makefile.am): New indicator.
48603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48604         * lib/string.in.h (rawmemchr): Declare when appropriate.
48605         * modules/rawmemchr: New file.
48606         * m4/rawmemchr.m4: Likewise.
48607         * lib/rawmemchr.c: Likewise.
48608         * modules/rawmemchr-tests: Likewise.
48609         * tests/test-rawmemchr.c: Likewise.
48610         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48611         module.
48612         * modules/strchrnul (Depends-on): Add rawmemchr.
48613         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48614
48615         Whitespace cleanup.
48616         * tests/test-strchrnul.c: Reindent.
48617         * lib/strchrnul.c: Likewise.
48618
48619         Optimize and test strchrnul.
48620         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48621         * modules/strchrnul-tests: New file.
48622         * tests/test-strchrnul.c: Likewise.
48623
48624         Remove intprops dependency.
48625         * modules/memchr (Depends-on): Remove intprops.
48626         * modules/memrchr (Depends-on): Likewise.
48627         * modules/memchr2 (Depends-on): Likewise.
48628         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48629         * lib/memrchr.c (__memrchr): Likewise.
48630         * lib/memrchr2.c (memchr2): Likewise.
48631         Reported by Simon Josefsson.
48632
48633 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48634
48635         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48636         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48637
48638 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48639
48640         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48641
48642         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48643
48644         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48645
48646         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48647         declarations.
48648         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48649
48650         * m4/inet_pton.m4: Don't check for header files.
48651
48652         * m4/inet_ntop.m4: Don't check for header files.
48653
48654 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48655
48656         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48657         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48658         trigger for cygwin).
48659         Reported by Bruno Haible  <bruno@clisp.org>.
48660
48661 2008-04-28  Bruno Haible  <bruno@clisp.org>
48662
48663         * doc/posix-functions/strdup.texi: Mention mingw problem.
48664
48665 2008-04-27  Bruno Haible  <bruno@clisp.org>
48666
48667         * modules/stat-time-tests (Depends-on): Add sleep.
48668         * tests/test-stat-time.c (force_unlink): New function.
48669         (cleanup): Use it.
48670         (test_mtime): Remove the ctime related tests.
48671         (test_ctime): New function, containing the ctime related tests.
48672         (main): Call test_ctime, except on native Windows platforms.
48673
48674 2008-04-27  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/rpmatch.c (rpmatch): Add some comments.
48677         Reported by James Youngman <jay@gnu.org>.
48678
48679 2008-04-27  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48682         quiet NaNs.
48683
48684 2008-04-27  Bruno Haible  <bruno@clisp.org>
48685
48686         Make test-yesno.sh work on mingw.
48687         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48688         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48689         (main): Set stdin to binary mode.
48690         * modules/yesno-tests (Depends-on): Add binary-io.
48691
48692 2008-04-27  Bruno Haible  <bruno@clisp.org>
48693
48694         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48695         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48696         argument that lie outside the IEEE 854 domain.
48697         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48698         (gl_ISFINITE): Use it.
48699         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48700
48701 2008-04-27  Bruno Haible  <bruno@clisp.org>
48702
48703         Allow local renaming in config.h.
48704         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48705
48706 2008-04-27  Bruno Haible  <bruno@clisp.org>
48707
48708         * lib/memchr.c (__memchr): Change type of 'i'.
48709         * lib/memchr2.c (memchr2): Likewise.
48710
48711 2008-04-26  Eric Blake  <ebb9@byu.net>
48712         and Bruno Haible  <bruno@clisp.org>
48713
48714         Optimize and test memrchr.
48715         * modules/memrchr (Depends-on): Add intprops.
48716         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48717         * modules/memrchr-tests: New file.
48718         * tests/test-memrchr.c: New file.
48719
48720 2008-04-26  Bruno Haible  <bruno@clisp.org>
48721
48722         Add tentative support for DragonFly BSD.
48723         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48724         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48725         fp.
48726         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48727         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48728         * lib/fpurge.c (fpurge): Likewise.
48729         * lib/freadable.c (freaadable): Likewise.
48730         * lib/freadahead.c (freadahead): Likewise.
48731         * lib/freading.c (freading): Likewise.
48732         * lib/freadptr.c (freadptr): Likewise.
48733         * lib/freadseek.c (freadptrinc): Likewise.
48734         * lib/fseeko.c (fseeko): Likewise.
48735         * lib/fseterr.c (fseterr): Likewise.
48736         * lib/fwritable.c (fwritable): Likewise.
48737         * lib/fwriting.c (fwriting): Likewise.
48738
48739 2008-04-26  Bruno Haible  <bruno@clisp.org>
48740
48741         * lib/stdio-impl.h: New file.
48742         * lib/fbufmode.c: Include stdio-impl.h.
48743         (fbufmode): Use fp_, remove redundant #defines.
48744         * lib/fflush.c: Include stdio-impl.h.
48745         (clear_ungetc_buffer): Remove redundant #defines.
48746         * lib/fpurge.c: Include stdio-impl.h.
48747         (fpurge): Remove redundant #defines.
48748         * lib/freadable.c: Include stdio-impl.h.
48749         (freadable): Remove redundant #defines.
48750         * lib/freadahead.c: Include stdio-impl.h.
48751         (freadahead): Remove redundant #defines.
48752         * lib/freading.c: Include stdio-impl.h.
48753         (freading): Remove redundant #defines.
48754         * lib/freadptr.c: Include stdio-impl.h.
48755         (freadptr): Remove redundant #defines.
48756         * lib/freadseek.c: Include stdio-impl.h.
48757         (freadptrinc): Remove redundant #defines.
48758         * lib/fseeko.c: Include stdio-impl.h.
48759         (rpl_fseeko): Remove redundant #defines.
48760         * lib/fseterr.c: Include stdio-impl.h.
48761         (fseterr): Remove redundant #defines.
48762         * lib/fwritable.c: Include stdio-impl.h.
48763         (fwritable: Remove redundant #defines.
48764         * lib/fwriting.c: Include stdio-impl.h.
48765         (fwriting): Remove redundant #defines.
48766         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48767         * modules/fflush (Files): Likewise.
48768         * modules/fpurge (Files): Likewise.
48769         * modules/freadable (Files): Likewise.
48770         * modules/freadahead (Files): Likewise.
48771         * modules/freading (Files): Likewise.
48772         * modules/freadptr (Files): Likewise.
48773         * modules/freadseek (Files): Likewise.
48774         * modules/fseeko (Files): Likewise.
48775         * modules/fseterr (Files): Likewise.
48776         * modules/fwritable (Files): Likewise.
48777         * modules/fwriting (Files): Likewise.
48778
48779 2008-04-26  Bruno Haible  <bruno@clisp.org>
48780
48781         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48782         restore_seek_optimization, update_fpos_cache): New functions, extracted
48783         from rpl_fflush.
48784         (rpl_fflush): Use them.
48785         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48786         (gl_REPLACE_FFLUSH): Use it.
48787
48788 2008-04-26  Bruno Haible  <bruno@clisp.org>
48789
48790         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48791         on Solaris.
48792         * tests/test-xstrtoimax.sh: Likewise.
48793         * tests/test-xstrtoumax.sh: Likewise.
48794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48795
48796 2008-04-26  Bruno Haible  <bruno@clisp.org>
48797
48798         * modules/memchr-tests: New file.
48799         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48800
48801 2008-04-26  Eric Blake  <ebb9@byu.net>
48802             Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/memchr.c: Include intprops.h.
48805         (__memchr): Optimize parallel detection of matching bytes. Rename local
48806         variables. Add explanatory comments.
48807
48808 2008-04-26  Bruno Haible  <bruno@clisp.org>
48809
48810         Fix module 'memchr', broken since 2000-10-28.
48811         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48812
48813 2008-04-26  Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48816         comments.
48817
48818 2008-04-25  Eric Blake  <ebb9@byu.net>
48819
48820         Use native fstatat on cygwin 1.7.0.
48821         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48822         first.
48823
48824 2008-04-23  Eric Blake  <ebb9@byu.net>
48825
48826         Improve memchr2 performance.
48827         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48828         NUL bytes.
48829         * modules/memchr2 (Depends-on): Use intprops.h.
48830
48831 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48832
48833         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48834         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48835         <blp@cs.stanford.edu>.
48836
48837 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48838
48839         * lib/arpa_inet.in.h: New file.
48840
48841         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48842         (Makefile.am): Sed in substitute header file.
48843
48844         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48845         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48846
48847         * modules/inet_ntop (configure.ac): Use
48848         gl_ARPA_INET_MODULE_INDICATOR.
48849
48850         * modules/inet_pton (configure.ac): Use
48851         gl_ARPA_INET_MODULE_INDICATOR.
48852
48853 2008-04-22  Jim Meyering  <meyering@redhat.com>
48854
48855         * modules/verify (License): Re-license as LGPLv2+.
48856
48857 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48858
48859         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48860         parameter to void* as per POSIX standard (MinGW uses char*).
48861
48862 2008-04-21  Bruno Haible  <bruno@clisp.org>
48863
48864         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48865         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48866         Define to replacements if REPLACE_ISWCNTRL is 1.
48867         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48868         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48869         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48870         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48871         what it fixes.
48872         * doc/posix-functions/iswalpha.texi: Likewise.
48873         * doc/posix-functions/iswblank.texi: Likewise.
48874         * doc/posix-functions/iswcntrl.texi: Likewise.
48875         * doc/posix-functions/iswdigit.texi: Likewise.
48876         * doc/posix-functions/iswgraph.texi: Likewise.
48877         * doc/posix-functions/iswlower.texi: Likewise.
48878         * doc/posix-functions/iswprint.texi: Likewise.
48879         * doc/posix-functions/iswpunct.texi: Likewise.
48880         * doc/posix-functions/iswspace.texi: Likewise.
48881         * doc/posix-functions/iswupper.texi: Likewise.
48882         * doc/posix-functions/iswxdigit.texi: Likewise.
48883         Reported by Alain Guibert.
48884
48885 2008-04-21  Bruno Haible  <bruno@clisp.org>
48886
48887         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48888         Patch by Alain Guibert.
48889
48890 2008-04-21  Bruno Haible  <bruno@clisp.org>
48891
48892         Fix test failures on mingw.
48893         * tests/test-xstrtol.c (print_no_progname): New function.
48894         (main): Install it in error_print_progname hook.
48895         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48896         * tests/test-xstrtoimax.sh: Likewise.
48897         * tests/test-xstrtoumax.sh: Likewise.
48898
48899 2008-04-21  Bruno Haible  <bruno@clisp.org>
48900
48901         Fix test failure on mingw.
48902         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48903
48904 2008-04-21  Bruno Haible  <bruno@clisp.org>
48905
48906         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48907         Actually assign a value.
48908
48909 2008-04-20  Bruno Haible  <bruno@clisp.org>
48910
48911         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48912         take 2.
48913         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48914         'canonicalize-lgpl' module is also used.
48915         * lib/canonicalize-lgpl.c: Undo last change.
48916         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48917
48918 2008-04-20  Bruno Haible  <bruno@clisp.org>
48919
48920         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48921         config.h. Provide _mkdir based fallback for mingw.
48922         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48923         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48925         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48926         rather than defining mkdir in config.h.
48927         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48928         (gl_SYS_STAT_H_DEFAULTS): New macro.
48929         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48930         HAVE_IO_H any more.
48931         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48932         HAVE_DECL_MKDIR and HAVE_IO_H.
48933
48934 2008-04-20  Bruno Haible  <bruno@clisp.org>
48935
48936         * lib/isapipe.c: Port to native Windows platforms.
48937
48938 2008-04-20  Bruno Haible  <bruno@clisp.org>
48939
48940         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48941
48942 2008-04-21  Eric Blake  <ebb9@byu.net>
48943
48944         Work around preprocessors that don't handle UINTMAX_MAX.
48945         * lib/memchr2.c (memchr2): Avoid embedded #if.
48946         Reported by Alain Guibert, fix suggested by Bruno Haible.
48947
48948 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48949
48950         * doc/posix-functions/strftime.texi (strftime): Explain better
48951         Windows incompatibility.  Suggested by Micah Cowan
48952         <micah@cowan.name>.
48953
48954 2008-04-20  Bruno Haible  <bruno@clisp.org>
48955
48956         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48957         unistr/u8-mblen.
48958
48959 2008-04-20  Bruno Haible  <bruno@clisp.org>
48960
48961         Fix test failure on platforms with non-GNU iconv.
48962         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48963         (U_TO_U8): Use it, rather than u16_to_u8.
48964         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48965         units at the end of the input string.
48966         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48967
48968 2008-04-20  Bruno Haible  <bruno@clisp.org>
48969
48970         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48971         when the resulting length is 0.
48972         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48973
48974 2008-04-20  Bruno Haible  <bruno@clisp.org>
48975
48976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48977         works.
48978         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48979
48980 2008-04-20  Bruno Haible  <bruno@clisp.org>
48981
48982         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48983         * modules/tsearch-tests (configure.ac): Test for initstate function.
48984
48985 2008-04-20  Bruno Haible  <bruno@clisp.org>
48986
48987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48988         for nlink_t if missing.
48989         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48990
48991 2008-04-19  Bruno Haible  <bruno@clisp.org>
48992
48993         Work around snprintf bug on Linux libc5.
48994         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48996         gl_SNPRINTF_SIZE1.
48997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48998         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48999         that test failed.
49000         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49001         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49002         * modules/snprintf (Files): Add m4/printf.m4.
49003         * modules/vsnprintf (Files): Likewise.
49004         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49005         * doc/posix-functions/vsnprintf.texi: Likewise.
49006
49007 2008-04-19  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49010         from 0.0058 to less than 10^-7.
49011
49012 2008-04-19  Bruno Haible  <bruno@clisp.org>
49013
49014         Fix rounding when a precision is given.
49015         * lib/vasnprintf.c (is_borderline): New function.
49016         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49017         9...9x.
49018         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49019         %e, %g.
49020         * tests/test-vasprintf-posix.c (test_function): Likewise.
49021         * tests/test-snprintf-posix.h (test_function): Likewise.
49022         * tests/test-sprintf-posix.h (test_function): Likewise.
49023         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49024         * tests/test-printf-posix.h (test_function): Likewise.
49025         * tests/test-printf-posix.output: Update.
49026         Reported by John Darrington <john@darrington.wattle.id.au> via
49027         Ben Pfaff <blp@cs.stanford.edu>.
49028
49029 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49030
49031         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49032         Suggested by Bruno Haible <bruno@clisp.org>.
49033
49034 2008-04-17  Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49037         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49038         implementation.
49039         Patch by Bruce Merry <bmerry@gmail.com>.
49040
49041 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49042
49043         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49044         doesn't work under Windows.
49045
49046 2008-04-16  Bruno Haible  <bruno@clisp.org>
49047
49048         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49049         New macros.
49050         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49051         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49052         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49053         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49054         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49055         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49056         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49057         macros.
49058         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49059         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49060         Northern Sotho, Uighur.
49061
49062 2008-04-16  Bruno Haible  <bruno@clisp.org>
49063
49064         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49065         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49066         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49067         Reported by Daniel Bergström <daniel@octocode.com>.
49068
49069 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49070             Bruno Haible  <bruno@clisp.org>
49071
49072         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49073         function.
49074         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49075         New functions, mostly extracted from gl_locale_name_default.
49076         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49077
49078 2008-04-16  Eric Blake  <ebb9@byu.net>
49079
49080         Adjust strtod detection to catch glibc 2.7 bug.
49081         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49082         Reported by John Gatewood Ham.
49083
49084 2008-04-16  Bruno Haible  <bruno@clisp.org>
49085
49086         Add tentative support for Linux libc5.
49087         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49088         * lib/fpurge.c (fpurge): Likewise.
49089         * lib/freadable.c (freadable): Likewise.
49090         * lib/freadahead.c (freadahead): Likewise.
49091         * lib/freading.c (freading): Likewise.
49092         * lib/freadptr.c (freadptr): Likewise.
49093         * lib/freadseek.c (freadptrinc): Likewise.
49094         * lib/fseeko.c (rpl_fseeko): Likewise.
49095         * lib/fseterr.c (fseterr): Likewise.
49096         * lib/fwritable.c (fwritable): Likewise.
49097         * lib/fwriting.c (fwriting): Likewise.
49098         Reported by Alain Guibert <alguibert+bts@free.fr>.
49099
49100 2008-04-15  Bruno Haible  <bruno@clisp.org>
49101
49102         * modules/mathl (configure.ac): Define module indicator.
49103
49104 2008-04-15  Bruno Haible  <bruno@clisp.org>
49105
49106         * lib/logl.c (logl): Remove unused variables.
49107
49108 2008-04-15  Bruno Haible  <bruno@clisp.org>
49109
49110         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49111         fails.
49112
49113 2008-04-15  Bruno Haible  <bruno@clisp.org>
49114
49115         * lib/trim.c (trim2): Fix argument of isspace() macro.
49116
49117 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49118
49119         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49120         to 0.
49121         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49122
49123 2008-04-14  Bruno Haible  <bruno@clisp.org>
49124
49125         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49126         AC_LANG_PROGRAM argument.
49127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49128         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49130         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49131         * m4/math_h.m4 (gl_MATH_H): Likewise.
49132         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49134         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49135         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49136         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49137         * m4/regex.m4 (gl_REGEX): Likewise.
49138         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49139         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49141         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49143         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49144         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49145         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49146
49147 2008-04-14  Jim Meyering  <meyering@redhat.com>
49148
49149         test-strtod: fix typos: s/abs/fabs/
49150         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49151
49152 2008-04-13  Bruno Haible  <bruno@clisp.org>
49153
49154         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49155         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49156         module is also used and while not building the reloc-wrapper.
49157
49158 2008-04-13  Bruno Haible  <bruno@clisp.org>
49159
49160         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49161
49162 2008-04-13  Bruno Haible  <bruno@clisp.org>
49163
49164         Fix AIX compilation failure introduced on 2008-04-02.
49165         * tests/test-frexp.c (exp): Undefine before redefining.
49166         * tests/test-frexpl.c (exp): Likewise.
49167
49168 2008-04-13  Bruno Haible  <bruno@clisp.org>
49169
49170         Work around a HP-UX stdio bug.
49171         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49172         * tests/test-ftello.c (main): Likewise.
49173         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49174         * doc/posix-functions/ftello.texi: Likewise.
49175
49176 2008-04-13  Bruno Haible  <bruno@clisp.org>
49177
49178         Make test-signbit pass on HP-UX/hppa.
49179         * tests/test-signbit.c (minus_zerol): New variable.
49180         (test_signbitl): Use it.
49181
49182 2008-04-13  Bruno Haible  <bruno@clisp.org>
49183
49184         Make truncl work on OSF/1 4.0.
49185         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49186         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49187         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49189         HAVE_DECL_TRUNCL.
49190         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49191         HAVE_DECL_TRUNCL.
49192         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49193
49194 2008-04-13  Bruno Haible  <bruno@clisp.org>
49195
49196         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49197
49198 2008-04-13  Bruno Haible  <bruno@clisp.org>
49199
49200         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49201         expression, so as to avoid HP-UX 11 cc compiler bug.
49202
49203 2008-04-13  Bruno Haible  <bruno@clisp.org>
49204
49205         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49206
49207 2008-04-13  Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/git-merge-changelog.c: Remove empty declaration outside of
49210         functions.
49211
49212 2008-04-13  Bruno Haible  <bruno@clisp.org>
49213
49214         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49215
49216 2008-04-13  Bruno Haible  <bruno@clisp.org>
49217
49218         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49219         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49221         also if it exists but lacks definitions of the SHUT_* macros.
49222         * modules/sys_socket (Description): Update.
49223         Reported by Elbert Pol <e.pol@chello.nl>.
49224
49225 2008-04-13  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/localcharset.c (OS2): Don't redefine if already defined.
49228         Reported by Elbert Pol <e.pol@chello.nl>.
49229
49230 2008-04-13  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/binary-io.h [__EMX__]: Include <io.h>.
49233         Reported by Elbert Pol <e.pol@chello.nl>.
49234
49235 2008-04-12  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/fpucw.h: Enable the definitions also for x86_64.
49238         Needed for NetBSD/x86_64.
49239         Reported by Thomas Klausner <tk@giga.or.at>.
49240
49241 2008-04-12  Bruno Haible  <bruno@clisp.org>
49242
49243         * tests/test-strtod.c: Include isnand.h.
49244         (main): Use isnand instead of isnan.
49245         Reported by Jim Meyering.
49246
49247 2008-04-12  Bruno Haible  <bruno@clisp.org>
49248
49249         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49250         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49251
49252 2008-04-12  Jim Meyering  <meyering@redhat.com>
49253
49254         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49255
49256 2008-04-12  Bruno Haible  <bruno@clisp.org>
49257
49258         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49259         Reported by Elbert Pol <e.pol@chello.nl>.
49260
49261 2008-04-12  Eric Blake  <ebb9@byu.net>
49262
49263         Work around Solaris 10 math.h bug.
49264         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49265         (gl_MATH_H_DEFAULTS): Set up default.
49266         * modules/math (Makefile.am): Replace new indicators.
49267         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49268         * tests/test-math.c (main): Test this.
49269         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49270         * doc/posix-headers/math.texi (math.h): Mention bug.
49271         Reported by Nelson H. F. Beebe and Jim Meyering.
49272
49273 2008-04-11  Bruno Haible  <bruno@clisp.org>
49274
49275         Adapt to future versions of Apple GCC.
49276         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49277         Reported by Peter O'Gorman <peter@pogma.com>.
49278
49279 2008-04-11  Bruno Haible  <bruno@clisp.org>
49280
49281         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49282
49283 2008-04-11  Bruno Haible  <bruno@clisp.org>
49284
49285         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49286
49287         * modules/getaddrinfo-tests (Makefile.am): Define
49288         test_getaddrinfo_LDADD.
49289
49290 2008-04-11  Bruno Haible  <bruno@clisp.org>
49291
49292         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49293         (init): Fix syntax error.
49294         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49295         is declared.
49296
49297 2008-04-11  Bruno Haible  <bruno@clisp.org>
49298
49299         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49300         * modules/glob (Depends-on): Add stdbool.
49301
49302 2008-04-11  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/trim.c: Include <string.h>.
49305
49306 2008-04-11  Eric Blake  <ebb9@byu.net>
49307
49308         Avoid compile failure on OS/2.
49309         * lib/regex_internal.h (internal_function): Disable optimization
49310         on OS/2 (__EMX__), where it caused compiler error.
49311         Reported by Elbert Pol.
49312
49313 2008-04-11  Bruno Haible  <bruno@clisp.org>
49314
49315         Flush the standard error stream before aborting. Needed on mingw.
49316         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49317         * tests/test-array_list.c (ASSERT): Likewise.
49318         * tests/test-array_oset.c (ASSERT): Likewise.
49319         * tests/test-avltree_list.c (ASSERT): Likewise.
49320         * tests/test-avltree_oset.c (ASSERT): Likewise.
49321         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49322         * tests/test-binary-io.c (ASSERT): Likewise.
49323         * tests/test-byteswap.c (ASSERT): Likewise.
49324         * tests/test-c-ctype.c (ASSERT): Likewise.
49325         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49326         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49327         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49328         * tests/test-c-strstr.c (ASSERT): Likewise.
49329         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49330         * tests/test-canonicalize.c (ASSERT): Likewise.
49331         * tests/test-carray_list.c (ASSERT): Likewise.
49332         * tests/test-ceilf1.c (ASSERT): Likewise.
49333         * tests/test-ceilf2.c (ASSERT): Likewise.
49334         * tests/test-ceill.c (ASSERT): Likewise.
49335         * tests/test-count-one-bits.c (ASSERT): Likewise.
49336         * tests/test-fbufmode.c (ASSERT): Likewise.
49337         * tests/test-fflush2.c (ASSERT): Likewise.
49338         * tests/test-floorf1.c (ASSERT): Likewise.
49339         * tests/test-floorf2.c (ASSERT): Likewise.
49340         * tests/test-floorl.c (ASSERT): Likewise.
49341         * tests/test-fopen.c (ASSERT): Likewise.
49342         * tests/test-fpending.c (ASSERT): Likewise.
49343         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49344         * tests/test-fpurge.c (ASSERT): Likewise.
49345         * tests/test-freadable.c (ASSERT): Likewise.
49346         * tests/test-freadahead.c (ASSERT): Likewise.
49347         * tests/test-freading.c (ASSERT): Likewise.
49348         * tests/test-freadptr.c (ASSERT): Likewise.
49349         * tests/test-freadptr2.c (ASSERT): Likewise.
49350         * tests/test-freadseek.c (ASSERT): Likewise.
49351         * tests/test-freopen.c (ASSERT): Likewise.
49352         * tests/test-frexp.c (ASSERT): Likewise.
49353         * tests/test-frexpl.c (ASSERT): Likewise.
49354         * tests/test-fseek.c (ASSERT): Likewise.
49355         * tests/test-fseeko.c (ASSERT): Likewise.
49356         * tests/test-fstrcmp.c (ASSERT): Likewise.
49357         * tests/test-ftell.c (ASSERT): Likewise.
49358         * tests/test-ftello.c (ASSERT): Likewise.
49359         * tests/test-func.c (ASSERT): Likewise.
49360         * tests/test-fwritable.c (ASSERT): Likewise.
49361         * tests/test-fwriting.c (ASSERT): Likewise.
49362         * tests/test-getdelim.c (ASSERT): Likewise.
49363         * tests/test-getline.c (ASSERT): Likewise.
49364         * tests/test-i-ring.c (ASSERT): Likewise.
49365         * tests/test-iconv-utf.c (ASSERT): Likewise.
49366         * tests/test-iconv.c (ASSERT): Likewise.
49367         * tests/test-isfinite.c (ASSERT): Likewise.
49368         * tests/test-isnand.c (ASSERT): Likewise.
49369         * tests/test-isnanf.c (ASSERT): Likewise.
49370         * tests/test-isnanl.h (ASSERT): Likewise.
49371         * tests/test-ldexpl.c (ASSERT): Likewise.
49372         * tests/test-linked_list.c (ASSERT): Likewise.
49373         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49374         * tests/test-localename.c (ASSERT): Likewise.
49375         * tests/test-lseek.c (ASSERT): Likewise.
49376         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49377         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49378         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49379         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49380         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49381         * tests/test-mbschr.c (ASSERT): Likewise.
49382         * tests/test-mbscspn.c (ASSERT): Likewise.
49383         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49384         * tests/test-mbspbrk.c (ASSERT): Likewise.
49385         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49386         * tests/test-mbsrchr.c (ASSERT): Likewise.
49387         * tests/test-mbsspn.c (ASSERT): Likewise.
49388         * tests/test-mbsstr1.c (ASSERT): Likewise.
49389         * tests/test-mbsstr2.c (ASSERT): Likewise.
49390         * tests/test-mbsstr3.c (ASSERT): Likewise.
49391         * tests/test-memchr2.c (ASSERT): Likewise.
49392         * tests/test-memmem.c (ASSERT): Likewise.
49393         * tests/test-open.c (ASSERT): Likewise.
49394         * tests/test-printf-frexp.c (ASSERT): Likewise.
49395         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49396         * tests/test-printf-posix.c (ASSERT): Likewise.
49397         * tests/test-quotearg.c (ASSERT): Likewise.
49398         * tests/test-rbtree_list.c (ASSERT): Likewise.
49399         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49400         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49401         * tests/test-round1.c (ASSERT): Likewise.
49402         * tests/test-roundf1.c (ASSERT): Likewise.
49403         * tests/test-roundl.c (ASSERT): Likewise.
49404         * tests/test-signbit.c (ASSERT): Likewise.
49405         * tests/test-sleep.c (ASSERT): Likewise.
49406         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49407         * tests/test-snprintf.c (ASSERT): Likewise.
49408         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49409         * tests/test-stat-time.c (ASSERT): Likewise.
49410         * tests/test-strcasestr.c (ASSERT): Likewise.
49411         * tests/test-strerror.c (ASSERT): Likewise.
49412         * tests/test-striconv.c (ASSERT): Likewise.
49413         * tests/test-striconveh.c (ASSERT): Likewise.
49414         * tests/test-striconveha.c (ASSERT): Likewise.
49415         * tests/test-strsignal.c (ASSERT): Likewise.
49416         * tests/test-strstr.c (ASSERT): Likewise.
49417         * tests/test-strtod.c (ASSERT): Likewise.
49418         * tests/test-trunc1.c (ASSERT): Likewise.
49419         * tests/test-trunc2.c (ASSERT): Likewise.
49420         * tests/test-truncf1.c (ASSERT): Likewise.
49421         * tests/test-truncf2.c (ASSERT): Likewise.
49422         * tests/test-truncl.c (ASSERT): Likewise.
49423         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49424         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49425         * tests/test-vasnprintf.c (ASSERT): Likewise.
49426         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49427         * tests/test-vasprintf.c (ASSERT): Likewise.
49428         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49429         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49430         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49431         * tests/test-vsnprintf.c (ASSERT): Likewise.
49432         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49433         * tests/test-wcwidth.c (ASSERT): Likewise.
49434         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49435         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49436         * tests/test-xvasprintf.c (ASSERT): Likewise.
49437         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49438         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49439         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49440         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49441         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49442         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49443         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49444         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49445         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49446         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49447         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49448         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49449         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49450         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49451         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49452         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49453         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49454         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49455         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49456         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49457         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49458         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49459         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49460         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49461         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49462         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49463         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49464         * tests/unictype/test-combining.c (ASSERT): Likewise.
49465         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49466         * tests/unictype/test-digit.c (ASSERT): Likewise.
49467         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49468         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49469         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49470         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49471         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49472         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49473         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49474         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49475         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49476         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49477         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49478         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49479         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49480         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49481         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49482         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49483         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49484         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49485         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49486         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49487         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49488         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49489         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49490         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49491         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49492         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49493         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49494         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49495         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49496         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49497         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49498         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49499         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49500         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49501         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49502         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49503         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49504         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49505         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49506         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49507         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49508         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49509         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49510         Reported by Eric Blake.
49511
49512 2008-04-11  Bruno Haible  <bruno@clisp.org>
49513
49514         * lib/wchar.in.h: Tweak comment.
49515
49516 2008-04-11  Bruno Haible  <bruno@clisp.org>
49517
49518         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49519         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49520         gl_COMMON.
49521         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49522
49523 2008-04-11  Bruno Haible  <bruno@clisp.org>
49524
49525         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49526
49527 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49528
49529         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49530         of attempting to use non-existing /dev/*random.  Based on patch
49531         from Adam Strzelecki <ono@java.pl> in
49532         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49533
49534 2008-04-08  Bruno Haible  <bruno@clisp.org>
49535
49536         Add tentative support for emx+gcc.
49537         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49538         * lib/fpurge.c (fpurge): Likewise.
49539         * lib/freadable.c (freadable): Likewise.
49540         * lib/freadahead.c (freadahead): Likewise.
49541         * lib/freading.c (freading): Likewise.
49542         * lib/freadptr.c (freadptr): Likewise.
49543         * lib/freadseek.c (freadptrinc): Likewise.
49544         * lib/fseeko.c (rpl_fseeko): Likewise.
49545         * lib/fseterr.c (fseterr): Likewise.
49546         * lib/fwritable.c (fwritable): Likewise.
49547         * lib/fwriting.c (fwriting): Likewise.
49548         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49549
49550 2008-04-09  Eric Blake  <ebb9@byu.net>
49551
49552         Avoid some autoconf warnings.
49553         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49554         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49555         * m4/afs.m4 (gl_AFS): Likewise.
49556         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49557         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49560         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49561         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49562         (AC_CHECK_DECLS_ONCE): Likewise.
49563         Rename file...
49564         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49565         gnulib-tool requires autoconf 2.59 or better.
49566         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49567
49568 2008-04-08  Eric Blake  <ebb9@byu.net>
49569
49570         Use 'git describe --match' if present (added in git 1.5.5).
49571         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49572         if possible.
49573
49574 2008-04-08  Bruno Haible  <bruno@clisp.org>
49575
49576         Add tentative support for OpenServer.
49577         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49578         _ptr, _cnt.
49579         * lib/fpurge.c (fpurge): Likewise.
49580         * lib/freadable.c (freadable): Likewise.
49581         * lib/freadahead.c (freadahead): Likewise.
49582         * lib/freading.c (freading): Likewise.
49583         * lib/freadptr.c (freadptr): Likewise.
49584         * lib/freadseek.c (freadptrinc): Likewise.
49585         * lib/fseeko.c (rpl_fseeko): Likewise.
49586         * lib/fseterr.c (fseterr): Likewise.
49587         * lib/fwritable.c (fwritable): Likewise.
49588         * lib/fwriting.c (fwriting): Likewise.
49589         Reported by Roger Cornelius <rac@tenzing.org> and
49590         Brian K. White <brian@aljex.com>.
49591
49592 2008-04-06  Jim Meyering  <meyering@redhat.com>
49593
49594         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49595
49596 2008-04-06  Bruno Haible  <bruno@clisp.org>
49597
49598         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49599         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49600         * tests/test-printf-posix.sh: Likewise.
49601         * tests/test-vfprintf-posix.sh: Likewise.
49602         * tests/test-vprintf-posix.sh: Likewise.
49603         * tests/test-xprintf-posix.sh: Likewise.
49604
49605 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49606
49607         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49608         hide error from 'ls', needed on OS/2.
49609         Report by Elbert Pol <elbert.pol@gmail.com>.
49610
49611 2008-04-04  Eric Blake  <ebb9@byu.net>
49612
49613         Make test-fseeko.c failures meaningful.
49614         * tests/test-fseeko.c: Print line number on failure.
49615         * tests/test-fseek.c: Likewise.
49616         Reported by Nelson H. F. Beebe.
49617
49618         Improve strtod bug detection check.
49619         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49620         required for Solaris 10.
49621         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49622
49623 2008-04-04  Bruno Haible  <bruno@clisp.org>
49624
49625         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49626         by m4/setenv.m4.
49627
49628 2008-04-03  Eric Blake  <ebb9@byu.net>
49629
49630         Ensure sane .version contents.
49631         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49632         version string.
49633         * build-aux/git-version-gen: Improve documentation.
49634
49635         Make GNU make output nicer.
49636         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49637         MAKECMDGOALS to enforce message for all command line targets.  Set
49638         srcdir for use in maint.mk.
49639
49640         Another maintainer tweak.
49641         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49642         a target that regenerates version.
49643
49644 2008-04-03  Jim Meyering  <meyering@redhat.com>
49645
49646         vc-list-files: don't cause coreutils "make po-check" failure
49647         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49648
49649 2008-04-03  Eric Blake  <ebb9@byu.net>
49650
49651         Allow VPATH usage of vc-list-files.
49652         * build-aux/vc-list-files (scriptversion): Add timestamp.
49653         (options): Add --help, --version, -C.
49654         (CVS): Support installed cvsu.
49655
49656 2008-04-02  Bruno Haible  <bruno@clisp.org>
49657
49658         Avoid some "statement with no effect" warnings from gcc.
49659         * tests/test-wctype.c (main): Explicitly ignore unused values.
49660         Reported by Jim Meyering.
49661
49662 2008-04-02  Jim Meyering  <meyering@redhat.com>
49663
49664         Avoid some warnings from "gcc -Wshadow".
49665         * tests/test-frexp.c (exp): Define to a different identifier.
49666         * tests/test-frexpl.c (exp): Likewise.
49667
49668 2008-04-03  Jim Meyering  <meyering@redhat.com>
49669
49670         bootstrap: remove dangling *.[ch] symlinks from lib
49671         * build-aux/bootstrap [dangling symlink removal]: Move find's
49672         -depth option to precede all others, to avoid a warning.
49673         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49674
49675 2008-04-02  Bruno Haible  <bruno@clisp.org>
49676
49677         Avoid some warnings from "gcc -Wshadow".
49678         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49679         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49680         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49681         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49682         Reported by Jim Meyering.
49683
49684 2008-04-01  Bruno Haible  <bruno@clisp.org>
49685
49686         Fix test to work on IRIX 6.5 with cc.
49687         * tests/test-math.c (numeric_equal): New function.
49688         (main): Use it.
49689
49690 2008-04-01  Bruno Haible  <bruno@clisp.org>
49691
49692         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49693
49694 2008-04-01  Bruno Haible  <bruno@clisp.org>
49695
49696         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49697         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49698         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49699         (Depends-on): Remove math.
49700
49701         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49702         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49703         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49704         (Depends-on): Remove math.
49705
49706         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49707         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49708         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49709         (Depends-on): Remove math.
49710         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49711         (Depends-on): Remove math.
49712
49713         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49714         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49715         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49716         (Depends-on): Remove math.
49717         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49718         (Depends-on): Remove math.
49719
49720         * tests/test-round1.c: Include nan.h.
49721         (main): Use NaNd instead of NAN.
49722         * modules/round-tests (Files): Add tests/nan.h.
49723
49724         * tests/test-trunc1.c: Include nan.h.
49725         (main): Use NaNd instead of NAN.
49726         * modules/trunc-tests (Files): Add tests/nan.h.
49727
49728         * tests/test-roundf1.c: Include nan.h.
49729         (main): Use NaNf instead of NAN.
49730         * modules/roundf-tests (Files): Add tests/nan.h.
49731
49732         * tests/test-truncf1.c: Include nan.h.
49733         (main): Use NaNf instead of NAN.
49734         * modules/truncf-tests (Files): Add tests/nan.h.
49735
49736         * tests/test-ceilf1.c: Include nan.h.
49737         (main): Use NaNf instead of NAN.
49738         * modules/ceilf-tests (Files): Add tests/nan.h.
49739
49740         * tests/test-floorf1.c: Include nan.h.
49741         (main): Use NaNf instead of NAN.
49742         * modules/floorf-tests (Files): Add tests/nan.h.
49743
49744         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49745         (main): Use NaNf instead of NAN.
49746         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49747
49748         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49749         (main): Use NaNd instead of NAN.
49750         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49751
49752         * tests/test-frexp.c: Include nan.h.
49753         (main): Use NaNd instead of NAN.
49754         * modules/frexp-tests (Files): Add tests/nan.h.
49755
49756         * lib/isnan.c: Don't include <math.h>.
49757         (FUNC): Don't use NAN macro.
49758         * modules/isnand-nolibm (Depends-on): Remove math.
49759         * modules/isnanf-nolibm (Depends-on): Remove math.
49760         * modules/isnanl (Depends-on): Remove math.
49761         * modules/isnanl-nolibm (Depends-on): Remove math.
49762
49763         * tests/nan.h: New file.
49764
49765 2008-04-01  Eric Blake  <ebb9@byu.net>
49766
49767         Fix typos.
49768         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49769         values to be the right type.
49770
49771         For now, cater to gnulib strtod inaccuracies.
49772         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49773         fractional results.  While not as nice from a QoI perspective, it
49774         is a quicker patch than correctly implementing decimal to binary
49775         rounding.
49776
49777 2008-03-31  Eric Blake  <ebb9@byu.net>
49778
49779         Guarantee a definition of NAN.
49780         * lib/math.in.h (NAN): Define if missing.
49781         * tests/test-math.c (main): Test it.
49782         * doc/posix-headers/math.texi (math.h): Document this.
49783         * lib/isnan.c (rpl_isnand): Use it.
49784         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49785         * tests/test-floorf1.c (NaN): Likewise.
49786         * tests/test-frexp.c (NaN): Likewise.
49787         * tests/test-isnand.c (NaN): Likewise.
49788         * tests/test-isnanf.c (NaN): Likewise.
49789         * tests/test-round1.c (NaN): Likewise.
49790         * tests/test-roundf1.c (NaN): Likewise.
49791         * tests/test-snprintf-posix.h (NaN): Likewise.
49792         * tests/test-sprintf-posix.h (NaN): Likewise.
49793         * tests/test-trunc1.c (NaN): Likewise.
49794         * tests/test-truncf1.c (NaN): Likewise.
49795         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49796         * tests/test-vasprintf-posix.c (NaN): Likewise.
49797         * modules/isnand-nolibm (Depends-on): Add math.
49798         * modules/isnanf-nolibm (Depends-on): Likewise.
49799         * modules/isnanl (Depends-on): Likewise.
49800         * modules/isnanl-nolibm (Depends-on): Likewise.
49801         * modules/snprintf-posix-tests (Depends-on): Likewise.
49802         * modules/sprintf-posix-tests (Depends-on): Likewise.
49803         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49804         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49805         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49806         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49807
49808 2008-03-31  Bruno Haible  <bruno@clisp.org>
49809
49810         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49811         * doc/posix-functions/strtod.texi: Likewise.
49812
49813 2008-03-31  Bruno Haible  <bruno@clisp.org>
49814
49815         * tests/test-strtod.c (main): Don't use C99 syntax.
49816
49817 2008-03-31  Bruno Haible  <bruno@clisp.org>
49818
49819         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49820         Reported by Eric Blake.
49821
49822 2008-03-31  Jim Meyering  <meyering@redhat.com>
49823
49824         Don't compare actual signbit return values.
49825         * tests/test-strtod.c (main): Rather, compare only their
49826         zero/non-zero nature.
49827
49828 2008-03-31  Eric Blake  <ebb9@byu.net>
49829
49830         More strtod documentation.
49831         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49832         failures as distinct bugs.
49833
49834 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49835
49836         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49837         Problem reported by Erik Benada in
49838         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49839
49840 2008-03-30  Bruno Haible  <bruno@clisp.org>
49841
49842         * tests/test-strtod.c: Add comments about which assertion fails on which
49843         platform.
49844         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49845
49846 2008-03-30  Eric Blake  <ebb9@byu.net>
49847
49848         Test signbit behavior on zeros.
49849         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49850         (test_signbitd, test_signbitl): Likewise.
49851
49852         More strtod touchups.
49853         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49854         sign of negative underflow, for now.  Use .5, not .1.
49855         * doc/posix-functions/strtod.texi (strtod): Mention these
49856         limitations.
49857         Reported by Jim Meyering.
49858
49859 2008-03-30  Bruno Haible  <bruno@clisp.org>
49860
49861         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49862         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49863
49864 2008-03-30  Bruno Haible  <bruno@clisp.org>
49865
49866         Avoid failure when attempting to return empty iconv results on some
49867         platforms.
49868         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49869         allocation, don't report ENOMEM when the resulting string is empty.
49870
49871 2008-03-30  Bruno Haible  <bruno@clisp.org>
49872
49873         Fix buffer overrun.
49874         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49875         Don't consider the width for tmp_length. Check count against tmp_length
49876         before doing the padding. Ensure enough allocation during padding.
49877
49878 2008-03-30  Eric Blake  <ebb9@byu.net>
49879
49880         strtod touchups.
49881         * lib/strtod.c (strtod): Avoid compiler warnings.
49882         Reported by Jim Meyering.
49883
49884 2008-03-30  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49887         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49888         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49889         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49890         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49891         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49892         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49893         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49894
49895         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49896         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49897         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49898         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49899         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49900         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49901         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49902         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49903
49904         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49905         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49906         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49907         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49908         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49909         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49910         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49911         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49912
49913         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49914         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49915
49916         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49917         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49918
49919         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49920         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49921
49922         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49924         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49925
49926         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49927         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49928         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49929
49930         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49932         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49933
49934         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49935         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49936         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49937
49938         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49939         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49941         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49942         (Depends-on): Add EOVERFLOW.
49943         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49944         (Depends-on): Add EOVERFLOW.
49945         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49946         (Depends-on): Add EOVERFLOW.
49947         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49948         (Depends-on): Add EOVERFLOW.
49949         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49950         (Depends-on): Add EOVERFLOW.
49951         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49952         (Depends-on): Add EOVERFLOW.
49953         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49954         (Depends-on): Add EOVERFLOW.
49955         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49956         (Depends-on): Add EOVERFLOW.
49957
49958         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49959         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49960         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49961
49962         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49964         * modules/snprintf (Depends-on): Add EOVERFLOW.
49965
49966         * lib/poll.c (EOVERFLOW): Remove fallback.
49967         * modules/poll (Depends-on): Add EOVERFLOW.
49968
49969         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49970         * modules/getugroups (Depends-on): Add EOVERFLOW.
49971
49972         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49973         * modules/getdelim (Depends-on): Add EOVERFLOW.
49974
49975         * lib/ftell.c (EOVERFLOW): Remove fallback.
49976         * modules/ftell (Depends-on): Add EOVERFLOW.
49977
49978         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49980         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49981
49982         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49983
49984         * modules/EOVERFLOW-tests: New file.
49985         * tests/test-EOVERFLOW.c: New file.
49986
49987         * modules/EOVERFLOW: New file.
49988         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49989
49990 2008-03-30  Bruno Haible  <bruno@clisp.org>
49991
49992         Fix bug introduced on 2007-06-10.
49993         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49994         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49995
49996 2008-03-30  Bruno Haible  <bruno@clisp.org>
49997
49998         Improve freadseek's efficiency after ungetc.
49999         * lib/freadseek.c: Include freadahead.h.
50000         (freadptrinc): New function, extracted from freadseek.
50001         (freadseek): Use it in a loop. Use freadahead to determine the number
50002         of loop iterations.
50003         * modules/freadseek (Depends-on): Add freadahead.
50004         (configure.ac): Require AC_C_INLINE.
50005
50006 2008-03-30  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/freadseek.c (freadseek): Don't ignore the return value of
50009         freadptr.
50010
50011 2008-03-29  Eric Blake  <ebb9@byu.net>
50012
50013         Add hex float support.
50014         * modules/strtod (Depends-on): Add c-ctype.
50015         (Link): Mention POW_LIB.
50016         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50017         whitespace between 'e' and exponent.
50018         * tests/test-strtod.c (main): Enable hex float tests.
50019         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50020         now provides.
50021
50022         Document various strtod bugs, with some fixes.
50023         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50024         "-0x", "inf", "nan", and hex constants.
50025         * doc/posix-functions/atof.texi (atof): Likewise.
50026         * modules/stdlib (Makefile.am): Support strtod.
50027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50028         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50029         detect additional strtod bugs.
50030         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50031         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50032         bool where appropriate.  Parse 'inf' and 'nan'.
50033         * tests/test-strtod.c: New file.
50034         * modules/strtod (Depends-on): Add stdbool, stdlib.
50035         (configure.ac): Turn on module indicator.
50036         * modules/strtod-tests: New module.
50037
50038 2008-03-29  Eric Blake  <ebb9@byu.net>
50039
50040         Fix ftell on mingw.
50041         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50042         * modules/ftell-tests (Depends-on): Add binary-io.
50043         * modules/ftello-tests (Depends-on): Likewise.
50044         * tests/test-ftell.c (main): Enhance test to cover behavior after
50045         ungetc.  Enforce binary mode.
50046         * tests/test-ftello.c (main): Likewise.
50047
50048         Pass test-freadseek on cygwin.
50049         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50050         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50051         ungetc buffer.
50052
50053         * tests/test-fflush2.c (main): Fix typo.
50054
50055 2008-03-29  Bruno Haible  <bruno@clisp.org>
50056
50057         * tests/test-fflush2.c (main): Temporarily disable the contents of
50058         this test.
50059         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50060         Reported by Eric Blake.
50061
50062 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50063
50064         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50065         (GC_SHA224_DIGEST_SIZE): Add.
50066
50067         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50068         (gc_hash_digest_length): Likewise.
50069         (gc_hash_buffer): Likewise.
50070
50071 2008-03-25  Bruno Haible  <bruno@clisp.org>
50072
50073         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50074         detail which gettext release to use.
50075         Reported by Simon Josefsson.
50076
50077 2008-03-26  Jim Meyering  <meyering@redhat.com>
50078
50079         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50080         * modules/gnumakefile (clean-GNUmakefile): Also, use
50081         test ... && ... || : syntax rather than if-then ... fi.
50082
50083         gnumakefile: Don't double-quote-expand $(VPATH) value.
50084         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50085
50086 2008-03-24  Eric Blake  <ebb9@byu.net>
50087
50088         Alter GNUmakefile to install into top directory.
50089         * modules/maintainer-makefile: Split, and add dependency...
50090         * modules/gnumakefile: to this new module.
50091         * build-aux/GNUmakefile: Move...
50092         * top/GNUmakefile: ...here.
50093         * build-aux/maint.mk: Move...
50094         * top/maint.mk: ...here.
50095         * MODULES.html.sh (Support for maintaining...): Document new
50096         module.
50097
50098 2008-03-23  Bruno Haible  <bruno@clisp.org>
50099
50100         * gnulib-tool: New options --vc-files, --no-vc-files.
50101         (func_usage): Document them.
50102         (vc_files): New variable.
50103         (func_import): Consider vc_files.
50104         (func_create_testdir): Set vc_files to empty.
50105         Suggested by Jim Meyering and Karl Berry.
50106
50107 2008-03-23  Bruno Haible  <bruno@clisp.org>
50108
50109         Fix regex compilation error on HP-UX 11.
50110         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50111         * modules/regex (Files): Add m4/mbstate_t.m4.
50112         Reported by Ton Voon <ton.voon@altinity.com>.
50113
50114 2008-03-23  Bruno Haible  <bruno@clisp.org>
50115
50116         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50117
50118 2008-03-23  Eric Blake  <ebb9@byu.net>
50119             Bruno Haible  <bruno@clisp.org>
50120
50121         Install files from top/ in the destination directory.
50122         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50123         augmentation also for the files from top/.
50124         (func_import, func_create_testdir): Rewrite file names:
50125         top/filename -> filename.
50126
50127 2008-03-23  Bruno Haible  <bruno@clisp.org>
50128
50129         Tweak "gnulib --version" output.
50130         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50131
50132 2008-03-23  Bruno Haible  <bruno@clisp.org>
50133
50134         Tweak "gnulib --version" output.
50135         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50136         rather than contents of ChangeLog, when possible.
50137
50138 2008-03-21  Eric Blake  <ebb9@byu.net>
50139
50140         More --version tweaks.
50141         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50142         date of last ChangeLog entry.
50143
50144 2008-03-21  Jim Meyering  <meyering@redhat.com>
50145
50146         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50147
50148 2008-03-20  Eric Blake  <ebb9@byu.net>
50149
50150         VPATH fix.
50151         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50152
50153 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50154
50155         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50156         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50157
50158 2008-03-20  Eric Blake  <ebb9@byu.net>
50159
50160         Sync GNUmakefile with coreutils.
50161         * build-aux/GNUmakefile (have-Makefile): Rename...
50162         (_have-Makefile): ...to this, for namespace consideration.
50163         (GNUmakefile.cfg): Include, if present.
50164         (_autoreconf): Define a default.
50165         (_is-dist-target): New rule for rebuilds to pick up intra-release
50166         version.
50167         (maint-cfg.mk): Rename...
50168         (cfg.mk): ...to this.
50169
50170 2008-03-18  Jim Meyering  <meyering@redhat.com>
50171
50172         New script and module: mktempd
50173         * MODULES.html.sh (maint+release support): Add mktempd.
50174         * build-aux/mktempd: New file.
50175         * modules/mktempd: New file.
50176
50177 2008-03-15  Jim Meyering  <meyering@redhat.com>
50178
50179         Undo last change.
50180         * lib/sha1.c, lib/md5.c: 63 != ~63.
50181         Reported by Andreas Schwab.
50182
50183         sha1.c, md5.c: Hoist a redundant expression.
50184         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50185         "ctx->buflen" only once, before calling *_process_block.
50186         * lib/md5.c (md5_process_bytes): Likewise.
50187
50188 2008-03-14  Eric Blake  <ebb9@byu.net>
50189
50190         Bump copyright year in files generated by gnulib-tool.
50191         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50192         gnulib-tool, rather than hard-coding it.
50193
50194         Fix 'gnulib-tool --version' output to work with git.
50195         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50196         (startup): ...here.
50197         (func_version): Use it to invoke git-version-gen, rather than
50198         relying on CVS keyword expansion.  Modernize wording.
50199         (cvsdatestamp, last_checkin_date, version): Kill unused
50200         variables.
50201
50202 2008-03-12  Jim Meyering  <meyering@redhat.com>
50203
50204         Recognize optional cast of the argument to free.
50205         * build-aux/useless-if-before-free: Update regexps.
50206
50207         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50208
50209 2008-03-11  Bruno Haible  <bruno@clisp.org>
50210
50211         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50212         by a single package.
50213         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50214         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50215         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50216         Reported by Sam Steingold <sds@gnu.org>.
50217
50218 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50219
50220         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50221         repositories.
50222
50223 2008-03-11  Bruno Haible  <bruno@clisp.org>
50224
50225         Avoid conflicts between local macro definitions.
50226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50227         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50228
50229 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50230             Bruno Haible  <bruno@clisp.org>
50231
50232         Make va_copy work with some version of xlc on AIX 5.1.
50233         * lib/stdarg.in.h: New file.
50234         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50235         On AIX, use a <stdarg.h> file substitute.
50236         * modules/stdarg (Files): Add lib/stdarg.in.h.
50237         (Depends-on): Add include_next.
50238         (Makefile.am): Build a stdarg.h substitute if requested.
50239         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50240
50241 2008-03-10  Bruno Haible  <bruno@clisp.org>
50242
50243         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50244         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50245         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50246
50247 2008-03-10  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/stdlib (Depends-on): Add include_next, remove
50250         absolute-header.
50251
50252 2008-03-09  Bruno Haible  <bruno@clisp.org>
50253
50254         * lib/freadahead.h (freadahead): Document more precisely.
50255         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50256         the sum of both buffer sizes.
50257         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50258         * NEWS: Document the change.
50259
50260 2008-03-09  Bruno Haible  <bruno@clisp.org>
50261
50262         Extend freadptr to return also the buffer size.
50263         * lib/freadptr.h (freadptr): Add sizep argument.
50264         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50265         (freadptr): Add sizep argument. Determine buffer size like freadahead
50266         does.
50267         * tests/test-freadptr.c: Don't include freadahead.h.
50268         (main): Adapt for new calling convention of freadptr.
50269         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50270         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50271         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50272         tests/test-freadptr2.sh.
50273         (Depends): Remove freadahead.
50274         (TESTS): Add test-freadptr2.sh.
50275         (check_PROGRAMS): Add test-freadptr2.
50276
50277 2008-03-09  Bruno Haible  <bruno@clisp.org>
50278
50279         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50280         Report and solution by Simon Josefsson.
50281
50282 2008-03-06  Bruno Haible  <bruno@clisp.org>
50283
50284         Make fflush after ungetc work on BSD platforms.
50285         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50286         * tests/test-fflush2.c: New file.
50287         * tests/test-fflush2.sh: New file.
50288         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50289         tests/test-fflush2.c.
50290         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50291         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50292
50293 2008-03-06  Eric Blake  <ebb9@byu.net>
50294
50295         Likewise for ftello.
50296         * modules/ftello (Dependencies): Add extensions.
50297         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50298
50299 2008-03-06  Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/fseeko (Dependencies): Add extensions.
50302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50303         Needed on glibc systems.
50304
50305 2008-03-06  Bruno Haible  <bruno@clisp.org>
50306
50307         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50308         email address.
50309         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50310
50311 2008-03-06  Bruno Haible  <bruno@clisp.org>
50312
50313         * users.txt: Add libgnupdf.
50314
50315 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50316
50317         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50318         (Header File Substitutes, Function Substitutes,
50319         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50320         (Build robot for gnulib): Fix typo.
50321
50322 2008-03-06  Bruno Haible  <bruno@clisp.org>
50323
50324         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50325         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50326
50327 2008-03-06  Bruno Haible  <bruno@clisp.org>
50328
50329         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50330         * doc/gnulib.texi: Include it.
50331
50332 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50333
50334         * modules/func (License): Change license to unlimited; there was
50335         no LGPL parts in the module anyway.
50336
50337 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50338
50339         * modules/__func__: Renamed to modules/func.
50340         * modules/__func__-tests: Renamed to modules/func-tests.
50341         * tests/test-__func__.c: Renamed to tests/test-func.c.
50342         * m4/__func__.m4: Renamed to m4/func.m4.
50343         * doc/gnulib.texi (__func__): Section renamed to func.
50344         Suggested by Eric Blake <ebb9@byu.net>.
50345
50346 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50347
50348         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50349         about __func__.  Make example self-contained.  Suggested by Eric
50350         Blake <ebb9@byu.net>.
50351
50352         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50353         Suggested by Eric Blake <ebb9@byu.net>.
50354
50355 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50356
50357         * modules/__func__: New file.
50358         * modules/__func__-tests: New file.
50359         * tests/test-__func__.c: New file.
50360         * m4/__func__.m4: New file.
50361         * doc/gnulib.texi (__func__): Document __func__ module.
50362
50363 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50364
50365         * modules/byteswap (License): Re-license as LGPLv2+.
50366
50367 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50368
50369         * doc/Makefile: Add pdf target.
50370
50371 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50372
50373         * modules/inline (License): Use 'unlimited', since there are only
50374         *.m4 files in this module.
50375
50376 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50377             Bruno Haible  <bruno@clisp.org>
50378
50379         Add support for HP C 7.1 on OpenVMS 8.3.
50380         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50381
50382 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50383
50384         Update VMS specifics.
50385         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50386
50387 2008-03-02  Jim Meyering  <meyering@redhat.com>
50388
50389         Remove the last dependency on the "free" module.
50390         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50391         Reported by Bob Proulx.
50392
50393         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50394
50395         Remove useless "if" tests before free.  Deprecate "free" module.
50396         * doc/posix-functions/free.texi: Mention that this
50397         module is no longer useful.
50398         * modules/free (Notice): Say this module is obsolete.
50399         * modules/readutmp (Depends-on): Remove free.
50400         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50401         * lib/putenv.c (putenv): Likewise.
50402         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50403         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50404         * tests/test-c-strcasestr.c (main): Likewise.
50405         * tests/test-c-strstr.c (main): Likewise.
50406         * tests/test-mbscasestr1.c (main): Likewise.
50407         * tests/test-mbscasestr2.c (main): Likewise.
50408         * tests/test-mbsstr1.c (main): Likewise.
50409         * tests/test-mbsstr2.c (main): Likewise.
50410         * tests/test-memmem.c (main): Likewise.
50411         * tests/test-strcasestr.c (main): Likewise.
50412         * tests/test-striconv.c (main): Likewise.
50413         * tests/test-striconveh.c (main): Likewise.
50414         * tests/test-striconveha.c (main): Likewise.
50415         * tests/test-strstr.c (main): Likewise.
50416
50417         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50418
50419         bootstrap: sync from coreutils again
50420         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50421
50422 2008-03-01  Jim Meyering  <meyering@redhat.com>
50423
50424         bootstrap: sync from coreutils
50425         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50426         also when the target doesn't exist.
50427
50428 2008-03-01  Eric Blake  <ebb9@byu.net>
50429
50430         Fix bugs in last patch.
50431         * lib/memchr2.c (memchr2): Fix typo.
50432         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50433         extension.
50434         Reported by Bruce Korb.
50435
50436         New module 'memchr2'.
50437         * modules/memchr2: New file.
50438         * modules/memchr2-tests: Likewise.
50439         * lib/memchr2.h: Likewise.
50440         * lib/memchr2.c: Likewise, based on memchr.c.
50441         * tests/test-memchr2.c: New test.
50442         * MODULES.html.sh (String handling): Add memchr2.
50443
50444 2008-02-29  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/freadseek-tests: New file.
50447         * tests/test-freadseek.sh: New file.
50448         * tests/test-freadseek.c: New file.
50449
50450         New module 'freadseek'.
50451         * modules/freadseek: New file.
50452         * lib/freadseek.h: New file.
50453         * lib/freadseek.c: New file.
50454         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50455
50456 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50457
50458         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50459         wydawca.
50460
50461         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50462         program_invocation_name and program_invocation_short_name are
50463         present.
50464
50465 2008-02-28  Bruno Haible  <bruno@clisp.org>
50466
50467         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50468         * tests/test-freadptr.sh: Also test non-seekable stdin.
50469
50470 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50471
50472         * build-aux/bootstrap (source_base, m4_base)
50473         (doc_base, tests_base): New variables.
50474         (gnulib_tool_options): Do not hardcode base directories, use
50475         the above variables instead.
50476
50477 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50478
50479         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50480
50481 2008-02-28  Bruno Haible  <bruno@clisp.org>
50482
50483         * modules/freadptr-tests: New file.
50484         * tests/test-freadptr.sh: New file.
50485         * tests/test-freadptr.c: New file.
50486
50487         New module 'freadptr'.
50488         * modules/freadptr: New file.
50489         * lib/freadptr.h: New file.
50490         * lib/freadptr.c: New file.
50491         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50492
50493 2008-02-26  Karl Berry  <karl@freefriends.org>
50494
50495         Sync from Libtool:
50496         * libltdl/argz.c (argz_add, argz_count): New functions.
50497         * libltdl/argz.in.h: Declare them.
50498         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50499
50500 2008-02-22  Bruno Haible  <bruno@clisp.org>
50501
50502         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50503         is a pointer type.  Needed for HP-UX 10.
50504         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50505         * doc/posix-functions/gmtime_r.texi: Likewise.
50506         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50507
50508 2008-02-24  Bruno Haible  <bruno@clisp.org>
50509
50510         * modules/environ-tests: New file.
50511         * tests/test-environ.c: New file.
50512
50513         New module 'environ'.
50514         * modules/environ: New file.
50515         * lib/unistd.in.h (environ): New declaration.
50516         * m4/environ.m4: New file.
50517         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50518         after use.
50519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50520         HAVE_DECL_ENVIRON.
50521         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50522         HAVE_DECL_ENVIRON.
50523         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50524         wrong claim that 'environ' is missing on some systems.
50525         * modules/execute (Depends-on): Add environ.
50526         * lib/execute.c (environ): Remove fallback declaration.
50527         * modules/pipe (Depends-on): Add environ.
50528         * lib/pipe.c (environ): Remove fallback declaration.
50529         * modules/setenv (Depends-on): Add environ.
50530         * lib/setenv.c (environ): Remove fallback declaration.
50531         * modules/unsetenv (Depends-on): Add environ.
50532         * lib/unsetenv.c (environ): Remove fallback declaration.
50533         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50534         m4/environ.m4.
50535         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50536         (gl_PREREQ_UNSETENV): Likewise.
50537
50538 2008-02-24  Bruno Haible  <bruno@clisp.org>
50539
50540         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50541
50542 2008-02-20  Bob Proulx  <bob@proulx.com>
50543
50544         Enable use of older two part flavor 'git describe'.
50545         * build-aux/git-version-gen: If using the older two part flavor of
50546         git version then recreate the third part now present in the
50547         newer three part flavor of git describe.
50548
50549 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50550
50551         * lib/fts.c (fts_build): Typo correction to comment.
50552
50553 2008-02-17  Bruno Haible  <bruno@clisp.org>
50554
50555         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50556         generating no-op conflicts.
50557
50558 2008-02-17  Bruno Haible  <bruno@clisp.org>
50559
50560         Speed up by 10%.
50561         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50562         result_entries, rather than an index-based loop.
50563
50564 2008-02-17  Bruno Haible  <bruno@clisp.org>
50565
50566         Speed up by 25%.
50567         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50568         'hashcode_cached'.
50569         (entry_create): New function.
50570         (entry_hashcode): Use the cached hashcode if possible.
50571         (read_changelog_file, try_split_merged_entry): Use entry_create.
50572
50573 2008-02-17  Bruno Haible  <bruno@clisp.org>
50574
50575         Speed up from O(n^2) to O(n) for long ChangeLog files.
50576         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50577         (read_changelog_file): Change implementation of entries_reversed list
50578         to rbtreehash.
50579         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50580
50581 2008-02-17  Bruno Haible  <bruno@clisp.org>
50582
50583         New option --split-merged-entry.
50584         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50585         (find_paragraph_end, try_split_merged_entry): New functions.
50586         (long_options): Add option --split-merged-entry.
50587         (usage): Document option --split-merged-entry.
50588         (main): Implement option --split-merged-entry.
50589         Reported by Eric Blake.
50590
50591 2008-02-17  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/git-merge-changelog.c: Include c-strstr.h.
50594         (main): Support the "git pull --rebase" situation.
50595         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50596         Reported by Eric Blake.
50597
50598 2008-02-16  Eric Blake  <ebb9@byu.net>
50599
50600         Avoid doubling \ in common case of "c-maybe" quoting style.
50601         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50602         eliding outer quotes.
50603         * lib/quotearg.h: Document this.
50604         * tests/test-quotearg.c (result_strings, inputs, results_g)
50605         (flag_results, locale_results): Test it by adding a new string to
50606         each test group.
50607         (compare_strings): Test new string.
50608
50609 2008-02-13  Eric Blake  <ebb9@byu.net>
50610
50611         Avoid trigraph quoting in default output.
50612         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50613         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50614         unless explicitly requested.
50615         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50616
50617 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50618
50619         Don't rely on signed integer overflowing to negative value.
50620         * lib/getugroups.c (getugroups): Include <limits.h>.
50621         Instead, compare against INT_MAX, and increment only if the test passes.
50622
50623 2008-02-13  Jim Meyering  <meyering@redhat.com>
50624         and Eric Blake  <ebb9@byu.net>
50625
50626         Avoid shadowing warning and compile errors on Linux.
50627         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50628         forwarding macros on Linux.
50629         (dcgettext): Define a stub, for Linux.
50630         (results_g, main): Avoid warnings.
50631
50632 2008-02-12  Eric Blake  <ebb9@byu.net>
50633
50634         Silence warning in last patch.
50635         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50636
50637         Quotearg part 4: add tests, fix c-maybe colon quoting.
50638         * lib/quotearg.h: Improve documentation.
50639         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50640         escapes when adding outer quotes.  When quoting trigraphs, use
50641         valid C notation.  When quoting NUL, omit extra characters if next
50642         character is not digit.  Alter prototype.
50643         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50644         callers.
50645         * modules/quotearg-tests: New module.
50646         * tests/test-quotearg.c: New test.
50647
50648 2008-02-07  Eric Blake  <ebb9@byu.net>
50649
50650         Quotearg part 3: add flag to control outer quote elision.
50651         * lib/quotearg.h (c_maybe_quoting_style): New style.
50652         (enum quoting_flags): Better documentation of flags.
50653         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50654         c-maybe style.
50655         (quotearg_buffer_restyled): Handle new flag to elide outer
50656         quotes.
50657
50658         Quotearg part 2: add flag that can control NUL elision.
50659         * lib/quotearg.h (set_quoting_flags): New prototype.
50660         * lib/quotearg.c (struct quoting_options): Add flag field.
50661         (set_quoting_flags): New function.
50662         (quotearg_buffer_restyled): Add flags parameter.
50663         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50664         (quotearg_n_options): Set the flag, since length cannot be
50665         returned.
50666         (quoting_options_from_style): Default flags correctly.
50667
50668         Quotearg part 1: more wrappers, restore quotearg_char state.
50669         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50670         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50671         (quotearg_colon_mem): New wrappers.
50672         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50673         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50674         functions.
50675         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50676         (quotearg_colon_mem): New functions.
50677
50678 2008-02-11  Bruno Haible  <bruno@clisp.org>
50679
50680         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50681         library in the current directory: it does not work with parallel make.
50682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50683
50684 2008-02-11  Bruno Haible  <bruno@clisp.org>
50685
50686         * .gitattributes: New file.
50687
50688 2008-02-11  Jim Meyering  <meyering@redhat.com>
50689
50690         useless-if-before-free: Fix reversed exit values.
50691         * build-aux/useless-if-before-free: Use correct values
50692         for EXIT_MATCH and EXIT_NO_MATCH.
50693
50694         * build-aux/useless-if-before-free: Close stdout carefully.
50695
50696 2008-02-10  Bruno Haible  <bruno@clisp.org>
50697
50698         New module 'git-merge-changelog'.
50699         * modules/git-merge-changelog: New file.
50700         * lib/git-merge-changelog.c: New file.
50701
50702 2008-02-10  Jim Meyering  <meyering@redhat.com>
50703
50704         useless-if-before-free: New option: --list (-l).
50705
50706         useless-if-before-free: Don't exit immediately upon open failure.
50707         * build-aux/useless-if-before-free: Exit 2 for errors.
50708         Upon failure to open a file, don't exit immediately.
50709         Rather, just warn and continue with any remaining files.
50710
50711 2008-02-10  Bruno Haible  <bruno@clisp.org>
50712
50713         New abstract list operation 'node_set_value'.
50714         * lib/gl_list.h (gl_list_node_set_value): New function.
50715         (struct gl_list_implementation): New field node_set_value.
50716         * lib/gl_list.c (gl_list_node_set_value): New function.
50717         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50718         (gl_array_list_implementation): Update.
50719         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50720         (gl_carray_list_implementation): Update.
50721         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50722         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50723         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50724         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50725         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50726         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50727         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50728         Update.
50729         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50730         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50731         (gl_sublist_list_implementation): Update.
50732
50733 2008-02-10  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50736         Needed when ELEMENT is #defined to 'some_type *'.
50737
50738 2008-02-10  Jim Meyering  <meyering@redhat.com>
50739
50740         New script and module: useless-if-before-free
50741         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50742         * build-aux/useless-if-before-free: New file.
50743         * modules/useless-if-before-free: New file.
50744
50745         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50746
50747         xstrtol_error: Fix typo.
50748         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50749         s/exit_failure/exit_status/.
50750
50751 2008-02-09  Jim Meyering  <meyering@redhat.com>
50752
50753         New script and module: gitlog-to-changelog
50754         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50755         * modules/gitlog-to-changelog: New file.
50756         * build-aux/gitlog-to-changelog: New file.
50757
50758 2008-02-08  Jim Meyering  <meyering@redhat.com>
50759
50760         Avoid two "parameter unused" warnings.
50761         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50762         Mark "st" as used.
50763
50764         Use "git COMMAND", not "git-COMMAND".
50765         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50766         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50767         * build-aux/git-version-gen: Use "git status", not "git-status".
50768
50769 2008-02-07  Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50772         Avoids a crash on Windows Vista.
50773         Reported by Adam Strzelecki <ono@java.pl> via
50774         Simon Josefsson <simon@josefsson.org>.
50775
50776 2008-02-06  Bruno Haible  <bruno@clisp.org>
50777
50778         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50779         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50780         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50782         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50784         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50785         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50793         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50794         left-adjust flag.
50795         * tests/test-snprintf-posix.h (test_function): Likewise.
50796         * tests/test-sprintf-posix.h (test_function): Likewise.
50797         * tests/test-vasprintf-posix.c (test_function): Likewise.
50798         * doc/posix-functions/fprintf.texi: Update.
50799         * doc/posix-functions/printf.texi: Update.
50800         * doc/posix-functions/snprintf.texi: Update.
50801         * doc/posix-functions/sprintf.texi: Update.
50802         * doc/posix-functions/vfprintf.texi: Update.
50803         * doc/posix-functions/vprintf.texi: Update.
50804         * doc/posix-functions/vsnprintf.texi: Update.
50805         * doc/posix-functions/vsprintf.texi: Update.
50806         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50807
50808 2008-02-06  Bruno Haible  <bruno@clisp.org>
50809
50810         Fix bug introduced on 2008-01-26.
50811         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50812
50813 2008-02-06  Bruno Haible  <bruno@clisp.org>
50814
50815         Fix bug introduced on 2007-06-10.
50816         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50817         !NEED_PRINTF_FLAG_ZERO.
50818
50819 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50820
50821         getloadavg: use libperfstat on AIX5
50822         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50823
50824 2008-02-03  Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/diffseq.h: Add comments about required #includes.
50827         Reported by Michael Biggs <gnulib@doubleplum.net>.
50828
50829 2008-02-01  Bruno Haible  <bruno@clisp.org>
50830
50831         * users.txt: Add gnuit.
50832
50833 2008-01-31  Bruno Haible  <bruno@clisp.org>
50834
50835         * lib/md4.c (set_uint32): Mark as inline.
50836         * lib/md5.c (set_uint32): Likewise.
50837         * lib/sha1.c (set_uint32): Likewise.
50838         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50839         * m4/md5.m4 (gl_MD5): Likewise.
50840         * m4/sha1.m4 (gl_SHA1): Likewise.
50841
50842 2008-01-31  Jim Meyering  <meyering@redhat.com>
50843
50844         Use "sizeof VAR", rather than a literal "4".
50845         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50846         * lib/md4.c (md4_read_ctx): Likewise.
50847         * lib/sha1.c (sha1_read_ctx): Likewise.
50848
50849 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50850
50851         * tests/test-sha1.c: New file, based on test-md5.c.
50852
50853         * modules/crypto/sha1-tests: New file.
50854
50855 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50856
50857         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50858
50859 2008-01-31  Jim Meyering  <meyering@redhat.com>
50860
50861         Prefer "sizeof v" over the equivalent "4".
50862         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50863         * lib/md5.c (set_uint32): Likewise.
50864         * lib/sha1.c (set_uint32): Likewise.
50865
50866 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50867
50868         * lib/sha1.c (set_uint32): Mark function as static.
50869
50870 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50871
50872         md2: clarify comments to say that alignment is not required.
50873         * lib/md2.h: Remove warning about alignment in comment.
50874         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50875         never been required.
50876
50877 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50878
50879         md4: adapt alignment constraint fix from sha1.
50880         * lib/md4.c (set_uint32): New function, from sha1.c
50881         (md4_read_ctx): Use it.
50882         (md4_finish_ctx): Doc fix.
50883         * lib/md4.h: Doc fix.
50884
50885 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50886
50887         md5: adapt alignment constraint fix from sha1.
50888         * lib/md5.c (set_uint32): New function, from sha1.c
50889         (md5_read_ctx): Use it.
50890         (md5_finish_ctx): Doc fix.
50891         * lib/md5.h: Doc fix.
50892
50893 2008-01-30  Peter Palfrader  <weasel@debian.org>
50894
50895         sha1: remove the result buffer alignment constraint
50896         * lib/sha1.c (set_uint32): New function.
50897         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50898         constraint.
50899         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50900         * lib/sha1.h: Likewise.
50901
50902 2008-01-30  Andreas Schwab  <schwab@suse.de>
50903             Bruno Haible  <bruno@clisp.org>
50904
50905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50906         correct definition of LDBL_MIN_EXP.
50907
50908 2008-01-30  Karl Berry  <karl@gnu.org>
50909
50910         * config/srclist-update: try to preserve x bit on updates.
50911         * config/srclistvars.sh: update for karl.
50912
50913 2008-01-29  Jim Meyering  <meyering@redhat.com>
50914
50915         vasnprintf.c: Avoid warning about unused label
50916         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50917         "overflow" label definition and associated code with the
50918         same cpp condition that guards the sole use of that label.
50919
50920 2008-01-26  Bruno Haible  <bruno@clisp.org>
50921
50922         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50923         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50924         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50925         * lib/isnanl-nolibm.h (isnanl): Likewise.
50926         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50927
50928 2008-01-26  Bruno Haible  <bruno@clisp.org>
50929
50930         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50931         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50932
50933 2008-01-26  Bruno Haible  <bruno@clisp.org>
50934
50935         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50936         GCC >= 4.0 built-in.
50937         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50938
50939 2008-01-26  Bruno Haible  <bruno@clisp.org>
50940
50941         Rename isnan, applicable to 'double' only, to isnand.
50942         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50943         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50944         (configure.ac): Update.
50945         (Include): Replace "isnan.h" with "isnand.h".
50946         * m4/isnand.m4: Renamed from m4/isnan.m4.
50947         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50948         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50949         instead of isnan.c.
50950         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50951         instead of HAVE_ISNAN_IN_LIBC.
50952         (isnand): Renamed from isnan.
50953         * lib/isnand.c: New file.
50954         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50955         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50956         (Makefile.am): Update.
50957         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50958         Include isnand.h instead of isnan.h.
50959         (main): Test isnand instead of isnan.
50960         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50961         isnan-nolibm.
50962         * modules/frexp (Depends-on): Likewise.
50963         * modules/frexp-tests (Depends-on): Likewise.
50964         * modules/frexp-nolibm (Depends-on): Likewise.
50965         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50966         * modules/isfinite (Depends-on): Likewise.
50967         * modules/round-tests (Depends-on): Likewise.
50968         * modules/signbit (Depends-on): Likewise.
50969         * modules/signbit-tests (Depends-on): Likewise.
50970         * modules/snprintf-posix (Depends-on): Likewise.
50971         * modules/sprintf-posix (Depends-on): Likewise.
50972         * modules/trunc-tests (Depends-on): Likewise.
50973         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50974         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50975         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50976         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50977         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50978         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50979         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50980         * modules/vasnprintf-posix (Depends-on): Likewise.
50981         * modules/vasprintf-posix (Depends-on): Likewise.
50982         * modules/vfprintf-posix (Depends-on): Likewise.
50983         * modules/vsnprintf-posix (Depends-on): Likewise.
50984         * modules/vsprintf-posix (Depends-on): Likewise.
50985         * lib/frexp.c: Include isnand.h instead of isnan.h.
50986         (ISNAN): Set to isnand instead of isnan.
50987         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50988         (gl_isfinited): Use isnand instead of isnan.
50989         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50990         (gl_signbitd): Use isnand instead of isnan.
50991         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50992         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50993         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50994         (main): Use isnand instead of isnan.
50995         * tests/test-round1.c: Include isnand.h.
50996         (main): Use isnand instead of isnan.
50997         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50998         (ISNAN): Set to isnand instead of isnan.
50999         * tests/test-trunc1.c: Include isnand.h.
51000         (main): Use isnand instead of isnan.
51001         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51002         (equal): Use isnand instead of isnan.
51003         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51004         isnand-nolibm.
51005         * NEWS: Mention the change.
51006
51007 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51008             Bruno Haible  <bruno@clisp.org>
51009
51010         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51011         the GCC builtins for signbits are present and set
51012         REPLACE_SIGNBIT_USING_GCC if so.
51013         * lib/math.in.h (signbit): Define using GCC builtins if
51014         REPLACE_SIGNBIT_USING_GCC is set.
51015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51016         REPLACE_SIGNBIT_USING_GCC.
51017         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51018
51019 2008-01-25  Jim Meyering  <meyering@redhat.com>
51020
51021         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51022         * lib/poll.c: Include <config.h>, not "config.h".
51023         * tests/test-getaddrinfo.c: Likewise.
51024
51025 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51026
51027         * modules/sockets-tests: New file.
51028
51029 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51030
51031         * modules/sockets: New module, can be used to call WSA_Startup and
51032         WSA_Cleanup when needed.
51033
51034         * lib/sockets.h, lib/sockets.c: New files.
51035
51036         * m4/sockets.m4: New file.
51037
51038         * tests/test-sockets.c: New file.
51039
51040 2008-01-19  Bruno Haible  <bruno@clisp.org>
51041
51042         * doc/posix-headers: Renamed from doc/headers.
51043         * doc/posix-functions: Renamed from doc/functions.
51044         * doc/gnulib.texi: Update.
51045
51046 2008-01-19  Bruno Haible  <bruno@clisp.org>
51047
51048         * doc/glibc-functions/strcasestr.texi: Include contents of
51049         doc/functions/strcasestr.texi, fixing the list of platforms.
51050         * doc/functions/strcasestr.texi: Remove file.
51051
51052 2008-01-19  Bruno Haible  <bruno@clisp.org>
51053
51054         * doc/glibc-functions/memmem.texi: Include contents of
51055         doc/functions/memmem.texi.
51056         * doc/functions/memmem.texi: Remove file.
51057
51058 2008-01-18  Bruno Haible  <bruno@clisp.org>
51059
51060         * doc/glibc-functions/*.texi: New files.
51061         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51062         to use the new files.
51063
51064 2008-01-17  Bruno Haible  <bruno@clisp.org>
51065
51066         * tests/test-gethostname.c (main): Fix printf statement.
51067
51068 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51069
51070         * modules/gethostname-tests: New file.
51071
51072         * tests/test-gethostname.c: New file.
51073
51074 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51075
51076         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51077         used by the UNAME case.  Reported by Bruno Haible
51078         <bruno@clisp.org>.
51079
51080 2008-01-17  Eric Blake  <ebb9@byu.net>
51081
51082         Convert c-strcasestr to be more efficient.
51083         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51084         (Depends-on): Add c-strcase, remove malloca, strnlen.
51085         * tests/test-c-strcasestr.c (main): Enhance test.
51086         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51087
51088 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51089
51090         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51091         Use it in creating po/Makevars.
51092
51093 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51094
51095         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51096         Applications that requires it should initialize libgcrypt
51097         manually.
51098
51099 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51100
51101         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51102
51103 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51104
51105         Fix problem with getdate on mingw32 reported by Simon Josefsson
51106         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51107         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51108         tzname", when deciding whether to declare tzname.
51109         * lib/strftime.c (tzname): Likewise.
51110
51111 2008-01-15  Bruno Haible  <bruno@clisp.org>
51112
51113         Work around a MacOS X 10.5 bug in frexpl().
51114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51115         * doc/functions/frexpl.texi: Document the bug.
51116         Reported by Elias Pipping <pipping@gentoo.org>.
51117
51118 2008-01-14  Eric Blake  <ebb9@byu.net>
51119
51120         Touch up previous patch.
51121         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51122         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51123
51124         Convert strcasestr module to use Two-Way algorithm.
51125         * modules/strcasestr-simple: New module, based on the old
51126         strcasestr, but with Two-Way rather than KMP.
51127         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51128         * lib/string.in.h (rpl_strcasestr): Declare.
51129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51130         performance.
51131         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51132         * modules/string (Makefile.am): Support strcasestr.
51133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51134         * modules/strcasestr-tests (Depends-on): Check for alarm.
51135         * tests/test-strcasestr.c: Augment test.
51136         * lib/str-two-way.h: Clean up stray macro.
51137         * NEWS: Document new module.
51138         * MODULES.html.sh (string handling): Likewise.
51139         * doc/functions/strcasestr.texi: New file.
51140         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51141         here, since it is not a POSIX function.
51142
51143 2008-01-14  Colin Watson  <cjwatson@debian.org>
51144             Bruno Haible  <bruno@clisp.org>
51145
51146         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51147         works fine; if not, set REPLACE_STRSIGNAL.
51148         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51150         REPLACE_STRSIGNAL.
51151         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51152         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51153         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51154
51155 2008-01-14  Bruno Haible  <bruno@clisp.org>
51156
51157         * modules/strsignal (Include): Change to <string.h>.
51158
51159 2008-01-14  Colin Watson  <cjwatson@debian.org>
51160
51161         * modules/argp (Notice): Add a notice recommending to change
51162         XGETTEXT_OPTIONS.
51163         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51164
51165 2008-01-13  Colin Watson  <cjwatson@debian.org>
51166
51167         * modules/strsignal-tests: New file.
51168         * tests/test-strsignal.c: New file.
51169
51170         * lib/strsignal.c: New file, from glibc with modifications.
51171         * lib/siglist.h: New file, from glibc with modifications.
51172         * lib/string.in.h (strsignal): New declaration.
51173         * m4/strsignal.m4: New file.
51174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51175         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51176         * modules/strsignal: New file.
51177         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51178         HAVE_DECL_STRSIGNAL.
51179
51180 2008-01-13  Bruno Haible  <bruno@clisp.org>
51181
51182         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51183         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51184         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51185         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51186
51187 2008-01-13  Bruno Haible  <bruno@clisp.org>
51188
51189         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51190         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51191         * lib/argp.h (__attribute__): Likewise.
51192         * lib/c-stack.c (__attribute__): Likewise.
51193         * lib/error.h (__attribute__): Likewise.
51194         * lib/fts.c (__attribute__): Likewise.
51195         * lib/openat.h (__attribute__): Likewise.
51196         * lib/stdio.in.h (__attribute__): Likewise.
51197         * lib/string.in.h (__attribute__): Likewise.
51198         * lib/utimens.c (__attribute__): Likewise.
51199         * lib/vasnprintf.h (__attribute__): Likewise.
51200         * lib/xalloc.h (__attribute__): Likewise.
51201         * lib/xprintf.h (__attribute__): Likewise.
51202         * lib/xstrtol.h (__attribute__): Likewise.
51203         * lib/xvasprintf.h (__attribute__): Likewise.
51204
51205 2008-01-12  Bruno Haible  <bruno@clisp.org>
51206
51207         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51208         * doc/glibc-headers/a.out.texi: New file.
51209         * doc/glibc-headers/aliases.texi: New file.
51210         * doc/glibc-headers/alloca.texi: New file.
51211         * doc/glibc-headers/ar.texi: New file.
51212         * doc/glibc-headers/argp.texi: New file.
51213         * doc/glibc-headers/argz.texi: New file.
51214         * doc/glibc-headers/byteswap.texi: New file.
51215         * doc/glibc-headers/crypt.texi: New file.
51216         * doc/glibc-headers/endian.texi: New file.
51217         * doc/glibc-headers/envz.texi: New file.
51218         * doc/glibc-headers/err.texi: New file.
51219         * doc/glibc-headers/error.texi: New file.
51220         * doc/glibc-headers/execinfo.texi: New file.
51221         * doc/glibc-headers/fpu_control.texi: New file.
51222         * doc/glibc-headers/fstab.texi: New file.
51223         * doc/glibc-headers/fts.texi: New file.
51224         * doc/glibc-headers/getopt.texi: New file.
51225         * doc/glibc-headers/ieee754.texi: New file.
51226         * doc/glibc-headers/ifaddrs.texi: New file.
51227         * doc/glibc-headers/libintl.texi: New file.
51228         * doc/glibc-headers/mcheck.texi: New file.
51229         * doc/glibc-headers/mntent.texi: New file.
51230         * doc/glibc-headers/obstack.texi: New file.
51231         * doc/glibc-headers/paths.texi: New file.
51232         * doc/glibc-headers/printf.texi: New file.
51233         * doc/glibc-headers/pty.texi: New file.
51234         * doc/glibc-headers/resolv.texi: New file.
51235         * doc/glibc-headers/shadow.texi: New file.
51236         * doc/glibc-headers/sysexits.texi: New file.
51237         * doc/glibc-headers/ttyent.texi: New file.
51238
51239 2008-01-12  Jim Meyering  <meyering@redhat.com>
51240
51241         announce-gen: emit Gnulib's git-based version string.
51242         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51243         New option --gnulib-version=V, where V is expected to be
51244         the output of running git describe in the gnulib directory.
51245         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51246         not useful, and plan to stop publishing an xdelta file with each
51247         coreutils release.
51248
51249         * build-aux/announce-gen: Also check for lzma-compressed files.
51250
51251 2008-01-11  Bruno Haible  <bruno@clisp.org>
51252
51253         * tests/test-memmem.c (main): Increase maximum allowed time.
51254         * tests/test-strstr.c (main): Likewise.
51255
51256 2008-01-11  Bruno Haible  <bruno@clisp.org>
51257
51258         * doc/functions/memmem.texi: Add more precisions about platforms.
51259         * doc/functions/strstr.texi: Likewise.
51260
51261 2008-01-10  Eric Blake  <ebb9@byu.net>
51262
51263         * m4/strstr.m4: Delete cruft from copy-n-paste.
51264         Reported by Bruno Haible.
51265
51266 2008-01-10  Bruno Haible  <bruno@clisp.org>
51267
51268         Make c-strstr rely on strstr.
51269         * lib/c-strstr.c: Don't include str-kmp.h.
51270         (c_strstr): Define in terms of strstr.
51271         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51272         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51273
51274 2008-01-10  Bruno Haible  <bruno@clisp.org>
51275
51276         * doc/gnulib.texi (String Functions in C Locale): New section.
51277         * doc/c-ctype.texi: New file.
51278         * doc/c-strcase.texi: New file.
51279         * doc/c-strcaseeq.texi: New file.
51280         * doc/c-strcasestr.texi: New file.
51281         * doc/c-strstr.texi: New file.
51282         * doc/c-strtod.texi: New file.
51283         * doc/c-strtold.texi: New file.
51284
51285 2008-01-10  Eric Blake  <ebb9@byu.net>
51286
51287         * lib/relocatable.h: Fix a comment.
51288
51289 2008-01-10  Eric Blake  <ebb9@byu.net>
51290
51291         Share two-way algorithm.
51292         * lib/str-two-way.h: New file, merged from...
51293         * lib/memmem.c: ...here...
51294         * lib/strstr.c: ...and here.
51295         * modules/memmem (Files): Use it.
51296         * modules/strstr (Files): Likewise.
51297
51298         Avoid quadratic strstr implementations.
51299         * lib/strstr.c: New file.
51300         * m4/strstr.m4: Likewise.
51301         * modules/strstr: Likewise.
51302         * modules/strstr-tests: Likewise.
51303         * tests/test-strstr.c: Likewise.
51304         * lib/string.in.h (rpl_strstr): Declare.
51305         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51307         * modules/string (Makefile.am): Likewise.
51308         * MODULES.html.sh (string handling): Mention new module.
51309         * doc/functions/strstr.texi (strstr): Document the bug.
51310
51311 2008-01-10  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/relocatable.h (relocate): State whether result is freshly
51314         allocated or not.
51315         * lib/relocatable.c (relocate): Return a freshly allocated string
51316         instead of a pointer to a privately held string.
51317         Reported by Sylvain Beucler <beuc@gnu.org>.
51318
51319 2008-01-10  Colin Watson  <cjwatson@debian.org>
51320
51321         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51322         s/S_ISNLK/S_ISLNK/.
51323
51324 2008-01-09  Bruno Haible  <bruno@clisp.org>
51325
51326         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51327         and other files.
51328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51329         if it's only a guess.
51330         * modules/memmem: Simplify by depending on memmem-simple.
51331
51332 2008-01-09  Bruno Haible  <bruno@clisp.org>
51333
51334         Work around OpenBSD 4.0 tdelete() bug.
51335         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51336         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51337         macros and don't redefine the enum values.
51338         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51339         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51340         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51341
51342 2008-01-09  Bruno Haible  <bruno@clisp.org>
51343
51344         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51345         (main): Don't perform the tests if setlocale did not install a UTF-8
51346         locale. Needed on OpenBSD 4.0.
51347         * modules/wcwidth-tests (Depends-on): Add localcharset.
51348
51349 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51350
51351         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51352         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51353         * NEWS: announce this.
51354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51355
51356 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51357         and Eric Blake  <ebb9@byu.net>
51358
51359         Add memmem-simple module.
51360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51361         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51362         * modules/memmem-simple: New file.
51363         * modules/memmem (Description): Tweak.
51364         * MODULES.html.sh (string handling): Mention new module.
51365         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51366         addressed by memmem-simple.
51367         * NEWS: Document the difference.
51368
51369 2008-01-09  Eric Blake  <ebb9@byu.net>
51370
51371         Give gcc some memmem optimization hints.
51372         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51373         (strcasestr): Declare as pure.
51374         * modules/memmem (Maintainer): Claim my implementation.
51375
51376 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51377
51378         Support AIX 6.1 and higher.
51379         * build-aux/config.libpath: Likewise.
51380         * build-aux/config.rpath: Likewise.
51381
51382 2008-01-08  Jim Meyering  <meyering@redhat.com>
51383             Bruno Haible  <bruno@clisp.org>
51384
51385         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51386         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51387         Reported by Peter Fales in
51388         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51389
51390 2008-01-08  Bruno Haible  <bruno@clisp.org>
51391
51392         * modules/unictype/category-of (Depends-on): Add
51393         unictype/category-none.
51394         * modules/unictype/category-and-tests (Depends-on): Add
51395         unictype/category-{L,N,Lu,Nd}.
51396         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51397         * modules/unictype/category-or-tests (Depends-on): Add
51398         unictype/category-{L,N}.
51399         * modules/unictype/category-name-tests (Depends-on): Add
51400         unictype/category-{Z,Nl}.
51401         Reported by Simon Josefsson.
51402
51403 2008-01-08  Bruno Haible  <bruno@clisp.org>
51404
51405         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51406         convention better.
51407         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51408         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51409         Reported by Peter Miller <millerp@canb.auug.org.au>.
51410
51411 2008-01-08  Eric Blake  <ebb9@byu.net>
51412
51413         Rewrite memmem to guarantee linear complexity without malloc.
51414         * lib/memmem.c (memmem): Use Two-Way rather than
51415         Knuth-Morris-Pratt, to allow O(1) space usage.
51416         (critical_factorization, two_way_short_needle)
51417         (two_way_long_needle): New functions.
51418         (knuth_morris_pratt): Delete.
51419         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51420         Add stdint.
51421         * tests/test-memmem.c (main): Add tests for periodic needle and
51422         sublinear performance.
51423         * doc/functions/memmem.texi (memmem): Document other deficiencies
51424         in cygwin and older glibc.
51425
51426 2008-01-08  Bruno Haible  <bruno@clisp.org>
51427
51428         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51429         augmentation.
51430
51431 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51432
51433         Add a configure time option: --disable-acl.
51434         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51435         AC_ARG_ENABLE(acl).
51436
51437 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51438
51439         * tests/test-localename.c: Don't include obsolete "setenv.h".
51440
51441         * modules/localename-tests (Depends-on): Need unsetenv.
51442
51443 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51444
51445         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51446
51447 2008-01-06  Colin Watson  <cjwatson@debian.org>
51448
51449         * users.txt: Add man-db.
51450
51451 2008-01-07  Bruno Haible  <bruno@clisp.org>
51452
51453         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51454         previous section name.
51455
51456 2008-01-07  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/progname.c (set_program_name): Don't strip off a leading
51459         "lt-" prefix outside a .libs directory.
51460         Suggested by Paul Eggert.
51461
51462 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51463             Bruno Haible  <bruno@clisp.org>
51464
51465         Improve memory cleanup in 'relocatable' module.
51466         * lib/relocatable.h (compute_curr_prefix): Change return type to
51467         'char *'.
51468         * lib/relocatable.c (compute_curr_prefix): Change return type to
51469         'char *'. Free curr_installdir after use.
51470         (relocate): Free curr_prefix_better after use.
51471         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51472
51473 2008-01-01  Bruno Haible  <bruno@clisp.org>
51474
51475         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51476         failure on older glibc systems.
51477         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51478
51479 2008-01-05  Eric Blake  <ebb9@byu.net>
51480
51481         Avoid quadratic system memmem.
51482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51483         Reported by Ralf Wildenhues.
51484
51485         Fix memmem test for mingw.
51486         * modules/memmem-tests (configure.ac): Check for alarm.
51487         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51488         it.
51489         * doc/functions/memmem.texi: New file.
51490         * doc/gnulib.texi (Function Substitutes): Add memmem.
51491         Reported by Bruno Haible.
51492
51493 2008-01-04  Bruno Haible  <bruno@clisp.org>
51494
51495         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51496         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51497         gl_HEADER_STRING_H_DEFAULTS.
51498
51499 2008-01-04  Eric Blake  <ebb9@byu.net>
51500
51501         Shorten duration of memmem test.
51502         * tests/test-memmem.c (main): Use alarm to declare failure if test
51503         is taking too long.
51504         Reported by Ralf Wildenhues.
51505
51506 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51507
51508         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51509         string, needed by strerror.
51510
51511 2008-01-03  Colin Watson  <cjwatson@debian.org>
51512             Bruno Haible  <bruno@clisp.org>
51513
51514         * doc/gnulib-tool.texi (Localization): New section.
51515
51516 2008-01-02  Bruno Haible  <bruno@clisp.org>
51517
51518         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51519         variables to 'unsigned char *' type.
51520         Reported by Paul Eggert.
51521
51522 2008-01-02  Jim Meyering  <jim@meyering.net>
51523
51524         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51525
51526 2007-12-31  Jim Meyering  <jim@meyering.net>
51527
51528         Avoid use of private FTS type name.
51529         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51530
51531 2007-12-30  Karl Berry  <karl@gnu.org>
51532
51533         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51534         work around defect in Texinfo and/or the standalone Info browser.
51535
51536 2007-12-30  Bruno Haible  <bruno@clisp.org>
51537
51538         Unify 5 copies of the KMP code.
51539         * lib/str-kmp.h: New file.
51540         * lib/c-strcasestr.c: Include str-kmp.h.
51541         (knuth_morris_pratt): Remove function.
51542         (c_strcasestr): Update.
51543         * lib/c-strstr.c: Include str-kmp.h.
51544         (knuth_morris_pratt): Remove function.
51545         (c_strcasestr): Update.
51546         * lib/mbscasestr.c: Include str-kmp.h.
51547         (knuth_morris_pratt_unibyte): Remove function.
51548         * lib/mbsstr.c: Include str-kmp.h.
51549         (knuth_morris_pratt_unibyte): Remove function.
51550         * lib/strcasestr.c: Include str-kmp.h.
51551         (knuth_morris_pratt): Remove function.
51552         (strcasestr): Update.
51553         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51554         * modules/c-strstr (Files): Likewise.
51555         * modules/mbscasestr (Files): Likewise.
51556         * modules/mbsstr (Files): Likewise.
51557         * modules/strcasestr (Files): Likewise.
51558         Suggested by Paul Eggert.
51559
51560 2007-12-30  Bruno Haible  <bruno@clisp.org>
51561
51562         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51563         defined.
51564
51565 2007-12-30  Bruno Haible  <bruno@clisp.org>
51566
51567         * lib/xmalloca.h: Include xalloc.h.
51568         (xnmalloca): New macro.
51569
51570 2007-12-30  Bruno Haible  <bruno@clisp.org>
51571
51572         * lib/malloca.h (nmalloca): New macro.
51573         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51574         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51575         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51576         knuth_morris_pratt_multibyte): Likewise.
51577         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51578         knuth_morris_pratt_multibyte): Likewise.
51579         * lib/memmem.c (knuth_morris_pratt): Likewise.
51580         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51581
51582 2007-12-25  Bruno Haible  <bruno@clisp.org>
51583
51584         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51585         * lib/glob.c: Don't include openat.h.
51586         (link_exists2_p): Add back the code that deals with the
51587         !GLOB_ALTDIRFUNC case.
51588         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51589         let it do the filename concatenation.
51590         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51591         * modules/glob (Depends-on): Remove openat.
51592
51593 2007-12-31  Bruno Haible  <bruno@clisp.org>
51594
51595         * modules/dirfd (License): Change to LGPLv2+.
51596         Approved by Jim Meyering.
51597
51598 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51601         when multiplying M by sizeof (size_t).
51602
51603 2007-12-10  Martin Lambers  <marlam@marlam.de>
51604
51605         Override getpagesize on mingw.
51606         * lib/getpagesize.c: New file.
51607         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51608         * modules/getpagesize (Files): Add lib/getpagesize.c.
51609         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51611         REPLACE_GETPAGESIZE.
51612         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51613
51614 2007-12-25  Bruno Haible  <bruno@clisp.org>
51615
51616         * modules/localcharset (Notice): New field.
51617         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51618         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51619
51620 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51621             Bruno Haible  <bruno@clisp.org>
51622
51623         Avoid using the syntax symbol() in formatted documentation.
51624         * MODULES.html.sh (func_module): When replacing symbol() with a
51625         hyperlink, remove the parentheses. Show an error if some remain.
51626         Recognize and render the '...' syntax.
51627         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51628         Rework. Add paragraph about GCC's inlining.
51629         * doc/alloca.texi: Likewise.
51630         * doc/error.texi: Remove parentheses from symbol reference.
51631         * doc/gnulib-intro.texi: Likewise.
51632         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51633         * modules/fnmatch (Description): Reword to say "the ... function".
51634         * modules/full-read (Description): Likewise.
51635         * modules/full-write (Description): Likewise.
51636         * modules/safe-read (Description): Likewise.
51637         * modules/safe-write (Description): Likewise.
51638         * modules/strchrnul (Description): Likewise.
51639         * modules/trim (Description): Likewise.
51640         * modules/error (Description): Remove parentheses from symbol
51641         references.
51642         * modules/verror (Description): Likewise.
51643         Reported by Karl Berry.
51644
51645 2007-12-25  Bruno Haible  <bruno@clisp.org>
51646
51647         Fixup after 2007-10-16 commit.
51648         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51649
51650 2007-12-24  Bruno Haible  <bruno@clisp.org>
51651
51652         Make --enable-relocatable work with DESTDIR.
51653         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51654         to compute installdir from destprog.
51655         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51656         also set the RELOC_DESTDIR variable.
51657         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51658
51659 2007-12-24  Bruno Haible  <bruno@clisp.org>
51660
51661         Fix link error due to xalloc_die().
51662         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51663         of xreadlink.
51664         * lib/relocwrapper.c: Update comments.
51665         * build-aux/install-reloc: Remove xreadlink.c from file list.
51666         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51667         xreadlink.c.
51668         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51669
51670 2007-12-24  Bruno Haible  <bruno@clisp.org>
51671
51672         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51673         * lib/setenv.h: Remove file.
51674         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51675         lib/setenv.h.
51676         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51677         (Depends-on): Add stdlib.
51678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51679         gl_FUNC_UNSETENV.
51680         (Include): Replace setenv.h with <stdlib.h>.
51681         * modules/unsetenv: New file.
51682         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51683         * lib/unsetenv.c: Include <stdlib.h> first.
51684         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51685         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51686         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51687         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51688         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51689         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51691         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51692         * doc/functions/unsetenv.texi: Update.
51693         * modules/xsetenv (Depends-on): Add unsetenv.
51694         * modules/getdate (Depends-on): Likewise.
51695         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51696         * lib/xsetenv.c: Don't include setenv.h.
51697         * lib/getdate.y: Likewise.
51698         * lib/relocwrapper.c: Likewise.
51699         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51700         (Depends-on): Add stdlib.
51701         * NEWS: Mention the changes.
51702         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51703
51704 2007-12-23  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51707         indentation.
51708
51709 2007-12-23  Bruno Haible  <bruno@clisp.org>
51710
51711         * lib/c-strcasestr.c: Add more comments.
51712         * lib/c-strstr.c: Likewise.
51713         * lib/mbscasestr.c: Likewise.
51714         * lib/mbsstr.c: Likewise.
51715         * lib/strcasestr.c: Likewise.
51716         * lib/memmem.c: Likewise.
51717
51718 2007-12-23  Bruno Haible  <bruno@clisp.org>
51719
51720         * tests/test-memmem.c: Include <string.h> first.
51721
51722 2007-12-22  Bruno Haible  <bruno@clisp.org>
51723
51724         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51725         the contents of $testsbase.
51726         Reported by Ralf Wildenhues.
51727
51728 2007-12-22  Bruno Haible  <bruno@clisp.org>
51729
51730         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51731         two variables local_ldadd_before, local_ldadd_last.
51732
51733 2007-12-20  Eric Blake  <ebb9@byu.net>
51734
51735         Work around circular library issue when cross-compiling.
51736         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51737         that progname.o does not need to pull in rpl_memcmp.
51738
51739 2007-12-19  Eric Blake  <ebb9@byu.net>
51740
51741         Fix memmem to avoid O(n^2) worst-case complexity.
51742         * lib/memmem.c (knuth_morris_pratt): New function.
51743         (memmem): Use it if first few naive iterations fail.
51744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51745         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51746         * modules/memchr (License): Likewise.
51747         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51748         malloca.
51749         * tests/test-memmem.c: Rewrite, borrowing ideas from
51750         test-mbsstr1.c; the old version wouldn't even compile!
51751         * modules/memmem-tests: New file.
51752         * lib/string.in.h (rpl_memmem): Add declaration.
51753         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51755         REPLACE_MEMMEM.
51756
51757 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51758
51759         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51760         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51761         before any system include files, and undef after them all.  This
51762         should fix a problem on VMS reported by John E. Malmberg in
51763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51764
51765 2007-12-17  Eric Blake  <ebb9@byu.net>
51766
51767         Revert addition of verify, for BSD/OS.
51768         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51769         can't handle large files, for the sake of obsolete platforms.
51770         * modules/fseeko (Depends-on): Remove verify.
51771         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51772         * doc/functions/ftello.texi (ftello): Likewise.
51773         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51774         Reported by Larry Jones.
51775
51776 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51777
51778         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51779         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51780
51781 2007-12-17  Jim Meyering  <meyering@redhat.com>
51782
51783         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51784         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51785         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51786         * modules/getcwd (Depends-on): Add openat.
51787         Reported by Petr Salinger.
51788
51789 2007-12-17  Bruno Haible  <bruno@clisp.org>
51790
51791         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51792         avoid a segmentation fault of the configure test on x86_64 systems.
51793
51794 2007-12-15  Jim Meyering  <meyering@redhat.com>
51795
51796         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51797
51798 2007-12-13  Eric Blake  <ebb9@byu.net>
51799
51800         Another fseek test.
51801         * tests/test-fseek.c (main): Also test ungetc handling.
51802         * tests/test-fseeko.c (main): Likewise.
51803         * modules/fseeko (Depends-on): Add verify.
51804         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51805         large.
51806         Reported by Larry Jones.
51807
51808         Fix fseeko on mingw.
51809         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51810         seek.
51811
51812         Beef up fseek tests.
51813         * tests/test-fseek.c (main): Also test eof handling.
51814         * tests/test-fseeko.c (main): Likewise.
51815         Reported by Larry Jones.
51816
51817 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51818
51819         Fix fseeko on BSD-based platforms.
51820         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51821         successful seek.
51822
51823 2007-12-12  Eric Blake  <ebb9@byu.net>
51824
51825         Allow circular dependency of separate libtests.a
51826         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51827         when use_libtests.
51828
51829 2007-12-11  Eric Blake  <ebb9@byu.net>
51830
51831         Fix bug with -0.0L in previous patch.
51832         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51833         * tests/test-isnan.c (main): Also test on zeroes.
51834         * tests/test-isnanf.c (main): Likewise.
51835         * tests/test-isnanl.h (main): Likewise.
51836
51837         Detect pseudo-denormals on x86 even when cross-compiling.
51838         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51839         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51840         invalid bit patterns that happen to satisfy ==.
51841
51842         Avoid link failures with separate libtests.a.
51843         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51844         last, to satisfy circular dependencies.
51845
51846 2007-12-11  Eric Blake  <ebb9@byu.net>
51847         and Bruno Haible  <bruno@clisp.org>
51848
51849         Fix OpenBSD 4.0 <float.h> handling of long double.
51850         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51851         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51852         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51853
51854 2007-12-11  Jim Meyering  <meyering@redhat.com>
51855
51856         * users.txt: Add libvirt.
51857
51858         Support versions of autoconf prior to 2.59c.
51859         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51860         if it is not already defined.
51861
51862 2007-12-09  Bruno Haible  <bruno@clisp.org>
51863
51864         Let 'gnulib-tool --import' collect sources needed for the tests in
51865         tests/ rather than in lib/.
51866         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51867         argument. If true, add rules to generate libtests.a, and put libtests.a
51868         into $(LDADD). Consider source files in subdirectories and set
51869         uses_subdirs.
51870         (func_emit_initmacro_start, func_emit_initmacro_end,
51871         func_emit_initmacro_done): Pass all arguments explicitly.
51872         (func_import): Determine two module lists main_modules,
51873         testsrelated_modules. Determine use_libtests. Determine two variables
51874         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51875         instead of just sed_transform_lib_file. Determine two variables
51876         main_files and testsrelated_files. Compute 'files' as the union of
51877         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51878         func_add_or_update. In the generated gnulib-comp.m4, collect the
51879         object files for tests/ in different variables than those for lib/.
51880         Substitute LIBTESTS_LIBDEPS.
51881         (func_create_testdir): Combine the uses_subdirs results from
51882         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51883
51884 2007-12-09  Bruno Haible  <bruno@clisp.org>
51885
51886         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51887         the build-aux directory.
51888
51889 2007-12-09  Bruno Haible  <bruno@clisp.org>
51890
51891         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51892         introduced on 2006-09-09.
51893
51894 2007-12-07  Jim Meyering  <meyering@redhat.com>
51895
51896         Let these macros work also with autoconf-2.59.
51897         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51898         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51900
51901 2007-12-06  Jim Meyering  <meyering@redhat.com>
51902
51903         Avoid a configure-time syntax error in gl_FUNC_ACL.
51904         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51905         function in each branch, before testing the cache variable.
51906
51907 2007-12-04  Eric Blake  <ebb9@byu.net>
51908
51909         Make scripts executable.
51910         * build-aux/config.guess: Add execute permissions.
51911         * build-aux/config.sub: Likewise.
51912         * build-aux/gendocs.sh: Likewise.
51913
51914         Fix frexp on mingw.
51915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51916         cross-compiling.
51917         * doc/functions/frexp.texi (frexp): Document the bug.
51918
51919         Make cygwin fseeko check more reliable.
51920         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51921         version numbers, rather than unrelated feature check.
51922         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51923         * doc/functions/ftello.texi (ftello): Likewise.
51924         Reported by Bruno Haible.
51925
51926         * m4/strerror.m4: Bump version number.
51927
51928 2007-12-03  Bruno Haible  <bruno@clisp.org>
51929
51930         * doc/functions/mprotect.texi: Mention the mingw problem.
51931
51932 2007-12-03  Eric Blake  <ebb9@byu.net>
51933
51934         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51935         REPLACE_STRERROR is initialized before this macro.
51936
51937 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51938
51939         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51940         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51941         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51942         put -lsec in even for programs other than 'ls'.  This fixes a problem
51943         for gettext reported by Bruno Haible in
51944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51945         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51946         Add support for Solaris 10.  This isn't efficient, but should get the
51947         job done for now.
51948
51949 2007-12-03  James Youngman  <jay@gnu.org>
51950
51951         * doc/regexprops-generic.texi: change "an close-group" to "a
51952         close-group" and "illegal" to "not allowed".
51953
51954 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51955
51956         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51957         pr_byname.h. Needed for the rare case when the maintainer has done
51958         "make maintainer-clean" in the source directory and then attempts a
51959         build outside the source directory.
51960         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51961         scripts_byname.h.
51962
51963 2007-12-02  Martin Lambers <marlam@marlam.de>
51964             Bruno Haible  <bruno@clisp.org>
51965
51966         * lib/getpagesize.h: Remove file.
51967         * lib/unistd.in.h: Include declaration of getpagesize here.
51968         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51969         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51970         HAVE_SYS_PARAM_H.
51971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51972         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51973         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51974         (Depends-on): Add unistd.
51975         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51976         (Include): Use <unistd.h> instead of getpagesize.h.
51977         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51978         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51979         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51980         gl_GETPAGESIZE invocation, already handled by module dependency.
51981         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51982
51983 2007-12-02  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/strings-tests: New file.
51986         * tests/test-strings.c: New file.
51987
51988         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51989         * lib/strings.in.h: New file.
51990         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51991         * m4/strings_h.m4: New file.
51992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51993         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51994         * modules/strings: New file.
51995         * modules/string (Makefile.am): Update.
51996         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51997         Reported by Karl Berry.
51998
51999 2007-12-01  Eric Blake  <ebb9@byu.net>
52000
52001         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52002         accomodate fix in cygwin 1.5.25.
52003
52004 2007-12-01  Jim Meyering  <meyering@redhat.com>
52005
52006         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52007         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52008         that would inhibit utf8-optimization of a regexp containing line-
52009         or buffer-anchors, e.g., `^', `$'.
52010
52011 2007-11-30  Bruno Haible  <bruno@clisp.org>
52012
52013         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52014         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52015         glthread_recursive_lock_init.
52016         * lib/lock.c (glthread_recursive_lock_init)
52017         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52018         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52019
52020 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         New function qset_acl, like set_acl but with syscall semantics.
52023         * lib/acl.h (qset_acl): New decl.
52024         * lib/acl.c (qset_acl): New function.
52025         (set_acl): Use new function.  Use more-consistent diagnostics.
52026
52027 2007-11-28  Jim Meyering  <meyering@redhat.com>
52028
52029         * modules/physmem (License): Change from GPL to LGPLv2+.
52030
52031 2007-11-26  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52034         'long double' type has excess precision.
52035         Reported by Jim Meyering in
52036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52037
52038 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52039
52040         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52041         Sync from <http://gnu.org/licenses>.
52042         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52043         with license text from same location.
52044         * doc/maintain.texi, doc/standards.texi:  Sync from
52045         <http://savannah.gnu.org/projects/gnustandards>.
52046
52047 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52048         and Jim Meyering  <meyering@redhat.com>
52049
52050         Adjust getdate' grammar to accept a slightly more regular language.
52051         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52052         Before, the former was rejected.
52053         * lib/getdate.y (digits_to_date_time): New function, factored
52054         out of ...
52055         (number): ...here.  Just call digits_to_date_time.
52056         (hybrid): New non-terminal to handle an <unsigned number,
52057         signed relative offset> sequence consistently.
52058
52059 2007-11-18  Jim Meyering  <meyering@redhat.com>
52060
52061         Pull my changes from coreutils:
52062         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52063         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52064         use of $gnulib_tool_option_extras, so that it's separated from the
52065         preceding argument.
52066
52067         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52068         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52069         parent destination directories before copying a file into place.
52070
52071 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52072
52073         bootstrap: work also with 4-argument variant of AC_INIT
52074         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52075
52076 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         Port test-getaddrinfo to Solaris.
52079         Problem reported by Bruno Haible in
52080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52081         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52082         explanation of setting 'hints'.
52083         Don't reject an implementation merely because it returns EAI_SERVICE.
52084         (EAI_SERVICE): Define to 0 if not defined.
52085
52086 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52087
52088         The license of gnu-make and posix-shell is now "GPLed build tool".
52089         * modules/gnu-make (License): Likewise.
52090         * modules/posix-shell (License): Likewise.
52091
52092         New module posix-shell, for determining a POSIX shell
52093         or perhaps something that is close enough to a POSIX shell.
52094         * m4/posix-shell.m4: New file.
52095         * modules/posix-shell: New file.
52096
52097         * MODULES.html.sh: Mention new module.
52098
52099         New module gnu-make, for determining whether we're using GNU Make.
52100         * m4/gnu-make.m4: New file.
52101         * modules/gnu-make: New file.
52102         * MODULES.html.sh: Mention new module.
52103
52104 2007-11-14  Jim Meyering  <meyering@redhat.com>
52105
52106         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52107         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52108         use this macro to create a function _definition_.
52109         Remove useless "#undef ARGMATCH_DIE".
52110
52111 2007-11-14  Bruno Haible  <bruno@clisp.org>
52112
52113         * lib/config.charset: Update for OpenBSD 4.1.
52114         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52115
52116 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52117
52118         Document 64-bit #if problems in stdint.texi.
52119         * doc/headers/stdint.texi (stdint.h): Mention problems with
52120         64-bit-#if, and how to work around them.
52121
52122         Don't insist on 'long long int' support in the preprocessor.  It
52123         breaks too many things.  For example, PRIdMAX still uses a 'long
52124         long int' format with the latest Sun compiler, even though
52125         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52126         preprocessor problem.  This causes the latest coreutils to dump
52127         core on Solaris 10 sparc with the Sun C compiler.
52128         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52129         the troublesome expressions at configure-time, not at #if-time.
52130         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52131         preprocessor.
52132         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52133         compile-time C checks, done at 'configure'-time.
52134         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52135         * modules/inttypes (Makefile): Substitute the new symbols that
52136         gl_INTTYPES_H now generates.
52137         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52138
52139 2007-11-12  Bruno Haible  <bruno@clisp.org>
52140
52141         Tests for Unicode character classification functions.
52142
52143         * modules/unictype/bidicategory-byname-tests: New file.
52144         * modules/unictype/bidicategory-name-tests: New file.
52145         * modules/unictype/bidicategory-of-tests: New file.
52146         * modules/unictype/bidicategory-test-tests: New file.
52147         * modules/unictype/block-list-tests: New file.
52148         * modules/unictype/block-of-tests: New file.
52149         * modules/unictype/block-test-tests: New file.
52150         * modules/unictype/category-C-tests: New file.
52151         * modules/unictype/category-Cc-tests: New file.
52152         * modules/unictype/category-Cf-tests: New file.
52153         * modules/unictype/category-Cn-tests: New file.
52154         * modules/unictype/category-Co-tests: New file.
52155         * modules/unictype/category-Cs-tests: New file.
52156         * modules/unictype/category-L-tests: New file.
52157         * modules/unictype/category-Ll-tests: New file.
52158         * modules/unictype/category-Lm-tests: New file.
52159         * modules/unictype/category-Lo-tests: New file.
52160         * modules/unictype/category-Lt-tests: New file.
52161         * modules/unictype/category-Lu-tests: New file.
52162         * modules/unictype/category-M-tests: New file.
52163         * modules/unictype/category-Mc-tests: New file.
52164         * modules/unictype/category-Me-tests: New file.
52165         * modules/unictype/category-Mn-tests: New file.
52166         * modules/unictype/category-N-tests: New file.
52167         * modules/unictype/category-Nd-tests: New file.
52168         * modules/unictype/category-Nl-tests: New file.
52169         * modules/unictype/category-No-tests: New file.
52170         * modules/unictype/category-P-tests: New file.
52171         * modules/unictype/category-Pc-tests: New file.
52172         * modules/unictype/category-Pd-tests: New file.
52173         * modules/unictype/category-Pe-tests: New file.
52174         * modules/unictype/category-Pf-tests: New file.
52175         * modules/unictype/category-Pi-tests: New file.
52176         * modules/unictype/category-Po-tests: New file.
52177         * modules/unictype/category-Ps-tests: New file.
52178         * modules/unictype/category-S-tests: New file.
52179         * modules/unictype/category-Sc-tests: New file.
52180         * modules/unictype/category-Sk-tests: New file.
52181         * modules/unictype/category-Sm-tests: New file.
52182         * modules/unictype/category-So-tests: New file.
52183         * modules/unictype/category-Z-tests: New file.
52184         * modules/unictype/category-Zl-tests: New file.
52185         * modules/unictype/category-Zp-tests: New file.
52186         * modules/unictype/category-Zs-tests: New file.
52187         * modules/unictype/category-and-not-tests: New file.
52188         * modules/unictype/category-and-tests: New file.
52189         * modules/unictype/category-byname-tests: New file.
52190         * modules/unictype/category-name-tests: New file.
52191         * modules/unictype/category-none-tests: New file.
52192         * modules/unictype/category-of-tests: New file.
52193         * modules/unictype/category-or-tests: New file.
52194         * modules/unictype/category-test-withtable-tests: New file.
52195         * modules/unictype/combining-class-tests: New file.
52196         * modules/unictype/ctype-alnum-tests: New file.
52197         * modules/unictype/ctype-alpha-tests: New file.
52198         * modules/unictype/ctype-blank-tests: New file.
52199         * modules/unictype/ctype-cntrl-tests: New file.
52200         * modules/unictype/ctype-digit-tests: New file.
52201         * modules/unictype/ctype-graph-tests: New file.
52202         * modules/unictype/ctype-lower-tests: New file.
52203         * modules/unictype/ctype-print-tests: New file.
52204         * modules/unictype/ctype-punct-tests: New file.
52205         * modules/unictype/ctype-space-tests: New file.
52206         * modules/unictype/ctype-upper-tests: New file.
52207         * modules/unictype/ctype-xdigit-tests: New file.
52208         * modules/unictype/decimal-digit-tests: New file.
52209         * modules/unictype/digit-tests: New file.
52210         * modules/unictype/mirror-tests: New file.
52211         * modules/unictype/numeric-tests: New file.
52212         * modules/unictype/property-alphabetic-tests: New file.
52213         * modules/unictype/property-ascii-hex-digit-tests: New file.
52214         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52215         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52216         * modules/unictype/property-bidi-block-separator-tests: New file.
52217         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52218         * modules/unictype/property-bidi-common-separator-tests: New file.
52219         * modules/unictype/property-bidi-control-tests: New file.
52220         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52221         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52222         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52223         * modules/unictype/property-bidi-european-digit-tests: New file.
52224         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52225         * modules/unictype/property-bidi-left-to-right-tests: New file.
52226         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52227         * modules/unictype/property-bidi-other-neutral-tests: New file.
52228         * modules/unictype/property-bidi-pdf-tests: New file.
52229         * modules/unictype/property-bidi-segment-separator-tests: New file.
52230         * modules/unictype/property-bidi-whitespace-tests: New file.
52231         * modules/unictype/property-byname-tests: New file.
52232         * modules/unictype/property-combining-tests: New file.
52233         * modules/unictype/property-composite-tests: New file.
52234         * modules/unictype/property-currency-symbol-tests: New file.
52235         * modules/unictype/property-dash-tests: New file.
52236         * modules/unictype/property-decimal-digit-tests: New file.
52237         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52238         * modules/unictype/property-deprecated-tests: New file.
52239         * modules/unictype/property-diacritic-tests: New file.
52240         * modules/unictype/property-extender-tests: New file.
52241         * modules/unictype/property-format-control-tests: New file.
52242         * modules/unictype/property-grapheme-base-tests: New file.
52243         * modules/unictype/property-grapheme-extend-tests: New file.
52244         * modules/unictype/property-grapheme-link-tests: New file.
52245         * modules/unictype/property-hex-digit-tests: New file.
52246         * modules/unictype/property-hyphen-tests: New file.
52247         * modules/unictype/property-id-continue-tests: New file.
52248         * modules/unictype/property-id-start-tests: New file.
52249         * modules/unictype/property-ideographic-tests: New file.
52250         * modules/unictype/property-ids-binary-operator-tests: New file.
52251         * modules/unictype/property-ids-trinary-operator-tests: New file.
52252         * modules/unictype/property-ignorable-control-tests: New file.
52253         * modules/unictype/property-iso-control-tests: New file.
52254         * modules/unictype/property-join-control-tests: New file.
52255         * modules/unictype/property-left-of-pair-tests: New file.
52256         * modules/unictype/property-line-separator-tests: New file.
52257         * modules/unictype/property-logical-order-exception-tests: New file.
52258         * modules/unictype/property-lowercase-tests: New file.
52259         * modules/unictype/property-math-tests: New file.
52260         * modules/unictype/property-non-break-tests: New file.
52261         * modules/unictype/property-not-a-character-tests: New file.
52262         * modules/unictype/property-numeric-tests: New file.
52263         * modules/unictype/property-other-alphabetic-tests: New file.
52264         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52265         * modules/unictype/property-other-grapheme-extend-tests: New file.
52266         * modules/unictype/property-other-id-continue-tests: New file.
52267         * modules/unictype/property-other-id-start-tests: New file.
52268         * modules/unictype/property-other-lowercase-tests: New file.
52269         * modules/unictype/property-other-math-tests: New file.
52270         * modules/unictype/property-other-uppercase-tests: New file.
52271         * modules/unictype/property-paired-punctuation-tests: New file.
52272         * modules/unictype/property-paragraph-separator-tests: New file.
52273         * modules/unictype/property-pattern-syntax-tests: New file.
52274         * modules/unictype/property-pattern-white-space-tests: New file.
52275         * modules/unictype/property-private-use-tests: New file.
52276         * modules/unictype/property-punctuation-tests: New file.
52277         * modules/unictype/property-quotation-mark-tests: New file.
52278         * modules/unictype/property-radical-tests: New file.
52279         * modules/unictype/property-sentence-terminal-tests: New file.
52280         * modules/unictype/property-soft-dotted-tests: New file.
52281         * modules/unictype/property-space-tests: New file.
52282         * modules/unictype/property-terminal-punctuation-tests: New file.
52283         * modules/unictype/property-test-tests: New file.
52284         * modules/unictype/property-titlecase-tests: New file.
52285         * modules/unictype/property-unassigned-code-value-tests: New file.
52286         * modules/unictype/property-unified-ideograph-tests: New file.
52287         * modules/unictype/property-uppercase-tests: New file.
52288         * modules/unictype/property-variation-selector-tests: New file.
52289         * modules/unictype/property-white-space-tests: New file.
52290         * modules/unictype/property-xid-continue-tests: New file.
52291         * modules/unictype/property-xid-start-tests: New file.
52292         * modules/unictype/property-zero-width-tests: New file.
52293         * modules/unictype/scripts-tests: New file.
52294         * modules/unictype/syntax-c-ident-tests: New file.
52295         * modules/unictype/syntax-c-whitespace-tests: New file.
52296         * modules/unictype/syntax-java-ident-tests: New file.
52297         * modules/unictype/syntax-java-whitespace-tests: New file.
52298         * tests/unictype/test-bidi_byname.c: New file.
52299         * tests/unictype/test-bidi_name.c: New file.
52300         * tests/unictype/test-bidi_of.c: New file.
52301         * tests/unictype/test-bidi_test.c: New file.
52302         * tests/unictype/test-block_list.c: New file.
52303         * tests/unictype/test-block_of.c: New file.
52304         * tests/unictype/test-block_test.c: New file.
52305         * tests/unictype/test-categ_and.c: New file.
52306         * tests/unictype/test-categ_and_not.c: New file.
52307         * tests/unictype/test-categ_byname.c: New file.
52308         * tests/unictype/test-categ_name.c: New file.
52309         * tests/unictype/test-categ_none.c: New file.
52310         * tests/unictype/test-categ_of.c: New file.
52311         * tests/unictype/test-categ_or.c: New file.
52312         * tests/unictype/test-categ_test_withtable.c: New file.
52313         * tests/unictype/test-combining.c: New file.
52314         * tests/unictype/test-decdigit.c: New file.
52315         * tests/unictype/test-digit.c: New file.
52316         * tests/unictype/test-mirror.c: New file.
52317         * tests/unictype/test-numeric.c: New file.
52318         * tests/unictype/test-pr_byname.c: New file.
52319         * tests/unictype/test-pr_test.c: New file.
52320         * tests/unictype/test-predicate-part1.h: New file.
52321         * tests/unictype/test-predicate-part2.h: New file.
52322         * tests/unictype/test-scripts.c: New file.
52323         * tests/unictype/test-sy_c_ident.c: New file.
52324         * tests/unictype/test-sy_java_ident.c: New file.
52325
52326         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52327         for Unicode 5.0.0.
52328         * tests/unictype/test-categ_Cc.c: Likewise.
52329         * tests/unictype/test-categ_Cf.c: Likewise.
52330         * tests/unictype/test-categ_Cn.c: Likewise.
52331         * tests/unictype/test-categ_Co.c: Likewise.
52332         * tests/unictype/test-categ_Cs.c: Likewise.
52333         * tests/unictype/test-categ_L.c: Likewise.
52334         * tests/unictype/test-categ_Ll.c: Likewise.
52335         * tests/unictype/test-categ_Lm.c: Likewise.
52336         * tests/unictype/test-categ_Lo.c: Likewise.
52337         * tests/unictype/test-categ_Lt.c: Likewise.
52338         * tests/unictype/test-categ_Lu.c: Likewise.
52339         * tests/unictype/test-categ_M.c: Likewise.
52340         * tests/unictype/test-categ_Mc.c: Likewise.
52341         * tests/unictype/test-categ_Me.c: Likewise.
52342         * tests/unictype/test-categ_Mn.c: Likewise.
52343         * tests/unictype/test-categ_N.c: Likewise.
52344         * tests/unictype/test-categ_Nd.c: Likewise.
52345         * tests/unictype/test-categ_Nl.c: Likewise.
52346         * tests/unictype/test-categ_No.c: Likewise.
52347         * tests/unictype/test-categ_P.c: Likewise.
52348         * tests/unictype/test-categ_Pc.c: Likewise.
52349         * tests/unictype/test-categ_Pd.c: Likewise.
52350         * tests/unictype/test-categ_Pe.c: Likewise.
52351         * tests/unictype/test-categ_Pf.c: Likewise.
52352         * tests/unictype/test-categ_Pi.c: Likewise.
52353         * tests/unictype/test-categ_Po.c: Likewise.
52354         * tests/unictype/test-categ_Ps.c: Likewise.
52355         * tests/unictype/test-categ_S.c: Likewise.
52356         * tests/unictype/test-categ_Sc.c: Likewise.
52357         * tests/unictype/test-categ_Sk.c: Likewise.
52358         * tests/unictype/test-categ_Sm.c: Likewise.
52359         * tests/unictype/test-categ_So.c: Likewise.
52360         * tests/unictype/test-categ_Z.c: Likewise.
52361         * tests/unictype/test-categ_Zl.c: Likewise.
52362         * tests/unictype/test-categ_Zp.c: Likewise.
52363         * tests/unictype/test-categ_Zs.c: Likewise.
52364         * tests/unictype/test-ctype_alnum.c: Likewise.
52365         * tests/unictype/test-ctype_alpha.c: Likewise.
52366         * tests/unictype/test-ctype_blank.c: Likewise.
52367         * tests/unictype/test-ctype_cntrl.c: Likewise.
52368         * tests/unictype/test-ctype_digit.c: Likewise.
52369         * tests/unictype/test-ctype_graph.c: Likewise.
52370         * tests/unictype/test-ctype_lower.c: Likewise.
52371         * tests/unictype/test-ctype_print.c: Likewise.
52372         * tests/unictype/test-ctype_punct.c: Likewise.
52373         * tests/unictype/test-ctype_space.c: Likewise.
52374         * tests/unictype/test-ctype_upper.c: Likewise.
52375         * tests/unictype/test-ctype_xdigit.c: Likewise.
52376         * tests/unictype/test-decdigit.h: Likewise.
52377         * tests/unictype/test-digit.h: Likewise.
52378         * tests/unictype/test-numeric.h: Likewise.
52379         * tests/unictype/test-pr_alphabetic.c: Likewise.
52380         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52381         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52382         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52383         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52384         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52385         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52386         * tests/unictype/test-pr_bidi_control.c: Likewise.
52387         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52388         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52389         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52390         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52391         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52392         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52393         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52394         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52395         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52396         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52397         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52398         * tests/unictype/test-pr_combining.c: Likewise.
52399         * tests/unictype/test-pr_composite.c: Likewise.
52400         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52401         * tests/unictype/test-pr_dash.c: Likewise.
52402         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52403         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52404         * tests/unictype/test-pr_deprecated.c: Likewise.
52405         * tests/unictype/test-pr_diacritic.c: Likewise.
52406         * tests/unictype/test-pr_extender.c: Likewise.
52407         * tests/unictype/test-pr_format_control.c: Likewise.
52408         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52409         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52410         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52411         * tests/unictype/test-pr_hex_digit.c: Likewise.
52412         * tests/unictype/test-pr_hyphen.c: Likewise.
52413         * tests/unictype/test-pr_id_continue.c: Likewise.
52414         * tests/unictype/test-pr_id_start.c: Likewise.
52415         * tests/unictype/test-pr_ideographic.c: Likewise.
52416         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52417         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52418         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52419         * tests/unictype/test-pr_iso_control.c: Likewise.
52420         * tests/unictype/test-pr_join_control.c: Likewise.
52421         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52422         * tests/unictype/test-pr_line_separator.c: Likewise.
52423         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52424         * tests/unictype/test-pr_lowercase.c: Likewise.
52425         * tests/unictype/test-pr_math.c: Likewise.
52426         * tests/unictype/test-pr_non_break.c: Likewise.
52427         * tests/unictype/test-pr_not_a_character.c: Likewise.
52428         * tests/unictype/test-pr_numeric.c: Likewise.
52429         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52430         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52431         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52432         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52433         * tests/unictype/test-pr_other_id_start.c: Likewise.
52434         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52435         * tests/unictype/test-pr_other_math.c: Likewise.
52436         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52437         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52438         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52439         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52440         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52441         * tests/unictype/test-pr_private_use.c: Likewise.
52442         * tests/unictype/test-pr_punctuation.c: Likewise.
52443         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52444         * tests/unictype/test-pr_radical.c: Likewise.
52445         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52446         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52447         * tests/unictype/test-pr_space.c: Likewise.
52448         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52449         * tests/unictype/test-pr_titlecase.c: Likewise.
52450         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52451         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52452         * tests/unictype/test-pr_uppercase.c: Likewise.
52453         * tests/unictype/test-pr_variation_selector.c: Likewise.
52454         * tests/unictype/test-pr_white_space.c: Likewise.
52455         * tests/unictype/test-pr_xid_continue.c: Likewise.
52456         * tests/unictype/test-pr_xid_start.c: Likewise.
52457         * tests/unictype/test-pr_zero_width.c: Likewise.
52458         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52459         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52460
52461 2007-11-12  Bruno Haible  <bruno@clisp.org>
52462
52463         Unicode character classification functions.
52464         * lib/unictype.h: New file.
52465         * modules/unictype/base: New file.
52466         * modules/unictype/category-L: New file.
52467         * modules/unictype/category-Lu: New file.
52468         * modules/unictype/category-Ll: New file.
52469         * modules/unictype/category-Lt: New file.
52470         * modules/unictype/category-Lm: New file.
52471         * modules/unictype/category-Lo: New file.
52472         * modules/unictype/category-M: New file.
52473         * modules/unictype/category-Mn: New file.
52474         * modules/unictype/category-Mc: New file.
52475         * modules/unictype/category-Me: New file.
52476         * modules/unictype/category-N: New file.
52477         * modules/unictype/category-Nd: New file.
52478         * modules/unictype/category-Nl: New file.
52479         * modules/unictype/category-No: New file.
52480         * modules/unictype/category-P: New file.
52481         * modules/unictype/category-Pc: New file.
52482         * modules/unictype/category-Pd: New file.
52483         * modules/unictype/category-Ps: New file.
52484         * modules/unictype/category-Pe: New file.
52485         * modules/unictype/category-Pi: New file.
52486         * modules/unictype/category-Pf: New file.
52487         * modules/unictype/category-Po: New file.
52488         * modules/unictype/category-S: New file.
52489         * modules/unictype/category-Sm: New file.
52490         * modules/unictype/category-Sc: New file.
52491         * modules/unictype/category-Sk: New file.
52492         * modules/unictype/category-So: New file.
52493         * modules/unictype/category-Z: New file.
52494         * modules/unictype/category-Zs: New file.
52495         * modules/unictype/category-Zl: New file.
52496         * modules/unictype/category-Zp: New file.
52497         * modules/unictype/category-C: New file.
52498         * modules/unictype/category-Cc: New file.
52499         * modules/unictype/category-Cf: New file.
52500         * modules/unictype/category-Cs: New file.
52501         * modules/unictype/category-Co: New file.
52502         * modules/unictype/category-Cn: New file.
52503         * modules/unictype/category-or: New file.
52504         * modules/unictype/category-of: New file.
52505         * modules/unictype/category-test: New file.
52506         * modules/unictype/category-test-withtable: New file.
52507         * modules/unictype/category-byname: New file.
52508         * modules/unictype/category-none: New file.
52509         * modules/unictype/category-and: New file.
52510         * modules/unictype/category-and-not: New file.
52511         * modules/unictype/category-name: New file.
52512         * modules/unictype/combining-class: New file.
52513         * modules/unictype/category-all: New file.
52514         * modules/unictype/bidicategory-all: New file.
52515         * modules/unictype/bidicategory-byname: New file.
52516         * modules/unictype/bidicategory-name: New file.
52517         * modules/unictype/bidicategory-of: New file.
52518         * modules/unictype/bidicategory-test: New file.
52519         * modules/unictype/decimal-digit: New file.
52520         * modules/unictype/digit: New file.
52521         * modules/unictype/numeric: New file.
52522         * modules/unictype/mirror: New file.
52523         * modules/unictype/property-white-space: New file.
52524         * modules/unictype/property-alphabetic: New file.
52525         * modules/unictype/property-other-alphabetic: New file.
52526         * modules/unictype/property-not-a-character: New file.
52527         * modules/unictype/property-default-ignorable-code-point: New file.
52528         * modules/unictype/property-other-default-ignorable-code-point: New
52529         file.
52530         * modules/unictype/property-deprecated: New file.
52531         * modules/unictype/property-logical-order-exception: New file.
52532         * modules/unictype/property-variation-selector: New file.
52533         * modules/unictype/property-private-use: New file.
52534         * modules/unictype/property-unassigned-code-value: New file.
52535         * modules/unictype/property-uppercase: New file.
52536         * modules/unictype/property-other-uppercase: New file.
52537         * modules/unictype/property-lowercase: New file.
52538         * modules/unictype/property-other-lowercase: New file.
52539         * modules/unictype/property-titlecase: New file.
52540         * modules/unictype/property-soft-dotted: New file.
52541         * modules/unictype/property-id-start: New file.
52542         * modules/unictype/property-other-id-start: New file.
52543         * modules/unictype/property-id-continue: New file.
52544         * modules/unictype/property-other-id-continue: New file.
52545         * modules/unictype/property-xid-start: New file.
52546         * modules/unictype/property-xid-continue: New file.
52547         * modules/unictype/property-pattern-white-space: New file.
52548         * modules/unictype/property-pattern-syntax: New file.
52549         * modules/unictype/property-join-control: New file.
52550         * modules/unictype/property-grapheme-base: New file.
52551         * modules/unictype/property-grapheme-extend: New file.
52552         * modules/unictype/property-other-grapheme-extend: New file.
52553         * modules/unictype/property-grapheme-link: New file.
52554         * modules/unictype/property-bidi-control: New file.
52555         * modules/unictype/property-bidi-left-to-right: New file.
52556         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52557         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52558         * modules/unictype/property-bidi-european-digit: New file.
52559         * modules/unictype/property-bidi-eur-num-separator: New file.
52560         * modules/unictype/property-bidi-eur-num-terminator: New file.
52561         * modules/unictype/property-bidi-arabic-digit: New file.
52562         * modules/unictype/property-bidi-common-separator: New file.
52563         * modules/unictype/property-bidi-block-separator: New file.
52564         * modules/unictype/property-bidi-segment-separator: New file.
52565         * modules/unictype/property-bidi-whitespace: New file.
52566         * modules/unictype/property-bidi-non-spacing-mark: New file.
52567         * modules/unictype/property-bidi-boundary-neutral: New file.
52568         * modules/unictype/property-bidi-pdf: New file.
52569         * modules/unictype/property-bidi-embedding-or-override: New file.
52570         * modules/unictype/property-bidi-other-neutral: New file.
52571         * modules/unictype/property-hex-digit: New file.
52572         * modules/unictype/property-ascii-hex-digit: New file.
52573         * modules/unictype/property-ideographic: New file.
52574         * modules/unictype/property-unified-ideograph: New file.
52575         * modules/unictype/property-radical: New file.
52576         * modules/unictype/property-ids-binary-operator: New file.
52577         * modules/unictype/property-ids-trinary-operator: New file.
52578         * modules/unictype/property-zero-width: New file.
52579         * modules/unictype/property-space: New file.
52580         * modules/unictype/property-non-break: New file.
52581         * modules/unictype/property-iso-control: New file.
52582         * modules/unictype/property-format-control: New file.
52583         * modules/unictype/property-dash: New file.
52584         * modules/unictype/property-hyphen: New file.
52585         * modules/unictype/property-punctuation: New file.
52586         * modules/unictype/property-line-separator: New file.
52587         * modules/unictype/property-paragraph-separator: New file.
52588         * modules/unictype/property-quotation-mark: New file.
52589         * modules/unictype/property-sentence-terminal: New file.
52590         * modules/unictype/property-terminal-punctuation: New file.
52591         * modules/unictype/property-currency-symbol: New file.
52592         * modules/unictype/property-math: New file.
52593         * modules/unictype/property-other-math: New file.
52594         * modules/unictype/property-paired-punctuation: New file.
52595         * modules/unictype/property-left-of-pair: New file.
52596         * modules/unictype/property-combining: New file.
52597         * modules/unictype/property-composite: New file.
52598         * modules/unictype/property-decimal-digit: New file.
52599         * modules/unictype/property-numeric: New file.
52600         * modules/unictype/property-diacritic: New file.
52601         * modules/unictype/property-extender: New file.
52602         * modules/unictype/property-ignorable-control: New file.
52603         * modules/unictype/property-test: New file.
52604         * modules/unictype/property-byname: New file.
52605         * modules/unictype/property-all: New file.
52606         * modules/unictype/scripts: New file.
52607         * modules/unictype/scripts-all: New file.
52608         * modules/unictype/block-of: New file.
52609         * modules/unictype/block-test: New file.
52610         * modules/unictype/block-list: New file.
52611         * modules/unictype/block-all: New file.
52612         * modules/unictype/syntax-c-whitespace: New file.
52613         * modules/unictype/syntax-java-whitespace: New file.
52614         * modules/unictype/syntax-c-ident: New file.
52615         * modules/unictype/syntax-java-ident: New file.
52616         * modules/unictype/ctype-alnum: New file.
52617         * modules/unictype/ctype-alpha: New file.
52618         * modules/unictype/ctype-cntrl: New file.
52619         * modules/unictype/ctype-digit: New file.
52620         * modules/unictype/ctype-graph: New file.
52621         * modules/unictype/ctype-lower: New file.
52622         * modules/unictype/ctype-print: New file.
52623         * modules/unictype/ctype-punct: New file.
52624         * modules/unictype/ctype-space: New file.
52625         * modules/unictype/ctype-upper: New file.
52626         * modules/unictype/ctype-xdigit: New file.
52627         * modules/unictype/ctype-blank: New file.
52628         * lib/unictype/bidi_byname.c: New file.
52629         * lib/unictype/bidi_name.c: New file.
52630         * lib/unictype/bidi_of.c: New file.
52631         * lib/unictype/bidi_test.c: New file.
52632         * lib/unictype/bitmap.h: New file.
52633         * lib/unictype/block_test.c: New file.
52634         * lib/unictype/blocks.c: New file.
52635         * lib/unictype/categ_C.c: New file.
52636         * lib/unictype/categ_Cc.c: New file.
52637         * lib/unictype/categ_Cf.c: New file.
52638         * lib/unictype/categ_Cn.c: New file.
52639         * lib/unictype/categ_Co.c: New file.
52640         * lib/unictype/categ_Cs.c: New file.
52641         * lib/unictype/categ_L.c: New file.
52642         * lib/unictype/categ_Ll.c: New file.
52643         * lib/unictype/categ_Lm.c: New file.
52644         * lib/unictype/categ_Lo.c: New file.
52645         * lib/unictype/categ_Lt.c: New file.
52646         * lib/unictype/categ_Lu.c: New file.
52647         * lib/unictype/categ_M.c: New file.
52648         * lib/unictype/categ_Mc.c: New file.
52649         * lib/unictype/categ_Me.c: New file.
52650         * lib/unictype/categ_Mn.c: New file.
52651         * lib/unictype/categ_N.c: New file.
52652         * lib/unictype/categ_Nd.c: New file.
52653         * lib/unictype/categ_Nl.c: New file.
52654         * lib/unictype/categ_No.c: New file.
52655         * lib/unictype/categ_P.c: New file.
52656         * lib/unictype/categ_Pc.c: New file.
52657         * lib/unictype/categ_Pd.c: New file.
52658         * lib/unictype/categ_Pe.c: New file.
52659         * lib/unictype/categ_Pf.c: New file.
52660         * lib/unictype/categ_Pi.c: New file.
52661         * lib/unictype/categ_Po.c: New file.
52662         * lib/unictype/categ_Ps.c: New file.
52663         * lib/unictype/categ_S.c: New file.
52664         * lib/unictype/categ_Sc.c: New file.
52665         * lib/unictype/categ_Sk.c: New file.
52666         * lib/unictype/categ_Sm.c: New file.
52667         * lib/unictype/categ_So.c: New file.
52668         * lib/unictype/categ_Z.c: New file.
52669         * lib/unictype/categ_Zl.c: New file.
52670         * lib/unictype/categ_Zp.c: New file.
52671         * lib/unictype/categ_Zs.c: New file.
52672         * lib/unictype/categ_and.c: New file.
52673         * lib/unictype/categ_and_not.c: New file.
52674         * lib/unictype/categ_byname.c: New file.
52675         * lib/unictype/categ_name.c: New file.
52676         * lib/unictype/categ_none.c: New file.
52677         * lib/unictype/categ_of.c: New file.
52678         * lib/unictype/categ_or.c: New file.
52679         * lib/unictype/categ_test.c: New file.
52680         * lib/unictype/combining.c: New file.
52681         * lib/unictype/ctype_alnum.c: New file.
52682         * lib/unictype/ctype_alpha.c: New file.
52683         * lib/unictype/ctype_blank.c: New file.
52684         * lib/unictype/ctype_cntrl.c: New file.
52685         * lib/unictype/ctype_digit.c: New file.
52686         * lib/unictype/ctype_graph.c: New file.
52687         * lib/unictype/ctype_lower.c: New file.
52688         * lib/unictype/ctype_print.c: New file.
52689         * lib/unictype/ctype_punct.c: New file.
52690         * lib/unictype/ctype_space.c: New file.
52691         * lib/unictype/ctype_upper.c: New file.
52692         * lib/unictype/ctype_xdigit.c: New file.
52693         * lib/unictype/decdigit.c: New file.
52694         * lib/unictype/digit.c: New file.
52695         * lib/unictype/identsyntaxmap.h: New file.
52696         * lib/unictype/mirror.c: New file.
52697         * lib/unictype/numeric.c: New file.
52698         * lib/unictype/pr_alphabetic.c: New file.
52699         * lib/unictype/pr_ascii_hex_digit.c: New file.
52700         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52701         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52702         * lib/unictype/pr_bidi_block_separator.c: New file.
52703         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52704         * lib/unictype/pr_bidi_common_separator.c: New file.
52705         * lib/unictype/pr_bidi_control.c: New file.
52706         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52707         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52708         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52709         * lib/unictype/pr_bidi_european_digit.c: New file.
52710         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52711         * lib/unictype/pr_bidi_left_to_right.c: New file.
52712         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52713         * lib/unictype/pr_bidi_other_neutral.c: New file.
52714         * lib/unictype/pr_bidi_pdf.c: New file.
52715         * lib/unictype/pr_bidi_segment_separator.c: New file.
52716         * lib/unictype/pr_bidi_whitespace.c: New file.
52717         * lib/unictype/pr_byname.c: New file.
52718         * lib/unictype/pr_byname.gperf: New file.
52719         * lib/unictype/pr_combining.c: New file.
52720         * lib/unictype/pr_composite.c: New file.
52721         * lib/unictype/pr_currency_symbol.c: New file.
52722         * lib/unictype/pr_dash.c: New file.
52723         * lib/unictype/pr_decimal_digit.c: New file.
52724         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52725         * lib/unictype/pr_deprecated.c: New file.
52726         * lib/unictype/pr_diacritic.c: New file.
52727         * lib/unictype/pr_extender.c: New file.
52728         * lib/unictype/pr_format_control.c: New file.
52729         * lib/unictype/pr_grapheme_base.c: New file.
52730         * lib/unictype/pr_grapheme_extend.c: New file.
52731         * lib/unictype/pr_grapheme_link.c: New file.
52732         * lib/unictype/pr_hex_digit.c: New file.
52733         * lib/unictype/pr_hyphen.c: New file.
52734         * lib/unictype/pr_id_continue.c: New file.
52735         * lib/unictype/pr_id_start.c: New file.
52736         * lib/unictype/pr_ideographic.c: New file.
52737         * lib/unictype/pr_ids_binary_operator.c: New file.
52738         * lib/unictype/pr_ids_trinary_operator.c: New file.
52739         * lib/unictype/pr_ignorable_control.c: New file.
52740         * lib/unictype/pr_iso_control.c: New file.
52741         * lib/unictype/pr_join_control.c: New file.
52742         * lib/unictype/pr_left_of_pair.c: New file.
52743         * lib/unictype/pr_line_separator.c: New file.
52744         * lib/unictype/pr_logical_order_exception.c: New file.
52745         * lib/unictype/pr_lowercase.c: New file.
52746         * lib/unictype/pr_math.c: New file.
52747         * lib/unictype/pr_non_break.c: New file.
52748         * lib/unictype/pr_not_a_character.c: New file.
52749         * lib/unictype/pr_numeric.c: New file.
52750         * lib/unictype/pr_other_alphabetic.c: New file.
52751         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52752         * lib/unictype/pr_other_grapheme_extend.c: New file.
52753         * lib/unictype/pr_other_id_continue.c: New file.
52754         * lib/unictype/pr_other_id_start.c: New file.
52755         * lib/unictype/pr_other_lowercase.c: New file.
52756         * lib/unictype/pr_other_math.c: New file.
52757         * lib/unictype/pr_other_uppercase.c: New file.
52758         * lib/unictype/pr_paired_punctuation.c: New file.
52759         * lib/unictype/pr_paragraph_separator.c: New file.
52760         * lib/unictype/pr_pattern_syntax.c: New file.
52761         * lib/unictype/pr_pattern_white_space.c: New file.
52762         * lib/unictype/pr_private_use.c: New file.
52763         * lib/unictype/pr_punctuation.c: New file.
52764         * lib/unictype/pr_quotation_mark.c: New file.
52765         * lib/unictype/pr_radical.c: New file.
52766         * lib/unictype/pr_sentence_terminal.c: New file.
52767         * lib/unictype/pr_soft_dotted.c: New file.
52768         * lib/unictype/pr_space.c: New file.
52769         * lib/unictype/pr_terminal_punctuation.c: New file.
52770         * lib/unictype/pr_test.c: New file.
52771         * lib/unictype/pr_titlecase.c: New file.
52772         * lib/unictype/pr_unassigned_code_value.c: New file.
52773         * lib/unictype/pr_unified_ideograph.c: New file.
52774         * lib/unictype/pr_uppercase.c: New file.
52775         * lib/unictype/pr_variation_selector.c: New file.
52776         * lib/unictype/pr_white_space.c: New file.
52777         * lib/unictype/pr_xid_continue.c: New file.
52778         * lib/unictype/pr_xid_start.c: New file.
52779         * lib/unictype/pr_zero_width.c: New file.
52780         * lib/unictype/scripts.c: New file.
52781         * lib/unictype/sy_c_ident.c: New file.
52782         * lib/unictype/sy_c_whitespace.c: New file.
52783         * lib/unictype/sy_java_ident.c: New file.
52784         * lib/unictype/sy_java_whitespace.c: New file.
52785
52786         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52787         Unicode 5.0.0.
52788         * lib/unictype/blocks.h: Likewise.
52789         * lib/unictype/categ_C.h: Likewise.
52790         * lib/unictype/categ_Cc.h: Likewise.
52791         * lib/unictype/categ_Cf.h: Likewise.
52792         * lib/unictype/categ_Cn.h: Likewise.
52793         * lib/unictype/categ_Co.h: Likewise.
52794         * lib/unictype/categ_Cs.h: Likewise.
52795         * lib/unictype/categ_L.h: Likewise.
52796         * lib/unictype/categ_Ll.h: Likewise.
52797         * lib/unictype/categ_Lm.h: Likewise.
52798         * lib/unictype/categ_Lo.h: Likewise.
52799         * lib/unictype/categ_Lt.h: Likewise.
52800         * lib/unictype/categ_Lu.h: Likewise.
52801         * lib/unictype/categ_M.h: Likewise.
52802         * lib/unictype/categ_Mc.h: Likewise.
52803         * lib/unictype/categ_Me.h: Likewise.
52804         * lib/unictype/categ_Mn.h: Likewise.
52805         * lib/unictype/categ_N.h: Likewise.
52806         * lib/unictype/categ_Nd.h: Likewise.
52807         * lib/unictype/categ_Nl.h: Likewise.
52808         * lib/unictype/categ_No.h: Likewise.
52809         * lib/unictype/categ_P.h: Likewise.
52810         * lib/unictype/categ_Pc.h: Likewise.
52811         * lib/unictype/categ_Pd.h: Likewise.
52812         * lib/unictype/categ_Pe.h: Likewise.
52813         * lib/unictype/categ_Pf.h: Likewise.
52814         * lib/unictype/categ_Pi.h: Likewise.
52815         * lib/unictype/categ_Po.h: Likewise.
52816         * lib/unictype/categ_Ps.h: Likewise.
52817         * lib/unictype/categ_S.h: Likewise.
52818         * lib/unictype/categ_Sc.h: Likewise.
52819         * lib/unictype/categ_Sk.h: Likewise.
52820         * lib/unictype/categ_Sm.h: Likewise.
52821         * lib/unictype/categ_So.h: Likewise.
52822         * lib/unictype/categ_Z.h: Likewise.
52823         * lib/unictype/categ_Zl.h: Likewise.
52824         * lib/unictype/categ_Zp.h: Likewise.
52825         * lib/unictype/categ_Zs.h: Likewise.
52826         * lib/unictype/categ_of.h: Likewise.
52827         * lib/unictype/combining.h: Likewise.
52828         * lib/unictype/ctype_alnum.h: Likewise.
52829         * lib/unictype/ctype_alpha.h: Likewise.
52830         * lib/unictype/ctype_blank.h: Likewise.
52831         * lib/unictype/ctype_cntrl.h: Likewise.
52832         * lib/unictype/ctype_digit.h: Likewise.
52833         * lib/unictype/ctype_graph.h: Likewise.
52834         * lib/unictype/ctype_lower.h: Likewise.
52835         * lib/unictype/ctype_print.h: Likewise.
52836         * lib/unictype/ctype_punct.h: Likewise.
52837         * lib/unictype/ctype_space.h: Likewise.
52838         * lib/unictype/ctype_upper.h: Likewise.
52839         * lib/unictype/ctype_xdigit.h: Likewise.
52840         * lib/unictype/decdigit.h: Likewise.
52841         * lib/unictype/digit.h: Likewise.
52842         * lib/unictype/mirror.h: Likewise.
52843         * lib/unictype/numeric.h: Likewise.
52844         * lib/unictype/pr_alphabetic.h: Likewise.
52845         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52846         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52847         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52848         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52849         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52850         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52851         * lib/unictype/pr_bidi_control.h: Likewise.
52852         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52853         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52854         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52855         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52856         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52857         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52858         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52859         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52860         * lib/unictype/pr_bidi_pdf.h: Likewise.
52861         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52862         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52863         * lib/unictype/pr_combining.h: Likewise.
52864         * lib/unictype/pr_composite.h: Likewise.
52865         * lib/unictype/pr_currency_symbol.h: Likewise.
52866         * lib/unictype/pr_dash.h: Likewise.
52867         * lib/unictype/pr_decimal_digit.h: Likewise.
52868         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52869         * lib/unictype/pr_deprecated.h: Likewise.
52870         * lib/unictype/pr_diacritic.h: Likewise.
52871         * lib/unictype/pr_extender.h: Likewise.
52872         * lib/unictype/pr_format_control.h: Likewise.
52873         * lib/unictype/pr_grapheme_base.h: Likewise.
52874         * lib/unictype/pr_grapheme_extend.h: Likewise.
52875         * lib/unictype/pr_grapheme_link.h: Likewise.
52876         * lib/unictype/pr_hex_digit.h: Likewise.
52877         * lib/unictype/pr_hyphen.h: Likewise.
52878         * lib/unictype/pr_id_continue.h: Likewise.
52879         * lib/unictype/pr_id_start.h: Likewise.
52880         * lib/unictype/pr_ideographic.h: Likewise.
52881         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52882         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52883         * lib/unictype/pr_ignorable_control.h: Likewise.
52884         * lib/unictype/pr_iso_control.h: Likewise.
52885         * lib/unictype/pr_join_control.h: Likewise.
52886         * lib/unictype/pr_left_of_pair.h: Likewise.
52887         * lib/unictype/pr_line_separator.h: Likewise.
52888         * lib/unictype/pr_logical_order_exception.h: Likewise.
52889         * lib/unictype/pr_lowercase.h: Likewise.
52890         * lib/unictype/pr_math.h: Likewise.
52891         * lib/unictype/pr_non_break.h: Likewise.
52892         * lib/unictype/pr_not_a_character.h: Likewise.
52893         * lib/unictype/pr_numeric.h: Likewise.
52894         * lib/unictype/pr_other_alphabetic.h: Likewise.
52895         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52896         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52897         * lib/unictype/pr_other_id_continue.h: Likewise.
52898         * lib/unictype/pr_other_id_start.h: Likewise.
52899         * lib/unictype/pr_other_lowercase.h: Likewise.
52900         * lib/unictype/pr_other_math.h: Likewise.
52901         * lib/unictype/pr_other_uppercase.h: Likewise.
52902         * lib/unictype/pr_paired_punctuation.h: Likewise.
52903         * lib/unictype/pr_paragraph_separator.h: Likewise.
52904         * lib/unictype/pr_pattern_syntax.h: Likewise.
52905         * lib/unictype/pr_pattern_white_space.h: Likewise.
52906         * lib/unictype/pr_private_use.h: Likewise.
52907         * lib/unictype/pr_punctuation.h: Likewise.
52908         * lib/unictype/pr_quotation_mark.h: Likewise.
52909         * lib/unictype/pr_radical.h: Likewise.
52910         * lib/unictype/pr_sentence_terminal.h: Likewise.
52911         * lib/unictype/pr_soft_dotted.h: Likewise.
52912         * lib/unictype/pr_space.h: Likewise.
52913         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52914         * lib/unictype/pr_titlecase.h: Likewise.
52915         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52916         * lib/unictype/pr_unified_ideograph.h: Likewise.
52917         * lib/unictype/pr_uppercase.h: Likewise.
52918         * lib/unictype/pr_variation_selector.h: Likewise.
52919         * lib/unictype/pr_white_space.h: Likewise.
52920         * lib/unictype/pr_xid_continue.h: Likewise.
52921         * lib/unictype/pr_xid_start.h: Likewise.
52922         * lib/unictype/pr_zero_width.h: Likewise.
52923         * lib/unictype/scripts.h: Likewise.
52924         * lib/unictype/scripts_byname.gperf: Likewise.
52925         * lib/unictype/sy_c_ident.h: Likewise.
52926         * lib/unictype/sy_c_whitespace.h: Likewise.
52927         * lib/unictype/sy_java_ident.h: Likewise.
52928         * lib/unictype/sy_java_whitespace.h: Likewise.
52929
52930         * lib/unictype/Makefile: New file.
52931         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52932         glibc.
52933         * lib/unictype/3level.h: New file, copied from glibc.
52934         * lib/unictype/3levelbit.h: New file.
52935
52936 2007-11-11  Bruno Haible  <bruno@clisp.org>
52937
52938         * modules/gperf: New file.
52939         * modules/iconv_open (Depends-on): Add it.
52940         (Makefile.am): Remove the GPERF definition.
52941
52942 2007-11-11  Bruno Haible  <bruno@clisp.org>
52943
52944         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52945         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52946
52947 2007-11-11  Bruno Haible  <bruno@clisp.org>
52948
52949         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52950         (usage): Remove function.
52951
52952 2007-11-11  Bruno Haible  <bruno@clisp.org>
52953
52954         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52955         gl_FUNC_CEILF_LIBS.
52956         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52957         gl_FUNC_CEIL_LIBS.
52958         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52959         gl_FUNC_CEILL_LIBS.
52960         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52961         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52962         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52963
52964 2007-11-11  Bruno Haible  <bruno@clisp.org>
52965
52966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52967         roundf were declared but do not exist on functions.
52968         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52969         roundl were declared but do not exist on functions.
52970         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52971         HAVE_FLOORL_AND_CEILL, respectively.
52972         Needed for Sun C on Solaris 10.
52973
52974 2007-11-11  Bruno Haible  <bruno@clisp.org>
52975
52976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52977         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52978         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52979         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52981         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52982         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52983         HAVE_DECL_ROUNDF.
52984         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52985         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52987         of HAVE_DECL_ROUND*.
52988         * modules/math (Makefile.am): Update.
52989
52990 2007-11-10  Bruno Haible  <bruno@clisp.org>
52991
52992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52993         ptrdiff_t as m4/intl.m4.
52994
52995 2007-11-10  Jim Meyering  <meyering@redhat.com>
52996
52997         Avoid link failure for the argmatch test.
52998         * tests/test-argmatch.c (usage): Define function to avoid a link
52999         failure: argmatch_die requires a usage function.
53000
53001 2007-11-09  Bruno Haible  <bruno@clisp.org>
53002
53003         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53004         * doc/functions/vsnprintf.texi: Likewise.
53005         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53006         with a size argument < 2.
53007
53008 2007-11-09  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53011         buffer. Fixes an inefficiency introduced on 2007-11-03.
53012
53013 2007-11-09  Bruno Haible  <bruno@clisp.org>
53014
53015         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53016         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53017
53018 2007-11-08  Jim Meyering  <meyering@redhat.com>
53019
53020         Change cache variable name prefix "jm_" to "gl_" everywhere.
53021         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53022         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53023         * m4/uptime.m4: s/gl_/jm_/
53024
53025 2007-11-07  Bruno Haible  <bruno@clisp.org>
53026
53027         Update to GNU gettext 0.17.
53028         * m4/intl.m4: Update to GNU gettext 0.17.
53029         * m4/po.m4: Likewise.
53030         * modules/gettext (Files): Remove m4/ulonglong.m4.
53031         (configure.ac): Require gettext infrastructure from version 0.17.
53032
53033 2007-11-06  Bruno Haible  <bruno@clisp.org>
53034
53035         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53036         symbolic values are not defined in a public header.
53037         * lib/freadable.c (freadable) [QNX]: Likewise.
53038         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53039         * lib/freading.c (freading) [QNX]: Likewise.
53040         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53041         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53042         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53043         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53044         Reported by Alain Magloire.
53045
53046         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53047
53048 2007-11-05  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53051         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53052         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53053         Reported by Eric Blake.
53054
53055 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53056             Bruno Haible  <bruno@clisp.org>
53057
53058         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53059         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53060         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53061         (malloc): Undefine also before including <stdlib.h>.
53062         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53063         Needed on OSF/1 4.0.
53064
53065 2007-11-05  Jim Meyering  <meyering@redhat.com>
53066
53067         git-version-gen: sync from coreutils.
53068         * build-aux/git-version-gen: Add comments.
53069         Change the first '-' to '.' in the snapshot version string,
53070         e.g., 6.9-377-08144 -> 6.9.377-08144
53071         Remove first parameter.
53072         Don't declare a version "-dirty" merely because a time
53073         stamp has changed.
53074
53075 2007-11-04  Bruno Haible  <bruno@clisp.org>
53076
53077         * lib/lock.h: Protect all macro definitions containing an 'if'
53078         statement through a "do { ... } while (0)".
53079         * lib/tls.h: Likewise.
53080
53081 2007-11-04  Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53084
53085 2007-11-04  Bruno Haible  <bruno@clisp.org>
53086
53087         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53088         * modules/fprintf-posix (Depends-on): Add nocrash.
53089         * modules/snprintf-posix (Depends-on): Likewise.
53090         * modules/sprintf-posix (Depends-on): Likewise.
53091         * modules/vasnprintf-posix (Depends-on): Likewise.
53092         * modules/vasprintf-posix (Depends-on): Likewise.
53093         * modules/vfprintf-posix (Depends-on): Likewise.
53094         * modules/vsnprintf-posix (Depends-on): Likewise.
53095         * modules/vsprintf-posix (Depends-on): Likewise.
53096         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53097         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53098         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53099         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53100         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53101         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53102         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53103
53104 2007-11-04  Bruno Haible  <bruno@clisp.org>
53105
53106         * modules/nocrash: New file.
53107         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53108         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53109
53110 2007-11-04  Bruno Haible  <bruno@clisp.org>
53111
53112         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53113         precision handling.
53114         * tests/test-vasprintf-posix.c (test_function): Likewise.
53115         * tests/test-snprintf-posix.h (test_function): Likewise.
53116         * tests/test-sprintf-posix.h (test_function): Likewise.
53117
53118         Fix *printf behaviour for large precisions on mingw and BeOS.
53119         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53120         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53122         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53124         gl_PRINTF_PRECISION and test its result. Invoke
53125         gl_PREREQ_VASNPRINTF_PRECISION.
53126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53133         * doc/functions/fprintf.texi: Update.
53134         * doc/functions/printf.texi: Update.
53135         * doc/functions/snprintf.texi: Update.
53136         * doc/functions/sprintf.texi: Update.
53137         * doc/functions/vfprintf.texi: Update.
53138         * doc/functions/vprintf.texi: Update.
53139         * doc/functions/vsnprintf.texi: Update.
53140         * doc/functions/vsprintf.texi: Update.
53141
53142 2007-11-04  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53145
53146 2007-11-04  Bruno Haible  <bruno@clisp.org>
53147
53148         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53149         Reported by Sylvain Beucler <beuc@gnu.org>.
53150
53151 2007-11-03  Bruno Haible  <bruno@clisp.org>
53152
53153         * tests/test-fprintf-posix2.sh: New file.
53154         * tests/test-fprintf-posix2.c: New file.
53155         * modules/fprintf-posix-tests (Files): Add them.
53156         (TESTS): Add test-fprintf-posix2.sh.
53157         (configure.ac): Check for getrlimit and setrlimit.
53158         (check_PROGRAMS): Add test-fprintf-posix2.
53159
53160         * tests/test-printf-posix2.sh: New file.
53161         * tests/test-printf-posix2.c: New file.
53162         * modules/printf-posix-tests (Files): Add them.
53163         (TESTS): Add test-printf-posix2.sh.
53164         (configure.ac): Check for getrlimit and setrlimit.
53165         (check_PROGRAMS): Add test-printf-posix2.
53166
53167         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53168         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53169         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53170         (decode_double): New function, copied from decode_long_double.
53171         (scale10_round_decimal_decoded): New function, extracted from
53172         scale10_round_decimal_long_double.
53173         (scale10_round_decimal_long_double): Use it.
53174         (scale10_round_decimal_double): New function.
53175         (floorlog10): New function.
53176         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53178         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53179         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53180         gl_PRINTF_ENOMEM and test its result. Invoke
53181         gl_PREREQ_VASNPRINTF_ENOMEM.
53182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53189         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53190         * modules/snprintf-posix (Depends-on): Likewise.
53191         * modules/sprintf-posix (Depends-on): Likewise.
53192         * modules/vasnprintf-posix (Depends-on): Likewise.
53193         * modules/vasprintf-posix (Depends-on): Likewise.
53194         * modules/vfprintf-posix (Depends-on): Likewise.
53195         * modules/vsnprintf-posix (Depends-on): Likewise.
53196         * modules/vsprintf-posix (Depends-on): Likewise.
53197         * doc/functions/fprintf.texi: Update.
53198         * doc/functions/printf.texi: Update.
53199         * doc/functions/snprintf.texi: Update.
53200         * doc/functions/sprintf.texi: Update.
53201         * doc/functions/vfprintf.texi: Update.
53202         * doc/functions/vprintf.texi: Update.
53203         * doc/functions/vsnprintf.texi: Update.
53204         * doc/functions/vsprintf.texi: Update.
53205
53206 2007-11-03  Bruno Haible  <bruno@clisp.org>
53207
53208         * modules/frexp-nolibm-tests: New file.
53209
53210         * modules/frexp-nolibm: New file.
53211         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53212
53213 2007-11-03  Bruno Haible  <bruno@clisp.org>
53214
53215         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53216         value is C99 compliant.
53217         Needed for OSF/1 5.1.
53218
53219 2007-11-03  Bruno Haible  <bruno@clisp.org>
53220
53221         Fix out-of-memory handling of vasnprintf.
53222         * lib/printf-parse.c: Include <errno.h>.
53223         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53224         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53225         is already set.
53226
53227 2007-11-02  Eric Blake  <ebb9@byu.net>
53228
53229         Fix tests on cygwin.
53230         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53231
53232 2007-11-01  Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53235         warning.
53236         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53237         needed for POSIX compatibility.
53238
53239 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53240
53241         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53242         for compatibility with GNU.
53243
53244 2007-11-01  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53247         (putenv): Renamed from rpl_putenv. Change argument type from
53248         'const char *' to 'char *'.
53249         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53250         of defining putenv in config.h, just set REPLACE_PUTENV.
53251         * modules/putenv (Depends-on): Add stdlib.
53252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53253         (Include): Use <stdlib.h>.
53254         * lib/stdlib.in.h (putenv): New declaration.
53255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53256         REPLACE_PUTENV.
53257         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53258         REPLACE_PUTENV.
53259         Needed for MacOS X 10.5.0.
53260         Reported by Peter O'Gorman <peter@pogma.com>.
53261
53262 2007-11-01  Jim Meyering  <meyering@redhat.com>
53263
53264         Treat an empty date string exactly like "0".
53265         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53266         if the remaining date string (to be parsed) is empty, use "0".
53267         Reported by Mischa Molhoek and discussed in this thread:
53268         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53269
53270 2007-10-31  Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53273         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53274         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53275         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53276         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53277         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53278
53279 2007-10-31  Bruno Haible  <bruno@clisp.org>
53280
53281         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53282         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53283         (AC_TYPE_LONG_LONG_INT): Use it.
53284         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53285         it as well.
53286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53287         to m4/longlong.m4.
53288         * modules/stdint (Files): Remove m4/ulonglong.m4.
53289         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53290         m4/ulonglong.m4.
53291         * modules/strtoumax (Files): Likewise.
53292
53293 2007-10-30  Bruno Haible  <bruno@clisp.org>
53294
53295         * modules/xvasprintf-posix: New file.
53296         Suggested by Eric Blake.
53297
53298 2007-10-30  Bruno Haible  <bruno@clisp.org>
53299
53300         * modules/xprintf-posix-tests: New file.
53301         * tests/test-xprintf-posix.sh: New file.
53302         * tests/test-xprintf-posix.c: New file.
53303         * tests/test-xfprintf-posix.c: New file.
53304
53305         * modules/xprintf-posix: New file.
53306
53307 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53308
53309         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53310         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53311         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53312
53313 2007-10-29  Bruno Haible  <bruno@clisp.org>
53314
53315         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53316         contain the special marker '_cv_'.
53317         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53318         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53319         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53320         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53321         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53322         Reported by Ralf Wildenhues.
53323
53324 2007-10-29  Bruno Haible  <bruno@clisp.org>
53325
53326         * gnulib-tool (func_import): When --lgpl is not specified, set
53327         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53328         GPLv3.
53329         Reported by Simon Josefsson.
53330
53331 2007-10-28  Bruno Haible  <bruno@clisp.org>
53332
53333         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53334         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53335         HAVE_DECL_ISFINITE.
53336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53337         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53338         HAVE_DECL_ISFINITE.
53339
53340 2007-10-28  Bruno Haible  <bruno@clisp.org>
53341
53342         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53343         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53344
53345 2007-10-28  Bruno Haible  <bruno@clisp.org>
53346
53347         Fix link errors with Sun C 5.0 on Solaris 10.
53348         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53349         function is declared but not present in the compiler's libm.
53350         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53351         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53352         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53353         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53354         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53355         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53356         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53358         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53359         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53360         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53361         HAVE_DECL_FLOORL.
53362
53363 2007-10-28  Bruno Haible  <bruno@clisp.org>
53364
53365         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53366         gl_FUNC_FLOORL. Cache the result.
53367         (gl_FUNC_FLOORL): Use it.
53368         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53369         gl_FUNC_CEILL. Cache the result.
53370         (gl_FUNC_CEILL): Use it.
53371
53372         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53373         gl_FUNC_FLOOR. Cache the result.
53374         (gl_FUNC_FLOOR): Use it.
53375         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53376         gl_FUNC_CEIL. Cache the result.
53377         (gl_FUNC_CEIL): Use it.
53378
53379         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53380         gl_FUNC_FLOORF. Cache the result.
53381         (gl_FUNC_FLOORF): Use it.
53382         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53383         gl_FUNC_CEILF. Cache the result.
53384         (gl_FUNC_CEILF): Use it.
53385
53386 2007-10-28  Bruno Haible  <bruno@clisp.org>
53387
53388         * gnulib-tool: Allow specifying the LGPL version number through
53389         --lgpl=2 or --lgpl=3.
53390         (func_usage): Document --lgpl with argument.
53391         Handle --lgpl=... arguments.
53392         (func_import): Recognize also gl_LGPL calls with an argument. When
53393         --lgpl=2 is used and the module's license is just LGPL, report an
53394         error. Set sed_transform_lib_file according to the lgpl variable. In
53395         the generated files, use --lgpl or gl_LGPL invocations with argument,
53396         if necessary.
53397         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53398         an LGPv2+ license.
53399         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53400         gl_LGPL macro.
53401
53402 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53403             Bruno Haible  <bruno@clisp.org>
53404
53405         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53406         (u16_uctomb_aux): Likewise.
53407         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53408         !HAVE_INLINE.
53409         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53410
53411 2007-10-28  Bruno Haible  <bruno@clisp.org>
53412
53413         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53414         Invoke AM_GETTEXT_OPTION if it exists.
53415         * modules/vasprintf: Likewise.
53416         * modules/verror: Likewise.
53417         * modules/xprintf: Likewise.
53418         * modules/xvasprintf: Likewise.
53419
53420 2007-10-27  Ben Pfaff  <blp@gnu.org>
53421
53422         * lib/math.in.h: Define isfinite macro and prototypes for
53423         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53424         implementations.
53425         * m4/math_h.m4: New substitutions for isfinite module.
53426         * lib/isfinite.c: New file.
53427         * m4/isfinite.m4: New file.
53428         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53429         * modules/isfinite: New file.
53430         * modules/isfinite-tests: New file.
53431         * tests/tests-isfinite.c: New file.
53432         * doc/functions/isfinite.texi: Mention isfinite module.
53433         * MODULES.html.sh: Mention new module.
53434
53435 2007-10-27  Ben Pfaff  <blp@gnu.org>
53436
53437         Ralf Wildenhues reported that Tru64 4.0D declares the round
53438         functions but does not have definitions.
53439         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53440         cannot be found in any library, set the output variable to
53441         "missing" instead of "".
53442         * m4/round.m4: Also use our substitute if we cannot find round in
53443         any library, even if it is declared.
53444         * m4/roundf.m4: Likewise for roundf.
53445         * m4/roundl.m4: Likewise for roundl.
53446         * lib/math.in.h: Undefine roundf, round, roundl before defining
53447         their replacements, to allow for hypothetical systems where these
53448         may be defined as macros but not available in libraries.
53449
53450 2007-10-27  Bruno Haible  <bruno@clisp.org>
53451
53452         * doc/gnulib.texi: Invoke @firstparagraphindent.
53453         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53454         changes in gnulib.
53455         (Source changes): New section.
53456
53457 2007-10-26  Bruno Haible  <bruno@clisp.org>
53458
53459         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53460         borrowed from autoconf.
53461
53462 2007-10-26  Bruno Haible  <bruno@clisp.org>
53463
53464         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53465         strerror returned the empty string. Needed on HP-UX 11.00.
53466
53467 2007-10-24  Micah Cowan  <micah@cowan.name>
53468
53469         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53470         * build-aux/bootstrap: Remove support for now-unnecessary option,
53471         --cvs-user, and envvars CVS_USER, CVS_RSH.
53472
53473 2007-10-24  Jim Meyering  <meyering@redhat.com>
53474
53475         Avoid diagnostics from sha1sum when there is no cached checksum.
53476         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53477         if the po.s1 file hasn't been created yet.
53478
53479         * build-aux/bootstrap: Sync from coreutils:
53480         2007-10-24  Jim Meyering  <meyering@redhat.com>
53481         Get gnulib from the git repository, not from an obsolete cvs one.
53482         * build-aux/bootstrap: Suggestion from Micah Cowan.
53483         2007-10-04  Jim Meyering  <jim@meyering.net>
53484         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53485         (update_po_files): Work also when there are no .po files in po/.
53486
53487 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53488
53489         * README: Append ".git" to git and cg examples.
53490         Problem reported by Benoit Sigoure.
53491
53492 2007-10-23  Micah Cowan  <micah@cowan.name>
53493
53494         * users.txt: Add wget.
53495
53496 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53497
53498         Fix linking of some unistdio tests on FreeBSD.
53499         * modules/unistdio/u16-vsnprintf-tests
53500         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53501         * modules/unistdio/u16-vsprintf-tests
53502         (test_u16_vsnprintf1_LDADD): Likewise.
53503         * modules/unistdio/u32-vsnprintf-tests
53504         (test_u32_vsnprintf1_LDADD): Likewise.
53505         * modules/unistdio/u32-vsprintf-tests
53506         (test_u32_vsprintf1_LDADD): Likewise.
53507         * modules/unistdio/u8-vsnprintf-tests
53508         (test_u8_vsnprintf1_LDADD): Likewise.
53509         * modules/unistdio/u8-vsprintf-tests
53510         (test_u8_vsprintf1_LDADD): Likewise.
53511         * modules/unistdio/ulc-vsnprintf-tests
53512         (test_ulc_vsnprintf1_LDADD): Likewise.
53513         * modules/unistdio/ulc-vsprintf-tests
53514         (test_ulc_vsprintf1_LDADD): Likewise.
53515
53516         Fix linking of some uniconv tests on FreeBSD.
53517         * modules/uniconv/u16-conv-from-enc-tests
53518         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53519         * modules/uniconv/u16-conv-to-enc-tests
53520         (test_u16_conv_to_enc_LDADD): Likewise.
53521         * modules/uniconv/u16-strconv-from-enc-tests
53522         (test_u16_strconv_from_enc_LDADD): Likewise.
53523         * modules/uniconv/u16-strconv-to-enc-tests
53524         (test_u16_strconv_to_enc_LDADD): Likewise.
53525         * modules/uniconv/u32-conv-from-enc-tests
53526         (test_u32_conv_from_enc_LDADD): Likewise.
53527         * modules/uniconv/u32-conv-to-enc-tests
53528         (test_u32_conv_to_enc_LDADD): Likewise.
53529         * modules/uniconv/u32-strconv-from-enc-tests
53530         (test_u32_strconv_from_enc_LDADD): Likewise.
53531         * modules/uniconv/u32-strconv-to-enc-tests
53532         (test_u32_strconv_to_enc_LDADD): Likewise.
53533         * modules/uniconv/u8-conv-from-enc-tests
53534         (test_u8_conv_from_enc_LDADD): Likewise.
53535         * modules/uniconv/u8-conv-to-enc-tests
53536         (test_u8_conv_to_enc_LDADD): Likewise.
53537         * modules/uniconv/u8-strconv-from-enc-tests
53538         (test_u8_strconv_from_enc_LDADD): Likewise.
53539         * modules/uniconv/u8-strconv-to-enc-tests
53540         (test_u8_strconv_to_enc_LDADD): Likewise.
53541
53542 2007-10-22  Bruno Haible  <bruno@clisp.org>
53543
53544         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53545         size.
53546
53547 2007-10-22  Eric Blake  <ebb9@byu.net>
53548
53549         Tweak x*printf documentation.
53550         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53551         variable name and comments.
53552         Suggested by Bruno Haible.
53553
53554 2007-10-22  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/acl.c (copy_acl): Fix file name in comment.
53557
53558 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         Fix Tru64 problem with stdbool.h.
53561         * lib/stdbool.in.h (false, true):
53562         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53563         Don't declare as an enum in this situation; it runs afoul of Tru64.
53564         Problem reported by Steven M. Schweda in
53565         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53566
53567 2007-10-22  Eric Blake  <ebb9@byu.net>
53568
53569         Also wrap vf?printf.
53570         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53571         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53572         (xvprintf, xvfprintf): New functions.
53573
53574 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53575
53576         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53577         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53578
53579         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53580         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53581
53582 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53583
53584         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53585         by Bruno Haible.
53586
53587 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53588
53589         * lib/getloadavg.c
53590         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53591         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53592
53593         * tests/test-i-ring.c: Work for C89.
53594
53595 2007-10-22  Bruno Haible  <bruno@clisp.org>
53596
53597         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53598         -1u, in preprocessor expression, so that we don't test for the bug
53599         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53601
53602 2007-10-22  Eric Blake  <ebb9@byu.net>
53603
53604         * tests/test-yesno.sh: Silence stderr during test.
53605
53606 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53607
53608         * modules/crypto/gc-camellia: New file.
53609
53610         * m4/gc-camellia.m4: New file.
53611
53612         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53613
53614         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53615
53616 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53617
53618         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53619         --help to stdout.  Reported by sms@antinode.org (Steven
53620         M. Schweda).
53621
53622 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53623
53624         * users.txt: Fix link to libksba.
53625
53626 2007-10-21  Ben Pfaff  <blp@gnu.org>
53627
53628         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53629         round.c roundf implementation that depends on floorf and ceilf to
53630         be tested unconditionally.
53631
53632 2007-10-21  Ben Pfaff  <blp@gnu.org>
53633
53634         * m4/check-libm-func.m4: Removed.
53635         * m4/check-math-lib.m4: New file.
53636         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53637         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53638         definition and lack of AC_LIBOBJ([roundf]).
53639         * m4/roundl.m4: Ditto, and similarly for roundl.
53640         * modules/round: Reference new m4 file.
53641         * modules/roundf: Ditto.
53642         * modules/roundl: Ditto.
53643         * tests/test-round2.c (main): Use ROUND instead of round.
53644         Bug report from Bruno Haible.
53645
53646 2007-10-21  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53649         context.
53650
53651 2007-10-21  Bruno Haible  <bruno@clisp.org>
53652
53653         * tests/test-wcwidth.c (main): Allow negative result for some control
53654         characters.
53655
53656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53657         Needed on OSF/1 5.1.
53658
53659 2007-10-21  Bruno Haible  <bruno@clisp.org>
53660
53661         * tests/test-floorf1.c: Include isnanf.h.
53662         (main): Use isnanf() instead of isnan().
53663         * tests/test-ceilf1.c: Include isnanf.h.
53664         (main): Use isnanf() instead of isnan().
53665         * tests/test-truncf1.c: Include isnanf.h.
53666         (main): Use isnanf() instead of isnan().
53667         * tests/test-roundf1.c: Include isnanf.h.
53668         (main): Use isnanf() instead of isnan().
53669
53670 2007-10-21  Eric Blake  <ebb9@byu.net>
53671
53672         * users.txt: Update URL for m4.
53673
53674 2007-10-21  Bruno Haible  <bruno@clisp.org>
53675
53676         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53677
53678 2007-10-21  Bruno Haible  <bruno@clisp.org>
53679
53680         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53681         Git's management files if the CVS files are not present.
53682
53683 2007-10-20  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53686         gcc-3.4.x.
53687
53688 2007-10-20  Ben Pfaff  <blp@gnu.org>
53689
53690         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53691         implementations.
53692         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53693         * lib/round.c: New file.
53694         * lib/roundf.c: New file.
53695         * lib/roundl.c: New file.
53696         * m4/round.m4: New file.
53697         * m4/roundf.m4: New file.
53698         * m4/roundl.m4: New file.
53699         * m4/check-libm-func-m4: New file.
53700         * modules/math: Replace round, roundf, roundl related @VARS@ in
53701         math.in.h.
53702         * modules/round: New file.
53703         * modules/round-tests: New file.
53704         * modules/roundf: New file.
53705         * modules/roundf-tests: New file.
53706         * modules/roundl: New file.
53707         * modules/roundl-tests: New file.
53708         * tests/test-round1.c: New file.
53709         * tests/test-round2.c: New file.
53710         * tests/test-roundf1.c: New file.
53711         * tests/test-roundf2.c: New file.
53712         * tests/test-roundl.c: New file.
53713         * doc/functions/round.texi: Mention round module.
53714         * doc/functions/roundf.texi: Mention roundf module.
53715         * doc/functions/roundl.texi: Mention roundl module.
53716         * MODULES.html.sh: Mention new modules.
53717         Thanks to Bruno Haible for suggestions.
53718
53719 2007-10-20  Jim Meyering  <meyering@redhat.com>
53720
53721         * lib/xprintf.c: Include <config.h> unconditionally.
53722
53723         Change xprintf's license to GPL.
53724         * modules/xprintf (License): s/LGPL/GPL/, since this module
53725         depends on modules (exit and exitfail) which are GPL.
53726         Suggestion from Bruno Haible.
53727
53728         xprintf fixes.
53729         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53730         Use a clearer diagnostic.
53731         Patch from Bruno Haible.
53732
53733 2007-10-20  Bruno Haible  <bruno@clisp.org>
53734
53735         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53736         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53738
53739 2007-10-20  Bruno Haible  <bruno@clisp.org>
53740
53741         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53742         precision in the comparison result > x - 1 or similar.
53743         * tests/test-ceilf2.c (correct_result_p): Likewise.
53744         * tests/test-truncf2.c (correct_result_p): Likewise.
53745         * tests/test-trunc2.c (correct_result_p): Likewise.
53746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53747
53748 2007-10-20  Bruno Haible  <bruno@clisp.org>
53749
53750         * modules/ceil: New file.
53751         * m4/ceil.m4: New file.
53752         * doc/functions/ceil.texi: Mention the 'ceil' module.
53753
53754 2007-10-20  Bruno Haible  <bruno@clisp.org>
53755
53756         * modules/floor: New file.
53757         * m4/floor.m4: New file.
53758         * doc/functions/floor.texi: Mention the 'floor' module.
53759
53760 2007-10-20  Bruno Haible  <bruno@clisp.org>
53761
53762         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53763         of %a.
53764         * modules/floorf-tests (Depends-on): Likewise.
53765         * modules/truncf-tests (Depends-on): Likewise.
53766         * modules/trunc-tests (Depends-on): Likewise.
53767         Reported by Ben Pfaff.
53768
53769 2007-10-19  Jim Meyering  <meyering@redhat.com>
53770
53771         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53772         Don't bother testing specific errno values.  Just test ferror.
53773
53774         New module: xprintf
53775         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53776
53777 2007-10-19  Bruno Haible  <bruno@clisp.org>
53778
53779         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53780         syntax.
53781         * modules/javaexec (Makefile.am): Likewise.
53782         * modules/relocatable-prog (Makefile.am): Likewise.
53783         Suggested by Jim Meyering.
53784
53785 2007-10-18  Bruno Haible  <bruno@clisp.org>
53786
53787         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53788         Reported by Jim Meyering.
53789
53790 2007-10-18  Eric Blake  <ebb9@byu.net>
53791
53792         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53793
53794 2007-10-18  Bruno Haible  <bruno@clisp.org>
53795
53796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53797         the format string into writable memory. Needed in Fortify conditions.
53798
53799 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53800             Bruno Haible  <bruno@clisp.org>
53801
53802         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53803         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53804         * modules/trim (Depends-on): Add mbchar.
53805         (configure.ac): Add gl_FUNC_MBRTOWC.
53806         (Makefile.am): Augment lib_SOURCES.
53807
53808 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53809
53810         Modify glob.c to use fstatat and dirfd, to simplify it.
53811         Suggested by Eric Blake.
53812         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53813         Don't include <stdbool.h>; not used.
53814         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53815         (link_exists_p): Simplify implementation, since we can now assume
53816         dirfd and fstatat.
53817         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53818
53819 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53820
53821         * gnulib-tool (func_get_dependencies): Fix sed script to
53822         match only tests.
53823
53824 2007-10-17  Bruno Haible  <bruno@clisp.org>
53825
53826         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53827         allow locale names without encoding suffix.
53828         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53829         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53830
53831 2007-10-16  Bruno Haible  <bruno@clisp.org>
53832
53833         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53834         * lib/getgroups.c (getgroups): Likewise.
53835         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53836
53837 2007-10-16  Bruno Haible  <bruno@clisp.org>
53838
53839         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53840         * modules/malloc-posix (License): Likewise.
53841         * modules/realloc-posix (License): Likewise.
53842         * modules/calloc-posix (License): Likewise.
53843         * modules/intprops (License): Change from GPL to LGPL, with
53844         Paul Eggert's approval.
53845
53846 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         Merge glibc changes into lib/glob.c.
53849
53850         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53851         2007-10-15 04:59:03 UTC.  Here are the changes:
53852
53853         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53854
53855         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53856
53857         * lib/glob.c: Add some branch prediction throughout.
53858
53859         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53860
53861         [BZ #5103]
53862         * lib/glob.c (glob): Recognize patterns starting \/.
53863
53864         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53865
53866         [BZ #3996]
53867         * lib/glob.c (attribute_hidden): Define if not defined.
53868         (glob): Unescape dirname, filename or username when needed and not
53869         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53870         is NULL.  Handle unescaped [ in pattern without closing ].
53871         Don't pass GLOB_CHECK down to recursive glob for directories.
53872         (__glob_pattern_type): New function.
53873         (__glob_pattern_p): Implement using __glob_pattern_type.
53874         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53875         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53876         Remove unreachable code.
53877
53878         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53879
53880         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53881         explain why there are no leaks.
53882
53883         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53884
53885         [BZ #3253]
53886         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53887         time, rather allocate increasingly bigger arrays of pointers, if
53888         possible with alloca, if too large with malloc.
53889
53890 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53891
53892         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53893         Problem reported by H.Merijn Brand in
53894         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53895         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53896         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53897
53898 2007-10-15  Bruno Haible  <bruno@clisp.org>
53899
53900         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53901         with explicit rpl_ prefix.
53902         * lib/fopen.c (fopen): Likewise.
53903         * lib/freopen.c (freopen): Likewise.
53904         * lib/iconv.c (iconv): Likewise.
53905         * lib/iconv_close.c (iconv_close): Likewise.
53906
53907 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53908
53909         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53910
53911 2007-10-15  Bruno Haible  <bruno@clisp.org>
53912
53913         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53914         <stddef.h> instead of <stdlib.h> since we only need NULL.
53915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53916
53917 2007-10-15  Bruno Haible  <bruno@clisp.org>
53918
53919         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53920         Replace paragraph talking about LIBOBJS.
53921         Reported by Colin Watson <cjwatson@debian.org>.
53922
53923 2007-10-15  Bruno Haible  <bruno@clisp.org>
53924
53925         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53926         <stdlib.h> before using NULL.
53927
53928 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53929
53930         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53931         Reported by Albert Chin <china@thewrittenword.com>.
53932
53933 2007-10-14  Bruno Haible  <bruno@clisp.org>
53934
53935         * modules/iconv_open-utf-tests: New file.
53936         * tests/test-iconv-utf.c: New file.
53937
53938         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53939         * modules/iconv_open-utf: New file.
53940         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53941         (iconv, iconv_close): New declarations.
53942         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53943         be defined.
53944         (iconv_open): Add special handling of conversion between UTF-8 and
53945         UTF-{16,32}{BE,LE}.
53946         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53947         * lib/iconv_close.c: New file.
53948         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53949         gl_FUNC_ICONV_OPEN.
53950         (gl_FUNC_ICONV_OPEN): Use it.
53951         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53952         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53953         and REPLACE_ICONV_UTF.
53954         * modules/iconv_open (Depends-on): Add c-strcase.
53955         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53956         ICONV_CONST.
53957         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53958
53959 2007-10-13  Albert Chin  <china@thewrittenword.com>
53960             Bruno Haible  <bruno@clisp.org>
53961
53962         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53963         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53964
53965 2007-10-13  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53968         defined, use the ISO C99 inline semantics.
53969         * lib/argp.h (ARGP_EI): Likewise.
53970
53971 2007-10-13  Bruno Haible  <bruno@clisp.org>
53972
53973         Handle 'inline' change in gcc 4.3.0.
53974         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53975         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53976         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53977         argp_fmtstream_point): Disable 'extern' declaration if the function
53978         definition is going to be provided inline.
53979         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53980         semantics, not the ISO C99 inline semantics.
53981         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53982         'extern' declaration if the function definition is going to be provided
53983         inline.
53984         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53985         the GNU C inline semantics, not the ISO C99 inline semantics. With
53986         GCC 4.2, avoid a warning.
53987
53988 2007-10-13  Bruno Haible  <bruno@clisp.org>
53989
53990         * lib/freading.h (freading): Enable the use of __freading for
53991         glibc >= 2.7.
53992         * lib/freading.c (freading): Likewise.
53993
53994 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53997         "warning: C99 inline functions are not supported; using GNU89".
53998
53999 2007-10-12  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54002         of 2.
54003         * tests/test-ceilf2.c: New file.
54004         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54005
54006         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54007         * modules/ceilf-tests: Update.
54008
54009 2007-10-12  Bruno Haible  <bruno@clisp.org>
54010
54011         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54012         of 2.
54013         * tests/test-floorf2.c: New file.
54014         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54015
54016         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54017         * modules/floorf-tests: Update.
54018
54019 2007-10-12  Bruno Haible  <bruno@clisp.org>
54020
54021         * tests/test-trunc2.c: New file.
54022         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54023
54024         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54025         * modules/trunc-tests: Update.
54026
54027 2007-10-12  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54030         of 2.
54031         * tests/test-truncf2.c: New file.
54032         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54033
54034         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54035         * modules/truncf-tests: Update.
54036
54037 2007-10-11  Eric Blake  <ebb9@byu.net>
54038
54039         Don't claim strerror is broken on Interix.
54040         * doc/functions/strerror.texi (strerror): Known broken systems are
54041         now Solaris 8, and not Interix.
54042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54043         Interix on cross-compile.
54044         Reported by Martin Koeppe in
54045         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54046
54047 2007-10-11  Bruno Haible  <bruno@clisp.org>
54048
54049         * modules/i-ring-tests: New file.
54050         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54051         instead of assert.
54052
54053 2007-10-11  Bruno Haible  <bruno@clisp.org>
54054
54055         * modules/filenamecat-tests: New file.
54056         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54057         * lib/filenamecat.c: Remove test code.
54058
54059 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54060
54061         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54062
54063         * lib/strerror.c: Include <string.h> always, to test interface,
54064         and to remove the need for the dummy.
54065         Include intprops.h to compute width instead of doing it ourselves
54066         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54067         (strerror): Define it to return NULL if there's no system strerror.
54068         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54069         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54070         ancient pre-strerror Unix systems well any more.  Saying "unknown
54071         system error" is enough.
54072         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54073         simpler strerror.c implementation.
54074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54075         Simplify the tests to reflect the simpler strerror implementation.
54076         * modules/strerror (Depends-on): Add intprops.
54077
54078 2007-10-09  Eric Blake  <ebb9@byu.net>
54079
54080         Silence test-fpending.
54081         * modules/fpending-tests (Files): Add wrapper script.
54082         * tests/test-fpending.sh: New file.
54083
54084 2007-10-09  Bruno Haible  <bruno@clisp.org>
54085
54086         * MODULES.html.sh (func_module): Don't create a hyperlink for
54087         function names like 'printf_frexp'.
54088         (Misc): Add crc, memxor.
54089         (Characteristics of floating types): New section.
54090         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54091         isnanf-nolibm, signbit, trunc, truncf, truncl.
54092         (Enhancements for ISO C 99 functions): New subsection Input/output.
54093         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54094         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54095         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54096         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54097         (Enhancements for POSIX:2001 functions): Add chdir-long.
54098         (File system functions): Add areadlink, chdir-safer, read-file.
54099         Remove cycle-check.
54100         (File system as inode set): New section.
54101         (Date and time): Add gethrxtime.
54102         (Multithreading): Add openmp.
54103         (Internationalization functions): Add localename.
54104         (Unicode string functions): Add unistr/u*-mbsnlen.
54105         (Support for maintaining and releasing projects): Add git-version-gen.
54106         (Lone files): Remove directories.
54107
54108 2007-10-08  Ben Pfaff  <blp@gnu.org>
54109
54110         * lib/xmalloca.h: Fix typo in comment.
54111
54112 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54113
54114         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54115         when avoiding problems with integer overflow.  Use a portable test
54116         instead.
54117
54118 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54119
54120         * modules/dummy (License): Change to LGPLv2+.
54121         * modules/float (License): Likewise
54122         * modules/realloc (License): Likewise
54123         * modules/stdlib (License): Likewise
54124
54125 2007-10-07  Bruno Haible  <bruno@clisp.org>
54126
54127         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54128         * floor.c (TWO_MANT_DIG): Likewise.
54129         * ceil.c (TWO_MANT_DIG): Likewise.
54130         Reported by Ben Pfaff.
54131
54132 2007-10-07  Bruno Haible  <bruno@clisp.org>
54133
54134         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54135         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54136         * lib/frexp.c (FUNC): Likewise.
54137         * lib/printf-frexp.h (printf_frexp): Likewise.
54138         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54139         * lib/printf-frexp.c (FUNC): Likewise.
54140         Suggested by Jim Meyering.
54141
54142 2007-10-07  Jim Meyering  <meyering@redhat.com>
54143
54144         Make xnanosleep's integer overflow test more robust.
54145         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54146         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54147
54148 2007-10-07  Bruno Haible  <bruno@clisp.org>
54149
54150         * NEWS: Mention the license change.
54151
54152         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54153         abbreviations in the modules files.
54154
54155         Change copyright notice from GPLv2+ to GPLv3+.
54156         * README: Change copyright notice.
54157         * MODULES.html.sh: Likewise.
54158         * build-aux/bootstrap.conf: Likewise.
54159         * build-aux/config.libpath: Likewise.
54160         * build-aux/csharpcomp.sh.in: Likewise.
54161         * build-aux/csharpexec.sh.in: Likewise.
54162         * build-aux/install-reloc: Likewise.
54163         * build-aux/javacomp.sh.in: Likewise.
54164         * build-aux/javaexec.sh.in: Likewise.
54165         * build-aux/ldd.sh.in: Likewise.
54166         * build-aux/reloc-ldflags: Likewise.
54167         * build-aux/relocatable.sh.in: Likewise.
54168         * build-aux/x-to-1.in: Likewise.
54169         * check-module: Likewise.
54170         * config/srclistvars.sh: Likewise.
54171         * gnulib-tool: Likewise.
54172         * lib/acl-internal.h: Likewise.
54173         * lib/acl.c: Likewise.
54174         * lib/acl.h: Likewise.
54175         * lib/acl_entries.c: Likewise.
54176         * lib/areadlink-with-size.c: Likewise.
54177         * lib/areadlink.c: Likewise.
54178         * lib/areadlink.h: Likewise.
54179         * lib/argmatch.c: Likewise.
54180         * lib/argmatch.h: Likewise.
54181         * lib/argp-ba.c: Likewise.
54182         * lib/argp-eexst.c: Likewise.
54183         * lib/argp-fmtstream.c: Likewise.
54184         * lib/argp-fmtstream.h: Likewise.
54185         * lib/argp-fs-xinl.c: Likewise.
54186         * lib/argp-help.c: Likewise.
54187         * lib/argp-namefrob.h: Likewise.
54188         * lib/argp-parse.c: Likewise.
54189         * lib/argp-pin.c: Likewise.
54190         * lib/argp-pv.c: Likewise.
54191         * lib/argp-pvh.c: Likewise.
54192         * lib/argp-xinl.c: Likewise.
54193         * lib/argp.h: Likewise.
54194         * lib/at-func.c: Likewise.
54195         * lib/atanl.c: Likewise.
54196         * lib/backupfile.c: Likewise.
54197         * lib/backupfile.h: Likewise.
54198         * lib/basename.c: Likewise.
54199         * lib/binary-io.h: Likewise.
54200         * lib/byteswap.in.h: Likewise.
54201         * lib/c-stack.c: Likewise.
54202         * lib/c-stack.h: Likewise.
54203         * lib/c-strcasestr.c: Likewise.
54204         * lib/c-strcasestr.h: Likewise.
54205         * lib/c-strstr.c: Likewise.
54206         * lib/c-strstr.h: Likewise.
54207         * lib/c-strtod.c: Likewise.
54208         * lib/calloc.c: Likewise.
54209         * lib/canon-host.c: Likewise.
54210         * lib/canon-host.h: Likewise.
54211         * lib/canonicalize-lgpl.c: Likewise.
54212         * lib/canonicalize.c: Likewise.
54213         * lib/canonicalize.h: Likewise.
54214         * lib/ceil.c: Likewise.
54215         * lib/ceilf.c: Likewise.
54216         * lib/ceill.c: Likewise.
54217         * lib/chdir-long.c: Likewise.
54218         * lib/chdir-long.h: Likewise.
54219         * lib/chdir-safer.c: Likewise.
54220         * lib/chdir-safer.h: Likewise.
54221         * lib/chown.c: Likewise.
54222         * lib/classpath.c: Likewise.
54223         * lib/classpath.h: Likewise.
54224         * lib/clean-temp.c: Likewise.
54225         * lib/clean-temp.h: Likewise.
54226         * lib/cloexec.c: Likewise.
54227         * lib/close-stream.c: Likewise.
54228         * lib/closein.c: Likewise.
54229         * lib/closein.h: Likewise.
54230         * lib/closeout.c: Likewise.
54231         * lib/closeout.h: Likewise.
54232         * lib/concat-filename.c: Likewise.
54233         * lib/copy-file.c: Likewise.
54234         * lib/copy-file.h: Likewise.
54235         * lib/count-one-bits.h: Likewise.
54236         * lib/crc.c: Likewise.
54237         * lib/crc.h: Likewise.
54238         * lib/creat-safer.c: Likewise.
54239         * lib/csharpcomp.c: Likewise.
54240         * lib/csharpcomp.h: Likewise.
54241         * lib/csharpexec.c: Likewise.
54242         * lib/csharpexec.h: Likewise.
54243         * lib/cycle-check.c: Likewise.
54244         * lib/cycle-check.h: Likewise.
54245         * lib/diacrit.c: Likewise.
54246         * lib/diacrit.h: Likewise.
54247         * lib/diffseq.h: Likewise.
54248         * lib/dirchownmod.c: Likewise.
54249         * lib/dirent.in.h: Likewise.
54250         * lib/dirfd.c: Likewise.
54251         * lib/dirfd.h: Likewise.
54252         * lib/dirname.c: Likewise.
54253         * lib/dirname.h: Likewise.
54254         * lib/dummy.c: Likewise.
54255         * lib/dup-safer.c: Likewise.
54256         * lib/dup2.c: Likewise.
54257         * lib/eealloc.h: Likewise.
54258         * lib/error.c: Likewise.
54259         * lib/error.h: Likewise.
54260         * lib/euidaccess.c: Likewise.
54261         * lib/exclude.c: Likewise.
54262         * lib/exclude.h: Likewise.
54263         * lib/execute.c: Likewise.
54264         * lib/execute.h: Likewise.
54265         * lib/exitfail.c: Likewise.
54266         * lib/exitfail.h: Likewise.
54267         * lib/expl.c: Likewise.
54268         * lib/fatal-signal.c: Likewise.
54269         * lib/fatal-signal.h: Likewise.
54270         * lib/fbufmode.c: Likewise.
54271         * lib/fbufmode.h: Likewise.
54272         * lib/fchdir.c: Likewise.
54273         * lib/fchmodat.c: Likewise.
54274         * lib/fchownat.c: Likewise.
54275         * lib/fcntl--.h: Likewise.
54276         * lib/fcntl-safer.h: Likewise.
54277         * lib/fcntl.in.h: Likewise.
54278         * lib/fd-safer.c: Likewise.
54279         * lib/fflush.c: Likewise.
54280         * lib/file-has-acl.c: Likewise.
54281         * lib/file-set.c: Likewise.
54282         * lib/file-type.c: Likewise.
54283         * lib/file-type.h: Likewise.
54284         * lib/fileblocks.c: Likewise.
54285         * lib/filemode.c: Likewise.
54286         * lib/filemode.h: Likewise.
54287         * lib/filename.h: Likewise.
54288         * lib/filenamecat.c: Likewise.
54289         * lib/filenamecat.h: Likewise.
54290         * lib/findprog.c: Likewise.
54291         * lib/findprog.h: Likewise.
54292         * lib/float.in.h: Likewise.
54293         * lib/floor.c: Likewise.
54294         * lib/floorf.c: Likewise.
54295         * lib/floorl.c: Likewise.
54296         * lib/fopen-safer.c: Likewise.
54297         * lib/fopen.c: Likewise.
54298         * lib/fpending.c: Likewise.
54299         * lib/fpending.h: Likewise.
54300         * lib/fprintf.c: Likewise.
54301         * lib/fprintftime.h: Likewise.
54302         * lib/fpucw.h: Likewise.
54303         * lib/fpurge.c: Likewise.
54304         * lib/fpurge.h: Likewise.
54305         * lib/freadable.c: Likewise.
54306         * lib/freadable.h: Likewise.
54307         * lib/freadahead.c: Likewise.
54308         * lib/freadahead.h: Likewise.
54309         * lib/freading.c: Likewise.
54310         * lib/freading.h: Likewise.
54311         * lib/free.c: Likewise.
54312         * lib/freopen.c: Likewise.
54313         * lib/frexp.c: Likewise.
54314         * lib/frexpl.c: Likewise.
54315         * lib/fseek.c: Likewise.
54316         * lib/fseterr.c: Likewise.
54317         * lib/fseterr.h: Likewise.
54318         * lib/fstatat.c: Likewise.
54319         * lib/fstrcmp.c: Likewise.
54320         * lib/fstrcmp.h: Likewise.
54321         * lib/fsusage.c: Likewise.
54322         * lib/fsusage.h: Likewise.
54323         * lib/ftell.c: Likewise.
54324         * lib/ftello.c: Likewise.
54325         * lib/fts-cycle.c: Likewise.
54326         * lib/fts.c: Likewise.
54327         * lib/fts_.h: Likewise.
54328         * lib/full-read.c: Likewise.
54329         * lib/full-read.h: Likewise.
54330         * lib/full-write.c: Likewise.
54331         * lib/full-write.h: Likewise.
54332         * lib/fwritable.c: Likewise.
54333         * lib/fwritable.h: Likewise.
54334         * lib/fwriteerror.c: Likewise.
54335         * lib/fwriteerror.h: Likewise.
54336         * lib/fwriting.c: Likewise.
54337         * lib/fwriting.h: Likewise.
54338         * lib/gcd.c: Likewise.
54339         * lib/gcd.h: Likewise.
54340         * lib/getcwd.c: Likewise.
54341         * lib/getdate.h: Likewise.
54342         * lib/getdate.y: Likewise.
54343         * lib/getdomainname.c: Likewise.
54344         * lib/getdomainname.h: Likewise.
54345         * lib/getgroups.c: Likewise.
54346         * lib/gethostname.c: Likewise.
54347         * lib/gethrxtime.c: Likewise.
54348         * lib/gethrxtime.h: Likewise.
54349         * lib/getloadavg.c: Likewise.
54350         * lib/getndelim2.c: Likewise.
54351         * lib/getndelim2.h: Likewise.
54352         * lib/getnline.c: Likewise.
54353         * lib/getnline.h: Likewise.
54354         * lib/getopt.c: Likewise.
54355         * lib/getopt.in.h: Likewise.
54356         * lib/getopt1.c: Likewise.
54357         * lib/getopt_int.h: Likewise.
54358         * lib/getpagesize.h: Likewise.
54359         * lib/getsubopt.c: Likewise.
54360         * lib/gettime.c: Likewise.
54361         * lib/getugroups.c: Likewise.
54362         * lib/getugroups.h: Likewise.
54363         * lib/getusershell.c: Likewise.
54364         * lib/gl_anyavltree_list1.h: Likewise.
54365         * lib/gl_anyavltree_list2.h: Likewise.
54366         * lib/gl_anyhash_list1.h: Likewise.
54367         * lib/gl_anyhash_list2.h: Likewise.
54368         * lib/gl_anylinked_list1.h: Likewise.
54369         * lib/gl_anylinked_list2.h: Likewise.
54370         * lib/gl_anyrbtree_list1.h: Likewise.
54371         * lib/gl_anyrbtree_list2.h: Likewise.
54372         * lib/gl_anytree_list1.h: Likewise.
54373         * lib/gl_anytree_list2.h: Likewise.
54374         * lib/gl_anytree_oset.h: Likewise.
54375         * lib/gl_anytreehash_list1.h: Likewise.
54376         * lib/gl_anytreehash_list2.h: Likewise.
54377         * lib/gl_array_list.c: Likewise.
54378         * lib/gl_array_list.h: Likewise.
54379         * lib/gl_array_oset.c: Likewise.
54380         * lib/gl_array_oset.h: Likewise.
54381         * lib/gl_avltree_list.c: Likewise.
54382         * lib/gl_avltree_list.h: Likewise.
54383         * lib/gl_avltree_oset.c: Likewise.
54384         * lib/gl_avltree_oset.h: Likewise.
54385         * lib/gl_avltreehash_list.c: Likewise.
54386         * lib/gl_avltreehash_list.h: Likewise.
54387         * lib/gl_carray_list.c: Likewise.
54388         * lib/gl_carray_list.h: Likewise.
54389         * lib/gl_linked_list.c: Likewise.
54390         * lib/gl_linked_list.h: Likewise.
54391         * lib/gl_linkedhash_list.c: Likewise.
54392         * lib/gl_linkedhash_list.h: Likewise.
54393         * lib/gl_list.c: Likewise.
54394         * lib/gl_list.h: Likewise.
54395         * lib/gl_oset.c: Likewise.
54396         * lib/gl_oset.h: Likewise.
54397         * lib/gl_rbtree_list.c: Likewise.
54398         * lib/gl_rbtree_list.h: Likewise.
54399         * lib/gl_rbtree_oset.c: Likewise.
54400         * lib/gl_rbtree_oset.h: Likewise.
54401         * lib/gl_rbtreehash_list.c: Likewise.
54402         * lib/gl_rbtreehash_list.h: Likewise.
54403         * lib/gl_sublist.c: Likewise.
54404         * lib/gl_sublist.h: Likewise.
54405         * lib/group-member.c: Likewise.
54406         * lib/group-member.h: Likewise.
54407         * lib/hard-locale.c: Likewise.
54408         * lib/hard-locale.h: Likewise.
54409         * lib/hash-pjw.c: Likewise.
54410         * lib/hash-pjw.h: Likewise.
54411         * lib/hash-triple.c: Likewise.
54412         * lib/hash.c: Likewise.
54413         * lib/hash.h: Likewise.
54414         * lib/human.c: Likewise.
54415         * lib/human.h: Likewise.
54416         * lib/i-ring.c: Likewise.
54417         * lib/i-ring.h: Likewise.
54418         * lib/idcache.c: Likewise.
54419         * lib/imaxabs.c: Likewise.
54420         * lib/imaxdiv.c: Likewise.
54421         * lib/inet_pton.c: Likewise.
54422         * lib/inet_pton.h: Likewise.
54423         * lib/intprops.h: Likewise.
54424         * lib/inttostr.c: Likewise.
54425         * lib/inttostr.h: Likewise.
54426         * lib/inttypes.in.h: Likewise.
54427         * lib/isapipe.c: Likewise.
54428         * lib/isdir.c: Likewise.
54429         * lib/isnan.c: Likewise.
54430         * lib/isnan.h: Likewise.
54431         * lib/isnanf.c: Likewise.
54432         * lib/isnanf.h: Likewise.
54433         * lib/isnanl-nolibm.h: Likewise.
54434         * lib/isnanl.c: Likewise.
54435         * lib/isnanl.h: Likewise.
54436         * lib/javacomp.c: Likewise.
54437         * lib/javacomp.h: Likewise.
54438         * lib/javaexec.c: Likewise.
54439         * lib/javaexec.h: Likewise.
54440         * lib/javaversion.c: Likewise.
54441         * lib/javaversion.h: Likewise.
54442         * lib/javaversion.java: Likewise.
54443         * lib/lbrkprop.h: Likewise.
54444         * lib/lchmod.h: Likewise.
54445         * lib/lchown.c: Likewise.
54446         * lib/ldexpl.c: Likewise.
54447         * lib/linebreak.c: Likewise.
54448         * lib/linebreak.h: Likewise.
54449         * lib/linebuffer.c: Likewise.
54450         * lib/linebuffer.h: Likewise.
54451         * lib/locale.in.h: Likewise.
54452         * lib/logl.c: Likewise.
54453         * lib/long-options.c: Likewise.
54454         * lib/long-options.h: Likewise.
54455         * lib/lstat.c: Likewise.
54456         * lib/lstat.h: Likewise.
54457         * lib/math.in.h: Likewise.
54458         * lib/mbchar.c: Likewise.
54459         * lib/mbchar.h: Likewise.
54460         * lib/mbfile.h: Likewise.
54461         * lib/mbiter.h: Likewise.
54462         * lib/mbscasecmp.c: Likewise.
54463         * lib/mbscasestr.c: Likewise.
54464         * lib/mbschr.c: Likewise.
54465         * lib/mbscspn.c: Likewise.
54466         * lib/mbslen.c: Likewise.
54467         * lib/mbsncasecmp.c: Likewise.
54468         * lib/mbsnlen.c: Likewise.
54469         * lib/mbspbrk.c: Likewise.
54470         * lib/mbspcasecmp.c: Likewise.
54471         * lib/mbsrchr.c: Likewise.
54472         * lib/mbssep.c: Likewise.
54473         * lib/mbsspn.c: Likewise.
54474         * lib/mbsstr.c: Likewise.
54475         * lib/mbstok_r.c: Likewise.
54476         * lib/mbswidth.c: Likewise.
54477         * lib/mbswidth.h: Likewise.
54478         * lib/mbuiter.h: Likewise.
54479         * lib/memcasecmp.c: Likewise.
54480         * lib/memcasecmp.h: Likewise.
54481         * lib/memchr.c: Likewise.
54482         * lib/memcmp.c: Likewise.
54483         * lib/memcoll.c: Likewise.
54484         * lib/memcoll.h: Likewise.
54485         * lib/memcpy.c: Likewise.
54486         * lib/memrchr.c: Likewise.
54487         * lib/mkancesdirs.c: Likewise.
54488         * lib/mkdir-p.c: Likewise.
54489         * lib/mkdir-p.h: Likewise.
54490         * lib/mkdir.c: Likewise.
54491         * lib/mkdirat.c: Likewise.
54492         * lib/mkdtemp.c: Likewise.
54493         * lib/mkstemp-safer.c: Likewise.
54494         * lib/mkstemp.c: Likewise.
54495         * lib/modechange.c: Likewise.
54496         * lib/modechange.h: Likewise.
54497         * lib/mountlist.c: Likewise.
54498         * lib/mountlist.h: Likewise.
54499         * lib/mpsort.c: Likewise.
54500         * lib/nanosleep.c: Likewise.
54501         * lib/obstack.c: Likewise.
54502         * lib/obstack.h: Likewise.
54503         * lib/open-safer.c: Likewise.
54504         * lib/open.c: Likewise.
54505         * lib/openat-die.c: Likewise.
54506         * lib/openat-priv.h: Likewise.
54507         * lib/openat-proc.c: Likewise.
54508         * lib/openat.c: Likewise.
54509         * lib/openat.h: Likewise.
54510         * lib/pagealign_alloc.c: Likewise.
54511         * lib/pagealign_alloc.h: Likewise.
54512         * lib/physmem.c: Likewise.
54513         * lib/physmem.h: Likewise.
54514         * lib/pipe-safer.c: Likewise.
54515         * lib/pipe.c: Likewise.
54516         * lib/pipe.h: Likewise.
54517         * lib/posixtm.c: Likewise.
54518         * lib/posixtm.h: Likewise.
54519         * lib/posixver.c: Likewise.
54520         * lib/printf-frexp.c: Likewise.
54521         * lib/printf-frexp.h: Likewise.
54522         * lib/printf-frexpl.c: Likewise.
54523         * lib/printf-frexpl.h: Likewise.
54524         * lib/printf.c: Likewise.
54525         * lib/progname.c: Likewise.
54526         * lib/progname.h: Likewise.
54527         * lib/progreloc.c: Likewise.
54528         * lib/putenv.c: Likewise.
54529         * lib/quote.c: Likewise.
54530         * lib/quote.h: Likewise.
54531         * lib/quotearg.c: Likewise.
54532         * lib/quotearg.h: Likewise.
54533         * lib/raise.c: Likewise.
54534         * lib/readline.c: Likewise.
54535         * lib/readline.h: Likewise.
54536         * lib/readlink.c: Likewise.
54537         * lib/readtokens.c: Likewise.
54538         * lib/readtokens.h: Likewise.
54539         * lib/readtokens0.c: Likewise.
54540         * lib/readtokens0.h: Likewise.
54541         * lib/readutmp.c: Likewise.
54542         * lib/readutmp.h: Likewise.
54543         * lib/realloc.c: Likewise.
54544         * lib/relocwrapper.c: Likewise.
54545         * lib/rename-dest-slash.c: Likewise.
54546         * lib/rename.c: Likewise.
54547         * lib/rmdir.c: Likewise.
54548         * lib/rpmatch.c: Likewise.
54549         * lib/safe-read.c: Likewise.
54550         * lib/safe-read.h: Likewise.
54551         * lib/safe-write.c: Likewise.
54552         * lib/safe-write.h: Likewise.
54553         * lib/same-inode.h: Likewise.
54554         * lib/same.c: Likewise.
54555         * lib/same.h: Likewise.
54556         * lib/save-cwd.c: Likewise.
54557         * lib/save-cwd.h: Likewise.
54558         * lib/savedir.c: Likewise.
54559         * lib/savedir.h: Likewise.
54560         * lib/savewd.c: Likewise.
54561         * lib/savewd.h: Likewise.
54562         * lib/search.in.h: Likewise.
54563         * lib/setenv.c: Likewise.
54564         * lib/setenv.h: Likewise.
54565         * lib/settime.c: Likewise.
54566         * lib/sh-quote.c: Likewise.
54567         * lib/sh-quote.h: Likewise.
54568         * lib/sig2str.c: Likewise.
54569         * lib/sig2str.h: Likewise.
54570         * lib/signal.in.h: Likewise.
54571         * lib/signbitd.c: Likewise.
54572         * lib/signbitf.c: Likewise.
54573         * lib/signbitl.c: Likewise.
54574         * lib/sigprocmask.c: Likewise.
54575         * lib/sincosl.c: Likewise.
54576         * lib/sleep.c: Likewise.
54577         * lib/sprintf.c: Likewise.
54578         * lib/sqrtl.c: Likewise.
54579         * lib/stat-time.h: Likewise.
54580         * lib/stdio--.h: Likewise.
54581         * lib/stdio-safer.h: Likewise.
54582         * lib/stdlib--.h: Likewise.
54583         * lib/stdlib-safer.h: Likewise.
54584         * lib/stdlib.in.h: Likewise.
54585         * lib/stpcpy.c: Likewise.
54586         * lib/stpncpy.c: Likewise.
54587         * lib/strchrnul.c: Likewise.
54588         * lib/strcspn.c: Likewise.
54589         * lib/strerror.c: Likewise.
54590         * lib/strftime.c: Likewise.
54591         * lib/strftime.h: Likewise.
54592         * lib/striconveh.c: Likewise.
54593         * lib/striconveh.h: Likewise.
54594         * lib/striconveha.c: Likewise.
54595         * lib/striconveha.h: Likewise.
54596         * lib/stripslash.c: Likewise.
54597         * lib/strnlen1.c: Likewise.
54598         * lib/strnlen1.h: Likewise.
54599         * lib/strtod.c: Likewise.
54600         * lib/strtoimax.c: Likewise.
54601         * lib/strtok_r.c: Likewise.
54602         * lib/strtol.c: Likewise.
54603         * lib/strtoll.c: Likewise.
54604         * lib/strtoul.c: Likewise.
54605         * lib/strtoull.c: Likewise.
54606         * lib/sysexits.in.h: Likewise.
54607         * lib/tempname.c: Likewise.
54608         * lib/tempname.h: Likewise.
54609         * lib/timespec.h: Likewise.
54610         * lib/tls.c: Likewise.
54611         * lib/tls.h: Likewise.
54612         * lib/tmpdir.c: Likewise.
54613         * lib/tmpdir.h: Likewise.
54614         * lib/tmpfile-safer.c: Likewise.
54615         * lib/tmpfile.c: Likewise.
54616         * lib/trigl.c: Likewise.
54617         * lib/trigl.h: Likewise.
54618         * lib/trim.c: Likewise.
54619         * lib/trim.h: Likewise.
54620         * lib/trunc.c: Likewise.
54621         * lib/truncf.c: Likewise.
54622         * lib/truncl.c: Likewise.
54623         * lib/tsearch.c: Likewise.
54624         * lib/unicodeio.c: Likewise.
54625         * lib/unicodeio.h: Likewise.
54626         * lib/unistd--.h: Likewise.
54627         * lib/unistd-safer.h: Likewise.
54628         * lib/unistdio/ulc-fprintf.c: Likewise.
54629         * lib/unistdio/ulc-vfprintf.c: Likewise.
54630         * lib/unlinkdir.c: Likewise.
54631         * lib/unlinkdir.h: Likewise.
54632         * lib/unlocked-io.h: Likewise.
54633         * lib/unsetenv.c: Likewise.
54634         * lib/userspec.c: Likewise.
54635         * lib/utime.c: Likewise.
54636         * lib/utimecmp.c: Likewise.
54637         * lib/utimecmp.h: Likewise.
54638         * lib/utimens.c: Likewise.
54639         * lib/verify.h: Likewise.
54640         * lib/verror.c: Likewise.
54641         * lib/verror.h: Likewise.
54642         * lib/version-etc-fsf.c: Likewise.
54643         * lib/version-etc.c: Likewise.
54644         * lib/version-etc.h: Likewise.
54645         * lib/vfprintf.c: Likewise.
54646         * lib/vprintf.c: Likewise.
54647         * lib/vsprintf.c: Likewise.
54648         * lib/w32spawn.h: Likewise.
54649         * lib/wait-process.c: Likewise.
54650         * lib/wait-process.h: Likewise.
54651         * lib/wcwidth.c: Likewise.
54652         * lib/write-any-file.c: Likewise.
54653         * lib/xalloc-die.c: Likewise.
54654         * lib/xalloc.h: Likewise.
54655         * lib/xasprintf.c: Likewise.
54656         * lib/xgetcwd.c: Likewise.
54657         * lib/xgetcwd.h: Likewise.
54658         * lib/xgetdomainname.c: Likewise.
54659         * lib/xgetdomainname.h: Likewise.
54660         * lib/xgethostname.c: Likewise.
54661         * lib/xmalloc.c: Likewise.
54662         * lib/xmalloca.c: Likewise.
54663         * lib/xmalloca.h: Likewise.
54664         * lib/xmemcoll.c: Likewise.
54665         * lib/xnanosleep.c: Likewise.
54666         * lib/xreadlink.c: Likewise.
54667         * lib/xreadlink.h: Likewise.
54668         * lib/xsetenv.c: Likewise.
54669         * lib/xsetenv.h: Likewise.
54670         * lib/xstriconv.c: Likewise.
54671         * lib/xstriconv.h: Likewise.
54672         * lib/xstrndup.c: Likewise.
54673         * lib/xstrndup.h: Likewise.
54674         * lib/xstrtod.c: Likewise.
54675         * lib/xstrtod.h: Likewise.
54676         * lib/xstrtol-error.c: Likewise.
54677         * lib/xstrtol.c: Likewise.
54678         * lib/xstrtol.h: Likewise.
54679         * lib/xtime.h: Likewise.
54680         * lib/xvasprintf.c: Likewise.
54681         * lib/xvasprintf.h: Likewise.
54682         * lib/yesno.c: Likewise.
54683         * lib/yesno.h: Likewise.
54684         * posix-modules: Likewise.
54685         * tests/test-alloca-opt.c: Likewise.
54686         * tests/test-arcfour.c: Likewise.
54687         * tests/test-arctwo.c: Likewise.
54688         * tests/test-argmatch.c: Likewise.
54689         * tests/test-argp-2.sh: Likewise.
54690         * tests/test-argp.c: Likewise.
54691         * tests/test-arpa_inet.c: Likewise.
54692         * tests/test-array_list.c: Likewise.
54693         * tests/test-array_oset.c: Likewise.
54694         * tests/test-atexit.c: Likewise.
54695         * tests/test-avltree_list.c: Likewise.
54696         * tests/test-avltree_oset.c: Likewise.
54697         * tests/test-avltreehash_list.c: Likewise.
54698         * tests/test-base64.c: Likewise.
54699         * tests/test-binary-io.c: Likewise.
54700         * tests/test-byteswap.c: Likewise.
54701         * tests/test-c-ctype.c: Likewise.
54702         * tests/test-c-strcasecmp.c: Likewise.
54703         * tests/test-c-strcasestr.c: Likewise.
54704         * tests/test-c-strncasecmp.c: Likewise.
54705         * tests/test-c-strstr.c: Likewise.
54706         * tests/test-canonicalize-lgpl.c: Likewise.
54707         * tests/test-canonicalize.c: Likewise.
54708         * tests/test-carray_list.c: Likewise.
54709         * tests/test-ceilf.c: Likewise.
54710         * tests/test-ceill.c: Likewise.
54711         * tests/test-count-one-bits.c: Likewise.
54712         * tests/test-crc.c: Likewise.
54713         * tests/test-dirname.c: Likewise.
54714         * tests/test-fbufmode.c: Likewise.
54715         * tests/test-fcntl.c: Likewise.
54716         * tests/test-fflush.c: Likewise.
54717         * tests/test-floorf.c: Likewise.
54718         * tests/test-floorl.c: Likewise.
54719         * tests/test-fopen.c: Likewise.
54720         * tests/test-fprintf-posix.c: Likewise.
54721         * tests/test-fprintf-posix.h: Likewise.
54722         * tests/test-fpurge.c: Likewise.
54723         * tests/test-freadable.c: Likewise.
54724         * tests/test-freadahead.c: Likewise.
54725         * tests/test-freading.c: Likewise.
54726         * tests/test-freopen.c: Likewise.
54727         * tests/test-frexp.c: Likewise.
54728         * tests/test-frexpl.c: Likewise.
54729         * tests/test-fseek.c: Likewise.
54730         * tests/test-fseeko.c: Likewise.
54731         * tests/test-fseterr.c: Likewise.
54732         * tests/test-fstrcmp.c: Likewise.
54733         * tests/test-ftell.c: Likewise.
54734         * tests/test-ftello.c: Likewise.
54735         * tests/test-fwritable.c: Likewise.
54736         * tests/test-fwriting.c: Likewise.
54737         * tests/test-getaddrinfo.c: Likewise.
54738         * tests/test-getpass.c: Likewise.
54739         * tests/test-gettimeofday.c: Likewise.
54740         * tests/test-hmac-md5.c: Likewise.
54741         * tests/test-hmac-sha1.c: Likewise.
54742         * tests/test-iconv.c: Likewise.
54743         * tests/test-iconvme.c: Likewise.
54744         * tests/test-inttypes.c: Likewise.
54745         * tests/test-isnan.c: Likewise.
54746         * tests/test-isnanf.c: Likewise.
54747         * tests/test-isnanl-nolibm.c: Likewise.
54748         * tests/test-isnanl.c: Likewise.
54749         * tests/test-isnanl.h: Likewise.
54750         * tests/test-ldexpl.c: Likewise.
54751         * tests/test-linked_list.c: Likewise.
54752         * tests/test-linkedhash_list.c: Likewise.
54753         * tests/test-locale.c: Likewise.
54754         * tests/test-localename.c: Likewise.
54755         * tests/test-lock.c: Likewise.
54756         * tests/test-lseek.c: Likewise.
54757         * tests/test-malloca.c: Likewise.
54758         * tests/test-math.c: Likewise.
54759         * tests/test-mbscasecmp.c: Likewise.
54760         * tests/test-mbscasestr1.c: Likewise.
54761         * tests/test-mbscasestr2.c: Likewise.
54762         * tests/test-mbscasestr3.c: Likewise.
54763         * tests/test-mbscasestr4.c: Likewise.
54764         * tests/test-mbschr.c: Likewise.
54765         * tests/test-mbscspn.c: Likewise.
54766         * tests/test-mbsncasecmp.c: Likewise.
54767         * tests/test-mbspbrk.c: Likewise.
54768         * tests/test-mbspcasecmp.c: Likewise.
54769         * tests/test-mbsrchr.c: Likewise.
54770         * tests/test-mbsspn.c: Likewise.
54771         * tests/test-mbsstr1.c: Likewise.
54772         * tests/test-mbsstr2.c: Likewise.
54773         * tests/test-mbsstr3.c: Likewise.
54774         * tests/test-md5.c: Likewise.
54775         * tests/test-memmem.c: Likewise.
54776         * tests/test-netinet_in.c: Likewise.
54777         * tests/test-open.c: Likewise.
54778         * tests/test-printf-frexp.c: Likewise.
54779         * tests/test-printf-frexpl.c: Likewise.
54780         * tests/test-printf-posix.c: Likewise.
54781         * tests/test-printf-posix.h: Likewise.
54782         * tests/test-rbtree_list.c: Likewise.
54783         * tests/test-rbtree_oset.c: Likewise.
54784         * tests/test-rbtreehash_list.c: Likewise.
54785         * tests/test-read-file.c: Likewise.
54786         * tests/test-rijndael.c: Likewise.
54787         * tests/test-search.c: Likewise.
54788         * tests/test-signbit.c: Likewise.
54789         * tests/test-sleep.c: Likewise.
54790         * tests/test-snprintf-posix.c: Likewise.
54791         * tests/test-snprintf-posix.h: Likewise.
54792         * tests/test-snprintf.c: Likewise.
54793         * tests/test-sprintf-posix.c: Likewise.
54794         * tests/test-sprintf-posix.h: Likewise.
54795         * tests/test-stat-time.c: Likewise.
54796         * tests/test-stdbool.c: Likewise.
54797         * tests/test-stdint.c: Likewise.
54798         * tests/test-stdio.c: Likewise.
54799         * tests/test-stdlib.c: Likewise.
54800         * tests/test-stpncpy.c: Likewise.
54801         * tests/test-strcasestr.c: Likewise.
54802         * tests/test-striconv.c: Likewise.
54803         * tests/test-striconveh.c: Likewise.
54804         * tests/test-striconveha.c: Likewise.
54805         * tests/test-string.c: Likewise.
54806         * tests/test-sys_select.c: Likewise.
54807         * tests/test-sys_socket.c: Likewise.
54808         * tests/test-sys_stat.c: Likewise.
54809         * tests/test-sys_time.c: Likewise.
54810         * tests/test-sysexits.c: Likewise.
54811         * tests/test-time.c: Likewise.
54812         * tests/test-tls.c: Likewise.
54813         * tests/test-trunc.c: Likewise.
54814         * tests/test-truncf.c: Likewise.
54815         * tests/test-truncl.c: Likewise.
54816         * tests/test-unistd.c: Likewise.
54817         * tests/test-vasnprintf-posix.c: Likewise.
54818         * tests/test-vasnprintf-posix2.c: Likewise.
54819         * tests/test-vasnprintf.c: Likewise.
54820         * tests/test-vasprintf-posix.c: Likewise.
54821         * tests/test-vasprintf.c: Likewise.
54822         * tests/test-verify.c: Likewise.
54823         * tests/test-vfprintf-posix.c: Likewise.
54824         * tests/test-vprintf-posix.c: Likewise.
54825         * tests/test-vsnprintf-posix.c: Likewise.
54826         * tests/test-vsnprintf.c: Likewise.
54827         * tests/test-vsprintf-posix.c: Likewise.
54828         * tests/test-wchar.c: Likewise.
54829         * tests/test-wctype.c: Likewise.
54830         * tests/test-wcwidth.c: Likewise.
54831         * tests/test-xstrtol.c: Likewise.
54832         * tests/test-xvasprintf.c: Likewise.
54833         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54834         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54835         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54836         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54837         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54838         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54839         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54840         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54841         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54842         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54843         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54844         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54845         * tests/uniname/test-uninames.c: Likewise.
54846         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54847         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54848         * tests/unistdio/test-u16-printf1.h: Likewise.
54849         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54850         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54851         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54852         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54853         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54854         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54855         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54856         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54857         * tests/unistdio/test-u32-printf1.h: Likewise.
54858         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54859         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54860         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54861         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54862         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54863         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54864         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54865         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54866         * tests/unistdio/test-u8-printf1.h: Likewise.
54867         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54868         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54869         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54870         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54871         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54872         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54873         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54874         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54875         * tests/unistdio/test-ulc-printf1.h: Likewise.
54876         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54877         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54878         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54879         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54880         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54881         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54882         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54883         * tests/uniwidth/test-u16-width.c: Likewise.
54884         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54885         * tests/uniwidth/test-u32-width.c: Likewise.
54886         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54887         * tests/uniwidth/test-u8-width.c: Likewise.
54888         * tests/uniwidth/test-uc_width.c: Likewise.
54889         * config/srclist-update: Likewise.
54890         (fixlicense): Update to GPLv3+.
54891
54892         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54893         * tests/test-tsearch.c: Change copyright notice.
54894
54895         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54896         * lib/c-strcaseeq.h: Change copyright notice.
54897         * lib/streq.h: Likewise.
54898         * lib/uniconv.h: Likewise.
54899         * lib/uniconv/u-conv-from-enc.h: Likewise.
54900         * lib/uniconv/u-conv-to-enc.h: Likewise.
54901         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54902         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54903         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54904         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54905         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54906         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54907         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54908         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54909         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54910         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54911         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54912         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54913         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54914         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54915         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54916         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54917         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54918         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54919         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54920         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54921         * lib/uniname.h: Likewise.
54922         * lib/uniname/uniname.c: Likewise.
54923         * lib/unistdio.h: Likewise.
54924         * lib/unistdio/u-asnprintf.h: Likewise.
54925         * lib/unistdio/u-asprintf.h: Likewise.
54926         * lib/unistdio/u-printf-args.c: Likewise.
54927         * lib/unistdio/u-printf-args.h: Likewise.
54928         * lib/unistdio/u-printf-parse.h: Likewise.
54929         * lib/unistdio/u-snprintf.h: Likewise.
54930         * lib/unistdio/u-sprintf.h: Likewise.
54931         * lib/unistdio/u-vasprintf.h: Likewise.
54932         * lib/unistdio/u-vsnprintf.h: Likewise.
54933         * lib/unistdio/u-vsprintf.h: Likewise.
54934         * lib/unistdio/u16-asnprintf.c: Likewise.
54935         * lib/unistdio/u16-asprintf.c: Likewise.
54936         * lib/unistdio/u16-printf-parse.c: Likewise.
54937         * lib/unistdio/u16-snprintf.c: Likewise.
54938         * lib/unistdio/u16-sprintf.c: Likewise.
54939         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54940         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54941         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54942         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54943         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54944         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54945         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54946         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54947         * lib/unistdio/u16-vasnprintf.c: Likewise.
54948         * lib/unistdio/u16-vasprintf.c: Likewise.
54949         * lib/unistdio/u16-vsnprintf.c: Likewise.
54950         * lib/unistdio/u16-vsprintf.c: Likewise.
54951         * lib/unistdio/u32-asnprintf.c: Likewise.
54952         * lib/unistdio/u32-asprintf.c: Likewise.
54953         * lib/unistdio/u32-printf-parse.c: Likewise.
54954         * lib/unistdio/u32-snprintf.c: Likewise.
54955         * lib/unistdio/u32-sprintf.c: Likewise.
54956         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54957         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54958         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54959         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54960         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54961         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54962         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54963         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54964         * lib/unistdio/u32-vasnprintf.c: Likewise.
54965         * lib/unistdio/u32-vasprintf.c: Likewise.
54966         * lib/unistdio/u32-vsnprintf.c: Likewise.
54967         * lib/unistdio/u32-vsprintf.c: Likewise.
54968         * lib/unistdio/u8-asnprintf.c: Likewise.
54969         * lib/unistdio/u8-asprintf.c: Likewise.
54970         * lib/unistdio/u8-printf-parse.c: Likewise.
54971         * lib/unistdio/u8-snprintf.c: Likewise.
54972         * lib/unistdio/u8-sprintf.c: Likewise.
54973         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54974         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54975         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54976         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54977         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54978         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54979         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54980         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54981         * lib/unistdio/u8-vasnprintf.c: Likewise.
54982         * lib/unistdio/u8-vasprintf.c: Likewise.
54983         * lib/unistdio/u8-vsnprintf.c: Likewise.
54984         * lib/unistdio/u8-vsprintf.c: Likewise.
54985         * lib/unistdio/ulc-asnprintf.c: Likewise.
54986         * lib/unistdio/ulc-asprintf.c: Likewise.
54987         * lib/unistdio/ulc-printf-parse.c: Likewise.
54988         * lib/unistdio/ulc-snprintf.c: Likewise.
54989         * lib/unistdio/ulc-sprintf.c: Likewise.
54990         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54991         * lib/unistdio/ulc-vasprintf.c: Likewise.
54992         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54993         * lib/unistdio/ulc-vsprintf.c: Likewise.
54994         * lib/unistr.h: Likewise.
54995         * lib/unistr/u-cpy-alloc.h: Likewise.
54996         * lib/unistr/u-cpy.h: Likewise.
54997         * lib/unistr/u-endswith.h: Likewise.
54998         * lib/unistr/u-move.h: Likewise.
54999         * lib/unistr/u-set.h: Likewise.
55000         * lib/unistr/u-startswith.h: Likewise.
55001         * lib/unistr/u-stpcpy.h: Likewise.
55002         * lib/unistr/u-stpncpy.h: Likewise.
55003         * lib/unistr/u-strcat.h: Likewise.
55004         * lib/unistr/u-strcpy.h: Likewise.
55005         * lib/unistr/u-strcspn.h: Likewise.
55006         * lib/unistr/u-strdup.h: Likewise.
55007         * lib/unistr/u-strlen.h: Likewise.
55008         * lib/unistr/u-strncat.h: Likewise.
55009         * lib/unistr/u-strncpy.h: Likewise.
55010         * lib/unistr/u-strnlen.h: Likewise.
55011         * lib/unistr/u-strpbrk.h: Likewise.
55012         * lib/unistr/u-strspn.h: Likewise.
55013         * lib/unistr/u-strstr.h: Likewise.
55014         * lib/unistr/u-strtok.h: Likewise.
55015         * lib/unistr/u16-check.c: Likewise.
55016         * lib/unistr/u16-chr.c: Likewise.
55017         * lib/unistr/u16-cmp.c: Likewise.
55018         * lib/unistr/u16-cpy-alloc.c: Likewise.
55019         * lib/unistr/u16-cpy.c: Likewise.
55020         * lib/unistr/u16-endswith.c: Likewise.
55021         * lib/unistr/u16-mblen.c: Likewise.
55022         * lib/unistr/u16-mbsnlen.c: Likewise.
55023         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55024         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55025         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55026         * lib/unistr/u16-mbtouc.c: Likewise.
55027         * lib/unistr/u16-mbtoucr.c: Likewise.
55028         * lib/unistr/u16-move.c: Likewise.
55029         * lib/unistr/u16-next.c: Likewise.
55030         * lib/unistr/u16-prev.c: Likewise.
55031         * lib/unistr/u16-set.c: Likewise.
55032         * lib/unistr/u16-startswith.c: Likewise.
55033         * lib/unistr/u16-stpcpy.c: Likewise.
55034         * lib/unistr/u16-stpncpy.c: Likewise.
55035         * lib/unistr/u16-strcat.c: Likewise.
55036         * lib/unistr/u16-strchr.c: Likewise.
55037         * lib/unistr/u16-strcmp.c: Likewise.
55038         * lib/unistr/u16-strcpy.c: Likewise.
55039         * lib/unistr/u16-strcspn.c: Likewise.
55040         * lib/unistr/u16-strdup.c: Likewise.
55041         * lib/unistr/u16-strlen.c: Likewise.
55042         * lib/unistr/u16-strmblen.c: Likewise.
55043         * lib/unistr/u16-strmbtouc.c: Likewise.
55044         * lib/unistr/u16-strncat.c: Likewise.
55045         * lib/unistr/u16-strncmp.c: Likewise.
55046         * lib/unistr/u16-strncpy.c: Likewise.
55047         * lib/unistr/u16-strnlen.c: Likewise.
55048         * lib/unistr/u16-strpbrk.c: Likewise.
55049         * lib/unistr/u16-strrchr.c: Likewise.
55050         * lib/unistr/u16-strspn.c: Likewise.
55051         * lib/unistr/u16-strstr.c: Likewise.
55052         * lib/unistr/u16-strtok.c: Likewise.
55053         * lib/unistr/u16-to-u32.c: Likewise.
55054         * lib/unistr/u16-to-u8.c: Likewise.
55055         * lib/unistr/u16-uctomb-aux.c: Likewise.
55056         * lib/unistr/u16-uctomb.c: Likewise.
55057         * lib/unistr/u32-check.c: Likewise.
55058         * lib/unistr/u32-chr.c: Likewise.
55059         * lib/unistr/u32-cmp.c: Likewise.
55060         * lib/unistr/u32-cpy-alloc.c: Likewise.
55061         * lib/unistr/u32-cpy.c: Likewise.
55062         * lib/unistr/u32-endswith.c: Likewise.
55063         * lib/unistr/u32-mblen.c: Likewise.
55064         * lib/unistr/u32-mbsnlen.c: Likewise.
55065         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55066         * lib/unistr/u32-mbtouc.c: Likewise.
55067         * lib/unistr/u32-mbtoucr.c: Likewise.
55068         * lib/unistr/u32-move.c: Likewise.
55069         * lib/unistr/u32-next.c: Likewise.
55070         * lib/unistr/u32-prev.c: Likewise.
55071         * lib/unistr/u32-set.c: Likewise.
55072         * lib/unistr/u32-startswith.c: Likewise.
55073         * lib/unistr/u32-stpcpy.c: Likewise.
55074         * lib/unistr/u32-stpncpy.c: Likewise.
55075         * lib/unistr/u32-strcat.c: Likewise.
55076         * lib/unistr/u32-strchr.c: Likewise.
55077         * lib/unistr/u32-strcmp.c: Likewise.
55078         * lib/unistr/u32-strcpy.c: Likewise.
55079         * lib/unistr/u32-strcspn.c: Likewise.
55080         * lib/unistr/u32-strdup.c: Likewise.
55081         * lib/unistr/u32-strlen.c: Likewise.
55082         * lib/unistr/u32-strmblen.c: Likewise.
55083         * lib/unistr/u32-strmbtouc.c: Likewise.
55084         * lib/unistr/u32-strncat.c: Likewise.
55085         * lib/unistr/u32-strncmp.c: Likewise.
55086         * lib/unistr/u32-strncpy.c: Likewise.
55087         * lib/unistr/u32-strnlen.c: Likewise.
55088         * lib/unistr/u32-strpbrk.c: Likewise.
55089         * lib/unistr/u32-strrchr.c: Likewise.
55090         * lib/unistr/u32-strspn.c: Likewise.
55091         * lib/unistr/u32-strstr.c: Likewise.
55092         * lib/unistr/u32-strtok.c: Likewise.
55093         * lib/unistr/u32-to-u16.c: Likewise.
55094         * lib/unistr/u32-to-u8.c: Likewise.
55095         * lib/unistr/u32-uctomb.c: Likewise.
55096         * lib/unistr/u8-check.c: Likewise.
55097         * lib/unistr/u8-chr.c: Likewise.
55098         * lib/unistr/u8-cmp.c: Likewise.
55099         * lib/unistr/u8-cpy-alloc.c: Likewise.
55100         * lib/unistr/u8-cpy.c: Likewise.
55101         * lib/unistr/u8-endswith.c: Likewise.
55102         * lib/unistr/u8-mblen.c: Likewise.
55103         * lib/unistr/u8-mbsnlen.c: Likewise.
55104         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55105         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55106         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55107         * lib/unistr/u8-mbtouc.c: Likewise.
55108         * lib/unistr/u8-mbtoucr.c: Likewise.
55109         * lib/unistr/u8-move.c: Likewise.
55110         * lib/unistr/u8-next.c: Likewise.
55111         * lib/unistr/u8-prev.c: Likewise.
55112         * lib/unistr/u8-set.c: Likewise.
55113         * lib/unistr/u8-startswith.c: Likewise.
55114         * lib/unistr/u8-stpcpy.c: Likewise.
55115         * lib/unistr/u8-stpncpy.c: Likewise.
55116         * lib/unistr/u8-strcat.c: Likewise.
55117         * lib/unistr/u8-strchr.c: Likewise.
55118         * lib/unistr/u8-strcmp.c: Likewise.
55119         * lib/unistr/u8-strcpy.c: Likewise.
55120         * lib/unistr/u8-strcspn.c: Likewise.
55121         * lib/unistr/u8-strdup.c: Likewise.
55122         * lib/unistr/u8-strlen.c: Likewise.
55123         * lib/unistr/u8-strmblen.c: Likewise.
55124         * lib/unistr/u8-strmbtouc.c: Likewise.
55125         * lib/unistr/u8-strncat.c: Likewise.
55126         * lib/unistr/u8-strncmp.c: Likewise.
55127         * lib/unistr/u8-strncpy.c: Likewise.
55128         * lib/unistr/u8-strnlen.c: Likewise.
55129         * lib/unistr/u8-strpbrk.c: Likewise.
55130         * lib/unistr/u8-strrchr.c: Likewise.
55131         * lib/unistr/u8-strspn.c: Likewise.
55132         * lib/unistr/u8-strstr.c: Likewise.
55133         * lib/unistr/u8-strtok.c: Likewise.
55134         * lib/unistr/u8-to-u16.c: Likewise.
55135         * lib/unistr/u8-to-u32.c: Likewise.
55136         * lib/unistr/u8-uctomb-aux.c: Likewise.
55137         * lib/unistr/u8-uctomb.c: Likewise.
55138         * lib/unitypes.h: Likewise.
55139         * lib/uniwidth.h: Likewise.
55140         * lib/uniwidth/cjk.h: Likewise.
55141         * lib/uniwidth/u16-strwidth.c: Likewise.
55142         * lib/uniwidth/u16-width.c: Likewise.
55143         * lib/uniwidth/u32-strwidth.c: Likewise.
55144         * lib/uniwidth/u32-width.c: Likewise.
55145         * lib/uniwidth/u8-strwidth.c: Likewise.
55146         * lib/uniwidth/u8-width.c: Likewise.
55147         * lib/uniwidth/width.c: Likewise.
55148
55149 2007-10-07  Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55152         The file is still under LGPL (see modules/inttypes).
55153
55154 2007-10-06  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/trunc (Dependencies): Add 'extensions'.
55157         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55158         Reported by Ben Pfaff <blp@gnu.org>.
55159
55160 2007-10-06  Bruno Haible  <bruno@clisp.org>
55161
55162         * modules/freopen-tests: New file.
55163         * tests/test-freopen.c: New file.
55164
55165         * modules/fopen-tests: New file.
55166         * tests/test-fopen.c: New file.
55167
55168         * modules/fopen: New file.
55169         * lib/fopen.c: New file.
55170         * m4/fopen.m4: New file.
55171         * modules/freopen: New file.
55172         * lib/freopen.c: New file.
55173         * m4/freopen.m4: New file.
55174         * lib/stdio.in.h (fopen, freopen): New declarations.
55175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55176         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55177         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55178         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55179         * doc/functions/fopen.texi: Mention the 'fopen' module.
55180         * doc/functions/freopen.texi: Mention the 'freopen' module.
55181
55182 2007-10-06  Bruno Haible  <bruno@clisp.org>
55183
55184         * modules/open-tests: New file.
55185         * tests/test-open.c: New file.
55186
55187         * modules/open: New file.
55188         * lib/open.c: New file.
55189         * m4/open.m4: New file.
55190         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55191         lib/open.c does.
55192         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55193         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55194         macros.
55195         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55196         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55197         REPLACE_OPEN.
55198         * doc/functions/open.texi: Mention the 'open' module.
55199
55200 2007-10-04  Bruno Haible  <bruno@clisp.org>
55201
55202         * modules/ceill-tests: New file.
55203         * tests/test-ceill.c: New file.
55204
55205         * modules/ceill: New file.
55206         * lib/ceill.c: Replace entire file.
55207         * m4/ceill.m4: New file.
55208         * lib/math.in.h (ceill): Replace declaration.
55209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55210         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55211         * doc/functions/ceill.texi: Mention the 'ceill' module.
55212         * modules/mathl (Files): Remove lib/ceill.c.
55213         (Depends-on): Add ceill.
55214
55215 2007-10-04  Bruno Haible  <bruno@clisp.org>
55216
55217         * modules/ceilf-tests: New file.
55218         * tests/test-ceilf.c: New file.
55219
55220         * modules/ceilf: New file.
55221         * lib/ceil.c: New file.
55222         * lib/ceilf.c: New file.
55223         * m4/ceilf.m4: New file.
55224         * lib/math.in.h (ceilf): New declaration.
55225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55226         HAVE_DECL_CEILF.
55227         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55228         HAVE_DECL_CEILF.
55229         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55230
55231 2007-10-04  Bruno Haible  <bruno@clisp.org>
55232
55233         * modules/floorl-tests: New file.
55234         * tests/test-floorl.c: New file.
55235
55236         * modules/floorl: New file.
55237         * lib/floorl.c: Replace entire file.
55238         * m4/floorl.m4: New file.
55239         * lib/math.in.h (floorl): Replace declaration.
55240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55241         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55242         * doc/functions/floorl.texi: Mention the 'floorl' module.
55243         * modules/mathl (Files): Remove lib/floorl.c.
55244         (Depends-on): Add floorl.
55245
55246 2007-10-04  Bruno Haible  <bruno@clisp.org>
55247
55248         * modules/floorf-tests: New file.
55249         * tests/test-floorf.c: New file.
55250
55251         * modules/floorf: New file.
55252         * lib/floor.c: New file.
55253         * lib/floorf.c: New file.
55254         * m4/floorf.m4: New file.
55255         * lib/math.in.h (floorf): New declaration.
55256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55257         HAVE_DECL_FLOORF.
55258         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55259         HAVE_DECL_FLOORF.
55260         * doc/functions/floorf.texi: Mention the 'floorf' module.
55261
55262 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55263             Bruno Haible  <bruno@clisp.org>
55264
55265         Advertise for the Git server instead of the CVS server.
55266         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55267         repository instead of the CVS one.
55268         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55269         about all VCS systems generically.
55270         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55271
55272 2007-10-04  Bruno Haible  <bruno@clisp.org>
55273
55274         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55275         means.
55276         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55277
55278 2007-10-04  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/truncl-tests: New file.
55281         * tests/test-truncl.c: New file.
55282
55283         * modules/truncl: New file.
55284         * lib/truncl.c: New file.
55285         * m4/truncl.m4: New file.
55286         * lib/math.in.h (truncl): New declaration.
55287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55288         HAVE_DECL_TRUNCL.
55289         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55290         HAVE_DECL_TRUNCL.
55291         * doc/functions/truncl.texi: Mention the 'truncl' module.
55292
55293 2007-10-04  Bruno Haible  <bruno@clisp.org>
55294
55295         * modules/truncf-tests: New file.
55296         * tests/test-truncf.c: New file.
55297
55298         * modules/truncf: New file.
55299         * lib/trunc.c: Make paramerizable through USE_* macros.
55300         * lib/truncf.c: New file.
55301         * m4/truncf.m4: New file.
55302         * lib/math.in.h (truncf): New declaration.
55303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55304         HAVE_DECL_TRUNCF.
55305         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55306         HAVE_DECL_TRUNCF.
55307         * doc/functions/truncf.texi: Mention the 'truncf' module.
55308
55309 2007-10-03  Bruno Haible  <bruno@clisp.org>
55310
55311         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55312         augmentation also for tests modules.
55313         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55314         * modules/atexit-tests (Makefile.am): Likewise.
55315         * modules/binary-io-tests (Makefile.am): Likewise.
55316         * modules/c-strcase-tests (Makefile.am): Likewise.
55317         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55318         * modules/canonicalize-tests (Makefile.am): Likewise.
55319         * modules/closein-tests (Makefile.am): Likewise.
55320         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55321         * modules/freadahead-tests (Makefile.am): Likewise.
55322         * modules/fseek-tests (Makefile.am): Likewise.
55323         * modules/fseeko-tests (Makefile.am): Likewise.
55324         * modules/ftell-tests (Makefile.am): Likewise.
55325         * modules/ftello-tests (Makefile.am): Likewise.
55326         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55327         * modules/isnanl-tests (Makefile.am): Likewise.
55328         * modules/lseek-tests (Makefile.am): Likewise.
55329         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55330         * modules/mbscasestr-tests (Makefile.am): Likewise.
55331         * modules/mbschr-tests (Makefile.am): Likewise.
55332         * modules/mbscspn-tests (Makefile.am): Likewise.
55333         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55334         * modules/mbspbrk-tests (Makefile.am): Likewise.
55335         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55336         * modules/mbsrchr-tests (Makefile.am): Likewise.
55337         * modules/mbsspn-tests (Makefile.am): Likewise.
55338         * modules/mbsstr-tests (Makefile.am): Likewise.
55339         * modules/printf-posix-tests (Makefile.am): Likewise.
55340         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55341         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55342         * modules/tsearch-tests (Makefile.am): Likewise.
55343         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55344         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55345         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55346         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55347         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55348         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55349         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55350         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55351         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55352         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55353         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55354         * modules/xstrtol-tests (Makefile.am): Likewise.
55355         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55356         * modules/yesno-tests (Makefile.am): Likewise.
55357
55358 2007-10-03  Bruno Haible  <bruno@clisp.org>
55359
55360         * modules/trunc-tests: New file.
55361         * tests/test-trunc.c: New file.
55362
55363         * modules/trunc: New file.
55364         * lib/trunc.c: New file.
55365         * m4/trunc.m4: New file.
55366         * lib/math.in.h (trunc): New declaration.
55367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55368         HAVE_DECL_TRUNC.
55369         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55370         HAVE_DECL_TRUNC.
55371         * doc/functions/trunc.texi: Mention the 'trunc' module.
55372
55373 2007-10-03  Bruno Haible  <bruno@clisp.org>
55374
55375         * tests/test-fpending.c: New file, mostly copied
55376         from coreutils/lib/t-fpending.c.
55377         * modules/fpending-tests: New file.
55378
55379 2007-10-03  Bruno Haible  <bruno@clisp.org>
55380
55381         Port the stdio extensions to QNX (untested).
55382         * lib/fseterr.c (fseterr): Add support for QNX.
55383         * lib/fbufmode.c (fbufmode): Likewise.
55384         * lib/freadable.c (freadable): Likewise.
55385         * lib/fwritable.c (fwritable): Likewise.
55386         * lib/freading.c (freading): Likewise.
55387         * lib/fwriting.c (fwriting): Likewise.
55388         * lib/freadahead.c (freadahed): Likewise.
55389         * lib/fpurge.c (fpurge): Likewise.
55390         * lib/fseeko.c (rpl_fseeko): Likewise.
55391
55392 2007-10-03  Bruno Haible  <bruno@clisp.org>
55393             Jim Meyering  <jim@meyering.net>
55394             Eric Blake  <ebb9@byu.net>
55395
55396         * doc/relocatable.texi: Use @command instead of @program.
55397
55398 2007-10-02  Jim Meyering  <jim@meyering.net>
55399
55400         Perform one more "_.h" -> ".in.h" substitution.
55401         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55402         instead of unistd_.h here, too.
55403
55404 2007-10-01  Bruno Haible  <bruno@clisp.org>
55405
55406         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55407         Needed for the alloca-opt module.
55408
55409 2007-09-30  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55412         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55413         alloca_.h.
55414         * lib/argz.in.h: Renamed from lib/argz_.h.
55415         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55416         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55417         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55418         byteswap_.h.
55419         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55420         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55421         dirent_.h.
55422         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55423         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55424         fcntl_.h.
55425         * lib/float.in.h: Renamed from lib/float_.h.
55426         * modules/float (Files, Makefile.am): Use float.in.h instead of
55427         float_.h.
55428         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55429         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55430         fnmatch_.h.
55431         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55432         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55433         getopt_.h.
55434         * lib/glob.in.h: Renamed from lib/glob_.h.
55435         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55436         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55437         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55438         iconv_.h.
55439         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55440         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55441         inttypes_.h.
55442         * lib/locale.in.h: Renamed from lib/locale_.h.
55443         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55444         locale_.h.
55445         * lib/math.in.h: Renamed from lib/math_.h.
55446         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55447         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55448         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55449         of netinet_in_.h. Add dependency.
55450         * lib/poll.in.h: Renamed from lib/poll_.h.
55451         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55452         * lib/search.in.h: Renamed from lib/search_.h.
55453         * modules/search (Files, Makefile.am): Use search.in.h instead of
55454         search_.h.
55455         * lib/signal.in.h: Renamed from lib/signal_.h.
55456         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55457         _signal.h.
55458         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55459         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55460         stdbool_.h.
55461         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55462         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55463         stdint_.h.
55464         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55465         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55466         stdio_.h.
55467         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55468         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55469         stdlib_.h.
55470         * lib/string.in.h: Renamed from lib/string_.h.
55471         * modules/string (Files, Makefile.am): Use string.in.h instead of
55472         string_.h.
55473         * doc/gnulib-tool.texi (Initial import): Update.
55474         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55475         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55476         of sys_select_.h. Add dependency.
55477         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55478         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55479         of sys_socket_.h.
55480         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55481         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55482         sys_stat_.h.
55483         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55484         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55485         sys_time_.h.
55486         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55487         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55488         sysexits_.h.
55489         * lib/time.in.h: Renamed from lib/time_.h.
55490         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55491         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55492         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55493         unistd_.h.
55494         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55495         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55496         wchar_.h.
55497         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55498         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55499         wctype_.h.
55500         * build-aux/bootstrap (slurp): Update.
55501         * lib/.cppi-disable: Update.
55502
55503 2007-09-30  Bruno Haible  <bruno@clisp.org>
55504
55505         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55506         Needed on BeOS.
55507
55508 2007-09-30  Bruno Haible  <bruno@clisp.org>
55509
55510         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55511
55512 2007-09-29  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55515
55516 2007-09-29  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55519         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55520         * build-aux/install-reloc: Compile also areadlink.c.
55521         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55522
55523 2007-09-29  Bruno Haible  <bruno@clisp.org>
55524
55525         * gnulib-tool (func_emit_initmacro_done): Indentation.
55526
55527 2007-09-29  Bruno Haible  <bruno@clisp.org>
55528
55529         * README: Add CVS checkout update instructions.
55530         Info from Bob Proulx <bob@proulx.com>.
55531
55532 2007-09-28  Eric Blake  <ebb9@byu.net>
55533
55534         Provide move-if-change.
55535         * build-aux/move-if-change: New file, based on best practice
55536         rather than any canonical upstream location.
55537
55538 2007-09-28  Jim Meyering  <jim@meyering.net>
55539
55540         Fix canonicalize loop-detection corner case.
55541         Do not attempt to stat the symlink values stored via seen_triple.
55542         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55543         on linux-2.6.18, (but not 2.6.22).
55544         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55545         triple_compare.  The former compares dev,ino,filename, while the latter
55546         would actually stat dirname(filename) when dev and ino were equal.
55547         * lib/hash-triple.c: Install <string.h>.
55548         (STREQ): Define.
55549         (triple_compare_ino_str): New function.
55550         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55551
55552 2007-09-28  Eric Blake  <ebb9@byu.net>
55553
55554         Enforce that AC_REPLACE_FUNCS files exist.
55555         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55556         override check for typos.
55557
55558         Fix test-closein on Solaris 10.
55559         * tests/test-closein.c (main): Don't assume stdin can be inherited
55560         closed on all systems.
55561         * tests/test-closein.sh: Likewise.
55562         Reported by Piotr Tarnowski.
55563
55564 2007-09-28  Jim Meyering  <jim@meyering.net>
55565
55566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55567
55568 2007-09-27  Jim Meyering  <jim@meyering.net>
55569
55570         canonicalize: Avoid a false-positive cycle failure.
55571         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55572         Sort.  Remove cycle-check.
55573         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55574         not cycle-check.h.
55575         (seen_triple): New function.
55576         (canonicalize_filename_mode): Use it instead of cycle-check.
55577         * tests/test-canonicalize.c: Add a test for this bug.
55578         * tests/test-canonicalize.sh: Set up and run the test.
55579
55580         New module, file-set, from coreutils.
55581         * modules/file-set: Define it.
55582         * lib/file-set.c, lib/file-set.h: Implement.
55583
55584         New module, hash-triple, from coreutils.
55585         * modules/hash-triple: Define it.
55586         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55587
55588 2007-09-25  Eric Blake  <ebb9@byu.net>
55589
55590         Fix strerror on Interix.
55591         * lib/string_.h (strerror): Declare replacement.
55592         * doc/functions/strerror.texi (strerror): Document the Interix
55593         shortcoming.
55594         * modules/string (Makefile.am): Support new hooks.
55595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55596         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55597         gl_FUNC_STRERROR_SEPARATE.
55598         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55599         * lib/strerror.c (rpl_strerror): Provide replacement.
55600         * modules/strerror (Depends-on): Add string.
55601         (configure.ac): Detect use of module.
55602         * tests/test-strerror.c: New file.
55603         * modules/strerror-tests: New test module.
55604         * modules/argp (Depends-on): Add strerror.
55605         * modules/error (Depends-on): Likewise.
55606         Reported by Martin Koeppe.
55607
55608 2007-09-24  Bruno Haible  <bruno@clisp.org>
55609
55610         * README: Update git instructions.
55611
55612 2007-09-24  Eric Blake  <ebb9@byu.net>
55613
55614         Revert fpending breakage from 2007-09-08.
55615         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55616         __fpending.c.
55617
55618 2007-09-24  Jim Meyering  <jim@meyering.net>
55619
55620         filenamecat.c: Add a test.
55621         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55622         showing how the function works when DIR is the empty string.
55623
55624 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55625
55626         * tests/test-canonicalize.sh: Turn on executable bit.
55627
55628 2007-09-19  Eric Blake  <ebb9@byu.net>
55629
55630         * README: Update CVS instructions.
55631
55632 2007-09-18  Bruno Haible  <bruno@clisp.org>
55633
55634         * modules/areadlink: New file.
55635         * lib/areadlink.h (areadlink): New declaration.
55636         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55637
55638 2007-09-17  Jim Meyering  <jim@meyering.net>
55639
55640         * lib/savewd.c (ESTALE) [!defined]: Define.
55641         Reported to be required on Interix by Martin Koeppe.
55642
55643 2007-09-17  Bruno Haible  <bruno@clisp.org>
55644
55645         * gnulib-tool (func_version): Use $version.
55646
55647 2007-09-16  Bruno Haible  <bruno@clisp.org>
55648
55649         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55650         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55651         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55652         Reported by Greg Schafer <gschafer@zip.com.au>.
55653
55654 2007-09-15  Bruno Haible  <bruno@clisp.org>
55655
55656         * gnulib-tool (sed): Try a little harder to make bash understand the
55657         alias.
55658         Reported by Bruce Korb <bruce.korb@gmail.com>.
55659
55660 2007-09-13  Eric Blake  <ebb9@byu.net>
55661
55662         * ChangeLog: Remove conflict markers.
55663
55664 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55665
55666         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55667         Reported by Bruno Haible <bruno@clisp.org>.
55668
55669 2007-09-12  Bruno Haible  <bruno@clisp.org>
55670
55671         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55672         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55673         is not defined.
55674
55675 2007-09-12  Eric Blake  <ebb9@byu.net>
55676
55677         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55679         Autoconf definition.
55680         * modules/euidaccess (Depends-on): Add extensions, for
55681         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55682         * modules/fnmatch (Depends-on): Likewise.
55683         * modules/getaddrinfo (Depends-on): Likewise.
55684         * modules/getdelim (Depends-on): Likewise.
55685         * modules/getline (Depends-on): Likewise.
55686         * modules/getsubopt (Depends-on): Likewise.
55687         * modules/gettext (Depends-on): Likewise.
55688         * modules/group-member (Depends-on): Likewise.
55689         * modules/mbchar (Depends-on): Likewise.
55690         * modules/memmem (Depends-on): Likewise.
55691         * modules/mempcpy (Depends-on): Likewise.
55692         * modules/memrchr (Depends-on): Likewise.
55693         * modules/pagealign_alloc (Depends-on): Likewise.
55694         * modules/readutmp (Depends-on): Likewise.
55695         * modules/stpcpy (Depends-on): Likewise.
55696         * modules/stpncpy (Depends-on): Likewise.
55697         * modules/strchrnul (Depends-on): Likewise.
55698         * modules/strndup (Depends-on): Likewise.
55699         * modules/strsep (Depends-on): Likewise.
55700         * modules/strverscmp (Depends-on): Likewise.
55701         * modules/vasprintf (Depends-on): Likewise.
55702         * modules/wcwidth (Depends-on): Likewise.
55703         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55704         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55705         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55708         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55709         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55710         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55711         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55712         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55714         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55715         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55716         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55717         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55718         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55719         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55720         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55722         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55723         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55725         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55727         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55729         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55730         so that lock.m4 can be used in gettext without extensions module.
55731
55732 2007-09-11  Bruno Haible  <bruno@clisp.org>
55733
55734         * m4/isc-posix.m4: Remove file.
55735         Suggested by Eric Blake.
55736
55737 2007-09-11  Eric Blake  <ebb9@byu.net>
55738
55739         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55740
55741 2007-09-10  Bruno Haible  <bruno@clisp.org>
55742
55743         * posix-modules: Fix typo in error message.
55744         Reported by Matt <mkraai@beckman.com>.
55745
55746 2007-09-09  Bruno Haible  <bruno@clisp.org>
55747
55748         * doc/functions/getdelim.texi: Update list of platforms lacking the
55749         function.
55750         * doc/functions/getline.texi: Likewise.
55751
55752 2007-09-09  Jim Meyering  <jim@meyering.net>
55753
55754         * lib/hash.c (hash_initialize): Detect calloc failure.
55755         Reported by Bruno Haible.
55756
55757 2007-09-09  Bruno Haible  <bruno@clisp.org>
55758
55759         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55760         malloc or realloc fails.
55761
55762 2007-09-09  Bruno Haible  <bruno@clisp.org>
55763
55764         * modules/getcwd (Depends-on): Add malloc-posix.
55765         * modules/glob (Depends-on): Likewise.
55766         * modules/putenv (Depends-on): Likewise.
55767         * modules/strdup (Depends-on): Likewise.
55768         * modules/getdelim (Depends-on): Add realloc-posix.
55769         * modules/read-file (Depends-on): Likewise.
55770
55771 2007-09-09  Bruno Haible  <bruno@clisp.org>
55772
55773         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55774         (gl_FUNC_MALLOC_POSIX): Require it.
55775         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55776         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55777         * modules/realloc (Files): Add m4/malloc.m4.
55778         * modules/calloc (Files): Likewise.
55779
55780 2007-09-09  Bruno Haible  <bruno@clisp.org>
55781
55782         * modules/malloc-posix: New file.
55783         * modules/malloc (Depends-on): Add malloc-posix.
55784         * lib/malloc.c: Include errno.h.
55785         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55786         and a POSIX-compatible malloc into a single function. Set ENOMEM
55787         when returning NULL.
55788         * m4/malloc.m4: New file.
55789         * doc/functions/malloc.texi: Mention the malloc-posix module.
55790         * lib/stdlib_.h (malloc): New declaration.
55791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55792         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55793         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55794         and HAVE_MALLOC_POSIX.
55795
55796 2007-09-09  Bruno Haible  <bruno@clisp.org>
55797
55798         * modules/realloc-posix: New file.
55799         * modules/realloc (Depends-on): Add realloc-posix.
55800         * lib/realloc.c: Include errno.h.
55801         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55802         and a POSIX-compatible realloc into a single function. Set ENOMEM
55803         when returning NULL.
55804         * m4/realloc.m4: New file.
55805         * doc/functions/realloc.texi: Mention the realloc-posix module.
55806         * lib/stdlib_.h (realloc): New declaration.
55807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55808         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55809         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55810         and HAVE_REALLOC_POSIX.
55811
55812 2007-09-09  Bruno Haible  <bruno@clisp.org>
55813
55814         * modules/calloc-posix: New file.
55815         * modules/calloc (Depends-on): Add calloc-posix.
55816         * lib/calloc.c: Include errno.h.
55817         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55818         and a POSIX-compatible calloc into a single function. Set ENOMEM
55819         when returning NULL.
55820         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55821         * doc/functions/calloc.texi: Mention the calloc-posix module.
55822         * lib/stdlib_.h (calloc): New declaration.
55823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55824         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55825         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55826         and HAVE_CALLOC_POSIX.
55827
55828 2007-09-09  Bruno Haible  <bruno@clisp.org>
55829
55830         Allow for modules to show an arbitrary notice.
55831         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55832         * gnulib-tool: New option --extract-notice.
55833         (func_usage): Document it.
55834         (sed_extract_prog): Update.
55835         (func_get_notice): New function.
55836         (func_modules_notice): New function.
55837         (func_import, func_create_testdir): Invoke it.
55838         Suggested by Jim Meyering.
55839
55840 2007-09-09  Bruno Haible  <bruno@clisp.org>
55841
55842         * gnulib-tool: New options --verbose, --quiet.
55843         (func_usage): Document them.
55844         (verbose): New variable.
55845         (func_execute_command): New function.
55846         (func_import): Don't show the module list and the file list if
55847         $verbose < 0.
55848         (func_create_testdir): Likewise. Use func_execute_command.
55849         (func_create_megatestdir): Use func_execute_command.
55850
55851 2007-09-08  Bruno Haible  <bruno@clisp.org>
55852
55853         * gnulib-tool (func_import): Prefer rsync over wget when available,
55854         for fetching the PO files.
55855
55856 2007-09-08  Bruno Haible  <bruno@clisp.org>
55857
55858         * posix-modules: New file. Portions copied from gnulib-tool.
55859         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55860
55861 2007-09-08  Jim Meyering  <jim@meyering.net>
55862
55863         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55864         * lib/fpending.h: Rename from __fpending.h.
55865         * lib/fpending.c: Rename from __fpending.c.
55866         Include "fpending.h", not "__fpending.h".
55867         * lib/__fpending.h, lib/__fpending.c: Remove files.
55868         * modules/fpending (Files): Reflect new file names.
55869         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55870
55871 2007-09-08  Bruno Haible  <bruno@clisp.org>
55872
55873         * m4/inttypes-h.m4: Remove stub file.
55874
55875 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55876
55877         * doc/headers/stdint.texi: Discuss #include_next issue.
55878
55879 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55880
55881         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55882
55883 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55884
55885         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55886         in variable name.
55887
55888 2007-09-03  Jim Meyering  <jim@meyering.net>
55889
55890         New module: git-version-gen.
55891         * modules/git-version-gen: New file.
55892
55893         Import changes from coreutils for bootstrap script.
55894
55895         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55896
55897         bootstrap: uses rsync to download the .po files
55898         * build-aux/bootstrap (po_download_command_format): New global.
55899         (download_po_files): Use rsync.
55900         (update_po_files): Don't remove .po files after download,
55901         so future rsync runs can take advantage of the copies.
55902
55903         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55904
55905         Solve the unnecessary-.po-file-regeneration problem once and for all.
55906         * build-aux/bootstrap (download_po_files): New function, renamed from
55907         get_translations.  Now, downloads, but doesn't update LINGUAS.
55908         (update_po_files): New function.
55909
55910         bootstrap: Ignore more.
55911         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55912         uniwidth to e.g., lib/.gitignore.
55913         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55914
55915         * build-aux/bootstrap: New setting: vc_ignore.
55916         (insert_sorted_if_absent): Create $file if absent.
55917         Adapt to new, possibly empty, list: $vc_ignore.
55918
55919         bootstrap: generate more ignorable names
55920         * build-aux/bootstrap (slurp): When generating ignorable names,
55921         also map .sin to .sed, .gperf to .c, and .y to .c.
55922
55923 2007-09-03  Jim Meyering  <jim@meyering.net>
55924
55925         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55926         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55927
55928 2007-09-02  Bruno Haible  <bruno@clisp.org>
55929
55930         Fix mis-recognition of 'mcs' on QNX 6.
55931         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55932         output contains the string "Mono".
55933         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55934         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55935
55936 2007-09-01  Bruno Haible  <bruno@clisp.org>
55937
55938         Fix collision between uniwidth/* and linebreak modules.
55939         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55940         u32_width): Remove declarations.
55941         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55942         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55943         streq3, streq2, streq1, streq0): Remove functions.
55944         (STREQ): Remove macro.
55945         (is_cjk_encoding): Remove function.
55946         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55947         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55948         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55949         * NEWS: Document the change.
55950
55951 2007-09-01  Bruno Haible  <bruno@clisp.org>
55952
55953         * lib/streq.h: Add double-inclusion guard.
55954
55955 2007-09-01  Karl Berry  <karl@gnu.org>
55956
55957         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55958
55959 2007-08-28  Jim Meyering  <jim@meyering.net>
55960
55961         Rename mreadlink_with_size to areadlink_with_size.
55962         * NEWS: Document the change.
55963         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55964         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55965         * lib/mreadlink.h: Rename this to...
55966         * lib/areadlink.h: ...this.
55967         * modules/mreadlink-with-size: Rename this to...
55968         * modules/areadlink-with-size: ...this.
55969         * lib/canonicalize.c: Reflect the renaming.
55970         * modules/canonicalize: Likewise.
55971
55972 2007-08-26  Bruno Haible  <bruno@clisp.org>
55973
55974         * gnulib-tool (func_import): When deciding which files to remove,
55975         consider also dangling symbolic links.
55976         Reported by Eric Blake.
55977
55978 2007-08-26  Bruno Haible  <bruno@clisp.org>
55979
55980         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55981
55982 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55983
55984         * lib/readline.c: Don't include getline.h, the prototype is now
55985         found in stdio.h.
55986
55987 2007-08-23  Jim Meyering  <jim@meyering.net>
55988
55989         Getdelim touchup.
55990         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55991         around the funlockfile call, since funlockfile never sets errno.
55992         Don't set errno upon failed realloc.
55993
55994 2007-08-22  Eric Blake  <ebb9@byu.net>
55995
55996         Getline touchups.
55997         * lib/getdelim.c (getdelim): Revert regression that required *n to
55998         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56000         getdelim, rather than whether implementation is missing.
56001         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56002         * lib/stdio_.h (getline): Also declare if replacement is
56003         required.
56004         * doc/functions/getdelim.texi: New file.
56005         * doc/functions/getline.texi: Likewise.
56006         * doc/gnulib.texi (Function Substitutes): Add new files.
56007         Reported by Bruno Haible.
56008
56009 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56010
56011         * users.txt: Add Guile.
56012
56013 2007-08-22  Eric Blake  <ebb9@byu.net>
56014
56015         * tests/test-getdelim.c (main): Use remove, not unlink.
56016         * tests/test-getline.c (main): Likewise.
56017
56018         Move getline and getdelim into stdio.h, per POSIX 200x.
56019         * modules/getline (Files): Remove getline.h.
56020         (Depends-on): Add stdio.
56021         (configure.ac): Add module indicator.
56022         * modules/getdelim (Files): Remove getdelim.h.
56023         (Depends-on): Add stdio.
56024         (configure.ac): Add module indicator.
56025         * modules/stdio (Makefile.am): Work with new indicators.
56026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56028         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56029         * lib/getdelim.h: Delete.
56030         * lib/getline.h: Delete.
56031         * lib/stdio_.h (getdelim, getline): Declare.
56032         * modules/getdelim-tests: New module.
56033         * modules/getline-tests: Likewise.
56034         * tests/test-getdelim.c: New file.
56035         * tests/test-getline.c: Likewise.
56036         * NEWS: Document the change.
56037         * lib/getline.c: Update choice of header.
56038         * lib/csharpcomp.c: Likewise.
56039         * lib/getpass.c: Likewise.
56040         * lib/javacomp.c: Likewise.
56041         * lib/javaversion.c: Likewise.
56042         * lib/yesno.c: Likewise.
56043         * lib/getdelim.c: Likewise.
56044         (getdelim): Set errno on failure, and avoid memory leak.
56045
56046 2007-08-19  Bruno Haible  <bruno@clisp.org>
56047
56048         * modules/closein (Depends-on): Add freadahead.
56049         * lib/closein.c: Include freadahead.h.
56050         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56051         is zero.
56052
56053 2007-08-19  Bruno Haible  <bruno@clisp.org>
56054
56055         * modules/freadahead-tests: New file.
56056         * tests/test-freadahead.sh: New file.
56057         * tests/test-freadahead.c: New file.
56058
56059         * modules/freadahead: New file.
56060         * lib/freadahead.h: New file.
56061         * lib/freadahead.c: New file.
56062         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56063         fbufmode, fpurge, freadable, fwritable.
56064
56065 2007-08-19  Eric Blake  <ebb9@byu.net>
56066
56067         Test yesno in combination with closein.
56068         * lib/yesno.c (yesno): Document use of stdin.
56069         * modules/yesno-tests (Files): New module.
56070         * tests/test-yesno.c (main): New file.
56071         * tests/test-yesno.sh: Likewise.
56072
56073 2007-08-19  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56076         * lib/fseeko.c (rpl_fseeko): Likewise.
56077         * lib/fseterr.c (fseterr): Likewise.
56078
56079 2007-08-19  Bruno Haible  <bruno@clisp.org>
56080
56081         * tests/test-lseek.c (main): Disable a test for BeOS.
56082         * doc/functions/lseek.texi: Document the BeOS bug.
56083
56084 2007-08-19  Bruno Haible  <bruno@clisp.org>
56085             Eric Blake  <ebb9@byu.net>
56086
56087         * lib/lseek.c: Include <sys/stat.h>.
56088         (rpl_lseek): Add workaround code also for Unix platforms.
56089         Needed for BeOS.
56090         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56091         * doc/functions/lseek.texi: Document BeOS definiency.
56092
56093 2007-08-18  Bruno Haible  <bruno@clisp.org>
56094
56095         * modules/fstrcmp-tests: New file.
56096         * tests/test-fstrcmp.c: New file.
56097
56098 2007-08-18  Bruno Haible  <bruno@clisp.org>
56099
56100         * modules/fstrcmp: New file, from GNU gettext with modifications.
56101         * lib/fstrcmp.h: New file, from GNU gettext.
56102         * lib/fstrcmp.c: New file, from GNU gettext.
56103         * MODULES.html.sh (String handling): Add fstrcmp.
56104
56105 2007-08-18  Bruno Haible  <bruno@clisp.org>
56106
56107         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56108         'bool'.
56109         (diag, compareseq): Remove const from the ctxt argument.
56110         (USE_HEURISTIC): Undefine at the end.
56111
56112 2007-08-18  Jim Meyering  <jim@meyering.net>
56113
56114         New file: lib/idcache.h
56115         * NEWS: Mention the addition.
56116         * modules/idcache (Files): Add lib/idcache.h
56117         * lib/idcache.c: Include "idcache.h".
56118         Don't include <sys/types.h>.
56119         Add a FIXME comment.
56120         Move file-scoped "static" declarations to the top.
56121         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56122
56123 2007-08-17  Bruno Haible  <bruno@clisp.org>
56124         and Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * MODULES.html.sh: Add diffseq.
56127         * modules/diffseq: New file.
56128         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56129         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56130
56131 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56132
56133         Import changes from coreutils for bootstrap script.
56134
56135         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56136
56137         * build-aux/bootstrap (slurp): Work even in environments where
56138         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56139         current code does not slurp files whose names start with ".", and
56140         this looks like it might be a troublesome area.
56141
56142         2007-07-11  Jim Meyering  <jim@meyering.net>
56143
56144         If there's a GPL vN copyright comment, require that N == 3.
56145
56146         2007-07-08  Jim Meyering  <jim@meyering.net>
56147
56148         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56149         * build-aux/bootstrap (mam_template): Move definition out of loop.
56150
56151         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56152
56153         * build-aux/bootstrap (symlink_to_dir): Rename function from
56154         symlink_to_gnulib.  Add a directory parameter.  Update all
56155         callers.
56156         (cp_mark_as_generated): Also check for -- and link to -- files in
56157         gl/.
56158
56159         2007-07-08  Jim Meyering  <jim@meyering.net>
56160
56161         Adapt to deeper hierarchy in gnulib.
56162         * build-aux/bootstrap (symlink_to_dir): If the destination
56163         directory doesn't exist, create it. This is required at least for
56164         "lib/uniwidth/cjk.h".
56165
56166         2007-05-15  Jim Meyering  <jim@meyering.net>
56167
56168         * build-aux/bootstrap: Now that generated Makefile.am files
56169         are no longer under version control, they must be created at
56170         bootstrap time.
56171
56172 2007-08-14  Ben Pfaff  <blp@gnu.org>
56173
56174         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56175
56176 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56177
56178         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56179         given the changes below.
56180         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56181         even on hosts that have padding bits beyond the supported 64.
56182
56183 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56186         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56187         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56188         depends on it.
56189         (xstrtol_error): Remove.
56190         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56191         but with a different signature.
56192         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56193         * lib/xstrtol-error.c: Include exitfail.h.
56194         (xstrtol_fatal): New function, with a different signature from the
56195         old xstrtol_error, so that the caller need not worry about passing
56196         in an exit status, or about storage management of the option argument.
56197         (xstrtol_error): Now a static function.  Redo signature to
56198         implement xstrtol_fatal.  Output the correct number of hyphens in
56199         front of the option so that the caller need not worry about
56200         storage management.
56201         (N_): New macro.
56202         (_): Remove; not used now.
56203         * modules/xstrtol: Depend on getopt.
56204         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56205         of old STRTOL_FATAL_ERROR macro.
56206         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56207         of test program.
56208         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56209         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56210
56211 2007-08-08  Eric Blake  <ebb9@byu.net>
56212
56213         * lib/xstrtol-error.c: Add missing include.
56214
56215         Move xstrtol messages into gnulib domain, when --pobase is used.
56216         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56217         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56218         * modules/xstrtol (Files): Distribute new file.
56219         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56220         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56221         * tests/test-xstrtol.c: ...into new file.
56222         * tests/test-xstrtoul.c: Also test xstrtoul.
56223         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56224         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56225         * tests/test-xstrtol.sh: Drive the tests.
56226         * tests/test-xstrtoimax.sh: Likewise.
56227         * tests/test-xstrtoumax.sh: Likewise.
56228         * modules/xstrtol-tests: New module.
56229         * modules/xstrtoimax-tests: Likewise.
56230         * modules/xstrtoumax-tests: Likewise.
56231
56232 2007-08-08  Jim Meyering  <jim@meyering.net>
56233
56234         New function: mfile_name_concat.
56235         * lib/filenamecat.c (mfile_name_concat): New function, just like
56236         file_name_concat, but return NULL upon failure rather than exiting
56237         with a diagnostic.
56238         * lib/filenamecat.h: Declare it.
56239
56240 2007-08-07  Bruno Haible  <bruno@clisp.org>
56241
56242         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56243         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56244         warning from gcc.
56245         Reported by Eric Blake.
56246
56247 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56248
56249         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56250         * modules/crypto/arcfour (License): Likewise.
56251         * modules/crypto/des-tests (License): Likewise.
56252         * modules/crypto/gc-arctwo-tests (License): Likewise.
56253         * modules/crypto/gc-des-tests (License): Likewise.
56254         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56255         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56256         * modules/crypto/gc-md2-tests (License): Likewise.
56257         * modules/crypto/gc-md4-tests (License): Likewise.
56258         * modules/crypto/gc-md5-tests (License): Likewise.
56259         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56260         * modules/crypto/gc-rijndael-tests (License): Likewise.
56261         * modules/crypto/gc-sha1-tests (License): Likewise.
56262         * modules/crypto/gc-tests (License): Likewise.
56263         * modules/crypto/hmac-md5 (License): Likewise.
56264         * modules/crypto/hmac-sha1 (License): Likewise.
56265         * modules/crypto/md2-tests (License): Likewise.
56266         * modules/crypto/md4-tests (License): Likewise.
56267         * modules/crypto/md5 (License): Likewise.
56268         * modules/crypto/rijndael (License): Likewise.
56269         * modules/crypto/sha1 (License): Likewise.
56270         * modules/memxor (License): Likewise.
56271
56272 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56273         and Bruno Haible  <bruno@clisp.org>
56274
56275         * NEWS: Describe interface changes to human, xstrtol.
56276         * lib/human.h: Include <xstrtol.h>.
56277         (human_options): Return enum strtol_error, not int.  Remove
56278         bool arg; take int * instead.
56279         * lib/human.c: Don't include "gettext.h".
56280         (_): Remove; no longer used.
56281         Don't include <xstrtol.h>, since human.h does it.
56282         (human_options): Adjust to abovementioned interface changes.
56283         Do not report error to stderr; that's now the caller's
56284         responsibility.
56285         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56286         interface change.
56287         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56288         Str, Argument_type_string.  All uses changed.  Put " argument"
56289         in diagnostics to make them clearer.  Change wording of suffix
56290         message for clarity.
56291         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56292         Argument_type_string.
56293         (STRTOL_FATAL_WARN): Remove; no longer used.
56294         * modules/human (Depends-on): Remove gettext-h.
56295
56296 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56297
56298         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56299
56300 2007-07-31  Bruno Haible  <bruno@clisp.org>
56301
56302         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56303         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56304         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56305
56306 2007-07-31  Bruno Haible  <bruno@clisp.org>
56307
56308         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56309         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56310
56311 2007-07-30  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56314         * modules/c-ctype (License): Likewise.
56315         * modules/c-strcase (License): Likewise.
56316         * modules/check-version (License): Likewise.
56317         * modules/iconv (License): Likewise.
56318         * modules/iconv_open (License): Likewise.
56319         * modules/read-file (License): Likewise.
56320         * modules/striconv (License): Likewise.
56321         * modules/strverscmp (License): Likewise.
56322         * modules/vasprintf (License): Likewise.
56323         * modules/crypto/des (License): Likewise.
56324         * modules/crypto/gc (License): Likewise.
56325         * modules/crypto/gc-arcfour (License): Likewise.
56326         * modules/crypto/gc-arctwo (License): Likewise.
56327         * modules/crypto/gc-des (License): Likewise.
56328         * modules/crypto/gc-hmac-md5 (License): Likewise.
56329         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56330         * modules/crypto/gc-md2 (License): Likewise.
56331         * modules/crypto/gc-md4 (License): Likewise.
56332         * modules/crypto/gc-md5 (License): Likewise.
56333         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56334         * modules/crypto/gc-random (License): Likewise.
56335         * modules/crypto/gc-rijndael (License): Likewise.
56336         * modules/crypto/gc-sha1 (License): Likewise.
56337         * modules/crypto/md2 (License): Likewise.
56338         * modules/crypto/md4 (License): Likewise.
56339
56340 2007-07-30  Jim Meyering  <jim@meyering.net>
56341
56342         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56343         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56344         it has valid stat data.  This bug would cause du not to count the
56345         sizes of inaccessible directories.
56346         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56347         in <http://bugzilla.redhat.com/250077>.
56348
56349 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56350             Bruno Haible  <bruno@clisp.org>
56351
56352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56353         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56354         #include_next, gives a diagnostic about it, but reports no error in
56355         the exit code.
56356         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56357
56358 2007-07-24  Ben Pfaff  <blp@gnu.org>
56359
56360         Improve name: "count-one-bits" is better than "popcount".
56361         * MODULES.html.sh: Update name.
56362         * lib/popcount.h: Renamed lib/count-one-bits.h.
56363         (popcount): Renamed count_one_bits.
56364         (popcountl): Renamed count_one_bits_l.
56365         (popcountll): Renamed count_one_bits_ll.
56366         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56367         * modules/popcount: Renamed module/count-one-bits.
56368         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56369         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56370
56371 2007-07-23  Ben Pfaff  <blp@gnu.org>
56372
56373         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56374         better code generation, and add U to large constants to avoid
56375         warnings, in non-GCC case.
56376         Suggested by Bruno Haible.
56377
56378 2007-07-23  Ben Pfaff  <blp@gnu.org>
56379
56380         * lib/popcount.h: Use verify_true instead of if...abort.
56381         * modules/popcount: Depend on verify module.
56382         Suggested by Jim Meyering.
56383
56384 2007-07-23  Bruno Haible  <bruno@clisp.org>
56385
56386         * gnulib-tool (func_import): Create a .cvsignore file also when the
56387         directory is not yet in CVS but the toplevel directory is. When
56388         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56389         Reported by Karl Berry.
56390
56391 2007-07-22  Ben Pfaff  <blp@gnu.org>
56392
56393         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56394         case.
56395         Suggested by Eric Blake.
56396
56397 2007-07-22  Ben Pfaff  <blp@gnu.org>
56398
56399         New module: popcount.
56400         * MODULES.html.sh: Add popcount.
56401         * modules/popcount: New file.
56402         * modules/popcount-tests: New file.
56403         * tests/test-popcount.c: New file.
56404         * lib/popcount.h: New file.
56405         * m4/popcount.m4: New file.
56406
56407 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56408
56409         * build-aux/announce-gen: Update to GPLv3.
56410
56411         * build-aux/config.guess: Update from config.
56412
56413 2007-07-21  Bruno Haible  <bruno@clisp.org>
56414
56415         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56416         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56417
56418 2007-07-20  Jim Meyering  <jim@meyering.net>
56419
56420         * check-module: Diagnose a self-dependency.
56421
56422 2007-07-19  Bruno Haible  <bruno@clisp.org>
56423
56424         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56425         empty.
56426         Reported by Eric Blake.
56427
56428 2007-07-18  Bruno Haible  <bruno@clisp.org>
56429
56430         * gnulib-tool: New options --po-base, --po-domain.
56431         (func_usage): Document them.
56432         (pobase, po_domain): New variables.
56433         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56434         DEFAULT_TEXT_DOMAIN.
56435         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56436         (func_import): Consider pobase and po_domain. Create a po/ directory.
56437         (func_create_testdir): Set pobase and po_domain to empty.
56438         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56439         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56440
56441 2007-07-18  Bruno Haible  <bruno@clisp.org>
56442
56443         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56444         EXTRA_DIST augmentation for files in build-aux/.
56445
56446 2007-07-16  Bruno Haible  <bruno@clisp.org>
56447
56448         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56449         * modules/getdelim (License): Likewise.
56450
56451 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56452
56453         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56454         * modules/d-type (License): Likewise.
56455         * modules/extensions (License): Likewise.
56456         * modules/fnmatch (License): Likewise.
56457         * modules/fseeko (License): Likewise.
56458         * modules/getaddrinfo (License): Likewise.
56459         * modules/getline (License): Likewise.
56460         * modules/getlogin_r (License): Likewise.
56461         * modules/getpass (License): Likewise.
56462         * modules/gettimeofday (License): Likewise.
56463         * modules/glob (License): Likewise.
56464         * modules/inet_ntop (License): Likewise.
56465         * modules/malloc (License): Likewise.
56466         * modules/malloca (License): Likewise.
56467         * modules/memmem (License): Likewise.
56468         * modules/mempcpy (License): Likewise.
56469         * modules/memset (License): Likewise.
56470         * modules/minmax (License): Likewise.
56471         * modules/mktime (License): Likewise.
56472         * modules/netinet_in (License): Likewise.
56473         * modules/pathmax (License): Likewise.
56474         * modules/poll (License): Likewise.
56475         * modules/regex (License): Likewise.
56476         * modules/snprintf (License): Likewise.
56477         * modules/stdbool (License): Likewise.
56478         * modules/stdint (License): Likewise.
56479         * modules/stdio (License): Likewise.
56480         * modules/strcase (License): Likewise.
56481         * modules/strcasestr (License): Likewise.
56482         * modules/strdup (License): Likewise.
56483         * modules/string (License): Likewise.
56484         * modules/strndup (License): Likewise.
56485         * modules/strnlen (License): Likewise.
56486         * modules/strpbrk (License): Likewise.
56487         * modules/strptime (License): Likewise.
56488         * modules/strsep (License): Likewise.
56489         * modules/sys_select (License): Likewise.
56490         * modules/sys_socket (License): Likewise.
56491         * modules/sys_stat (License): Likewise.
56492         * modules/sys_time (License): Likewise.
56493         * modules/time (License): Likewise.
56494         * modules/time_r (License): Likewise.
56495         * modules/timegm (License): Likewise.
56496         * modules/unistd (License): Likewise.
56497         * modules/vsnprintf (License): Likewise.
56498         * modules/wctype (License): Likewise.
56499
56500 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56501
56502         * modules/argz (License): LGPLv2+.
56503
56504 2007-07-15  Karl Berry  <karl@gnu.org>
56505
56506         * doc/gnulib.texi: revise node structure per new fdl.texi.
56507
56508 2007-07-14  Bruno Haible  <bruno@clisp.org>
56509
56510         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56511         the output file.
56512         * lib/uniname/uninames.h: Regenerated.
56513
56514 2007-07-14  Karl Berry  <karl@gnu.org>
56515
56516         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56517         omitting sectioning and index commands.
56518
56519 2007-07-13  Bruno Haible  <bruno@clisp.org>
56520
56521         New gnulib-tool option --more-symlinks.
56522         * gnulib-tool (func_usage): Document --more-symlinks.
56523         (do_copyrights): New variable.
56524         Recognize option --more-symlinks.
56525         (func_import): Don't add a copyright notice transform to
56526         sed_transform_lib_file if do_copyrights is empty.
56527
56528 2007-07-13  Bruno Haible  <bruno@clisp.org>
56529
56530         * lib/vasnprintf.c (decimal_point_char): Define also if
56531         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56532         && !NEED_PRINTF_DIRECTIVE_A.
56533         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56534         Gary V. Vaughan <gary@gnu.org>.
56535
56536 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56537
56538         * lib/inttypes_.h: Undo previous change, since it was fixed
56539         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56540
56541 2007-07-13  Bruno Haible  <bruno@clisp.org>
56542
56543         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56544         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56545
56546 2007-07-13  Jim Meyering  <jim@meyering.net>
56547
56548         df: Don't fail for Tru64's "file-on-file mount".
56549         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56550         so we fall through and use statfs instead.  Details here:
56551         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56552         Reported by Albert Chin.
56553
56554 2007-07-13  Bruno Haible  <bruno@clisp.org>
56555
56556         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56557         * modules/configmake (License): Likewise.
56558         * modules/gettext (License): Likewise.
56559         * modules/gettext-h (License): Likewise.
56560         * modules/include_next (License): Likewise.
56561         * modules/link-warning (License): Likewise.
56562         * modules/localcharset (License): Likewise.
56563         * modules/localename (License): Likewise.
56564         * modules/lock (License): Likewise.
56565         * modules/relocatable-lib-lgpl (License): Likewise.
56566         * modules/size_max (License): Likewise.
56567         * modules/vasnprintf (License): Likewise.
56568         * modules/wchar (License): Likewise.
56569         * modules/xsize (License): Likewise.
56570
56571 2007-07-13  Bruno Haible  <bruno@clisp.org>
56572
56573         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56574         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56575
56576 2007-07-12  Bruno Haible  <bruno@clisp.org>
56577
56578         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56579         in the modules files.
56580
56581 2007-07-11  Karl Berry  <karl@gnu.org>
56582
56583         * MODULES.html.sh (func_module): use
56584          sed -e '\|^'"${includefile}"'$|d'
56585          instead of /.../d, to avoid errors on $includefile's containing /.
56586
56587 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56588
56589         * gnulib-tool (func_import): Avoid duplication of --avoid
56590         statements
56591         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56592         names to `_' in variable names.
56593
56594 2007-07-10  Eric Blake  <ebb9@byu.net>
56595
56596         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56597         * NEWS: Document this change.
56598
56599 2007-07-08  Bruno Haible  <bruno@clisp.org>
56600
56601         Update to Unicode 5.0.
56602         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56603         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56604         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56605         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56606         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56607         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56608         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56609         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56610         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56611         U+10A3F, U+1D242..U+1D244.
56612         (nonspacing_table_ind): Update.
56613         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56614         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56615
56616 2007-07-08  Bruno Haible  <bruno@clisp.org>
56617
56618         Update to Unicode 5.0.
56619         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56620         code transform. Extend the name index field of unicode_name_to_code and
56621         unicode_code_to_name from 16 to 24 bits.
56622         * lib/uniname/uniname.c (unicode_character_name,
56623         unicode_name_character): Add the range 0x12xxx to the code transform.
56624         * lib/uniname/uninames.h: Regenerated.
56625         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56626
56627 2007-07-07  Bruno Haible  <bruno@clisp.org>
56628
56629         * modules/wcwidth-tests: New file.
56630         * tests/test-wcwidth.c: New file.
56631
56632         Work around MacOS X wcwidth() bug.
56633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56634         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56635         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56636         original wcwidth in non-UTF-8 locales.
56637         * modules/wcwidth (Depends-on): Add localcharset, streq,
56638         uniwidth/width.
56639         * doc/functions/wcwidth.texi: Update.
56640
56641 2007-07-07  Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56644         (wcwidth): New declaration.
56645         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56646         macros.
56647         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56648         here. Prepare for creating <wchar.h> unconditionally.
56649         * modules/wchar (Depends-on): Add link-warning.
56650         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56651         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56652         * lib/wcwidth.h: Remove file.
56653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56654         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56655         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56656         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56657         (Include): Replace wcwidth.h with <wchar.h>.
56658         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56659         * lib/mbchar.h: Don't include wcwidth.h.
56660         * lib/mbswidth.c: Likewise.
56661         * NEWS: Mention the change.
56662
56663 2007-07-07  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56666         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56667         definition with an external declaration.
56668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56669         defined as a function. Remove AC_C_INLINE requirement.
56670         * modules/wcwidth (Files): Add lib/wcwidth.c.
56671         (Makefile.am): Remove redundant statement.
56672
56673 2007-07-07  Bruno Haible  <bruno@clisp.org>
56674
56675         * MODULES.html.sh (Unicode string functions): Add the new modules.
56676
56677         * tests/uniwidth/test-u32-strwidth.c: New file.
56678         * modules/uniwidth/u32-strwidth-tests: New file.
56679
56680         * lib/uniwidth/u32-strwidth.c: New file.
56681         * modules/uniwidth/u32-strwidth: New file.
56682
56683         * tests/uniwidth/test-u16-strwidth.c: New file.
56684         * modules/uniwidth/u16-strwidth-tests: New file.
56685
56686         * lib/uniwidth/u16-strwidth.c: New file.
56687         * modules/uniwidth/u16-strwidth: New file.
56688
56689         * tests/uniwidth/test-u8-strwidth.c: New file.
56690         * modules/uniwidth/u8-strwidth-tests: New file.
56691
56692         * lib/uniwidth/u8-strwidth.c: New file.
56693         * modules/uniwidth/u8-strwidth: New file.
56694
56695         * tests/uniwidth/test-u32-width.c: New file.
56696         * modules/uniwidth/u32-width-tests: New file.
56697
56698         * lib/uniwidth/u32-width.c: New file.
56699         * modules/uniwidth/u32-width: New file.
56700
56701         * tests/uniwidth/test-u16-width.c: New file.
56702         * modules/uniwidth/u16-width-tests: New file.
56703
56704         * lib/uniwidth/u16-width.c: New file.
56705         * modules/uniwidth/u16-width: New file.
56706
56707         * tests/uniwidth/test-u8-width.c: New file.
56708         * modules/uniwidth/u8-width-tests: New file.
56709
56710         * lib/uniwidth/u8-width.c: New file.
56711         * modules/uniwidth/u8-width: New file.
56712
56713         * tests/uniwidth/test-uc_width.c: New file.
56714         * modules/uniwidth/width-tests: New file.
56715
56716         * lib/uniwidth/width.c: New file, from GNU libiconv.
56717         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56718         * modules/uniwidth/width: New file.
56719
56720         * lib/uniwidth.h: New file, from GNU libiconv.
56721         * modules/uniwidth/base: New file.
56722
56723 2007-07-07  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/uniname.h: New file, from GNU gettext.
56726         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56727         * lib/uniname/uninames.h: New file, from GNU gettext.
56728         * lib/uniname/uniname.c: New file, from GNU gettext.
56729         * tests/uniname/test-uninames.sh: New file.
56730         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56731         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56732         * modules/uniname/base: New file.
56733         * modules/uniname/uniname: New file.
56734         * modules/uniname/uniname-tests: New file.
56735         * MODULES.html.sh (Unicode string functions): Add the new modules.
56736
56737 2007-07-06  Bruno Haible  <bruno@clisp.org>
56738
56739         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56740
56741 2007-07-06  Bruno Haible  <bruno@clisp.org>
56742
56743         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56744         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56745         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56746         include <sys/time.h>.
56747         Reported by Eric Blake.
56748
56749 2007-07-06  Eric Blake  <ebb9@byu.net>
56750
56751         Fix testing canonicalize on cygwin.
56752         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56753         Revert patch from 2007-06-19.
56754         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56755         canonicalize module is also in use.
56756         * tests/test-canonicalize.c: New file.
56757         * tests/test-canonicalize.sh: Likewise.
56758         * modules/canonicalize-tests: Likewise.
56759
56760 2007-07-06  Jim Meyering  <jim@meyering.net>
56761
56762         * lib/getugroups.c (getugroups): Detect getgrent failure.
56763         Adjust comment to reflect reality: this function may return -1.
56764
56765 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56766
56767         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56768         the new TP address.
56769         (usage): Fix typo
56770         (gnulib_mk): New variable.
56771
56772 2007-07-05  Jim Meyering  <jim@meyering.net>
56773
56774         Don't let endgrent clobber errno, no matter how improbable.
56775         * lib/getugroups.c (getugroups): Save and restore errno around
56776         endgrent call.
56777
56778         Close the group DB even when failing with 2^31 or more members.
56779         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56780
56781 2007-07-04  Jim Meyering  <jim@meyering.net>
56782
56783         * lib/getugroups.h: New file.
56784         * lib/getugroups.c: Include "getugroups.h".
56785         Remove uses of "register" keyword.
56786         Move local variable, "cp", down into scope where used.
56787         Give "username" parameter the "const" attribute.
56788         * modules/getugroups (Files): Add lib/getugroups.h
56789
56790 2007-07-04  Karl Berry  <karl@gnu.org>
56791
56792         * MODULES.html.sh (func_all_modules): Complete rename of
56793         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56794
56795 2007-07-02  Bruno Haible  <bruno@clisp.org>
56796
56797         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56798         mode, when inttypes.h comes from gnulib.
56799         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56800
56801 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56802
56803         * NEWS: Mention lgpl module name change.
56804
56805         * modules/lgpl-2.1: Renamed from lgpl.
56806
56807         * NEWS: Mention gpl module name change.
56808
56809         * modules/gpl-3.0: New file, based on gpl-2.0.
56810
56811         * modules/gpl-2.0: Renamed from gpl.
56812
56813         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56814         doc/gpl-2.0.texi.
56815
56816 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56817
56818         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56819         #define __STDC_LIMIT_MACROS temporarily while including
56820         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56821         Problem reported by Joel E. Denny in
56822         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56823
56824 2007-07-01  Bruno Haible  <bruno@clisp.org>
56825
56826         * lib/unistdio.h: New file.
56827         * lib/unistdio/u-asnprintf.h: New file.
56828         * lib/unistdio/u-asprintf.h: New file.
56829         * lib/unistdio/u-printf-args.c: New file.
56830         * lib/unistdio/u-printf-args.h: New file.
56831         * lib/unistdio/u-printf-parse.h: New file.
56832         * lib/unistdio/u-snprintf.h: New file.
56833         * lib/unistdio/u-sprintf.h: New file.
56834         * lib/unistdio/u-vasprintf.h: New file.
56835         * lib/unistdio/u-vsnprintf.h: New file.
56836         * lib/unistdio/u-vsprintf.h: New file.
56837         * lib/unistdio/ulc-asnprintf.c: New file.
56838         * lib/unistdio/ulc-asprintf.c: New file.
56839         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56840         * lib/unistdio/ulc-printf-parse.c: New file.
56841         * lib/unistdio/ulc-snprintf.c: New file.
56842         * lib/unistdio/ulc-sprintf.c: New file.
56843         * lib/unistdio/ulc-vasnprintf.c: New file.
56844         * lib/unistdio/ulc-vasprintf.c: New file.
56845         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56846         * lib/unistdio/ulc-vsnprintf.c: New file.
56847         * lib/unistdio/ulc-vsprintf.c: New file.
56848         * lib/unistdio/u8-asnprintf.c: New file.
56849         * lib/unistdio/u8-asprintf.c: New file.
56850         * lib/unistdio/u8-printf-parse.c: New file.
56851         * lib/unistdio/u8-snprintf.c: New file.
56852         * lib/unistdio/u8-sprintf.c: New file.
56853         * lib/unistdio/u8-vasnprintf.c: New file.
56854         * lib/unistdio/u8-vasprintf.c: New file.
56855         * lib/unistdio/u8-vsnprintf.c: New file.
56856         * lib/unistdio/u8-vsprintf.c: New file.
56857         * lib/unistdio/u8-u8-asnprintf.c: New file.
56858         * lib/unistdio/u8-u8-asprintf.c: New file.
56859         * lib/unistdio/u8-u8-snprintf.c: New file.
56860         * lib/unistdio/u8-u8-sprintf.c: New file.
56861         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56862         * lib/unistdio/u8-u8-vasprintf.c: New file.
56863         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56864         * lib/unistdio/u8-u8-vsprintf.c: New file.
56865         * lib/unistdio/u16-asnprintf.c: New file.
56866         * lib/unistdio/u16-asprintf.c: New file.
56867         * lib/unistdio/u16-printf-parse.c: New file.
56868         * lib/unistdio/u16-snprintf.c: New file.
56869         * lib/unistdio/u16-sprintf.c: New file.
56870         * lib/unistdio/u16-vasnprintf.c: New file.
56871         * lib/unistdio/u16-vasprintf.c: New file.
56872         * lib/unistdio/u16-vsnprintf.c: New file.
56873         * lib/unistdio/u16-vsprintf.c: New file.
56874         * lib/unistdio/u16-u16-asnprintf.c: New file.
56875         * lib/unistdio/u16-u16-asprintf.c: New file.
56876         * lib/unistdio/u16-u16-snprintf.c: New file.
56877         * lib/unistdio/u16-u16-sprintf.c: New file.
56878         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56879         * lib/unistdio/u16-u16-vasprintf.c: New file.
56880         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56881         * lib/unistdio/u16-u16-vsprintf.c: New file.
56882         * lib/unistdio/u32-asnprintf.c: New file.
56883         * lib/unistdio/u32-asprintf.c: New file.
56884         * lib/unistdio/u32-printf-parse.c: New file.
56885         * lib/unistdio/u32-snprintf.c: New file.
56886         * lib/unistdio/u32-sprintf.c: New file.
56887         * lib/unistdio/u32-vasnprintf.c: New file.
56888         * lib/unistdio/u32-vasprintf.c: New file.
56889         * lib/unistdio/u32-vsnprintf.c: New file.
56890         * lib/unistdio/u32-vsprintf.c: New file.
56891         * lib/unistdio/u32-u32-asnprintf.c: New file.
56892         * lib/unistdio/u32-u32-asprintf.c: New file.
56893         * lib/unistdio/u32-u32-snprintf.c: New file.
56894         * lib/unistdio/u32-u32-sprintf.c: New file.
56895         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56896         * lib/unistdio/u32-u32-vasprintf.c: New file.
56897         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56898         * lib/unistdio/u32-u32-vsprintf.c: New file.
56899         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56900         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56901         * tests/unistdio/test-ulc-printf1.h: New file.
56902         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56903         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56904         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56905         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56906         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56907         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56908         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56909         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56910         * tests/unistdio/test-u8-asnprintf1.c: New file.
56911         * tests/unistdio/test-u8-asnprintf1.h: New file.
56912         * tests/unistdio/test-u8-printf1.h: New file.
56913         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56914         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56915         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56916         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56917         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56918         * tests/unistdio/test-u8-vasprintf1.c: New file.
56919         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56920         * tests/unistdio/test-u8-vsprintf1.c: New file.
56921         * tests/unistdio/test-u16-asnprintf1.c: New file.
56922         * tests/unistdio/test-u16-asnprintf1.h: New file.
56923         * tests/unistdio/test-u16-printf1.h: New file.
56924         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56925         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56926         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56927         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56928         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56929         * tests/unistdio/test-u16-vasprintf1.c: New file.
56930         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56931         * tests/unistdio/test-u16-vsprintf1.c: New file.
56932         * tests/unistdio/test-u32-asnprintf1.c: New file.
56933         * tests/unistdio/test-u32-asnprintf1.h: New file.
56934         * tests/unistdio/test-u32-printf1.h: New file.
56935         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56936         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56937         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56938         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56939         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56940         * tests/unistdio/test-u32-vasprintf1.c: New file.
56941         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56942         * tests/unistdio/test-u32-vsprintf1.c: New file.
56943         * modules/unistdio/base: New file.
56944         * modules/unistdio/u-printf-args: New file.
56945         * modules/unistdio/ulc-asnprintf: New file.
56946         * modules/unistdio/ulc-asprintf: New file.
56947         * modules/unistdio/ulc-fprintf: New file.
56948         * modules/unistdio/ulc-printf-parse: New file.
56949         * modules/unistdio/ulc-snprintf: New file.
56950         * modules/unistdio/ulc-sprintf: New file.
56951         * modules/unistdio/ulc-vasnprintf: New file.
56952         * modules/unistdio/ulc-vasprintf: New file.
56953         * modules/unistdio/ulc-vfprintf: New file.
56954         * modules/unistdio/ulc-vsnprintf: New file.
56955         * modules/unistdio/ulc-vsprintf: New file.
56956         * modules/unistdio/u8-asnprintf: New file.
56957         * modules/unistdio/u8-asprintf: New file.
56958         * modules/unistdio/u8-printf-parse: New file.
56959         * modules/unistdio/u8-snprintf: New file.
56960         * modules/unistdio/u8-sprintf: New file.
56961         * modules/unistdio/u8-vasnprintf: New file.
56962         * modules/unistdio/u8-vasprintf: New file.
56963         * modules/unistdio/u8-vsnprintf: New file.
56964         * modules/unistdio/u8-vsprintf: New file.
56965         * modules/unistdio/u8-u8-asnprintf: New file.
56966         * modules/unistdio/u8-u8-asprintf: New file.
56967         * modules/unistdio/u8-u8-snprintf: New file.
56968         * modules/unistdio/u8-u8-sprintf: New file.
56969         * modules/unistdio/u8-u8-vasnprintf: New file.
56970         * modules/unistdio/u8-u8-vasprintf: New file.
56971         * modules/unistdio/u8-u8-vsnprintf: New file.
56972         * modules/unistdio/u8-u8-vsprintf: New file.
56973         * modules/unistdio/u16-asnprintf: New file.
56974         * modules/unistdio/u16-asprintf: New file.
56975         * modules/unistdio/u16-printf-parse: New file.
56976         * modules/unistdio/u16-snprintf: New file.
56977         * modules/unistdio/u16-sprintf: New file.
56978         * modules/unistdio/u16-vasnprintf: New file.
56979         * modules/unistdio/u16-vasprintf: New file.
56980         * modules/unistdio/u16-vsnprintf: New file.
56981         * modules/unistdio/u16-vsprintf: New file.
56982         * modules/unistdio/u16-u16-asnprintf: New file.
56983         * modules/unistdio/u16-u16-asprintf: New file.
56984         * modules/unistdio/u16-u16-snprintf: New file.
56985         * modules/unistdio/u16-u16-sprintf: New file.
56986         * modules/unistdio/u16-u16-vasnprintf: New file.
56987         * modules/unistdio/u16-u16-vasprintf: New file.
56988         * modules/unistdio/u16-u16-vsnprintf: New file.
56989         * modules/unistdio/u16-u16-vsprintf: New file.
56990         * modules/unistdio/u32-asnprintf: New file.
56991         * modules/unistdio/u32-asprintf: New file.
56992         * modules/unistdio/u32-printf-parse: New file.
56993         * modules/unistdio/u32-snprintf: New file.
56994         * modules/unistdio/u32-sprintf: New file.
56995         * modules/unistdio/u32-vasnprintf: New file.
56996         * modules/unistdio/u32-vasprintf: New file.
56997         * modules/unistdio/u32-vsnprintf: New file.
56998         * modules/unistdio/u32-vsprintf: New file.
56999         * modules/unistdio/u32-u32-asnprintf: New file.
57000         * modules/unistdio/u32-u32-asprintf: New file.
57001         * modules/unistdio/u32-u32-snprintf: New file.
57002         * modules/unistdio/u32-u32-sprintf: New file.
57003         * modules/unistdio/u32-u32-vasnprintf: New file.
57004         * modules/unistdio/u32-u32-vasprintf: New file.
57005         * modules/unistdio/u32-u32-vsnprintf: New file.
57006         * modules/unistdio/u32-u32-vsprintf: New file.
57007         * modules/unistdio/ulc-asnprintf-tests: New file.
57008         * modules/unistdio/ulc-vasnprintf-tests: New file.
57009         * modules/unistdio/ulc-vasprintf-tests: New file.
57010         * modules/unistdio/ulc-vsnprintf-tests: New file.
57011         * modules/unistdio/ulc-vsprintf-tests: New file.
57012         * modules/unistdio/u8-asnprintf-tests: New file.
57013         * modules/unistdio/u8-vasnprintf-tests: New file.
57014         * modules/unistdio/u8-vasprintf-tests: New file.
57015         * modules/unistdio/u8-vsnprintf-tests: New file.
57016         * modules/unistdio/u8-vsprintf-tests: New file.
57017         * modules/unistdio/u16-asnprintf-tests: New file.
57018         * modules/unistdio/u16-vasnprintf-tests: New file.
57019         * modules/unistdio/u16-vasprintf-tests: New file.
57020         * modules/unistdio/u16-vsnprintf-tests: New file.
57021         * modules/unistdio/u16-vsprintf-tests: New file.
57022         * modules/unistdio/u32-asnprintf-tests: New file.
57023         * modules/unistdio/u32-vasnprintf-tests: New file.
57024         * modules/unistdio/u32-vasprintf-tests: New file.
57025         * modules/unistdio/u32-vsnprintf-tests: New file.
57026         * modules/unistdio/u32-vsprintf-tests: New file.
57027         * MODULES.html.sh (Unicode string functions): Add the new modules.
57028
57029 2007-07-01  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/sprintf.c (sprintf): Limit the available length estimation,
57032         to avoid address wraparound.
57033         * lib/vsprintf.c (vsprintf): Likewise.
57034         * modules/sprintf-posix (Dependencies): Add stdint.
57035         * modules/vsprintf-posix (Dependencies): Likewise.
57036
57037 2007-07-01  Bruno Haible  <bruno@clisp.org>
57038
57039         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57040         Windows PATH as well. Conservative double-quoting. Comments.
57041
57042 2007-07-01  Bruno Haible  <bruno@clisp.org>
57043             Eric Blake  <ebb9@byu.net>
57044             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57045
57046         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57047         empty components in $PATH, denoting '.'.
57048
57049 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57050
57051         * gnulib-tool: Fix indentation.
57052         (func_create_megatestdir): Likewise.
57053         Report by Bruno Haible.
57054
57055 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57056
57057         Sync from Automake.
57058         * build-aux/gnupload: Fix shell portability issues with for loops.
57059         Report by Karl Berry.
57060
57061 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57062
57063         * build-aux/maint.mk (POURL): Use translationproject.org.
57064
57065 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57066             Bruno Haible  <bruno@clisp.org>
57067
57068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57069         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57070         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57071         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57072         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57073
57074 2007-06-27  Bruno Haible  <bruno@clisp.org>
57075
57076         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57077         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57078
57079 2007-06-26  Karl Berry  <karl@gnu.org>
57080
57081         * MODULES.html.sh: remove xreadlink-with-size.
57082
57083 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57084
57085         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57086         method that I hope also handles the double-include problem noted
57087         by Bruno Haible in
57088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57089
57090 2007-06-23  Bruno Haible  <bruno@clisp.org>
57091
57092         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57093         Don't let the 'mostlyclean' target fail if the last subdirectory could
57094         not be removed.
57095         Reported by Karl Berry.
57096
57097 2007-06-23  Bruno Haible  <bruno@clisp.org>
57098
57099         * gnulib-tool (echo): Add a speedier workaround for ksh.
57100         * tests/test-echo.sh: Likewise.
57101
57102 2007-06-23  Bruno Haible  <bruno@clisp.org>
57103
57104         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57105         * tests/test-echo.sh: Likewise.
57106
57107 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57108
57109         * gnulib-tool (IFS): Initialize early, so we don't set it to
57110         empty later.
57111         (self_abspathname): Rewrite algorithm to set it, reindent.
57112         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57113         (func_create_megatestdir): Merge some sed scripts.
57114
57115 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57118         exposed by Sun Studio 11 cc on Solaris 8.
57119
57120 2007-06-22  Bruno Haible  <bruno@clisp.org>
57121
57122         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57123         backslashes.
57124         * tests/test-echo.sh: New file.
57125
57126 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57127
57128         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57129         simplify `sed_replace_build_aux' scripts, they are portable but
57130         echoing them with `echo' is not.
57131         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57132
57133 2007-06-21  Karl Berry  <karl@gnu.org>
57134
57135         * config/srclist.txt: guess we can't handle the licenses via
57136         srclist at the moment.
57137
57138 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57139
57140         * MODULES.html.sh: Add include_next.
57141         * modules/include_next: New file.
57142
57143 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57144
57145         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57146         INCLUDE_NEXT.
57147         (gl_CHECK_NEXT_HEADERS): New macro.
57148         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57149         the obsolescent gl_ABSOLUTE_HEADER.
57150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57151         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57152         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57153         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57154         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57155         * m4/math_h.m4 (gl_MATH_H): Likewise.
57156         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57157         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57158         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57159         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57160         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57161         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57162         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57167         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57168         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57169         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57170         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57171         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57172         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57173         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57174         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57175         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57176         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57177         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57178         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57179         * lib/float_.h: Likewise.
57180         * lib/inttypes_.h: Likewise.
57181         * lib/math_.h: Likewise.
57182         * lib/search_.h: Likewise.
57183         * lib/signal_.h: Likewise.
57184         * lib/stdint_.h: Likewise.
57185         * lib/stdio_.h: Likewise.
57186         * lib/stdlib_.h: Likewise.
57187         * lib/string_.h: Likewise.
57188         * lib/sys_stat_.h: Likewise.
57189         * lib/sys_time_.h: Likewise.
57190         * lib/time_.h: Likewise.
57191         * lib/unistd_.h: Likewise.
57192         * lib/wchar_.h: Likewise.
57193         * lib/wctype_.h: Likewise.
57194         * lib/dirent_.h: Likewise.
57195         * lib/iconv_.h: Likewise.
57196         * lib/locale_.h: Likewise.
57197         * lib/netinet_in_.h: Likewise.
57198         * lib/sys_select_.h: Likewise.
57199         * lib/sys_socket_.h: Likewise.
57200         * lib/sysexits_.h: Likewise.
57201         * modules/fcntl (Depends-on): Depend on include_next, not
57202         absolute_header.
57203         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57204         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57205         * modules/fchdir: Likewise.
57206         * modules/float: Likewise.
57207         * modules/iconv_open: Likewise.
57208         * modules/inttypes: Likewise.
57209         * modules/locale: Likewise.
57210         * modules/math: Likewise.
57211         * modules/netinet_in: Likewise.
57212         * modules/search: Likewise.
57213         * modules/signal: Likewise.
57214         * modules/stdint: Likewise.
57215         * modules/stdio: Likewise.
57216         * modules/stdlib: Likewise.
57217         * modules/string: Likewise.
57218         * modules/sys_select: Likewise.
57219         * modules/sys_socket: Likewise.
57220         * modules/sys_stat: Likewise.
57221         * modules/sys_time: Likewise.
57222         * modules/sysexits: Likewise.
57223         * modules/time: Likewise.
57224         * modules/unistd: Likewise.
57225         * modules/wchar: Likewise.
57226         * modules/wctype: Likewise.
57227         * modules/sys_stat: Change maintainer to "all".
57228         * modules/unistd: Likewise.
57229
57230 2007-06-20  Karl Berry  <karl@gnu.org>
57231
57232         * config/srclist.txt: track www changes in license files.
57233
57234 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57235
57236         * build-aux/bootstrap: Remove stray dot.
57237         Make sure build_aux settings are honored when linking
57238         gnulib_extra_files.
57239
57240 2007-06-19  Eric Blake  <ebb9@byu.net>
57241
57242         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57243         Allow compilation on cygwin.
57244
57245 2007-06-19  Jim Meyering  <jim@meyering.net>
57246
57247         xreadlink-with-size: Remove module.  No longer used.
57248         Ex-callers now use xreadlink or mreadlink-with-size.
57249         * modules/xreadlink-with-size: Remove module.
57250         * lib/xreadlink-with-size.c: Remove file.
57251         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57252         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57253         just before the function definition *is* accurate.
57254
57255         Eliminate one way canonicalize_filename_mode could exit.
57256         * lib/canonicalize.c (canonicalize_filename_mode):
57257         Use mreadlink_with_size, not xreadlink_with_size.
57258
57259 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57260
57261         Detect porting problems to FreeBSD/arm, which has time_t wider than
57262         long int.  Original problem reported for GNU diff by Xin Li in
57263         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57264         * modules/getdate (Depends-on): Add intprops, verify.
57265         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57266         is an integer type no wider than long int.
57267
57268 2007-06-18  Jim Meyering  <jim@meyering.net>
57269
57270         New module: mreadlink-with-size.
57271         * MODULES.html.sh: Add mreadlink-with-size.
57272         * modules/mreadlink-with-size: New module
57273         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57274         not xreadlink-with-size.
57275         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57276
57277 2007-06-16  Bruno Haible  <bruno@clisp.org>
57278
57279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57280         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57281         Reported by Gary V. Vaughan <gary@gnu.org>.
57282
57283 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57284
57285         Revamp lchown so that it lives in unistd.h where it belongs.
57286         * lib/lchown.h: Remove.
57287         * lib/dirchownmod.c: Don't include lib/lchown.h.
57288         * lib/fchownat.c: Likewise.
57289         * lib/openat.c: Likewise.
57290         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57291         does not follow symlinks.
57292         (EOPNOTSUPP): Define if not defined.
57293         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57294         is defined to 0.
57295         (lchown): New decl.
57296         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57297         Do not check for lchown decl.
57298         Set REPLACE_LCHOWN.
57299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57300         REPLACE_LCHOWN.
57301         * modules/chown: Make it clear it follows symlinks.
57302         * modules/lchown: Make it clear it doesn't follow symlinks.
57303         (Files): Remove lib/lchown.h
57304         (Depends-on): Add unistd.
57305         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57306         (Include): Include <unistd.h>, not "lchown.h".
57307         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57308         REPLACE_LCHOWN.
57309
57310 2007-06-15  Jim Meyering  <jim@meyering.net>
57311
57312         Change license (GPL to LGPL) of fsusage and dependents.
57313         * modules/fsusage (License): Change to LGPL.
57314         * modules/full-read (License): Likewise.
57315         * modules/full-write (License): Likewise.
57316         * modules/safe-read (License): Likewise.
57317         * modules/safe-write (License): Likewise.
57318
57319 2007-06-14  Ben Pfaff  <blp@gnu.org>
57320
57321         Missing part of allocsa -> malloca transition.
57322         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57323         gl_MALLOCA.
57324
57325 2007-06-12  Bruno Haible  <bruno@clisp.org>
57326
57327         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57328         to ia64, x86_64, i386.
57329         Reported by Eric Blake.
57330
57331 2007-06-12  Bruno Haible  <bruno@clisp.org>
57332
57333         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57334         cross-compiling to x86_64.
57335
57336 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57337
57338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57339         glitch reported by Ralf Wildenhues in
57340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57341
57342         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57343         Vin Shelton.
57344
57345 2007-06-11  Bruno Haible  <bruno@clisp.org>
57346
57347         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57348         replacement string.
57349         Reported by Eric Blake.
57350
57351 2007-06-10  Bruno Haible  <bruno@clisp.org>
57352
57353         Prepare vasnprintf code for use with Unicode strings.
57354         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57355         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57356         TYPE_U32_STRING.
57357         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57358         a_u32_string variants.
57359         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57360         * lib/printf-args.c: Don't include config.h and the specification
57361         header if PRINTF_FETCHARGS is already defined.
57362         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57363         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57364         TYPE_U16_STRING, TYPE_U32_STRING.
57365         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57366         u16_directive, u16_directives, u32_directive, u32_directives): New
57367         types.
57368         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57369         New declarations.
57370         * lib/printf-parse.c: Don't include config.h and the specification
57371         header if PRINTF_PARSE is already defined. Eliminate the set of
57372         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57373         them now. Include c-ctype.h.
57374         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57375         directive and CHAR_T_ONLY_ASCII.
57376         * lib/vasnprintf.c: Don't include config.h and the specification header
57377         if VASNPRINTF is already defined.
57378         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57379         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57380         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57381         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57382         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57383         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57384         code accordingly.
57385         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57386         pad_ourselves also in this case, with the 'c' and 's' directives, and
57387         with a different notion of "width".
57388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57389
57390 2007-06-10  Bruno Haible  <bruno@clisp.org>
57391
57392         * modules/unistr/u32-mbsnlen: New file.
57393         * lib/unistr/u32-mbsnlen.c: New file.
57394
57395         * modules/unistr/u16-mbsnlen: New file.
57396         * lib/unistr/u16-mbsnlen.c: New file.
57397
57398         * modules/unistr/u8-mbsnlen: New file.
57399         * lib/unistr/u8-mbsnlen.c: New file.
57400
57401         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57402         declarations.
57403
57404 2007-06-10  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/string_.h (mbsnlen): New declaration.
57407         * lib/mbsnlen.c: New file.
57408         * m4/mbsnlen.m4: New file.
57409         * modules/mbsnlen: New file.
57410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57411         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57412         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57413
57414 2007-06-10  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57417
57418 2007-06-10  Bruno Haible  <bruno@clisp.org>
57419
57420         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57421         * lib/mbuiter.h: Likewise.
57422
57423 2007-06-10  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57426         declaration.
57427
57428 2007-06-10  Karl Berry  <karl@gnu.org>
57429
57430         * config/srclist.txt: remove gettext entries, Bruno prefers
57431         to update individually.
57432
57433 2007-06-10  Bruno Haible  <bruno@clisp.org>
57434
57435         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57436         'maxlen'. Ensure only length + width bytes are allocated, not
57437         length + 1 + width.
57438
57439 2007-06-09  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57442         (CHAR_T): Remove macro.
57443         (VASNPRINTF): Update.
57444
57445 2007-06-09  Bruno Haible  <bruno@clisp.org>
57446
57447         * MODULES.html.sh (Unicode string functions): Add the new modules.
57448
57449         * modules/uniconv/u32-conv-to-enc: New file.
57450         * lib/uniconv/u32-conv-to-enc.c: New file.
57451         * modules/uniconv/u32-conv-to-enc-tests: New file.
57452         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57453
57454         * modules/uniconv/u16-conv-to-enc: New file.
57455         * lib/uniconv/u16-conv-to-enc.c: New file.
57456         * lib/uniconv/u-conv-to-enc.h: New file.
57457         * modules/uniconv/u16-conv-to-enc-tests: New file.
57458         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57459
57460         * modules/uniconv/u8-conv-to-enc: New file.
57461         * lib/uniconv/u8-conv-to-enc.c: New file.
57462         * modules/uniconv/u8-conv-to-enc-tests: New file.
57463         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57464
57465         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57466         u32_conv_to_encoding): New declarations.
57467
57468 2007-06-09  Bruno Haible  <bruno@clisp.org>
57469
57470         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57471
57472 2007-06-09  Bruno Haible  <bruno@clisp.org>
57473
57474         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57475         * modules/malloca: Renamed from modules/allocsa, updated.
57476         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57477         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57478         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57479         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57480         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57481         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57482         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57483         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57484         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57485         * modules/c-strcasestr (Depends-on): Update.
57486         * lib/c-strcasestr.c: Update.
57487         * modules/c-strstr (Depends-on): Update.
57488         * lib/c-strstr.c: Update.
57489         * modules/canonicalize-lgpl (Depends-on): Update.
57490         * lib/canonicalize-lgpl.c: Update.
57491         * modules/clean-temp (Depends-on): Update.
57492         * lib/clean-temp.c: Update.
57493         * modules/csharpcomp (Depends-on): Update.
57494         * lib/csharpcomp.c: Update.
57495         * modules/csharpexec (Depends-on): Update.
57496         * lib/csharpexec.c: Update.
57497         * modules/javacomp (Depends-on): Update.
57498         * lib/javacomp.c: Update.
57499         * modules/javaexec (Depends-on): Update.
57500         * lib/javaexec.c: Update.
57501         * modules/mbscasestr (Depends-on): Update.
57502         * lib/mbscasestr.c: Update.
57503         * modules/mbsstr (Depends-on): Update.
57504         * lib/mbsstr.c: Update.
57505         * modules/setenv (Depends-on): Update.
57506         * lib/setenv.c: Update.
57507         * modules/strcasestr (Depends-on): Update.
57508         * lib/strcasestr.c: Update.
57509         * modules/striconveha (Depends-on): Update.
57510         * lib/striconveha.c: Update.
57511         * modules/relocatable-prog-wrapper (Files): Update.
57512         * lib/relocwrapper.c: Update.
57513         * build-aux/install-reloc: Update.
57514         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57515
57516 2007-06-08  Bruno Haible  <bruno@clisp.org>
57517
57518         Port to uClibc.
57519         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57520         * lib/fpurge.c (fpurge): Likewise.
57521         * lib/freading.c (freading): Likewise.
57522         * lib/fseeko.c (rpl_fseeko): Likewise.
57523         * lib/fseterr.c (fseterr): Likewise.
57524         * lib/fwriting.c (fwriting): Likewise.
57525         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57526
57527 2007-06-08  Bruno Haible  <bruno@clisp.org>
57528
57529         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57530         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57531         * modules/gettext (Files): Add m4/intlmacosx.m4.
57532
57533 2007-06-07  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/localename-tests: New file.
57536         * tests/test-localename.c: New file.
57537
57538         New module 'localename'.
57539         * lib/localename.h: New file.
57540         * lib/localename.c: New file, from GNU gettext.
57541         * m4/localename.m4: New file.
57542         * modules/localename: New file.
57543
57544 2007-06-07  Bruno Haible  <bruno@clisp.org>
57545
57546         Work around the lack of <wchar.h> on some builds of uClibc.
57547         * doc/headers/wchar.texi: Update.
57548         * lib/wchar_.h: Include <wchar.h> only if it exists.
57549         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57550         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57551         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57552         doesn't exist.
57553         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57554         * modules/mbfile (Depends-on): Add wchar.
57555         * modules/mbiter (Depends-on): Likewise.
57556         * modules/mbuiter (Depends-on): Likewise.
57557         Reported by Simon Josefsson.
57558
57559 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57560
57561         Work around problem reported by Steven M. Schweda in
57562         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57563         Tru64 5.1B with the Compaq compiler environment installed declares
57564         an 'isblank' function but does not define it in the C library.
57565         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57566         * lib/regex_internal.h (isblank): Likewise.
57567         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57568         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57569
57570 2007-06-05  Bruno Haible  <bruno@clisp.org>
57571
57572         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57573         ia64.
57574         * modules/printf-safe: New file.
57575         * modules/fprintf-posix (Depends-on): Add printf-safe.
57576         * modules/printf-posix (Depends-on): Likewise.
57577         * modules/snprintf-posix (Depends-on): Likewise.
57578         * modules/sprintf-posix (Depends-on): Likewise.
57579         * modules/vasnprintf-posix (Depends-on): Likewise.
57580         * modules/vasprintf-posix (Depends-on): Likewise.
57581         * modules/vfprintf-posix (Depends-on): Likewise.
57582         * modules/vprintf-posix (Depends-on): Likewise.
57583         * modules/vsnprintf-posix (Depends-on): Likewise.
57584         * modules/vsprintf-posix (Depends-on): Likewise.
57585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57586         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57587         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57588         "no" on i386, x86_64, ia64.
57589         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57590         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57591         on i386, x86_64, ia64.
57592         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57593         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57594         on i386, x86_64, ia64.
57595         * tests/test-vasnprintf-posix.c: Include float.h.
57596         (LDBL80_WORDS): New macro.
57597         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57598         on i386, x86_64, ia64.
57599         * tests/test-vasprintf-posix.c: Include float.h.
57600         (LDBL80_WORDS): New macro.
57601         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57602         on i386, x86_64, ia64.
57603         * tests/test-snprintf-posix.c: Include float.h.
57604         * tests/test-sprintf-posix.c: Likewise.
57605         * tests/test-vsnprintf-posix.c: Likewise.
57606         * tests/test-vsprintf-posix.c: Likewise.
57607
57608 2007-06-05  Bruno Haible  <bruno@clisp.org>
57609
57610         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57611         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57612         non-IEEE numbers on i386, x86_64, ia64.
57613         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57614         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57615         * tests/test-isnanl.h: Include float.h.
57616         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57617
57618 2007-06-05  Bruno Haible  <bruno@clisp.org>
57619
57620         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57621         also the %a / %A. Handle the %a / %A code before this extra handling.
57622
57623 2007-06-05  Bruno Haible  <bruno@clisp.org>
57624
57625         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57626         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57627
57628 2007-06-05  Bruno Haible  <bruno@clisp.org>
57629
57630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57631         typo in variable name.
57632
57633 2007-06-05  Eric Blake  <ebb9@byu.net>
57634
57635         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57636         Reported by Simon Josefsson.
57637
57638 2007-06-04  Bruno Haible  <bruno@clisp.org>
57639
57640         Avoid test failures on some PowerPC platforms.
57641         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57642         Define differently for PowerPC.
57643         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57644         Reported by Gary V. Vaughan <gary@gnu.org>.
57645
57646 2007-06-02  Bruno Haible  <bruno@clisp.org>
57647
57648         Fix test-stdint failure on FreeBSD/ia64.
57649         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57650         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57651         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57652         * doc/headers/stdint.texi: Update.
57653
57654 2007-06-01  Bruno Haible  <bruno@clisp.org>
57655
57656         * tests/test-binary-io.c (main): Pass a third argument to open().
57657         Reported by Gary V. Vaughan <gary@gnu.org>.
57658
57659 2007-06-01  Bruno Haible  <bruno@clisp.org>
57660
57661         * doc/functions/frexpl.texi: Update for mingw.
57662
57663 2007-06-01  Bruno Haible  <bruno@clisp.org>
57664
57665         * tests/test-lseek.c (main): Disable test of errno for invalid third
57666         argument.
57667         * doc/functions/lseek.texi: Update.
57668         Reported by Gary V. Vaughan <gary@gnu.org>.
57669
57670 2007-05-28  Bruno Haible  <bruno@clisp.org>
57671
57672         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57673
57674 2007-05-31  Eric Blake  <ebb9@byu.net>
57675
57676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57677         cross compiling.
57678
57679 2007-05-30  Eric Blake  <ebb9@byu.net>
57680         and Bruno Haible  <bruno@clisp.org>
57681
57682         Work around mingw test failures exposed by m4-1.4.9b.
57683         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57684         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57685         moment.
57686
57687 2007-05-30  Bruno Haible  <bruno@clisp.org>
57688
57689         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57690         assuming that they are closed. Needed on HP-UX 11.
57691
57692 2007-05-29  Bruno Haible  <bruno@clisp.org>
57693
57694         Fix a problem with #include_next.
57695         * lib/dirent_.h: Split the double-inclusion guard.
57696         * lib/fcntl_.h: Likewise.
57697         * lib/float_.h: Likewise.
57698         * lib/iconv_.h: Likewise.
57699         * lib/inttypes_.h: Likewise.
57700         * lib/locale_.h: Likewise.
57701         * lib/math_.h: Likewise.
57702         * lib/netinet_in_.h: Likewise.
57703         * lib/search_.h: Likewise.
57704         * lib/signal_.h: Likewise.
57705         * lib/stdint_.h: Likewise.
57706         * lib/stdio_.h: Likewise.
57707         * lib/stdlib_.h: Likewise.
57708         * lib/string_.h: Likewise.
57709         * lib/sys_select_.h: Likewise.
57710         * lib/sys_socket_.h: Likewise.
57711         * lib/sys_stat_.h: Likewise.
57712         * lib/sys_time_.h: Likewise.
57713         * lib/sysexits_.h: Likewise.
57714         * lib/time_.h: Likewise.
57715         * lib/unistd_.h: Likewise.
57716         * lib/wchar_.h: Likewise.
57717         * lib/wctype_.h: Likewise.
57718
57719 2007-05-29  Bruno Haible  <bruno@clisp.org>
57720
57721         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57722         for the moment.
57723
57724 2007-05-29  Bruno Haible  <bruno@clisp.org>
57725
57726         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57727         invocation.
57728         Reported by Eric Blake.
57729
57730 2007-05-29  Bruno Haible  <bruno@clisp.org>
57731
57732         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57733         compiling case.
57734
57735 2007-05-29  Eric Blake  <ebb9@byu.net>
57736             Bruno Haible  <bruno@clisp.org>
57737
57738         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57739         cross compiles.
57740
57741 2007-05-28  Eric Blake  <ebb9@byu.net>
57742
57743         * modules/closein-tests (test_closein_LDADD): Support test on
57744         cygwin with libtool.
57745
57746 2007-05-28  Bruno Haible  <bruno@clisp.org>
57747
57748         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57749         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57750         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57751         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57752         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57753         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57754         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57755         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57756         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57757
57758 2007-05-28  Eric Blake  <ebb9@byu.net>
57759
57760         Unconditionally include <config.h> in unit tests.
57761         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57762         * tests/test-allocsa.c, tests/test-arcfour.c,
57763         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57764         tests/test-array_list.c, tests/test-array_oset.c,
57765         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57766         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57767         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57768         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57769         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57770         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57771         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57772         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57773         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57774         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57775         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57776         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57777         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57778         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57779         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57780         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57781         test-md5.c, test-memmem.c, test-printf-posix.c,
57782         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57783         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57784         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57785         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57786         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57787         test-vasnprintf-posix2.c, test-vasnprintf.c,
57788         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57789         test-vfprintf-posix.c, test-vprintf-posix.c,
57790         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57791         test-xvasprintf.c: Likewise.
57792
57793 2007-05-28  Bruno Haible  <bruno@clisp.org>
57794
57795         * gnulib-tool (func_import): Remember the --with-tests command-line
57796         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57797         Reported by Eric Blake.
57798
57799 2007-05-28  Bruno Haible  <bruno@clisp.org>
57800
57801         * modules/ftell-tests: New file.
57802         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57803         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57804
57805         * lib/ftell.c: New file.
57806         * modules/ftell: New file.
57807         * m4/ftell.m4: New file.
57808         * doc/functions/ftell.texi: Update.
57809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57810         REPLACE_FTELL.
57811         * lib/stdio_.h (rpl_ftell): New declaration.
57812         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57813         REPLACE_FTELL.
57814
57815 2007-05-28  Eric Blake  <ebb9@byu.net>
57816
57817         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57818
57819 2007-05-28  Bruno Haible  <bruno@clisp.org>
57820
57821         * modules/fseek-tests: New file.
57822         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57823         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57824
57825         * lib/fseek.c: New file.
57826         * modules/fseek: New file.
57827         * m4/fseek.m4: New file.
57828         * doc/functions/fseek.texi: Update.
57829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57830         REPLACE_FSEEK.
57831         * lib/stdio_.h (rpl_fseek): New declaration.
57832         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57833         REPLACE_FSEEK.
57834
57835 2007-05-28  Bruno Haible  <bruno@clisp.org>
57836
57837         * lib/stdio_.h (fflush): More comments.
57838
57839 2007-05-28  Bruno Haible  <bruno@clisp.org>
57840
57841         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57842         runtime test.
57843
57844 2007-05-28  Eric Blake  <ebb9@byu.net>
57845
57846         Improve lseek module.
57847         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57848         * lib/unistd_.h (lseek): Scale back link warning message.
57849         * tests/test-lseek.c: Beef up test.
57850         * tests/test-lseek.sh: Exercise more facets of lseek.
57851         Reported by Bruno Haible.
57852
57853 2007-05-28  Bruno Haible  <bruno@clisp.org>
57854
57855         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57856         to define.
57857
57858 2007-05-27  Bruno Haible  <bruno@clisp.org>
57859
57860         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57861
57862 2007-05-27  Bruno Haible  <bruno@clisp.org>
57863
57864         * modules/openmp: New file.
57865         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57866         Noah Misch.
57867
57868 2007-05-26  Bruno Haible  <bruno@clisp.org>
57869
57870         * modules/chdir-long (Depends-on): Add fchdir.
57871         * modules/chdir-safer (Depends-on): Likewise.
57872         * modules/fts (Depends-on): Likewise.
57873         * modules/fts-lgpl (Depends-on): Likewise.
57874         * modules/openat (Depends-on): Likewise.
57875         * modules/savewd (Depends-on): Likewise.
57876
57877 2007-05-24  Eric Blake  <ebb9@byu.net>
57878
57879         Fix lseek on mingw.
57880         * modules/lseek: New module.
57881         * m4/lseek.m4: New file.
57882         * lib/lseek.c: New file.
57883         * modules/lseek-tests: New file.
57884         * tests/test-lseek.c: New file.
57885         * tests/test-lseek.sh: New file.
57886         * MODULES.html.sh: Document lseek module.
57887         * modules/fflush (Depends-on): Add lseek, fseeko.
57888         * modules/fseeko (Depends-on): Likewise.
57889         * modules/ftello (Depends-on): Likewise.
57890         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57891         broken.
57892         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57893         broken.
57894         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57895         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57896         * lib/ftello.c (rpl_ftello): Likewise.
57897         * tests/test-fseeko.c (main): Test this.
57898         * tests/test-fseeko.sh: Likewise.
57899         * tests/test-ftello.c (main): Likewise.
57900         * tests/test-ftello.sh: Likewise.
57901         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57902         implies replacing fseek.
57903         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57904         HAVE_FTELLO.
57905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57906         * modules/unistd (Makefile.am): Likewise.
57907         * lib/unistd_.h (lseek): Declare a replacement.
57908         * doc/functions/lseek.texi (lseek): Document this fix.
57909         * doc/functions/fseek.texi (fseek): Likewise.
57910         * doc/functions/ftell.texi (ftell): Likewise.
57911
57912 2007-05-24  Bruno Haible  <bruno@clisp.org>
57913
57914         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57915         in the printed representation of a NaN.
57916         * tests/test-vasprintf-posix.c (test_function): Likewise.
57917         * tests/test-snprintf-posix.h (test_function): Likewise.
57918         * tests/test-sprintf-posix.h (test_function): Likewise.
57919         Reported by Eric Blake.
57920
57921 2007-05-23  Eric Blake  <ebb9@byu.net>
57922
57923         Fix fseeko/ftello on cygwin 1.5.24.
57924         * doc/functions/fseeko.texi (fseeko): Document the fix.
57925         * doc/functions/ftello.texi (ftello): Document the fix.
57926         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57927         * doc/functions/stdout.text (stdout): New file.
57928         * doc/functions/stderr.text (stderr): New file.
57929         * doc/gnulib.texi (Function Substitutes): Use new files.
57930         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57931         prior to 1.7.0.
57932         * tests/test-ftello.c (main): Likewise for ftello.
57933         * tests/test-fseeko.sh: New file.
57934         * tests/test-ftello.sh: New file.
57935         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57936         with seekable stdin.
57937         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57938         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57939         (gl_REPLACE_FSEEKO): New macro.
57940         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57941         * modules/fseeko (Files): Distribute fseeko.c.
57942         * modules/ftello (Files): Distribute ftello.c.
57943         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57944         mode.
57945         * lib/ftello.c (rpl_ftello): New file.
57946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57947         fseeko, ftello.
57948         (gl_STDIN_LARGE_OFFSET): New macro.
57949         * modules/stdio (Makefile.am): Perform the replacement.
57950         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57951
57952 2007-05-23  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57955         GNULIB_POSIXCHECK is defined.
57956
57957 2007-05-21  Bruno Haible  <bruno@clisp.org>
57958
57959         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57960         Check also the output for NaN arguments. When cross-compiling, guess
57961         no on IRIX.
57962         * lib/vasnprintf.c: Update comments.
57963         * tests/test-vasnprintf-posix.c (strisnan): New function.
57964         (test_function): Use it.
57965         * tests/test-vasprintf-posix.c (strisnan): New function.
57966         (test_function): Use it.
57967         * tests/test-snprintf-posix.h (strisnan): New function.
57968         (test_function): Use it.
57969         * tests/test-sprintf-posix.h (strisnan): New function.
57970         (test_function): Use it.
57971         Reported by Eric Blake.
57972
57973 2007-05-20  Bruno Haible  <bruno@clisp.org>
57974
57975         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57976         numbers that fails on BeOS.
57977         * doc/functions/frexpl.texi: Update.
57978
57979 2007-05-20  Jim Meyering  <jim@meyering.net>
57980
57981         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57982         forced upon us by glibc-2.6.
57983
57984 2007-05-20  Bruno Haible  <bruno@clisp.org>
57985
57986         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57987         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57988         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57989         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57990         NEED_PRINTF_INFINITE.
57991         (is_infinitel): New function.
57992         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57994         gl_PREREQ_VASNPRINTF_INFINITE.
57995         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57997         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57998         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57999         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
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-20  Bruno Haible  <bruno@clisp.org>
58018
58019         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58020         was not found in libc.
58021         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58022
58023 2007-05-20  Bruno Haible  <bruno@clisp.org>
58024
58025         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58026         printed as "-nan" instead of "nan".
58027         * tests/test-vasprintf-posix.c (test_function): Likewise.
58028         * tests/test-snprintf-posix.h (test_function): Likewise.
58029         * tests/test-sprintf-posix.h (test_function): Likewise.
58030         Needed for HP-UX 11.
58031
58032 2007-05-20  Jim Meyering  <jim@meyering.net>
58033
58034         Fix buggy test for the fchownat-deref bug.
58035         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58036         symlink required for the run-test.  Without it, this test would
58037         always declare that fchownat doesn't work, and client code would
58038         unnecessarily use the replacement function with fixed libc.
58039         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58040         Reported by Greg Schafer.
58041
58042 2007-05-19  Bruno Haible  <bruno@clisp.org>
58043
58044         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58045         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58046         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58047         Needed for IRIX 6.5 and Solaris 2.5.1.
58048
58049 2007-05-19  Bruno Haible  <bruno@clisp.org>
58050
58051         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58052         (test_function): Skip tests involving -0.0 on platforms where
58053         -0.0 = 0.0.
58054         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58055         (test_function): Skip tests involving -0.0 on platforms where
58056         -0.0 = 0.0.
58057         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58058         (test_function): Skip tests involving -0.0 on platforms where
58059         -0.0 = 0.0.
58060         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58061         (test_function): Skip tests involving -0.0 on platforms where
58062         -0.0 = 0.0.
58063         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58064         tests.
58065         * tests/test-printf-posix.h (test_function): Likewise.
58066         * tests/test-printf-posix.output: Remove all -0.0 related results.
58067         Needed for IRIX 6.5.
58068
58069 2007-05-19  Bruno Haible  <bruno@clisp.org>
58070
58071         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58072         printed as "nan0x7fffffff" instead of "nan".
58073         * tests/test-vasprintf-posix.c (test_function): Likewise.
58074         * tests/test-snprintf-posix.h (test_function): Likewise.
58075         * tests/test-sprintf-posix.h (test_function): Likewise.
58076         * tests/test-fprintf-posix.h (NaN): Remove macro.
58077         (test_function): Remove all NaN related tests.
58078         * tests/test-printf-posix.h (NaN): Remove macro.
58079         (test_function): Remove all NaN related tests.
58080         * tests/test-printf-posix.output: Remove all NaN related results.
58081         Needed for IRIX 6.5.
58082
58083 2007-05-19  Bruno Haible  <bruno@clisp.org>
58084
58085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58087
58088 2007-05-19  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/float_.h: New file.
58091         * m4/float_h.m4: New file.
58092         * modules/float: New file.
58093         * modules/isnanl (Dependencies): Add float.
58094         * modules/isnanl-nolibm (Dependencies): Likewise.
58095         * modules/mathl (Dependencies): Likewise.
58096         * modules/printf-frexpl (Dependencies): Likewise.
58097         * modules/signbit (Dependencies): Likewise.
58098         * modules/vasnprintf (Dependencies): Likewise.
58099         * doc/headers/float.texi: Update.
58100
58101 2007-05-19  Jim Meyering  <jim@meyering.net>
58102
58103         * lib/utimens.c (gl_futimens): Rename from futimens,
58104         now that glibc-2.6 declares futimens.
58105         * lib/utimens.h: Likewise.
58106
58107 2007-05-19  Bruno Haible  <bruno@clisp.org>
58108
58109         Avoid test failures on mingw.
58110         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58111         * tests/test-printf-posix.sh: Likewise.
58112         * tests/test-vfprintf-posix.sh: Likewise.
58113         * tests/test-vprintf-posix.sh: Likewise.
58114
58115 2007-05-19  Bruno Haible  <bruno@clisp.org>
58116
58117         Fix *printf result for NaN, Inf, -0.0 on mingw.
58118         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58119         * lib/vasnprintf.c: Include math.h and isnan.h.
58120         (is_infinite_or_zero): New function.
58121         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58122         values in the %f, %F, %e, %E, %g, %G directives.
58123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58125         gl_PRINTF_INFINITE and test its result. Invoke
58126         gl_PREREQ_VASNPRINTF_INFINITE.
58127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58134         * doc/functions/fprintf.texi: Update.
58135         * doc/functions/printf.texi: Update.
58136         * doc/functions/snprintf.texi: Update.
58137         * doc/functions/sprintf.texi: Update.
58138         * doc/functions/vfprintf.texi: Update.
58139         * doc/functions/vprintf.texi: Update.
58140         * doc/functions/vsnprintf.texi: Update.
58141         * doc/functions/vsprintf.texi: Update.
58142
58143 2007-05-19  Bruno Haible  <bruno@clisp.org>
58144
58145         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58146         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58147         Instead of multiplying with 10^k, set extra_zeroes to k.
58148         (scale10_round_long_double): Remove function.
58149
58150 2007-05-18  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58153         introduced on 2007-05-06.
58154
58155 2007-05-18  Bruno Haible  <bruno@clisp.org>
58156
58157         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58158         %g directives.
58159         * tests/test-vasprintf-posix.c (test_function): Likewise.
58160         * tests/test-snprintf-posix.h (test_function): Likewise.
58161         * tests/test-sprintf-posix.h (test_function): Likewise.
58162
58163 2007-05-18  Bruno Haible  <bruno@clisp.org>
58164
58165         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58166         (strmatch): New function.
58167         (test_function): Test the %f directive on numbers of various exponents.
58168         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58169         (strmatch): New function.
58170         (test_function): Test the %f directive on numbers of various exponents.
58171         * tests/test-snprintf-posix.h (strmatch): New function.
58172         (test_function): Test the %f directive on numbers of various exponents.
58173         * tests/test-sprintf-posix.h (strmatch): New function.
58174         (test_function): Test the %f directive on numbers of various exponents.
58175         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58176         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58177         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58178         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58179
58180 2007-05-18  Bruno Haible  <bruno@clisp.org>
58181
58182         Add support for 'long double' number output.
58183         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58184         * lib/vasnprintf.c: Include math.h and float+.h.
58185         (mp_limb_t): New type.
58186         (GMP_LIMB_BITS): New macro.
58187         (mp_twolimb_t): New type.
58188         (GMP_TWOLIMB_BITS): New macro.
58189         (mpn_t): New type.
58190         (multiply, divide, convert_to_decimal, decode_long_double,
58191         scale10_round_long_double, scale10_round_decimal_long_double,
58192         floorlog10l): New functions.
58193         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58194         for the %f, %F, %e, %E, %g, %G directives.
58195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58197         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58198         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58202         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58203         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58204         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58205         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58206         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58207         * modules/snprintf-posix (Depends-on): Likewise.
58208         * modules/sprintf-posix (Depends-on): Likewise.
58209         * modules/vasnprintf-posix (Depends-on): Likewise.
58210         * modules/vasprintf-posix (Depends-on): Likewise.
58211         * modules/vfprintf-posix (Depends-on): Likewise.
58212         * modules/vsnprintf-posix (Depends-on): Likewise.
58213         * modules/vsprintf-posix (Depends-on): Likewise.
58214         * modules/vasnprintf (Files): Add lib/float+.h.
58215         * doc/functions/fprintf.texi: Update.
58216         * doc/functions/printf.texi: Update.
58217         * doc/functions/snprintf.texi: Update.
58218         * doc/functions/sprintf.texi: Update.
58219         * doc/functions/vfprintf.texi: Update.
58220         * doc/functions/vprintf.texi: Update.
58221         * doc/functions/vsnprintf.texi: Update.
58222         * doc/functions/vsprintf.texi: Update.
58223
58224 2007-05-18  Bruno Haible  <bruno@clisp.org>
58225
58226         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58227
58228 2007-05-18  Bruno Haible  <bruno@clisp.org>
58229
58230         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58231         for printing 64-bit integers. Needed for mingw.
58232
58233 2007-05-18  Bruno Haible  <bruno@clisp.org>
58234
58235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58236         gl_FUNC_FREXPL_WORKS.
58237         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58238
58239 2007-05-18  Bruno Haible  <bruno@clisp.org>
58240
58241         * modules/frexpl-nolibm-tests: New file.
58242
58243         * modules/frexpl-nolibm: New file.
58244         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58245
58246 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58247
58248         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58249         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58250         GCC 4.2, which otherwise issues a lot of warnings.
58251         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58252         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58253         Likewise.
58254         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58255         * modules/iconv_open (iconv.h): Likewise.
58256         * modules/locale (locale.h): Likewise.
58257         * modules/netinet_in (netinet/in.h): Likewise.
58258         * modules/sys_select (sys_select.h): Likewise.
58259         * modules/sys_socket (sys/socket.h): Likewise.
58260         * modules/sys_stat (sys/stat.h): Likewise.
58261         * modules/sysexits (sysexits.h): Likewise.
58262         * modules/unistd (unistd.h): Likewise.
58263
58264 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58265
58266         * modules/closein-tests (Makefile.am): Distribute
58267         `test-closein.sh'.
58268
58269 2007-05-17  Bruno Haible  <bruno@clisp.org>
58270
58271         * tests/test-printf-posix.output: Renamed from
58272         tests/test-fprintf-posix.out.
58273         * modules/fprintf-posix-tests: Update.
58274         * modules/printf-posix-tests: Update.
58275         * modules/vfprintf-posix-tests: Update.
58276         * modules/vprintf-posix-tests: Update.
58277         * tests/test-fprintf-posix.sh: Update.
58278         * tests/test-printf-posix.sh: Update.
58279         * tests/test-vfprintf-posix.sh: Update.
58280         * tests/test-vprintf-posix.sh: Update.
58281         Reported by Ralf Wildenhues.
58282
58283 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58284
58285         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58286         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58287         GCC 4.2, which otherwise issues a lot of warnings.
58288         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58289         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58290         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58291         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58292         it should no longer be needed.
58293         * lib/string_.h: Likewise.
58294         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58295         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58296         * modules/inttypes (inttypes.h): Likewise.
58297         * modules/math (math.h): Likewise.
58298         * modules/search (search.h): Likewise.
58299         * modules/signal (signal.h): Likewise.
58300         * modules/stdint (stdint.h): Likewise.
58301         * modules/stdio (stdio.h): Likewise.
58302         * modules/stdlib (stdlib.h): Likewise.
58303         * modules/string (string.h): Likewise.
58304         * modules/sys_time (sys/time.h): Likewise.
58305         * modules/time (time.h): Likewise.
58306         * modules/wchar (wchar.h): Likewise.
58307         * modules/wctype (wtype.h): Likewise.
58308
58309 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58310
58311         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58312
58313 2007-05-13  Bruno Haible  <bruno@clisp.org>
58314
58315         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58316         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58317         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58318         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58319         (gl_PREREQ_STRTOK_R): Don't require it here.
58320
58321 2007-05-13  Bruno Haible  <bruno@clisp.org>
58322
58323         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58324         when used in C++ mode.
58325
58326 2007-05-12  Bruno Haible  <bruno@clisp.org>
58327
58328         * lib/linebuffer.h: Tweak doc.
58329         * lib/linebuffer.c: Likewise.
58330
58331 2007-05-12  James Youngman  <jay@gnu.org>
58332
58333         * lib/linebuffer.c (readlinebuffer_delim): New function,
58334         like readlinebuffer, but use a caller-specified delimiter.
58335         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58336         as the delimiter.
58337         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58338
58339 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58340
58341         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58342         * modules/openat (Files): Remove openat-die.c.
58343         (Depends-on): Add openat-die.
58344         * modules/openat-die: New module.
58345
58346 2007-05-06  Bruno Haible  <bruno@clisp.org>
58347
58348         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58349         Update with info about Cygwin.
58350         * doc/functions/fprintf.texi: Update.
58351         * doc/functions/printf.texi: Update.
58352         * doc/functions/snprintf.texi: Update.
58353         * doc/functions/sprintf.texi: Update.
58354         * doc/functions/vfprintf.texi: Update.
58355         * doc/functions/vprintf.texi: Update.
58356         * doc/functions/vsnprintf.texi: Update.
58357         * doc/functions/vsprintf.texi: Update.
58358         Reported by Eric Blake.
58359
58360 2007-05-06  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58363         padding ourselves for the floating-point directives.
58364         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58367         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58368         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58370         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58376         * tests/test-snprintf-posix.h (test_function): Also check the width
58377         and some flags in the %f directive.
58378         * tests/test-sprintf-posix.h (test_function): Likewise.
58379         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58380         * tests/test-vasprintf-posix.c (test_function): Likewise.
58381         * doc/functions/fprintf.texi: Update.
58382         * doc/functions/printf.texi: Update.
58383         * doc/functions/snprintf.texi: Update.
58384         * doc/functions/sprintf.texi: Update.
58385         * doc/functions/vfprintf.texi: Update.
58386         * doc/functions/vprintf.texi: Update.
58387         * doc/functions/vsnprintf.texi: Update.
58388         * doc/functions/vsprintf.texi: Update.
58389
58390 2007-05-06  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58393         pass the ' flag character to sprintf or snprintf.
58394         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58397         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58398         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58399         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58406         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58407         flag.
58408         * tests/test-sprintf-posix.h (test_function): Likewise.
58409         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58410         * tests/test-vasprintf-posix.c (test_function): Likewise.
58411         * doc/functions/fprintf.texi: Update.
58412         * doc/functions/printf.texi: Update.
58413         * doc/functions/snprintf.texi: Update.
58414         * doc/functions/sprintf.texi: Update.
58415         * doc/functions/vfprintf.texi: Update.
58416         * doc/functions/vprintf.texi: Update.
58417         * doc/functions/vsnprintf.texi: Update.
58418         * doc/functions/vsprintf.texi: Update.
58419
58420 2007-05-01  Bruno Haible  <bruno@clisp.org>
58421
58422         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58423
58424 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58425
58426         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58427         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58428
58429 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58430
58431         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58432         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58434
58435 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58436
58437         * lib/argp-help.c (struct hol_entry): New member `ord'.
58438         (HOL_ENTRY_PTRCMP): Use ord for comparison
58439         (hol_sort): Initialize ord.
58440
58441 2007-05-01  Bruno Haible  <bruno@clisp.org>
58442
58443         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58444         Reported by Eric Blake.
58445         * doc/gnulib.texi (Function Substitutes): Update.
58446
58447 2007-05-01  Bruno Haible  <bruno@clisp.org>
58448
58449         * doc/functions.texi: Remove file, now redundant through
58450         doc/functions/*.texi.
58451
58452 2007-05-01  Bruno Haible  <bruno@clisp.org>
58453
58454         * modules/argp (Depends-on): Add sleep.
58455
58456 2007-05-01  Bruno Haible  <bruno@clisp.org>
58457
58458         * modules/sleep-tests: New file.
58459         * tests/test-sleep.c: New file.
58460
58461         * modules/sleep: New file.
58462         * lib/sleep.c: New file.
58463         * m4/sleep.m4: New file.
58464         * lib/unistd_.h (sleep): New declaration.
58465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58466         HAVE_SLEEP.
58467         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58468         * doc/functions/sleep.texi: Document the sleep module.
58469
58470 2007-05-01  Bruno Haible  <bruno@clisp.org>
58471
58472         * lib/sigprocmask.h: Remove file.
58473         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58474         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58475         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58476         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58477         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58478         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58479         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58480         HAVE_SIGSET_T as a shell variable.
58481         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58482         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58483         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58484         (Depends-on): Add signal. Remove verify.
58485         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58486         (Include): Mention <signal.h> instead of sigprocmask.h.
58487         * NEWS: Mention the change.
58488         * lib/fatal-signal.c: Don't include sigprocmask.h.
58489
58490 2007-05-01  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/signal: New file.
58493         * lib/signal_.h: New file.
58494         * m4/signal_h.m4: New file.
58495
58496 2007-05-01  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58499         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58500         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58501         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58502
58503 2007-05-01  Bruno Haible  <bruno@clisp.org>
58504
58505         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58506         configure time.
58507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58508         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58509         * modules/sys_stat (Makefile.am): Substitute their values into
58510         sys/stat.h.
58511
58512 2007-05-01  Bruno Haible  <bruno@clisp.org>
58513
58514         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58515         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58516         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58517
58518 2007-05-01  Bruno Haible  <bruno@clisp.org>
58519
58520         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58521         'assert' module here.
58522
58523 2007-05-01  Bruno Haible  <bruno@clisp.org>
58524
58525         * doc/functions/*.texi: New files.
58526         * doc/functions/google-ranking.txt: New file.
58527         * doc/gnulib.texi (Function Substitutes): New chapter.
58528         (ctime, inet_ntoa): Remove sections.
58529         * doc/ctime.texi: Remove file.
58530         * doc/inet_ntoa.texi: Remove file.
58531         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58532         dependencies.
58533         (%.info): New rule, specifying a --reference-limit.
58534
58535 2007-05-01  Bruno Haible  <bruno@clisp.org>
58536
58537         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58538
58539 2007-05-01  Bruno Haible  <bruno@clisp.org>
58540
58541         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58542         the portability of 'mkdir' to mingw systems.
58543
58544 2007-05-01  Bruno Haible  <bruno@clisp.org>
58545
58546         * doc/headers/google-ranking.txt: New file.
58547
58548 2007-04-30  Eric Blake  <ebb9@byu.net>
58549
58550         Prefer fseeko to fseek.
58551         * modules/getpass (Depends-on): Add fseeko.
58552         * lib/getpass.c (getpass): Use fseeko, not fseek.
58553
58554 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58555
58556         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58557         assumes the sorting is stable, while most qsort implementations
58558         are not.  Use argument addresses to ensure they never compare as
58559         equal.
58560
58561         * tests/test-argp-2.sh (usage-indent test): Fix output
58562         (func_compare): Restore diff options
58563         * tests/test-argp.c: Restore #include "progname.h"
58564
58565 2007-04-29  Bruno Haible  <bruno@clisp.org>
58566
58567         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58569         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58571         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58572         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58573         (TESTS, check_PROGRAMS): Add test-snprintf.
58574         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58575         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58576         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58577         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58578         assertions that fail on HP-UX, OSF/1, or IRIX.
58579         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58580
58581 2007-04-29  Bruno Haible  <bruno@clisp.org>
58582
58583         * MODULES.html.sh (posix_functions): Remove 'contents'.
58584
58585 2007-04-29  Karl Berry  <karl@gnu.org>
58586
58587         * config/srclist.txt (gendocs_template_min): new entry.
58588
58589 2007-04-29  Bruno Haible  <bruno@clisp.org>
58590
58591         Work around fpurge bug on BSD systems.
58592         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58593         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58594         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58595         fpurge to rpl_fpurge if the system already has this function.
58596         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58597         the case where the system already has this function. Correct invariants
58598         on BSD systems.
58599         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58600         BSD systems.
58601
58602 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58603
58604         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58605         proposed by Sven Verdoolaege.
58606
58607         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58608         options.
58609         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58610         (usage and help tests): Update
58611
58612 2007-04-29  Bruno Haible  <bruno@clisp.org>
58613
58614         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58615         Print more information in case of failure. Disable a test on BeOS.
58616
58617 2007-04-29  Bruno Haible  <bruno@clisp.org>
58618
58619         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58620         This helps debugging on systems on which no gdb is available.
58621
58622 2007-04-29  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/freading.h: Improve comments.
58625         * lib/fwriting.h: Likewise.
58626         * tests/test-freading.c (main): Don't check freading immediately after
58627         repositioning. Needed for glibc.
58628
58629 2007-04-29  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/freading.c (freading): Trivial simplification.
58632
58633 2007-04-28  Bruno Haible  <bruno@clisp.org>
58634
58635         * tests/test-fwriting.c (main): Also test the interaction between
58636         fflush and fwriting.
58637         * modules/fwriting-tests (Depends-on): Add fflush.
58638
58639         * tests/test-freading.c (main): Also test the interaction between
58640         fflush and freading.
58641         * modules/freading-tests (Depends-on): Add fflush.
58642
58643 2007-04-28  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58646         fseeko and ftello.
58647         Suggested by Eric Blake.
58648
58649 2007-04-28  Jim Meyering  <jim@meyering.net>
58650
58651         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58652         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58653         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58654
58655 2007-04-27  Eric Blake  <ebb9@byu.net>
58656
58657         * doc/headers/assert.texi (assert.h): Document assert module use.
58658
58659 2007-04-27  Bruno Haible  <bruno@clisp.org>
58660
58661         * doc/headers/*.texi: New files.
58662         * doc/gnulib.texi (Header File Substitutes): New chapter.
58663         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58664         dependencies.
58665         (standards.info ,standards.html, standards.dvi): Update dependencies.
58666         (mostlyclean, clean): New targets.
58667
58668 2007-04-27  Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58671         * modules/sysexits (Files, Makefile.am): Update.
58672
58673         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58674         * modules/sys_socket (Files, Makefile.am): Update.
58675
58676         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58677         * modules/sys_stat (Files, Makefile.am): Update.
58678
58679 2007-04-27  Eric Blake  <ebb9@byu.net>
58680
58681         * lib/freading.h: Improve comments.
58682         * lib/fwriting.h: Likewise.
58683         * lib/fflush.c: Likewise.
58684
58685         Fix closein for mingw.
58686         * modules/closein-tests: Add tests for closein.
58687         * tests/test-closein.c: New file.
58688         * tests/test-closein.sh: Likewise.
58689         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58690         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58691
58692 2007-04-27  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58695         version is < 6.
58696         * lib/math_.h [__DECC]: Likewise.
58697         * lib/stdio_.h [__DECC]: Likewise.
58698         * lib/stdlib_.h [__DECC]: Likewise.
58699         * lib/string_.h [__DECC]: Likewise.
58700         * lib/time_.h [__DECC]: Likewise.
58701         * lib/wchar_.h [__DECC]: Likewise.
58702         * lib/wctype_.h [__DECC]: Likewise.
58703
58704 2007-04-27  Bruno Haible  <bruno@clisp.org>
58705
58706         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58707
58708 2007-04-27  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/fflush.c: Add comments.
58711         * modules/fpurge-tests (Depends-on): Add fflush.
58712         * modules/freadable-tests (Depends-on): Likewise.
58713         * modules/fwritable-tests (Depends-on): Likewise.
58714
58715 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58716
58717         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58718         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58719         Report by Bruno Haible <bruno@clisp.org>.
58720
58721 2007-04-26  Eric Blake  <ebb9@byu.net>
58722
58723         Fix fflush on mingw.
58724         * modules/fflush (Depends-on): Add freading.
58725         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58726         but unread data.
58727
58728 2007-04-26  Eric Blake  <ebb9@byu.net>
58729         and Bruno Haible  <bruno@clisp.org>
58730
58731         Implement freading and fwriting.
58732         * lib/freading.c: New file.
58733         * lib/freading.h: Likewise.
58734         * m4/freading.m4: Likewise.
58735         * modules/freading: Likewise.
58736         * modules/freading-tests: Likewise.
58737         * tests/test-freading.c: Likewise.
58738         * lib/fwriting.c: New file.
58739         * lib/fwriting.h: Likewise.
58740         * m4/fwriting.m4: Likewise.
58741         * modules/fwriting: Likewise.
58742         * modules/fwriting-tests: Likewise.
58743         * tests/test-fwriting.c: Likewise.
58744         * MODULES.html.sh (File stream based Input/Output): Mention them.
58745
58746 2007-04-26  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58749         'long' when we assume it.
58750         Suggested by Eric Blake.
58751
58752 2007-04-26  Bruno Haible  <bruno@clisp.org>
58753
58754         Ensure fseeko, ftello are declared on glibc systems.
58755         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58756         * modules/fseeko (configure.ac-early): Likewise.
58757         * modules/ftello (configure.ac-early): Likewise.
58758         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58759         AC_FUNC_FSEEKO for this.
58760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58761         (gl_CHECK_FSEEKO): Remove macro.
58762
58763 2007-04-26  Bruno Haible  <bruno@clisp.org>
58764
58765         * tests/test-fflush.c (main): Also check the ftell result after
58766         fflush and fseek/fseeko.
58767         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58768         file descriptor position cache in the stream.
58769         * lib/fseeko.c (rpl_fseeko): Likewise.
58770
58771 2007-04-26  Bruno Haible  <bruno@clisp.org>
58772
58773         * modules/fflush-tests (Depends-on): Add fseeko.
58774
58775 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58776             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58777
58778         * lib/argz_.h: ensure error_t definition is obtained in same
58779         mechanism system argz.h would have.
58780         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58781         argz facilities are known bad.  Err on the side of caution if
58782         cross-compiling.
58783
58784 2007-04-25  Eric Blake  <ebb9@byu.net>
58785
58786         * lib/fpurge.c (includes): Use stdlib.h for free.
58787         * tests/test-fflush.c (main): Also test fflush-fseeko.
58788
58789 2007-04-25  Bruno Haible  <bruno@clisp.org>
58790
58791         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58792         * lib/fseeko.c: New file.
58793         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58794         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58795         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58796         gl_FUNC_FSEEKO.
58797         (gl_FUNC_FSEEKO): Invoke it.
58798         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58799         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58800         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58801
58802 2007-04-25  Bruno Haible  <bruno@clisp.org>
58803
58804         * modules/fflush (Depends-on): Add ftello.
58805
58806 2007-04-25  Bruno Haible  <bruno@clisp.org>
58807
58808         * modules/ftello-tests: New file.
58809         * tests/test-ftello.c: New file.
58810
58811         * modules/ftello: New file.
58812         * m4/ftello.m4: New file.
58813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58814         HAVE_FTELLO.
58815         * lib/stdio_.h (ftello): New declaration.
58816         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58817         HAVE_FTELLO.
58818
58819 2007-04-25  Bruno Haible  <bruno@clisp.org>
58820
58821         * modules/fseeko-tests: New file.
58822         * tests/test-fseeko.c: New file.
58823
58824         * modules/fseeko: New file.
58825         * m4/fseeko.m4: New file.
58826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58827         HAVE_FSEEKO.
58828         * lib/stdio_.h (fseeko): New declaration.
58829         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58830         HAVE_FSEEKO.
58831
58832 2007-04-25  Bruno Haible  <bruno@clisp.org>
58833
58834         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58835
58836 2007-04-25  Bruno Haible  <bruno@clisp.org>
58837
58838         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58839         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58840         * tests/test-unistd.c: Likewise.
58841         * tests/test-fcntl.c: Likewise.
58842
58843 2007-04-23  Eric Blake  <ebb9@byu.net>
58844
58845         * lib/fflush.c: Fix missing include.
58846         Reported by Bruno Haible.
58847
58848 2007-04-23  Bruno Haible  <bruno@clisp.org>
58849
58850         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58851         Reported by Eric Blake.
58852
58853 2007-04-23  Bruno Haible  <bruno@clisp.org>
58854
58855         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58856
58857 2007-04-23  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58860
58861 2007-04-23  Bruno Haible  <bruno@clisp.org>
58862
58863         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58864         Needed on HP-UX 11.
58865
58866 2007-04-16  Eric Blake  <ebb9@byu.net>
58867
58868         Make fflush rely on fpurge.
58869         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58870         open coding all variants.
58871         * modules/fflush (Depends-on): Add fpurge and unistd.
58872         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58873         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58874
58875         Fix --with-tests compilation on cygwin.
58876         * modules/argmatch-tests (Makefile.am): List gnulib library first
58877         in LDADD.
58878         * modules/argp-tests (Makefile.am): Likewise.
58879         * modules/array-list-tests (Makefile.am): Likewise.
58880         * modules/array-oset-tests (Makefile.am): Likewise.
58881         * modules/avltree-list-tests (Makefile.am): Likewise.
58882         * modules/avltree-oset-tests (Makefile.am): Likewise.
58883         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58884         * modules/carray-list-tests (Makefile.am): Likewise.
58885         * modules/dirname-tests (Makefile.am): Likewise.
58886         * modules/frexp-tests (Makefile.am): Likewise.
58887         * modules/isnanl-tests (Makefile.am): Likewise.
58888         * modules/linked-list-tests (Makefile.am): Likewise.
58889         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58890         * modules/lock-tests (Makefile.am): Likewise.
58891         * modules/rbtree-list-tests (Makefile.am): Likewise.
58892         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58893         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58894         * modules/tls-tests (Makefile.am): Likewise.
58895         * modules/tsearch-tests (Makefile.am): Likewise.
58896         * modules/xvasprintf-tests (Makefile.am): Likewise.
58897
58898         Fix fpurge for cygwin.
58899         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58900         value.
58901         * modules/fpurge-tests (Depends-on): Clean up trash.
58902
58903 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58904
58905         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58906
58907         * m4/autobuild.m4: Re-indent.
58908
58909 2007-04-13  Bruno Haible  <bruno@clisp.org>
58910
58911         * modules/fpurge-tests: New file.
58912         * tests/test-fpurge.c: New file.
58913
58914         * modules/fpurge: New file.
58915         * lib/fpurge.h: New file.
58916         * lib/fpurge.c: New file.
58917         * m4/fpurge.m4: New file.
58918
58919 2007-04-13  Bruno Haible  <bruno@clisp.org>
58920
58921         * modules/fbufmode-tests: New file.
58922         * tests/test-fbufmode.c: New file.
58923
58924         * modules/fbufmode: New file.
58925         * lib/fbufmode.h: New file.
58926         * lib/fbufmode.c: New file.
58927         * m4/fbufmode.m4: New file.
58928
58929 2007-04-13  Bruno Haible  <bruno@clisp.org>
58930
58931         * modules/fwritable-tests: New file.
58932         * tests/test-fwritable.c: New file.
58933
58934         * modules/fwritable: New file.
58935         * lib/fwritable.h: New file.
58936         * lib/fwritable.c: New file.
58937         * m4/fwritable.m4: New file.
58938
58939 2007-04-13  Bruno Haible  <bruno@clisp.org>
58940
58941         * modules/freadable-tests: New file.
58942         * tests/test-freadable.c: New file.
58943
58944         * modules/freadable: New file.
58945         * lib/freadable.h: New file.
58946         * lib/freadable.c: New file.
58947         * m4/freadable.m4: New file.
58948
58949 2007-04-13  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58952         MOSTLYCLEANFILES.
58953
58954 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58955
58956         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58957         gzip bootstrap.conf to avoid dragging in i18n machinery.
58958         (gnulib_tool_option): Use it.
58959
58960 2007-04-13  Bruno Haible  <bruno@clisp.org>
58961
58962         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58963         %F directives.
58964         * tests/test-vasprintf-posix.c (test_function): Likewise.
58965         * tests/test-snprintf-posix.h (test_function): Likewise.
58966         * tests/test-sprintf-posix.h (test_function): Likewise.
58967         * tests/test-fprintf-posix.h (test_function): Likewise.
58968         * tests/test-printf-posix.h (test_function): Likewise.
58969         * tests/test-fprintf-posix.out: Likewise.
58970
58971 2007-04-13  Bruno Haible  <bruno@clisp.org>
58972
58973         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58974         * modules/tls-tests (configure.ac): Likewise.
58975         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58976
58977 2007-04-13  Bruno Haible  <bruno@clisp.org>
58978
58979         * lib/tls.c (glthread_tls_get): Fix return type.
58980         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58981
58982 2007-04-12  Eric Blake  <ebb9@byu.net>
58983
58984         * modules/gettime (Depends-on): Remove gettime.
58985         Reported by Dmitry V. Levin.
58986
58987 2007-04-12  Bruno Haible  <bruno@clisp.org>
58988
58989         * modules/fflush (Include): Mention <stdio.h>.
58990         * modules/strtoimax (Include): Mention <inttypes.h>.
58991         * modules/strtoumax (Include): Likewise.
58992
58993 2007-04-12  Eric Blake  <ebb9@byu.net>
58994
58995         * .cvsignore: New file.
58996         * .gitignore: Likewise.
58997
58998 2007-04-12  Bruno Haible  <bruno@clisp.org>
58999
59000         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59001         not before, since $(LDADD) often contains libgnu.a.
59002         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59003         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59004         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59005         Needed on Cygwin.
59006
59007 2007-04-12  Eric Blake  <ebb9@byu.net>
59008
59009         Work around glibc's failure to flush stdin on fclose.
59010         * lib/closein.c (close_stdin): Flush stdin before closing.
59011
59012         Work around glibc's failure to reset seekable stdin on exit.
59013         * modules/closein: New module.
59014         * lib/closein.c: New file.
59015         * lib/closein.h: Likewise.
59016         * m4/closein.m4: Likewise.
59017         * MODULES.html.sh (File stream based Input/Output): Document it.
59018
59019 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59020
59021         * gnulib-tool: Rename generated 'autobuild' script to
59022         'do-autobuild' in --create-megatestdir output.
59023
59024         * doc/gnulib.texi (Build robot for gnulib): Fix.
59025
59026 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59027
59028         * modules/sysexits (Depends-on): Add absolute-header.
59029
59030 2007-04-12  Eric Blake  <ebb9@byu.net>
59031
59032         No need to preserve errno on success.
59033         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59034         Reported by Bruno Haible.
59035
59036 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59037
59038         * MODULES.html.sh (Support for maintaining and releasing
59039         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59040
59041 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59042
59043         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59044
59045 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59046
59047         * modules/autobuild: New module.
59048
59049         * m4/autobuild.m4: New file.
59050
59051 2007-04-11  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59054         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59060         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59061         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59062         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59067         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59068         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59070         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59071         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59078         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59079         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59080         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59081         Reported by Eric Blake.
59082
59083 2007-04-11  Bruno Haible  <bruno@clisp.org>
59084
59085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59086
59087 2007-04-10  Bruno Haible  <bruno@clisp.org>
59088
59089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59090         for NaN and Infinity. Needed on FreeBSD 6.1.
59091         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59092         regarding results for "%010a" of Infinity and NaN.
59093         * tests/test-vasprintf-posix.c (test_function): Likewise.
59094         * tests/test-snprintf-posix.h (test_function): Likewise.
59095         * tests/test-sprintf-posix.h (test_function): Likewise.
59096         * tests/test-fprintf-posix.h (test_function): Likewise.
59097         * tests/test-printf-posix.h (test_function): Likewise.
59098         * tests/test-fprintf-posix.out: Likewise.
59099
59100 2007-04-10  Bruno Haible  <bruno@clisp.org>
59101
59102         * modules/locale-tests: New file.
59103         * tests/test-locale.c: New file.
59104
59105         * modules/locale: New file.
59106         * lib/locale_.h: New file.
59107         * m4/locale_h.m4: New file.
59108
59109 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59110             Bruno Haible  <bruno@clisp.org>
59111
59112         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59113         be determined, test for availability of the copysignf, copysign,
59114         copysignl functions.
59115         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59116         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59117         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59118
59119 2007-04-09  Eric Blake  <ebb9@byu.net>
59120
59121         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59122         * modules/stdio (Makefile.am): Support fflush.
59123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59124         * modules/fflush: New file.
59125         * lib/fflush.c: Likewise.
59126         * m4/fflush.m4: Likewise.
59127         * modules/fflush-tests: New test.
59128         * tests/test-fflush.c: Likewise.
59129         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59130
59131 2007-04-06  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59134         (VASNPRINTF): Use signbit for faster determination whether to print a
59135         minus sign.
59136         * modules/vasnprintf (Files): Remove lib/float+.h.
59137         * modules/fprintf-posix (Depends-on): Add signbit.
59138         * modules/snprintf-posix (Depends-on): Likewise.
59139         * modules/sprintf-posix (Depends-on): Likewise.
59140         * modules/vasnprintf-posix (Depends-on): Likewise.
59141         * modules/vasprintf-posix (Depends-on): Likewise.
59142         * modules/vfprintf-posix (Depends-on): Likewise.
59143         * modules/vsnprintf-posix (Depends-on): Likewise.
59144         * modules/vsprintf-posix (Depends-on): Likewise.
59145
59146 2007-04-06  Bruno Haible  <bruno@clisp.org>
59147
59148         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59149         * tests/test-frexpl.c (main): Likewise.
59150         * tests/test-ldexpl.c (main): Likewise.
59151         * modules/frexp-tests (Depends-on): Add signbit.
59152         * modules/frexpl-tests (Depdends-on): Likewise.
59153         * modules/ldexpl-tests (Depdends-on): Likewise.
59154
59155 2007-04-06  Bruno Haible  <bruno@clisp.org>
59156
59157         * modules/signbit-tests: New file.
59158         * tests/test-signbit.c: New file.
59159
59160         * modules/signbit: New file.
59161         * lib/signbitf.c: New file.
59162         * lib/signbitd.c: New file.
59163         * lib/signbitl.c: New file.
59164         * m4/signbit.m4: New file.
59165         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59166         (signbit): New macro.
59167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59168         REPLACE_SIGNBIT.
59169         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59170         REPLACE_FREXPL into math.h.
59171
59172 2007-04-06  Bruno Haible  <bruno@clisp.org>
59173
59174         * modules/isnanf-nolibm-tests: New file.
59175         * tests/test-isnanf.c: New file.
59176
59177         * modules/isnanf-nolibm: New file.
59178         * lib/isnanf.h: New file.
59179         * lib/isnanf.c: New file.
59180         * lib/isnan.c: Consider the USE_FLOAT macro.
59181         * m4/isnanf.m4: New file.
59182
59183 2007-04-06  Bruno Haible  <bruno@clisp.org>
59184
59185         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59186         (Link): New section.
59187
59188         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59189
59190 2007-04-06  Bruno Haible  <bruno@clisp.org>
59191
59192         Assume the 'long double' type.
59193         * m4/longdouble.m4: Remove file.
59194         * config/srclist.txt: Don't mention longdouble.m4.
59195         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59196         * lib/float+.h: Likewise.
59197         * lib/frexp.c: Likewise.
59198         * lib/printf-args.h: Likewise.
59199         * lib/printf-args.c: Likewise.
59200         * lib/printf-frexp.c: Likewise.
59201         * lib/printf-parse.c: Likewise.
59202         * lib/vasnprintf.c: Likewise.
59203         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59204         * m4/intl.m4: Likewise.
59205         * m4/isnanl.m4: Likewise.
59206         * m4/printf.m4: Likewise.
59207         * m4/printf-frexpl.m4: Likewise.
59208         * m4/vasnprintf.m4: Likewise.
59209         * modules/allocsa (Files): Remove m4/longdouble.m4.
59210         * modules/gettext (Files): Likewise.
59211         * modules/relocatable-prog-wrapper (Files): Likewise.
59212         * modules/vasnprintf (Files): Likewise.
59213         * modules/isnanl (Files): Likewise.
59214         (Include): Simplify.
59215         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59216         (Include): Simplify.
59217         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59218         (Include): Simplify.
59219         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59221         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59222         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59223         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59224         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59225         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59226         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59227         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59228         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59229         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59230         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59231         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59232         * tests/test-isnanl.c: Likewise.
59233         * tests/test-snprintf-posix.h: Likewise.
59234         * tests/test-sprintf-posix.h: Likewise.
59235         * tests/test-vasnprintf-posix.c: Likewise.
59236         * tests/test-vasnprintf-posix2.c: Likewise.
59237         * tests/test-vasprintf-posix.c: Likewise.
59238
59239 2007-04-06  Bruno Haible  <bruno@clisp.org>
59240
59241         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59242         * lib/math_.h [__DECC]: Include the overridden include file through
59243         #include_next, outside the double-inclusion guard.
59244         * lib/stdio_.h [__DECC]: Likewise.
59245         * lib/stdlib_.h [__DECC]: Likewise.
59246         * lib/string_.h [__DECC]: Likewise.
59247         * lib/time_.h [__DECC]: Likewise.
59248         * lib/wchar_.h [__DECC]: Likewise.
59249         * lib/wctype_.h [__DECC]: Likewise.
59250         * lib/inttypes_.h [__DECC]: Likewise.
59251         Reported by Albert Chin <china@thewrittenword.com> in
59252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59253
59254 2007-04-04  Eric Blake  <ebb9@byu.net>
59255
59256         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59257         1.5.x.
59258
59259 2007-04-04  Bruno Haible  <bruno@clisp.org>
59260
59261         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59262         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59263
59264 2007-04-04  Bruno Haible  <bruno@clisp.org>
59265
59266         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59267         results for "%010a" of Infinity and NaN.
59268         * tests/test-vasprintf-posix.c (test_function): Likewise.
59269         * tests/test-snprintf-posix.h (test_function): Likewise.
59270         * tests/test-sprintf-posix.h (test_function): Likewise.
59271         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59272         * tests/test-printf-posix.h (test_function): Likewise.
59273         * tests/test-fprintf-posix.out: Update.
59274         Needed for FreeBSD 6.1.
59275
59276 2007-04-04  Bruno Haible  <bruno@clisp.org>
59277
59278         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59279         directly used by the gnulib modules nor by gnulib-tool.
59280
59281 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * DEPENDENCIES: Give overall description of version dependency
59284         desirability.  Use more-typical names for apps.
59285         Add shell, coreutils, diffutils, grep, tar, gzip.
59286
59287 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59288
59289         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59290
59291 2007-04-04  Karl Berry  <karl@gnu.org>
59292
59293         * MODULES.html.sh (func_module): missing '.
59294
59295 2007-04-03  Bruno Haible  <bruno@clisp.org>
59296
59297         * modules/argmatch-tests (Makefile.am): New variable
59298         test_argmatch_LDADD.
59299         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59300         * modules/array-list-tests (Makefile.am): New variable
59301         test_array_list_LDADD.
59302         * modules/array-oset-tests (Makefile.am): New variable
59303         test_array_oset_LDADD.
59304         * modules/avltree-list-tests (Makefile.am): New variable
59305         test_avltree_list_LDADD.
59306         * modules/avltree-oset-tests (Makefile.am): New variable
59307         test_avltree_oset_LDADD.
59308         * modules/avltreehash-list-tests (Makefile.am): New variable
59309         test_avltreehash_list_LDADD.
59310         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59311         test_canonicalize_lgpl_LDADD.
59312         * modules/carray-list-tests (Makefile.am): New variable
59313         test_carray_list_LDADD.
59314         * modules/dirname-tests (Makefile.am): New variable
59315         test_dirname_LDADD.
59316         * modules/linked-list-tests (Makefile.am): New variable
59317         test_linked_list_LDADD.
59318         * modules/linkedhash-list-tests (Makefile.am): New variable
59319         test_linkedhash_list_LDADD.
59320         * modules/rbtree-list-tests (Makefile.am): New variable
59321         test_rbtree_list_LDADD.
59322         * modules/rbtree-oset-tests (Makefile.am): New variable
59323         test_rbtree_oset_LDADD.
59324         * modules/rbtreehash-list-tests (Makefile.am): New variable
59325         test_rbtreehash_list_LDADD.
59326         * modules/xvasprintf-tests (Makefile.am): New variable
59327         test_xvasprintf_LDADD.
59328         Reported by Eric Blake.
59329
59330 2007-04-03  Eric Blake  <ebb9@byu.net>
59331
59332         * DEPENDENCIES: Weaken m4 requirements.
59333
59334 2007-04-03  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59337         * modules/isnanl-tests (configure.ac): Likewise.
59338
59339 2007-04-03  Ben Pfaff  <blp@gnu.org>
59340
59341         * modules/iconv_open: Add $(srcdir)/ to source directory
59342         references in Makefile fragments that call gperf, to fix VPATH
59343         builds.
59344
59345 2007-04-03  Bruno Haible  <bruno@clisp.org>
59346
59347         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59348         * lib/ldexpl.c: Undo last change.
59349
59350 2007-04-03  Bruno Haible  <bruno@clisp.org>
59351
59352         * modules/printf-frexpl (Depends-on): Undo last change.
59353         (Files): Add m4/ldexpl.m4.
59354
59355 2007-04-03  Bruno Haible  <bruno@clisp.org>
59356
59357         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59358         * modules/isnanl (Link): New section.
59359
59360         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59361         * modules/frexp (Link): New section.
59362
59363         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59364         * modules/frexpl (Link): New section.
59365
59366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59367         * modules/ldexpl (Link): New section.
59368
59369 2007-04-03  Bruno Haible  <bruno@clisp.org>
59370
59371         * modules/TEMPLATE-EXTENDED: New file.
59372         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59373
59374 2007-04-03  Bruno Haible  <bruno@clisp.org>
59375
59376         * DEPENDENCIES: New file.
59377         Suggested by Simon Josefsson.
59378
59379 2007-04-03  Bruno Haible  <bruno@clisp.org>
59380
59381         * doc/gnulib.texi: Escape @.
59382
59383 2007-04-03  James Youngman  <jay@gnu.org>
59384         and Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59387         birthtime on all systems that have birthtime, not just those which
59388         use st_birthtimensec rather than st_birthtim.  Putting zero in
59389         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59390         that the birth time is not available for files on an NFS mount.
59391
59392 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59393
59394         * modules/memxor: Move back from crypto/, suggested by Bruno.
59395         * modules/crypto/hmac-sha1: Fix memxor dependency.
59396
59397         * modules/crypto/gc: Moved from ../.
59398
59399 2007-04-02  Eric Blake  <ebb9@byu.net>
59400
59401         * lib/ldexpl.c (includes): Avoid libm.
59402
59403         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59404
59405 2007-04-02  Bruno Haible  <bruno@clisp.org>
59406
59407         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59408         on IRIX.
59409
59410 2007-04-02  Bruno Haible  <bruno@clisp.org>
59411
59412         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59413         x86 or x86_64 platforms running MacOS X.
59414         Reported by Ryan Schmidt <@ryandesign.com>.
59415
59416 2007-04-02  Bruno Haible  <bruno@clisp.org>
59417
59418         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59419         i386.
59420
59421 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59422
59423         * modules/crypto/arcfour: Moved from ../.
59424         * modules/crypto/arcfour-tests: Moved from ../.
59425         * modules/crypto/arctwo: Moved from ../.
59426         * modules/crypto/arctwo-tests: Moved from ../.
59427         * modules/crypto/des: Moved from ../.
59428         * modules/crypto/des-tests: Moved from ../.
59429         * modules/crypto/gc-arcfour: Moved from ../.
59430         * modules/crypto/gc-arcfour-tests: Moved from ../.
59431         * modules/crypto/gc-arctwo: Moved from ../.
59432         * modules/crypto/gc-arctwo-tests: Moved from ../.
59433         * modules/crypto/gc-des: Moved from ../.
59434         * modules/crypto/gc-des-tests: Moved from ../.
59435         * modules/crypto/gc-hmac-md5: Moved from ../.
59436         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59437         * modules/crypto/gc-hmac-sha1: Moved from ../.
59438         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59439         * modules/crypto/gc-md2: Moved from ../.
59440         * modules/crypto/gc-md2-tests: Moved from ../.
59441         * modules/crypto/gc-md4: Moved from ../.
59442         * modules/crypto/gc-md4-tests: Moved from ../.
59443         * modules/crypto/gc-md5: Moved from ../.
59444         * modules/crypto/gc-md5-tests: Moved from ../.
59445         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59446         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59447         * modules/crypto/gc-random: Moved from ../.
59448         * modules/crypto/gc-rijndael: Moved from ../.
59449         * modules/crypto/gc-rijndael-tests: Moved from ../.
59450         * modules/crypto/gc-sha1: Moved from ../.
59451         * modules/crypto/gc-sha1-tests: Moved from ../.
59452         * modules/crypto/gc-tests: Moved from ../.
59453         * modules/crypto/hmac-md5: Moved from ../.
59454         * modules/crypto/hmac-md5-tests: Moved from ../.
59455         * modules/crypto/hmac-sha1: Moved from ../.
59456         * modules/crypto/hmac-sha1-tests: Moved from ../.
59457         * modules/crypto/md2: Moved from ../.
59458         * modules/crypto/md2-tests: Moved from ../.
59459         * modules/crypto/md4: Moved from ../.
59460         * modules/crypto/md4-tests: Moved from ../.
59461         * modules/crypto/md5: Moved from ../.
59462         * modules/crypto/md5-tests: Moved from ../.
59463         * modules/crypto/memxor: Moved from ../.
59464         * modules/crypto/rijndael: Moved from ../.
59465         * modules/crypto/rijndael-tests: Moved from ../.
59466         * modules/crypto/sha1: Moved from ../.
59467
59468 2007-03-30  James Youngman  <jay@gnu.org>
59469
59470         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59471         rename() to change the ctime of a file (because ctime is unaffected
59472         by rename on jfs2 on AIX 5.1).
59473         (main): Start by doing cleanup, in case a previous run failed leaving
59474         test files behind.
59475
59476 2007-03-31  Bruno Haible  <bruno@clisp.org>
59477
59478         Support old proprietary implementations of iconv.
59479         * modules/iconv_open: New file.
59480         * lib/iconv_.h: New file.
59481         * m4/iconv_h.m4: New file.
59482         * lib/iconv_open.c: New file.
59483         * lib/iconv_open-aix.gperf: New file.
59484         * lib/iconv_open-hpux.gperf: New file.
59485         * lib/iconv_open-irix.gperf: New file.
59486         * lib/iconv_open-osf.gperf: New file.
59487         * m4/iconv_open.m4: New file.
59488         * modules/linebreak (Depends-on): Add iconv_open.
59489         * modules/striconv (Depends-on): Likewise.
59490         * modules/striconveh (Depends-on): Likewise.
59491         * modules/unicodeio (Depends-on): Likewise.
59492         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59493         (iconv_t)(-1).
59494         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59495         conversion if cd is (iconv_t)(-1).
59496         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59497         is not possible.
59498
59499 2007-03-31  Bruno Haible  <bruno@clisp.org>
59500
59501         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59502         work on Solaris either. Protect also second use of "autodetect_jp".
59503
59504 2007-03-31  Bruno Haible  <bruno@clisp.org>
59505
59506         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59507         the function is not present.
59508
59509 2007-03-31  Bruno Haible  <bruno@clisp.org>
59510
59511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59512         the function is not present.
59513
59514 2007-03-31  Bruno Haible  <bruno@clisp.org>
59515
59516         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59517         a bug in HP-UX iconv_open().
59518
59519 2007-03-31  Bruno Haible  <bruno@clisp.org>
59520
59521         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59522         (Mathematics <math.h>): New section, add fpieee.
59523         (Input/output <stdio.h>): Add fseterr.
59524         (Mathematics <math.h>): New section, add printf-frexp.
59525         (Container data structures): Add sublist.
59526         (Core language properties): Add fpucw, inline.
59527         (Functions for greatest-width integer types <inttypes.h>): Add
59528         imaxabs, imaxdiv, inttypes.
59529         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59530         isnanl-nolibm, ldexp.
59531         (Mathematics <math.h>): New section, add printf-frexpl.
59532         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59533         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59534         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59535         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59536         (Unicode string functions): Add unistr/u*-mbtoucr.
59537         (Java): Add javacomp-script, javaexec-script.
59538         (C#): Add csharpcomp-script, csharpexec-script.
59539         (Support for building libraries and executables): Add havelib,
59540         relocatable-*.
59541         (Support for maintaining and releasing projects): Renamed from
59542         'Support for maintaining and release projects'. Add announce-gen.
59543
59544 2007-03-31  Bruno Haible  <bruno@clisp.org>
59545
59546         * README: Talk primarily about git.
59547         (git and CVS): Renamed from CVS.
59548         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59549         gnulib is available through git.
59550         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59551
59552 2007-03-30  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59555         * lib/poll_.h: Likewise.
59556         * lib/stat_.h: Likewise.
59557         * lib/sys_time_.h: Likewise.
59558         * lib/sysexit_.h: Likewise.
59559         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59560         * lib/stdbool_.h: Likewise.
59561         * lib/byteswap_.h: Add double-inclusion guard.
59562
59563 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59564
59565         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59566
59567 2007-03-30  Karl Berry  <karl@gnu.org>
59568
59569         * config/srclist-update: double space after USA in the license
59570         substitution, since that's how it's usually (?) written.
59571
59572 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59575         reported by Bruno Haible.
59576
59577 2007-03-29  Bruno Haible  <bruno@clisp.org>
59578
59579         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59580         a bug in AIX iconv().
59581
59582 2007-03-29  Bruno Haible  <bruno@clisp.org>
59583
59584         * modules/ldexpl-tests: New file.
59585         * tests/test-ldexpl.c: New file.
59586
59587 2007-03-29  Bruno Haible  <bruno@clisp.org>
59588
59589         * lib/ldexpl.c: Include fpucw.h.
59590         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59591         multiplication.
59592         * modules/ldexpl (Depends-on): Add fpucw.
59593
59594 2007-03-29  Bruno Haible  <bruno@clisp.org>
59595
59596         * modules/ldexpl: New file.
59597         * m4/ldexpl.m4: New file.
59598         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59599         set.
59600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59601         REPLACE_LDEXPL.
59602         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59603         REPLACE_LDEXPL.
59604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59605         gl_FUNC_LDEXPL_WORKS.
59606         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59607         * modules/mathl (Files): Remove lib/ldexpl.c.
59608         (Depends-on): Add ldexpl.
59609
59610 2007-03-29  Bruno Haible  <bruno@clisp.org>
59611
59612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59613
59614 2007-03-29  Bruno Haible  <bruno@clisp.org>
59615
59616         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59617         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59618         and possibly also HP-UX.
59619         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59620         work on AIX, IRIX, HP-UX, OSF/1.
59621         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59622         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59623         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59624         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59625         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59626         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59627
59628 2007-03-29  Bruno Haible  <bruno@clisp.org>
59629
59630         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59631
59632 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59635         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59636
59637 2007-03-29  Eric Blake  <ebb9@byu.net>
59638
59639         * lib/acl-internal.h: Remove redundant include.
59640         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59641         Cygwin when a file is locked.
59642
59643 2007-03-29  Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59646         file.
59647         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59648
59649 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59650
59651         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59652         try to remove a parent directory if the child couldn't be removed
59653         (except for the first rmdir, which could fail because the child
59654         doesn't exist).  Problem reported by Jeff Blaine in
59655         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59656
59657 2007-03-28  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/striconveh.c (utf8conv_carefully): New function.
59660         (mem_cd_iconveh_internal): Invoke it.
59661
59662 2007-03-28  Bruno Haible  <bruno@clisp.org>
59663
59664         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59665         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59666         input.
59667         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59668         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59669         unistr/u8-uctomb.
59670
59671 2007-03-28  Bruno Haible  <bruno@clisp.org>
59672
59673         * modules/unistr/u8-mbtoucr: New file.
59674         * lib/unistr/u8-mbtoucr.c: New file.
59675         * modules/unistr/u16-mbtoucr: New file.
59676         * lib/unistr/u16-mbtoucr.c: New file.
59677         * modules/unistr/u16-mbtoucr: New file.
59678         * lib/unistr/u16-mbtoucr.c: New file.
59679         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59680
59681 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59682             Bruno Haible  <bruno@clisp.org>
59683
59684         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59685         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59686         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59687
59688         * m4/stdio_h.m4: Add stubs for vasprintf too.
59689
59690         * modules/stdio: Support vasprintf in sed command.
59691
59692         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59693         vasprintf.h.  Add stdio module indicator.
59694
59695         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59696         vasprintf.h.
59697
59698         * lib/vasprintf.h: File removed.
59699
59700         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59701         * lib/vasprintf.c: Ditto.
59702         * lib/xvasprintf.c: Ditto.
59703         * tests/test-vasprintf-posix.c: Ditto.
59704         * tests/test-vasprintf.c: Ditto.
59705
59706 2007-03-27  Bruno Haible  <bruno@clisp.org>
59707
59708         Make vasnprintf multithread-safe.
59709         * lib/vasnprintf.c (decimal_point_char): New function.
59710         (VASNPRINTF): Use it.
59711         Suggested by Simon Josefsson.
59712
59713 2007-03-27  Eric Blake  <ebb9@byu.net>
59714
59715         Support sub-second birthtime on cygwin.
59716         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59717         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59718         (get_stat_birthtime): Also work with st_birthtim.
59719
59720 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59721
59722         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59723         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59724         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59725         (get_stat_birthtime_ns): Simplify compile-time tests.
59726         (get_stat_birthtime): Change the API to look like
59727         get_stat_mtime etc., except return a negative tv_nsec on error.
59728         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59729         Don't check for "spare" fields.
59730         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59731         or for struct stat.st_birthtime, as these tests aren't used.
59732         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59733
59734 2007-03-27  Bruno Haible  <bruno@clisp.org>
59735
59736         * lib/stat-time.h: Include <sys/stat.h>.
59737
59738 2007-03-27  James Youngman  <jay@gnu.org>
59739
59740         * lib/stat-time.h (get_stat_birthtime): New function for
59741           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59742         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59743           and its variants.
59744         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59745         * modules/stat-time-test: New file.
59746         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59747
59748 2007-03-26  Bruno Haible  <bruno@clisp.org>
59749
59750         Better support of signalling NaNs.
59751         * lib/atanl.c: Include isnanl.h.
59752         (atanl): Perform test for NaN at the beginning of the function and
59753         through a call to isnanl.
59754         * lib/cosl.c: Include isnanl.h.
59755         (cosl): Perform test for NaN at the beginning of the function and
59756         through a call to isnanl.
59757         * lib/ldexpl.c: Include isnanl.h.
59758         (ldexpl): Perform test for NaN through a call to isnanl.
59759         * lib/logl.c: Include isnanl.h.
59760         (logl): Perform test for NaN at the beginning of the function and
59761         through a call to isnanl.
59762         * lib/sinl.c: Include isnanl.h.
59763         (sinl): Perform test for NaN at the beginning of the function and
59764         through a call to isnanl.
59765         * lib/sqrtl.c: Include isnanl.h.
59766         (sqrtl): Perform test for NaN at the beginning of the function and
59767         through a call to isnanl.
59768         * lib/tanl.c: Include isnanl.h.
59769         (tanl): Perform test for NaN at the beginning of the function and
59770         through a call to isnanl.
59771         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59772         * modules/mathl (Depends-on): Add isnanl.
59773
59774 2007-03-26  Eric Blake  <ebb9@byu.net>
59775
59776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59777         regression in logic sense of previous patch.
59778
59779 2007-03-26  Bruno Haible  <bruno@clisp.org>
59780
59781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59782         unportable shell command "if ! ...".
59783         Reported by Ralf Wildenhues.
59784
59785 2007-03-25  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59788         <sysexits.h> file, and only add EX_CONFIG.
59789         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59790         absolute file name and whether it is sufficient. Substitute also
59791         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59792         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59793         ABSOLUTE_SYSEXITS_H into sysexits.h.
59794
59795 2007-03-25  Bruno Haible  <bruno@clisp.org>
59796
59797         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59798         hints is NULL.
59799
59800 2007-03-25  Bruno Haible  <bruno@clisp.org>
59801
59802         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59803         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59804
59805 2007-03-25  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/vasnprintf.c: Include langinfo.h.
59808         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59809         multithread-safe.
59810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59819         Reported by Simon Josefsson.
59820
59821 2007-03-25  Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59824         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59825         * modules/vasnprintf (Depends-on): Add stdint.
59826
59827 2007-03-25  Bruno Haible  <bruno@clisp.org>
59828
59829         * modules/fpieee: New file.
59830         * m4/fpieee.m4: New file.
59831         * modules/isnan-nolibm (Depends-on): Add fpieee.
59832         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59833         * modules/isnanl (Depends-on): Add fpieee.
59834
59835 2007-03-25  Bruno Haible  <bruno@clisp.org>
59836
59837         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59838
59839 2007-03-25  Bruno Haible  <bruno@clisp.org>
59840
59841         Avoid test failures on IRIX 6.5.
59842         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59843         (main): Use it.
59844         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59845         macros.
59846         (main): Use them.
59847
59848 2007-03-25  Bruno Haible  <bruno@clisp.org>
59849
59850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59851         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59852         exists but doesn't work.
59853         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59854         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59856         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59857         math.h.
59858
59859 2007-03-25  Bruno Haible  <bruno@clisp.org>
59860
59861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59862         returns inf. Needed on IRIX 6.5.
59863
59864 2007-03-25  Bruno Haible  <bruno@clisp.org>
59865
59866         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59867         (main): Use isnanl instead of x != x idiom.
59868         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59869
59870         * tests/test-frexp.c: Include isnan.h.
59871         (main): Use isnan instead of x != x idiom.
59872         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59873
59874 2007-03-25  Bruno Haible  <bruno@clisp.org>
59875
59876         * tests/test-frexp.c (NaN): New function/macro.
59877         (main): Use it instead of 0.0 / 0.0.
59878         * tests/test-isnan.c (NaN): New function/macro.
59879         (main): Use it instead of 0.0 / 0.0.
59880         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59881         (test_function): Use it instead of 0.0 / 0.0.
59882         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59883         (test_function): Use it instead of 0.0 / 0.0.
59884         * tests/test-snprintf-posix.h (NaN): New function/macro.
59885         (test_function): Use it instead of 0.0 / 0.0.
59886         * tests/test-sprintf-posix.h (NaN): New function/macro.
59887         (test_function): Use it instead of 0.0 / 0.0.
59888         * tests/test-fprintf-posix.h (NaN): New function/macro.
59889         (test_function): Use it instead of 0.0 / 0.0.
59890         * tests/test-printf-posix.h (NaN): New function/macro.
59891         (test_function): Use it instead of 0.0 / 0.0.
59892
59893         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59894
59895 2007-03-25  Bruno Haible  <bruno@clisp.org>
59896
59897         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59898
59899 2007-03-25  Bruno Haible  <bruno@clisp.org>
59900
59901         * lib/regexec.c (merge_state_with_log): Make static.
59902
59903 2007-03-25  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/trigl.c (kernel_rem_pio2): Make static.
59906
59907 2007-03-25  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/sincosl.c (sincosl_table): Make static.
59910
59911 2007-03-25  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59914         if the compiler does not support C99.
59915
59916 2007-03-25  Bruno Haible  <bruno@clisp.org>
59917
59918         * modules/time (Makefile.am): Ensure all rule action lines start with a
59919         tab.
59920
59921 2007-03-24  Bruno Haible  <bruno@clisp.org>
59922
59923         * modules/tsearch-tests: New file.
59924         * tests/test-tsearch.sh: New file.
59925         * tests/test-tsearch.c: New file, mostly copied from glibc.
59926
59927         * modules/search-tests: New file.
59928         * tests/test-search.c: New file.
59929
59930         * modules/search: New file.
59931         * lib/search_.h: New file, incorporating lib/tsearch.h.
59932         * m4/search_h.m4: New file.
59933         * lib/tsearch.h: Remove file.
59934         * lib/tsearch.c: Include search.h instead of tsearch.h.
59935         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59936         HAVE_TSEARCH.
59937         * modules/tsearch (Files): Remove lib/tsearch.h.
59938         (Depends-on): Add search.
59939         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59940         (Include): Change tsearch.h into search.h.
59941
59942 2007-03-24  Bruno Haible  <bruno@clisp.org>
59943
59944         * modules/fpucw: New file.
59945         * lib/fpucw.h: New file.
59946         * lib/frexp.c: Include fpucw.h.
59947         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59948         (FUNC): Use them.
59949         * lib/printf-frexp.c: Include fpucw.h.
59950         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59951         (FUNC): Use them.
59952         * lib/vasnprintf.c: Include fpucw.h.
59953         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59954         'long double' calculations.
59955         * tests/test-frexpl.c: Include fpucw.h.
59956         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59957         * tests/test-printf-frexpl.c: Include fpucw.h.
59958         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59959         * modules/frexpl (Depends-on): Add fpucw.
59960         * modules/printf-frexpl (Depends-on): Likewise.
59961         * modules/fprintf-posix (Depends-on): Likewise.
59962         * modules/snprintf-posix (Depends-on): Likewise.
59963         * modules/sprintf-posix (Depends-on): Likewise.
59964         * modules/vasnprintf-posix (Depends-on): Likewise.
59965         * modules/vasprintf-posix (Depends-on): Likewise.
59966         * modules/vfprintf-posix (Depends-on): Likewise.
59967         * modules/vsnprintf-posix (Depends-on): Likewise.
59968         * modules/vsprintf-posix (Depends-on): Likewise.
59969         * modules/frexpl-tests (Depends-on): Likewise.
59970         * modules/printf-frexpl-tests (Depends-on): Likewise.
59971
59972 2007-03-24  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/float+.h: New file.
59975         * lib/isnan.c: Include float+.h.
59976         (SIZE): New macro.
59977         (FUNC): Compare only SIZE bytes of the value.
59978         * lib/vasnprintf.c: Include float+.h.
59979         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59980         SIZEOF_LDBL or SIZEOF_DBL bytes.
59981         * modules/isnan-nolibm (Files): Add lib/float+.h.
59982         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59983         * modules/isnanl (Files): Add lib/float+.h.
59984         * modules/vasnprintf (Files): Add lib/float+.h.
59985
59986 2007-03-24  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59989         include isnanl-nolibm.h.
59990
59991 2007-03-24  Bruno Haible  <bruno@clisp.org>
59992
59993         * tests/test-read-file.c (main): Don't produce spurious output for
59994         expected situations. Make the test fail if it encountered unexpected
59995         results.
59996
59997 2007-03-24  Bruno Haible  <bruno@clisp.org>
59998
59999         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60000         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60001
60002 2007-03-24  Bruno Haible  <bruno@clisp.org>
60003
60004         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60005
60006 2007-03-24  Bruno Haible  <bruno@clisp.org>
60007
60008         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60009         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60010
60011         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60012         * modules/utf8-ucs4: Turn into a symbolic link to module
60013         unistr/u8-mbtouc.
60014
60015         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60016         utf8-ucs4-unsafe.
60017         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60018         unistr/u8-mbtouc-unsafe.
60019
60020         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60021         * modules/utf16-ucs4: Turn into a symbolic link to module
60022         unistr/u16-mbtouc.
60023
60024         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60025         utf16-ucs4-unsafe.
60026         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60027         unistr/u16-mbtouc-unsafe.
60028
60029         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60030         * modules/ucs4-utf8: Turn into a symbolic link to module
60031         unistr/u8-ubtomb.
60032
60033         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60034         * modules/ucs4-utf16: Turn into a symbolic link to module
60035         unistr/u16-ubtomb.
60036
60037 2007-03-24  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60040         Enable the function only if HAVE_INLINE.
60041         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60042         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60043         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60044         Enable the function only if HAVE_INLINE.
60045         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60046         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60047         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60048         Enable the function only if HAVE_INLINE.
60049         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60050         Enable the function only if HAVE_INLINE.
60051         * modules/utf8-ucs4: Update.
60052         * modules/utf8-ucs4-unsafe: Update.
60053         * modules/utf16-ucs4: Update.
60054         * modules/utf16-ucs4-unsafe: Update.
60055         * modules/ucs4-utf8: Update.
60056         * modules/ucs4-utf16: Update.
60057
60058 2007-03-24  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/utf8-ucs4.h: Remove file.
60061         * lib/utf8-ucs4-unsafe.h: Remove file.
60062         * lib/utf16-ucs4.h: Remove file.
60063         * lib/utf16-ucs4-unsafe.h: Remove file.
60064         * lib/ucs4-utf8.h: Remove file.
60065         * lib/ucs4-utf16.h: Remove file.
60066         * lib/unistr.h: Include their previous contents.
60067         * m4/utf-ucs4.m4: Remove file.
60068         * m4/ucs4-utf.m4: Remove file.
60069         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60070         (Depends-on): Add unistr/base.
60071         (configure.ac): Remove gl_UTF_UCS4.
60072         (Makefile.am): Update.
60073         (Include): Change to unistr.h.
60074         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60075         (Depends-on): Add unistr/base.
60076         (configure.ac): Remove gl_UTF_UCS4.
60077         (Makefile.am): Update.
60078         (Include): Change to unistr.h.
60079         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60080         (Depends-on): Add unistr/base.
60081         (configure.ac): Remove gl_UTF_UCS4.
60082         (Makefile.am): Update.
60083         (Include): Change to unistr.h.
60084         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60085         (Depends-on): Add unistr/base.
60086         (configure.ac): Remove gl_UTF_UCS4.
60087         (Makefile.am): Update.
60088         (Include): Change to unistr.h.
60089         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60090         (Depends-on): Add unistr/base.
60091         (configure.ac): Remove gl_UCS4_UTF.
60092         (Makefile.am): Update.
60093         (Include): Change to unistr.h.
60094         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60095         (Depends-on): Add unistr/base.
60096         (configure.ac): Remove gl_UCS4_UTF.
60097         (Makefile.am): Update.
60098         (Include): Change to unistr.h.
60099         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60100         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60101         utf8-ucs4-unsafe.h.
60102         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60103         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60104         utf16-ucs4-unsafe.h.
60105         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60106         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60107         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60108         * lib/unistr/u8-strchr.c: Likewise.
60109         * lib/unistr/u8-strrchr.c: Likewise.
60110         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60111         * lib/unistr/u16-strchr.c: Likewise.
60112         * lib/unistr/u16-strrchr.c: Likewise.
60113         * lib/striconveh.c: Update.
60114         * lib/linebreak.c: Update.
60115
60116 2007-03-24  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60119         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60120
60121 2007-03-22  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60124
60125 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * MODULES.html.sh (File system functions): New module write-any-file.
60128         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60129         * m4/write-any-file.m4: New files.
60130
60131 2007-03-23  Eric Blake  <ebb9@byu.net>
60132
60133         * gnulib-tool: Rearrange space-tab sequences, since some editors
60134         like to eat them.
60135
60136 2007-03-23  Eric Blake  <ebb9@byu.net>
60137
60138         * lib/version-etc.c (version_etc_va): Update license wording to
60139         be more concise.  Recommended by Richard Stallman.
60140
60141 2007-03-22  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/poll.c (MSG_PEEK): New fallback definition.
60144
60145 2007-03-22  Bruno Haible  <bruno@clisp.org>
60146
60147         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60148         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60149         (main): Update.
60150         Fixes a compilation error on BeOS.
60151
60152 2007-03-22  Bruno Haible  <bruno@clisp.org>
60153
60154         * modules/frexpl-tests: New file.
60155         * tests/test-frexpl.c: New file.
60156
60157         * modules/frexpl: New file.
60158         * m4/frexpl.m4: New file.
60159         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60160         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60162         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60163         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60164         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60165
60166 2007-03-22  Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/frexpl.c: Share code with lib/frexp.c.
60169         * modules/mathl (Files): Add lib/frexp.c.
60170         (Depends-on): Add isnanl-nolibm.
60171
60172 2007-03-22  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/printf-frexp (Files): Add m4/frexp.m4.
60175         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60176         only if the found frexp function actually works.
60177
60178 2007-03-22  Bruno Haible  <bruno@clisp.org>
60179
60180         * lib/frexp.c: Remove older implementation that uses divisions.
60181
60182 2007-03-21  Bruno Haible  <bruno@clisp.org>
60183
60184         * modules/frexp-tests: New file.
60185         * tests/test-frexp.c: New file.
60186
60187         * modules/frexp: New file.
60188         * lib/frexp.c: New file.
60189         * m4/frexp.m4: New file.
60190         * lib/math_.h (frexp): New declaration.
60191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60192         REPLACE_FREXP.
60193         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60194
60195 2007-03-21  Bruno Haible  <bruno@clisp.org>
60196
60197         * modules/isnanl-tests: New file.
60198         * tests/test-isnanl.c: New file.
60199
60200         * modules/isnanl: New file.
60201         * lib/isnanl.h: New file.
60202         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60203         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60204         gl_FUNC_ISNANL_WORKS.
60205         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60206         New macros.
60207
60208 2007-03-21  Bruno Haible  <bruno@clisp.org>
60209
60210         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60211         lib/isnanl.h.
60212         (Include): Update.
60213         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60214         * lib/vasnprintf.c: Update.
60215         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60216         tests/test-isnanl.h, remove tests/test-isnanl.c.
60217         (Makefile.am): Update.
60218         * tests/test-isnanl-nolibm.c: New file.
60219         * tests/test-isnanl.h: New file.
60220         * tests/test-isnanl.c: Remove file.
60221
60222 2007-03-21  Jim Meyering  <jim@meyering.net>
60223
60224         When trying to open ".", treat ESTALE like EACCES.
60225         * lib/savewd.c (savewd_save): Resort to forking not just upon
60226         failure with EACCES, but also when errno is ESTALE.
60227
60228 2007-03-20  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60231         Needed on AIX 5.1. Reported by Matthew Woehlke.
60232
60233 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60234
60235         Suggestions by Bruno Haible:
60236         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60237         our own.
60238         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60239         * modules/acl (Depends-on): Add gettext.
60240
60241 2007-03-19  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/iconvme: Remove file.
60244         * lib/iconvme.h: Remove file.
60245         * lib/iconvme.c: Remove file.
60246         * m4/iconvme.m4: Remove file.
60247
60248 2007-03-19  Bruno Haible  <bruno@clisp.org>
60249
60250         * doc/relocatable-maint.texi: Break long shell script line.
60251         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60252
60253 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60254
60255         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60256         handle file_has_acl.
60257         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60258         * lib/acl.c: Move header inclusions and related macro defns into
60259         lib/acl-internal.h.
60260         (S_ISLNK): Remove defn, since that's now done for us.
60261         (file_has_acl): Move to lib/file-has-acl.c.
60262         Call acl_trivial if available.  This is the crucial part of the fix.
60263         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60264         shared within the library.  Rewrite a bit, partly to make it compatible
60265         with the GNU coding style.
60266         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60267         Remove unnecessary double-quotes.
60268         Don't test for acl_to_text; the build will catch that.
60269         Replace acl_entries if it doesn't exist and it is needed.
60270         Check for -lsec and acl_trivial (as used on Solaris 10).
60271         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60272         lib/file-has-acl.c.
60273         (Depends-on): Add sys_stat, for S_ISLNK.
60274
60275 2007-03-19  Ben Pfaff  <blp@gnu.org>
60276
60277         * doc/gnulib.texi: Fix typos.
60278         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60279
60280 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60281
60282         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60283         If size is zero here, buf must be zero.
60284
60285 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60286
60287         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60288         <bruno@clisp.org>.
60289
60290 2007-03-18  Bruno Haible  <bruno@clisp.org>
60291
60292         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60293         Suggested by Eric Blake.
60294
60295 2007-03-18  Ben Pfaff  <blp@gnu.org>
60296
60297         * doc/relocatable.texi: Recommend using as prefix a directory
60298         that does not exist and will never be created.  Based on
60299         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60300         and others.
60301
60302 2007-03-17  Bruno Haible  <bruno@clisp.org>
60303
60304         * lib/fchownat.c: Include lchown.h.
60305
60306 2007-03-17  Bruno Haible  <bruno@clisp.org>
60307
60308         Fix endless loop when the given allocated size was > INT_MAX.
60309         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60310         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60311         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60312         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60313         * lib/sprintf.c (sprintf): Likewise.
60314
60315 2007-03-17  Bruno Haible  <bruno@clisp.org>
60316
60317         * tests/test-argp-2.sh (func_compare): Output a context diff.
60318
60319 2007-03-17  Bruno Haible  <bruno@clisp.org>
60320
60321         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60322         locale's decimal-point character.
60323
60324 2007-03-17  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60327         before comparing it. Needed because on some platforms (e.g. x86) a
60328         'long double' occupies less bytes than sizeof (long double).
60329
60330 2007-03-17  Bruno Haible  <bruno@clisp.org>
60331
60332         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60333         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60334         * tests/test-getaddrinfo.c (simple): Likewise.
60335         * tests/test-read-file.c (main): Likewise.
60336
60337 2007-03-17  Bruno Haible  <bruno@clisp.org>
60338
60339         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60340
60341 2007-03-17  Bruno Haible  <bruno@clisp.org>
60342
60343         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60344         unused variable.
60345
60346 2007-03-17  Bruno Haible  <bruno@clisp.org>
60347
60348         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60349         * tests/test-c-strncasecmp.c: Likewise.
60350
60351 2007-03-17  Bruno Haible  <bruno@clisp.org>
60352
60353         * modules/stdlib (Depends-on): Add unistd.
60354         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60355         Needed for MacOS X 10.3.
60356
60357 2007-03-17  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60360
60361 2007-03-17  Bruno Haible  <bruno@clisp.org>
60362
60363         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60364
60365 2007-03-17  Bruno Haible  <bruno@clisp.org>
60366
60367         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60368         to reflect files copied from gnulib (with or without modifications).
60369         Suggested by Jim Meyering.
60370
60371 2007-03-17  Eric Blake  <ebb9@byu.net>
60372
60373         * NEWS: Document stdlib change from 2007-02-18.
60374
60375 2007-03-17  Jim Meyering  <jim@meyering.net>
60376
60377         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60378         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60379         someone uses a name containing shell meta-characters.
60380         Reported by Alfred M. Szmidt.
60381
60382         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60383
60384 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60385
60386         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60387         and copy gettext configuration files only if configure.ac contains
60388         a use of AM_GNU_GETTEXT_VERSION.
60389
60390 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60391
60392         * build-aux/bootstrap (gnulib_name): New variable.
60393         (gnulib_tool_options): Use it.
60394
60395 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60396
60397         * tests/test-des.c: Use new namespace.
60398
60399 2007-03-15  Bruno Haible  <bruno@clisp.org>
60400
60401         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60402         Reported by James Youngman <jay@gnu.org>.
60403
60404 2007-03-15  Bruno Haible  <bruno@clisp.org>
60405
60406         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60407         declared prototype. Needed with cc on OSF/1 5.1.
60408
60409 2007-03-15  Bruno Haible  <bruno@clisp.org>
60410
60411         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60412         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60413         (struct gl_list_implementation): Add dispose_fn argument to the
60414         'create_empty', 'create' methods.
60415         (struct gl_list_impl_base): Add field 'dispose_fn'.
60416         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60417         argument.
60418         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60419         dispose_fn argument.
60420         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60421         dispose_fn on the dropped values.
60422         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60423         dispose_fn argument.
60424         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60425         dropped values.
60426         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60427         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60428         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60429         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60430         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60431         argument.
60432         (gl_tree_list_free): Call dispose_fn on the dropped values.
60433         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60434         the dropped values.
60435         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60436         Add dispose_fn argument.
60437         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60438         Call dispose_fn on the dropped values.
60439         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60440         Add dispose_fn argument.
60441         (gl_sublist_create): Initialize the 'dispose_fn' field.
60442         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60443         * tests/test-array_list.c (main): Update.
60444         * tests/test-carray_list.c (main): Update.
60445         * tests/test-avltree_list.c (main): Update.
60446         * tests/test-rbtree_list.c (main): Update.
60447         * tests/test-avltreehash_list.c (main): Update.
60448         * tests/test-rbtreehash_list.c (main): Update.
60449         * tests/test-linked_list.c (main): Update.
60450         * tests/test-linkedhash_list.c (main): Update.
60451         * tests/test-array_oset.c (main): Update.
60452
60453 2007-03-15  Bruno Haible  <bruno@clisp.org>
60454
60455         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60456         (gl_oset_create_empty): Add dispose_fn argument.
60457         (struct gl_oset_implementation): Add dispose_fn argument to
60458         'create_empty' method.
60459         (struct gl_oset_impl_base): Add dispose_fn field.
60460         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60461         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60462         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60463         values.
60464         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60465         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60466         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60467         dropped value.
60468         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60469         dropped value.
60470         * tests/test-array_oset.c (main): Update.
60471         * tests/test-avltree_oset.c (main): Update.
60472         * tests/test-rbtree_oset.c (main): Update.
60473         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60474
60475 2007-03-13  Bruno Haible  <bruno@clisp.org>
60476
60477         * tests/test-stdbool.c (i): Update after last patch.
60478
60479 2007-03-12  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60482         the iswprint macro. Needed on Solaris 2.5.1.
60483
60484 2007-03-12  Bruno Haible  <bruno@clisp.org>
60485
60486         * tests/test-printf-frexp.c (main): Declare x as volatile.
60487
60488 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60489
60490         * doc/gnulib.texi (Build robot for gnulib): New section.
60491
60492 2007-03-12  Jim Meyering  <jim@meyering.net>
60493
60494         * build-aux/bootstrap: New file.
60495         * build-aux/bootstrap.conf: New file, from coreutils.
60496
60497 2007-03-11  Bruno Haible  <bruno@clisp.org>
60498
60499         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60500
60501 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60502
60503         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60504         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60505         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60506
60507 2007-03-11  Bruno Haible  <bruno@clisp.org>
60508
60509         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60510         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60511
60512 2007-03-11  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60515         formula. Needed for SunPRO C 5.0.
60516
60517 2007-03-11  Bruno Haible  <bruno@clisp.org>
60518
60519         * modules/long-options (Depends-on): Add getopt.
60520
60521 2007-03-11  Bruno Haible  <bruno@clisp.org>
60522
60523         * modules/modechange (Depends-on): Add stdbool.
60524
60525 2007-03-11  Bruno Haible  <bruno@clisp.org>
60526
60527         * modules/i-ring (Depends-on): Add stdbool.
60528
60529 2007-03-11  Bruno Haible  <bruno@clisp.org>
60530
60531         * modules/gc-des (Depends-on): Add stdbool.
60532
60533 2007-03-11  Bruno Haible  <bruno@clisp.org>
60534
60535         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60536
60537 2007-03-11  Bruno Haible  <bruno@clisp.org>
60538
60539         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60540
60541 2007-03-11  Bruno Haible  <bruno@clisp.org>
60542
60543         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60544
60545 2007-03-11  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/vasnprintf.c (sprintf): Undefine.
60548
60549 2007-03-11  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60552         initializers in SunPRO C and Compaq C compilers.
60553
60554 2007-03-11  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60557         decrementing code ANSI C compliant.
60558
60559 2007-03-11  Bruno Haible  <bruno@clisp.org>
60560
60561         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60562         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60563
60564 2007-03-11  Bruno Haible  <bruno@clisp.org>
60565
60566         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60567         <stdbool.h> substitute doesn't pass.
60568
60569 2007-03-11  Bruno Haible  <bruno@clisp.org>
60570
60571         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60572
60573 2007-03-11  Bruno Haible  <bruno@clisp.org>
60574
60575         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60576         script, for submission to autobuild.josefsson.org.
60577
60578 2007-03-10  Bruno Haible  <bruno@clisp.org>
60579
60580         * modules/canonicalize-lgpl-tests: New file.
60581         * tests/test-canonicalize-lgpl.sh: New file.
60582         * tests/test-canonicalize-lgpl.c: New file.
60583
60584         * modules/c-strcase-tests: New file.
60585         * tests/test-c-strcase.sh: New file.
60586         * tests/test-c-strcasecmp.c: New file.
60587         * tests/test-c-strncasecmp.c: New file.
60588
60589         * modules/atexit-tests: New file.
60590         * tests/test-atexit.sh: New file.
60591         * tests/test-atexit.c: New file.
60592
60593 2007-03-10  Bruno Haible  <bruno@clisp.org>
60594
60595         * tests/test-binary-io.sh: Use temporary filenames that are not so
60596         likely to clash with those of other tests (in a parallel make).
60597         * tests/test-binary-io.c: Likewise.
60598
60599 2007-03-10  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60602         fallback; use #error instead.
60603         Suggested by Simon Josefsson.
60604
60605 2007-03-10  Bruno Haible  <bruno@clisp.org>
60606
60607         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60608         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60609         first and the last.
60610
60611 2007-03-10  Bruno Haible  <bruno@clisp.org>
60612
60613         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60614
60615 2007-03-10  Bruno Haible  <bruno@clisp.org>
60616
60617         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60618         "make distcheck".
60619         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60620         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60621         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60622
60623 2007-03-10  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60626         variable.
60627         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60628         variable.
60629
60630 2007-03-09  Eric Blake  <ebb9@byu.net>
60631         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60632
60633         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60634         types are not being provided by gnulib.
60635         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60636         types are supported.
60637
60638 2007-03-10  Bruno Haible  <bruno@clisp.org>
60639
60640         * lib/stdio_.h (__attribute__): New macro.
60641         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60642         vsprintf): Specify __attribute__ __format__ for GCC.
60643         Suggested by Eric Blake.
60644
60645 2007-03-09  Bruno Haible  <bruno@clisp.org>
60646
60647         * modules/printf-posix-tests: New file.
60648         * tests/test-printf-posix.sh: New file.
60649         * tests/test-printf-posix.c: New file.
60650
60651         * modules/printf-posix: New file.
60652         * lib/printf.c: New file.
60653         * m4/printf-posix-rpl.m4: New file.
60654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60655         REPLACE_PRINTF.
60656         * lib/stdio_.h (printf): New declaration.
60657         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60658         ____strfmon____): New macros.
60659         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60660         REPLACE_PRINTF.
60661
60662 2007-03-09  Bruno Haible  <bruno@clisp.org>
60663
60664         * tests/test-vasnprintf-posix2.sh: New file.
60665         * tests/test-vasnprintf-posix2.c: New file.
60666         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60667         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60668         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60669
60670         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60671         a locale dependent decimal point, rather than always '.'.
60672
60673 2007-03-09  Eric Blake  <ebb9@byu.net>
60674
60675         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60676         spite of platforms like Tandem/NSK that define it to -1.
60677
60678 2007-03-08  Bruno Haible  <bruno@clisp.org>
60679
60680         * modules/vprintf-posix-tests: New file.
60681         * tests/test-vprintf-posix.sh: New file.
60682         * tests/test-vprintf-posix.c: New file.
60683         * tests/test-printf-posix.h: New file.
60684
60685         * modules/vprintf-posix: New file.
60686         * lib/vprintf.c: New file.
60687         * m4/vprintf-posix.m4: New file.
60688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60689         REPLACE_VPRINTF.
60690         * lib/stdio_.h (vprintf): New declaration.
60691         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60692         REPLACE_VPRINTF.
60693
60694 2007-03-08  Bruno Haible  <bruno@clisp.org>
60695
60696         * modules/fprintf-posix-tests: New file.
60697         * tests/test-fprintf-posix.sh: New file.
60698         * tests/test-fprintf-posix.c: New file.
60699
60700         * modules/fprintf-posix: New file.
60701         * lib/fprintf.c: New file.
60702         * m4/fprintf-posix.m4: New file.
60703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60704         REPLACE_FPRINTF.
60705         * lib/stdio_.h (fprintf): New declaration.
60706         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60707         REPLACE_FPRINTF.
60708
60709 2007-03-08  Bruno Haible  <bruno@clisp.org>
60710
60711         * modules/vfprintf-posix-tests: New file.
60712         * tests/test-vfprintf-posix.sh: New file.
60713         * tests/test-vfprintf-posix.c: New file.
60714         * tests/test-fprintf-posix.h: New file.
60715         * tests/test-fprintf-posix.out: New file.
60716
60717         * modules/vfprintf-posix: New file.
60718         * lib/vfprintf.c: New file.
60719         * m4/vfprintf-posix.m4: New file.
60720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60721         REPLACE_VFPRINTF.
60722         * lib/stdio_.h (vfprintf): New declaration.
60723         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60724         REPLACE_VFPRINTF.
60725
60726 2007-03-08  Bruno Haible  <bruno@clisp.org>
60727
60728         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60729
60730 2007-03-08  Bruno Haible  <bruno@clisp.org>
60731
60732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60733         instead of 'expr' invocations.
60734         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60739         Suggested by Paul Eggert.
60740
60741 2007-03-08  Bruno Haible  <bruno@clisp.org>
60742
60743         * modules/fseterr-tests: New file.
60744         * tests/test-fseterr.c: New file.
60745
60746         * modules/fseterr: New file.
60747         * lib/fseterr.h: New file.
60748         * lib/fseterr.c: New file.
60749
60750 2007-03-08  Bruno Haible  <bruno@clisp.org>
60751
60752         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60753         * lib/getopt_.h: Likewise.
60754         * lib/mbswidth.h: Likewise.
60755         * lib/setenv.h: Likewise.
60756         * lib/vasnprintf.h: Likewise.
60757         * lib/vasprintf.h: Likewise.
60758         * lib/verror.h: Likewise.
60759         * lib/xsetenv.h: Likewise.
60760         * lib/xvasprintf.h: Likewise.
60761
60762 2007-03-08  Jim Meyering  <jim@meyering.net>
60763
60764         * users.txt: Add parted.
60765
60766         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60767
60768 2007-03-07  Bruno Haible  <bruno@clisp.org>
60769
60770         * m4/printf.m4: Make the shell script snippets copy&pastable.
60771
60772 2007-03-02  Bruno Haible  <bruno@clisp.org>
60773
60774         * lib/netinet_in_.h: New file.
60775         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60776         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60777         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60778         (Depends-on): Add absolute-header.
60779         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60780         into netinet/in.h.
60781
60782 2007-03-03  Bruno Haible  <bruno@clisp.org>
60783
60784         * lib/sys_select_.h: New file.
60785         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60786         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60787         * modules/sys_select (Files): Add lib/sys_select_.h.
60788         (Depends-on): Add absolute-header.
60789         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60790         into sys/select.h.
60791
60792 2007-03-02  Bruno Haible  <bruno@clisp.org>
60793
60794         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60795         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60796         values.
60797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60798         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60799         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60800         * modules/sys_socket (Depends-on): Add absolute-header.
60801         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60802         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60803         (Include): Remove requirement of inclusion of <sys/types.h>.
60804
60805 2007-03-02  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/byteswap_.h (bswap_32): Fix formula.
60808
60809 2007-03-06  Bruno Haible  <bruno@clisp.org>
60810
60811         * modules/sprintf-posix-tests: New file.
60812         * tests/test-sprintf-posix.c: New file.
60813
60814         * modules/sprintf-posix: New file.
60815         * lib/sprintf.c: New file.
60816         * m4/sprintf-posix.m4: New file.
60817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60818         REPLACE_SPRINTF.
60819         * lib/stdio_.h (sprintf): New declaration.
60820         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60821         REPLACE_SPRINTF.
60822
60823 2007-03-06  Bruno Haible  <bruno@clisp.org>
60824
60825         * modules/vsprintf-posix-tests: New file.
60826         * tests/test-vsprintf-posix.c: New file.
60827         * tests/test-sprintf-posix.h: New file.
60828
60829         * modules/vsprintf-posix: New file.
60830         * lib/vsprintf.c: New file.
60831         * m4/vsprintf-posix.m4: New file.
60832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60833         REPLACE_VSPRINTF.
60834         * lib/stdio_.h (vsprintf): New declaration.
60835         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60836         REPLACE_VSPRINTF.
60837
60838 2007-03-06  Bruno Haible  <bruno@clisp.org>
60839
60840         * modules/vsnprintf (Depend-on): Remove minmax.
60841
60842 2007-03-06  Bruno Haible  <bruno@clisp.org>
60843
60844         * modules/snprintf-posix-tests: New file.
60845         * tests/test-snprintf-posix.c: New file.
60846
60847         * modules/snprintf-posix: New file.
60848         * m4/snprintf-posix.m4: New file.
60849         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60850         gl_FUNC_SNPRINTF.
60851         (gl_FUNC_SNPRINTF): Invoke it.
60852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60853         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60854         is set.
60855         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60856
60857 2007-03-06  Bruno Haible  <bruno@clisp.org>
60858
60859         * modules/vsnprintf-posix-tests: New file.
60860         * tests/test-vsnprintf-posix.c: New file.
60861         * tests/test-snprintf-posix.h: New file.
60862
60863         * modules/vsnprintf-posix: New file.
60864         * m4/vsnprintf-posix.m4: New file.
60865         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60866         gl_FUNC_VSNPRINTF.
60867         (gl_FUNC_VSNPRINTF): Invoke it.
60868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60869         * lib/stdio_.h (vsnprintf): Define as a replacement if
60870         REPLACE_VSNPRINTF is set.
60871         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60872
60873 2007-03-06  Bruno Haible  <bruno@clisp.org>
60874
60875         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60877
60878 2007-03-06  Bruno Haible  <bruno@clisp.org>
60879
60880         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60881         (asinl): Declare also if HAVE_DECL_ASINL is set.
60882         (atanl): Declare also if HAVE_DECL_ATANL is set.
60883         (ceill): Declare also if HAVE_DECL_CEILL is set.
60884         (cosl): Declare also if HAVE_DECL_COSL is set.
60885         (expl): Declare also if HAVE_DECL_EXPL is set.
60886         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60887         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60888         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60889         (logl): Declare also if HAVE_DECL_LOGL is set.
60890         (sinl): Declare also if HAVE_DECL_SINL is set.
60891         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60892         (tanl): Declare also if HAVE_DECL_TANL is set.
60893         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60895         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60896         declaration of frexpl, ldexpl.
60897         * modules/printf-frexpl (Depends-on): Add math.
60898         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60899
60900 2007-03-05  Bruno Haible  <bruno@clisp.org>
60901
60902         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60903         frexpl and ldexpl are declared.
60904         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60905
60906 2007-03-05  Bruno Haible  <bruno@clisp.org>
60907
60908         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60909         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60910
60911 2007-03-05  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/stdio_.h: Include <stddef.h>.
60914
60915 2007-03-05  Bruno Haible  <bruno@clisp.org>
60916
60917         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60918
60919 2007-03-05  Bruno Haible  <bruno@clisp.org>
60920
60921         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60922         NetBSD 4, from Ralf Wildenhues.
60923
60924 2007-03-04  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/vasprintf.h: Update #if logic for the case when the functions
60927         exist but are overridden.
60928
60929 2007-03-04  Bruno Haible  <bruno@clisp.org>
60930
60931         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60932         implementations: glibc-2.4 and MacOS X 10.3.
60933         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60934         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60935         * tests/test-vasprintf-posix.c (test_function): Likewise.
60936
60937 2007-03-04  Bruno Haible  <bruno@clisp.org>
60938
60939         * modules/vasprintf-posix-tests: New file.
60940         * tests/test-vasprintf-posix.c: New file.
60941
60942         * modules/vasprintf-posix: New file.
60943         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60944         defined.
60945         * m4/vasprintf-posix.m4: New file.
60946         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60947         gl_FUNC_VASPRINTF.
60948         (gl_FUNC_VASPRINTF): Invoke it.
60949         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60950         here.
60951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60952
60953 2007-03-04  Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60956         REPLACE_GETTIMEOFDAY.
60957         * modules/sys_time (Makefile.am): Likewise.
60958         * m4/sys_time_h.m4: Likewise.
60959         * m4/gettimeofday.m4: Likewise.
60960
60961 2007-03-04  Bruno Haible  <bruno@clisp.org>
60962
60963         * modules/vasnprintf-posix-tests: New file.
60964         * tests/test-vasnprintf-posix.c: New file.
60965
60966         * modules/vasnprintf-posix: New file.
60967         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60968         printf-frexpl.h.
60969         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60970         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60971         REPLACE_VASNPRINTF is defined.
60972         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60973         gl_FUNC_VASNPRINTF.
60974         (gl_FUNC_VASNPRINTF): Invoke it.
60975         * m4/vasnprintf-posix.m4: New file.
60976         * m4/printf.m4: New file.
60977
60978 2007-03-04  Bruno Haible  <bruno@clisp.org>
60979
60980         Compile progreloc.c only if --enable-relocatable is specified.
60981         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60982         if --enable-relocatable was specified.
60983         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60984         lib_SOURCES.
60985
60986 2007-03-04  Jim Meyering  <jim@meyering.net>
60987
60988         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60989         Use it consistently, rather than enumerating errno constants.
60990
60991 2007-03-04  Bruno Haible  <bruno@clisp.org>
60992
60993         * modules/xvasprintf-tests: New file.
60994         * tests/test-xvasprintf.c: New file.
60995
60996         * modules/vasprintf-tests: New file.
60997         * tests/test-vasprintf.c: New file.
60998
60999         * modules/vasnprintf-tests: New file.
61000         * tests/test-vasnprintf.c: New file.
61001
61002         * modules/vsnprintf-tests: New file.
61003         * tests/test-vsnprintf.c: New file.
61004
61005         * modules/snprintf-tests: New file.
61006         * tests/test-snprintf.c: New file.
61007
61008 2007-03-04  Bruno Haible  <bruno@clisp.org>
61009
61010         Compile relocatable.c only if --enable-relocatable is specified.
61011         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61012         gl_RELOCATABLE_LIBRARY.
61013         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61014         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61015         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61016         gl_RELOCATABLE_LIBRARY.
61017         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61018         (Makefile.am): Remove lib_SOURCES.
61019         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61020         gl_RELOCATABLE_LIBRARY.
61021         (Makefile.am): Remove lib_SOURCES.
61022         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61023         always.
61024         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61025         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61026
61027 2007-03-04  Bruno Haible  <bruno@clisp.org>
61028
61029         * modules/argmatch-tests: New file.
61030         * tests/test-argmatch.c: New file.
61031
61032         * tests/test-allocsa.c (main): Halve the number of loop runs.
61033
61034         * modules/alloca-opt-tests: New file.
61035         * tests/test-alloca-opt.c: New file.
61036
61037 2007-03-04  Jim Meyering  <jim@meyering.net>
61038
61039         Work around difference between Linux ACLs and Solaris 10 ZFS.
61040         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61041         for EINVAL.
61042
61043 2007-03-03  Bruno Haible  <bruno@clisp.org>
61044
61045         * modules/relocatable-prog (Depends-on): Add back progreloc's
61046         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61047
61048 2007-03-03  Bruno Haible  <bruno@clisp.org>
61049
61050         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61051         * modules/relocatable-lib: New file.
61052
61053 2007-03-03  Bruno Haible  <bruno@clisp.org>
61054
61055         * modules/relocatable-prog: Renamed from modules/relocatable.
61056         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61057
61058 2007-03-03  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61061         m4/relocatable-lib.m4.
61062         (Depends-on): Remove 'relocatable'.
61063         (configure.ac): Add gl_RELOCATABLE_NOP.
61064
61065 2007-03-03  Bruno Haible  <bruno@clisp.org>
61066
61067         * modules/relocatable-prog-wrapper: New file.
61068         * modules/relocatable (Depends-on): Add it. Remove all other
61069         dependencies except progname.
61070         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61071
61072         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61073         (gl_FUNC_STRERROR): Nop.
61074         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61075
61076         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61077         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61078
61079         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61080         (gl_FUNC_READLINK): Update.
61081
61082         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61083
61084 2007-03-03  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61087         * modules/xreadlink (Depends-on): Add unistd.
61088         * modules/xreadlink-with-size (Depends-on): Likewise.
61089
61090 2007-03-03  Bruno Haible  <bruno@clisp.org>
61091
61092         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61093         extracted from gt_FUNC_SETENV.
61094         (gt_FUNC_SETENV): Remove macro.
61095         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61096         remove gt_FUNC_SETENV.
61097
61098 2007-03-03  Bruno Haible  <bruno@clisp.org>
61099
61100         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61101         ENABLE_RELOCATABLE here.
61102         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61103
61104 2007-03-03  Bruno Haible  <bruno@clisp.org>
61105
61106         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61107         * tests/test-rbtreehash_list.c: Include progname.h.
61108         (main): Call set_program_name.
61109
61110         * modules/rbtree-oset-tests (Depends-on): Add progname.
61111         * tests/test-rbtree_oset.c: Include progname.h.
61112         (main): Call set_program_name.
61113
61114         * modules/rbtree-list-tests (Depends-on): Add progname.
61115         * tests/test-rbtree_list.c: Include progname.h.
61116         (main): Call set_program_name.
61117
61118         * modules/linked-list-tests (Depends-on): Add progname.
61119         * tests/test-linked_list.c: Include progname.h.
61120         (main): Call set_program_name.
61121
61122 2007-03-03  Bruno Haible  <bruno@clisp.org>
61123
61124         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61125         All uses of __restrict changed to _Restrict_.
61126         * lib/glob_.h (__restrict): Remove macro.
61127
61128 2007-03-02  Bruno Haible  <bruno@clisp.org>
61129
61130         * modules/gettext (configure.ac): Require gettext infrastructure
61131         from version 0.16.1.
61132
61133 2007-03-02  Bruno Haible  <bruno@clisp.org>
61134
61135         * modules/linkedhash-list-tests (Depends-on): Add progname.
61136         * tests/test-linkedhash_list.c: Include progname.h.
61137         (main): Call set_program_name.
61138
61139         * modules/carray-list-tests (Depends-on): Add progname.
61140         * tests/test-carray_list.c: Include progname.h.
61141         (main): Call set_program_name.
61142
61143         * modules/avltreehash-list-tests (Depends-on): Add progname.
61144         * tests/test-avltreehash_list.c: Include progname.h.
61145         (main): Call set_program_name.
61146
61147         * modules/avltree-oset-tests (Depends-on): Add progname.
61148         * tests/test-avltree_oset.c: Include progname.h.
61149         (main): Call set_program_name.
61150
61151         * modules/avltree-list-tests (Depends-on): Add progname.
61152         * tests/test-avltree_list.c: Include progname.h.
61153         (main): Call set_program_name.
61154
61155         * modules/array-oset-tests (Depends-on): Add progname.
61156         * tests/test-array_oset.c: Include progname.h.
61157         (main): Call set_program_name.
61158
61159         * modules/array-list-tests (Depends-on): Add progname.
61160         * tests/test-array_list.c: Include progname.h.
61161         (main): Call set_program_name.
61162
61163         * modules/argp-tests (Depends-on): Add progname.
61164         * tests/test-argp.c: Include argp.h first. Include progname.h.
61165         (main): Call set_program_name.
61166
61167 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61168
61169         * doc/gnulib-tool.texi (Initial import): Reword description of
61170         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61171         limited effect even if defined after the first system include.
61172
61173 2007-03-01  Bruno Haible  <bruno@clisp.org>
61174
61175         * build-aux/config.libpath: Update to libtool-1.5.22.
61176         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61177
61178 2007-03-01  Bruno Haible  <bruno@clisp.org>
61179
61180         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61181         foo_CFLAGS.
61182         Reported by Ralf Wildenhues.
61183
61184 2007-03-01  Bruno Haible  <bruno@clisp.org>
61185
61186         * build-aux/install-reloc: Remove object files left over by some
61187         compilers.
61188         Reported by Ralf Wildenhues.
61189
61190 2007-03-01  Bruno Haible  <bruno@clisp.org>
61191
61192         * build-aux/install-reloc: Break long lines.
61193
61194 2007-03-01  Bruno Haible  <bruno@clisp.org>
61195
61196         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61197         Reported by Ralf Wildenhues.
61198
61199 2007-03-01  Bruno Haible  <bruno@clisp.org>
61200
61201         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61202         include ordering constraints.
61203
61204 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61205
61206         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61208         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61209         as another example.
61210         * lib/time_.h: Fix misspelling.
61211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61212         Require gl_HEADER_TIME_H_DEFAULTS.
61213         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61214         * m4/time_r.m4 (gl_TIME_R): Likewise.
61215         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61216
61217 2007-03-01  Bruno Haible  <bruno@clisp.org>
61218
61219         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61220         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61221
61222 2007-03-01  Jim Meyering  <jim@meyering.net>
61223
61224         * modules/xreadlink (Maintainer): Add my name.
61225         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61226
61227 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61228             Bruno Haible  <bruno@clisp.org>
61229
61230         * build-aux/install-reloc: Compile also c-ctype.c.
61231         * build-aux/relocatable.sh.in: New file.
61232         * doc/relocatable.texi: New file.
61233         * doc/relocatable-maint.texi: New file.
61234         * doc/gnulib.texi: Include relocatable-maint.texi.
61235         * lib/progreloc.c: Include unistd.h unconditionally.
61236         * lib/relocwrapper.c: Include unistd.h unconditionally.
61237         Include c-ctype.h.
61238         (add_dotbin): Use c_tolower.
61239         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61240         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61241         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61242         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61243         to m4/relocatable-lib.m4.
61244         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61245         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61246         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61247         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61248         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61249         * modules/relocatable: New file.
61250         * modules/relocatable-lib: New file.
61251         * modules/relocatable-script: New file.
61252
61253 2007-02-28  Bruno Haible  <bruno@clisp.org>
61254
61255         Import --enable-relocatable infrastructure.
61256         * build-aux/config.libpath: New file, from GNU gettext.
61257         * build-aux/install-reloc: New file, from GNU gettext.
61258         * build-aux/reloc-ldflags: New file, from GNU gettext.
61259         * lib/relocatable.h: New file, from GNU gettext.
61260         * lib/relocatable.c: New file, from GNU gettext.
61261         * lib/relocwrapper.c: New file, from GNU gettext.
61262         * m4/relocatable.m4: New file, from GNU gettext.
61263
61264 2007-02-28  Bruno Haible  <bruno@clisp.org>
61265
61266         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61267
61268         * modules/xreadlink: New file, from GNU gettext with modifications.
61269         * lib/xreadlink.c: New file, from GNU gettext.
61270         * lib/xreadlink.h: Add comments.
61271         (xreadlink): New declaration.
61272
61273         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61274         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61275         lib/xreadlink-with-size.c.
61276         (configure.ac): Remove gl_XREADLINK invocation.
61277         (Makefile.am): Augment lib_SOURCES.
61278         * m4/xreadlink.m4: Remove file.
61279         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61280         (xreadlink_with_size): Renamed from xreadink.
61281         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61282         * modules/canonicalize (Depends-on): Replace xreadlink with
61283         xreadlink-with-size.
61284         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61285
61286 2007-02-25  Jim Meyering  <jim@meyering.net>
61287
61288         * build-aux/announce-gen: When complaining about excess arguments,
61289         list them.
61290
61291 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61292
61293         * README: Document signed integer overflow situation more
61294         accurately.
61295
61296 2007-02-25  Bruno Haible  <bruno@clisp.org>
61297
61298         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61299         'a' or 'A' conversion.
61300
61301 2007-02-25  Bruno Haible  <bruno@clisp.org>
61302
61303         * modules/filename: Renamed from modules/pathname.
61304         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61305         lib/concatpath.c with lib/concat-filename.c.
61306         (Makefile.am): Update.
61307         (Include): Replace pathname.h with filename.h.
61308         * lib/filename.h: Renamed from lib/pathname.h.
61309         (concatenated_filename): Renamed from concatenated_pathname.
61310         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61311         (concatenated_filename): Renamed from concatenated_pathname.
61312         * lib/findprog.c: Include filename.h instead of pathname.h.
61313         (find_in_path): Update.
61314         * lib/javacomp.c: Include filename.h instead of pathname.h.
61315         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61316         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61317         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61318         is_oldgcj_14_13_usable, is_javac_usable): Update.
61319         * lib/javaexec.c: Include filename.h instead of pathname.h.
61320         (execute_java_class): Update.
61321         * modules/findprog: Update.
61322         * modules/javacomp: Update.
61323         * modules/javaexec: Update.
61324         * MODULES.html.sh (File system functions): Add 'filename', remove
61325         'pathname'.
61326
61327 2007-02-25  Bruno Haible  <bruno@clisp.org>
61328
61329         * modules/printf-frexpl-tests: New file.
61330         * tests/test-printf-frexpl.c: New file.
61331
61332         * modules/printf-frexpl: New file.
61333         * lib/printf-frexpl.h: New file.
61334         * lib/printf-frexpl.c: New file.
61335         * m4/printf-frexpl.m4: New file.
61336
61337 2007-02-25  Bruno Haible  <bruno@clisp.org>
61338
61339         * modules/printf-frexp-tests: New file.
61340         * tests/test-printf-frexp.c: New file.
61341
61342         * modules/printf-frexp: New file.
61343         * lib/printf-frexp.h: New file.
61344         * lib/printf-frexp.c: New file.
61345         * m4/printf-frexp.m4: New file.
61346
61347 2007-02-25  Bruno Haible  <bruno@clisp.org>
61348
61349         Assume automake >= 1.10 for the tests.
61350         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61351         * modules/arctwo-tests: Likewise.
61352         * modules/argp-tests: Likewise.
61353         * modules/avltree-list-tests: Likewise.
61354         * modules/avltree-oset-tests: Likewise.
61355         * modules/avltreehash-list-tests: Likewise.
61356         * modules/carray-list-tests: Likewise.
61357         * modules/crc-tests: Likewise.
61358         * modules/des-tests: Likewise.
61359         * modules/gc-arcfour-tests: Likewise.
61360         * modules/gc-arctwo-tests: Likewise.
61361         * modules/gc-des-tests: Likewise.
61362         * modules/gc-hmac-md5-tests: Likewise.
61363         * modules/gc-hmac-sha1-tests: Likewise.
61364         * modules/gc-md2-tests: Likewise.
61365         * modules/gc-md4-tests: Likewise.
61366         * modules/gc-md5-tests: Likewise.
61367         * modules/gc-pbkdf2-sha1-tests: Likewise.
61368         * modules/gc-rijndael-tests: Likewise.
61369         * modules/gc-sha1-tests: Likewise.
61370         * modules/gc-tests: Likewise.
61371         * modules/getaddrinfo-tests: Likewise.
61372         * modules/hmac-md5-tests: Likewise.
61373         * modules/hmac-sha1-tests: Likewise.
61374         * modules/linked-list-tests: Likewise.
61375         * modules/linkedhash-list-tests: Likewise.
61376         * modules/lock-tests: Likewise.
61377         * modules/md2-tests: Likewise.
61378         * modules/md4-tests: Likewise.
61379         * modules/md5-tests: Likewise.
61380         * modules/rbtree-list-tests: Likewise.
61381         * modules/rbtree-oset-tests: Likewise.
61382         * modules/rbtreehash-list-tests: Likewise.
61383         * modules/read-file-tests: Likewise.
61384         * modules/rijndael-tests: Likewise.
61385         * modules/stdint-tests: Likewise.
61386         * modules/tls-tests: Likewise.
61387
61388 2007-02-24  Bruno Haible  <bruno@clisp.org>
61389
61390         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61391         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61392         function; instead check whether isnan with a double argument links.
61393         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61394         function; instead check whether isnan with a 'long double' argument
61395         links.
61396         Reported by Eric Blake <ebb9@byu.net>.
61397
61398 2007-02-24  Bruno Haible  <bruno@clisp.org>
61399
61400         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61401         defined.
61402         * lib/isnanl.c: Remove all code. Just include isnan.c.
61403         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61404
61405 2007-02-25  Jim Meyering  <jim@meyering.net>
61406
61407         Avoid conflicting types for 'unsetenv' on FreeBSD.
61408         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61409         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61410         in stdlib.h.
61411
61412 2007-02-24  Bruno Haible  <bruno@clisp.org>
61413
61414         * modules/isnanl-nolibm-tests: New file.
61415         * tests/test-isnanl.c: New file.
61416
61417         * modules/isnanl-nolibm: New file.
61418         * lib/isnanl.h: New file.
61419         * lib/isnanl.c: New file.
61420         * m4/isnanl.m4: New file.
61421
61422 2007-02-24  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/isnan-nolibm-tests: New file.
61425         * tests/test-isnan.c: New file.
61426
61427         * modules/isnan-nolibm: New file.
61428         * lib/isnan.h: New file.
61429         * lib/isnan.c: New file.
61430         * m4/isnan.m4: New file.
61431
61432 2007-02-24  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61435         assume that an exponent fits in 20 bits.
61436
61437 2007-02-24  Jim Meyering  <jim@meyering.net>
61438
61439         * m4/regex.m4: Update the description of the configure-time option,
61440         --without-included-regex, to state accurately what the defaults are,
61441         and perhaps to give people an idea why using this option is risky.
61442
61443 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61446         loops on small arguments.  This attempts to avoid the problem
61447         Bruno Haible reported for AIX 4.3.2 in
61448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61449
61450 2007-02-23  Bruno Haible  <bruno@clisp.org>
61451
61452         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61453         Needed for help2man.
61454
61455 2007-02-23  Karl Berry  <karl@gnu.org>
61456
61457         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61458         exists, foo.h should be cvs-ignored, not committed.
61459
61460 2007-02-23  Eric Blake  <ebb9@byu.net>
61461
61462         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61463         * lib/stat-time.h (includes): Likewise.
61464         * lib/utimecmp.c (includes): Likewise.
61465         * lib/utimens.h (includes): Likewise.
61466         * lib/getdate.y (includes): Also include "timespec.h" for use
61467         internal to the module.
61468         * modules/utimens (Depends-on): Revert yesterday's patch.
61469         * modules/nanosleep (Depends-on): Add missing dependency.
61470
61471 2007-02-22  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/glob.c: Don't include getlogin_r.h.
61474
61475 2007-02-22  Jim Meyering  <jim@meyering.net>
61476
61477         * modules/utimens (Depends-on): Add timespec, required for
61478         utimens.h's inclusion of timespec.h.
61479
61480 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61481
61482         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61483         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61484         Schwab in
61485         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61486         I'll try to think of a better way to fix the Solaris problem.
61487
61488         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61489         like glibc; on Solaris 10, it fails with errno == EINVAL.
61490         POSIX says the behavior is unspecified if the first argument is NULL,
61491         so play it safe and never pass NULL to the system getcwd.
61492
61493 2007-02-21  Jim Meyering  <jim@meyering.net>
61494
61495         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61496         of gettimeofday.  It would conflict with the one now always
61497         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61498         an IRIX 6.5 build failure.
61499
61500 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61501
61502         Minor fixups to port to Solaris 10 with Sun C 5.8.
61503         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61504         * modules/getcwd (Depends-on): Add dirfd.
61505         * lib/putenv.c (putenv): #undef it.
61506         (rpl_putenv): New decl.
61507         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61508
61509 2007-02-20  Bruno Haible  <bruno@clisp.org>
61510
61511         * modules/stdio-tests: New file.
61512         * tests/test-stdio.c: New file.
61513
61514         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61515         (Depends-on): Add stdio.
61516         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61517         (Include): Use <stdio.h> instead of vsnprintf.h.
61518         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61519         HAVE_DECL_VSNPRINTF.
61520         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61521
61522         * modules/snprintf (Files): Remove lib/snprintf.h.
61523         (Depends-on): Add stdio.
61524         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61525         (Include): Use <stdio.h> instead of snprintf.h.
61526         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61527         HAVE_DECL_SNPRINTF.
61528         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61529         * lib/getaddrinfo.c: Likewise.
61530
61531         * modules/stdio: New file.
61532         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61533         * lib/snprintf.h: Remove file.
61534         * lib/vsnprintf.h: Remove file.
61535         * lib/.cppi-disable: Remove snprintf.h.
61536         * m4/stdio_h.m4: New file.
61537         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61538
61539 2007-02-20  Jim Meyering  <jim@meyering.net>
61540
61541         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61542         used by e.g., mingw.  From Bruno Haible.
61543
61544 2007-02-19  Bruno Haible  <bruno@clisp.org>
61545
61546         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61547         warnings.
61548         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61549
61550 2007-02-19  Bruno Haible  <bruno@clisp.org>
61551
61552         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61553         from mingw users.
61554
61555 2007-02-19  Bruno Haible  <bruno@clisp.org>
61556
61557         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61558         warnings.
61559         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61560
61561 2007-02-19  Jim Meyering  <jim@meyering.net>
61562
61563         Don't use FD after a successful "fdopendir (fd)".
61564         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61565         Reset it by calling dirfd on the just-obtained DIR*.
61566
61567         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61568         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61569
61570 2007-02-18  Bruno Haible  <bruno@clisp.org>
61571
61572         * lib/readlink.c: Include <unistd.h>.
61573         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61574         HAVE_READLINK.
61575         * modules/readlink (Depends-on): Add unistd.
61576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61577         (Include): Add <unistd.h>.
61578
61579         * lib/getlogin_r.h: Remove file.
61580         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61581         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61582         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61583         HAVE_DECL_GETLOGIN_R.
61584         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61585         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61586         (Include): Use <unistd.h> instead of getlogin_r.h.
61587
61588         * lib/getcwd.h: Remove file.
61589         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61590         * lib/xgetcwd.c: Likewise.
61591         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61592         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61593         * modules/getcwd (Files): Remove lib/getcwd.h.
61594         (Depends-on): Add unistd.
61595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61596         (Include): Use <unistd.h> instad of getcwd.h.
61597
61598         * lib/ftruncate.c: Include <unistd.h> first.
61599         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61600         Set HAVE_FTRUNCATE.
61601         * modules/ftruncate (Depends-on): Add unistd.
61602         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61603
61604         * lib/fchdir.c: Include <unistd.h> first.
61605         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61607         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61608         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61609         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61610
61611         * lib/dup2.c: Include <unistd.h> first.
61612         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61613         HAVE_DUP2.
61614         * modules/dup2 (Depends-on): Add unistd.
61615         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61616
61617         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61618         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61619         REPLACE_CHOWN. Don't define chown as a macro here.
61620         * modules/chown (Depends-on): Add unistd.
61621         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61622
61623         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61624         Add definition for GL_LINK_WARNING.
61625         (chown, dup2): New declarations.
61626         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61627         link warning.
61628         (ftruncate): New declaration.
61629         (getcwd): New declaration, taken from old getcwd.h.
61630         (getlogin_r): New declaration, taken from old getlogin_r.h.
61631         (readlink): New declaration.
61632         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61633         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61634         (gl_PREREQ_UNISTD): Remove macro.
61635         (gl_UNISTD_MODULE_INDICATOR): New macro.
61636         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61637         many new variables. Don't set UNISTD_H.
61638         * modules/unistd (Description): Change.
61639         (Depends-on): Add link-warning.
61640         (configure.ac): Update.
61641         (Makefile.am): Create unistd.h always. Substitute many new variables
61642         into it.
61643
61644 2007-02-18  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61647         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61648         HAVE_GETSUBOPT.
61649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61650         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61651         * lib/getsubopt.h: Remove file.
61652         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61653         (Depends-on): Add stdlib.
61654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61655         (Includes): Use <stdlib.h> instead of getsubopt.h.
61656         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61657         Set HAVE_GETSUBOPT.
61658         * lib/getsubopt.c: Don't include getsubopt.h.
61659
61660 2007-02-18  Bruno Haible  <bruno@clisp.org>
61661
61662         * modules/fchdir (Depends-on): Add dup2.
61663
61664 2007-02-18  Bruno Haible  <bruno@clisp.org>
61665
61666         * lib/stdlib_.h: Handle glibc's special invocation convention
61667         specially.
61668
61669 2007-02-18  Bruno Haible  <bruno@clisp.org>
61670
61671         * modules/stdlib-tests: New file.
61672         * tests/test-stdlib.c: New file.
61673
61674         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61675         (Depends-on): Add stdlib.
61676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61677         (Includes): Use <stdlib.h> instead of mkstemp.h.
61678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61679         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61680         * lib/mkstemp.c: Don't include mkstemp.h.
61681         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61682         * lib/stdlib--.h: Don't include mkstemp.h.
61683
61684         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61685         (Depends-on): Add stdlib.
61686         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61687         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61688         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61689         HAVE_MKDTEMP.
61690         * lib/mkdtemp.c: Don't include mkdtemp.h.
61691         * lib/clean-temp.c: Don't include mkdtemp.h.
61692
61693         * modules/exit (Files): Remove lib/exit.h.
61694         (Depends-on): Add stdlib.
61695         (Makefile.am): Remove lib_SOURCES.
61696         (Include): Use <stdlib.h> instead of exit.h.
61697         * lib/argmatch.c: Don't include exit.h.
61698         * lib/execute.c: Likewise.
61699         * lib/pagealign_alloc.c: Likewise.
61700         * lib/pipe.c: Likewise.
61701         * lib/wait-process.c: Likewise.
61702         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61703         * lib/exitfail.c: Likewise.
61704         * lib/savewd.c: Likewise.
61705         * lib/xsetenv.c: Likewise.
61706
61707         * modules/stdlib: New file.
61708         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61709         and extra comments about mkstemp().
61710         * lib/exit.h: Remove file.
61711         * lib/mkdtemp.h: Remove file.
61712         * lib/mkstemp.h: Remove file.
61713         * m4/stdlib_h.m4: New file.
61714         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61715
61716 2007-02-18  Bruno Haible  <bruno@clisp.org>
61717
61718         * modules/math-tests: New file.
61719         * tests/test-math.c: New file.
61720
61721         * modules/math: New file.
61722         * modules/mathl (Files): Remove lib/mathl.h.
61723         (Depends-on): Add math.
61724         (Makefile.am): Don't mention mathl.h.
61725         (Include): Use <math.h> instead of mathl.h.
61726         * lib/math_.h: New file.
61727         * lib/mathl.h: Remove file.
61728         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61729         mathl.h.
61730         * lib/asinl.c: Likewise.
61731         * lib/atanl.c: Likewise.
61732         * lib/ceill.c: Likewise.
61733         * lib/cosl.c: Likewise.
61734         * lib/expl.c: Likewise.
61735         * lib/floorl.c: Likewise.
61736         * lib/frexpl.c: Likewise.
61737         * lib/ldexpl.c: Likewise.
61738         * lib/logl.c: Likewise.
61739         * lib/sincosl.c: Likewise.
61740         * lib/sinl.c: Likewise.
61741         * lib/sqrtl.c: Likewise.
61742         * lib/tanl.c: Likewise.
61743         * lib/trigl.c: Likewise.
61744         * m4/math_h.m4: New file.
61745         * MODULES.html.sh (Mathematics): Add math.
61746
61747 2007-02-17  Bruno Haible  <bruno@clisp.org>
61748
61749         * modules/wctype-tests: New file.
61750         * tests/test-wctype.c: New file.
61751
61752         * modules/wchar-tests: New file.
61753         * tests/test-wchar.c: New file.
61754
61755         * modules/unistd-tests: New file.
61756         * tests/test-unistd.c: New file.
61757
61758         * modules/time-tests: New file.
61759         * tests/test-time.c: New file.
61760
61761         * modules/sysexits-tests: New file.
61762         * tests/test-sysexits.c: New file.
61763
61764         * modules/sys_time-tests: New file.
61765         * tests/test-sys_time.c: New file.
61766
61767         * modules/sys_stat-tests: New file.
61768         * tests/test-sys_stat.c: New file.
61769
61770         * modules/sys_socket-tests: New file.
61771         * tests/test-sys_socket.c: New file.
61772
61773         * modules/sys_select-tests: New file.
61774         * tests/test-sys_select.c: New file.
61775
61776         * modules/string-tests: New file.
61777         * tests/test-string.c: New file.
61778
61779         * modules/stdbool-tests: New file.
61780         * tests/test-stdbool.c: New file.
61781
61782         * modules/netinet_in-tests: New file.
61783         * tests/test-netinet_in.c: New file.
61784
61785         * modules/inttypes-tests: New file.
61786         * tests/test-inttypes.c: New file.
61787
61788         * modules/fcntl-tests: New file.
61789         * tests/test-fcntl.c: New file.
61790
61791         * modules/byteswap-tests: New file.
61792         * tests/test-byteswap.c: New file.
61793
61794         * modules/arpa_inet-tests: New file.
61795         * tests/test-arpa_inet.c: New file.
61796
61797 2007-02-17  Bruno Haible  <bruno@clisp.org>
61798
61799         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61800         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61801         if the corresponding module is not enabled. Emit link warnings if
61802         the function is used nevertheless.
61803         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61804         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61805         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61806         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61807         * modules/inttypes (Depends-on): Add link-warning.
61808         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61809         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61810         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61811         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61812         * modules/imaxdiv (configure.ac): Likewise.
61813         * modules/strtoimax (configure.ac): Likewise.
61814         * modules/strtoumax (configure.ac): Likewise.
61815
61816 2007-02-17  Bruno Haible  <bruno@clisp.org>
61817
61818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61819         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61820         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61821         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61822
61823 2007-02-17  Bruno Haible  <bruno@clisp.org>
61824
61825         * modules/link-warning: New file.
61826         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61827         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61828         * modules/string (Depends-on): Add link-warning.
61829         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61830         string.h.
61831         * MODULES.html.sh (Support for building libraries and executables): Add
61832         link-warning.
61833
61834 2007-02-17  Bruno Haible  <bruno@clisp.org>
61835
61836         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61837         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61838         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61839         long lines.
61840
61841 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61842             Bruno Haible  <bruno@clisp.org>
61843
61844         * modules/tmpfile: New file.
61845         * lib/tmpfile.c: New file.
61846         * m4/tmpfile.m4: New file.
61847         * MODULES.html.sh (func_all_modules): New section "Input/output".
61848
61849 2007-02-15  Bruno Haible  <bruno@clisp.org>
61850
61851         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61852         (supports_delete_on_close): New function.
61853         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61854
61855 2007-02-14  Bruno Haible  <bruno@clisp.org>
61856
61857         * modules/mbspcasecmp-tests: New file.
61858         * tests/test-mbspcasecmp.sh: New file.
61859         * tests/test-mbspcasecmp.c: New file.
61860
61861         New module mbspcasecmp.
61862         * modules/mbspcasecmp: New file.
61863         * lib/mbspcasecmp.c: New file.
61864         * lib/string_.h (strncasecmp): Change warning message.
61865         (mbspcasecmp): New declaration.
61866         * m4/mbspcasecmp.m4: New file.
61867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61868         GNULIB_MBSPCASECMP.
61869         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61870         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61871
61872 2007-02-14  Bruno Haible  <bruno@clisp.org>
61873
61874         * modules/mbsncasecmp-tests: New file.
61875         * tests/test-mbsncasecmp.sh: New file.
61876         * tests/test-mbsncasecmp.c: New file.
61877
61878         New module mbsncasecmp.
61879         * modules/mbsncasecmp: New file.
61880         * lib/mbsncasecmp.c: New file.
61881         * lib/string_.h (mbsncasecmp): New declaration.
61882         * m4/mbsncasecmp.m4: New file.
61883         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61884         GNULIB_MBSNCASECMP.
61885         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61886         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61887
61888 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61889
61890         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61891         Verify that it doesn't overlap with our flags.
61892         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61893         do not have the desired effect in multibyte locales; instead, use
61894         mbscasecmp.
61895         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61896         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61897         we don't require GNU fnmatch ourselves (if our users require it, they
61898         should do so explicitly).
61899
61900         Fix regex code so it doesn't rely on strcasecmp.
61901         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61902         Otherwise, include gnulib's langinfo.h.
61903         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61904         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61905         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61906         * modules/regex (FILES): Remove m4/codeset.m4.
61907         (Depends-on): Add localcharset.  Remove strcase.
61908
61909 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61910
61911         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61912         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61913
61914 2007-02-13  Bruno Haible  <bruno@clisp.org>
61915
61916         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61918
61919 2007-02-12  Bruno Haible  <bruno@clisp.org>
61920
61921         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61922         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61923         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61924         time warning rather than a link error.
61925
61926 2007-02-12  Bruno Haible  <bruno@clisp.org>
61927
61928         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61930         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61931
61932 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61935         args, not 2.
61936
61937 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         New module 'time', so that apps can include <time.h> as per
61940         POSIX and GNU instead of separate include files like time_r.h
61941         and timegm.h.  This implementation tries out a simpler approach
61942         for replacing decls in standard include files (as compared to
61943         the string module), somewhat as an experiment.
61944
61945         * config/srclist.txt: Comment out mktime.c for now.
61946         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61947         since it doesn't apply any more.  Use generic wording instead.
61948         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61949         'time'.
61950         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61951         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61952         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61953         Don't include <sys/types.h>; no longer needed since we assume C89.
61954         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61955         * lib/strftime.c: Likewise.
61956         * lib/time_r.c: Likewise.
61957         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61958         * lib/nanosleep.c: Include <time.h> first, to check interface.
61959         * lib/strptime.c: Likewise.
61960         * lib/time_r.c: Likewise.
61961         * lib/timegm.c: Likewise.
61962         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61963         needed.
61964         * lib/timegm.c: Don't include timegm.h; no longer needed.
61965         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61966         time.h now handles any problems in that area.
61967         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61968         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61969         that time.h defines struct timespec.
61970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61971         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61972         handles that.
61973         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61974         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61975         needed.  Set REPLACE_LOCALTIME.
61976         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61977         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61978         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61979         nanosleep; time_h.m4 now does that.  Don't require
61980         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61981         module handles this now.
61982         * modules/getdate (Depends-on): Remove timespec.  Add time.
61983         * modules/nanosleep (Depends-on): Likewise.
61984         * modules/stat-time (Depends-on): Likewise.
61985         * modules/nanosleep (Include): Include time.h, not timespec.h.
61986         * modules/strptime (Files): Remove lib/strptime.h.
61987         (Depends-on): Add extensions, time.
61988         (Include): Include time.h, not strptime.h.
61989         * modules/time_r (Files): Remove lib/time_r.h.
61990         (Depends-on): Add time.
61991         (Include): Include time.h, not time_r.h.
61992         * modules/timegm: Likewise.
61993         * modules/timespec (Description): Now does timespec-related decls
61994         of our own, instead of struct timespec itself.
61995         (Depends-on): Add time; remove extensions.
61996         (Maintainer): Add self.
61997         * modules/utimecmp (Depends-on): Add time; remove timespec.
61998         * modules/utimens (Depends-on): Likewise.
61999         * modules/xnanosleep (Depends-on): Likewise.
62000
62001 2007-02-11  Bruno Haible  <bruno@clisp.org>
62002
62003         * lib/c-strstr.c: Include allocsa.h.
62004         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62005         * lib/c-strcasestr.c: Include allocsa.h.
62006         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62007         * lib/strcasestr.c: Include allocsa.h.
62008         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62009         * lib/mbsstr.c: Include allocsa.h.
62010         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62011         allocsa/freesa instead of malloc/free.
62012         * lib/mbscasestr.c: Include allocsa.h.
62013         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62014         allocsa/freesa instead of malloc/free.
62015         * modules/c-strstr (Depends-on): Add allocsa.
62016         * modules/c-strcasestr (Depends-on): Likewise.
62017         * modules/strcasestr (Depends-on): Likewise.
62018         * modules/mbsstr (Depends-on): Likewise.
62019         * modules/mbscasestr (Depends-on): Likewise.
62020
62021 2007-02-11  Bruno Haible  <bruno@clisp.org>
62022
62023         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62024
62025         * modules/mbsspn-tests: New file.
62026         * tests/test-mbsspn.sh: New file.
62027         * tests/test-mbsspn.c: New file.
62028
62029 2007-02-11  Bruno Haible  <bruno@clisp.org>
62030
62031         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62032
62033         * modules/mbspbrk-tests: New file.
62034         * tests/test-mbspbrk.sh: New file.
62035         * tests/test-mbspbrk.c: New file.
62036
62037 2007-02-11  Bruno Haible  <bruno@clisp.org>
62038
62039         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62040         unneeded cast.
62041
62042         * modules/mbscspn-tests: New file.
62043         * tests/test-mbscspn.sh: New file.
62044         * tests/test-mbscspn.c: New file.
62045
62046 2007-02-11  Bruno Haible  <bruno@clisp.org>
62047
62048         * modules/mbscasecmp-tests: New file.
62049         * tests/test-mbscasecmp.sh: New file.
62050         * tests/test-mbscasecmp.c: New file.
62051
62052 2007-02-11  Bruno Haible  <bruno@clisp.org>
62053
62054         Ensure O(n) worst-case complexity of mbscasestr.
62055         * lib/mbscasestr.c: Include stdbool.h.
62056         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62057         functions.
62058         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62059         the bookkeeping indicates that it's worth it.
62060         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62061
62062         * modules/mbscasestr-tests: New file.
62063         * tests/test-mbscasestr1.c: New file.
62064         * tests/test-mbscasestr2.sh: New file.
62065         * tests/test-mbscasestr2.c: New file.
62066         * tests/test-mbscasestr3.sh: New file.
62067         * tests/test-mbscasestr3.c: New file.
62068         * tests/test-mbscasestr4.sh: New file.
62069         * tests/test-mbscasestr4.c: New file.
62070         * m4/locale-tr.m4: New file.
62071
62072 2007-02-11  Bruno Haible  <bruno@clisp.org>
62073
62074         Ensure O(n) worst-case complexity of mbsstr.
62075         * lib/mbsstr.c: Include stdbool.h.
62076         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62077         functions.
62078         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62079         bookkeeping indicates that it's worth it.
62080         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62081
62082         * modules/mbsstr-tests: New file.
62083         * tests/test-mbsstr1.c: New file.
62084         * tests/test-mbsstr2.sh: New file.
62085         * tests/test-mbsstr2.c: New file.
62086         * tests/test-mbsstr3.sh: New file.
62087         * tests/test-mbsstr3.c: New file.
62088         * m4/locale-fr.m4: New file.
62089
62090 2007-02-11  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/mbsrchr.c (mbsrchr): Fix bug.
62093
62094         * modules/mbsrchr-tests: New file.
62095         * tests/test-mbsrchr.sh: New file.
62096         * tests/test-mbsrchr.c: New file.
62097
62098 2007-02-11  Bruno Haible  <bruno@clisp.org>
62099
62100         * lib/mbschr.c (mbschr): Fix bug.
62101
62102         * modules/mbschr-tests: New file.
62103         * tests/test-mbschr.sh: New file.
62104         * tests/test-mbschr.c: New file.
62105         * m4/locale-zh.m4: New file.
62106
62107 2007-02-11  Bruno Haible  <bruno@clisp.org>
62108
62109         Support for copying multibyte string iterators.
62110         * lib/mbiter.h: Include <string.h>.
62111         (mbiter_multi_copy): New function.
62112         (mbi_copy): New macro.
62113         * lib/mbuiter.h: Include <string.h>.
62114         (mbuiter_multi_copy): New function.
62115         (mbui_copy): New macro.
62116
62117 2007-02-11  Bruno Haible  <bruno@clisp.org>
62118
62119         New module mbslen.
62120         * modules/mbslen: New file.
62121         * lib/mbslen.c: New file.
62122         * lib/string_.h (mbslen): New declaration.
62123         * m4/mbslen.m4: New file.
62124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62125         GNULIB_MBSLEN.
62126         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62127         * MODULES.html.sh (Internationalization functions): Add mbslen.
62128
62129 2007-02-11  Bruno Haible  <bruno@clisp.org>
62130
62131         Ensure O(n) worst-case complexity of strcasestr substitute.
62132         * lib/strcasestr.c: Include stdbool.h.
62133         (knuth_morris_pratt): New function.
62134         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62135         bookkeeping indicates that it's worth it.
62136         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62137
62138         * modules/strcasestr-tests: New file.
62139         * tests/test-strcasestr.c: New file.
62140
62141 2007-02-11  Bruno Haible  <bruno@clisp.org>
62142
62143         Ensure O(n) worst-case complexity of c_strcasestr.
62144         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62145         (knuth_morris_pratt): New function.
62146         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62147         the bookkeeping indicates that it's worth it.
62148         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62149
62150         * modules/c-strcasestr-tests: New file.
62151         * tests/test-c-strcasestr.c: New file.
62152
62153 2007-02-11  Bruno Haible  <bruno@clisp.org>
62154
62155         Ensure O(n) worst-case complexity of c_strstr.
62156         * lib/c-strstr.c: Include stdbool.h, string.h.
62157         (knuth_morris_pratt): New function.
62158         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62159         bookkeeping indicates that it's worth it.
62160         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62161
62162         * lib/c-strstr.c: Complete rewrite for maintainability.
62163
62164         * modules/c-strstr-tests: New file.
62165         * tests/test-c-strstr.c: New file.
62166
62167 2007-02-11  Bruno Haible  <bruno@clisp.org>
62168
62169         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62170         5.2.1 and earlier, whereby \055 was treated just like the range
62171         delimiter '-'.
62172         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62173
62174 2007-02-08  Bruno Haible  <bruno@clisp.org>
62175
62176         * modules/regex (Depends-on): Add stdbool.
62177         Reported by Dalibor Topic <robilad@kaffe.org>.
62178
62179 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62182         Prefer returning from main to exiting from it.
62183         Remove unnecessary parens after sizeof.
62184
62185 2007-02-05  Bruno Haible  <bruno@clisp.org>
62186
62187         New module mbssep.
62188         * modules/mbssep: New file.
62189         * lib/mbssep.c: New file.
62190         * lib/string_.h (strsep): Add a conditional link warning.
62191         (mbssep): New declaration.
62192         * m4/mbssep.m4: New file.
62193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62194         GNULIB_MBSSEP.
62195         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62196         * MODULES.html.sh (Internationalization functions): Add mbssep.
62197
62198 2007-02-05  Bruno Haible  <bruno@clisp.org>
62199
62200         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62201         Optimize search in case of 1 delimiter.
62202
62203 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62204
62205         * lib/acl.h: Include sys/types.h before sys/acl.h.
62206
62207 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62208
62209         Merge upstream fix for glibc bugzilla #3957:
62210
62211         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62212
62213         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62214         bit for RE_HAT_LISTS_NOT_NEWLINE.
62215         (build_charclass_op): Remove bogus comment.
62216
62217 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62218
62219         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62220
62221 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62222
62223         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62224         * lib/memmem.c [!defined _LIBC]: Include config.h.
62225
62226 2007-02-04  Bruno Haible  <bruno@clisp.org>
62227
62228         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62229         warning message.
62230
62231 2007-02-04  Bruno Haible  <bruno@clisp.org>
62232
62233         New module mbstok_r.
62234         * modules/mbstok_r: New file.
62235         * lib/mbstok_r.c: New file.
62236         * lib/string_.h (strtok_r): Change argument names to match the
62237         comments. Add a conditional link warning.
62238         (mbstok_r): New declaration.
62239         * m4/mbstok_r.m4: New file.
62240         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62241         GNULIB_MBSTOK_R.
62242         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62243         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62244
62245 2007-02-04  Bruno Haible  <bruno@clisp.org>
62246
62247         New module mbsspn.
62248         * modules/mbsspn: New file.
62249         * lib/mbsspn.c: New file.
62250         * lib/string_.h (strspn): Add a conditional link warning.
62251         (mbsspn): New declaration.
62252         * m4/mbsspn.m4: New file.
62253         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62254         GNULIB_MBSSPN.
62255         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62256         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62257
62258 2007-02-04  Bruno Haible  <bruno@clisp.org>
62259
62260         New module mbspbrk.
62261         * modules/mbspbrk: New file.
62262         * lib/mbspbrk.c: New file.
62263         * lib/string_.h (strpbrk): Add a conditional link warning.
62264         (mbspbrk): New declaration.
62265         * m4/mbspbrk.m4: New file.
62266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62267         GNULIB_MBSPBRK.
62268         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62269         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62270
62271 2007-02-04  Bruno Haible  <bruno@clisp.org>
62272
62273         New module mbscspn.
62274         * modules/mbscspn: New file.
62275         * lib/mbscspn.c: New file.
62276         * lib/string_.h (strcspn): Add a conditional link warning.
62277         (mbscspn): New declaration.
62278         * m4/mbscspn.m4: New file.
62279         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62280         GNULIB_MBSCSPN.
62281         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62282         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62283
62284 2007-02-04  Bruno Haible  <bruno@clisp.org>
62285
62286         New module mbscasestr, reduced goal of strcasestr.
62287         * modules/mbscasestr: New file.
62288         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62289         (mbscasestr): Renamed from strcasestr.
62290         * lib/strcasestr.c: Don't include mbuiter.h.
62291         (strcasestr): Remove support for multibyte locales.
62292         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62293         Change the conditional link warning.
62294         (mbscasestr): New declaration.
62295         * m4/mbscasestr.m4: New file.
62296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62297         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62298         REPLACE_STRCASESTR.
62299         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62301         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62302         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62303         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62304         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62305         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62306         (Depends-on): Remove mbuiter.
62307         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62308
62309 2007-02-04  Bruno Haible  <bruno@clisp.org>
62310
62311         Simplify handling of strncasecmp.
62312         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62313         the conditional link warning.
62314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62315         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62316         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62317         * modules/strcase (configure.ac): Don't invoke
62318         gl_STRING_MODULE_INDICATOR.
62319         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62320
62321 2007-02-04  Bruno Haible  <bruno@clisp.org>
62322
62323         New module mbscasecmp, reduced goal of strcasecmp.
62324         * modules/mbscasecmp: New file.
62325         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62326         (mbscasecmp): Renamed from strcasecmp.
62327         * lib/strcasecmp.c: Don't include mbuiter.h.
62328         (strcasecmp): Remove support for multibyte locales.
62329         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62330         Change the conditional link warning.
62331         (mbscasecmp): New declaration.
62332         * m4/mbscasecmp.m4: New file.
62333         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62334         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62335         REPLACE_STRCASECMP.
62336         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62338         GNULIB_MBSCASECMP.
62339         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62340         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62341         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62342         (Depends-on): Remove mbuiter.
62343         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62344
62345 2007-02-04  Bruno Haible  <bruno@clisp.org>
62346
62347         New module mbsstr. Remove module strstr.
62348         * modules/mbsstr: New file.
62349         * modules/strstr: Remove file.
62350         * lib/mbsstr.c: Renamed from lib/strstr.c.
62351         (mbsstr): Renamed from strstr.
62352         * lib/string_.h (strstr): Remove declaration. Change the conditional
62353         link warning.
62354         (mbsstr): New declaration.
62355         * m4/mbsstr.m4: New file.
62356         * m4/strstr.m4: Remove file.
62357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62358         REPLACE_STRSTR.
62359         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62360         Don't initialize GNULIB_STRSTR.
62361         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62362         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62363         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62364         (Support for systems lacking ANSI C 89): Remove strstr.
62365
62366 2007-02-04  Bruno Haible  <bruno@clisp.org>
62367
62368         New module mbsrchr.
62369         * modules/mbsrchr: New file.
62370         * lib/mbsrchr.c: New file.
62371         * lib/string_.h (strrchr): Add a conditional link warning.
62372         (mbsrchr): New declaration.
62373         * m4/mbsrchr.m4: New file.
62374         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62375         GNULIB_MBSRCHR.
62376         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62377         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62378
62379 2007-02-04  Bruno Haible  <bruno@clisp.org>
62380
62381         New module mbschr.
62382         * modules/mbschr: New file.
62383         * lib/mbschr.c: New file.
62384         * lib/string_.h (strchr): Add a conditional link warning.
62385         (mbschr): New declaration.
62386         * m4/mbschr.m4: New file.
62387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62388         GNULIB_MBSCHR.
62389         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62390         * MODULES.html.sh (Internationalization functions): Add mbschr.
62391
62392 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62395
62396         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62397
62398 2007-02-04  Bruno Haible  <bruno@clisp.org>
62399
62400         New module description section 'configure.ac-early'.
62401         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62402         (func_get_autoconf_early_snippet): New function.
62403         (func_import, func_create_testdir): Use it. Remove special cases for
62404         modules 'extensions' and 'lock'.
62405         * modules/extensions (configure.ac-early): Require
62406         gl_USE_SYSTEM_EXTENSIONS.
62407         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62408
62409 2007-02-04  Bruno Haible  <bruno@clisp.org>
62410
62411         Make use of gcj-4.3's -fsource and -ftarget option.
62412         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62413         and if so try the options -fsource and -ftarget.
62414         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62415         source_version, ftarget_option, target_version arguments.
62416         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62417         (is_envjavac_oldgcj_14_14_usable): Renamed from
62418         is_envjavac_gcj_14_14_usable.
62419         (is_envjavac_oldgcj_14_13_usable): Renamed from
62420         is_envjavac_gcj_14_13_usable.
62421         (is_gcj_present): Update.
62422         (is_gcj_43, is_gcj43_usable): New functions.
62423         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62424         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62425         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62426         try the options -fsource and -ftarget.
62427
62428 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62429
62430         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62431         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62432         larger value.
62433
62434 2007-02-03  Jim Meyering  <jim@meyering.net>
62435
62436         Give tools a better chance to allocate space for very large buffers.
62437         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62438
62439         Make pwd and readlink work also when run with an unreadable parent dir
62440         on systems with openat support.
62441         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62442         provided getcwd function, even when we have openat support.
62443         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62444
62445 2007-02-02  Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62448         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62449         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62450         portability problems if one of these functions is only used on specific
62451         platforms.
62452         Reported by Paul Eggert.
62453
62454 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62457         is causing more trouble than it's curing.
62458         * lib/regex_internal.h (__mempcpy): Remove.
62459         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62460         (and make the code a tad smaller to boot).
62461         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62462
62463 2007-02-02  Jim Meyering  <jim@meyering.net>
62464
62465         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62466         section, not in the Makefile.am: one.
62467
62468 2007-02-02  Eric Blake  <ebb9@byu.net>
62469
62470         * lib/strchrnul.c: Always include config.h first.
62471
62472         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62473         gnulib strstr is not necessary here.
62474
62475 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62476
62477         * m4/socklen.m4: Fix typo.
62478
62479 2007-02-02  Eric Blake  <ebb9@byu.net>
62480
62481         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62482         * modules/netinet_in (Makefile.am): Likewise.
62483
62484 2007-02-01  Bruno Haible  <bruno@clisp.org>
62485
62486         * lib/string_.h (GL_LINK_WARNING): New macro.
62487         (strcasecmp, strstr, strcasestr): If provided by the system,
62488         conditionally define as a macro that leads to a warning instead of to
62489         an error.
62490         (strncasecmp): Conditionally define as a macro that leads to a warning.
62491
62492 2007-02-01  Karl Berry  <karl@gnu.org>
62493
62494         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62495
62496 2007-02-01  Bruno Haible  <bruno@clisp.org>
62497
62498         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62499         renamings.
62500
62501 2007-02-01  Eric Blake  <ebb9@byu.net>
62502
62503         * modules/regex (Depends-on): Revert dependence on mempcpy.
62504         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62505         module's definition of mempcpy.
62506         Reported by Paul Eggert.
62507
62508 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62511         the symbol XYZ before redefining it.  This fixes a problem with
62512         programs that don't use XYZ, when compiled on systems that define
62513         XYZ to something else.
62514
62515 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62518         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62519         writeable to group or other and (2) is intended to have a special
62520         mode bit that is set or cleared.  In such a case, the directory
62521         should be neither group- nor other-writeable until the special
62522         mode bits are right.
62523
62524 2007-01-31  Eric Blake  <ebb9@byu.net>
62525
62526         * modules/mountlist (Depends-on): Add strstr.
62527
62528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62529         bug.
62530         * modules/string (Makefile.am): Remove redundant replacement.
62531         * modules/regex (Depends-on): Add mempcpy.
62532
62533 2007-01-31  Bruno Haible  <bruno@clisp.org>
62534
62535         New module description field 'Link'.
62536         * gnulib-tool (func_usage): Document --extract-link-directive.
62537         (sed_extract_prog): Recognize 'Link' directive.
62538         (func_get_link_directive): New function.
62539         (func_import): Show summary of link directives.
62540         Handle --extract-link-directive option.
62541         * modules/acl (Link): New section.
62542         * modules/clock-time (Link): New section.
62543         * modules/euidaccess (Link): New section.
62544         * modules/gettext (Link): New section.
62545         * modules/iconv (Link): New section.
62546         * modules/lock (Link): New section.
62547         * modules/nanosleep (Link): New section.
62548         * modules/readline (Link): New section.
62549
62550 2007-01-27  Bruno Haible  <bruno@clisp.org>
62551
62552         Enforce the use of gnulib modules for unportable <string.h> functions.
62553         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62554         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62555         (gl_HEADER_STRING_H_BODY): Require it.
62556         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62557         the symbol XYZ to one that gives a link error.
62558         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62559         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62560         * modules/mempcpy (configure.ac): Likewise.
62561         * modules/memrchr (configure.ac): Likewise.
62562         * modules/stpcpy (configure.ac): Likewise.
62563         * modules/stpncpy (configure.ac): Likewise.
62564         * modules/strcase (configure.ac): Likewise.
62565         * modules/strcasestr (configure.ac): Likewise.
62566         * modules/strchrnul (configure.ac): Likewise.
62567         * modules/strdup (configure.ac): Likewise.
62568         * modules/strndup (configure.ac): Likewise.
62569         * modules/strnlen (configure.ac): Likewise.
62570         * modules/strpbrk (configure.ac): Likewise.
62571         * modules/strsep (configure.ac): Likewise.
62572         * modules/strstr (configure.ac): Likewise.
62573         * modules/strtok_r (configure.ac): Likewise.
62574
62575 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62576
62577         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62578
62579 2007-01-30  Jim Meyering  <jim@meyering.net>
62580
62581         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62582
62583 2007-01-29  Bruno Haible  <bruno@clisp.org>
62584
62585         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62586         * lib/execute.c: Likewise.
62587         * lib/pipe.c: Likewise.
62588         * lib/printf-args.h: Likewise.
62589         * lib/printf-args.c: Likewise.
62590         * lib/printf-parse.c: Likewise.
62591         * lib/vasnprintf.c: Likewise.
62592
62593 2007-01-29  Eric Blake  <ebb9@byu.net>
62594
62595         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62596         declaration.
62597
62598 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62599
62600         * lib/strptime.h (strptime): Use 'restrict' for args where
62601         POSIX requires this.
62602         * lib/strptime.c (strptime): Likewise.
62603         Change license notice from LGPL to GPL, since gnulib-tool will
62604         change this as needed.
62605         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62606         defined.
62607         Include "strptime.h" first, to check interface.
62608         Do not #undef _LIBC and _NL_CURRENT.
62609         Do not include <stdlib.h>; no longer needed.
62610         Include "time_r.h" and declare ptime_locale_status
62611         only if _LIBC is not defined.
62612         (__P): Remove unused macro.
62613         (match_string): Bring back glibc version, but use it only if _LIBC
62614         is defined.
62615         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62616         Remove unnecessary assertion and abort() call.
62617         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62618         * m4/strptime.m4: Fix serial number comment.
62619         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62620         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62621         (Depends-on): Add time_r.
62622
62623 2007-01-29  Bruno Haible  <bruno@clisp.org>
62624
62625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62626         strptime.
62627         * modules/strptime (Depends-on): Add stdbool.
62628         * lib/strptime.h: Include <time.h> always. Add comments.
62629
62630 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62631
62632         * modules/strptime: New file.
62633         * lib/strptime.h: New file.
62634         * lib/strptime.c: New file.
62635         * m4/strptime.m4: New file.
62636
62637 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * MODULES.html.sh: New module mpsort.
62640         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62641
62642         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62643         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62645         All uses changed.
62646         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62647         All uses changed.
62648         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62649         to _Restrict_.
62650         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62651         the parameter matches the prototype.
62652
62653 2007-01-28  Jim Meyering  <jim@meyering.net>
62654
62655         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62656         sys/time.h here, reverting that part of the previous patch:
62657         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62658
62659 2007-01-28  Bruno Haible  <bruno@clisp.org>
62660
62661         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62662         value of $(SYS_TIME_H).
62663         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62664         remove it conditionally, too. [added by Jim Meyering]
62665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62666         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62667         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62668         GETTIMEOFDAY_REPLACEMENT to 1.
62669
62670 2007-01-28  Bruno Haible  <bruno@clisp.org>
62671
62672         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62673         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62675         Set UNISTD_H instead of UNISTD_H2.
62676         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62677
62678 2007-01-28  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62681         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62682
62683 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62684
62685         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62686         (func_create_testdir): Ensure C locale for `grep' and `tr'
62687         character ranges.
62688         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62689         ACLOCAL_AMFLAGS parsing state machine.
62690
62691 2007-01-27  Bruno Haible  <bruno@clisp.org>
62692
62693         * modules/unistr/base: Update.
62694
62695 2007-01-27  Bruno Haible  <bruno@clisp.org>
62696
62697         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62698         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62699         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62700         modules/unistr/u32-mbtouc.
62701         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62702         * lib/unistr.h: Update.
62703         * lib/linebreak.c: Update.
62704         * modules/unistr/u32-mbtouc: Renamed from
62705         modules/unistr/u32-mbtouc-safe.
62706         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62707         * lib/unistr.h: Update.
62708         * lib/unistr/u32-to-u8.c: Update.
62709         * lib/unistr/u32-to-u16.c: Update.
62710
62711 2007-01-27  Bruno Haible  <bruno@clisp.org>
62712
62713         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62714         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62715         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62716         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62717         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62718         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62719         modules/unistr/u16-mbtouc.
62720         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62721         * lib/unistr.h: Update.
62722         * lib/linebreak.c: Update.
62723         * modules/linebreak: Update.
62724         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62725         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62726         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62727         * modules/unistr/u16-mbtouc: Renamed from
62728         modules/unistr/u16-mbtouc-safe.
62729         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62730         * lib/unistr.h: Update.
62731         * lib/unistr/u16-to-u8.c: Update.
62732         * modules/unistr/u16-to-u8: Update.
62733         * lib/unistr/u16-to-u32.c: Update.
62734         * modules/unistr/u16-to-u32: Update.
62735
62736 2007-01-27  Bruno Haible  <bruno@clisp.org>
62737
62738         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62739         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62740         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62741         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62742         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62743         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62744         modules/unistr/u8-mbtouc.
62745         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62746         * lib/unistr.h: Update.
62747         * lib/striconveh.c: Update.
62748         * modules/striconveh: Update.
62749         * lib/linebreak.c: Update.
62750         * modules/linebreak: Update.
62751         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62752         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62753         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62754         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62755         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62756         * lib/unistr.h: Update.
62757         * lib/striconveh.c: Update.
62758         * modules/striconveh: Update.
62759         * lib/unistr/u8-to-u16.c: Update.
62760         * modules/unistr/u8-to-u16: Update.
62761         * lib/unistr/u8-to-u32.c: Update.
62762         * modules/unistr/u8-to-u32: Update.
62763
62764 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62765
62766         Sync from Libtool.
62767         * lib/argz.c: Do not include strings.h nor memory.h, include
62768         string.h unconditionally.  Patch by Simon Josefsson.
62769
62770 2007-01-27  Bruno Haible  <bruno@clisp.org>
62771
62772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62773         from gl_HEADER_STRING_H_BODY.
62774         (gl_HEADER_STRING_H_BODY): Require it.
62775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62776         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62777         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62778         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62780         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62782         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62783         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62784         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62785         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62786         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62787         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62788         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62789         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62790
62791 2007-01-27  Bruno Haible  <bruno@clisp.org>
62792
62793         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62794         check_PROGRAMS into noinst_PROGRAMS.
62795         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62796         check_PROGRAMS in this case.
62797         (func_import): Set for_test to false.
62798         (func_create_testdir): Set for_test to true.
62799
62800 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62801             Bruno Haible  <bruno@clisp.org>
62802
62803         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62804         (Depends-on): Add string.
62805         (Includes): Use <string.h> instead of strcasestr.h.
62806         * modules/string (Makefile.am): Also substitute the value of
62807         REPLACE_STRCASESTR.
62808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62809         assume strcasestr is declared in <string.h> not <strings.h>. Also
62810         set REPLACE_STRCASESTR.
62811         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62812         REPLACE_STRCASESTR.
62813         * lib/strcasestr.h: Remove file.
62814         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62815         * lib/string_.h (strcasestr): New declaration.
62816
62817 2007-01-27  Bruno Haible  <bruno@clisp.org>
62818
62819         * lib/string_.h: Use 'extern'.
62820
62821 2007-01-27  Jim Meyering  <jim@meyering.net>
62822
62823         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62824         of set-but-not-used local, "q".
62825
62826         * lib/mempcpy.c: Include <config.h> before <string.h>.
62827         This fixes a compilation error on HP-UX, due to the system's
62828         "restrict"-using mempcpy prototype.
62829
62830 2007-01-26  Bruno Haible  <bruno@clisp.org>
62831
62832         Small optimization.
62833         * lib/javacomp.c: Include c-strstr.h.
62834          (is_envjavac_gcj): Use c_strstr instead of strstr.
62835         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62836
62837 2007-01-26  Bruno Haible  <bruno@clisp.org>
62838
62839         * MODULES.html.sh (Unicode string functions): Add the new modules.
62840
62841         * modules/uniconv/u32-strconv-to-locale: New file.
62842         * lib/uniconv/u32-strconv-to-locale.c: New file.
62843
62844         * modules/uniconv/u16-strconv-to-locale: New file.
62845         * lib/uniconv/u16-strconv-to-locale.c: New file.
62846
62847         * modules/uniconv/u8-strconv-to-locale: New file.
62848         * lib/uniconv/u8-strconv-to-locale.c: New file.
62849
62850         * modules/uniconv/u32-strconv-from-locale: New file.
62851         * lib/uniconv/u32-strconv-from-locale.c: New file.
62852
62853         * modules/uniconv/u16-strconv-from-locale: New file.
62854         * lib/uniconv/u16-strconv-from-locale.c: New file.
62855
62856         * modules/uniconv/u8-strconv-from-locale: New file.
62857         * lib/uniconv/u8-strconv-from-locale.c: New file.
62858
62859         * modules/uniconv/u32-strconv-to-enc: New file.
62860         * lib/uniconv/u32-strconv-to-enc.c: New file.
62861         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62862         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62863
62864         * modules/uniconv/u16-strconv-to-enc: New file.
62865         * lib/uniconv/u16-strconv-to-enc.c: New file.
62866         * lib/uniconv/u-strconv-to-enc.h: New file.
62867         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62868         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62869
62870         * modules/uniconv/u8-strconv-to-enc: New file.
62871         * lib/uniconv/u8-strconv-to-enc.c: New file.
62872         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62873         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62874
62875         * modules/uniconv/u32-strconv-from-enc: New file.
62876         * lib/uniconv/u32-strconv-from-enc.c: New file.
62877         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62878         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62879
62880         * modules/uniconv/u16-strconv-from-enc: New file.
62881         * lib/uniconv/u16-strconv-from-enc.c: New file.
62882         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62883         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62884
62885         * modules/uniconv/u8-strconv-from-enc: New file.
62886         * lib/uniconv/u8-strconv-from-enc.c: New file.
62887         * lib/uniconv/u-strconv-from-enc.h: New file.
62888         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62889         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62890
62891         * modules/uniconv/u32-conv-from-enc: New file.
62892         * lib/uniconv/u32-conv-from-enc.c: New file.
62893         * modules/uniconv/u32-conv-from-enc-tests: New file.
62894         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62895
62896         * modules/uniconv/u16-conv-from-enc: New file.
62897         * lib/uniconv/u16-conv-from-enc.c: New file.
62898         * lib/uniconv/u-conv-from-enc.h: New file.
62899         * modules/uniconv/u16-conv-from-enc-tests: New file.
62900         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62901
62902         * modules/uniconv/u8-conv-from-enc: New file.
62903         * lib/uniconv/u8-conv-from-enc.c: New file.
62904         * modules/uniconv/u8-conv-from-enc-tests: New file.
62905         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62906
62907         * modules/uniconv/base: New file.
62908         * lib/uniconv.h: New file.
62909
62910 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62911
62912         * doc/gnulib-tool.texi (Initial import): Update to match current
62913         behavior with strdup module.
62914         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62915         * lib/memmem.h: Remove; all uses removed.  This is now done
62916         by <string.h>.
62917         * lib/mempcpy.h: Likewise.
62918         * lib/memrchr.h: Likewise.
62919         * lib/stpcpy.h: Likewise.
62920         * lib/stpncpy.h: Likewise.
62921         * lib/strcase.h: Likewise.
62922         * lib/strchrnul.h: Likewise.
62923         * lib/strdup.h: Likewise.
62924         * lib/strndup.h: Likewise.
62925         * lib/strnlen.h: Likewise.
62926         * lib/strpbrk.h: Likewise.
62927         * lib/strsep.h: Likewise.
62928         * lib/strstr.h: Likewise.
62929         * lib/strtok_r.h: Likewise.
62930         * lib/string_.h: New file.
62931         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62932         Rely on <string.h> instead.
62933         * lib/canon-host.c: Likewise.
62934         * lib/chdir-long.c: Likewise.
62935         * lib/concatpath.c: Likewise.
62936         * lib/exclude.c: Likewise.
62937         * lib/fchdir.c: Likewise.
62938         * lib/getaddrinfo.c: Likewise.
62939         * lib/getcwd.c: Likewise.
62940         * lib/getsubopt.c: Likewise.
62941         * lib/glob.c: Likewise.
62942         * lib/hard-locale.c: Likewise.
62943         * lib/iconvme.c: Likewise.
62944         * lib/javacomp.c: Likewise.
62945         * lib/mempcpy.c: Likewise.
62946         * lib/memrchr.c: Likewise.
62947         * lib/regex_internal.h: Likewise.
62948         * lib/stpncpy.c: Likewise.
62949         * lib/strcasecmp.c: Likewise.
62950         * lib/strchrnul.c: Likewise.
62951         * lib/strdup.c: Likewise.
62952         * lib/striconv.c: Likewise.
62953         * lib/striconveh.c: Likewise.
62954         * lib/striconveha.c: Likewise.
62955         * lib/strncasecmp.c: Likewise.
62956         * lib/strndup.c: Likewise.
62957         * lib/strnlen.c: Likewise.
62958         * lib/strsep.c: Likewise.
62959         * lib/strstr.c: Likewise.
62960         * lib/strtok_r.c: Likewise.
62961         * lib/userspec.c: Likewise.
62962         * lib/w32spawn.h: Likewise.
62963         * lib/xstrndup.c: Likewise.
62964         * lib/mountlist.c (strstr): Remove decl.
62965         * m4/string_h.m4: New file.
62966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62967         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62968         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62969         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62970         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62971         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62972         Set REPLACE_STRCASECMP if necessary.
62973         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62974         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62975         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62976         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62977         HAVE_DECL_STRDUP if necessary.
62978         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62979         since gl_FUNC_STRNDUP does that now.
62980         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62981         Check for decl here...
62982         (gl_PREREQ_STRNLEN): ... not here.
62983         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62984         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62985         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62986         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62987         necessary.
62988         * modules/string: New file.
62989         * modules/memmem (Files): Remove special-purpose include file.
62990         (Depends-on): Add string.
62991         (Include): Include <string.h>, not the removed file.
62992         * modules/mempcpy: Likewise.
62993         * modules/memrchr: Likewise.
62994         * modules/stpcpy: Likewise.
62995         * modules/stpncpy: Likewise.
62996         * modules/strcase: Likewise.
62997         * modules/strchrnul: Likewise.
62998         * modules/strdup: Likewise.
62999         * modules/strndup: Likewise.
63000         * modules/strnlen: Likewise.
63001         * modules/strpbrk: Likewise.
63002         * modules/strsep: Likewise.
63003         * modules/strstr: Likewise.
63004         * modules/strtok_r: Likewise.
63005         * tests/test-dirname.c: Don't include "strdup.h", since
63006         <string.h> now suffices.
63007         * tests/test-memmem.c: Don't include "memmem.h", since
63008         <string.h> now suffices.
63009
63010 2007-01-25  Bruno Haible  <bruno@clisp.org>
63011
63012         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63013         *resultp is 0.
63014
63015         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63016         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63017         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63018         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63019
63020         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63021         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63022         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63023         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63024         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63025         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63026
63027 2007-01-24  Bruno Haible  <bruno@clisp.org>
63028
63029         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63031         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63032         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63033         gl_FUNC_FTS_CORE.
63034         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63035         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63036         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63037         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63038         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63039         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63040         gl_FUNC_FCHOWNAT.
63041         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63042         gl_FUNC_STRFTIME.
63043         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63044         Reported by Ralf Wildenhues.
63045
63046 2007-01-24  Bruno Haible  <bruno@clisp.org>
63047
63048         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63049         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63050         gl_GETADDRINFO.
63051         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63052         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63053         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63054
63055 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63058         Don't use 'exit'; just return from 'main'.
63059         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63060
63061         * lib/fnmatch_.h: Readjust white space and comments to match
63062         glibc, to avoid spurious diffs.
63063
63064 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63067         2004-12-01 change by Jakub Jelinek, since this code won't compile
63068         if !LIBC.  Problem reported by Bob Proulx.
63069
63070 2007-01-23  Bruno Haible  <bruno@clisp.org>
63071
63072         * lib/striconveh.c: Include c-strcaseeq.h.
63073         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63074         * modules/striconveh (Depends-on): Add c-strcaseeq.
63075
63076 2007-01-23  Bruno Haible  <bruno@clisp.org>
63077
63078         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63079
63080         * modules/c-strcaseeq: New file.
63081         * lib/c-strcaseeq.h: New file.
63082
63083         * modules/streq: New file.
63084         * lib/streq.h: New file.
63085
63086 2007-01-23  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/striconveha-tests: New file.
63089         * tests/test-striconveha.c: New file.
63090
63091         * lib/striconveha.h: Include <stdbool.h>.
63092         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63093         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63094         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63095         (mem_iconveha): New function.
63096         (str_iconveha_notranslit): Renamed from str_iconveha.
63097         (str_iconveha): New function.
63098         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63099         c-strcase.
63100
63101 2007-01-23  Bruno Haible  <bruno@clisp.org>
63102
63103         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63104         encodings without forgiving before trying any encoding with handler.
63105         (str_iconveha): Try all encodings without forgiving before trying any
63106         encoding with handler.
63107
63108 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         Import the following changes from libc.
63111
63112         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63113
63114         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63115
63116         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63117
63118         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63119         normal_bracket label.
63120
63121         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63122
63123         [BZ #361]
63124         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63125         to normal_bracket after fetching the next character.
63126
63127 2007-01-22  Bruno Haible  <bruno@clisp.org>
63128
63129         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63130         argument.
63131         * lib/striconveh.c (iconv_carefully_1): New function.
63132         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63133         argument.
63134         (str_cd_iconveh): Update.
63135         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63136         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63137         * tests/test-striconveh.c (MAGIC): New macro.
63138         (new_offsets): New function.
63139         (main): Test call with and without offsets.
63140
63141 2007-01-22  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63144         * modules/sys_select (Makefile.am): Likewise.
63145         * modules/sys_socket (Makefile.am): Likewise.
63146         * modules/sys_time (Makefile.am): Likewise.
63147
63148 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * modules/gettimeofday (License): Change from GPL to LGPL, since
63151         gettimeofday is a library function.
63152
63153 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63154
63155         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63156
63157 2007-01-21  Bruno Haible  <bruno@clisp.org>
63158
63159         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63160
63161 2007-01-21  Bruno Haible  <bruno@clisp.org>
63162
63163         * modules/striconveha: New file.
63164         * lib/striconveha.h: New file.
63165         * lib/striconveha.c: New file.
63166         * MODULES.html.sh (Internationalization functions): Add striconveha.
63167         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63168         string.
63169         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63170
63171 2007-01-21  Bruno Haible  <bruno@clisp.org>
63172
63173         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63174         * lib/striconveh.c (str_iconveh): Likewise.
63175
63176 2007-01-21  Bruno Haible  <bruno@clisp.org>
63177
63178         * lib/striconveh.h (mem_iconveh): New declaration.
63179         * lib/striconveh.c (mem_iconveh): New function.
63180         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63181
63182 2007-01-21  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63185
63186         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63187         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63188         original result buffer.
63189         (str_cd_iconveh): Update.
63190         * tests/test-striconveh.c (main): Update.
63191
63192         * lib/striconv.h (mem_cd_iconv): Change specification.
63193         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63194         result buffer.
63195         (str_cd_iconv): Update.
63196         * tests/test-striconv.c (main): Update.
63197
63198 2007-01-21  Bruno Haible  <bruno@clisp.org>
63199
63200         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63201
63202 2007-01-20  Jim Meyering  <jim@meyering.net>
63203
63204         * lib/userspec.c (parse_with_separator): If a user or group string
63205         starts with "+", skip the corresponding name-to-ID look-up, since
63206         such a look-up must fail: user and group names may not include "+".
63207
63208 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63209
63210         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63211         since we now assume the sys_time module.
63212         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63213         check for sys/time.h; no longer needed.
63214         * modules/poll (Depends-on): Depend on sys_time.
63215
63216 2007-01-18  Bruno Haible  <bruno@clisp.org>
63217
63218         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63219         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63220
63221         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63222         gettimeofday.
63223
63224         * tests/test-gettimeofday.c: Include <time.h>.
63225         (dummy): Remove variable.
63226
63227         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63228         gl_HEADER_SYS_TIME_H.
63229         (gl_HEADER_SYS_TIME_H): New macro.
63230
63231         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63232         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63233         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63234         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63235         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63236         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63237         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63238         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63239         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63240         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63241         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63242
63243         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63244         last change; it caused a compilation error when cross-compiling to
63245         Cygwin.
63246
63247 2007-01-18  Jim Meyering  <jim@meyering.net>
63248
63249         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63250         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63251         than the race-prone "test -d sys || mkdir sys".
63252         (configure.ac): Use AC_PROG_MKDIR_P.
63253         * modules/sys_select: Likewise.
63254         * modules/sys_socket: Likewise.
63255         * modules/sys_time: Likewise.
63256
63257 2007-01-18  Eric Blake  <ebb9@byu.net>
63258
63259         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63260         replace gettimeofday.
63261         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63262         name, to avoid infinite recursion.
63263
63264 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63267         module sys_time.
63268         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63269         assume timespec.h defines struct timeval.
63270         * lib/settime.c: Likewise.
63271         * lib/utimens.c: Likewise.
63272         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63273         since we now assume the gettimeofday module.
63274         * lib/tempname.c (__gen_tempname): Likewise.
63275         * lib/gettimeofday.h: Remove.
63276         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63277         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63278         Include <time.h>, for 'time()'.
63279         (localtime_buffer_addr): Also use this workaround if
63280         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63281         to simplify the uses.  All uses changed.
63282         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63283         that #undef is inside {}, and 'const' follows type name consistently.
63284         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63285         (gettimeofday): Do not use the maximum possible value for
63286         tv->tv_usec, since that might break usages other than ls.c.
63287         Instead, we'll leave ls.c alone.  This undoes today's patch
63288         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63289         we've never observed the problem but might as well keep the
63290         canary.
63291         * lib/nanosleep.c: Include timespec.h first, for interface check.
63292         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63293         now assume the sys_time module.
63294         * lib/tempname.c: Likewise.
63295         * lib/timespec.h: Likewise.
63296         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63297         needed.
63298         * lib/strftime.c: Likewise.
63299         * lib/timespec.h: Likewise.
63300         * lib/posixtm.c: Include posixtm.h first, for interface check.
63301         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63302         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63303         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63304         * lib/sys_time_.h: New file.
63305         * lib/timespec.h (struct timespec): Use long int, not long.
63306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63307         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63308         Remove obsolescent call to AC_HEADER_TIME.
63309         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63311         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63312         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63313         Likewise.
63314         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63315         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63317         into the sys_time module.  Check for gettimeofday just once.
63318         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63319         for gettimeofday signature to just check the signature.  Merely
63320         compile it, since linking doesn't test signature.  Improve test for
63321         whether gettimeofday.o is actually needed.
63322         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63323         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63324         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63325         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63326         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63327         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63328         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63329         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63330         than worrying about sys/time.h.
63331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63332         Don't bother worrying about TIME_WITH_SYS_TIME.
63333         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63334         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63335         * m4/sys_time_h.m4: New file.
63336         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63337         Don't include sys/time.h.  Return from main rather than exiting.
63338         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63339         all uses changed.
63340         * modules/gethrxtime (Depends-on): Add sys_time.
63341         * modules/gettime (Depends-on): Likewise.
63342         * modules/gettimeofday (Depends-on): Likewise.
63343         * modules/nanosleep (Depends-on): Likewise.
63344         * modules/settime (Depends-on): Likewise.
63345         * modules/tempname (Depends-on): Likewise.
63346         * modules/utimens (Depends-on): Likewise.
63347         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63348         (Include): Change back to <sys/time.h>.
63349         (Maintainer): Add self.
63350         * modules/sys_time: New file.
63351         * modules/tempname (Depends-on): Add gettimeofday.
63352         * tests/test-gettimeofday.c: Include <sys/time.h>
63353         rather than gettimeofday.h.
63354
63355 2007-01-17  Bruno Haible  <bruno@clisp.org>
63356
63357         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63358         the license default to GPL.
63359         (func_create_testdir): Don't complain if a module is LGPL and its
63360         tests module depends on GPLed modules.
63361
63362 2007-01-17  Bruno Haible  <bruno@clisp.org>
63363
63364         * lib/gettimeofday.c (gettimeofday): Add code for the case
63365         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63366         maximum possible value for tv->tv_usec, rather than the minimum one.
63367
63368 2005-10-08  Martin Lambers  <marlam@marlam.de>
63369 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63370 2007-01-16  Bruno Haible  <bruno@clisp.org>
63371
63372         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63373         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63374         gl_FUNC_GETTIMEOFDAY.
63375         (Include): Add gettimeofday.h.
63376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63377         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63378         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63379         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63380         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63381         * lib/gettimeofday.h: New file.
63382         * lib/gettimeofday.c: Include <sys/timeb.h>.
63383         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63384         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63385         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63386         fall back on time().
63387
63388         * tests/test-gettimeofday.c: New file.
63389         * modules/gettimeofday-tests: New file.
63390
63391 2007-01-16  Eric Blake  <ebb9@byu.net>
63392
63393         * modules/fnmatch (Depends-on): Depend on wchar.
63394         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63395         * m4/fnmatch.m4: Likewise.
63396         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63397         * m4/mbchar.m4: Likewise.
63398         * modules/mbswidth (Depends-on): Depend on wchar.
63399         * lib/mbswidth.c: Assume <wchar.h>.
63400         * m4/mbswidth.m4: Likewise.
63401         * modules/quotearg (Depends-on): Depend on wchar.
63402         * lib/quotearg.c: Assume <wchar.h>.
63403         * m4/quotearg.m4: Likewise.
63404         * modules/regex (Depends-on): Depend on wchar.
63405         * lib/regex_internal.h: Assume <wchar.h>.
63406         * m4/regex.m4: Likewise.
63407         * modules/stdint (Depends-on): Depend on wchar.
63408         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63409         * m4/stdint.m4: Likewise.
63410         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63411         * modules/strftime (Depends-on): Depend on wchar.
63412         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63413         * modules/strtol (Depends-on): Depend on wchar.
63414         * lib/strtol.c: Assume <wchar.h>.
63415         * modules/wcwidth (Depends-on): Depend on wchar.
63416         * lib/wcwidth.h: Assume <wchar.h>.
63417         * m4/wcwidth.m4: Likewise.
63418
63419 2007-01-16  Bruno Haible  <bruno@clisp.org>
63420
63421         * modules/csharpexec-script: New, created from...
63422         * modules/csharpexec: ... this.
63423
63424 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63425
63426         * modules/javaexec-script: New, created from...
63427         * modules/javaexec: ... this.
63428
63429 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63430
63431         * modules/poll (Dependencies): Add sys_select.
63432
63433 2007-01-15  Jim Meyering  <jim@meyering.net>
63434
63435         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63436         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63437         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63438         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63439
63440 2007-01-15  Bruno Haible  <bruno@clisp.org>
63441
63442         * modules/striconveh: New file.
63443         * lib/striconveh.h: New file.
63444         * lib/striconveh.c: New file.
63445         * MODULES.html.sh (Internationalization functions): Add striconveh.
63446
63447         * modules/striconveh-tests: New file.
63448         * tests/test-striconveh.c: New file.
63449
63450 2007-01-15  Bruno Haible  <bruno@clisp.org>
63451
63452         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63453         not from GNU libiconv or GNU libc.
63454
63455 2007-01-15  Bruno Haible  <bruno@clisp.org>
63456
63457         * doc/gnulib-intro.texi (Copyright): Explain the different license
63458         terms for module descriptions, autoconf macros, tests, documentation.
63459
63460 2007-01-14  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/striconv-tests: New file.
63463         * tests/test-striconv.c: New file.
63464
63465 2007-01-14  Bruno Haible  <bruno@clisp.org>
63466
63467         * modules/iconv-tests: New file.
63468         * tests/test-iconv.c: New file.
63469
63470 2007-01-14  Bruno Haible  <bruno@clisp.org>
63471
63472         * gnulib-tool (func_get_license): For test modules, use the license of
63473         the main module.
63474
63475 2007-01-14  Bruno Haible  <bruno@clisp.org>
63476
63477         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63478         if iconv is found to exist.
63479
63480 2007-01-14  Bruno Haible  <bruno@clisp.org>
63481
63482         * modules/c-ctype-tests: New file.
63483         * tests/test-c-ctype.c: New file.
63484
63485 2007-01-14  Bruno Haible  <bruno@clisp.org>
63486
63487         * modules/binary-io-tests: New file.
63488         * tests/test-binary-io.sh: New file.
63489         * tests/test-binary-io.c: New file.
63490
63491 2007-01-14  Bruno Haible  <bruno@clisp.org>
63492
63493         * modules/array-oset-tests: New file.
63494         * tests/test-array_oset.c: New file.
63495
63496 2007-01-14  Bruno Haible  <bruno@clisp.org>
63497
63498         * modules/array-list-tests: New file.
63499         * tests/test-array_list.c: New file.
63500
63501 2007-01-14  Bruno Haible  <bruno@clisp.org>
63502
63503         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63504         and make.
63505         Reported by Simon Josefsson in
63506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63507
63508 2007-01-14  Bruno Haible  <bruno@clisp.org>
63509
63510         * modules/allocsa-tests: New file.
63511         * tests/test-allocsa.c: New file.
63512
63513 2007-01-14  Bruno Haible  <bruno@clisp.org>
63514
63515         * modules/fchdir (Depends-on): Add absolute-header.
63516         * modules/unistd (Depends-on): Likewise.
63517
63518 2006-12-30  Bruno Haible  <bruno@clisp.org>
63519
63520         * modules/fchdir: New file.
63521         * modules/unistd (Files): Add lib/unistd_.h.
63522         (Makefile.am): Generate unistd.h from unistd_.h.
63523         * lib/fchdir.c: New file.
63524         * lib/dirent_.h: New file.
63525         * lib/unistd_.h: New file.
63526         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63527         * m4/fchdir.m4: New file.
63528         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63529         (gl_HEADER_UNISTD): Invoke it.
63530         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63531         function.
63532         * lib/backupfile.c (opendir, closedir): Undefine.
63533         * lib/chown.c (open, close): Undefine.
63534         * lib/clean-temp.c (open, close): Undefine.
63535         * lib/copy-file.c (open, close): Undefine.
63536         * lib/execute.c (open, close): Undefine.
63537         * lib/fsusage.c (open, close): Undefine.
63538         * lib/gc-gnulib.c (open, close): Undefine.
63539         * lib/getcwd.c (opendir, closedir): Undefine.
63540         * lib/glob.c (opendir, closedir): Undefine.
63541         * lib/javacomp.c (open, close): Undefine.
63542         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63543         * lib/openat-proc.c (open, close): Undefine.
63544         * lib/pagealign_alloc.c (open, close): Undefine.
63545         * lib/pipe.c (open, close): Undefine.
63546         * lib/progreloc.c (open, close): Undefine.
63547         * lib/savedir.c (opendir, closedir): Undefine.
63548         * lib/utime.c (open, close): Undefine.
63549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63550
63551 2007-01-10  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63554
63555 2007-01-12  Eric Blake  <ebb9@byu.net>
63556
63557         Provide a robust <wchar.h>.  Further simplifications are now
63558         possible in other modules, but not included here.
63559         * modules/wchar: New module.
63560         * m4/wchar.m4: New file.
63561         * lib/wchar_.h: Likewise.
63562         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63563         of the new module.
63564         * MODULES.html.sh (Extended multibyte and wide character utilities):
63565         New section.
63566
63567 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63568
63569         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63570         to a reasonable default for memory allocation.
63571         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63572         file system that reports garbage st_size values for symlinks.
63573         Problem reported by Liyang Hu.
63574
63575 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63576
63577         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63578         Emacs .#* auto-save files).
63579
63580 2007-01-11  Bruno Haible  <bruno@clisp.org>
63581
63582         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63583         directory.
63584
63585 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         Use @...@ consistently in lib/wctype_.h.
63588         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63589         on it being set to 1 or 0.
63590         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63591         go back to AC_SUBSTing it.
63592         * modules/wctype (Makefile.am): Undo previous change.
63593
63594 2007-01-10  Eric Blake  <ebb9@byu.net>
63595
63596         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63597         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63598         * modules/wctype (Makefile.am): Likewise.
63599         Reported by Chris McGuire.
63600
63601 2007-01-10  Jim Meyering  <jim@meyering.net>
63602
63603         fts.c: a small readability/maintainability improvement
63604         * lib/fts.c (fts_read): Make this code slightly more readable and
63605         maintainable by hoisting the "sp->fts_cur = p" assignments to
63606         immediately follow the statements that set P.  Derived from
63607         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63608
63609 2007-01-10  Eric Blake  <ebb9@byu.net>
63610
63611         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63612         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63614         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63615         Reported by Chris McGuire.
63616
63617 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63618
63619         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63620         in sed script.
63621
63622 2007-01-09  Bruno Haible  <bruno@clisp.org>
63623
63624         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63625         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63626         variables.
63627         (func_module): Use them.
63628
63629 2007-01-09  Bruno Haible  <bruno@clisp.org>
63630
63631         * modules/unistr/base: New file.
63632         * lib/unistr.h: New file.
63633
63634         * modules/unistr/u8-to-u16: New file.
63635         * lib/unistr/u8-to-u16.c: New file.
63636
63637         * modules/unistr/u8-to-u32: New file.
63638         * lib/unistr/u8-to-u32.c: New file.
63639
63640         * modules/unistr/u16-to-u8: New file.
63641         * lib/unistr/u16-to-u8.c: New file.
63642
63643         * modules/unistr/u16-to-u32: New file.
63644         * lib/unistr/u16-to-u32.c: New file.
63645
63646         * modules/unistr/u32-to-u8: New file.
63647         * lib/unistr/u32-to-u8.c: New file.
63648
63649         * modules/unistr/u32-to-u16: New file.
63650         * lib/unistr/u32-to-u16.c: New file.
63651
63652         * modules/unistr/u8-check: New file.
63653         * modules/unistr/u16-check: New file.
63654         * modules/unistr/u32-check: New file.
63655         * lib/unistr/u8-check.c: New file.
63656         * lib/unistr/u16-check.c: New file.
63657         * lib/unistr/u32-check.c: New file.
63658
63659         * modules/unistr/u8-chr: New file.
63660         * modules/unistr/u16-chr: New file.
63661         * modules/unistr/u32-chr: New file.
63662         * lib/unistr/u8-chr.c: New file.
63663         * lib/unistr/u16-chr.c: New file.
63664         * lib/unistr/u32-chr.c: New file.
63665
63666         * modules/unistr/u8-cmp: New file.
63667         * modules/unistr/u16-cmp: New file.
63668         * modules/unistr/u32-cmp: New file.
63669         * lib/unistr/u8-cmp.c: New file.
63670         * lib/unistr/u16-cmp.c: New file.
63671         * lib/unistr/u32-cmp.c: New file.
63672
63673         * modules/unistr/u8-cpy: New file.
63674         * modules/unistr/u16-cpy: New file.
63675         * modules/unistr/u32-cpy: New file.
63676         * lib/unistr/u8-cpy.c: New file.
63677         * lib/unistr/u16-cpy.c: New file.
63678         * lib/unistr/u32-cpy.c: New file.
63679         * lib/unistr/u-cpy.h: New file.
63680
63681         * modules/unistr/u8-cpy-alloc: New file.
63682         * modules/unistr/u16-cpy-alloc: New file.
63683         * modules/unistr/u32-cpy-alloc: New file.
63684         * lib/unistr/u8-cpy-alloc.c: New file.
63685         * lib/unistr/u16-cpy-alloc.c: New file.
63686         * lib/unistr/u32-cpy-alloc.c: New file.
63687         * lib/unistr/u-cpy-alloc.h: New file.
63688
63689         * modules/unistr/u8-endswith: New file.
63690         * modules/unistr/u16-endswith: New file.
63691         * modules/unistr/u32-endswith: New file.
63692         * lib/unistr/u8-endswith.c: New file.
63693         * lib/unistr/u16-endswith.c: New file.
63694         * lib/unistr/u32-endswith.c: New file.
63695         * lib/unistr/u-endswith.h: New file.
63696
63697         * modules/unistr/u8-mblen: New file.
63698         * modules/unistr/u16-mblen: New file.
63699         * modules/unistr/u32-mblen: New file.
63700         * lib/unistr/u8-mblen.c: New file.
63701         * lib/unistr/u16-mblen.c: New file.
63702         * lib/unistr/u32-mblen.c: New file.
63703
63704         * modules/unistr/u8-mbtouc: New file.
63705         * modules/unistr/u16-mbtouc: New file.
63706         * modules/unistr/u32-mbtouc: New file.
63707         * lib/unistr/u8-mbtouc.c: New file.
63708         * lib/unistr/u16-mbtouc.c: New file.
63709         * lib/unistr/u32-mbtouc.c: New file.
63710
63711         * modules/unistr/u8-mbtouc-safe: New file.
63712         * modules/unistr/u16-mbtouc-safe: New file.
63713         * modules/unistr/u32-mbtouc-safe: New file.
63714         * lib/unistr/u8-mbtouc-safe.c: New file.
63715         * lib/unistr/u16-mbtouc-safe.c: New file.
63716         * lib/unistr/u32-mbtouc-safe.c: New file.
63717
63718         * modules/unistr/u8-move: New file.
63719         * modules/unistr/u16-move: New file.
63720         * modules/unistr/u32-move: New file.
63721         * lib/unistr/u8-move.c: New file.
63722         * lib/unistr/u16-move.c: New file.
63723         * lib/unistr/u32-move.c: New file.
63724         * lib/unistr/u-move.h: New file.
63725
63726         * modules/unistr/u8-next: New file.
63727         * modules/unistr/u16-next: New file.
63728         * modules/unistr/u32-next: New file.
63729         * lib/unistr/u8-next.c: New file.
63730         * lib/unistr/u16-next.c: New file.
63731         * lib/unistr/u32-next.c: New file.
63732
63733         * modules/unistr/u8-prev: New file.
63734         * modules/unistr/u16-prev: New file.
63735         * modules/unistr/u32-prev: New file.
63736         * lib/unistr/u8-prev.c: New file.
63737         * lib/unistr/u16-prev.c: New file.
63738         * lib/unistr/u32-prev.c: New file.
63739
63740         * modules/unistr/u8-set: New file.
63741         * modules/unistr/u16-set: New file.
63742         * modules/unistr/u32-set: New file.
63743         * lib/unistr/u8-set.c: New file.
63744         * lib/unistr/u16-set.c: New file.
63745         * lib/unistr/u32-set.c: New file.
63746         * lib/unistr/u-set.h: New file.
63747
63748         * modules/unistr/u8-startswith: New file.
63749         * modules/unistr/u16-startswith: New file.
63750         * modules/unistr/u32-startswith: New file.
63751         * lib/unistr/u8-startswith.c: New file.
63752         * lib/unistr/u16-startswith.c: New file.
63753         * lib/unistr/u32-startswith.c: New file.
63754         * lib/unistr/u-startswith.h: New file.
63755
63756         * modules/unistr/u8-stpcpy: New file.
63757         * modules/unistr/u16-stpcpy: New file.
63758         * modules/unistr/u32-stpcpy: New file.
63759         * lib/unistr/u8-stpcpy.c: New file.
63760         * lib/unistr/u16-stpcpy.c: New file.
63761         * lib/unistr/u32-stpcpy.c: New file.
63762         * lib/unistr/u-stpcpy.h: New file.
63763
63764         * modules/unistr/u8-stpncpy: New file.
63765         * modules/unistr/u16-stpncpy: New file.
63766         * modules/unistr/u32-stpncpy: New file.
63767         * lib/unistr/u8-stpncpy.c: New file.
63768         * lib/unistr/u16-stpncpy.c: New file.
63769         * lib/unistr/u32-stpncpy.c: New file.
63770         * lib/unistr/u-stpncpy.h: New file.
63771
63772         * modules/unistr/u8-strcat: New file.
63773         * modules/unistr/u16-strcat: New file.
63774         * modules/unistr/u32-strcat: New file.
63775         * lib/unistr/u8-strcat.c: New file.
63776         * lib/unistr/u16-strcat.c: New file.
63777         * lib/unistr/u32-strcat.c: New file.
63778         * lib/unistr/u-strcat.h: New file.
63779
63780         * modules/unistr/u8-strchr: New file.
63781         * modules/unistr/u16-strchr: New file.
63782         * modules/unistr/u32-strchr: New file.
63783         * lib/unistr/u8-strchr.c: New file.
63784         * lib/unistr/u16-strchr.c: New file.
63785         * lib/unistr/u32-strchr.c: New file.
63786
63787         * modules/unistr/u8-strcmp: New file.
63788         * modules/unistr/u16-strcmp: New file.
63789         * modules/unistr/u32-strcmp: New file.
63790         * lib/unistr/u8-strcmp.c: New file.
63791         * lib/unistr/u16-strcmp.c: New file.
63792         * lib/unistr/u32-strcmp.c: New file.
63793
63794         * modules/unistr/u8-strcpy: New file.
63795         * modules/unistr/u16-strcpy: New file.
63796         * modules/unistr/u32-strcpy: New file.
63797         * lib/unistr/u8-strcpy.c: New file.
63798         * lib/unistr/u16-strcpy.c: New file.
63799         * lib/unistr/u32-strcpy.c: New file.
63800         * lib/unistr/u-strcpy.h: New file.
63801
63802         * modules/unistr/u8-strcspn: New file.
63803         * modules/unistr/u16-strcspn: New file.
63804         * modules/unistr/u32-strcspn: New file.
63805         * lib/unistr/u8-strcspn.c: New file.
63806         * lib/unistr/u16-strcspn.c: New file.
63807         * lib/unistr/u32-strcspn.c: New file.
63808         * lib/unistr/u-strcspn.h: New file.
63809
63810         * modules/unistr/u8-strdup: New file.
63811         * modules/unistr/u16-strdup: New file.
63812         * modules/unistr/u32-strdup: New file.
63813         * lib/unistr/u8-strdup.c: New file.
63814         * lib/unistr/u16-strdup.c: New file.
63815         * lib/unistr/u32-strdup.c: New file.
63816         * lib/unistr/u-strdup.h: New file.
63817
63818         * modules/unistr/u8-strlen: New file.
63819         * modules/unistr/u16-strlen: New file.
63820         * modules/unistr/u32-strlen: New file.
63821         * lib/unistr/u8-strlen.c: New file.
63822         * lib/unistr/u16-strlen.c: New file.
63823         * lib/unistr/u32-strlen.c: New file.
63824         * lib/unistr/u-strlen.h: New file.
63825
63826         * modules/unistr/u8-strmblen: New file.
63827         * modules/unistr/u16-strmblen: New file.
63828         * modules/unistr/u32-strmblen: New file.
63829         * lib/unistr/u8-strmblen.c: New file.
63830         * lib/unistr/u16-strmblen.c: New file.
63831         * lib/unistr/u32-strmblen.c: New file.
63832
63833         * modules/unistr/u8-strmbtouc: New file.
63834         * modules/unistr/u16-strmbtouc: New file.
63835         * modules/unistr/u32-strmbtouc: New file.
63836         * lib/unistr/u8-strmbtouc.c: New file.
63837         * lib/unistr/u16-strmbtouc.c: New file.
63838         * lib/unistr/u32-strmbtouc.c: New file.
63839
63840         * modules/unistr/u8-strncat: New file.
63841         * modules/unistr/u16-strncat: New file.
63842         * modules/unistr/u32-strncat: New file.
63843         * lib/unistr/u8-strncat.c: New file.
63844         * lib/unistr/u16-strncat.c: New file.
63845         * lib/unistr/u32-strncat.c: New file.
63846         * lib/unistr/u-strncat.h: New file.
63847
63848         * modules/unistr/u8-strncmp: New file.
63849         * modules/unistr/u16-strncmp: New file.
63850         * modules/unistr/u32-strncmp: New file.
63851         * lib/unistr/u8-strncmp.c: New file.
63852         * lib/unistr/u16-strncmp.c: New file.
63853         * lib/unistr/u32-strncmp.c: New file.
63854
63855         * modules/unistr/u8-strncpy: New file.
63856         * modules/unistr/u16-strncpy: New file.
63857         * modules/unistr/u32-strncpy: New file.
63858         * lib/unistr/u8-strncpy.c: New file.
63859         * lib/unistr/u16-strncpy.c: New file.
63860         * lib/unistr/u32-strncpy.c: New file.
63861         * lib/unistr/u-strncpy.h: New file.
63862
63863         * modules/unistr/u8-strnlen: New file.
63864         * modules/unistr/u16-strnlen: New file.
63865         * modules/unistr/u32-strnlen: New file.
63866         * lib/unistr/u8-strnlen.c: New file.
63867         * lib/unistr/u16-strnlen.c: New file.
63868         * lib/unistr/u32-strnlen.c: New file.
63869         * lib/unistr/u-strnlen.h: New file.
63870
63871         * modules/unistr/u8-strpbrk: New file.
63872         * modules/unistr/u16-strpbrk: New file.
63873         * modules/unistr/u32-strpbrk: New file.
63874         * lib/unistr/u8-strpbrk.c: New file.
63875         * lib/unistr/u16-strpbrk.c: New file.
63876         * lib/unistr/u32-strpbrk.c: New file.
63877         * lib/unistr/u-strpbrk.h: New file.
63878
63879         * modules/unistr/u8-strrchr: New file.
63880         * modules/unistr/u16-strrchr: New file.
63881         * modules/unistr/u32-strrchr: New file.
63882         * lib/unistr/u8-strrchr.c: New file.
63883         * lib/unistr/u16-strrchr.c: New file.
63884         * lib/unistr/u32-strrchr.c: New file.
63885
63886         * modules/unistr/u8-strspn: New file.
63887         * modules/unistr/u16-strspn: New file.
63888         * modules/unistr/u32-strspn: New file.
63889         * lib/unistr/u8-strspn.c: New file.
63890         * lib/unistr/u16-strspn.c: New file.
63891         * lib/unistr/u32-strspn.c: New file.
63892         * lib/unistr/u-strspn.h: New file.
63893
63894         * modules/unistr/u8-strstr: New file.
63895         * modules/unistr/u16-strstr: New file.
63896         * modules/unistr/u32-strstr: New file.
63897         * lib/unistr/u8-strstr.c: New file.
63898         * lib/unistr/u16-strstr.c: New file.
63899         * lib/unistr/u32-strstr.c: New file.
63900         * lib/unistr/u-strstr.h: New file.
63901
63902         * modules/unistr/u8-strtok: New file.
63903         * modules/unistr/u16-strtok: New file.
63904         * modules/unistr/u32-strtok: New file.
63905         * lib/unistr/u8-strtok.c: New file.
63906         * lib/unistr/u16-strtok.c: New file.
63907         * lib/unistr/u32-strtok.c: New file.
63908         * lib/unistr/u-strtok.h: New file.
63909
63910         * modules/unistr/u8-uctomb: New file.
63911         * modules/unistr/u16-uctomb: New file.
63912         * modules/unistr/u32-uctomb: New file.
63913         * lib/unistr/u8-uctomb.c: New file.
63914         * lib/unistr/u16-uctomb.c: New file.
63915         * lib/unistr/u32-uctomb.c: New file.
63916
63917         * MODULES.html.sh (Unicode string functions): Add the new modules.
63918
63919 2007-01-08  Bruno Haible  <bruno@clisp.org>
63920
63921         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63922         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63923         subdirectories.
63924
63925 2007-01-08  Karl Berry  <karl@gnu.org>
63926
63927         * doc/error.texi: mention that main() fns must set program_name
63928         when progname is used.
63929
63930 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63931
63932         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63933         WCTYPE_H is empty, for the benefit of builds from non-distclean
63934         directories.  Problem reported by Eric Blake in
63935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63936
63937 2007-01-08  Bruno Haible  <bruno@clisp.org>
63938
63939         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63940         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63941         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63942         PROVIDE_CANONICALIZE_FILENAME_MODE.
63943         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63944
63945 2007-01-08  Bruno Haible  <bruno@clisp.org>
63946
63947         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63948         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63949         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63950         * lib/fts.c: Likewise.
63951         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63952
63953 2006-12-25  Bruno Haible  <bruno@clisp.org>
63954
63955         * modules/utf8-ucs4-safe: New file.
63956         * lib/utf8-ucs4-safe.h: New file.
63957         * lib/unistr/utf8-ucs4-safe.c: New file.
63958
63959         * modules/utf16-ucs4-safe: New file.
63960         * lib/utf16-ucs4-safe.h: New file.
63961         * lib/unistr/utf16-ucs4-safe.c: New file.
63962
63963         * MODULES.html.sh (Unicode string functions): Add the new modules.
63964
63965 2007-01-08  Bruno Haible  <bruno@clisp.org>
63966
63967         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63968         (Depends-on): Add unitypes.
63969         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63970         (u8_mbtouc_aux): Move out to separate file.
63971         (u8_mbtouc): Use ucs4_t, uint8_t types.
63972         * lib/unistr/utf8-ucs4.c: New file.
63973
63974         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63975         (Depends-on): Add unitypes.
63976         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63977         (u16_mbtouc_aux): Move out to separate file.
63978         (u16_mbtouc): Use ucs4_t, uint16_t types.
63979         * lib/unistr/utf16-ucs4.c: New file.
63980
63981         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63982         (Depends-on): Add unitypes.
63983         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63984         (u8_uctomb_aux): Move out to separate file.
63985         (u8_uctomb): Use ucs4_t, uint8_t types.
63986         * lib/unistr/ucs4-utf8.c: New file.
63987
63988         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63989         (Depends-on): Add unitypes.
63990         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63991         (u16_uctomb_aux): Move out to separate file.
63992         (u16_uctomb): Use ucs4_t, uint16_t types.
63993         * lib/unistr/ucs4-utf16.c: New file.
63994
63995 2006-12-25  Bruno Haible  <bruno@clisp.org>
63996
63997         * modules/unitypes: New file.
63998         * lib/unitypes.h: New file.
63999         * MODULES.html.sh (func_all_modules): New section "Unicode string
64000         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64001         this section. Add unitypes.
64002
64003 2007-01-08  Bruno Haible  <bruno@clisp.org>
64004
64005         Avoid variable names that conflict with those from libtool.
64006         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64007         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64008         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64009         library_names_spec to acl_library_names_spec, hardcode_* to
64010         acl_hardcode_*.
64011         Reported by Ralf Wildenhues.
64012
64013 2007-01-08  Bruno Haible  <bruno@clisp.org>
64014
64015         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64016         definition.
64017         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64018         definition.
64019         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64020         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64021         definition.
64022         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64023         definition.
64024         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64025         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64026         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64027         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64028         definition.
64029         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64030         definition.
64031         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64032         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64033         GC_USE_<algorithm>.
64034         * lib/gc-libgcrypt.c: Likewise.
64035         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64036         * modules/gc-arctwo (configure.ac): Likewise.
64037         * modules/gc-des (configure.ac): Likewise.
64038         * modules/gc-hmac-md5 (configure.ac): Likewise.
64039         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64040         * modules/gc-md2 (configure.ac): Likewise.
64041         * modules/gc-md4 (configure.ac): Likewise.
64042         * modules/gc-md5 (configure.ac): Likewise.
64043         * modules/gc-random (configure.ac): Likewise.
64044         * modules/gc-rijndael (configure.ac): Likewise.
64045         * modules/gc-sha1 (configure.ac): Likewise.
64046
64047 2007-01-08  Bruno Haible  <bruno@clisp.org>
64048
64049         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64050         macro definition.
64051         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64052         definition.
64053         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64054         definition.
64055         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64056         * modules/fcntl-safer (configure.ac): Likewise.
64057         * modules/fopen-safer (configure.ac): Likewise.
64058         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64059         GNULIB_FWRITEERROR macro definition.
64060
64061 2007-01-08  Bruno Haible  <bruno@clisp.org>
64062
64063         * m4/gnulib-common.m4: New file.
64064         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64065         (func_get_filelist): Add m4/gnulib-common.m4.
64066
64067 2007-01-08  Bruno Haible  <bruno@clisp.org>
64068
64069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64070         command.
64071
64072 2007-01-08  Jim Meyering  <jim@meyering.net>
64073
64074         Use a more robust test for a "can't happen" condition.
64075         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64076         narrowed the st_size value.  Presuming the "can't happen" condition
64077         is true, that narrowing could conceivably convert an invalid st_size
64078         value into a valid one.  Instead, use a change based on Matthew
64079         Woehlke's original patch.
64080
64081         Slight readability improvement: use an assert-like macro
64082         in place of literal "abort ()" uses.
64083         * lib/fts.c (fts_assert): Define.
64084         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64085         Use this macro instead of a bare 'abort'.
64086
64087 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64088
64089         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64090         simply work around them.
64091         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64092         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64093         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64094         declaring.
64095         Don't bother to define as macros, since the standard doesn't require it.
64096         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64097         longer worry about IRIX 5.3.
64098         (HAVE_WCTYPE_CTMP_BUG): Remove.
64099
64100 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64101
64102         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64103         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64104         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64105         Problems reported by Georg Schwarz for IRIX 5.3.
64106
64107         * gnulib-tool (autoconf_minversion): Take the maximum version number
64108         found, not the minimum.  Problem reported by James Youngman.
64109
64110 2007-01-03  Karl Berry  <karl@gnu.org>
64111
64112         * doc/error.texi: new file, explaining interaction with progname.
64113         * doc/gnulib.texi: include it.  Update copyright.
64114
64115 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64116
64117         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64118         AC_CANONICAL_HOST, to improve autobuild outputs.
64119
64120 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64121             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64122
64123         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64124         sockets, server sockets, and other file descriptors.  Count errors
64125         to compute the return value.  Reorder the code a bit to be easier
64126         to follow.  Don't set event bits that were not requested (except
64127         POLLERR and POLLHUP).
64128
64129 2007-01-01  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64132
64133 2007-01-03  Jim Meyering  <jim@meyering.net>
64134
64135         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64136
64137 2007-01-02  Bruno Haible  <bruno@clisp.org>
64138
64139         * modules/settime (Include): Require timespec.h.
64140         * modules/nanosleep (Include): Likewise.
64141
64142 2007-01-01  Bruno Haible  <bruno@clisp.org>
64143
64144         * gnulib-tool (func_emit_copyright_notice): Bump year.
64145         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64146
64147 2007-01-01  Bruno Haible  <bruno@clisp.org>
64148
64149         Improve support for OpenBSD.
64150         * build-aux/config.rpath (libname_spec): Export.
64151         (library_names_spec): New variable. Export.
64152         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64153         library_names_spec from the config.rpath output. Locate shared library
64154         through the name pattern in library_names_spec.
64155
64156 2007-01-01  Eric Blake  <ebb9@byu.net>
64157
64158         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64159
64160 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64161
64162         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64163         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64164         assume the C locale, and avoid an "eval" that could cause trouble.
64165         Problem with SORT reported by Bob Proulx.
64166
64167         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64168         Define.  Trivial patch from Henning Nielsen Lund, originally
64169         sent to bug-grep@gnu.org today.
64170
64171 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64174         struct stat.  Problem reported by Henning Nielsen Lund.
64175         * lib/acl.c: Include acl.h first, to check interface.  Don't
64176         bother to include sys/types.h and sys/stat.h again.
64177
64178 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         Import the following change from libc; problem reported by
64181         Sven Verdoolaege.
64182
64183         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64184
64185         [BZ #1373]
64186         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64187
64188 2006-12-28  Jim Meyering  <jim@meyering.net>
64189
64190         * build-aux/announce-gen: Do not assume that the package
64191         builds any of tar.gz, tar.bz2, and .xdelta files.
64192         Suggestion from Simon Josefsson.
64193
64194 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64195
64196         * modules/announce-gen: New file.
64197
64198 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64201         handles its gotchas now.
64202         * lib/mbswidth.c: Likewise.
64203         * lib/wcwidth.h: Likewise.
64204         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64205         and iswcntrl; the wctype module does this stuff now.
64206         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64208         * modules/mbchar (Depends-on): Add wctype.
64209         * modules/mbswidth (Depends-on): Likewise.
64210         * modules/wcwidth (Depends-on): Likewise.
64211
64212 2006-12-27  Eric Blake  <ebb9@byu.net>
64213
64214         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64215         module uses more than what <wctype.h> is required to provide.
64216
64217 2006-12-26  Eric Blake  <ebb9@byu.net>
64218
64219         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64220
64221 2006-12-26  Eric Blake  <ebb9@byu.net>
64222
64223         * modules/absolute-header: New module.
64224         * modules/fcntl (Depends-on): Depend on it.
64225         * modules/inttypes (Depends-on): Likewise.
64226         * modules/stdint (Depends-on): Likewise.
64227         * modules/sys_stat (Depends-on): Likewise.
64228         * modules/wctype (Depends-on): Likewise.
64229         * MODULES.html.sh (Support for building libraries and
64230         executables): Document it.
64231
64232 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64233
64234         * gnulib-tool (SED): Remove, undoing previous change.
64235         The problem was that it broke coreutils on Solaris, because
64236         "sed --posix" leaked into a makefile.
64237         (sed): New alias, if 'alias' and GNU sed.
64238
64239 2006-12-24  Jim Meyering  <jim@meyering.net>
64240
64241         Work around an fchownat bug in glibc-2.4:
64242         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64243         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64244         in spite of the -P option.
64245         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64246         New macros.
64247         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64248         * modules/openat (Files): Add lib/fchownat.c.
64249         * lib/openat.c (fchownat): Don't define here.  Move to...
64250         * lib/fchownat.c: ...this new file.
64251
64252 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         Fix bug reported by Bruno Haible in
64255         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64256         where quotearg.c didn't compile on Mac OS X 10.2 because it
64257         lacks <wchar.h> and wint_t.
64258         * lib/wctype_.h (__wctype_wint_t): New type.
64259         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64260         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64261         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64262         Arg is now of type __wctype_wint_t, not wint_t.
64263         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64264         substitute HAVE_WINT_T.
64265         * modules/wctype (Files): Add m4/wint_t.m4.
64266         (wctype.h): Substitute HAVE_WINT_T.
64267
64268 2006-12-23  Bruno Haible  <bruno@clisp.org>
64269
64270         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64271
64272 2006-12-23  Bruno Haible  <bruno@clisp.org>
64273
64274         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64275         S_ISLNK.
64276         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64277         mingw.
64278
64279 2006-12-22  Bruno Haible  <bruno@clisp.org>
64280
64281         * lib/copy-file.c: Include acl.h.
64282         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64283         Close the file descriptors only after being done with copy_acl.
64284         * modules/copy-file (Depends-on): Add acl.
64285
64286 2006-12-22  Bruno Haible  <bruno@clisp.org>
64287
64288         * gnulib-tool (SED): New variable.
64289         Use $SED instead of sed everywhere.
64290
64291 2006-12-22  Bruno Haible  <bruno@clisp.org>
64292
64293         * modules/no-c++: New file.
64294         * m4/no-c++.m4: New file.
64295         * MODULES.html.sh (Support for building libraries and executables):
64296         Add no-c++.
64297
64298 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64299
64300         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64301         Include <limits.h>, and use its INT_MAX to rewrite the
64302         j loop so that it does not overflow 'int'.  Problem reported by
64303         Ralf Wildenhues in
64304         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64305         Play it safe by shifting left by 1 rather than multiplying by 2,
64306         as GCC is less likely to optimize this away when the value
64307         is signed (when it assumes overflow leads to undefined behavior).
64308         Also, don't assume time_t uses two's complement.
64309
64310 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * MODULES.html.sh: New module wctype.
64313         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64314         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64315         <wctype.h>, since the new wctype module should fix this.
64316         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64317         the wctype module should arrange for it.
64318         * lib/regex_internal.h: Likewise.
64319         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64320         since the wctype module should handle this now.
64321         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64322         * modules/fnmatch (Depends-on): Add wctype.
64323         * modules/quotearg (Depends-on): Likewise.
64324         * modules/regex (Depends-on): Likewise.
64325
64326 2006-12-19  Bruno Haible  <bruno@clisp.org>
64327
64328         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64329         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64330
64331 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64332
64333         * modules/savewd (Depends-on): Fix dependency on fcntl.
64334
64335 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64338         conforms to C99, rather than relying on the user's environment
64339         setting of STDINT_H.
64340
64341 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64342         and Eric Blake  <ebb9@byu.net>
64343
64344         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64345         This is more consistent with the other defines here.
64346         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64347         Port to z/OS.  Problem reported by Paul Gilmartin.
64348         Change local vars to use gl_ prefix rather than ac_.
64349         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64350         with other defines.
64351         * modules/double-slash-root: New module.
64352         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64353         (Depends-on): Add double-slash-root.
64354         * MODULES.html.sh (File system functions): Mention new module.
64355
64356 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64359         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64360         This is for the benefit of gzip, which doesn't do i18n.
64361
64362 2006-12-12  Jim Meyering  <jim@meyering.net>
64363
64364         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64365         Reported by Andreas Schwab <schwab@suse.de>.
64366
64367 2006-12-12  Bruno Haible  <bruno@clisp.org>
64368
64369         Merge these changes.
64370         2006-09-05  Bruno Haible  <bruno@clisp.org>
64371         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64372         iconv_alloc succeeded.
64373         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64374         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64375         test for " && dest " at the end - dest is always != NULL there. Call
64376         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64377         with 2xNULL arguments, also to flush the state storage. Handle the
64378         IRIX iconv behaviour. Realloc the final result, to throw away unused
64379         memory.
64380
64381 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64384         and fchmodat unconditionally, since glibc 2.4 has them.
64385         Problem reported by Arkadiusz Miskiewicz.
64386
64387 2006-12-10  Bruno Haible  <bruno@clisp.org>
64388
64389         * gnulib-tool (func_import): Show the include files only for those
64390         modules that are copied and specified.
64391         Reported by Karl Berry.
64392
64393 2006-12-08  Jim Meyering  <jim@meyering.net>
64394
64395         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64396         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64397
64398         * build-aux/announce-gen: Add two new options, both optional:
64399         --bootstrap-tools=TOOL_LIST
64400               a comma-separated list of tools, e.g.,
64401               autoconf,automake,bison,gnulib
64402         --gnulib-snapshot-date=DATE
64403               if gnulib is in the bootstrap tool list,
64404               then report this as the snapshot date.
64405               If not specified, use the current date/time.
64406               If you specify a date here, be sure it's UTC.
64407
64408 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64409
64410         * tests/test-argp-2.sh: Fix test to match actual output.
64411         (func_compare): Fix sed script to be portable.
64412
64413 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64414
64415         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64416         workaround for this case.  It is not autoconfigured now; offhand
64417         it's hard to see how to autoconfigure it.
64418
64419 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64422         a directory that is about to be chowned.  Such a directory's
64423         initial file permissions should permit the owner only and this
64424         should not be changed until after the chown, since the group and
64425         other bits would be incorrect if they granted permission before
64426         the chown.
64427
64428         Fix porting problem for iswctype reported by Georg Schwarz in:
64429         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64430         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64431         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64432         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64433         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64434
64435 2006-12-03  Jim Meyering  <jim@meyering.net>
64436
64437         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64438         p->fts_statp may not yet be defined.
64439         (fts_read): Instead, set it in the caller, once p->fts_statp is
64440         sure to be defined, and corresponds to a top-level directory.
64441         This bug made du -x fail.  Here's the coreutils test case:
64442         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64443         Reported by Mike Frysinger.
64444
64445 2006-12-01  Jim Meyering  <jim@meyering.net>
64446
64447         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64448         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64449         Reported by Simon Josefsson.
64450
64451 2006-11-30  Jim Meyering  <jim@meyering.net>
64452
64453         * m4/warning.m4: Use the all-permissive copyright notice
64454         recommended by RMS (rather than LGPL).
64455         * m4/vararrays.m4: Likewise.
64456         * m4/flexmember.m4: Likewise.
64457
64458 2006-11-29  Bruno Haible  <bruno@clisp.org>
64459
64460         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64461         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64462         using +=.
64463         Reported by Simon Josefsson <simon@josefsson.org>.
64464
64465 2006-11-28  James Youngman <jay@gnu.org>
64466
64467         * README: Advise users that they might find the bug-gnulib@gnu.org
64468         and autotools-announce@gnu.org mailing lists useful.
64469
64470 2006-11-28  Bruno Haible  <bruno@clisp.org>
64471
64472         * m4/ptrdiff_max.m4: Remove file.
64473
64474 2006-11-21  Bruno Haible  <bruno@clisp.org>
64475
64476         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64477         _AC_COMPUTE_INT.
64478         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64479         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64480         _AC_COMPUTE_INT.
64481         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64482         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64483         _AC_COMPUTE_INT.
64484         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64485
64486 2006-11-28  Jim Meyering  <jim@meyering.net>
64487
64488         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64489         warning from "gcc -Wshadow" about shadowing the builtin.
64490
64491 2006-11-27  Bruno Haible  <bruno@clisp.org>
64492
64493         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64494         _AC_COMPUTE_INT.
64495         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64496
64497 2006-11-27  Bruno Haible  <bruno@clisp.org>
64498             Paul Eggert  <eggert@cs.ucla.edu>
64499
64500         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64501
64502 2006-11-26  Bruno Haible  <bruno@clisp.org>
64503
64504         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64505         noinst_LTLIBRARIES.
64506
64507 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64508             Bruno Haible  <bruno@clisp.org>
64509
64510         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64511         if compiling with "gcc -ansi".
64512
64513 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         Fix some incompatibilities with gcc -ansi -pedantic.
64516         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64517         if compiling pedantically with GCC, unless it's C99 or later.
64518         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64519         it mishandles gcc -ansi -pedantic as well.
64520         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64521         if gcc -pedantic.
64522         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64523         initializers for struct if -pedantic, unless it's C99 or later.
64524
64525 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64526
64527         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64528         Don't close an fd more than once. Identical atimes indicate
64529         success, not failure.
64530
64531 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64532
64533         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64534
64535 2006-11-23  Jim Meyering  <jim@meyering.net>
64536
64537         * build-aux/announce-gen: New file.  From coreutils.
64538
64539 2006-11-22  Jim Meyering  <jim@meyering.net>
64540
64541         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64542         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64543         (fts_read): Use a temporary to narrow the overused st_size member
64544         before using it in a switch statement.  Reported by Matthew Woehlke.
64545
64546         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64547         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64548
64549 2006-11-20  Bruno Haible  <bruno@clisp.org>
64550
64551         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64552         changequote instead of pairs of brackets.
64553         Reported by Andreas Schwab <schwab@suse.de>.
64554
64555 2006-11-21  Jim Meyering  <jim@meyering.net>
64556
64557         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64558         so as to remain compatible with older compilers.
64559         Patch from Michael Deutschmann.
64560
64561 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         * MODULES.html.sh (File system functions): Add openat.
64564
64565         * lib/openat.h (rpl_fstatat): New macro, if
64566         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64567         (fstatat): Define to rpl_fstatat under the same conditions,
64568         unless COMPILING_FSTATAT.
64569         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64570         seems to have the bug.
64571         * lib/fstatat.c: New file.
64572         * modules/openat (Files): Add it.
64573
64574 2006-11-20  Bruno Haible  <bruno@clisp.org>
64575
64576         * Makefile: New file.
64577
64578 2006-11-20  Jim Meyering  <jim@meyering.net>
64579
64580         The beginnings of syntax-related checks for gnulib.
64581         * lib/Makefile: New file.
64582         * lib/t-idcache: New script.  Ensure that the two halves of
64583         idcache.c stay in sync.
64584
64585         * lib/idcache.c: Adjust comments in user- and group- portions to
64586         be more accurate, and to be consistent with one another.
64587
64588 2006-11-20  Jim Meyering  <jim@meyering.net>
64589
64590         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64591         continue using the flexible array member (thus, this module performs
64592         half as many malloc calls), with the addition that...
64593         (getgroup, getuser): Consistently record a non-match via an empty
64594         "name" string, and map an empty string match to a NULL return value.
64595         * modules/idcache (Depends-on): Re-add flexmember.
64596
64597         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64598         (getuidbyname, getgroup, getgidbyname): Likewise.
64599
64600         Use cleaner syntax: NULL rather than 0.
64601         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64602
64603 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64606         It mishandled the case where the group was missing.
64607         Problem reported by Greg Schafer.
64608         * modules/idcache: Likewise.
64609
64610 2006-11-18  Jim Meyering  <jim@meyering.net>
64611
64612         * check-module (%exempt_header): Add exception for some
64613         conditionally-included headers.
64614
64615         * modules/i-ring (Depends-on): Add verify.
64616         (License): Change to LGPL.
64617
64618 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64621         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64622         and inttostr.h.  Use snprintf rather than uinttostr, so that
64623         LGPLed code doesn't depend on GPLed.
64624
64625 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64626
64627         * modules/inline (License): Change from GPL to LGPL.
64628
64629 2006-11-17  Jim Meyering  <jim@meyering.net>
64630
64631         * modules/d-type (License): Switch to LGPL.
64632
64633 2006-11-15  Bruno Haible  <bruno@clisp.org>
64634
64635         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64636
64637 2006-11-15  Eric Blake  <ebb9@byu.net>
64638
64639         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64640         the module dependency.
64641
64642 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64643             Bruno Haible  <bruno@clisp.org>
64644
64645         * gnulib-tool (func_create_testdir): Add license consistency check.
64646
64647 2006-11-15  Eric Blake  <ebb9@byu.net>
64648
64649         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64650         random "(cached)" in configure output.
64651
64652 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64653
64654         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64655         test for conforming inttypes.h is both announced and cached.
64656
64657         * MODULES.html.sh (seen_modules, seen_files): New variables.
64658         (func_module): Rewrite to use a few less gnulib-tool and sed
64659         invocations.  Avoid a couple of quadratic algorithms for ...
64660         (missed_modules, missed_files): ... these, with ...
64661         (func_append, func_tmpdir): ... these new functions, from
64662         gnulib-tool.  Analogously, install traps for cleanup.
64663
64664         * tests/test-gc.c (main): Remove unused variables.
64665         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64666
64667 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         * modules/inttostr (License): Change to LGPL.
64670
64671 2006-11-14  Eric Blake  <ebb9@byu.net>
64672
64673         * modules/tempname (License): Change to LGPL.
64674
64675 2006-11-14  Eric Blake  <ebb9@byu.net>
64676
64677         * doc/functions.texi (Function Portability): *printf functions on
64678         Cygwin now understand all POSIX size specifiers.
64679
64680 2006-11-14  Bruno Haible  <bruno@clisp.org>
64681
64682         * modules/c-ctype (License): Change to LGPL.
64683
64684 2006-11-12  Bruno Haible  <bruno@clisp.org>
64685
64686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64687         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64688         for GNOME libraries, for which the include files are installed in
64689         subdirectories of $prefix/include.
64690
64691 2006-11-12  Bruno Haible  <bruno@clisp.org>
64692
64693         * m4/lib-link.m4: Require at least autoconf-2.54.
64694         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64695         name to underscores for the --with option.
64696
64697 2006-11-13  Bruno Haible  <bruno@clisp.org>
64698
64699         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64700         the tests directory.
64701         Reported by Ralf Wildenhues.
64702
64703 2006-11-13  Bruno Haible  <bruno@clisp.org>
64704
64705         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64706         (func_emit_initmacro_end): Undo the override here.
64707         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64708         Works around the famous automake error in coreutils.
64709
64710 2006-11-13  Eric Blake  <ebb9@byu.net>
64711
64712         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64713         element, not its node.
64714
64715 2006-11-12  Bruno Haible  <bruno@clisp.org>
64716
64717         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64718         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64719
64720 2006-11-12  Bruno Haible  <bruno@clisp.org>
64721
64722         * gnulib-tool: New option --local-symlink.
64723         (func_usage): Document it.
64724         (lsymbolic): New variable.
64725         (func_import, func_create_testdir): If --symlink was not specified,
64726         test whether --local-symlink was specified and the file comes from
64727         the local_gnulib_dir.
64728
64729 2006-11-12  Bruno Haible  <bruno@clisp.org>
64730
64731         * gnulib-tool (func_ln): New function.
64732         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64733
64734 2006-11-12  Bruno Haible  <bruno@clisp.org>
64735
64736         Finish support for source files in subdirectories.
64737         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64738         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64739         AUTOMAKE_OPTIONS.
64740         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64741
64742 2006-11-12  Bruno Haible  <bruno@clisp.org>
64743
64744         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64745         EXTRA_lib_SOURCES augmentation.
64746         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64747
64748 2006-11-12  Jim Meyering  <jim@meyering.net>
64749
64750         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64751         file descriptors.  This also averts a failure on systems with
64752         native openat support when a traversed directory lacks "x" access.
64753         * lib/fts_.h: Include "i-ring.h"
64754         (struct FTS) [fts_fd_ring]: New member.
64755         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64756         (FCHDIR): Add parentheses.
64757         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64758         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64759         When descending, rather than simply closing the previous
64760         fts_cwd_fd value, push that file descriptor onto the ring.
64761         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64762         (fts_open): Initialize the new fd_ring member.
64763         (fts_close): Clear the ring.
64764         (fts_safe_changedir): When possible, use our new fd_ring to skip
64765         the diropen and fstat and dev/ino comparison that would normally
64766         accompany a virtual `chdir ("..")'.
64767
64768         * modules/fts (Depends-on): Add i-ring.
64769         * modules/i-ring: New module.
64770         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64771         * m4/i-ring.m4: New file.
64772
64773 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64774
64775         * gnulib-tool (func_create_testdir): Fix replacement of
64776         `build-aux' in configure.ac.  Run autotools in gltests
64777         subdirectory.
64778         (func_create_testdir, func_create_megatestdir, test): There is
64779         no need for '--force' in most autotool invocations in a new
64780         tree.  Actually fail the whole test if any of the tools, or the
64781         configure or make stages fail.
64782
64783         Sync from Automake.
64784         * build-aux/gnupload: Revert last change.  Add pointer to upload
64785         instructions of the GNU Maintenance Instructions.
64786         Suggestion by Karl Berry.
64787
64788 2006-11-10  Jim Meyering  <jim@meyering.net>
64789
64790         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64791
64792 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64795         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64796         (bind_textdomain_codeset) [! ENABLE_NLS]:
64797         Evaluate all the arguments.  That way, callers get compatible behavior
64798         if the arguments have side effects.  Also, it avoids some GCC
64799         diagnostics in some cases; Joel E. Denny reported problems when Bison
64800         was configured with --enable-gcc-warnigs.
64801
64802 2006-11-10  Jim Meyering  <jim@meyering.net>
64803
64804         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64805         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64806         account.
64807
64808 2006-11-10  Jim Meyering  <jim@meyering.net>
64809
64810         * modules/inline: New file/module.
64811         * modules/xalloc (Files): Remove m4/inline.m4.
64812         (Depends-on): Add inline, instead.
64813         * modules/oset: Likewise.
64814         * modules/list: Likewise.
64815
64816 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64819         Problem reported by Matthew Woehlke.
64820
64821 2006-11-09  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/tempname.c (gen_tempname): Remove variant that invokes
64824         __gen_tempname.
64825         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64826         __gen_tempname.
64827
64828 2006-11-08  Bruno Haible  <bruno@clisp.org>
64829
64830         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64831         to 'yes' instead of 'cross-compiling'.
64832
64833 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64834
64835         * lib/quotearg.h (quotearg_free): New decl.
64836         * lib/quotearg.c (quotearg_free): New function.
64837         (slot0, nslots, slotvec0, slotvec):
64838         Now file-scope so that quotearg_free can get at them.
64839
64840 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64841
64842         Sync from Automake.
64843         * build-aux/gnupload: Add missing 'gnu' to example URL.
64844         Report by Karl Berry.
64845
64846 2006-11-08  Bruno Haible  <bruno@clisp.org>
64847
64848         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64849         Suggested by Paul Eggert.
64850
64851 2006-11-08  Jim Meyering  <jim@meyering.net>
64852
64853         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64854         It's already included if !_LIBC.
64855         (fts_safe_changedir): Add a comment.
64856
64857 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64858
64859         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64860         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64861         Matthew Woehlke.
64862
64863         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64864         definitions up, to avoid colliding with change below.
64865         (static_inline) [HAVE_INLINE]: New macro.
64866         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64867         Provide extern decls when !HAVE_INLINE.  Do not define unless
64868         static_inline is defined, either by us or by xmalloc.c.  Use
64869         static_inline rather than static inline.
64870         (XCALLOC): Optimize sizeof(T) = 1 case.
64871         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64872
64873 2006-11-07  Bruno Haible  <bruno@clisp.org>
64874
64875         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64876         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64877         AC_C_INLINE.
64878         * modules/xalloc (Files): Add m4/inline.m4.
64879
64880 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64881
64882         * README: Fix typo.
64883         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64884         (Miscellanous Notes): ...from this.
64885
64886 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64889         Mention that offsetof should be used instead of sizeof.
64890         From Bruno Haible.
64891
64892 2006-11-07  Bruno Haible  <bruno@clisp.org>
64893
64894         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64895
64896 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64897
64898         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64899         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64900         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64901         (gl_tree_add_before, gl_tree_add_after):
64902         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64903         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64904         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64905         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64906         (gl_linked_add_after, gl_linked_add_at): Likewise.
64907         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64908         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64909         (gl_tree_add_before, gl_tree_add_after): Likewise.
64910         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64911         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64912         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64913
64914 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64915
64916         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64917
64918 2006-11-06  Bruno Haible  <bruno@clisp.org>
64919
64920         * m4/inline.m4: New file.
64921         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64922         * modules/list (Files): Add m4/inline.m4.
64923         * modules/oset (Files): Likewise.
64924
64925 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64926
64927         * lib/idcache.c: Include <stddef.h>, for offsetof.
64928         (struct userid.name): Change from char * to a flexible array member.
64929         All uses changed.
64930         * modules/idcache (Depends-on): Add flexmember.
64931
64932         * MODULES.html.sh (Core language properties): New module flexmember.
64933         * modules/flexmember, m4/flexmember.m4: New files.
64934
64935         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64936         inline functions that are identical with the old xnmalloc_inline,
64937         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64938         that we can avoid some unnecessary integer multiplications and
64939         divisions in the common case where the element size is known at
64940         compile time.
64941         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64942         needed.
64943         (xnboundedmalloc): Remove.
64944         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64945         arguments, for consistency with rest of this header.
64946         (xcharalloc): Rewrite using XNMALLOC.
64947         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64948         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64949         versions have been moved to lib/xalloc.h and renamed to be the
64950         non-*_inline versions.
64951         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64952         and xnrealloc functions, since those functions are now inline and
64953         now call us.
64954         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64955         renaming described above.
64956         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64957         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64958         captures the dependency in AC_C_INLINE.
64959
64960         New module canonicalize-lgpl, proposed by Charles Wilson in
64961         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64962         with a few small changes afterwards.
64963         * MODULES.html.sh (File system functions): New module
64964         canonicalize-lgpl.
64965         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64966         and canonicalize_file_name.
64967         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64968         * modules/canonicalize-lgpl: New files.
64969
64970 2006-11-05  Bruno Haible  <bruno@clisp.org>
64971
64972         * gnulib-tool (func_import, func_create_testdir): Create directories
64973         also for files in subdirectories of lib/.
64974
64975 2006-11-05  Bruno Haible  <bruno@clisp.org>
64976
64977         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64978         ANSI C compliant.
64979
64980 2006-11-03  Bruno Haible  <bruno@clisp.org>
64981
64982         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64983         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64984         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64985         (xnboundedmalloc): New inline function.
64986         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64987         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64988         xmalloc.
64989         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64990         xmalloc.
64991         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64992         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64993         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64994         xmalloc.
64995         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64996         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64997         xmalloc.
64998         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64999         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65000         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65001         xmalloc.
65002         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65003         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65004         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65005         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65006         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65007         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65008         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65009
65010 2006-11-03  Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/c-ctype.h [C++]: Define functions without name mangling.
65013         * lib/fwriteerror.h [C++]: Likewise.
65014         * lib/gcd.h [C++]: Likewise.
65015         * lib/linebreak.h [C++]: Likewise.
65016
65017 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65018
65019         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65020         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65021         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65022         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65023         Check for functions and headers just once.
65024         Check for declaration of canonicalize_file_name.
65025         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65026
65027 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65028
65029         * gnulib-tool (func_import): Fix typo in actioncmd.
65030
65031 2006-11-02  Bruno Haible  <bruno@clisp.org>
65032
65033         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65034         newline sequence in the Makefile.am snippet as a space, like "make"
65035         does.
65036         Reported by Roger Persson <perrog@gmail.com>.
65037
65038 2006-11-01  Bruno Haible  <bruno@clisp.org>
65039
65040         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65041         already declared in <string.h>.
65042         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65043
65044 2006-11-01  Bruno Haible  <bruno@clisp.org>
65045
65046         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65047         * lib/strcase.h: Include <string.h>.
65048         (strcasecmp): Define to rpl_strcasecmp here.
65049
65050 2006-11-01  Bruno Haible  <bruno@clisp.org>
65051
65052         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65053
65054 2006-11-01  Eric Blake  <ebb9@byu.net>
65055
65056         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65057
65058         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65059
65060 2006-10-29  Bruno Haible  <bruno@clisp.org>
65061
65062         Make it compile in C++ mode.
65063         * lib/full-write.c (full_rw): Add a cast.
65064
65065 2006-11-01  Bruno Haible  <bruno@clisp.org>
65066
65067         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65068         be POSIX compliant.
65069         Reported by Roger Persson <perrog@gmail.com>.
65070
65071 2006-11-01  Eric Blake  <ebb9@byu.net>
65072
65073         * lib/getopt_.h: Fix comments.
65074
65075 2006-10-31  Eric Blake  <ebb9@byu.net>
65076
65077         * modules/tmpdir (Depends-on): Add sys_stat.
65078         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65079         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65080         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65081         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65082         tempname.
65083
65084 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         Avoid some C++ diagnostics reported by Bruno Haible.
65087         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65088         xmalloc.
65089         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65090         (struct slotvec): Move to top level.
65091         (quotearg_n_options): Rewrite to avoid xmalloc.
65092         * lib/xalloc.h (xcharalloc): New function.
65093         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65094         [defined __cplusplus]: Add function template that provides result
65095         type propagation.  This part of the change is from Bruno Haible.
65096
65097 2006-10-29  Bruno Haible  <bruno@clisp.org>
65098
65099         Make it compile in C++ mode.
65100         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65101         * lib/strnlen1.c (strnlen1): Cast memchr result.
65102         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65103         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65104         (create_temp_dir): Rename local variable 'template'.
65105         (compile_csharp_using_sscli): Add cast.
65106         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65107         * lib/findprog.c (find_in_path): Likewise.
65108         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65109         * lib/wait-process.c (register_slave_subprocess): Likewise.
65110
65111 2006-10-22  Bruno Haible  <bruno@clisp.org>
65112
65113         * modules/tsearch: New file.
65114         * lib/tsearch.h: New file.
65115         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65116         * m4/tsearch.m4: New file.
65117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65118
65119 2006-10-29  Eric Blake  <ebb9@byu.net>
65120
65121         * lib/arcfour.c: Assume config.h.
65122         * lib/arctwo.c: Likewise.
65123         * lib/base64.c: Likewise.
65124         * lib/check-version.c: Likewise.
65125         * lib/crc.c: Likewise.
65126         * lib/des.c: Likewise.
65127         * lib/gc-gnulib.c: Likewise.
65128         * lib/gc-libgcrypt.c: Likewise.
65129         * lib/gc-pbkdf2-sha1.c: Likewise.
65130         * lib/getaddrinfo.c: Likewise.
65131         * lib/getdelim.c: Likewise.
65132         * lib/getline.c: Likewise.
65133         * lib/hmac-md5.c: Likewise.
65134         * lib/hmac-sha1.c: Likewise.
65135         * lib/iconvme.c: Likewise.
65136         * lib/md2.c: Likewise.
65137         * lib/md4.c: Likewise.
65138         * lib/memxor.c: Likewise.
65139         * lib/read-file.c: Likewise.
65140         * lib/readline.c: Likewise.
65141         * lib/rijndael-alg-fst.c: Likewise.
65142         * lib/rijndael-api-fst.c: Likewise.
65143         * lib/xgetdomainname.c: Likewise.
65144
65145 2006-10-28  Eric Blake  <ebb9@byu.net>
65146
65147         * lib/xstrndup.c: Assume config.h.
65148
65149 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65152         stat-macros.h is now for our own macros, whereas stat_h is for
65153         macros in the <sys/stat.h> name space.
65154         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65155         (STAT_MACROS_H): Remove.
65156         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65157         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65158         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65159         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65160         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65161         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65162         Move these macros to ...
65163         * lib/stat_.h: here.  Don't include stat-macros.h.
65164         * lib/canonicalize.c: Don't include stat-macros.h.
65165         * lib/chown.c: Likewise.
65166         * lib/euidaccess.c: Likewise.
65167         * lib/file-type.c: Likewise.
65168         * lib/filemode.c: Likewise.
65169         * lib/glob.c: Likewise.
65170         * lib/isapipe.c: Likewise.
65171         * lib/lchown.c: Likewise.
65172         * lib/lstat.c: Likewise.
65173         * lib/mkdir-p.c: Likewise.
65174         * lib/rmdir.c: Likewise.
65175         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65177         unless mkdir isn't declared, to speed up 'configure'.
65178         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65179         would define all the S_* symbols.
65180         * modules/canonicalize (Depends-on):
65181         Depend on sys_stat, not stat-macros.
65182         * modules/chown: Likewise.
65183         * modules/euidaccess: Likewise.
65184         * modules/filemode: Likewise.
65185         * modules/file-type: Likewise.
65186         * modules/glob: Likewise.
65187         * modules/isapipe: Likewise.
65188         * modules/lchown: Likewise.
65189         * modules/lstat: Likewise.
65190         * modules/mkancesdirs: Likewise.
65191         * modules/rmdir: Likewise.
65192         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65193         * modules/modechange: Likewise.
65194         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65195         (configure.ac): Remove gl_STAT_MACROS.
65196         * modules/sys_stat (Depends-on): Remove stat-macros.
65197
65198 2006-10-27  Bruno Haible  <bruno@clisp.org>
65199
65200         * m4/signed.m4: Remove file.
65201         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65202         invocation.
65203         * modules/vasnprintf (Files): Remove m4/signed.m4.
65204
65205 2006-10-27  Bruno Haible  <bruno@clisp.org>
65206
65207         Update to GNU gettext 0.16.
65208         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65209         m4/inttypes-h.m4, m4/signed.m4.
65210         * m4/gettext.m4: Update to GNU gettext 0.16.
65211         * m4/intl.m4: New file, from GNU gettext.
65212         * m4/intldir.m4: New file, from GNU gettext.
65213         * config/srclist.txt: Update
65214
65215 2006-10-27  Eric Blake  <ebb9@byu.net>
65216
65217         * MODULES.html.sh: Document tempname.
65218         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65219         dependencies.
65220         (Files): Move lib/tempname.c...
65221         * modules/tempname: ...to this new module.
65222         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65223         (gl_PREREQ_TEMPNAME): Move...
65224         * m4/tempname.m4: ...to this new file.
65225         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65226         * modules/sys_stat (Depends-on): Add stat-macros.
65227         * lib/stat_.h (includes): Pick up stat macros.
65228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65229         if stat macros are broken.
65230         * lib/tempname.c (includes): No need to include "stat-macros.h".
65231         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65232         (direxists, __path_search) [!_LIBC]: Don't compile these in
65233         gnulib; the tmpdir module covers that.
65234         * lib/tempname.h: New file.
65235
65236 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         * COPYING: Explain how gnulib-tool converts licence headers.
65239         Almost all wording by Eric Blake.
65240
65241 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65242
65243         * lib/mbchar.h (is_basic_table): Make read-only.
65244         * lib/mbchar.c (is_basic_table): Likewise.
65245         Reported by John Darrington.
65246
65247 2006-10-25  Bruno Haible  <bruno@clisp.org>
65248
65249         * lib/progname.h (set_program_name): Undefine before defining.
65250
65251 2006-10-25  Bruno Haible  <bruno@clisp.org>
65252
65253         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65254         false for non-gcc C++ compilers.
65255         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65256
65257 2006-10-24  Bruno Haible  <bruno@clisp.org>
65258
65259         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65260         iconv implementations like Irix iconv.
65261
65262 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * modules/vararrays: New file.
65265         * m4/vararrays.m4: New file, taken from diffutils.
65266         * MODULES.html.sh: New module vararrays.
65267
65268 2006-10-24  Karl Berry  <karl@gnu.org>
65269
65270         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65271         Don't call GNU Unix.
65272
65273 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65274
65275         * users.txt: Add Libtool.
65276
65277         Sync from Libtool:
65278
65279         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65282         to gnulib's policy of including config.h unconditionally.
65283
65284 2006-10-24  Bruno Haible  <bruno@clisp.org>
65285
65286         * modules/wcwidth (Files): Add m4/wint_t.m4.
65287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65288         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65289
65290 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65293         to pacify GCC with some -W flags enabled.  Problem reported by
65294         Bruno Haible.
65295
65296 2006-10-24  Jim Meyering  <jim@meyering.net>
65297
65298         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65299         Reported by Karl Berry.
65300
65301 2006-10-23  Bruno Haible  <bruno@clisp.org>
65302
65303         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65304
65305 2006-10-24  Bruno Haible  <bruno@clisp.org>
65306
65307         * lib/gl_list.h: Use C comment style, not C++ comment style.
65308
65309 2006-10-23  Eric Blake  <ebb9@byu.net>
65310
65311         * lib/getaddrinfo.c (includes): Add missing include.
65312
65313 2006-10-23  Bruno Haible  <bruno@clisp.org>
65314             Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         Ability to rename obstack_free.
65317         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65318         obstack_free.
65319         (obstack_free): Invoke the __obstack_free macro.
65320         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65321
65322 2006-10-23  Bruno Haible  <bruno@clisp.org>
65323             Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65326         __argc, __argv from the declaration. (They are defined as macros on
65327         mingw.)
65328
65329 2006-10-22  Bruno Haible  <bruno@clisp.org>
65330
65331         * doc/gnulib-intro.texi: New file.
65332         * doc/gnulib.texi: Include it.
65333
65334 2006-10-21  Bruno Haible  <bruno@clisp.org>
65335
65336         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65337         "Introduction", "Miscellanous Notes", "Particular Modules".
65338
65339 2006-10-21  Bruno Haible  <bruno@clisp.org>
65340
65341         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65342         Change mostlyclean-local rule to avoid sh syntax error from bash
65343         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65344
65345 2006-10-23  Jim Meyering  <jim@meyering.net>
65346
65347         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65348         in place of snprintf.
65349
65350         * modules/inttostr (Files): Add lib/uinttostr.c.
65351         * lib/uinttostr.c (inttostr): New file/function.
65352         * lib/inttostr.h (uinttostr): Declare.
65353         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65354         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65355         Add uinttostr.
65356         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65357
65358 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65359
65360         * lib/canonicalize.c (ELOOP): Define if not already defined.
65361         Problem reported by Bruno Haible in
65362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65363
65364 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65365
65366         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65367         Problem reported by Perry Smith and Ville Laurikari.
65368
65369         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65370         uses.
65371
65372 2006-10-19  Bruno Haible  <bruno@clisp.org>
65373
65374         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65375         for mingw.
65376
65377 2006-10-19  Bruno Haible  <bruno@clisp.org>
65378
65379         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65380         Needed for mingw.
65381
65382 2006-10-19  Bruno Haible  <bruno@clisp.org>
65383
65384         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65385
65386 2006-10-19  Bruno Haible  <bruno@clisp.org>
65387
65388         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65389         it.
65390
65391 2006-10-19  Bruno Haible  <bruno@clisp.org>
65392
65393         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65394         invocation.
65395
65396 2006-10-19  Bruno Haible  <bruno@clisp.org>
65397
65398         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65399         mountlist by default.
65400
65401 2006-10-16  Bruno Haible  <bruno@clisp.org>
65402
65403         * lib/c-strstr.c: Include c-strstr.h.
65404
65405 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65406
65407         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65408         in a slash.
65409
65410 2006-10-18  Bruno Haible  <bruno@clisp.org>
65411
65412         * lib/lock.h [C++]: Wrap definitions in extern "C".
65413
65414 2006-10-18  Bruno Haible  <bruno@clisp.org>
65415
65416         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65417         gl_LIBOBJS list.
65418
65419 2006-10-18  Bruno Haible  <bruno@clisp.org>
65420
65421         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65422
65423 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65424
65425         * lib/xstrtol.h: Include gettext.h.
65426         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65427         Problem reported by Eric Blake.
65428         * modules/xstrtol (Depends-on): Add gettext-h.
65429
65430 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65431
65432         * lib/strftime.c (advance): New macro.
65433         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65434         incomplete type, so you can't add 0 to it.  Problem and patch
65435         reported by Eelco Dolstra for dietlibc.
65436
65437 2006-10-18  Jim Meyering  <jim@meyering.net>
65438
65439         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65440         type for a local, and rename it: s/up/user_proc/.
65441
65442 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65443
65444         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65445         READ_UTMP_USER_PROCESS.
65446         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65447
65448 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65449
65450         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65451         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65452
65453 2006-10-17  Eric Blake  <ebb9@byu.net>
65454
65455         * lib/sigprocmask.c (sigprocmask): Fix typo.
65456
65457         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65458
65459         * modules/clean-temp (Makefile.am): Don't add to make output...
65460         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65461         config.h.
65462
65463 2006-10-17  Bruno Haible  <bruno@clisp.org>
65464
65465         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65466         differently if DEFAULT_TEXT_DOMAIN is set.
65467
65468 2006-10-16  Bruno Haible  <bruno@clisp.org>
65469
65470         * lib/clean-temp.c: Include fwriteerror.h.
65471
65472 2006-10-16  Bruno Haible  <bruno@clisp.org>
65473
65474         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65475
65476 2006-10-16  Bruno Haible  <bruno@clisp.org>
65477
65478         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65479         * lib/sigprocmask.h: Include <sys/types.h>.
65480         (sigset_t): Use the system's definition if present.
65481
65482 2006-10-17  Eric Blake  <ebb9@byu.net>
65483
65484         * lib/xvasprintf.c (includes): Assume config.h.
65485         * lib/xasprintf.c (includes): Likewise.
65486
65487 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65490         at least as wide as intmax_t.
65491
65492 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65493
65494         (Imported from Automake.)
65495         * build-aux/gnupload: Update to version 1.1 of directive file.
65496
65497 2006-10-16  Eric Blake  <ebb9@byu.net>
65498
65499         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65500         match Automake 1.10a.
65501
65502 2006-10-14  Bruno Haible  <bruno@clisp.org>
65503
65504         * modules/sigprocmask: New file.
65505         * lib/sigprocmask.h: New file.
65506         * lib/sigprocmask.c: New file.
65507         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65508         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65509         request sigprocmask.o.
65510         (gl_PREREQ_SIGPROCMASK): New macro.
65511         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65512         (Depends-on): Add sigprocmask.
65513         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65514         gt_SIGNALBLOCKING. Test for 'raise' only once.
65515         * lib/fatal-signal.c: Include sigprocmask.h.
65516         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65517         unblock_fatal_signals): Define always.
65518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65519         sigprocmask.
65520
65521 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65522
65523         Sync from Automake.
65524         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65525         which incorrectly sets the mode of an existing destination
65526         directory.  In some cases the unpatched install-sh could do the
65527         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65528         system.  We hope this is rare in practice, but it's clearly worth
65529         fixing.  Problem reported by Alex Unleashed in
65530         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65531         Also, don't bother to check for -m bugs unless we're using -m;
65532         suggested by Stepan Kasal.
65533
65534 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65535
65536         Sync from Automake.
65537         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65538         `-c' flag, so they appear at the same position as in %FASTDEP%
65539         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65540         which ignores unknown options only after the first non-option.
65541         Bug report against M4 by Nelson H. F. Beebe.
65542
65543 2006-10-13  Jim Meyering  <jim@meyering.net>
65544
65545         Fix a bug in yesterday's change.
65546         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65547         p->fts_statp->st_dev would be used uninitialized.
65548         Ensures that we always call fts_stat on the very first entry.
65549         Miklos Szeredi reported that find -xdev stopped working.
65550
65551 2006-10-12  Bruno Haible  <bruno@clisp.org>
65552
65553         * gnulib-tool (func_get_automake_snippet): Append an automatically
65554         computed EXTRA_DIST augmentation.
65555         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65556         * modules/alloca-opt (Makefile.am): Likewise.
65557         * modules/allocsa (Makefile.am): Likewise.
65558         * modules/arcfour (Makefile.am): Likewise.
65559         * modules/arctwo (Makefile.am): Likewise.
65560         * modules/argmatch (Makefile.am): Likewise.
65561         * modules/argz (Makefile.am): Likewise.
65562         * modules/atexit (Makefile.am): Likewise.
65563         * modules/backupfile (Makefile.am): Likewise.
65564         * modules/byteswap (Makefile.am): Likewise.
65565         * modules/c-strtod (Makefile.am): Likewise.
65566         * modules/c-strtold (Makefile.am): Likewise.
65567         * modules/calloc (Makefile.am): Likewise.
65568         * modules/canon-host (Makefile.am): Likewise.
65569         * modules/canonicalize (Makefile.am): Likewise.
65570         * modules/chdir-long (Makefile.am): Likewise.
65571         * modules/chdir-safer (Makefile.am): Likewise.
65572         * modules/check-version (Makefile.am): Likewise.
65573         * modules/chown (Makefile.am): Likewise.
65574         * modules/cloexec (Makefile.am): Likewise.
65575         * modules/close-stream (Makefile.am): Likewise.
65576         * modules/closeout (Makefile.am): Likewise.
65577         * modules/crc (Makefile.am): Likewise.
65578         * modules/csharpexec (Makefile.am): Likewise.
65579         * modules/cycle-check (Makefile.am): Likewise.
65580         * modules/des (Makefile.am): Likewise.
65581         * modules/dev-ino (Makefile.am): Likewise.
65582         * modules/dirfd (Makefile.am): Likewise.
65583         * modules/dirname (Makefile.am): Likewise.
65584         * modules/dup2 (Makefile.am): Likewise.
65585         * modules/eealloc (Makefile.am): Likewise.
65586         * modules/error (Makefile.am): Likewise.
65587         * modules/euidaccess (Makefile.am): Likewise.
65588         * modules/exclude (Makefile.am): Likewise.
65589         * modules/exitfail (Makefile.am): Likewise.
65590         * modules/fcntl-safer (Makefile.am): Likewise.
65591         * modules/fcntl (Makefile.am): Likewise.
65592         * modules/file-type (Makefile.am): Likewise.
65593         * modules/fileblocks (Makefile.am): Likewise.
65594         * modules/filemode (Makefile.am): Likewise.
65595         * modules/filenamecat (Makefile.am): Likewise.
65596         * modules/fnmatch (Makefile.am): Likewise.
65597         * modules/fopen-safer (Makefile.am): Likewise.
65598         * modules/fpending (Makefile.am): Likewise.
65599         * modules/fprintftime (Makefile.am): Likewise.
65600         * modules/free (Makefile.am): Likewise.
65601         * modules/fsusage (Makefile.am): Likewise.
65602         * modules/ftruncate (Makefile.am): Likewise.
65603         * modules/fts (Makefile.am): Likewise.
65604         * modules/gc-arcfour (Makefile.am): Likewise.
65605         * modules/gc-des (Makefile.am): Likewise.
65606         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65607         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65608         * modules/gc-md4 (Makefile.am): Likewise.
65609         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65610         * modules/gc-sha1 (Makefile.am): Likewise.
65611         * modules/gc (Makefile.am): Likewise.
65612         * modules/getaddrinfo (Makefile.am): Likewise.
65613         * modules/getcwd (Makefile.am): Likewise.
65614         * modules/getdelim (Makefile.am): Likewise.
65615         * modules/getdomainname (Makefile.am): Likewise.
65616         * modules/getgroups (Makefile.am): Likewise.
65617         * modules/gethostname (Makefile.am): Likewise.
65618         * modules/gethrxtime (Makefile.am): Likewise.
65619         * modules/getline (Makefile.am): Likewise.
65620         * modules/getloadavg (Makefile.am): Likewise.
65621         * modules/getlogin_r (Makefile.am): Likewise.
65622         * modules/getndelim2 (Makefile.am): Likewise.
65623         * modules/getopt (Makefile.am): Likewise.
65624         * modules/getpagesize (Makefile.am): Likewise.
65625         * modules/getpass-gnu (Makefile.am): Likewise.
65626         * modules/getpass (Makefile.am): Likewise.
65627         * modules/getsubopt (Makefile.am): Likewise.
65628         * modules/gettime (Makefile.am): Likewise.
65629         * modules/gettimeofday (Makefile.am): Likewise.
65630         * modules/getugroups (Makefile.am): Likewise.
65631         * modules/getusershell (Makefile.am): Likewise.
65632         * modules/glob (Makefile.am): Likewise.
65633         * modules/group-member (Makefile.am): Likewise.
65634         * modules/hard-locale (Makefile.am): Likewise.
65635         * modules/hash (Makefile.am): Likewise.
65636         * modules/hmac-md5 (Makefile.am): Likewise.
65637         * modules/hmac-sha1 (Makefile.am): Likewise.
65638         * modules/human (Makefile.am): Likewise.
65639         * modules/idcache (Makefile.am): Likewise.
65640         * modules/imaxabs (Makefile.am): Likewise.
65641         * modules/imaxdiv (Makefile.am): Likewise.
65642         * modules/inet_ntop (Makefile.am): Likewise.
65643         * modules/inet_pton (Makefile.am): Likewise.
65644         * modules/intprops (Makefile.am): Likewise.
65645         * modules/inttostr (Makefile.am): Likewise.
65646         * modules/inttypes (Makefile.am): Likewise.
65647         * modules/isapipe (Makefile.am): Likewise.
65648         * modules/javaversion (Makefile.am): Likewise.
65649         * modules/lchmod (Makefile.am): Likewise.
65650         * modules/lchown (Makefile.am): Likewise.
65651         * modules/localcharset (Makefile.am): Likewise.
65652         * modules/long-options (Makefile.am): Likewise.
65653         * modules/lstat (Makefile.am): Likewise.
65654         * modules/malloc (Makefile.am): Likewise.
65655         * modules/mathl (Makefile.am): Likewise.
65656         * modules/mbchar (Makefile.am): Likewise.
65657         * modules/md2 (Makefile.am): Likewise.
65658         * modules/md4 (Makefile.am): Likewise.
65659         * modules/md5 (Makefile.am): Likewise.
65660         * modules/memcasecmp (Makefile.am): Likewise.
65661         * modules/memchr (Makefile.am): Likewise.
65662         * modules/memcmp (Makefile.am): Likewise.
65663         * modules/memcoll (Makefile.am): Likewise.
65664         * modules/memcpy (Makefile.am): Likewise.
65665         * modules/memmem (Makefile.am): Likewise.
65666         * modules/memmove (Makefile.am): Likewise.
65667         * modules/mempcpy (Makefile.am): Likewise.
65668         * modules/memrchr (Makefile.am): Likewise.
65669         * modules/memset (Makefile.am): Likewise.
65670         * modules/memxor (Makefile.am): Likewise.
65671         * modules/mkancesdirs (Makefile.am): Likewise.
65672         * modules/mkdir-p (Makefile.am): Likewise.
65673         * modules/mkdir (Makefile.am): Likewise.
65674         * modules/mkdtemp (Makefile.am): Likewise.
65675         * modules/mkstemp (Makefile.am): Likewise.
65676         * modules/mktime (Makefile.am): Likewise.
65677         * modules/modechange (Makefile.am): Likewise.
65678         * modules/mountlist (Makefile.am): Likewise.
65679         * modules/nanosleep (Makefile.am): Likewise.
65680         * modules/obstack (Makefile.am): Likewise.
65681         * modules/openat (Makefile.am): Likewise.
65682         * modules/pagealign_alloc (Makefile.am): Likewise.
65683         * modules/pathmax (Makefile.am): Likewise.
65684         * modules/physmem (Makefile.am): Likewise.
65685         * modules/poll (Makefile.am): Likewise.
65686         * modules/posixtm (Makefile.am): Likewise.
65687         * modules/posixver (Makefile.am): Likewise.
65688         * modules/putenv (Makefile.am): Likewise.
65689         * modules/quote (Makefile.am): Likewise.
65690         * modules/quotearg (Makefile.am): Likewise.
65691         * modules/raise (Makefile.am): Likewise.
65692         * modules/read-file (Makefile.am): Likewise.
65693         * modules/readline (Makefile.am): Likewise.
65694         * modules/readlink (Makefile.am): Likewise.
65695         * modules/readtokens (Makefile.am): Likewise.
65696         * modules/readutmp (Makefile.am): Likewise.
65697         * modules/realloc (Makefile.am): Likewise.
65698         * modules/regex (Makefile.am): Likewise.
65699         * modules/rename-dest-slash (Makefile.am): Likewise.
65700         * modules/rename (Makefile.am): Likewise.
65701         * modules/rijndael (Makefile.am): Likewise.
65702         * modules/rmdir (Makefile.am): Likewise.
65703         * modules/rpmatch (Makefile.am): Likewise.
65704         * modules/safe-read (Makefile.am): Likewise.
65705         * modules/safe-write (Makefile.am): Likewise.
65706         * modules/same-inode (Makefile.am): Likewise.
65707         * modules/same (Makefile.am): Likewise.
65708         * modules/save-cwd (Makefile.am): Likewise.
65709         * modules/savedir (Makefile.am): Likewise.
65710         * modules/setenv (Makefile.am): Likewise.
65711         * modules/settime (Makefile.am): Likewise.
65712         * modules/sha1 (Makefile.am): Likewise.
65713         * modules/sig2str (Makefile.am): Likewise.
65714         * modules/snprintf (Makefile.am): Likewise.
65715         * modules/stat-macros (Makefile.am): Likewise.
65716         * modules/stat-time (Makefile.am): Likewise.
65717         * modules/stdbool (Makefile.am): Likewise.
65718         * modules/stdint (Makefile.am): Likewise.
65719         * modules/stdlib-safer (Makefile.am): Likewise.
65720         * modules/stpcpy (Makefile.am): Likewise.
65721         * modules/stpncpy (Makefile.am): Likewise.
65722         * modules/strcase (Makefile.am): Likewise.
65723         * modules/strcasestr (Makefile.am): Likewise.
65724         * modules/strchrnul (Makefile.am): Likewise.
65725         * modules/strcspn (Makefile.am): Likewise.
65726         * modules/strdup (Makefile.am): Likewise.
65727         * modules/strerror (Makefile.am): Likewise.
65728         * modules/strftime (Makefile.am): Likewise.
65729         * modules/strndup (Makefile.am): Likewise.
65730         * modules/strnlen (Makefile.am): Likewise.
65731         * modules/strpbrk (Makefile.am): Likewise.
65732         * modules/strsep (Makefile.am): Likewise.
65733         * modules/strstr (Makefile.am): Likewise.
65734         * modules/strtod (Makefile.am): Likewise.
65735         * modules/strtoimax (Makefile.am): Likewise.
65736         * modules/strtok_r (Makefile.am): Likewise.
65737         * modules/strtol (Makefile.am): Likewise.
65738         * modules/strtoll (Makefile.am): Likewise.
65739         * modules/strtoul (Makefile.am): Likewise.
65740         * modules/strtoull (Makefile.am): Likewise.
65741         * modules/strtoumax (Makefile.am): Likewise.
65742         * modules/strverscmp (Makefile.am): Likewise.
65743         * modules/sys_socket (Makefile.am): Likewise.
65744         * modules/sys_stat (Makefile.am): Likewise.
65745         * modules/sysexits (Makefile.am): Likewise.
65746         * modules/time_r (Makefile.am): Likewise.
65747         * modules/timegm (Makefile.am): Likewise.
65748         * modules/timespec (Makefile.am): Likewise.
65749         * modules/tmpfile-safer (Makefile.am): Likewise.
65750         * modules/trim (Makefile.am): Likewise.
65751         * modules/unistd-safer (Makefile.am): Likewise.
65752         * modules/unlinkdir (Makefile.am): Likewise.
65753         * modules/unlocked-io (Makefile.am): Likewise.
65754         * modules/userspec (Makefile.am): Likewise.
65755         * modules/utime (Makefile.am): Likewise.
65756         * modules/utimecmp (Makefile.am): Likewise.
65757         * modules/utimens (Makefile.am): Likewise.
65758         * modules/vasnprintf (Makefile.am): Likewise.
65759         * modules/vasprintf (Makefile.am): Likewise.
65760         * modules/vsnprintf (Makefile.am): Likewise.
65761         * modules/xalloc (Makefile.am): Likewise.
65762         * modules/xgetcwd (Makefile.am): Likewise.
65763         * modules/xnanosleep (Makefile.am): Likewise.
65764         * modules/xreadlink (Makefile.am): Likewise.
65765         * modules/xstrtod (Makefile.am): Likewise.
65766         * modules/xstrtol (Makefile.am): Likewise.
65767         * modules/xstrtold (Makefile.am): Likewise.
65768         * modules/yesno (Makefile.am): Likewise.
65769         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65770
65771 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * modules/error (Makefile.am): Distribute files through
65774         EXTRA_DIST, not lib_SOURCES.
65775
65776 2006-10-12  Eric Blake  <ebb9@byu.net>
65777
65778         * modules/error (Makefile.am): Distribute files in /lib.
65779         * modules/obstack (Makefile.am): Likewise.
65780
65781 2006-10-12  Bruno Haible  <bruno@clisp.org>
65782
65783         * modules/acl (Makefile.am): Distribute all files in lib/ through
65784         EXTRA_DIST.
65785         * modules/arcfour (Makefile.am): Likewise.
65786         * modules/arctwo (Makefile.am): Likewise.
65787         * modules/argmatch (Makefile.am): Likewise.
65788         * modules/argz (Makefile.am): Likewise.
65789         * modules/atexit (Makefile.am): Likewise.
65790         * modules/backupfile (Makefile.am): Likewise.
65791         * modules/c-strtod (Makefile.am): Likewise.
65792         * modules/c-strtold (Makefile.am): Likewise.
65793         * modules/calloc (Makefile.am): Likewise.
65794         * modules/canon-host (Makefile.am): Likewise.
65795         * modules/canonicalize (Makefile.am): Likewise.
65796         * modules/chdir-long (Makefile.am): Likewise.
65797         * modules/chdir-safer (Makefile.am): Likewise.
65798         * modules/check-version (Makefile.am): Likewise.
65799         * modules/chown (Makefile.am): Likewise.
65800         * modules/cloexec (Makefile.am): Likewise.
65801         * modules/close-stream (Makefile.am): Likewise.
65802         * modules/closeout (Makefile.am): Likewise.
65803         * modules/crc (Makefile.am): Likewise.
65804         * modules/cycle-check (Makefile.am): Likewise.
65805         * modules/des (Makefile.am): Likewise.
65806         * modules/dirfd (Makefile.am): Likewise.
65807         * modules/dirname (Makefile.am): Likewise.
65808         * modules/dup2 (Makefile.am): Likewise.
65809         * modules/euidaccess (Makefile.am): Likewise.
65810         * modules/exclude (Makefile.am): Likewise.
65811         * modules/exitfail (Makefile.am): Likewise.
65812         * modules/fcntl-safer (Makefile.am): Likewise.
65813         * modules/file-type (Makefile.am): Likewise.
65814         * modules/fileblocks (Makefile.am): Likewise.
65815         * modules/filemode (Makefile.am): Likewise.
65816         * modules/filenamecat (Makefile.am): Likewise.
65817         * modules/fnmatch (Makefile.am): Likewise.
65818         * modules/fopen-safer (Makefile.am): Likewise.
65819         * modules/fpending (Makefile.am): Likewise.
65820         * modules/fprintftime (Makefile.am): Likewise.
65821         * modules/free (Makefile.am): Likewise.
65822         * modules/fsusage (Makefile.am): Likewise.
65823         * modules/ftruncate (Makefile.am): Likewise.
65824         * modules/fts (Makefile.am): Likewise.
65825         * modules/gc (Makefile.am): Likewise.
65826         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65827         * modules/getaddrinfo (Makefile.am): Likewise.
65828         * modules/getcwd (Makefile.am): Likewise.
65829         * modules/getdelim (Makefile.am): Likewise.
65830         * modules/getdomainname (Makefile.am): Likewise.
65831         * modules/getgroups (Makefile.am): Likewise.
65832         * modules/gethostname (Makefile.am): Likewise.
65833         * modules/gethrxtime (Makefile.am): Likewise.
65834         * modules/getline (Makefile.am): Likewise.
65835         * modules/getloadavg (Makefile.am): Likewise.
65836         * modules/getlogin_r (Makefile.am): Likewise.
65837         * modules/getopt (Makefile.am): Likewise.
65838         * modules/getpass (Makefile.am): Likewise.
65839         * modules/getpass-gnu (Makefile.am): Likewise.
65840         * modules/getsubopt (Makefile.am): Likewise.
65841         * modules/gettime (Makefile.am): Likewise.
65842         * modules/gettimeofday (Makefile.am): Likewise.
65843         * modules/getugroups (Makefile.am): Likewise.
65844         * modules/getusershell (Makefile.am): Likewise.
65845         * modules/glob (Makefile.am): Likewise.
65846         * modules/group-member (Makefile.am): Likewise.
65847         * modules/hard-locale (Makefile.am): Likewise.
65848         * modules/hash (Makefile.am): Likewise.
65849         * modules/hmac-md5 (Makefile.am): Likewise.
65850         * modules/hmac-sha1 (Makefile.am): Likewise.
65851         * modules/human (Makefile.am): Likewise.
65852         * modules/idcache (Makefile.am): Likewise.
65853         * modules/imaxabs (Makefile.am): Likewise.
65854         * modules/imaxdiv (Makefile.am): Likewise.
65855         * modules/inet_ntop (Makefile.am): Likewise.
65856         * modules/inet_pton (Makefile.am): Likewise.
65857         * modules/inttostr (Makefile.am): Likewise.
65858         * modules/isapipe (Makefile.am): Likewise.
65859         * modules/lchown (Makefile.am): Likewise.
65860         * modules/long-options (Makefile.am): Likewise.
65861         * modules/lstat (Makefile.am): Likewise.
65862         * modules/malloc (Makefile.am): Likewise.
65863         * modules/mathl (Makefile.am): Likewise.
65864         * modules/mbchar (Makefile.am): Likewise.
65865         * modules/md2 (Makefile.am): Likewise.
65866         * modules/md4 (Makefile.am): Likewise.
65867         * modules/md5 (Makefile.am): Likewise.
65868         * modules/memcasecmp (Makefile.am): Likewise.
65869         * modules/memchr (Makefile.am): Likewise.
65870         * modules/memcmp (Makefile.am): Likewise.
65871         * modules/memcoll (Makefile.am): Likewise.
65872         * modules/memcpy (Makefile.am): Likewise.
65873         * modules/memmem (Makefile.am): Likewise.
65874         * modules/memmove (Makefile.am): Likewise.
65875         * modules/mempcpy (Makefile.am): Likewise.
65876         * modules/memrchr (Makefile.am): Likewise.
65877         * modules/memset (Makefile.am): Likewise.
65878         * modules/memxor (Makefile.am): Likewise.
65879         * modules/mkancesdirs (Makefile.am): Likewise.
65880         * modules/mkdir (Makefile.am): Likewise.
65881         * modules/mkdir-p (Makefile.am): Likewise.
65882         * modules/mkdtemp (Makefile.am): Likewise.
65883         * modules/mkstemp (Makefile.am): Likewise.
65884         * modules/mktime (Makefile.am): Likewise.
65885         * modules/modechange (Makefile.am): Likewise.
65886         * modules/mountlist (Makefile.am): Likewise.
65887         * modules/nanosleep (Makefile.am): Likewise.
65888         * modules/openat (Makefile.am): Likewise.
65889         * modules/pagealign_alloc (Makefile.am): Likewise.
65890         * modules/physmem (Makefile.am): Likewise.
65891         * modules/poll (Makefile.am): Likewise.
65892         * modules/posixtm (Makefile.am): Likewise.
65893         * modules/posixver (Makefile.am): Likewise.
65894         * modules/putenv (Makefile.am): Likewise.
65895         * modules/quote (Makefile.am): Likewise.
65896         * modules/quotearg (Makefile.am): Likewise.
65897         * modules/raise (Makefile.am): Likewise.
65898         * modules/read-file (Makefile.am): Likewise.
65899         * modules/readline (Makefile.am): Likewise.
65900         * modules/readlink (Makefile.am): Likewise.
65901         * modules/readtokens (Makefile.am): Likewise.
65902         * modules/readutmp (Makefile.am): Likewise.
65903         * modules/realloc (Makefile.am): Likewise.
65904         * modules/regex (Makefile.am): Likewise.
65905         * modules/rename (Makefile.am): Likewise.
65906         * modules/rename-dest-slash (Makefile.am): Likewise.
65907         * modules/rijndael (Makefile.am): Likewise.
65908         * modules/rmdir (Makefile.am): Likewise.
65909         * modules/rpmatch (Makefile.am): Likewise.
65910         * modules/safe-read (Makefile.am): Likewise.
65911         * modules/safe-write (Makefile.am): Likewise.
65912         * modules/same (Makefile.am): Likewise.
65913         * modules/save-cwd (Makefile.am): Likewise.
65914         * modules/savedir (Makefile.am): Likewise.
65915         * modules/setenv (Makefile.am): Likewise.
65916         * modules/settime (Makefile.am): Likewise.
65917         * modules/sha1 (Makefile.am): Likewise.
65918         * modules/sig2str (Makefile.am): Likewise.
65919         * modules/snprintf (Makefile.am): Likewise.
65920         * modules/stdlib-safer (Makefile.am): Likewise.
65921         * modules/stpcpy (Makefile.am): Likewise.
65922         * modules/stpncpy (Makefile.am): Likewise.
65923         * modules/strcase (Makefile.am): Likewise.
65924         * modules/strcasestr (Makefile.am): Likewise.
65925         * modules/strchrnul (Makefile.am): Likewise.
65926         * modules/strcspn (Makefile.am): Likewise.
65927         * modules/strdup (Makefile.am): Likewise.
65928         * modules/strerror (Makefile.am): Likewise.
65929         * modules/strftime (Makefile.am): Likewise.
65930         * modules/strndup (Makefile.am): Likewise.
65931         * modules/strnlen (Makefile.am): Likewise.
65932         * modules/strpbrk (Makefile.am): Likewise.
65933         * modules/strsep (Makefile.am): Likewise.
65934         * modules/strstr (Makefile.am): Likewise.
65935         * modules/strtod (Makefile.am): Likewise.
65936         * modules/strtoimax (Makefile.am): Likewise.
65937         * modules/strtok_r (Makefile.am): Likewise.
65938         * modules/strtol (Makefile.am): Likewise.
65939         * modules/strtoll (Makefile.am): Likewise.
65940         * modules/strtoul (Makefile.am): Likewise.
65941         * modules/strtoull (Makefile.am): Likewise.
65942         * modules/strtoumax (Makefile.am): Likewise.
65943         * modules/strverscmp (Makefile.am): Likewise.
65944         * modules/time_r (Makefile.am): Likewise.
65945         * modules/timegm (Makefile.am): Likewise.
65946         * modules/tmpfile-safer (Makefile.am): Likewise.
65947         * modules/unistd-safer (Makefile.am): Likewise.
65948         * modules/unlinkdir (Makefile.am): Likewise.
65949         * modules/userspec (Makefile.am): Likewise.
65950         * modules/utime (Makefile.am): Likewise.
65951         * modules/utimecmp (Makefile.am): Likewise.
65952         * modules/utimens (Makefile.am): Likewise.
65953         * modules/vasnprintf (Makefile.am): Likewise.
65954         * modules/vasprintf (Makefile.am): Likewise.
65955         * modules/vsnprintf (Makefile.am): Likewise.
65956         * modules/xalloc (Makefile.am): Likewise.
65957         * modules/xgetcwd (Makefile.am): Likewise.
65958         * modules/xnanosleep (Makefile.am): Likewise.
65959         * modules/xreadlink (Makefile.am): Likewise.
65960         * modules/xstrtod (Makefile.am): Likewise.
65961         * modules/xstrtol (Makefile.am): Likewise.
65962         * modules/xstrtold (Makefile.am): Likewise.
65963         * modules/yesno (Makefile.am): Likewise.
65964
65965 2006-10-12  Jim Meyering  <jim@meyering.net>
65966
65967         * m4/getloadavg.m4: Revert the change below.
65968
65969         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65970         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65971         fail with a symlink, which is what coreutils' ./bootstrap now
65972         creates by default.
65973
65974 2006-10-12  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65977         mingw.
65978         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65979         MSVC and mingw explicitly.
65980
65981 2006-10-11  Simon Josefsson  <jas@extundo.com>
65982             Bruno Haible  <bruno@clisp.org>
65983
65984         Add support for multiple gnulib-tool invocations in the scope of a
65985         single configure.ac file.
65986         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65987         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65988         with the same contents as the _LIBADD variable.
65989         (func_emit_initmacro_start, func_emit_initmacro_end,
65990         func_emit_initmacro_done): New functions.
65991         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65992         gl_LIBOBJS and gl_LTLIBOBJS.
65993
65994 2006-10-11  Bruno Haible  <bruno@clisp.org>
65995
65996         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65997         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65998         autoreconf. Instead, invoke autopoint explicitly but move back the
65999         *.m4 files from gnulib.
66000
66001 2006-10-11  Bruno Haible  <bruno@clisp.org>
66002
66003         * gnulib-tool (func_usage): Make module names after --create-testdir
66004         optional.
66005         (func_create_testdir): If no module was specified, use nearly all
66006         modules.
66007
66008 2006-10-12  Jim Meyering  <jim@meyering.net>
66009
66010         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66011         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66012         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66013         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66014         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66015         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66016         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66017         (fts_set_stat_required): New function.
66018         (fts_open): Defer the calls to fts_stat, if possible or requested.
66019         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66020         into fts_stat itself.
66021         (fts_read): Perform any required (deferred) fts_stat call.
66022         (fts_build): Likewise, for the directory we're about to open and read.
66023         In the readdir loop, carefully decide whether each entry will require
66024         an eventual call to fts_stat, using dirent.d_type info if available.
66025         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66026         a command line argument into this function.  Update all callers.
66027         Map a return value of FTS_DOT to FTS_D for a command line argument.
66028         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66029         Thanks to Miklos Szeredi for his tenacity and for the initial
66030         bug report about "find" failing on a FUSE-based file system.
66031
66032         * lib/fts.c (fts_open): Use consistent indentation.
66033
66034 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66035
66036         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66037         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66038         reported by Jim Meyering.  All uses of cache variables renamed
66039         to match Autoconf's.
66040         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66041         the other one.
66042
66043         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66044         Fix misspelling in diagnostic.
66045
66046 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66049         defined.  Problem reported by Matthew Woehlke.
66050
66051         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66052         Add support for Tandem NonStop R series.
66053         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66054         Use new macro.
66055
66056         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66057         (has_trailing_slash): Omit size arg; all callers changed.
66058         Omit 'inline', since it doesn't help performance and we'd
66059         need to configure it.
66060         Don't count //, ///, etc. as having a trailing slash.
66061         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66062         (rpl_rename_dest_slash): On failure, use rename's errno rather
66063         than (in some cases) an incorrect or junk errno.
66064         Simplify code by removing need to compute length; this does
66065         cause it to make two passes instead of one over the file name,
66066         but it's worth it.
66067
66068         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66069         change, since Autoconf's version may no longer be appropriate now
66070         that we are using CVS Autoconf's version.  Add support for Tandem.
66071
66072 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66073             Bruno Haible  <bruno@clisp.org>
66074
66075         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66076         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66077         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66078         gl_AC_TYPE_LONG_LONG.
66079
66080         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66081         instead of HAVE_LONG_LONG.
66082         * lib/printf-args.c (printf_fetchargs): Likewise.
66083         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66084         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66085         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66086         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66087         gl_AC_TYPE_LONG_LONG.
66088
66089 2006-10-11  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/longlong.m4: Add comments.
66092         * m4/ulonglong.m4: Likewise.
66093
66094 2006-10-10  Bruno Haible  <bruno@clisp.org>
66095
66096         Make it possible to #define stpcpy, strdup to aliases.
66097         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66098         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66099
66100 2006-10-10  Bruno Haible  <bruno@clisp.org>
66101
66102         Make it possible to #define gcd to an alias.
66103         * lib/gcd.c: Include config.h.
66104
66105 2006-10-10  Bruno Haible  <bruno@clisp.org>
66106
66107         Make it possible to #define c_isascii to an alias.
66108         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66109         defined. Undefine the macros before defining them, to avoid gcc
66110         warnings.
66111         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66112         define NO_C_CTYPE_MACROS early.
66113
66114 2006-10-10  Bruno Haible  <bruno@clisp.org>
66115
66116         Make it possible to #define set_program_name to an alias.
66117         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66118         ENABLE_RELOCATABLE early.
66119
66120 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66123         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66124         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66125         More generally, don't assume that 64-bit signed int is available
66126         if unsigned int is, and vice versa.
66127         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66128         unsigned symbols, not on their signed counterparts.
66129         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66130         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66131         (UINT64_C, UINTMAX_C):
66132         Likewise.
66133         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66134         unsigned counterparts.
66135         (Have_long_long, Unsigned): New macros.
66136         (Int): Renamed from INT.
66137         (strtoimax): Use the new macros.
66138         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66139         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66140         * modules/inttypes (inttypes.h): Substitute
66141         HAVE_UNSIGNED_LONG_LONG_INT.
66142         * modules/stdint (stdint.h): Likewise.
66143         (Files): Add m4/ulonglong.m4.
66144
66145 2006-10-10  Bruno Haible  <bruno@clisp.org>
66146
66147         Fix a gcc -Wshadow warning.
66148         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66149         to 'bucket'.
66150         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66151         gl_linked_indexof_from_to): Likewise.
66152         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66153         Likewise.
66154         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66155         Likewise.
66156         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66157         Reported by Eric Blake.
66158
66159 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66162         for NetBSD.  Problem reported by Bruno Haible.
66163
66164 2006-10-09  Jim Meyering  <jim@meyering.net>
66165
66166         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66167         Patch from Bruno Haible.
66168
66169 2006-10-09  Jim Meyering  <jim@meyering.net>
66170
66171         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66172         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66173         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66174
66175 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66176
66177         Don't include <config.h> twice; this doesn't work in some cases,
66178         e.g., when config.h has "#define intmax_t long long int" and
66179         we include <config.h>, <inttypes.h>, <config.h> in that order.
66180         Problem reported by Matthew Woehlke in:
66181         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66182         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66183         * lib/fts-cycle.c: Don't include config.h.
66184         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66185         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66186         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66187         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66188         inttypes.h.
66189         * lib/xstrtoumax.c: Likewise.
66190         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66191         __strtol and the like, so that this module is more like its siblings.
66192         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66193         Remove; no longer needed now that we assume gnulib inttypes.h.
66194
66195 2006-10-08  Bruno Haible  <bruno@clisp.org>
66196
66197         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66198         option.
66199
66200 2006-10-07  Jim Meyering  <jim@meyering.net>
66201
66202         * modules/inttypes (inttypes.h): Revert what seems to have been
66203         an inadvertent part of today's change: use "|", not "/" in the
66204         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66205
66206 2006-10-07  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/sublist: New file.
66209
66210 2006-10-07  Bruno Haible  <bruno@clisp.org>
66211
66212         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66213         * modules/argz (argz.h): Likewise.
66214         * modules/arpa_inet (arpa/inet.h): Likewise.
66215         * modules/byteswap (byteswap.h): Likewise.
66216         * modules/configmake (configmake.h): Likewise.
66217         * modules/fcntl (fcntl.h): Likewise.
66218         * modules/fnmatch (fnmatch.h): Likewise.
66219         * modules/getopt (getopt.h): Likewise.
66220         * modules/glob (glob.h): Likewise.
66221         * modules/inttypes (inttypes.h): Likewise.
66222         * modules/netinet_in (netinet/in.h): Likewise.
66223         * modules/poll (poll.h): Likewise.
66224         * modules/stdbool (stdbool.h): Likewise.
66225         * modules/stdint (stdint.h): Likewise.
66226         * modules/sys_select (sys/select.h): Likewise.
66227         * modules/sys_socket (sys/socket.h): Likewise.
66228         * modules/sys_stat (sys/stat.h): Likewise.
66229         * modules/sysexits (sysexits.h): Likewise.
66230         * modules/unistd (unistd.h): Likewise.
66231         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66232         Add a "DO NOT EDIT" comment to the generated file.
66233         (func_import): Likewise for gnulib-comp.m4.
66234
66235 2006-10-07  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/gl_sublist.h: New file.
66238         * lib/gl_sublist.c: New file.
66239
66240 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66241
66242         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66243         name (relative to the original working directory) and the file
66244         name component (relative to the temporary working directory).  All
66245         callers changed.
66246         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66247         * lib/mkdir-p.c (make_dir_parents): Likewise.
66248         * lib/mkdir-p.h (make_dir_parents): Likewise.
66249
66250 2006-10-06  Eric Blake  <ebb9@byu.net>
66251
66252         Define several macros for use by the clean-temp module.
66253         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66254         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66255         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66256
66257         * lib/clean-temp.h (close_stream_temp): New declaration.
66258         * lib/clean-temp.c (includes): Pull in headers according to what
66259         other modules are in use.
66260         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66261
66262 2006-10-06  Bruno Haible  <bruno@clisp.org>
66263
66264         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66265         instead of fopen, fwriteerror.
66266
66267 2006-10-06  Bruno Haible  <bruno@clisp.org>
66268
66269         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66270         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66271         int.
66272         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66273         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66274         Return an error indicator.
66275         Suggested by Eric Blake.
66276
66277 2006-10-06  Bruno Haible  <bruno@clisp.org>
66278
66279         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66280         Reported by Eric Blake.
66281
66282 2006-10-06  Bruno Haible  <bruno@clisp.org>
66283
66284         * modules/closeout (Description): Mention stderr too.
66285
66286 2006-10-06  Bruno Haible  <bruno@clisp.org>
66287         and Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         * lib/closeout.c (close_stdout): Also close stderr.
66290         * lib/closeout.h: Update comment.
66291
66292 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66293
66294         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66295         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66296         * lib/dirchownmod.c: Include lchown.h.
66297         * lib/lchown.c: Don't include files that lchown.h now includes.
66298         Don't declare chown, since lchown.h now does that.
66299         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66300         (lchown): Define to rpl_chown if lchown is declared but
66301         does not exist.  Declare using a prototype if lchown is not
66302         declared.  Add a copyright notice.
66303         * lib/mkstemp.h: Include <unistd.h>.
66304         * lib/openat.c: Include lchown.h.
66305
66306         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66307         we now test for that separately.
66308         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66309         rather than O_NOFOLLOW, when testing whether it's possible to
66310         avoid a race condition reliably.
66311         * lib/savewd.c (savewd_chdir): Likewise.
66312
66313         Remove macros that are no longer needed now that stdint.h is
66314         reliable.
66315         * lib/fsusage.c (UINTMAX_MAX): Remove.
66316         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66317         * lib/utimecmp.c (SIZE_MAX): Remove.
66318
66319         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66320
66321         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66322         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66323         O_NOATIME works.
66324
66325 2006-10-05  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/gl_list.h (gl_sortedlist_search_from_to,
66328         gl_sortedlist_indexof_from_to): New declarations.
66329         (gl_list_implementation): New fields sortedlist_search_from_to,
66330         sortedlist_indexof_from_to.
66331         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66332         inline functions.
66333         * lib/gl_list.c (gl_sortedlist_search_from_to,
66334         gl_sortedlist_indexof_from_to): New functions.
66335         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66336         function.
66337         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66338         (gl_array_sortedlist_search_from_to): New function.
66339         (gl_array_list_implementation): Update.
66340         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66341         function.
66342         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66343         (gl_carray_sortedlist_search_from_to): New function.
66344         (gl_carray_list_implementation): Update.
66345         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66346         gl_linked_sortedlist_indexof_from_to): New functions.
66347         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66348         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66349         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66350         gl_tree_sortedlist_indexof_from_to): New functions.
66351         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66352         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66353         Update.
66354         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66355         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66356         Update.
66357
66358 2006-10-05  Bruno Haible  <bruno@clisp.org>
66359
66360         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66361         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66362         (struct gl_list_implementation): Add fields search_from_to,
66363         indexof_from_to. Remove fields search, indexof.
66364         (gl_list_search): Use the search_from_to method.
66365         (gl_list_search_from, gl_list_search_from_to): New functions.
66366         (gl_list_indexof): Use the indexof_from_to method.
66367         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66368         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66369         (gl_list_search_from, gl_list_search_from_to): New functions.
66370         (gl_list_indexof): Use the indexof_from_to method.
66371         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66372         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66373         gl_array_indexof. Add start_index, end_index arguments.
66374         (gl_array_search_from_to): Renamed from gl_array_search. Add
66375         start_index, end_index arguments.
66376         (gl_array_remove, gl_array_list_implementation): Update.
66377         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66378         gl_carray_indexof. Add start_index, end_index arguments.
66379         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66380         start_index, end_index arguments.
66381         (gl_carray_remove, gl_carray_list_implementation): Update.
66382         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66383         gl_linked_search. Add start_index, end_index arguments.
66384         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66385         start_index, end_index arguments.
66386         (gl_linked_remove): Update.
66387         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66388         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66389         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66390         field to 'size_t'.
66391         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66392         gl_tree_search. Add start_index, end_index arguments.
66393         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66394         start_index, end_index arguments.
66395         (gl_tree_remove): Update.
66396         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66397         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66398         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66399         function.
66400         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66401         gl_tree_search. Add start_index, end_index arguments.
66402         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66403         start_index, end_index arguments.
66404         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66405         Update.
66406         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66407
66408 2006-10-05  Bruno Haible  <bruno@clisp.org>
66409
66410         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66411
66412         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66413         fwriteerror_temp): New declarations.
66414         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66415         (descriptors): New variable.
66416         (cleanup): First, close the descriptors.
66417         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66418         fclose_temp, fwriteerror_temp): New functions.
66419
66420 2006-10-04  Jim Meyering  <jim@meyering.net>
66421
66422         * lib/fts.c (fts_open): Tiny comment change.
66423
66424 2006-10-04  Bruno Haible  <bruno@clisp.org>
66425
66426         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66427         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66428         gl_LOCK_BODY.
66429         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66430         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66431         gl_LOCK_EARLY_BODY.
66432         (gl_LOCK): Require gl_LOCK_BODY.
66433
66434 2006-10-04  Bruno Haible  <bruno@clisp.org>
66435
66436         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66437         (gl_oset_search_atleast): New declaration.
66438         (struct gl_oset_implementation): Add field 'search_atleast'.
66439         (gl_oset_search_atleast): New inline function.
66440         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66441         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66442         (gl_array_oset_implementation): Update.
66443         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66444         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66445         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66446
66447 2006-10-04  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66450
66451 2006-10-03  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66454         from gl_avltreehash_list_implementation.
66455
66456 2006-10-03  Bruno Haible  <bruno@clisp.org>
66457
66458         * lib/gl_oset.c (gl_oset_add): Fix return type.
66459
66460 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66461
66462         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66463
66464 2006-10-02  Eric Blake  <ebb9@byu.net>
66465
66466         * modules/strnlen (Depends-on): Add extensions.
66467
66468 2006-10-02  Eric Blake  <ebb9@byu.net>
66469
66470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66471         definition in 2.60+.
66472
66473 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66474
66475         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66476         checks.
66477
66478 2006-10-02  Bruno Haible  <bruno@clisp.org>
66479
66480         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66481         to the AUTOMAKE_OPTIONS.
66482         Reported by Jim Meyering.
66483
66484 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         Work around bug in Solaris 10 /proc file system:
66487         /proc/self/fd/NNN/.. isn't the parent directory of
66488         the directory whose file descriptor is NNN.  This needs to
66489         be worked around at run time, not compile time, since a
66490         program might be built on Solaris 8, where things work, and
66491         run on Solaris 10.
66492         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66493         to use the following interface instead:
66494         (OPENAT_BUFFER_SIZE): New macro.
66495         (openat_proc_name): New function.
66496         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66497         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66498         Likewise.
66499         * lib/openat-proc.c: New file.
66500         * modules/openat (Files): Add lib/openat-proc.c.
66501         (Depends-on): Add same-inode, stdbool.
66502         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66503
66504 2006-09-29  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66507         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66508         argument. Set stdout_closed before testing for ferror, not after.
66509         (fwriteerror, fwriteerror_no_ebadf): New functions.
66510
66511 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66512
66513         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66514
66515 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66516
66517         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66518         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66519
66520 2006-09-28  Jim Meyering  <jim@meyering.net>
66521
66522         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66523         Include <unistd.h>.
66524
66525 2006-09-28  Bruno Haible  <bruno@clisp.org>
66526
66527         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66528         * modules/linkedhash-list (Depends-on): Likewise.
66529         * modules/rbtreehash-list (Depends-on): Likewise.
66530
66531 2006-09-28  Bruno Haible  <bruno@clisp.org>
66532
66533         * lib/strndup.h: Simplify the redefinition of strndup.
66534         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66535         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66536
66537 2006-09-28  Bruno Haible  <bruno@clisp.org>
66538
66539         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66540         * lib/gl_linkedhash_list.c: Likewise.
66541         * lib/gl_rbtreehash_list.c: Likewise.
66542
66543 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66546         getaddrinfo.
66547
66548         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66549         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66550         it causes <stdio_ext.h> to cause a compile-time error.
66551         Problem reported by Nelson H. F. Beebe.
66552         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66553         of HAVE_DECL___PENDING.
66554
66555         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66556         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66557         declaration.
66558
66559 2006-09-27  Jim Meyering  <jim@meyering.net>
66560
66561         This file could end up with a definition for a function
66562         named __strndup, rather than rpl_strndup on a system with
66563         incomplete weak_alias support.
66564         * lib/strndup.c (strndup): Rename from __strndup.
66565         Remove #defines that used to map __strndup to strndup.
66566         Don't use K&R prototypes.
66567         Remove LIBC-related code, since this file is not sync'd with glibc.
66568         * lib/strndup.h: Revamp, accordingly.
66569         * m4/strndup.m4: Modernize.
66570
66571 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * modules/savewd (Depends-on): Add 'raise'.
66574         * lib/savewd.c: Include <signal.h>, for 'raise'.
66575
66576 2006-09-26  Jim Meyering  <jim@meyering.net>
66577
66578         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66579         when we detect Darwin 8.7.0's acl_get_file bug.
66580         Rearrange to perform the new (below) run-test while $LIBS
66581         contains any acl-related library.  Set USE_ACL at the end.
66582         (gl_ACL_GET_FILE): New function.
66583
66584 2006-09-26  Eric Blake  <ebb9@byu.net>
66585
66586         * lib/verror.c: Include <config.h> unconditionally.
66587
66588 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * modules/clock-time (Maintainer): Add self.
66591         * modules/getlogin_r (Depends-on): Add extensions.
66592
66593 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66594
66595         * modules/clock-time: New module.
66596         * modules/nanosleep (Depends-on): Add clock-time.
66597         * modules/gethrxtime (Depends-on): Likewise.
66598         * modules/gettime (Depends-on): Likewise.
66599         * modules/settime (Depends-on): Likewise.
66600
66601         * modules/fts-lgpl: Depend on openat.
66602         * modules/mkancesdirs: Depend on savewd.
66603         * modules/mkdir-p: Likewise.
66604
66605 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66606
66607         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66608
66609         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66610         `gl_have_arbitrary_file_name_length_limit' to
66611         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66612         actually works between configure runs.
66613
66614 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66615             Bruno Haible  <bruno@clisp.org>
66616
66617         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66618
66619 2006-09-25  Jim Meyering  <jim@meyering.net>
66620
66621         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66622         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66623
66624 2006-09-25  Eric Blake  <ebb9@byu.net>
66625
66626         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66627         exec's in 2006-09-18 patch when shuffling fds.
66628
66629 2006-09-25  Bruno Haible  <bruno@clisp.org>
66630
66631         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66632         Reported by Jim Meyering.
66633
66634 2006-09-24  Jim Meyering  <jim@meyering.net>
66635
66636         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66637         compare a pointer against a literal "0".  That caused failures with
66638         at least HP-UX's hpcc.
66639
66640 2006-09-22  Simon Josefsson  <jas@extundo.com>
66641
66642         * modules/gc-sha1:
66643         * modules/gc-md4:
66644         * modules/gc-hmac-sha1:
66645         * modules/gc-hmac-md5:
66646         * modules/gc-des:
66647         * modules/gc-arcfour: Distribute more files.
66648
66649 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66650
66651         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66652         (gl_linked_iterator_from_to): Initialize struct completely.
66653         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66654         (gl_tree_iterator_from_to): Likewise
66655         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66656         * lib/gl_array_list.c [lint] (gl_array_iterator)
66657         (gl_array_iterator_from_to): Likewise.
66658         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66659         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66660         (gl_carray_iterator_from_to): Likewise.
66661
66662         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66663         * lib/md4.c (md4_process_block): Remove unused variable.
66664         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66665         parentheses for clarity.
66666
66667 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66668
66669         * modules/bison-i18n (Depends-on): Add gettext.
66670
66671 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66672
66673         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66674         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66675         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66676         also add missing comma that caused broken test.
66677         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66678         stdlib.h, for `abort'.
66679         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66680         variables.
66681         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66682         include unistd.h if present, for `rmdir'.
66683         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66684         variables.
66685         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66686         in the process include standard headers for prototypes.
66687         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66688         gets declared on GNU/Linux.
66689         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66690         unistd.h, for `rmdir'.
66691         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66692
66693         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66694         always true.
66695         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66696
66697         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66698
66699 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66700
66701         * gnulib-tool (func_version): Create output all at once.  This
66702         may help avoid triggering unnecessary SIGPIPEs, and at any
66703         rate it doesn't hurt.
66704
66705 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66706             Bruno Haible  <bruno@clisp.org>
66707
66708         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66709         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66710         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66711
66712         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66713         (gl_FUNC_VASPRINTF): Invoke it.
66714
66715 2006-09-22  Bruno Haible  <bruno@clisp.org>
66716
66717         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66718         getloadavg.c as first argument.
66719
66720 2006-09-22  Bruno Haible  <bruno@clisp.org>
66721
66722         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66723         at the beginning of the gl_INIT macro.
66724         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66725         gl_GETLOADAVG.
66726
66727 2006-09-22  Bruno Haible  <bruno@clisp.org>
66728
66729         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66730         module.
66731         Suggested by Ralf Wildenhues.
66732
66733 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         Import this patch from libc:
66736
66737         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66738
66739         * lib/regex_internal.c (re_string_reconstruct): Handle
66740         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66741         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66742         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66743         re_string_context_at.
66744
66745         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66746         now requires it.
66747         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66748         gl_REGEX now does it for us.
66749         (gl_REGEX): Add test taken from
66750         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66751
66752         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66753         Check that large offsets work.  Modernize Autoconf usages.
66754         Prefer "yes" to mean a good thing rather than a bad.
66755         Don't put "#define mkstemp" in config.h, as this might interfere
66756         with standard system headers that "#define mkstemp mkstemp64".
66757
66758         * modules/mkstemp (Depends-on): Add extensions, so that
66759         mkstemp is visible on some platforms.
66760         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66761         (Include): Change to "mkstemp.h" from <stdlib.h>.
66762         (Files): Add mkstemp.h.
66763
66764         * lib/mkstemp.h: New file, since some standard headers
66765         #define mkstemp.
66766         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66767         Include "mkstemp.h".
66768         Make the _LIBC code resemble glibc original more,
66769         e.g., use K&R style.
66770         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66771         (mkstemp): Remove, since mkstemp.h does this for us.
66772         * lib/stdlib--.h: Include mkstemp.h.
66773
66774         Import this patch from libc:
66775
66776         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66777
66778         * lib/tempname.c (__gen_tempname): Change attempts_min
66779         into a macro.  Use preprocessor to decide how to initialize
66780         attempts [Coverity CID 67].
66781
66782 2006-09-20  Bruno Haible  <bruno@clisp.org>
66783
66784         * lib/mkdtemp.c: Import from libc.
66785         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66786                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66787                 attempts_min into a macro.  Use preprocessor to decide how to
66788                 initialize attempts [Coverity CID 67].
66789         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66790                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66791                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66792
66793 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66794
66795         * gnulib-tool (func_exit): New function, to allow to pass the
66796         exit status portably through the trap.  Use everywhere.
66797         (--help, --version): Signal a write error.
66798         (trap): catch SIGPIPE, for write errors.
66799         Exit at the end of the trap, with the correct exit status.
66800
66801 2006-09-19  Karl Berry  <karl@gnu.org>
66802
66803         * doc/gnulib.texi: note about the license texinfo files.
66804
66805 2006-09-19  Eric Blake  <ebb9@byu.net>
66806
66807         * gnulib-tool: Avoid space-tab.
66808
66809 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66812         that prevented coreutils 6.1 from building.  Problem reported
66813         by Petter Reinholdtsen.
66814
66815 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * gnulib-tool (avoidlist): Fix typo that broke options like
66818         --avoid=lock that are used by coreutils bootstrap.
66819
66820 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66821
66822         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66823         more systematically.
66824
66825 2006-09-18  Jim Meyering  <jim@meyering.net>
66826
66827         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66828
66829 2006-09-18  Bruno Haible  <bruno@clisp.org>
66830
66831         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66832
66833 2006-09-18  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66836         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66837         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66838         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66839         * m4/gettext.m4: Require autoconf >= 2.52.
66840         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66841         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66842         of gl_cv_header_inttypes_h.
66843
66844 2006-09-18  Bruno Haible  <bruno@clisp.org>
66845
66846         * lib/javaversion.c: Include configmake.h.
66847
66848 2006-09-18  Bruno Haible  <bruno@clisp.org>
66849
66850         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66851         avoid that the while loops be executed in a subshell.
66852
66853 2006-09-18  Bruno Haible  <bruno@clisp.org>
66854
66855         * MODULES.html.sh (func_module): Break long lines.
66856         Suggested by Bruce Korb <bkorb@gnu.org>.
66857
66858 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66859
66860         Speed up by a factor of 1.12.
66861         * gnulib-tool (nl): New variable.
66862         (func_import): Rewrite include directive extraction to only read each
66863         directive once.
66864
66865 2006-09-17  Bruno Haible  <bruno@clisp.org>
66866
66867         * modules/javaversion (Makefile.am): Remove DEFS setting.
66868         (Depends-on): Add configmake, for PKGDATADIR definition.
66869
66870 2006-09-17  Bruno Haible  <bruno@clisp.org>
66871
66872         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66873
66874 2006-09-17  Bruno Haible  <bruno@clisp.org>
66875
66876         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66877         (func_modules_transitive_closure, func_modules_add_dummy,
66878         func_modules_to_filelist, func_import, func_create_testdir,
66879         func_create_megatestdir, ...): Use it wherever possible.
66880         Suggested by Ralf Wildenhues.
66881
66882 2006-09-16  Karl Berry  <karl@gnu.org>
66883
66884         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66885         to avoid sectioning errors.
66886         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66887         [ifinfo]: blank line after @center-ed titles.
66888         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66889         Spell FSF address consistently with others.
66890         (These changes approved by rms.)
66891
66892 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66893
66894         Speed up by a factor of 1.61.
66895         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66896         already checked module names again.
66897
66898 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66899
66900         Speed up by a factor of 1.13.
66901         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66902         for new_files, and the input to func_add_or_update.
66903
66904 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66905
66906         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66907         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66908
66909 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * modules/mkancesdirs (Depends-on): Add fcntl.
66912         * modules/savewd: New file.
66913         * MODULES.html.sh (File system functions): Add savewd.
66914
66915         * modules/configmake (Makefile.am): Add support for the
66916         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66917
66918 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * m4/savewd.m4: New file.
66921
66922 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66923
66924         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66925         (dirchownmod): New arg FD.  All callers changed.
66926         Use FD rather than opening the directory ourself, as opening is
66927         now the caller's responsibility.
66928         * lib/dirchownmod.h: Likewise.
66929         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66930         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66931         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66932         (test_dir): Remove.
66933         (mkancesdirs): Return length of prefix of FILE that has already
66934         been made, or -2 if there is a child doing the work.  Redo
66935         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66936         ".", and treat ".." specially since it might stray back into
66937         already-created areas.  Use a subprocess if necessary.  New arg
66938         WD; all users changed.  MAKE_DIR function should now return 1
66939         if it creates a directory that is not readable.  Return -2 if
66940         a child process is spun off.
66941         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66942         Adjust signature to match code.
66943         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66944         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66945         all users changed.
66946         * lib/savewd.c, lib/savewd.h: New files.
66947
66948 2006-09-15  Jim Meyering  <jim@meyering.net>
66949
66950         * modules/rename-dest-slash: New module.
66951         * MODULES.html.sh (posix_compat): Add it here.
66952
66953         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66954
66955 2006-09-15  Jim Meyering  <jim@meyering.net>
66956
66957         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66958         file.
66959
66960         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66961
66962 2006-09-15  Jim Meyering  <jim@meyering.net>
66963
66964         * lib/rename-dest-slash.c (has_trailing_slash): Use
66965         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66966         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66967         test before testing whether SRC is a directory.
66968         Suggestions from Bruno Haible.
66969
66970         Avoid a warning about an unused variable.
66971         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66972         into the #ifdef block where it's used.
66973
66974         * lib/rename-dest-slash.c: New file.
66975
66976 2006-09-14  Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/allocsa.c: Include <config.h> unconditionally.
66979         * lib/asnprintf.c: Likewise.
66980         * lib/asprintf.c: Likewise.
66981         * lib/c-strcasecmp.c: Likewise.
66982         * lib/c-strcasestr.c: Likewise.
66983         * lib/c-strncasecmp.c: Likewise.
66984         * lib/c-strstr.c: Likewise.
66985         * lib/classpath.c: Likewise.
66986         * lib/clean-temp.c: Likewise.
66987         * lib/concatpath.c: Likewise.
66988         * lib/copy-file.c: Likewise.
66989         * lib/csharpcomp.c: Likewise.
66990         * lib/csharpexec.c: Likewise.
66991         * lib/execute.c: Likewise.
66992         * lib/fatal-signal.c: Likewise.
66993         * lib/findprog.c: Likewise.
66994         * lib/fwriteerror.c: Likewise.
66995         * lib/gl_array_list.c: Likewise.
66996         * lib/gl_array_oset.c: Likewise.
66997         * lib/gl_avltree_list.c: Likewise.
66998         * lib/gl_avltree_oset.c: Likewise.
66999         * lib/gl_avltreehash_list.c: Likewise.
67000         * lib/gl_carray_list.c: Likewise.
67001         * lib/gl_linked_list.c: Likewise.
67002         * lib/gl_linkedhash_list.c: Likewise.
67003         * lib/gl_list.c: Likewise.
67004         * lib/gl_oset.c: Likewise.
67005         * lib/gl_rbtree_list.c: Likewise.
67006         * lib/gl_rbtree_oset.c: Likewise.
67007         * lib/gl_rbtreehash_list.c: Likewise.
67008         * lib/imaxabs.c: Likewise.
67009         * lib/imaxdiv.c: Likewise.
67010         * lib/javacomp.c: Likewise.
67011         * lib/javaexec.c: Likewise.
67012         * lib/javaversion.c: Likewise.
67013         * lib/linebreak.c: Likewise.
67014         * lib/localcharset.c: Likewise.
67015         * lib/lock.c: Likewise.
67016         * lib/mbchar.c: Likewise.
67017         * lib/mbswidth.c: Likewise.
67018         * lib/mkdtemp.c: Likewise.
67019         * lib/pipe.c: Likewise.
67020         * lib/printf-args.c: Likewise.
67021         * lib/printf-parse.c: Likewise.
67022         * lib/progname.c: Likewise.
67023         * lib/progreloc.c: Likewise.
67024         * lib/readlink.c: Likewise.
67025         * lib/sh-quote.c: Likewise.
67026         * lib/stpcpy.c: Likewise.
67027         * lib/stpncpy.c: Likewise.
67028         * lib/strcasecmp.c: Likewise.
67029         * lib/strcasestr.c: Likewise.
67030         * lib/strcspn.c: Likewise.
67031         * lib/striconv.c: Likewise.
67032         * lib/strncasecmp.c: Likewise.
67033         * lib/strnlen1.c: Likewise.
67034         * lib/strstr.c: Likewise.
67035         * lib/strtok_r.c: Likewise.
67036         * lib/tls.c: Likewise.
67037         * lib/tmpdir.c: Likewise.
67038         * lib/unicodeio.c: Likewise.
67039         * lib/unsetenv.c: Likewise.
67040         * lib/vasnprintf.c: Likewise.
67041         * lib/vasprintf.c: Likewise.
67042         * lib/wait-process.c: Likewise.
67043         * lib/xallocsa.c: Likewise.
67044         * lib/xsetenv.c: Likewise.
67045         * lib/xstriconv.c: Likewise.
67046
67047 2006-09-13  Simon Josefsson  <jas@extundo.com>
67048
67049         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67050         that internally, suggested by Ralf Wildenhues
67051         <Ralf.Wildenhues@gmx.de>.
67052
67053 2006-09-13  Simon Josefsson  <jas@extundo.com>
67054
67055         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67056         @LIBOBJS@.
67057         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67058
67059 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67060
67061         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67062         longer worry about uses that don't define HAVE_CONFIG_H.
67063         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67064         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67065         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67066         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67067         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67068         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67069         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67070         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67071         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67072         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67073         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67074         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67075         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67076         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67077         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67078         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67079         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67080         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67081         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67082         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67083         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67084         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67085         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67086         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67087         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67088         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67089         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67090         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67091         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67092         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67093         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67094         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67095         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67096         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67097         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67098         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67099         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67100         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67101         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67102         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67103         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67104         Likewise.
67105
67106 2006-09-13  Eric Blake  <ebb9@byu.net>
67107
67108         * lib/getopt.c: Fix typo in last commit.
67109
67110 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67111
67112         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67113         dgettext.
67114
67115 2006-09-12  Jim Meyering  <jim@meyering.net>
67116
67117         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67118         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67119         Reported by Nelson H. F. Beebe.
67120
67121 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67122
67123         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67124         program_invocation_name and program_invocation_short_name are
67125         initialized.
67126         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67127         and program_invocation_short_name to argp.h, so they are visible
67128         to user programs.
67129         * lib/argp.h: Likewise
67130
67131 2006-09-10  Bruno Haible  <bruno@clisp.org>
67132
67133         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67134         m4/inttypes_h.m4, m4/uintmax_t.m4.
67135
67136 2006-09-10  Bruno Haible  <bruno@clisp.org>
67137
67138         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67139         gl_AC_TYPE_UINTMAX_T.
67140
67141 2006-09-10  Bruno Haible  <bruno@clisp.org>
67142
67143         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67144
67145 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67146
67147         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67148         convention.  Text proposed by Bruno Haible.
67149         (struct argp_option): Document the use of N_() wrappers.
67150
67151         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67152         '\v', and translate the two parts separately, instead of feeding
67153         the whole string to gettext.  This allows to exclude
67154         '\v' from the strings visible to the translator by writing doc
67155         strings as N_("..") "\v" N_("..").
67156
67157 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67158
67159         * config/srclist.txt: Undo latest change; the bug was fixed.
67160
67161 2006-09-09  Bruno Haible  <bruno@clisp.org>
67162
67163         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67164         assignments if building a library without libtool.
67165         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67166         in func_emit_lib_Makefile_am.
67167         (func_import): When building a static library libfoo.a, arrange to
67168         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67169         (func_create_testdir): Likewise.
67170         * modules/gc (configure.ac, Makefile.am): If building statically,
67171         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67172         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67173         * modules/striconv (configure.ac, Makefile.am): Likewise.
67174         Based on a suggestion by Ralf Wildenhues.
67175
67176 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67179         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67180         Also:
67181
67182         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67183         Add year_2050_test to catch glibc bug 2821
67184         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67185
67186         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67187         Prefer #ifdef to #if.
67188
67189         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67190         Return from 'main' instead of calling 'exit'.
67191
67192 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67193
67194         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67195         returned the maximum time_t value rather than (time_t) -1.
67196         Problem originally reported by William Bardwell
67197         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67198
67199         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67200         Moved to here ...
67201         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67202         ... from here.
67203
67204 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67207         2821 is fixed.
67208
67209 2006-09-08  Jim Meyering  <jim@meyering.net>
67210
67211         Don't make generated files read-only.  That would bother too many
67212         people.  However, do retain the ability to work when targets are
67213         read-only: remove the destination and temporary files before writing
67214         them (when generated via sed or echo), or by using the -f option for
67215         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67216         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67217         * modules/byteswap, modules/configmake, modules/fcntl:
67218         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67219         * modules/localcharset, modules/netinet_in, modules/poll:
67220         * modules/stdbool, modules/stdint, modules/sys_select:
67221         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67222
67223 2006-09-08  Jim Meyering  <jim@meyering.net>
67224
67225         Avoid new build failure on FreeBSD 6.0.
67226         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67227         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67228         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67229
67230 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67231
67232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67233
67234 2006-09-07  Jim Meyering  <jim@meyering.net>
67235
67236         Fix global typo in last change: use chmod u-w, not chmod u-x.
67237         Spotted by Paul Eggert and Bruce Korb.
67238         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67239         * modules/byteswap, modules/configmake, modules/fcntl:
67240         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67241         * modules/localcharset, modules/netinet_in, modules/poll:
67242         * modules/stdbool, modules/stdint, modules/sys_select:
67243         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67244
67245 2006-09-06  Jim Meyering  <jim@meyering.net>
67246
67247         Make generated files be read-only.
67248         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67249         Ensure that each generated file is now read-only.
67250         * modules/argz: Likewise.
67251         * modules/arpa_inet: Likewise.
67252         * modules/byteswap: Likewise.
67253         * modules/configmake: Likewise.
67254         * modules/fcntl: Likewise.
67255         * modules/fnmatch: Likewise.
67256         * modules/getopt: Likewise.
67257         * modules/glob: Likewise.
67258         * modules/inttypes: Likewise.
67259         * modules/netinet_in: Likewise.
67260         * modules/poll: Likewise.
67261         * modules/stdbool: Likewise.
67262         * modules/stdint: Likewise.
67263         * modules/sys_select: Likewise.
67264         * modules/sys_socket: Likewise.
67265         * modules/sys_stat: Likewise.
67266         * modules/sysexits: Likewise.
67267         * modules/localcharset: Same as above, but continue using temporary
67268         file named "t-$@" (why different?) rather than the "$@-t" used
67269         everywhere else.
67270
67271         * modules/sysexits (Makefile.am): Replace literal occurrences
67272         of "sysexit.h" more readable, and more consistent, "$@".
67273
67274 2006-09-06  Bruno Haible  <bruno@clisp.org>
67275
67276         * modules/striconv: New file.
67277         * modules/xstriconv: New file.
67278         * MODULES.html.sh (Internationalization functions): Add striconv,
67279         xstriconv.
67280
67281 2006-09-06  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67284         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67285         not using libtool correctly.
67286
67287 2006-09-06  Bruno Haible  <bruno@clisp.org>
67288
67289         * lib/striconv.h: New file.
67290         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67291         iconvstring.c.
67292         * lib/xstriconv.h: New file.
67293         * lib/xstriconv.c: New file.
67294
67295 2006-09-06  Bruno Haible  <bruno@clisp.org>
67296
67297         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67298         lib_..._LDFLAGS.
67299
67300 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67301
67302         * lib/argz_.h: Sync from Libtool.
67303
67304         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67305                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67306
67307         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67308
67309 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67310
67311         * modules/trim: New file.
67312
67313 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67314
67315         * lib/trim.h: New file.
67316         * lib/trim.c: New file.
67317
67318 2006-09-05  Bruno Haible  <bruno@clisp.org>
67319
67320         * MODULES.html.sh (String handling): Add trim.
67321
67322 2006-09-04  Karl Berry  <karl@gnu.org>
67323
67324         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67325         until next release.
67326
67327 2006-09-03  Bruno Haible  <bruno@clisp.org>
67328
67329         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67330         correctly.
67331
67332 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67335         not gl_GETLOADAVG.  Omit unneeded semicolons.
67336         Problems reported by Ralf Wildenhues in
67337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67338         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67339         at the end, which is the usual gnulib style.
67340
67341         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67342         of doing all the work ourselves.
67343         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67344         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67345
67346 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67349         Problem reported by Ralf Wildenhues in
67350         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67351
67352         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67353         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67354
67355 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67356
67357         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67358         yesterday's patch by changing test -n to test -z.
67359
67360 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67361
67362         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67363         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67364         the former is now obsolescent.
67365
67366         * modules/chdir-long (Depends-on): Add fcntl.
67367
67368 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67369
67370         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67371         obsolescent, and programs should use gnulib instead.
67372         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67373         but with prefixes changed.
67374
67375 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67378         or stdbool.h, because they might not exist while configuring.
67379
67380         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67381         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67382         does that for us.
67383         (O_DIRECTORY): Remove.
67384
67385 2006-08-31  Eric Blake  <ebb9@byu.net>
67386
67387         * gnulib-tool: Don't let emacs change spaces to TAB.
67388
67389 2006-08-31  Bruno Haible  <bruno@clisp.org>
67390
67391         * gnulib-tool: When calling func_import more than once, do it in a
67392         subshell.
67393         Reported by Eric Blake <ebb9@byu.net>.
67394
67395 2006-08-31  Bruno Haible  <bruno@clisp.org>
67396
67397         * gnulib-tool (nl): Remove variable.
67398         (sed_transform_lib_file): Use more robust test for config-h module.
67399         (func_import): Fix typo in 2006-08-25 patch.
67400
67401 2006-08-31  Bruno Haible  <bruno@clisp.org>
67402
67403         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67404         specified, augment Makefile.am variables instead of assigning them.
67405
67406 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67407
67408         Work around a bug in both the Linux and SunOS 64-bit kernels:
67409         nanosleep mishandles sleeps for longer than 2**31 seconds.
67410         Problem reported by Frank v Waveren in
67411         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67413         Check for nanosleep bug.
67414         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67415
67416 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67417
67418         Work around a bug in both the Linux and SunOS 64-bit kernels:
67419         nanosleep mishandles sleeps for longer than 2**31 seconds.
67420         Problem reported by Frank v Waveren in
67421         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67422         * lib/nanosleep.c (BILLION): New constant.
67423         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67424         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67425         implementation.
67426
67427 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * modules/nanosleep (Depends-on): Add gettime.
67430
67431 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67432         and Simon Josefsson  <jas@extundo.com>
67433         and Oskar Liljeblad  <oskar@osk.mine.nu>
67434
67435         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67436         * gnulib-tool (func_import): New license type 'unmodifiable license
67437         text'.
67438         * modules/fdl: Use it.  Longer description.
67439         * module/gpl, module/lgpl: New files.
67440
67441 2006-08-30  Jim Meyering  <jim@meyering.net>
67442
67443         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67444         shadowing the parameter.
67445
67446 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67447
67448         Sync from Libtool:
67449
67450         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67451
67452         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67453         sharing with gnulib.  Report by Eric Blake.
67454
67455 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67456
67457         * modules/isapipe: New file.
67458         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67459
67460 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * modules/configmake (Makefile.am): Add a comment, and omit
67463         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67464         by Bruno Haible.
67465
67466 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         * m4/isapipe.m4: New file.
67469
67470 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * lib/isapipe.c, lib/isapipe.h: New files.
67473
67474 2006-08-29  Jim Meyering  <jim@meyering.net>
67475
67476         * modules/configmake (Makefile.am): Make configmake.h depend on
67477         Makefile.  Otherwise, a stale configmake.h could hang around.
67478
67479 2006-08-29  Eric Blake  <ebb9@byu.net>
67480
67481         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67482         resolution of upstream bug 3044.
67483
67484 2006-08-29  Bruno Haible  <bruno@clisp.org>
67485
67486         * modules/localcharset (Depends-on): Add configmake.
67487         (Makefile.am): Remove setting of LIBDIR through DEFS.
67488
67489 2006-08-29  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67492         defined.
67493
67494 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67495
67496         * modules/fcntl: New file.
67497         * modules/chdir-safer (Depends-on): Add fcntl.
67498         * modules/fts: Likewise.
67499         * modules/mkdir-p: Likewise.
67500
67501         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67502         This undoes the most recent change, since we're now addressing the
67503         problem in a different way.
67504
67505         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67506         into output, since the output might be called Makefile.am even
67507         if $makefile_name is something different.
67508         (func_import): Use $makefile_am rather than
67509         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67510         empty.
67511
67512         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67513
67514 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67515
67516         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67517         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67518         recent change to stdint.m4, since we're now addressing the problem in a
67519         different way.
67520
67521 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * m4/fcntl_h.m4: New file.
67524
67525 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67526
67527         * lib/fcntl_.h: New file.
67528         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67529         the fcntl module.
67530         * lib/dirchownmod.c: Likewise.
67531         * lib/fts.c: Likewise.
67532
67533         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67534         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67535         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67536         just before including <inttypes.h>, to avoid circular inclusion.
67537
67538 2006-08-28  Jim Meyering  <jim@meyering.net>
67539
67540         * doc/visibility.texi: Actually read and correct the grammar of the
67541         sentence affected by yesterday's change.
67542
67543 2006-08-28  Eric Blake  <ebb9@byu.net>
67544
67545         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67546         needs wrapper.
67547
67548 2006-08-28  Eric Blake  <ebb9@byu.net>
67549
67550         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67551
67552 2006-08-28  Eric Blake  <ebb9@byu.net>
67553
67554         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67555
67556 2006-08-28  Bruno Haible  <bruno@clisp.org>
67557
67558         * modules/c-strstr: New file, from GNU gettext.
67559         * MODULES.html.sh (String handling): Add c-strstr.
67560
67561 2006-08-28  Bruno Haible  <bruno@clisp.org>
67562
67563         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67564         macros.
67565         Reported by Eric Blake.
67566
67567 2006-08-28  Bruno Haible  <bruno@clisp.org>
67568
67569         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67570         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67571         * lib/vasprintf.c: Include errno.h, limits.h.
67572         (EOVERFLOW): New fallback definition.
67573         (vasprintf): Test here whether the string length is > INT_MAX.
67574         * lib/vsnprintf.c: Include errno.h, limits.h.
67575         (EOVERFLOW): New fallback definition.
67576         (vsnprintf): Fix bug when generated string was too long for the buffer.
67577         Test here whether the string length is > INT_MAX.
67578
67579 2006-08-28  Bruno Haible  <bruno@clisp.org>
67580
67581         * lib/inttypes_.h (SCNX*): Remove definitions.
67582         Reported by Eric Blake.
67583
67584 2006-08-28  Bruno Haible  <bruno@clisp.org>
67585
67586         * lib/c-strstr.h: New file, from GNU gettext.
67587         * lib/c-strstr.c: New file, from GNU gettext.
67588
67589 2006-08-28  Bruno Haible  <bruno@clisp.org>
67590
67591         * gnulib-tool: Reorder some statements.
67592
67593 2006-08-28  Bruno Haible  <bruno@clisp.org>
67594
67595         * gnulib-tool: New option --makefile-name.
67596         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67597         $makefile_name.
67598         (func_import): Write $makefile_name to the cache file, and read it from
67599         there unless explicitly specified. Use $makefile_name as file name
67600         instead of Makefile.am. Adjust the recommendations accordingly.
67601
67602 2006-08-28  Bruno Haible  <bruno@clisp.org>
67603
67604         * gnulib-tool (func_verify_module): Check against misapplying patch.
67605
67606 2006-08-28  Bruno Haible  <bruno@clisp.org>
67607
67608         * gnulib-tool (func_relativize, func_relconcat): New functions.
67609         Give an error if --local-dir is given with --update.
67610         Remove trailing slashes from $local_gnulib_dir.
67611         (func_import): Store the relativized $local_gnulib_dir in
67612         gnulib-cache.m4, and read it from there if not specified explicitly.
67613
67614 2006-08-28  Bruno Haible  <bruno@clisp.org>
67615
67616         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67617         is the current directory. Respect also $local_gnulib_dir.
67618
67619 2006-08-28  Bruno Haible  <bruno@clisp.org>
67620             Simon Josefsson  <jas@extundo.com>
67621
67622         BeOS portability.
67623         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67624
67625 2006-08-27  Jim Meyering  <jim@meyering.net>
67626
67627         * doc/visibility.texi: Remove duplicate word: "pointer".
67628
67629 2006-08-26  Bruno Haible  <bruno@clisp.org>
67630
67631         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67632         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67633         (Makefile.am): Create inttypes.h from inttypes_.h.
67634         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67635
67636         * modules/imaxabs: New file.
67637
67638         * modules/imaxdiv: New file.
67639
67640 2006-08-26  Bruno Haible  <bruno@clisp.org>
67641
67642         * m4/inttypes.m4: New file.
67643         * m4/_inttypes_h.m4: Remove file.
67644         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67645         PRI_MACROS_BROKEN.
67646         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67647
67648         * m4/imaxabs.m4: New file.
67649
67650         * m4/imaxdiv.m4: New file.
67651
67652 2006-08-26  Bruno Haible  <bruno@clisp.org>
67653
67654         * lib/inttypes_.h: New file.
67655         * lib/inttypes.h: Remove file.
67656         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67657
67658         * lib/imaxabs.c: New file.
67659
67660         * lib/imaxdiv.c: New file.
67661
67662 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67663
67664         New config-h module, so that "make" output needn't be cluttered
67665         by -DHAVE_CONFIG_H.
67666         * MODULES.html.sh (Support for building libraries and executables):
67667         Add config-h.
67668         * modules/config-h: New file.
67669         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67670         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67671         the config-h module is used.
67672
67673         New configmake module, so that "make" output needn't be cluttered
67674         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67675         * MODULES.html.sh (Support for building libraries and executables):
67676         Add configmake.
67677         * modules/configmake: New file.
67678
67679 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * m4/config-h.m4: New file.
67682
67683 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         * config/srclist.txt: Add elisp-comp.
67686
67687 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         * MODULES.html.sh (Support for building libraries and executables):
67690         Add elisp-comp.
67691         * build-aux/elisp-comp: New file.
67692         * modules/elisp-comp: New file.
67693
67694 2006-08-24  Bruno Haible  <bruno@clisp.org>
67695
67696         * gnulib-tool (func_create_testdir): Use non-default values of
67697         sourcebase and m4base.
67698
67699 2006-08-24  Bruno Haible  <bruno@clisp.org>
67700
67701         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67702         HTML structure.
67703
67704 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * modules/openat (Depends-on): Add lchown.
67707
67708 2006-08-23  Bruno Haible  <bruno@clisp.org>
67709
67710         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67711         of gl_LOCK_EARLY instead of gl_LOCK.
67712
67713 2006-08-23  Bruno Haible  <bruno@clisp.org>
67714
67715         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67716         on OSF/1 to no.
67717         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67718
67719 2006-08-23  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67722         as unusable.
67723
67724         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67725         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67726         (gl_LOCK): New macro.
67727
67728 2006-08-22  Simon Josefsson  <jas@extundo.com>
67729
67730         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67731         to md5 module.
67732
67733 2006-08-22  Simon Josefsson  <jas@extundo.com>
67734
67735         * MODULES.html.sh: Add "Support for maintaining and release
67736         projects".
67737
67738         * build-aux/gnupload: New file, from coreutils.
67739
67740 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67741
67742         Avoid the need for AC_LIBSOURCES in m4 macros.
67743         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67744         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67745         * modules/check-version (EXTRA_DIST): Add check-version.h.
67746         * modules/crc (EXTRA_DIST): Add crc.h.
67747         * modules/des (EXTRA_DIST): Add des.h.
67748         * modules/gc (EXTRA_DIST): Add gc.h.
67749         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67750         * modules/getline (EXTRA_DIST): Add getline.h.
67751         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67752         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67753         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67754         * modules/md2 (EXTRA_DIST): Add md2.h.
67755         * modules/md4 (EXTRA_DIST): Add md4.h.
67756         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67757         * modules/read-file (EXTRA_DIST): Add read-file.h.
67758         * modules/readline (EXTRA_DIST): Add readline.h.
67759         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67760         rijndael-api-fst.h.
67761
67762 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67763
67764         * m4/rijndael.m4 (gl_ARCFOUR):
67765         * m4/arctwo.m4 (gl_ARCTWO):
67766         * m4/check-version.m4 (gl_CHECK_VERSION):
67767         * m4/crc.m4 (gl_CRC):
67768         * m4/des.m4 (gl_DES):
67769         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67770         * m4/gc.m4 (gl_GC):
67771         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67772         * m4/getline.m4 (gl_FUNC_GETLINE):
67773         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67774         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67775         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67776         * m4/md2.m4 (gl_MD2):
67777         * m4/md4.m4 (gl_MD4):
67778         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67779         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67780         * m4/readline.m4 (gl_FUNC_READLINE):
67781         * m4/rijndael.m4 (gl_RIJNDAEL):
67782         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67783         to get the necessary .h files and whatnot.
67784
67785 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67788         gnulib rather than the other way around.
67789         * config/srclistvars.sh (COREUTILS): Remove.
67790
67791 2006-08-22  Jim Meyering  <jim@meyering.net>
67792
67793         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67794
67795         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67796
67797 2006-08-22  Eric Blake  <ebb9@byu.net>
67798
67799         * modules/regexprops-generic: New file.
67800         * MODULES.html.sh (Support for building documentation): List it.
67801
67802 2006-08-22  Eric Blake  <ebb9@byu.net>
67803
67804         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67805         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67806         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67807         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67808
67809 2006-08-22  Bruno Haible  <bruno@clisp.org>
67810
67811         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67812         and lib_LTLIBRARIES like the other lib_* variables.
67813
67814 2006-08-22  Bruno Haible  <bruno@clisp.org>
67815
67816         * build-aux/x-to-1.in: New file, from GNU gettext.
67817
67818 2006-08-22  Bruno Haible  <bruno@clisp.org>
67819
67820         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67821         <utmpx.h> exists.
67822
67823 2006-08-22  Bruno Haible  <bruno@clisp.org>
67824
67825         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67826         <utmpx.h> exists.
67827
67828 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67829
67830         BeOS portability.
67831         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67832         exist.
67833         Problem reported by Bruno Haible.
67834
67835 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         Avoid the need for AC_LIBSOURCES in m4 macros.
67838         * modules/acl (EXTRA_DIST): Add acl.h.
67839         * modules/argmatch (Files): Add m4/argmatch.m4.
67840         (configure.ac): Add gl_ARGMATCH.
67841         (EXTRA_DIST): Renamed from lib_SOURCES, for
67842         consistency with the other modules.  Remove argmatch.c.
67843         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67844         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67845         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67846         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67847         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67848         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67849         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67850         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67851         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67852         * modules/closeout (EXTRA_DIST): Add closeout.h.
67853         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67854         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67855         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67856         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67857         dirname.h; remove basename.c and stripslash.c.
67858         * modules/exclude (EXTRA_DIST): Add exclude.h.
67859         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67860         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67861         * modules/file-type (EXTRA_DIST): Add file-type.h.
67862         * modules/filemode (EXTRA_DIST): Add filemode.h.
67863         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67864         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67865         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67866         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67867         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67868         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67869         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67870         * modules/getdate (EXTRA_DIST): Add getdate.c.
67871         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67872         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67873         * modules/getpass (EXTRA_DIST): Add getpass.h.
67874         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67875         * modules/group-member (EXTRA_DIST): Add group-member.h.
67876         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67877         * modules/hash (EXTRA_DIST): Add hash.h.
67878         * modules/human (EXTRA_DIST): Add human.h.
67879         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67880         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67881         * modules/lchown (EXTRA_DIST): Add lchown.h.
67882         * modules/long-options (EXTRA_DIST): Add long-options.h.
67883         * modules/lstat (EXTRA_DIST): Add lstat.h.
67884         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67885         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67886         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67887         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67888         * modules/memxor (EXTRA_DIST): Add memxor.h.
67889         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67890         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67891         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67892         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67893         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67894         * modules/physmem (EXTRA_DIST): Add physmem.h.
67895         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67896         * modules/posixver (EXTRA_DIST): Add posixver.h.
67897         * modules/quote (EXTRA_DIST): Add quote.h.
67898         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67899         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67900         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67901         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67902         regex_internal.h regexec.c.
67903         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67904         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67905         * modules/same (EXTRA_DIST): Add same.h.
67906         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67907         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67908         * modules/savedir (EXTRA_DIST): Add savedir.h.
67909         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67910         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67911         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67912         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67913         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67914         * modules/strdup (EXTRA_DIST): Add strdup.h.
67915         * modules/strftime (EXTRA_DIST): Add strftime.h.
67916         * modules/strndup (EXTRA_DIST): Add strndup.h.
67917         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67918         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67919         * modules/time_r (EXTRA_DIST): Add time_r.h.
67920         * modules/timespec (EXTRA_DIST): Add timespec.h.
67921         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67922         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67923         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67924         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67925         * modules/userspec (EXTRA_DIST): Add userspec.h.
67926         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67927         * modules/utimens (EXTRA_DIST): Add utimens.h.
67928         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67929         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67930         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67931         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67932         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67933         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67934         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67935         * modules/yesno (EXTRA_DIST): Add yesno.h.
67936
67937 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67940
67941         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67942         * m4/dev-ino.m4, same-inode.m4: Remove.
67943
67944         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67945         * m4/acl.m4 (AC_FUNC_ACL):
67946         * m4/backupfile.m4 (gl_BACKUPFILE):
67947         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67948         * m4/canon-host.m4 (gl_CANON_HOST):
67949         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67950         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67951         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67952         * m4/cloexec.m4 (gl_CLOEXEC):
67953         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67954         * m4/closeout.m4 (gl_CLOSEOUT):
67955         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67956         * m4/dirname.m4 (gl_DIRNAME):
67957         * m4/exclude.m4 (gl_EXCLUDE):
67958         * m4/exitfail.m4 (gl_EXITFAIL):
67959         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67960         * m4/file-type.m4 (gl_FILE_TYPE):
67961         * m4/filemode.m4 (gl_FILEMODE):
67962         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67963         * m4/fpending.m4 (gl_FUNC_FPENDING):
67964         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67965         * m4/fts.m4 (gl_FUNC_FTS):
67966         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67967         * m4/getdate.m4 (gl_GETDATE):
67968         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67969         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67970         * m4/getpass.m4 (gl_FUNC_GETPASS):
67971         * m4/gettime.m4 (gl_GETTIME):
67972         * m4/getugroups.m4 (gl_GETUGROUPS):
67973         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67974         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67975         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67976         * m4/hash.m4 (gl_HASH):
67977         * m4/idcache.m4 (gl_IDCACHE):
67978         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67979         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67980         * m4/long-options.m4 (gl_LONG_OPTIONS):
67981         * m4/lstat.m4 (gl_FUNC_LSTAT):
67982         * m4/md5.m4 (gl_MD5):
67983         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67984         * m4/memcoll.m4 (gl_MEMCOLL):
67985         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67986         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67987         * m4/memxor.m4 (gl_MEMXOR):
67988         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67989         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67990         * m4/modechange.m4 (gl_MODECHANGE):
67991         * m4/mountlist.m4 (gl_MOUNTLIST):
67992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67993         * m4/openat.m4 (gl_FUNC_OPENAT):
67994         * m4/pathmax.m4 (gl_PATHMAX):
67995         * m4/physmem.m4 (gl_PHYSMEM):
67996         * m4/posixtm.m4 (gl_POSIXTM):
67997         * m4/posixver.m4 (gl_POSIXVER):
67998         * m4/quote.m4 (gl_QUOTE):
67999         * m4/quotearg.m4 (gl_QUOTEARG):
68000         * m4/readtokens.m4 (gl_READTOKENS):
68001         * m4/readutmp.m4 (gl_READUTMP):
68002         * m4/regex.m4 (gl_REGEX):
68003         * m4/safe-read.m4 (gl_SAFE_READ):
68004         * m4/safe-write.m4 (gl_SAFE_WRITE):
68005         * m4/same.m4 (gl_SAME):
68006         * m4/save-cwd.m4 (gl_SAVE_CWD):
68007         * m4/savedir.m4 (gl_SAVEDIR):
68008         * m4/settime.m4 (gl_SETTIME):
68009         * m4/sha1.m4 (gl_SHA1):
68010         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68011         * m4/stat-macros.m4 (gl_STAT_MACROS):
68012         * m4/stat-time.m4 (gl_STAT_TIME):
68013         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68014         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68015         * m4/strdup.m4 (gl_FUNC_STRDUP):
68016         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68017         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68018         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68019         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68020         * m4/time_r.m4 (gl_TIME_R):
68021         * m4/timespec.m4 (gl_TIMESPEC):
68022         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68023         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68024         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68025         * m4/userspec.m4 (gl_USERSPEC):
68026         * m4/utimecmp.m4 (gl_UTIMECMP):
68027         * m4/utimens.m4 (gl_UTIMENS):
68028         * m4/xalloc.m4 (gl_XALLOC):
68029         * m4/xgetcwd.m4 (gl_XGETCWD):
68030         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68031         * m4/xreadlink.m4 (gl_XREADLINK):
68032         * m4/xstrtod.m4 (gl_XSTRTOD):
68033         * m4/yesno.m4 (gl_YESNO):
68034         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68035         to get the necessary .h files and whatnot.
68036
68037 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68038             Bruno Haible  <bruno@clisp.org>
68039
68040         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68041         /bin/sh understanding of '!' conditional negation.
68042
68043 2006-08-21  Jim Meyering  <jim@meyering.net>
68044
68045         * modules/openat (Depends-on): Really alphabetize.
68046
68047         * modules/acl (Depends-on): Add error and quote.
68048
68049         * check-module (find_included_lib_files): Add at-func.c to the
68050         ok-to-include-more-than-once white list.
68051
68052         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68053
68054 2006-08-21  Bruno Haible  <bruno@clisp.org>
68055
68056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68057         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68058         Reported by Martin Lambers <marlam@marlam.de>.
68059
68060 2006-08-21  Bruno Haible  <bruno@clisp.org>
68061
68062         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68063         specify an installation location, don't emit a noinst_LIBRARIES or
68064         noinst_LTLIBRARIES assignment.
68065
68066 2006-08-21  Bruno Haible  <bruno@clisp.org>
68067
68068         BeOS portability.
68069         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68070         BeOS has mbrtowc() but no <wctype.h>.
68071
68072 2006-08-21  Bruno Haible  <bruno@clisp.org>
68073
68074         BeOS portability.
68075         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68076         exist.
68077
68078 2006-08-21  Bruno Haible  <bruno@clisp.org>
68079
68080         BeOS portability.
68081         * lib/mbchar.h: Include <wctype.h> only if it exists.
68082
68083 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68084
68085         Remove files that are no longer needed by their respective modules.
68086         * m4/obstack.m4: Remove.
68087         * m4/strerror_r.m4: Remove.
68088         * m4/uint32_t.m4: Remove.
68089         * m4/uintptr_t.m4: Remove.
68090         * m4/ullong_max.m4: Remove.
68091         * m4/xstrtoimax.m4: Remove.
68092         * m4/xstrtoumax.m4: Remove.
68093
68094         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68095         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68096         dependencies now capture this.
68097
68098         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68099         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68100         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68101         * m4/human.m4 (gl_HUMAN): Likewise.
68102         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68103         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68104
68105         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68106
68107         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68108         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68109         stdint.
68110         * m4/human.m4 (gl_HUMAN): Likewise.
68111         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68112         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68113         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68114         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68115         * m4/xstrtol (gl_XSTRTOL): Likewise.
68116
68117         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68118         AC_TYPE_LONG_LONG_INT.
68119         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68120         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68121         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68122         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68123
68124         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68125         on stdbool.
68126
68127         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68128         (gl_PREREQ_XSTRTOUL): Remove.
68129
68130         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68131
68132         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68133         mode.
68134
68135 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         Add and change modules to make it easier for coreutils to use
68138         gnulib-tool.
68139         * modules/backupfile (Files): Remove m4/d-ino.m4.
68140         (Depends-on): Add d-ino.
68141         * modules/cycle-check (Depends-on): Add stdint.
68142         (lib_SOURCES): Add cycle-check.h.
68143         * modules/d-ino: New module.
68144         * modules/d-type: New module.
68145         * modules/error (Files): Remove m4/strerror_r.m4.
68146         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68147         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68148         m4/inttypes_h.m4, m4/uintmax_t.m4.
68149         (Depends-on): Add stdint.
68150         (lib_SOURCES): Add fsusage.h.
68151         * modules/getcwd (Files): Remove d-ino.m4.
68152         (Depends-on): Add d-ino.
68153         * modules/getndelim2 (Depends-on): Add stdint.
68154         * modules/glob (Files): Remove m4/d-type.m4.
68155         (Depends-on): Add d-type.
68156         * modules/host-os: New module.
68157         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68158         m4/inttypes_h.m4, m4/uintmax_t.m4.
68159         * Depends-on: Add stdint.
68160         (lib_SOURCES): Add human.h.
68161         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68162         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68163         m4/uintmax_t.m4, m4/ulonglong.m4.
68164         (Depends-on): Add stdint.
68165         (EXTRA_DIST): Add inttostr.h.
68166         * modules/lchmod: New module.
68167         * modules/link-follow: New module.
68168         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68169         (Depends-on): Add lchmod.
68170         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68171         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68172         (Depends-on): Add stdint.
68173         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68174         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68175         (Depends-on): Add stdint.
68176         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68177         * modules/perl: New module.
68178         * modules/regex (Depends-on): Add stdint.
68179         * modules/rmdir-errno: New module.
68180         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68181         m4/intmax_t.m4.
68182         (Depends-on): Add stdint.
68183         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68184         m4/uintmax_t.m4.
68185         (Depends-on): Add stdint.
68186         * modules/unlink-busy: New module.
68187         * modules/utimecmp (Depends-on): Add stdint.
68188         * modules/uptime: New module.
68189         * modules/winsz-ioctl: New module.
68190         * modules/winsz-termios: New module.
68191         * modules/xnanosleep (Depends-on): Add nanosleep.
68192         * modules/ullong_max: Remove.
68193         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68194         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68195         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68196         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68197         (Depends-on): Add inttypes.
68198         (lib_SOURCES): Add xstrtol.h.
68199         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68200         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68201         * MODULES.html.sh: Move 'assert' into the assert section.
68202         Move 'dummy' into the linking section.
68203         Remove ullong_max.
68204         Add section for compatibility checks for POSIX:2001 functions,
68205         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68206         winsz-ioctl, and winsz-termios into it.
68207         Add lchmod.
68208         Add top-level Misc section and put host-os, perl, and uptime
68209         into it.
68210
68211 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68212
68213         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68214         now assume the stdint module.  Do not include inttypes.h.
68215         * lib/fsusage.h: Likewise.
68216         * lib/getndelim2.c: Likewise.
68217         * lib/human.h: Likewise.
68218         * lib/inttostr.h: Likewise.
68219         * lib/obstack.c: Likewise.
68220         * lib/regex_internal.h: Likewise.
68221         * lib/tempname.c: Likewise.
68222         * lib/utimecmp.c: Likewise.
68223         * lib/xstrtol.h: Likewise.
68224
68225         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68226
68227         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68228         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68229         * lib/xtime.h: Likewise.
68230
68231 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68232
68233         * modules/openat (Files): Add lib/fchmodat.c.
68234         Fixes problem reported by Jay Youngman.
68235
68236 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68239         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68240
68241 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68242             Bruno Haible  <bruno@clisp.org>
68243
68244         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68245         and is a script that invokes bison. Tighten the code. Add comments.
68246
68247 2006-08-18  Jim Meyering  <jim@meyering.net>
68248
68249         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68250         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68251         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68252         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68253
68254 2006-08-18  Bruno Haible  <bruno@clisp.org>
68255
68256         * modules/bison-i18n: New file.
68257         * MODULES.html.sh (Internationalization functions): Add it.
68258
68259 2006-08-18  Bruno Haible  <bruno@clisp.org>
68260
68261         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68262         sys/statvfs.h. When getmntinfo was found, check its declaration and
68263         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68264
68265 2006-08-18  Bruno Haible  <bruno@clisp.org>
68266
68267         * m4/bison-i18n.m4: New file, from bison.
68268
68269 2006-08-18  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68272         (ME_DUMMY): Treat "kernfs" as a dummy.
68273         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68274
68275 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         Update from coreutils.
68278
68279         2006-08-15  Jim Meyering  <jim@meyering.net>
68280
68281         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68282
68283         2006-01-17  Jim Meyering  <jim@meyering.net>
68284
68285         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68286
68287         2006-01-11  Jim Meyering  <jim@meyering.net>
68288
68289         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68290         Check for the lchmod function.
68291
68292 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         Update from coreutils.
68295
68296         * lib/__fpending.h: Add copyright notice.
68297         * lib/fprintftime.h: Likewise.
68298         * lib/savedir.c: Use (C) in copyright notice.
68299         * lib/savedir.h: Likewise.
68300
68301         2006-08-15  Jim Meyering  <jim@meyering.net>
68302
68303         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68304         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68305         in support of the EXPECTED_ERRNO macro.
68306         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68307         definitions.  Instead, define the appropriate symbols and include
68308         "at-func.c".
68309         * lib/mkdirat.c (mkdirat): Likewise.
68310         * lib/fchmodat.c (fchmodat): Likewise.
68311         (ENOSYS): Remove definition.
68312         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68313         it.  Don't include "unistd--.h" -- it wasn't ever used.
68314
68315         2006-01-17  Jim Meyering  <jim@meyering.net>
68316
68317         Rewrite fts.c not to change the current working directory,
68318         by using openat, fstatat, fdopendir, etc..
68319
68320         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68321         (HAVE_OPENAT_SUPPORT): Define.
68322         [_LIBC] (fchdir): Don't undef or define; no longer used.
68323         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68324         Now, this `function' always succeeds, and consumes its file descriptor
68325         parameter -- so callers must not close such FDs.  Update callers.
68326         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68327         (diropen): Add parameter, SP.  Adjust all callers.
68328         Implement using diropen_fd, rather than open.
68329         (fts_open): Initialize new member, fts_cwd_fd.
68330         Remove fts_rft-setting code.
68331         (fts_close): Close fts_cwd_fd, if necessary.
68332         (__opendir2): Define in terms of opendir or opendirat,
68333         depending on whether the FST_NOCHDIR flag is set.
68334         (fts_build): Since fts_safe_changedir consumes its FD, and since
68335         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68336         and close the dup'd file descriptor upon failure.
68337         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68338         (fts_safe_changedir): Tweak semantics to reflect that this function
68339         now calls cwd_advance_fd and hence consumes its FD argument.
68340         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68341         [struct FTS] (fts_rft): Remove now-unused member.
68342         [struct FTS] (fts_cycle.state): Improve comment.
68343
68344         * lib/openat.c (openat_needs_fchdir): New function.
68345         * lib/openat.h (openat_needs_fchdir): Declare it.
68346
68347 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68350         Problem and fix reported by Pádraig Brady in
68351         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68352
68353 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68354
68355         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68356
68357 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68358
68359         * lib/memcoll.c (memcoll): Optimize for the common case where the
68360         arguments are bytewise equal.
68361
68362 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * doc/regexprops-generic.texi: Add a copyright notice.
68365
68366 2006-08-15  Bruno Haible  <bruno@clisp.org>
68367
68368         * modules/tmpdir (License): Change to LGPL.
68369
68370 2006-08-15  Bruno Haible  <bruno@clisp.org>
68371
68372         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68373         module.
68374
68375 2006-08-14  Simon Josefsson  <jas@extundo.com>
68376
68377         * config/srclist.txt: Add gnupload.
68378
68379 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         Change copyright notice from LGPL 2 to GPL 2, since that's the
68382         standard form used in the gnulib repository.
68383         * tests/test-lock.c: Likewise.
68384         * tests/test-stdint.c: Likewise.
68385         * tests/test-tls.c: Likewise.
68386
68387         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68388         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68389         Add copyright notice.
68390
68391         * check-module: Add copyright notice.  Output a copyright
68392         notice if "--version" is specified.
68393         * modules/COPYING: New file.
68394         * tests/test-getaddrinfo.c: Add copyright notice.
68395         * tests/test-verify.c: Likewise.
68396
68397 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         Change copyright notice from LGPL 2 to GPL 2, since that's the
68400         standard form used in the gnulib repository.
68401         * lib/lock.c: LGPL -> GPL.
68402         * lib/lock.h: Likewise.
68403         * lib/strnlen1.c: Likewise.
68404         * lib/strnlen1.h: Likewise.
68405         * lib/tls.c: Likewise.
68406         * lib/tls.h: Likewise.
68407         * lib/tmpdir.c: Likewise.
68408
68409         * lib/TODO: Remove; this belongs only in coreutils.
68410
68411 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         Add copyright notices to long-enough files that lack them, since
68414         otherwise the files aren't clearly free.  Use the same notice that
68415         getdate.texi already uses.
68416         * doc/alloca-opt.texi: Add copyright notice.
68417         * doc/alloca.texi: Likewise.
68418         * doc/ctime.texi: Likewise.
68419         * doc/functions.texi: Likewise.
68420         * doc/gcd.texi: Likewise.
68421         * doc/gnulib-tool.texi: Likewise.
68422         * doc/inet_ntoa.texi: Likewise.
68423         * doc/visibility.texi: Likewise.
68424
68425         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68426         * doc/quote.texi: Add copyright notice.
68427
68428         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68429         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68430         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68431         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68432         is now obsolete, and give a pointer to the Sun list.
68433         Add copyright notice.
68434
68435 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68436
68437         * config/srclistvars.sh: Add copyright notice.
68438
68439 2006-08-14  Eric Blake  <ebb9@byu.net>
68440
68441         Import the following change from libc:
68442
68443         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68444
68445         Upstream bug 2997.
68446         * lib/misc/error.c: Add space between program name and message if file
68447         name is missing.
68448
68449 2006-08-12  Karl Berry  <karl@gnu.org>
68450
68451         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68452         remove, these originate in gnulib now.
68453
68454 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68455
68456         * doc/Makefile (standards.info standards.html standards.dvi):
68457         Also depend on make-stds.texi.
68458
68459 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68460
68461         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68462         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68463
68464         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68465         in wchar_t.  Problem reported by Eric Blake.
68466
68467         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68468         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68469         Also, help the compiler to keep LEN in a register.
68470
68471 2006-08-11  Eric Blake  <ebb9@byu.net>
68472
68473         * users.txt: Sort.  Add tar.
68474
68475 2006-08-11  Bruno Haible  <bruno@clisp.org>
68476
68477         * users.txt: New file.
68478
68479 2006-08-11  Bruno Haible  <bruno@clisp.org>
68480
68481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68482         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68483
68484 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68485
68486         * modules/snprintf (Depends-on): Remove minmax.
68487         (Maintainer): Add self and Bruno.
68488
68489 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68492         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68493         (EOVERFLOW): Define if the system does not.
68494         Do not include "minmax.h"; it wasn't used.
68495         (snprintf): Don't assume size_t promotes to an unsigned type.
68496         Fix bug when generated string was too long for the buffer: the
68497         buffer's contents are supposed to be the initial prefix of the
68498         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68499         exceeds INT_MAX; do the check ourselves.
68500
68501         Import the following changes from libc:
68502
68503         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68504
68505         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68506         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68507         set wc to the byte which couldn't be converted.
68508         (re_string_reconstruct): Don't clear valid_raw_len before calling
68509         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68510         tip_context using re_string_context_at.
68511
68512         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68513
68514         * lib/posix/regex.h: g++ still cannot handled [restrict].
68515
68516         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68517
68518         * lib/posix/regex.h: Remove special handling for VMS.
68519
68520 2006-08-10  Jim Meyering  <jim@meyering.net>
68521
68522         * modules/same-inode: New module.
68523         * modules/dev-ino: New module.
68524         * modules/cycle-check: Depend on these modules, rather than simply
68525         including their .h files.
68526         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68527         required via m4/cycle-check.m4.
68528         * modules/same: Depend on new same-inode module, rather than
68529         including same-inode.h.
68530         * modules/chdir-safer: New file.
68531
68532         * modules/chown (Depends-on): Add stat-macros.
68533
68534 2006-08-10  Jim Meyering  <jim@meyering.net>
68535
68536         * m4/cycle-check.m4: New file.
68537         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68538         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68539
68540 2006-08-10  Eric Blake  <ebb9@byu.net>
68541
68542         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68543         in from original proposal.
68544
68545 2006-08-10  Eric Blake  <ebb9@byu.net>
68546         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68547
68548         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68549         namespace.
68550
68551 2006-08-10  Bruno Haible  <bruno@clisp.org>
68552
68553         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68554         as well.
68555
68556 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         Sync from coreutils.
68559
68560         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68561
68562         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68563         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68564
68565 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * modules/restrict: Remove; no longer needed now that we assume
68568         Autoconf 2.59 or later.
68569         * MODULES.html.sh: Remove 'restrict'.
68570         * modules/argp (Depends-on): Remove 'restrict'.
68571         * modules/base64 (Depends-on): Likewise.
68572         * modules/gc (Depends-on): Likewise.
68573         * modules/getaddrinfo (Depends-on): Likewise.
68574         * modules/glob (Depends-on): Likewise.
68575         * modules/inet_ntop (Depends-on): Likewise.
68576         * modules/inet_pton (Depends-on): Likewise.
68577         * modules/memxor (Depends-on): Likewise.
68578         * modules/regex (Depends-on): Likewise.
68579         * modules/strtok_r (Depends-on): Likewise.
68580         * modules/time_r (Depends-on): Likewise.
68581
68582 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68585         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68586         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68587         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68588         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68589         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68590         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68591         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68592
68593         Merge from coreutils.
68594         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68595         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68596         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68597         * m4/time_r.m4 (gl_TIME_R): Likewise.
68598
68599 2006-08-09  Karl Berry  <karl@gnu.org>
68600
68601         * config/srclist.txt: no more gettext-tools, per Bruno.
68602
68603 2006-08-08  Eric Blake  <ebb9@byu.net>
68604
68605         * modules/verror: New module.
68606         * MODULES.html.sh: Document it.
68607
68608 2006-08-08  Eric Blake  <ebb9@byu.net>
68609
68610         * lib/verror.h, lib/verror.c: New files.
68611
68612 2006-08-08  Eric Blake  <ebb9@byu.net>
68613
68614         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68615         verror_at_line output complies with GNU Coding Standards even when
68616         file is NULL.
68617
68618 2006-08-07  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68621         versions of AIX.
68622         Reported by Ralf Wildenhues.
68623
68624 2006-08-07  Bruno Haible  <bruno@clisp.org>
68625
68626         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68627         in an AC_DEFUN. Needed so that the autoconf snippets can use
68628         AC_REQUIRE.
68629
68630 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68631
68632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68633         Initialize pkgdata_DATA.
68634         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68635         overriding it.
68636
68637 2006-08-06  Eric Blake  <ebb9@byu.net>
68638
68639         * lib/error.h: Fold in some upstream changes from glibc.
68640         * lib/error.c: Likewise.
68641
68642 2006-08-04  Bruno Haible  <bruno@clisp.org>
68643
68644         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68645         Make the mostlyclean-local rule depend on mostlyclean-generic.
68646         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68647
68648 2006-07-31  Bruno Haible  <bruno@clisp.org>
68649
68650         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68651         <stdlib.h>, <string.h>.
68652
68653 2006-07-30  Bruno Haible  <bruno@clisp.org>
68654
68655         * modules/readlink (License): Change to LGPL.
68656
68657 2006-07-30  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68660         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68661         set PKGDATADIR to point to it.
68662
68663 2006-07-30  Bruno Haible  <bruno@clisp.org>
68664
68665         * modules/csharpexec (configure.ac): Comment out macro invocation.
68666         * modules/javaexec (configure.ac): Likewise.
68667         * modules/javacomp-script (configure.ac): Likewise.
68668
68669         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68670
68671 2006-07-30  Bruno Haible  <bruno@clisp.org>
68672
68673         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68674         linked-list.
68675
68676 2006-07-30  Bruno Haible  <bruno@clisp.org>
68677
68678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68679
68680 2006-07-30  Bruno Haible  <bruno@clisp.org>
68681
68682         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68683         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68684         get removed.
68685
68686 2006-07-29  Bruno Haible  <bruno@clisp.org>
68687
68688         Make it possible for gnulib-tool to work with locally modified or
68689         augmented gnulib repositories.
68690         * gnulib-tool (func_usage): Document --local-dir option.
68691         (local_gnulib_dir): New variable.
68692         Handle --local-dir option.
68693         (func_lookup_file): New function.
68694         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68695         (func_get_description, func_get_filelist, func_get_description,
68696         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68697         func_get_automake_snippet, func_get_include_directive,
68698         func_get_license, func_get_maintainer): Use func_lookup_file.
68699         (func_import, func_create_testdir): Use func_lookup_file.
68700
68701 2006-07-29  Bruno Haible  <bruno@clisp.org>
68702
68703         * modules/setenv (Depends-on): Add unistd.
68704
68705 2006-07-29  Bruno Haible  <bruno@clisp.org>
68706
68707         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68708
68709 2006-07-29  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68712
68713 2006-07-29  Bruno Haible  <bruno@clisp.org>
68714
68715         * gnulib-tool (import, update): If there is no Makefile.am, look at
68716         aclocal.m4, instead of bailing out.
68717
68718 2006-07-29  Bruno Haible  <bruno@clisp.org>
68719
68720         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68721         Categorize the options by when they are useful.
68722
68723 2006-07-29  Bruno Haible  <bruno@clisp.org>
68724
68725         * gnulib-tool (func_usage): Document option --no-libtool.
68726         Handle option --no-libtool.
68727         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68728         for changed semantics of $libtool variable.
68729         (func_import): Likewise. If libtool is not used, show this through
68730         an option --no-libtool.
68731         (func_create_testdir): Update.
68732
68733 2006-07-29  Bruno Haible  <bruno@clisp.org>
68734
68735         * gnulib-tool (func_import): Extend error message about missing
68736         --doc-base.
68737
68738 2006-07-29  Bruno Haible  <bruno@clisp.org>
68739
68740         * gnulib-tool (func_import): Don't create the $docbase directory if
68741         there is no file to store there.
68742
68743 2006-07-29  Bruno Haible  <bruno@clisp.org>
68744
68745         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68746         relevant, look for configure.ac there, not in the current directory.
68747         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68748
68749 2006-07-29  Bruno Haible  <bruno@clisp.org>
68750
68751         * gnulib-tool (SORT): New variable.
68752         (func_usage): Undocument --assume-autoconf option.
68753         Remove --assume-autoconf option handling.
68754         (autoconf_minversion): Determine from the contents of configure.ac.
68755         (func_import): Remove autoconf_minversion handling.
68756         Suggested by Eric Blake.
68757
68758 2006-07-29  Bruno Haible  <bruno@clisp.org>
68759
68760         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68761
68762 2006-07-29  Bruno Haible  <bruno@clisp.org>
68763
68764         * config/srclist.txt (*setenv.[ch]): Remove rules.
68765
68766 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68767
68768         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68769
68770 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68771
68772         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68773         arpa/inet.h.
68774
68775 2006-07-28  Simon Josefsson  <jas@extundo.com>
68776
68777         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68778         * modules/inet_pton (Depends-on): Likewise.
68779
68780 2006-07-28  Simon Josefsson  <jas@extundo.com>
68781
68782         * m4/netinet_in_h.m4: New file.
68783
68784 2006-07-28  Simon Josefsson  <jas@extundo.com>
68785
68786         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68787         #include's.
68788
68789 2006-07-28  Simon Josefsson  <jas@extundo.com>
68790
68791         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68792         #include's.
68793
68794 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68797         setgid on directories only if they set these bits.
68798         * lib/modechange.h: Remove obsolete comment about masks.
68799
68800 2006-07-28  Eric Blake  <ebb9@byu.net>
68801
68802         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68803         macro expansion.
68804
68805 2006-07-28  Bruno Haible  <bruno@clisp.org>
68806
68807         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68808
68809 2006-07-28  Bruno Haible  <bruno@clisp.org>
68810
68811         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68812
68813 2006-07-28  Bruno Haible  <bruno@clisp.org>
68814
68815         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68816         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68817         Define fallbacks.
68818         Avoids link error on FreeBSD 4.x.
68819         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68820
68821         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68822         encoding.
68823         * lib/mbswidth.c (iswcntrl): Likewise.
68824
68825 2006-07-27  Bruno Haible  <bruno@clisp.org>
68826
68827         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68828         test.
68829
68830 2006-07-27  Bruno Haible  <bruno@clisp.org>
68831
68832         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68833         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68834         defined.
68835
68836 2006-07-26  Eric Blake  <ebb9@byu.net>
68837
68838         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68839
68840 2006-07-26  Eric Blake  <ebb9@byu.net>
68841
68842         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68843         like mingw that lack mkstemp.
68844         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68845         avoid compilation warning on mingw.
68846
68847 2006-07-26  Bruno Haible  <bruno@clisp.org>
68848
68849         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68850         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68851         INT_FAST*_MIN, INTPTR_MIN.
68852
68853 2006-07-25  Bruno Haible  <bruno@clisp.org>
68854
68855         * modules/version-etc (Depends-on): Add stdarg.
68856
68857 2006-07-25  Bruno Haible  <bruno@clisp.org>
68858
68859         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68860         complex commands.
68861
68862 2006-07-25  Bruno Haible  <bruno@clisp.org>
68863
68864         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68865         defined in <stdarg.h> or config.h.
68866
68867 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68870         (gl_STDIO_SAFER): Remove.
68871
68872 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         * MODULES.html.sh (File stream based Input/Output):
68875         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68876         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68877         * modules/fopen-safer, modules/tmpfile-safer: New files.
68878         * modules/stdio-safer: Remove.
68879
68880 2006-07-24  Bruno Haible  <bruno@clisp.org>
68881
68882         * modules/tmpdir: New file.
68883         * MODULES.html.sh (File system functions): Add it.
68884
68885 2006-07-24  Bruno Haible  <bruno@clisp.org>
68886
68887         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68888         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68889
68890 2006-07-24  Bruno Haible  <bruno@clisp.org>
68891
68892         * modules/clean-temp: New file.
68893
68894 2006-07-24  Bruno Haible  <bruno@clisp.org>
68895
68896         * m4/tmpdir.m4: New file, from GNU gettext.
68897
68898 2006-07-24  Bruno Haible  <bruno@clisp.org>
68899
68900         * lib/tmpdir.h: New file, from GNU gettext.
68901         * lib/tmpdir.c: New file, from GNU gettext.
68902
68903 2006-07-24  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/clean-temp.h: New file, from GNU gettext.
68906         * lib/clean-temp.c: New file, from GNU gettext.
68907
68908 2006-07-23  Eric Blake  <ebb9@byu.net>
68909
68910         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68911         (Depends-on): Add binary-io.
68912
68913 2006-07-23  Eric Blake  <ebb9@byu.net>
68914
68915         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68916
68917 2006-07-23  Eric Blake  <ebb9@byu.net>
68918
68919         * lib/tmpfile-safer.c: New file.
68920         * lib/stdio-safer.h (fopen_safer): Add prototype.
68921         * lib/stdio--.h (tmpfile): Make safer.
68922
68923 2006-07-23  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68926         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68927         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68928         gl_linked_remove_at): Use it.
68929
68930 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68931         and Simon Josefsson <jas@extundo.com>
68932
68933         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68934
68935         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68936
68937 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         * modules/close-stream: New file.
68940         * modules/closeout (Description): Make it clear that it exits
68941         with a diagnostic on error.
68942         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68943         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68944
68945 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * m4/close-stream.m4: New file.
68948
68949 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * lib/close-stream.c, lib/close-stream.h: New files.
68952
68953 2006-07-22  Bruno Haible  <bruno@clisp.org>
68954
68955         Merge from GNU gettext 0.15.
68956
68957         2006-05-01  Bruno Haible  <bruno@clisp.org>
68958
68959                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68960
68961         2006-07-22  Bruno Haible  <bruno@clisp.org>
68962
68963                 * modules/javaversion: New file.
68964                 * MODULES.html.sh (Java): Add javaversion.
68965
68966         2006-03-12  Bruno Haible  <bruno@clisp.org>
68967
68968                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68969
68970         2005-12-04  Bruno Haible  <bruno@clisp.org>
68971
68972                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68973                 (untested).
68974
68975         2006-06-21  Bruno Haible  <bruno@clisp.org>
68976
68977                 Avoid warnings from recent versions of mcs.
68978                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68979                 -o, -L, -r any more. Use options documented since mcs-1.0
68980                 instead. Similarly for -g.
68981
68982         2005-12-04  Bruno Haible  <bruno@clisp.org>
68983
68984                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68985                 .resources, not .resource.
68986
68987         2005-07-09  Bruno Haible  <bruno@clisp.org>
68988
68989                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68990                 add a .dll suffix.
68991                 Reported by Mark Junker <mjscod@gmx.de>.
68992
68993         2006-07-22  Bruno Haible  <bruno@clisp.org>
68994
68995                 * modules/gettext: Upgrade to gettext-0.15.
68996                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68997                 m4/visibility.m4.
68998                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68999
69000 2006-07-22  Bruno Haible  <bruno@clisp.org>
69001
69002         Merge from GNU gettext 0.15.
69003
69004         2006-03-25  Bruno Haible  <bruno@clisp.org>
69005
69006                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69007
69008         2006-07-21  Bruno Haible  <bruno@clisp.org>
69009
69010                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69011                 "1.1".
69012
69013         2006-05-09  Bruno Haible  <bruno@clisp.org>
69014
69015                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69016                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69017                 for the conftestver execution.
69018
69019         2006-05-01  Bruno Haible  <bruno@clisp.org>
69020
69021                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69022                 optional target-version argument. Verify that the compiler
69023                 groks source of the specified source-version, or add -source
69024                 option as necessary. Verify that the compiler produces
69025                 bytecode in the specified target-version, or add -target and
69026                 -source options as necessary. Make the result of the test
69027                 available as variable CONF_JAVAC. Also log error output in
69028                 config.log.
69029
69030         2006-03-11  Bruno Haible  <bruno@clisp.org>
69031
69032                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69033
69034         2006-05-09  Bruno Haible  <bruno@clisp.org>
69035
69036                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69037                 CLASSPATH_SEPARATOR to a semicolon.
69038
69039         2006-03-12  Bruno Haible  <bruno@clisp.org>
69040
69041                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69042                 available as variable CONF_JAVA, for subsequent autoconf
69043                 tests. Also log error output in config.log.
69044
69045         2006-07-19  Bruno Haible  <bruno@clisp.org>
69046
69047                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69048                 that getline works on glibc2 systems. Needed to avoid trouble
69049                 in relocatable.c.
69050                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69051
69052         2005-12-04  Bruno Haible  <bruno@clisp.org>
69053
69054                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69055                 launcher (untested).
69056
69057         2005-12-04  Bruno Haible  <bruno@clisp.org>
69058
69059                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69060
69061         2006-07-22  Bruno Haible  <bruno@clisp.org>
69062
69063                 * gettext.m4: Update from GNU gettext-0.15.
69064                 * nls.m4: Likewise.
69065                 * po.m4: Likewise.
69066                 * inttypes-pri.m4: Likewise.
69067                 * inttypes-h.m4: Renamed from inttypes.m4.
69068                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69069
69070 2006-07-22  Bruno Haible  <bruno@clisp.org>
69071
69072         Merge from GNU gettext 0.15.
69073
69074         2005-07-05  Bruno Haible  <bruno@clisp.org>
69075
69076                 * printf-args.c (printf_fetchargs): Work around broken
69077                 definition of wint_t on mingw.
69078
69079         2005-02-12  Bruno Haible  <bruno@clisp.org>
69080
69081                 * xallocsa.h: Add extern "C" for C++.
69082
69083         2006-05-17  Bruno Haible  <bruno@clisp.org>
69084
69085                 Cygwin portability.
69086                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69087
69088         2006-04-30  Bruno Haible  <bruno@clisp.org>
69089
69090                 * progreloc.c: Include <mach-o/dyld.h> if available.
69091                 (find_executable): Use _NSGetExecutablePath when possible.
69092
69093         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69094
69095                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69096                 function.
69097
69098         2005-12-29  Bruno Haible  <bruno@clisp.org>
69099
69100                 * progreloc.c (set_program_name_and_installdir): Fix
69101                 compilation error.
69102
69103         2005-12-04  Bruno Haible  <bruno@clisp.org>
69104
69105                 Cygwin portability.
69106                 * progreloc.c: Include <windows.h> also on Cygwin.
69107                 (find_executable): Add support for Cygwin.
69108                 (set_program_name_and_installdir): Handle also platforms with
69109                 nonempty EXEEXT.
69110
69111         2006-07-11  Bruno Haible  <bruno@clisp.org>
69112
69113                 * javacomp.c: Fix a comment.
69114                 Reported by Jim Meyering.
69115
69116         2006-04-30  Bruno Haible  <bruno@clisp.org>
69117
69118                 * javacomp.h (compile_java_class): Add source_version,
69119                 target_version arguments.
69120                 * javacomp.c: Rewritten to choose only a compiler that
69121                 respects the specified source_version and target_version.
69122
69123         2006-06-27  Bruno Haible  <bruno@clisp.org>
69124
69125                 Assume correct S_ISDIR macro.
69126                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69127
69128         2006-07-22  Bruno Haible  <bruno@clisp.org>
69129
69130                 * javaversion.h: New file, from GNU gettext.
69131                 * javaversion.c: New file, from GNU gettext.
69132                 * javaversion.java: New file, from GNU gettext.
69133                 * javaversion.class: New file, from GNU gettext.
69134
69135         2006-05-17  Bruno Haible  <bruno@clisp.org>
69136
69137                 Cygwin portability.
69138                 * javaexec.c (execute_java_class): Test for jview program
69139                 also on Cygwin.
69140
69141         2006-04-09  Bruno Haible  <bruno@clisp.org>
69142
69143                 * fatal-signal.c: Don't include string.h.
69144                 (at_fatal_signal): Use a copying loop instead of memcpy.
69145
69146         2005-12-04  Bruno Haible  <bruno@clisp.org>
69147
69148                 * csharpexec.c: Add support for 'clix' launcher (untested).
69149                 (execute_csharp_using_sscli): New function.
69150                 (execute_csharp_program): Call it.
69151
69152         2006-06-21  Bruno Haible  <bruno@clisp.org>
69153
69154                 Avoid warnings from recent versions of mcs.
69155                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69156                 -o, -L, -r any more. Use options documented since mcs-1.0
69157                 instead. Similarly for -g.
69158
69159         2005-07-09  Bruno Haible  <bruno@clisp.org>
69160
69161                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69162                 add a .dll suffix.
69163                 Reported by Mark Junker <mjscod@gmx.de>.
69164
69165         2006-06-17  Bruno Haible  <bruno@clisp.org>
69166
69167                 * config.charset: Update for NetBSD 3.0.
69168
69169         2006-05-17  Bruno Haible  <bruno@clisp.org>
69170
69171                 Cygwin portability.
69172                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69173
69174         2006-05-16  Bruno Haible  <bruno@clisp.org>
69175
69176                 * localcharset.c [CYGWIN]: Include <windows.h>.
69177                 (get_charset_aliases): For Cygwin, return the same CPxxx
69178                 aliases list as under WIN32.
69179                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69180                 the environment variables. Fall back to GetACP().
69181
69182         2006-04-05  Bruno Haible  <bruno@clisp.org>
69183
69184                 * config.charset: Update Juan Manuel Guerrero's address.
69185
69186         2005-02-12  Bruno Haible  <bruno@clisp.org>
69187
69188                 * allocsa.h: Add extern "C" for C++.
69189
69190         2005-02-10  Bruno Haible  <bruno@clisp.org>
69191
69192                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69193                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69194
69195         2006-07-22  Bruno Haible  <bruno@clisp.org>
69196
69197                 * gettext.h: Update to GNU gettext-0.15.
69198
69199 2006-07-22  Bruno Haible  <bruno@clisp.org>
69200
69201         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69202         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69203         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69204
69205 2006-07-21  Eric Blake  <ebb9@byu.net>
69206
69207         * modules/stdlib-safer: New file.
69208         * MODULES.html.sh (File stream based Input/Output): Add
69209         stdlib-safer.
69210
69211 2006-07-21  Eric Blake  <ebb9@byu.net>
69212
69213         * lib/stdlib-safer.h: New file from coreutils, required by
69214         stdlib--.h.
69215
69216 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69217
69218         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69219
69220 2006-07-20  Bruno Haible  <bruno@clisp.org>
69221
69222         * gnulib-tool: Recognize new option --assume-autoconf.
69223         (autoconf_minversion): New variable.
69224         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69225
69226 2006-07-20  Bruno Haible  <bruno@clisp.org>
69227
69228         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69229
69230 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69231
69232         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69233         Reindent and repaginate.
69234
69235 2006-07-19  Derek Price  <derek@ximbiot.com>
69236
69237         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69238         Correct grammar.
69239
69240 2006-07-17  Bruno Haible  <bruno@clisp.org>
69241
69242         * modules/list: New file.
69243         * modules/array-list: New file.
69244         * modules/carray-list, modules/carray-list-tests: New files.
69245         * modules/linked-list, modules/linked-list-tests: New files.
69246         * modules/avltree-list, modules/avltree-list-tests: New files.
69247         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69248         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69249         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69250         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69251         * modules/oset: New file.
69252         * modules/array-oset: New file.
69253         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69254         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69255         * tests/test-carray_list.c: New file.
69256         * tests/test-linked_list.c: New file.
69257         * tests/test-avltree_list.c: New file.
69258         * tests/test-rbtree_list.c: New file.
69259         * tests/test-linkedhash_list.c: New file.
69260         * tests/test-avltreehash_list.c: New file.
69261         * tests/test-rbtreehash_list.c: New file.
69262         * tests/test-avltree_oset.c: New file.
69263         * tests/test-rbtree_oset.c: New file.
69264         * MODULES.html.sh (Container data structures): New section.
69265
69266 2006-07-17  Bruno Haible  <bruno@clisp.org>
69267
69268         * m4/gl_list.m4: New file.
69269
69270 2006-07-17  Bruno Haible  <bruno@clisp.org>
69271
69272         * lib/gl_list.h: New file.
69273         * lib/gl_list.c: New file.
69274         * lib/gl_array_list.h: New file.
69275         * lib/gl_array_list.c: New file.
69276         * lib/gl_carray_list.h: New file.
69277         * lib/gl_carray_list.c: New file.
69278         * lib/gl_linked_list.h: New file.
69279         * lib/gl_linked_list.c: New file.
69280         * lib/gl_anylinked_list1.h: New file.
69281         * lib/gl_anylinked_list2.h: New file.
69282         * lib/gl_avltree_list.h: New file.
69283         * lib/gl_avltree_list.c: New file.
69284         * lib/gl_anyavltree_list1.h: New file.
69285         * lib/gl_anyavltree_list2.h: New file.
69286         * lib/gl_rbtree_list.h: New file.
69287         * lib/gl_rbtree_list.c: New file.
69288         * lib/gl_anyrbtree_list1.h: New file.
69289         * lib/gl_anyrbtree_list2.h: New file.
69290         * lib/gl_anytree_list1.h: New file.
69291         * lib/gl_anytree_list2.h: New file.
69292         * lib/gl_linkedhash_list.h: New file.
69293         * lib/gl_linkedhash_list.c: New file.
69294         * lib/gl_anyhash_list1.h: New file.
69295         * lib/gl_anyhash_list2.h: New file.
69296         * lib/gl_avltreehash_list.h: New file.
69297         * lib/gl_avltreehash_list.c: New file.
69298         * lib/gl_rbtreehash_list.h: New file.
69299         * lib/gl_rbtreehash_list.c: New file.
69300         * lib/gl_anytreehash_list1.h: New file.
69301         * lib/gl_anytreehash_list2.h: New file.
69302
69303         * lib/gl_oset.h: New file.
69304         * lib/gl_oset.c: New file.
69305         * lib/gl_array_oset.h: New file.
69306         * lib/gl_array_oset.c: New file.
69307         * lib/gl_avltree_oset.h: New file.
69308         * lib/gl_avltree_oset.c: New file.
69309         * lib/gl_rbtree_oset.h: New file.
69310         * lib/gl_rbtree_oset.c: New file.
69311         * lib/gl_anytree_oset.h: New file.
69312
69313 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * m4/mkancesdirs.m4: New file.
69316         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69317         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69318         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69319         it.
69320
69321 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69324         * lib/mkancesdirs.h: New files.
69325         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69326         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69327         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69328         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69329         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69330         callers changed.  Revamp internals significantly, by not
69331         attempting to create directories that are temporarily more
69332         permissive than the final results.  Do not attempt to use
69333         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69334         This removes some race conditions, fixes some bugs, and simplifies
69335         things.  Use new dirchownmod function to do owner and mode changes.
69336         * lib/mkdir-p.h: Likewise.
69337         * lib/modechange.c (octal_to_mode): New function.
69338         (struct mode_change): New member mentioned.
69339         (make_node_op_equals): New arg mentioned.  All callers changed.
69340         (mode_compile): Keep track of which mode bits the user has explicitly
69341         mentioned.
69342         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69343         New arg PMODE_BITS, to keep track of which mode bits the user
69344         mentioned; it treats S_ISUID and S_ISGID speciall.
69345         All callers changed.
69346         * lib/modechange.h: Likewise.
69347
69348 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * MODULES.html.sh: Add mkancestors.
69351         * modules/mkancesdirs: New module.
69352         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69353         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69354         The chdir-safer and afs files are now orphans; I'll remove them
69355         unless someone speaks up.
69356         Add lib/dirchownmod.c, lib/dirchownmod.h.
69357         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69358         Add lchown, mkancesdirs.
69359         (Maintainer): Add self.
69360
69361 2006-07-15  Karl Berry  <karl@gnu.org>
69362
69363         * gnulib-tool: help message wording/arrangement.
69364
69365 2006-07-14  Simon Josefsson  <jas@extundo.com>
69366
69367         * doc/gnulib.texi (Libtool and Windows): New section.
69368
69369 2006-07-12  Simon Josefsson  <jas@extundo.com>
69370
69371         * modules/gendocs (License): Fix license, approved by Karl.
69372
69373 2006-07-12  Eric Blake  <ebb9@byu.net>
69374
69375         * MODULES.html.sh: Add gendocs.
69376
69377 2006-07-11  Eric Blake  <ebb9@byu.net>
69378
69379         * modules/fdl: New module, to install doc/fdl.texi.
69380         * MODULES.html.sh: Add new section for documentation modules.
69381         * gnulib-tool: Avoid space-tab.
69382         (--doc-base): New option, to manage files from doc.
69383
69384 2006-07-11  Eric Blake  <ebb9@byu.net>
69385
69386         * m4/absolute-header.m4: Fix comments to match recent change.
69387
69388 2006-07-11  Eric Blake  <ebb9@byu.net>
69389
69390         * gnulib-tool: List --doc-base before --tests-base.
69391
69392 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69393
69394         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69395
69396 2006-07-11  Bruno Haible  <bruno@clisp.org>
69397
69398         * README: Mention where to put documentation.
69399
69400 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69401
69402         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69403
69404 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69407         to stdint.m4.
69408
69409 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69410
69411         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69412         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69413         "no/such/file/stdint.h" when there is no such file, so that
69414         the resulting C code can be parsed by dodgy compilers.
69415         Problems reported by Bob Proulx.
69416
69417 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69418
69419         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69420         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69421         macros into the GNU _D_EXACT_NAMLEN.
69422         * lib/savedir.c:  Likewise.
69423         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69424
69425 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69426         and Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69429         * m4/savedir.m4:
69430         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69431         macros into the GNU _D_EXACT_NAMLEN.
69432
69433 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69436         around the absolute name, to work around a problem with the HP-UX
69437         11.23 native C compiler, reported by Bob Proulx.
69438
69439 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * doc/maintain.texi, make-stds.texi: Sync from
69442         <http://savannah.gnu.org/projects/gnustandards>.
69443
69444 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69447
69448 2006-07-09  Jim Meyering  <jim@meyering.net>
69449
69450         * m4/glob.m4: Remove a doubled word in a comment.
69451
69452 2006-07-09  Jim Meyering  <jim@meyering.net>
69453
69454         * lib/argp-pv.c: Remove a doubled word in a comment.
69455         * lib/check-version.c (check_version): Likewise.
69456         * lib/javacomp.c (compile_java_class): Likewise.
69457
69458 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69459
69460         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69461         for the benefit of people using Autoconf 2.60.  If you want to
69462         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69463         (or m4/onceonly.m4, if pre-2.57) manually.
69464
69465 2006-07-08  Jim Meyering  <jim@meyering.net>
69466
69467         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69468         comment.
69469         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69470         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69471         comment.
69472
69473 2006-07-08  Jim Meyering  <jim@meyering.net>
69474
69475         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69476
69477 2006-07-07  Simon Josefsson  <jas@extundo.com>
69478
69479         * tests/test-crc.c: Change expected crc value, the test vector
69480         were probably computed using the old broken crc.c?
69481
69482 2006-07-06  Simon Josefsson  <jas@extundo.com>
69483
69484         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69485         now the canonical place for the M4 file).
69486
69487         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69488         from the sys_socket dependency now.
69489
69490         * modules/inet_pton (Files): Ditto.
69491
69492         * modules/inet_ntop (Files): Ditto.
69493
69494 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69495
69496         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69497         not gl_PREREQ_GETUSERSHELL.
69498
69499 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69500
69501         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69502         with only one argument, for Autoconf 2.60.
69503         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69504         expand to nothing, so add a shell command to avoid syntax error.
69505         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69506
69507 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69508
69509         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69510
69511 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69514         no longer needed.  Check for isblank decl.
69515         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69516         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69517         of existence.
69518
69519 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         * lib/getloadavg.c: Use __VMS, not VMS.
69522         * lib/getopt.c: Likewise.
69523         * lib/getpagesize.h: Likewise.
69524         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69525         and probably does not work.
69526
69527 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * lib/.cppi-disable: Add wcwidth.
69530         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69531         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69532         (ISGRAPH): Remove.  All uses changed to isgraph.
69533         (FOLD) [!defined _LIBC]: Remove special case.
69534         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69535         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69536         HAVE_ISBLANK.
69537         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69538         case.
69539
69540 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69541
69542         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69543         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69544         brackets.  Other minor changes to suppress some compiler
69545         warnings.
69546
69547 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69548         and Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69551         of invoking obsolescent AC_HEADER_DIRENT macro.
69552         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69553         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69554         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69555         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69556         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69557         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69558         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69559         * m4/readdir.m4: Remove; no longer needed.
69560
69561 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69562         and Paul Eggert  <eggert@cs.ucla.edu>
69563
69564         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69565         Don't worry about this obsolete case any more.
69566         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69567         directories.
69568         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69569         worry about this obsolete case any more.
69570         * lib/fts.c: Likewise.
69571         * lib/getcwd.c: Likewise.
69572         * lib/glob.h: Likewise.
69573         * lib/savedir.c: Likewise.
69574
69575 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69578         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69579         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69580         needed.
69581         All uses removed.
69582         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69583         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69584         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69585         needed.
69586         * m4/getdate.m4 (gl_GETDATE): Likewise.
69587         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69588         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69589         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69590         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69591         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69592         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69593         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69594         needed.
69595
69596 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * lib/memcasecmp.c: Include <limits.h>.
69599         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69600         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69601         Don't assume isdigit succeeds only on '0' through '9'.
69602
69603 2006-07-05  Eric Blake  <ebb9@byu.net>
69604
69605         * modules/getaddrinfo (Depends-on): Add snprintf.
69606
69607 2006-07-05  Eric Blake  <ebb9@byu.net>
69608
69609         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69610         to avoid 'header present but could not be compiled' on cygwin.
69611
69612 2006-07-05  Eric Blake  <ebb9@byu.net>
69613
69614         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69615         missing from netdb.h.
69616         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69617
69618 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69619
69620         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69621         no longer needed.
69622         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69623         * m4/getdate.m4 (gl_GETDATE): Likewise.
69624         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69625         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69626         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69627         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69628         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69629
69630 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69631
69632         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69633         All uses of is_space replaced by isspace.
69634         * lib/exit.h: Don't talk about STDC_HEADERS.
69635         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69636         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69637         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69638         replaced by isprint etc.
69639         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69640         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69641         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69642         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69643         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69644         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69645
69646 2006-07-05  Bruno Haible  <bruno@clisp.org>
69647
69648         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69649         the function exists, before testing against AIX.
69650         Reported by Martin Lambers <marlam@marlam.de>.
69651
69652 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69653
69654         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69655         From Mark D. Baushke.
69656
69657 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69660         to the absolute name, not just one, to bypass Sun C 5.8's
69661         "warning: #include of /usr/include/... may be non-portable".
69662
69663 2006-07-04  Eric Blake  <ebb9@byu.net>
69664
69665         * modules/dirname-tests: New test module.
69666         * tests/test-dirname.c: New file, replacing dirname.c
69667         TEST_DIRNAME section that was recently deleted.
69668
69669 2006-07-04  Bruno Haible  <bruno@clisp.org>
69670
69671         Assume ANSI C header files and <ctype.h> functions.
69672         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69673         (mbsnwidth): Use isprint, iscntrl instead.
69674
69675 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         Merge from coreutils.
69678         * MODULES.html.sh: Add xstrtold.
69679         * modules/xstrtold: New file.
69680         * modules/cycle-check (Files): Add lib/same-inode.h.
69681         * modules/dirname (Files): Add m4/double-slash-root.m4.
69682         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69683         * modules/mkdir-p (Files): Add lib/same-inode.h.
69684         * modules/same (Files): Add lib/same-inode.h.
69685
69686 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69687
69688         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69689         This is to keep the terminology clean; POSIX talks about
69690         "absolute pathnames", not "full pathnames", but the GNU
69691         Coding Standards say to use "path" for something else;
69692         so use "absolute" to keep both sides happy.
69693         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69694         Set gl_absolute_header, not gl_full_header_path.
69695         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69696         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69697         All uses changed.
69698
69699         Merge from coreutils.
69700
69701         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69704         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69705         want to require the building of c-strtod.o.
69706         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69707         needs -lm directly.
69708         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69709
69710         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69713         --as-needed option if available.  Problem reported by Albert Chin in
69714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69715         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69716         cc merely issues a bunch of annoying warnings for --as-needed
69717         (this problem was reported by Bob Proulx).  Also, try linking with
69718         -lm to detect a bug in binutils 2.16 (this problem was reported
69719         by Ralf Wildenhues).
69720
69721         2006-06-18  Jim Meyering  <jim@meyering.net>
69722
69723         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69724         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69725         macro.
69726         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69727         also check for glibc-2.4's abort-inducing bug.
69728
69729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69730         Low-probability clean-up should be to use rmdir to get rid of
69731         the just-created directory, not unlink.
69732
69733         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69734         configure fail, and request a bug report to inform us about it.
69735         Add a comment that, barring reports to the contrary, in 2007 we'll
69736         assume ftruncate is universally available.
69737
69738         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69741
69742         2006-03-12  Jim Meyering  <jim@meyering.net>
69743
69744         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69745         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69746         * m4/same.m4 (gl_SAME): Likewise.
69747         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69748
69749         2006-03-11  Eric Blake  <ebb9@byu.net>
69750
69751         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69752         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69753         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69754         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69755
69756 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69759         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69760         reported by Mark D. Baushke, one in
69761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69762
69763         Merge from coreutils.
69764
69765         * lib/.cppi-disable: Add stdint_.h.
69766         * lib/.cvsignore: Add stdint.h.
69767
69768         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69771         both double and long double versions.
69772         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69773         * lib/xstrtold.c: New file.
69774         * lib/xstrtod.h (xstrtold): New decl.
69775
69776         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * lib/filemode.c (setst): Remove.
69779         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69780         (arguably) clearer, and the generated code is a bit smaller on my
69781         Debian GNU/Linux stable x86 host.
69782
69783         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69784
69785         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69786         Assume that filemode.h includes sys/types.h and sys/stat.h.
69787         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69788         (ftypelet): Reorder to put common cases first, for efficiency.
69789         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69790         to do 'M'.
69791         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69792         of 10, for compatibility with FreeBSD.  All callers changed.
69793         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69794         types that can't be deduced solely from st_mode.  First arg is now a
69795         const pointer.
69796         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69797         (strmode): Renamed from mode_string.
69798         (filemodestring): New decl.
69799         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69800         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69801         needed.
69802         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69803
69804         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69805
69806         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69807         fsusage.h now does that.  Include fsusage.h first, to test interface.
69808         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69809         at most one method (the old code could have generated decls that
69810         didn't conform to C89, not that this was ever exercised).
69811         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69812
69813         2006-03-19  Jim Meyering  <jim@meyering.net>
69814
69815         Work even in a chroot where d_ino values for entries in "/"
69816         don't match the stat.st_ino values for the same names.
69817         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69818         number, iterate through all entries again, using lstat instead.
69819         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69820         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69821
69822         * lib/getcwd.c (__getcwd): Clarify a comment.
69823         Use memcpy in place of a call to strcpy.
69824
69825         2006-03-12  Jim Meyering  <jim@meyering.net>
69826
69827         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69828         matches that of the current directory (which we're about to chdir ".."
69829         out of), then save the dev-ino of the parent, instead.
69830
69831         * lib/same-inode.h (SAME_INODE): New file/macro.
69832         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69833         Include "same-inode.h", instead.
69834         * lib/same.c: Likewise.
69835         * lib/cycle-check.h: Include "same-inode.h".
69836         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69837         * lib/cycle-check.c (SAME_INODE): Remove definition.
69838         * lib/root-dev-ino.h: Include "same-inode.h".
69839
69840         2006-03-11  Eric Blake  <ebb9@byu.net>
69841
69842         * lib/same.c (same_name): s/base_name/last_component/
69843         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69844         * lib/filenamecat.c (file_name_concat): Likewise.
69845
69846         2006-03-11  Eric Blake  <ebb9@byu.net>,
69847                     Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69850         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69851         drive prefix.
69852         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69853         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69854         (last_component): New method.
69855         * lib/dirname.c (dir_len): Determine when drive letters need a
69856         subsequent slash.  Preserve // when it is special.
69857         (dir_name): Don't append dot when drive letter is absolute.
69858         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69859         * lib/basename.c (base_name): New semantics - malloc the result.
69860         Preserve // when it is special.  Preserve relative files that look
69861         like drive letters.
69862         (base_len): Preserve // when it is special.
69863         (last_component): New method, similar to old base_name semantics.
69864         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69865         base_name.  Strip redundant slashes from ///.
69866
69867 2006-07-03  Jim Meyering  <jim@meyering.net>
69868
69869         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69870         macro is used before the first cycle_check call.
69871
69872 2006-07-03  Eric Blake  <ebb9@byu.net>
69873
69874         * modules/dirname (Depends-on): Add xstrndup.
69875
69876 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69879         test cases, so that config.log is a bit easier to follow.
69880
69881 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69884         both are 64 bits, since this seems to be the tradition, and this
69885         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69886         we ever run into a host that prefers long long to long in this
69887         case, we'll need another configure-time test.  Problem reported by
69888         Jim Meyering.
69889
69890 2006-07-02  Eric Blake  <ebb9@byu.net>
69891
69892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69893
69894 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * modules/inttypes (Depends-on): No longer depends on stdint.
69897         * modules/stdint (Description): Say more about assumptions.
69898         Say that the fast types might differ.  Say macros are used.
69899         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69900         (Makefile.am): Revise list of substituted symbols to match
69901         new stdint.m4.
69902         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69903         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69904         * tests/test-stdint.c (verify_same_types)
69905         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69906         the code conforms to C99/C89.
69907         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69908         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69909
69910 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69911
69912         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69913         but fix a bug, by requiring at least 64 bits.
69914         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69915         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69916         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69917         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69918
69919         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69920         changes.  Make 2.59 a prerequisite.  Check and substitute for
69921         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69922         inttypes.h.  Do not use special include files; just use the
69923         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69924         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69925         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69926         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69927         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69928         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69929         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69930         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69931         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69932         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69933         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69934         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69935         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69936         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69937         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69938         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69939         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69940         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69941         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69942         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69943         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69944         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69945         not check for things that C99 does not require, e.g., int8_t.  If
69946         a test isn't needed unless <stdint.h> isn't working, and is
69947         unlikely to be needed for any other reason, then don't do it
69948         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69949         size_t, since we assume C89 freestanding at least.  Do not check
69950         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69951         the right thing even if the types are not defined.  Instead use:
69952         (gl_STDINT_TYPE_PROPERTIES): New macro.
69953         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69954         testing whether <sys/types.h> clashes, as Autoconf does this for
69955         us now.  All uses removed.
69956         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69957         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69958         (gl_CHECK_TYPE_SAME):
69959         Remove; no longer needed.
69960         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69961         exists, since we'll return 0 anyway in that case.
69962         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69963
69964 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69965
69966         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69967         possible collision with system files.
69968         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69969         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69970         WCHAR_MIN and WCHAR_MAX in this case.
69971         (<stddef.h>): Do not include; no longer needed.
69972         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69973         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69974         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69975         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69976         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69977         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69978         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69979         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69980         !defined(__c99))]: Include in this case too, since it's harmless
69981         now.
69982         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69983         dangerous to do so.
69984         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69985         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69986         (_STDINT_MIN, _STDINT_MAX): New macros.
69987         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69988         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69989         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69990         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69991         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69992         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69993         macros, not typedefs; this simplifies things quite a bit.
69994         Use long int for all types narrower than int64_t.
69995         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69996         Define in terms of long long int or int64_t or long int,
69997         not int64_t or int32_t.  This saves some compile-time testing.
69998         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69999         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70000         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70001         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70002         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70003         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70004         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70005         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70006         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70007         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70008         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70009         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70010         undef any previous version and define our own version, for
70011         simplicity and consistency with the new macros for types.
70012         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70013         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70014         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70015         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70016         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70017         @WINT_T_SUFFIX@ to keep things simple here.
70018         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70019         Simplify by assuming typical 8/16/32/64 host, since we're
70020         already doing that elsewhere anyway.
70021         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70022         and assume long long int is 64 bits if available.  This
70023         speeds up 'configure'.
70024
70025 2006-07-01  Eric Blake  <ebb9@byu.net>
70026
70027         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70028         Reported by Andreas Buening.
70029
70030 2006-07-01  Eric Blake  <ebb9@byu.net>
70031
70032         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70033
70034 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70035
70036         * lib/getaddrinfo.c: fixed typo
70037
70038 2006-06-29  Jim Meyering  <jim@meyering.net>
70039
70040         * modules/strftime (Maintainer): Add my name, since with the
70041         FPRINTFTIME changes strftime.c has forked from glibc.
70042
70043 2006-06-29  Eric Blake  <ebb9@byu.net>
70044
70045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70046
70047 2006-06-29  Eric Blake  <ebb9@byu.net>
70048
70049         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70050
70051 2006-06-29  Eric Blake  <ebb9@byu.net>
70052
70053         * lib/stat_.h: New file.
70054
70055 2006-06-29  Eric Blake  <ebb9@byu.net>
70056
70057         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70058         unused static function.
70059
70060 2006-06-29  Eric Blake  <ebb9@byu.net>
70061
70062         * doc/functions.texi (Function Portability): Document missing lstat
70063         on mingw.
70064
70065 2006-06-29  Eric Blake  <ebb9@byu.net>
70066
70067         * MODULES.html.sh: Add sys_stat.
70068         * modules/sys_stat: New module.
70069         * modules/mkstemp (Depends-on): Add sys_stat.
70070
70071 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70072
70073         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70074
70075 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70076
70077         * m4/c-bs-a.m4: Removed.
70078
70079 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70080
70081         * lib/strftime.c: Assume strftime() exists.
70082
70083 2006-06-29  Derek Price  <derek@ximbiot.com>
70084
70085         * modules/c-bs-a: Removed - \a is C89.
70086         * MODULES.html.sh: Remove c-bs-a.
70087
70088 2006-06-29  Bruno Haible  <bruno@clisp.org>
70089
70090         * modules/wcwidth (License): Change to LGPL.
70091
70092 2006-06-28  Simon Josefsson  <jas@extundo.com>
70093
70094         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70095         on _WIN32.
70096
70097         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70098         getnameinfo.
70099
70100 2006-06-28  Simon Josefsson  <jas@extundo.com>
70101
70102         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70103
70104 2006-06-28  Simon Josefsson  <jas@extundo.com>
70105
70106         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70107         functions there.  It will succeed on Windows XP, but on Windows
70108         2000 and (presumably) earlier, it will fail, and use the internal
70109         re-implementation.
70110         (use_win32_p): New function.
70111         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70112         Support AI_NUMERICSERV to disable getservbyname.
70113         (getnameinfo): New function, only supports
70114         NI_NUMERICHOST|NI_NUMERICSERV for now.
70115
70116         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70117         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70118         getnameinfo.
70119
70120 2006-06-28  Eric Blake  <ebb9@byu.net>
70121
70122         * modules/wcwidth: New file.
70123         * modules/mbchar (Depends-on): Add wcwidth.
70124         * modules/mbswidth (Depends-on): Add wcwidth.
70125         * MODULES.html.sh: Add wcwidth.
70126
70127 2006-06-28  Eric Blake  <ebb9@byu.net>
70128
70129         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70131
70132 2006-06-28  Eric Blake  <ebb9@byu.net>
70133
70134         * lib/xvasprintf.h: Fix comments.
70135
70136 2006-06-28  Eric Blake  <ebb9@byu.net>
70137
70138         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70139         * lib/mbswidth.c (wcwidth): Move from here...
70140         * lib/wcwidth.h: ...to this new file.
70141
70142 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70143
70144         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70145
70146         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70147         it's obsolete.
70148         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70149
70150 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70151
70152         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70153         Autoconf 2.60 says this stuff was obsolete.
70154
70155 2006-06-28  Bruno Haible  <bruno@clisp.org>
70156
70157         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70158
70159 2006-06-28  Bruno Haible  <bruno@clisp.org>
70160
70161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70162         gt_TYPE_WCHAR_T.
70163
70164 2006-06-28  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70167         declaration for wcwidth.
70168         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70169
70170 2006-06-28  Bruno Haible  <bruno@clisp.org>
70171
70172         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70173         (mkdir): Define using _mkdir.
70174
70175 2006-06-28  Bruno Haible  <bruno@clisp.org>
70176
70177         * lib/getaddrinfo.h: Fix POSIX URL.
70178         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70179         _WIN32.
70180         (use_win32_p): Make static.
70181         (getaddrinfo): Reject service name if it is empty or does not consist
70182         solely of decimal digits, or if its value is > 65535.
70183         (getnameinfo): Remove useless casts.
70184
70185 2006-06-27  Simon Josefsson  <jas@extundo.com>
70186
70187         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70188         Eggert and Martin Lambers.
70189
70190 2006-06-27  Simon Josefsson  <jas@extundo.com>
70191
70192         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70193         Eggert and Martin Lambers.
70194
70195 2006-06-27  Bruno Haible  <bruno@clisp.org>
70196
70197         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70198         result to 0, not to empty.
70199         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70200
70201 2006-06-27  Bruno Haible  <bruno@clisp.org>
70202
70203         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70204
70205 2006-06-26  Simon Josefsson  <jas@extundo.com>
70206
70207         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70208         present.
70209
70210 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70213         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70215
70216 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70217
70218         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70219
70220 2006-06-26  Bruno Haible  <bruno@clisp.org>
70221
70222         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70223
70224 2006-06-26  Bruno Haible  <bruno@clisp.org>
70225
70226         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70227
70228 2006-06-26  Bruno Haible  <bruno@clisp.org>
70229
70230         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70231         SGI C compiler in pre-C99 mode.
70232         Suggested by Mark D. Baushke and Larry Jones.
70233
70234 2006-06-26  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70237         WCHAR_MAX.
70238         Reported by Mark D. Baushke and Larry Jones.
70239
70240 2006-06-26  Bruno Haible  <bruno@clisp.org>
70241
70242         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70243         in pre-C99 mode.
70244         Suggested by Mark D. Baushke and Larry Jones.
70245
70246 2006-06-23  Simon Josefsson  <jas@extundo.com>
70247             Bruno Haible  <bruno@clisp.org>
70248
70249         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70250         Emit mostlyclean-local rule.
70251         (func_emit_tests_Makefile_am): Likewise.
70252         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70253
70254 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70255
70256         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70257
70258 2006-06-23  Bruno Haible  <bruno@clisp.org>
70259
70260         * tests/test-stdint.c: Update to match ISO C 99 Technical
70261         Corrigendum 1.
70262
70263 2006-06-23  Bruno Haible  <bruno@clisp.org>
70264
70265         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70266
70267 2006-06-23  Bruno Haible  <bruno@clisp.org>
70268
70269         * lib/stdint_.h: Treat IRIX like OpenBSD.
70270
70271 2006-06-23  Bruno Haible  <bruno@clisp.org>
70272
70273         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70274         ISO C 99 Technical Corrigendum 1.
70275
70276 2006-06-22  Simon Josefsson  <jas@extundo.com>
70277
70278         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70279         MinGW.
70280
70281 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70284         needed.  Some compiler complained about some of them.  Problem reported
70285         by Larry Jones in
70286         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70287
70288 2006-06-21  Simon Josefsson  <jas@extundo.com>
70289
70290         * tests/test-getaddrinfo.c: New file.
70291
70292         * modules/getaddrinfo-tests: New file.
70293
70294         * MODULES.html.sh: Add inet_pton.
70295
70296         * modules/inet_pton: New file.
70297
70298 2006-06-21  Simon Josefsson  <jas@extundo.com>
70299
70300         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70301         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70302         of using the (limited) gnulib implementation on Windows XP.
70303
70304         * m4/inet_pton.m4: New file.
70305
70306 2006-06-21  Simon Josefsson  <jas@extundo.com>
70307
70308         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70309         variable.
70310
70311         * lib/socket_.h: Don't define WINVER.
70312
70313         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70314         slightly modified to work in gnulib.
70315
70316 2006-06-21  Simon Josefsson  <jas@extundo.com>
70317
70318         * doc/gnulib.texi (Windows sockets): Add.
70319
70320 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * lib/read-file.c (fread_file): Start with buffer allocation of
70323         0 bytes rather than 1 byte; this simplifies the code.
70324         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70325         code to free buffer and save/restore errno.
70326         (internal_read_file): Remove unused local.
70327
70328 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70331         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70332         Problem reported by Denis Excoffier in
70333         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70334
70335 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70336
70337         * modules/sys_socket, modules/socklen: Include sys/types since
70338         FreeBSD 4.x's sys/socket.h needs it.
70339
70340 2006-06-19  Simon Josefsson  <jas@extundo.com>
70341
70342         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70343
70344 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70347
70348 2006-06-19  Bruno Haible  <bruno@clisp.org>
70349
70350         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70351         and FULL_PATH_INTTYPES_H in angle brackets.
70352         Reported by Mark D. Baushke <mdb@gnu.org>.
70353
70354 2006-06-17  Eric Blake  <ebb9@byu.net>
70355
70356         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70357         errno.
70358
70359 2006-06-17  Bruno Haible  <bruno@clisp.org>
70360
70361         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70362         <sys/inttypes.h>.
70363
70364 2006-06-17  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70367         whether errno is declared. Assume <errno.h> declares errno.
70368
70369 2006-06-17  Bruno Haible  <bruno@clisp.org>
70370
70371         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70372
70373 2006-06-17  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70376         problem on Solaris 2.5.1.
70377
70378 2006-06-16  Eric Blake  <ebb9@byu.net>
70379
70380         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70381         * lib/unicodeio.c [!defined errno]: Likewise.
70382         * lib/strtol.c [!defined errno]: Likewise.
70383         * lib/strtod.c [!defined errno]: Likewise.
70384
70385 2006-06-15  Eric Blake  <ebb9@byu.net>
70386
70387         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70388
70389 2006-06-15  Eric Blake  <ebb9@byu.net>
70390
70391         * config/srclist.txt (ssize_t.m4): Lose sync.
70392
70393 2006-06-15  Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/stdint (Files): Include m4/full-header-path.m4,
70396         m4/size_max.m4, m4/wchar_t.m4.
70397         (Makefile.am): Many more substitutions.
70398         * modules/stdint-tests: New file.
70399         * tests/test-stdint.c: New file.
70400
70401 2006-06-15  Bruno Haible  <bruno@clisp.org>
70402
70403         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70404         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70405         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70406         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70407         gl_CHECK_TYPE_SAME): New macros.
70408
70409 2006-06-15  Bruno Haible  <bruno@clisp.org>
70410
70411         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70412
70413 2006-06-15  Bruno Haible  <bruno@clisp.org>
70414
70415         * lib/stdint_.h: Rewritten to be fully auto-configured.
70416         Fixes bug on HP-UX/IA64.
70417
70418 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70419
70420         * lib/getdate.y (__attribute__): Don't define if already defined.
70421         Problem reported by Larry Jones.
70422         * lib/utimens.c (__attribute__): Likewise.
70423
70424 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70425
70426         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70427         reported by Andreas Schwab.
70428
70429 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70430             Bruno Haible  <bruno@clisp.org>
70431
70432         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70433         check for the declaration of strnlen and a run test that exposes the
70434         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70435         rpl_strndup.
70436
70437 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70438             Bruno Haible  <bruno@clisp.org>
70439
70440         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70441
70442 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70443
70444         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70445         compile test, for Tru64 4.0D.
70446
70447 2006-05-28  Karl Berry  <karl@gnu.org>
70448
70449         * config/srclist.txt (printf-args.c): lose sync.
70450
70451 2006-05-26  Martin Lambers  <marlam@marlam.de>
70452
70453         * lib/getpass.c: Updates the test for the native W32 API, and adds
70454         missing includes, thus fixing compilation warnings.
70455
70456 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70457
70458         * lib/exclude.c (exclude_fnmatch): New function.
70459         (excluded_file_name): Call exclude_fnmatch.
70460         * lib/exclude.h (excluded_file_name): New prototype
70461
70462 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * lib/tempname.c (small_open, large_open): New macros.
70465         (__open, __open64) [!_LIBC]: Remove.
70466         (__gen_tempname): Use small_open and large_open instead of __open
70467         and __open64.  This fixes a portability bug on HP-UX 11.11i
70468         reported by Simon Wing-Tang in
70469         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70470
70471 2006-05-24  Bruno Haible  <bruno@clisp.org>
70472
70473         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70474         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70475         Reported by Thorsten Maerz <torte@netztorte.de> via
70476         Aaron Stone <aaron@serendipity.cx>.
70477
70478 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70481         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70482         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70483         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70484         not really conditional on the cache.
70485         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70486
70487 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70488
70489         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70490         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70491         (my_usleep): Don't mishandle maximum value.
70492
70493 2006-05-19  Jim Meyering  <jim@meyering.net>
70494
70495         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70496
70497 2006-05-17  Bruno Haible  <bruno@clisp.org>
70498
70499         Cygwin portability.
70500         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70501
70502 2006-05-17  Bruno Haible  <bruno@clisp.org>
70503
70504         * lib/stdint_.h: Fix recognition of Cygwin.
70505
70506 2006-05-15  Bruno Haible  <bruno@clisp.org>
70507
70508         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70509         on libtool patch by Ralf Wildenhues.
70510
70511 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70514         test for C99 conformance; (bool) 0.5 is an integer constant
70515         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70516         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70517
70518 2006-05-11  Simon Josefsson  <jas@extundo.com>
70519
70520         * m4/xvasprintf.m4: Fix obvious typo.
70521
70522 2006-05-11  Jim Meyering  <jim@meyering.net>
70523
70524         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70525         James Lemley.
70526
70527 2006-05-10  Simon Josefsson  <jas@extundo.com>
70528
70529         * lib/md4.c: Typo fix, update copyright years.
70530         (K1, K2): Don't use L because it turn computations into 64-bit on
70531         64-bit platforms.
70532
70533 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70536         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70537         unwanted sign propagation, e.g., on hosts with 64-bit int.
70538         There still are some problems with reeelly weird theoretical hosts
70539         (e.g., 33-bit int) but it's not worth worrying about now.
70540         * lib/sha1.c (rol): Likewise.
70541         (K1, K2, K3, K4): Remove unnecessary L suffix.
70542
70543 2006-05-10  Bruno Haible  <bruno@clisp.org>
70544
70545         * lib/des.c: Cast to avoid warnings.
70546
70547 2006-05-09  Bruno Haible  <bruno@clisp.org>
70548
70549         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70550         (Depends-on): Depend also on xsize, stdarg.
70551         (configure.ac): Add gl_XVASPRINTF.
70552
70553 2006-05-09  Bruno Haible  <bruno@clisp.org>
70554
70555         * m4/xvasprintf.m4: New file.
70556
70557 2006-05-09  Bruno Haible  <bruno@clisp.org>
70558
70559         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70560         (EOVERFLOW): Define fallback value.
70561         (xstrcat): New function.
70562         (xvasprintf): Recognize the special case of a string concatenation.
70563
70564 2006-05-08  Eric Blake  <ebb9@byu.net>
70565
70566         * gnulib-tool (func_version): Base copyright year on CVS date.
70567         (func_emit_copyright_notice): New function.
70568         (func_emit_lib_Makefile_am): Use it.
70569         (func_emit_tests_Makefile_am): Likewise.
70570         (func_import): Likewise.
70571
70572 2006-05-08  Bruno Haible  <bruno@clisp.org>
70573
70574         * modules/stdarg: New file.
70575         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70576
70577 2006-05-08  Bruno Haible  <bruno@clisp.org>
70578
70579         * m4/stdarg.m4: New file, from GNU gettext.
70580
70581 2006-05-08  Bruno Haible  <bruno@clisp.org>
70582
70583         * config/srclist.txt (build-aux/config.rpath): different from latest
70584         release.
70585
70586 2006-05-08  Bruno Haible  <bruno@clisp.org>
70587
70588         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70589
70590 2006-05-05  Jim Meyering  <jim@meyering.net>
70591
70592         * m4/warning.m4: New file, derived from bison's file by the same name.
70593
70594 2006-05-03  Bruno Haible  <bruno@clisp.org>
70595
70596         * lib/stdint_.h: Shorter URL.
70597         * lib/inttypes.h: Likewise.
70598
70599 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70602
70603 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * lib/verify.h: Document the internals better.  Most of this change
70606         was written by Bruno Haible.
70607
70608 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * doc/verify.texi: New file, partly based on a proposal by
70611         Bruno Haible.
70612
70613 2006-05-02  Bruno Haible  <bruno@clisp.org>
70614
70615         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70616         test from here...
70617         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70618
70619 2006-04-29  Bruno Haible  <bruno@clisp.org>
70620
70621         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70622         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70623
70624 2006-04-29  Bruno Haible  <bruno@clisp.org>
70625
70626         * gnulib-tool: Make --update option actually work.
70627
70628 2006-04-29  Bruno Haible  <bruno@clisp.org>
70629
70630         * doc/gcd.texi: New file.
70631         * doc/gnulib.texi: Include it.
70632
70633 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70634
70635         * lib/getdate.y (get_date): When adding relative date, start with the
70636         initial time, not with the result of the first mktime call.
70637
70638 2006-04-25  Bruno Haible  <bruno@clisp.org>
70639
70640         * gnulib-tool (func_import): Output the include directives in three
70641         blocks, sorted separately.
70642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70643
70644 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70647         to define main with arguments, for C++.  Reported by Eric Blake.
70648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70649         Prefer 'int main ()' to 'int main (void)', for C++.
70650         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70651         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70652         for 'main', for C99 and C++.
70653
70654 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70657         Don't assume that exit status -1 is valid.
70658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70659         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70660         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70661         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70662         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70663         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70664         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70665         functions can be used without declaring them, or that you can
70666         exit with status -1.
70667         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70668
70669 2006-04-24  Karl Berry  <karl@gnu.org>
70670
70671         * config/srclist.txt (longdouble.m4): sync lost.
70672
70673 2006-04-24  Eric Blake  <ebb9@byu.net>
70674
70675         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70676
70677 2006-04-24  Bruno Haible  <bruno@clisp.org>
70678
70679         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70680         poll() implementation in AIX.
70681         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70682
70683 2006-04-24  Bruno Haible  <bruno@clisp.org>
70684
70685         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70686         assigned exactly once.
70687
70688 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70689             Bruno Haible  <bruno@clisp.org>
70690
70691         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70692         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70693         for AM_CPPFLAGS.
70694
70695 2006-04-23  Bruno Haible  <bruno@clisp.org>
70696
70697         * modules/copy-file: Depend on unistd.
70698         * modules/execute: Likewise.
70699         * modules/fatal-signal: Likewise.
70700         * modules/findprog: Likewise.
70701         * modules/mkdtemp : Likewise.
70702         * modules/pipe: Likewise.
70703         * modules/wait-process: Likewise.
70704
70705 2006-04-23  Bruno Haible  <bruno@clisp.org>
70706
70707         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70708         condition was already detected.
70709         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70710
70711 2006-04-23  Bruno Haible  <bruno@clisp.org>
70712
70713         * lib/copy-file.c: Include <unistd.h> unconditionally.
70714         * lib/execute.c: Likewise.
70715         * lib/fatal-signal.c: Likewise.
70716         * lib/findprog.c: Likewise.
70717         * lib/mkdtemp.c: Likewise.
70718         * lib/pipe.h: Likewise.
70719         * lib/pipe.c: Likewise.
70720         * lib/wait-process.h: Likewise.
70721
70722 2006-04-23  Bruno Haible  <bruno@clisp.org>
70723
70724         * gnulib-tool (func_usage): Fix --import description. Document
70725         --update.
70726         (func_import): Create temporary file in a temporary directory, if
70727         --dry-run is specified. Silence errors from 'grep' when there are no
70728         m4 files in $m4dir.
70729         (func_create_testdir): Silence errors from 'grep' when there are no
70730         m4 files in $m4dir.
70731         Reported by Karl Berry <karl@freefriends.org>.
70732
70733 2006-04-20  Bruno Haible  <bruno@clisp.org>
70734
70735         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70736         one argument, so that the code will be portable to Autoconf 2.60.
70737         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70738         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70739         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70740
70741 2006-04-19  Derek Price  <derek@ximbiot.com>
70742             Eric Blake  <ebb9@byu.net>
70743
70744         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70745         rather than "/full/path.h".  Update comment to match.  Shorten &
70746         generalize m4_translit call via AS_TR_CPP.
70747
70748 2006-04-19  Derek Price  <derek@ximbiot.com>
70749             Eric Blake  <ebb9@byu.net>
70750
70751         * lib/inttypes.h: Correct grammar in comment.
70752
70753 2006-04-18  Derek Price  <derek@ximbiot.com>
70754             Paul Eggert  <eggert@cs.ucla.edu>
70755
70756         * modules/inttypes: New file.
70757         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70758
70759 2006-04-18  Derek Price  <derek@ximbiot.com>
70760             Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70763         New files.
70764
70765 2006-04-18  Derek Price  <derek@ximbiot.com>
70766             Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         * lib/inttypes.h: New file.
70769         * lib/strtoimax.c: Assume <inttypes.h>.
70770
70771 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70774         isn't mounted.  Problem reported by Kir Kolyshkin.
70775
70776 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70779         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70780         Derek R. Price.
70781         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70782         implementation.
70783
70784 2006-04-12  Eric Blake  <ebb9@byu.net>
70785
70786         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70787         is now done automatically by the corresponding Autoconf macro.
70788
70789 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70790
70791         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70792         time_r.h.
70793
70794 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70795
70796         Merge regex changes from libc, removing some of our
70797         POSIX-conformance changes that were rejected and redoing them in a
70798         less-intrusive way.
70799
70800         * lib/regcomp.c (re_compile_internal, init_dfa):
70801         Length arg is now size_t, not Idx.  All uses changed.
70802         (peek_token): Forward decl now says internal_function.
70803         (__re_error_msgid, __re_error_msgid_idx):
70804         Now static rather than extern with attribute_hidden.
70805         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70806         For some reason libc prefers K&R style defns for external functions.
70807         (regerror) [!defined _LIBC]: Likewise.
70808         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70809         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70810         (build_range_exp, build_collating_symbol):
70811         Use K&R-style defn.
70812         (re_compile_fastmap): Use '\0' to memset, not 0.
70813         (utf8_sb_map): Make the calculations more obvious.
70814         (init_dfa, parse_bracket_exp, build_charclass_op):
70815         Call calloc and cast result, as glibc does.
70816         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70817         (build_range_exp, build_collating_symbol):
70818         Now internal functions.
70819
70820         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70821
70822         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70823         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70824         Don't depend on VMS; depend on __VMS instead, for POSIX
70825         namespace cleanness.
70826         (regoff_t): Define to ssize_t, not long int.
70827
70828         Remove the REG_ macros named below.  Instead, make the old names
70829         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70830         __USE_GNU_REGEX.
70831         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70832         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70833         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70834         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70835         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70836         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70837         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70838         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70839         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70840         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70841         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70842         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70843         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70844         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70845         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70846         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70847         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70848         (REG_NREGS):
70849         Remove.  All uses replaced by the old RE_* names.
70850         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70851         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70852         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70853         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70854         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70855         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70856         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70857         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70858         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70859         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70860         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70861         Don't bother having these macros be independent of each others'
70862         values, since they no longer exist in the POSIX name space.
70863
70864         Rename the following member names back to their old names,
70865         unless !__USE_GNU_REGEX.  All uses changed back.
70866         (buffer): Renamed from re_buffer.
70867         (allocated): Renamed from re_allocated.
70868         (used): Renamed from re_used.
70869         (syntax): Renamed from re_syntax.
70870         (fastmap): Renamed from re_fastmap.
70871         (translate): Renamed from re_translate.
70872         (can_be_null): Renamed from re_can_be_null.
70873         (regs_allocated): Renamed from re_regs_allocated.
70874         (fastmap_accurate): Renamed from re_fastmap_accurate.
70875         (no_sub): Renamed from re_no_sub.
70876         (not_bol): Renamed from re_not_bol.
70877         (not_eol): Renamed from re_not_eol.
70878         (newline_anchor): Renamed from re_newline_anchor.
70879         (num_regs): Renamed from rm_num_regs.
70880         (start): Renamed from rm_start.
70881         (end): Renamed from rm_end.
70882
70883         (free_state): Move up a bit.
70884
70885         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70886         #define to be empty.
70887         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70888         when that is what is intended.
70889         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70890         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70891         (MAX): New macro.
70892         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70893         All uses changed back to re_malloc, etc.  It's now the caller's
70894         responsibility to check for overflow; all callers changed.
70895         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70896         (re_x2nrealloc): Remove.
70897         (free_state): Remove decl.
70898
70899         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70900         (re_set_registers, re_exec):
70901         Use K&R-style defn.
70902
70903         2006-01-31  Roland McGrath  <roland@redhat.com>
70904
70905         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70906         Reported by Mike Frysinger <vapier@gentoo.org>.
70907
70908         2006-01-15  Andreas Jaeger  <aj@suse.de>
70909
70910         [BZ #1950]
70911         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70912         build_wcs_upper_buffer change.
70913         (build_wcs_upper_buffer): Change return type.
70914
70915         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70916
70917         * lib/regex_internal.h: Include <stdint.h> if available.
70918
70919         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70920
70921         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70922
70923         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70924
70925         * lib/regcomp.c: Adjust for changed secondary hash function.
70926
70927         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70928
70929         * lib/regex.h: Pretty printing.
70930         Clean up namespace a bit.
70931
70932         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70933
70934         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70935         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70936
70937         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70938                     Ulrich Drepper  <drepper@redhat.com>
70939
70940         [BZ #1302]
70941         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70942         changed.
70943         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70944
70945         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70946
70947         [BZ #281]
70948         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70949         * lib/regcomp.c: Remove unnecessary uses of
70950         unsigned RE_TRANSLATE_TYPE.
70951         * lib/regex_internal.h: Likewise.
70952         * lib/regex_internal.c: Likewise.
70953         * lib/regexec.c: Likewise.
70954         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70955
70956         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70957
70958         * lib/regexec.c (find_recover_state): Remove unnecessary
70959         initialization.
70960         (transit_state_bkref): Make DFA a const pointer.
70961         (get_subexp): Likewise.
70962         (check_arrival): Likewise.
70963         (update_cur_sifted_state): Likewise.
70964         (re_search_internal): Likewise.
70965         (prune_impossible_nodes): Likewise.
70966         (acquire_init_state_context): Likewise.
70967         (proceed_next_node): Likewise.
70968         (set_regs): Likewise.
70969         (free_fail_stack_return): Likewise.
70970         (check_arrival_expand_ecl): Mark DFA parameter as const.
70971         (check_arrival_expand_ecl_sub): Likewise.
70972         (check_subexp_limits): Likewise.
70973         (sub_epsilon_src_nodes):  Likewise.
70974         (add_epsilon_src_nodes):  Likewise.
70975         (merge_state_array): Likewise.
70976         (update_regs): Likewise.
70977         (build_trtable): Likewise.
70978         (sift_states_backward): Mark MCTX parameter as const.
70979         (build_sifted_states): Likewise.
70980         (update_cur_sifted_state): Likewise.
70981         (sift_states_mkref): Likewise.
70982         (check_arrival_expand_ecl): Mark eclosure as const.
70983         (check_dst_limits_calc_pos_1): Likewise.
70984         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70985         pointer.
70986
70987         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70988
70989         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70990         (transit_state_sb): Likewise.
70991         (transit_state_mb): Likewise.
70992         (sift_states_iter_mb): Likewise.
70993         (check_arrival_add_next_nodes): Likewise.
70994         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70995         [_LIBC] (re_search_2_stub): Use mempcpy.
70996
70997         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70998         mbrtowc for very simple UTF-8 case.
70999
71000         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71001         a pointer-to-const.
71002         (re_acquire_state_context): Likewise.
71003         * lib/regex_internal.h: Adjust prototypes.
71004
71005         * lib/regex.c: Prevent using C++ compilers.
71006
71007         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71008         (re_acquire_state_context): Likewise.
71009
71010 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         * modules/regex (Depends-on): Add ssize_t.
71013
71014 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71017         translation table.
71018
71019 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71022
71023 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71024             Bruno Haible  <bruno@clisp.org>
71025
71026         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71027         <sys/types.h> and <inttypes.h>.
71028
71029 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71030
71031         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71032         `__error_t_defined', so argp.h will not typedef the former.
71033
71034 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71035
71036         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71037         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71038         glibc names.  Even if glibc is changed to conform to POSIX, the
71039         traditional names will be available anyway, since regex depends on
71040         the extensions module.  Also, fix a longstanding typo in the
71041         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71042         reported by Emanuele Giaquinta.  Also, change sense of cached
71043         variable, so that the message makes sense.
71044
71045 2006-03-24  Simon Josefsson  <jas@extundo.com>
71046
71047         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71048         including some doc fixes.
71049         (base64_encode_alloc): Fix +1 bug on allocation failures.
71050
71051 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71052
71053         * lib/base64.c (base64_encode): Do not read past end of array with
71054         unsanitized input on systems with CHAR_BIT > 8.
71055
71056 2006-03-24  Eric Blake  <ebb9@byu.net>
71057
71058         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71059
71060 2006-03-22  Karl Berry  <karl@gnu.org>
71061
71062         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71063         * config/srclistvars.sh (COREUTILS): new var.
71064
71065 2006-03-17  Jim Meyering  <jim@meyering.net>
71066
71067         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71068         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71069
71070 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71073         no longer needs it.  Instead, check that regoff_t is as least
71074         as wide as ptrdiff_t.
71075
71076         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71077         so that our regex.h stays compatible with the installed regex.
71078         This is helpful for installers who configure --without-included-regex.
71079         Problem reported by Emanuele Giaquinta.
71080
71081 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71084         Typedef to long int, not to off_, as POSIX will likely change
71085         in that direction.
71086
71087 2006-03-15  Eric Blake  <ebb9@byu.net>
71088
71089         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71090
71091 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71092
71093         * lib/argp-help.c (validate_uparams): Fix typo
71094         * lib/argp-parse.c (argp_default_options): Consistently begin help
71095         messages with a lowercase letter.
71096
71097 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71100         overrun buffers and shouldn't be used (much as gets shouldn't be
71101         used).
71102         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71103
71104 2006-03-08  Simon Josefsson  <jas@extundo.com>
71105
71106         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71107         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71108
71109 2006-03-08  Simon Josefsson  <jas@extundo.com>
71110
71111         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71112         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71113
71114 2006-03-08  Simon Josefsson  <jas@extundo.com>
71115
71116         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71117         signal that configure disabled the device.
71118
71119 2006-03-08  Simon Josefsson  <jas@extundo.com>
71120
71121         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71122         languages.
71123
71124 2006-03-07  Simon Josefsson  <jas@extundo.com>
71125
71126         * modules/getopt (Depends-on): Add unistd.
71127
71128         * modules/unistd: New file.
71129
71130 2006-03-07  Simon Josefsson  <jas@extundo.com>
71131
71132         * modules/gc-random: New file.
71133
71134 2006-03-07  Simon Josefsson  <jas@extundo.com>
71135
71136         * m4/unistd_h.m4: New file.
71137
71138 2006-03-07  Simon Josefsson  <jas@extundo.com>
71139
71140         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71141         test to be side-effect free by storing the result in the cache
71142         variable gl_cv_lib_readline, and moving the assignment of
71143         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71144         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71145
71146 2006-03-07  Simon Josefsson  <jas@extundo.com>
71147
71148         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71149         error on missing devices (the functions will return an error).
71150
71151         * m4/gc.m4: Move random stuff to gc-random.m4
71152
71153 2006-03-07  Simon Josefsson  <jas@extundo.com>
71154
71155         * lib/unistd_.h: New file.
71156
71157 2006-03-07  Simon Josefsson  <jas@extundo.com>
71158
71159         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71160
71161 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71164         Problem reported by Juan Manuel Guerrero.
71165
71166 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71169         the unistd module.
71170         * lib/getlogin_r.c: Likewise.
71171         * lib/getlogin_r.h: Likewise.
71172         * lib/glob.c: Likewise.
71173         * lib/pagealign_alloc.c: Likewise.
71174         * lib/unistd_.h: Remove; no longer needed.
71175
71176 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71179         Add unistd.
71180         * modules/c-stack (Depends-on): Add unistd.
71181         * modules/getlogin_r: Likewise.
71182         * modules/glob: Likewise.
71183         * modules/pagealign_alloc: Likewise.
71184         * modules/unistd (Files): Remove lib/unistd_.h.
71185         (EXTRA_DIST): Remove.
71186         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71187         need unistd_.h.
71188         (MOSTLYCLEANFILES): Remove unistd.h-t.
71189
71190 2006-03-03  Simon Josefsson  <jas@extundo.com>
71191
71192         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71193
71194 2006-03-03  Simon Josefsson  <jas@extundo.com>
71195
71196         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71197         libidn and bison.
71198
71199 2006-03-03  Simon Josefsson  <jas@extundo.com>
71200
71201         * build-aux/maint.mk: Add indent target.
71202
71203 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71204
71205         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71206         our replacement poll.h in any case, to avoid a differing
71207         declaration from a system header.  Seen on AIX.
71208
71209 2006-03-01  Simon Josefsson  <jas@extundo.com>
71210
71211         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71212         <kasal@ucw.cz>.
71213
71214 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * modules/gettime (Depends-on): Add extensions module.
71217         * modules/nanosleep (Depends-on): Likewise.
71218         * modules/settime (Depends-on): Likewise.
71219
71220 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71223         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71224         pedantically.
71225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71226         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71227
71228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71229         not "==".  Reported by Ralf Wildenhues.
71230
71231 2006-03-01  Karl Berry  <karl@gnu.org>
71232
71233         * doc/Copyright/request-*: new files, synced from gnuorg.
71234
71235 2006-03-01  Karl Berry  <karl@gnu.org>
71236
71237         * config/srclist.txt (Copyright/*): new entries.
71238
71239 2006-02-28  Simon Josefsson  <jas@extundo.com>
71240
71241         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71242
71243 2006-02-27  Simon Josefsson  <jas@extundo.com>
71244
71245         * lib/base64.h: Indent #define's.  From Jim Meyering
71246         <jim@meyering.net>.
71247
71248 2006-02-27  Jim Meyering  <jim@meyering.net>
71249
71250         Revert the change of 2006-02-24, so these files can continue
71251         to be sync'd from gettext.
71252         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71253         of `config.h'.
71254
71255 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * modules/intprops: New file.
71258         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71259         Add intprops.
71260         * modules/getloadavg (Files): Remove lib/intprops.h.
71261         (Depends-on): Add intprops.
71262         * modules/human: Likewise.
71263         * modules/inttostr: Likewise.
71264         * modules/openat: Likewise.
71265         * modules/sig2str: Likewise.
71266         * modules/userspec: Likewise.
71267         * modules/utimecmp: Likewise.
71268         * modules/xnanosleep: Likewise.
71269         * modules/xstrtol: Likewise.
71270
71271 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71272
71273         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71274         * modules/lock-tests (TESTS): Use $(EXEEXT).
71275         * modules/tls-tests: Likewise.
71276         * modules/argp-tests: Likewise.
71277         (check_PROGRAMS): New var, replacing...
71278         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71279
71280 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71281
71282         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71283         `config.h'.
71284
71285 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71286
71287         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71288
71289 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71290
71291         Sync from coreutils.
71292         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71293         gl_CHDIR_SAFER.
71294
71295 2006-02-22  Jim Meyering  <jim@meyering.net>
71296
71297         Sync from coreutils.
71298         * m4/chdir-safer.m4: New file.
71299
71300 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71303         AT_FDCWD exceeds INT_MAX.
71304         * lib/openat.h (AT_FDCWD): Likewise.
71305
71306 2006-02-17  Eric Blake  <address@hidden>
71307
71308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71309
71310 2006-02-16  Simon Josefsson  <jas@extundo.com>
71311
71312         * modules/getaddrinfo (Depends-on): Add sys_socket.
71313
71314 2006-02-15  Simon Josefsson  <jas@extundo.com>
71315
71316         * build-aux/maint.mk: Add dsyntax-check rule.
71317
71318 2006-02-15  Eric Blake  <ebb9@byu.net>
71319
71320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71321         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71322         'present but cannot compile' warnings on cygwin.
71323         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71324         use ws2tcpip.h if sys/socket.h works.
71325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71326         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71327
71328 2006-02-14  Simon Josefsson  <jas@extundo.com>
71329
71330         * modules/maintainer-makefile (Files): Rename.
71331
71332         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71333         and (the local) Makefile.cfg to maint-cfg.mk.
71334
71335         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71336         to the latter.
71337
71338         * modules/maintainer-makefile: New module.
71339
71340         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71341         severaly stripped to make it possible to build it up from scratch
71342         with reliable tests.
71343
71344         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71345         fixes to permit overriding the default actions when configure and
71346         makefile are not available.
71347
71348 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         Sync from coreutils.
71351         * modules/lstat (Depends-on): Don't depend on xalloc.
71352         (License): Change from GPL to LGPL, since this is now simply a
71353         replacement for a libc function.
71354
71355 2006-02-14  Jim Meyering  <jim@meyering.net>
71356
71357         Sync from coreutils.
71358
71359         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71360         failure on deficient systems, and simplify gnulib lgpl dependencies.
71361         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71362         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71363
71364         * lib/xalloc-die.c: Remove unused definition of N_.
71365
71366 2006-02-14  Jim Meyering  <jim@meyering.net>
71367
71368         Sync from coreutils.
71369         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71370         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71371         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71372         double-quote uses of that variable, to accommodate the rare case in
71373         which getmntent is available in none of the libraries checked.  This
71374         happens at least on FreeBSD 5.0.
71375
71376 2006-02-13  Simon Josefsson  <jas@extundo.com>
71377
71378         * gnulib-tool (Usage): Fix --import, from
71379         karl@freefriends.org (Karl Berry).
71380
71381 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71382
71383         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71384
71385 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71386
71387         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71388         "autoupdate" on 2005-12-12.
71389
71390 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71391
71392         * modules/closeout (Depends-on): Remove atexit.
71393
71394 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71397         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71398
71399 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71400
71401         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71402         __EXTENSIONS__ if this causes compilation to fail.  Problem
71403         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71404         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71405
71406 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71409         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71411         All uses changed.
71412
71413 2006-01-26  Simon Josefsson  <jas@extundo.com>
71414
71415         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71416         prototype is visible on mingw32.
71417
71418         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71419         for mingw32.
71420
71421         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71422         mingw32).
71423
71424 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71427         attempt to open for write; this always fails, at least on POSIX
71428         hosts.  This reinstates the 2006-01-09 change, which was
71429         inadvertently removed.
71430
71431 2006-01-26  Bruno Haible  <bruno@clisp.org>
71432
71433         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71434         Reported by Paul Eggert.
71435
71436 2006-01-26  Bruno Haible  <bruno@clisp.org>
71437             Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * lib/stdbool_.h (_Bool)
71440         [(! (defined __cplusplus || defined __BEOS__)
71441           && !defined __GNUC__
71442           && !(defined __HP_cc || defined __xlc__
71443                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71444                || defined __sgi))]:
71445         #define to signed char in these cases too; this simplifies
71446         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71447         etc., separately) and makes it more conservative.
71448
71449 2006-01-25  Simon Josefsson  <jas@extundo.com>
71450
71451         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71452         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71453         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71454
71455 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71456
71457         * lib/argp-namefrob.h: Bugfix. Remove stray #
71458
71459 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71462         so that we test the test.
71463         Check for yet another HP-UX cc bug involving *bool |= bool.
71464
71465 2006-01-25  Karl Berry  <karl@gnu.org>
71466
71467         * config/srclist.txt (vasnprintf.c): sync lost.
71468
71469 2006-01-25  Jim Meyering  <jim@meyering.net>
71470
71471         Sync from the stable (b5) branch of coreutils:
71472
71473         * lib/fts.c (fts_children): Don't let close() clobber errno from
71474         failed fchdir().
71475
71476         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71477         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71478         a dangling symlink.  That can also happen at least for ELOOP.
71479         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71480         FYI, this bug predates the inclusion of fts.c in coreutils.
71481
71482         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71483         in their own block, so pre-c99 compilers don't object.
71484
71485         Avoid the double-free (first in fts_read, second in fts_close) that
71486         would occur when an `active' directory is made inaccessible (e.g.,
71487         via chmod a-x) during a traversal.
71488         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71489         before returning.  Reproduce this failure by
71490         mkdir -p a/b; cd a; chmod a-x . b
71491         Reported by Stavros Passas.
71492
71493 2006-01-25  Jim Meyering  <jim@meyering.net>
71494
71495         * lib/fileblocks.c: Remove more useless parentheses.
71496         * lib/readutmp.h: Likewise.
71497
71498 2006-01-25  Bruno Haible  <bruno@clisp.org>
71499
71500         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71501         warnings.
71502         Reported by Paul Eggert.
71503
71504 2006-01-25  Bruno Haible  <bruno@clisp.org>
71505
71506         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71507         rid of a trap command. For Solaris sh.
71508         Reported by Mark D. Baushke <mdb@gnu.org>.
71509
71510 2006-01-24  Simon Josefsson  <jas@extundo.com>
71511
71512         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71513         Bruno.
71514
71515 2006-01-24  Karl Berry  <karl@gnu.org>
71516
71517         * config/srclist.txt (argp-namefrob.h): sync lost.
71518
71519 2006-01-24  Jim Meyering  <jim@meyering.net>
71520
71521         * modules/openat (Files): Add lib/intprops.h.
71522         From Mark D. Baushke.
71523
71524 2006-01-24  Jim Meyering  <jim@meyering.net>
71525
71526         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71527         Reported by Mark D. Baushke.
71528
71529 2006-01-24  Jim Meyering  <jim@meyering.net>
71530
71531         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71532
71533 2006-01-24  Bruno Haible  <bruno@clisp.org>
71534
71535         * modules/strnlen (Maintainer): Change from glibc to all.
71536
71537 2006-01-24  Bruno Haible  <bruno@clisp.org>
71538
71539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71540         Patch by Paul Eggert.
71541
71542 2006-01-24  Bruno Haible  <bruno@clisp.org>
71543
71544         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71545         already has it.
71546         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71547         2005-11-26.
71548
71549         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71550         'signed char' to avoid problems with the built-in _Bool type.
71551         Reported by Paul Eggert on 2005-11-26.
71552
71553 2006-01-24  Bruno Haible  <bruno@clisp.org>
71554
71555         * gnulib-tool (func_import): Avoid constructing complicated sed
71556         expressions inside backquote.
71557         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71558
71559 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71560
71561         These changes imported from libc.
71562         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71563         test and two separate function calls.
71564         * lib/strndup.c (__strndup): Add libc_hidden_def.
71565
71566 2006-01-23  Simon Josefsson  <jas@extundo.com>
71567
71568         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71569         Remove the test_*_SOURCES variable: automake infers it by default.
71570         * modules/tls-tests: Likewise.
71571
71572 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         Work around porting bugs reported by Dieter in
71575         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71576         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71577         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71578         Include "getopt.h" first, to check interface.
71579         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71580         !HAVE_DECL_GETENV.
71581         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71582         (__strndup): Revert to K&R-style function dfns, the glibc style.
71583         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71584         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71585         Include strnlen.h first, to get prototype properly.
71586         (strnlen): Renamed from __strnlen.
71587         Remove weak alias.
71588
71589 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71592
71593 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * config/srclist.txt: Adjust to reflect glibc reorganization.
71596         This affects only comments.
71597
71598 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71599
71600          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71601          Reported by Bruce Korb <bkorb@gnu.org>.
71602
71603 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71606         to pacify gcc -Wswitch-default.
71607
71608 2006-01-22  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71611         temporary buffer for sprintf, take into account the precision also
71612         for 'd', 'i', 'u', 'o', 'x', 'X'.
71613
71614 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71615
71616         * modules/argp-tests: New module
71617         * tests/test-argp.c: New file
71618         * tests/test-argp-2.sh: New file
71619
71620 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71621
71622         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71623         (__argp_base_name): Removed
71624         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71625         typo.
71626         (__argp_base_name): Provide macro definition or extern declaration
71627         depending on the configuration
71628
71629 2006-01-20  Simon Josefsson  <jas@extundo.com>
71630
71631         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71632
71633 2006-01-20  Simon Josefsson  <jas@extundo.com>
71634
71635         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71636
71637 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71640         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71641         Suggested by Bruno Haible.
71642
71643 2006-01-20  Karl Berry  <karl@gnu.org>
71644
71645         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71646         until changes propagate, I guess.
71647
71648 2006-01-19  Simon Josefsson  <jas@extundo.com>
71649
71650         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71651
71652 2006-01-19  Simon Josefsson  <jas@extundo.com>
71653
71654         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71655
71656 2006-01-19  Simon Josefsson  <jas@extundo.com>
71657
71658         * gnulib-tool: Set check_PROGRAMS.
71659
71660         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71661         modules/des-tests, modules/gc-arcfour-tests,
71662         modules/gc-arctwo-tests, modules/gc-des-tests,
71663         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71664         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71665         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71666         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71667         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71668         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71669         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71670         test_*_SOURCES.
71671
71672 2006-01-18  Simon Josefsson  <jas@extundo.com>
71673
71674         * modules/socklen (Depends-on): Depend on sys_socket.
71675
71676 2006-01-18  Simon Josefsson  <jas@extundo.com>
71677
71678         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71679         modules/des-tests, modules/gc-arcfour-tests,
71680         modules/gc-arctwo-tests, modules/gc-des-tests,
71681         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71682         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71683         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71684         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71685         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71686         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71687         $(EXEEXT) to automake TESTS variable, for mingw32.
71688
71689 2006-01-17  Simon Josefsson  <jas@extundo.com>
71690
71691         * modules/socklen (Include): Need sys/socket.h.
71692
71693 2006-01-17  Bruno Haible  <bruno@clisp.org>
71694
71695         * modules/ssize_t (Include): Add <sys/types.h>.
71696
71697 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71700         it's not portable and it doesn't work with cross-compiles.
71701         Problem reported by Bruno Haible.  Fix missing-$ typo in
71702         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71703         -zignore from being used with Sun's C compiler.
71704
71705 2006-01-12  Simon Josefsson  <jas@extundo.com>
71706
71707         * lib/base64.c: Fix warning, reported by Bruno Haible
71708         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71709
71710 2006-01-12  Bruno Haible  <bruno@clisp.org>
71711
71712         * modules/ldd: New file.
71713         * build-aux/ldd.sh.in: New file.
71714         * MODULES.html.sh (Support for building libraries and executables): Add
71715         ldd.
71716
71717 2006-01-12  Bruno Haible  <bruno@clisp.org>
71718
71719         * m4/ldd.m4: New file.
71720
71721 2006-01-12  Bruno Haible  <bruno@clisp.org>
71722
71723         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71724         endless loop while replacing $auxdir with build-aux.
71725
71726 2006-01-11  Simon Josefsson  <jas@extundo.com>
71727
71728         * lib/stdint_.h (SIZE_MAX): Add missing (.
71729
71730 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         Sync from coreutils.
71733         * lib/md5.c: Fix commentary typos.
71734         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71735         * lib/md5.h (__attribute__): Remove; unused.
71736         * lib/sha1.c: Fix commentary to match md5 better.
71737         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71738         so that we don't need to worry about alignment.  All uses changed.
71739         This merges the 2005-10-28 md5 change into sha1.
71740
71741 2006-01-11  Jim Meyering  <jim@meyering.net>
71742
71743         Sync from coreutils.
71744         * lib/md5.c (OP): Fix spacing.
71745
71746 2006-01-11  Bruno Haible  <bruno@clisp.org>
71747
71748         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71749         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71750         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71751
71752 2006-01-11  Bruno Haible  <bruno@clisp.org>
71753
71754         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71755         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71756         the "early" section as well.
71757
71758 2006-01-11  Bruno Haible  <bruno@clisp.org>
71759
71760         Avoid "ar: no archive members specified" error on MacOS X.
71761         * gnulib-tool (func_modules_add_dummy): New function.
71762         (func_import, func_create_testdir): Invoke it.
71763
71764 2006-01-11  Bruno Haible  <bruno@clisp.org>
71765
71766         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71767         with $auxdir in AC_CONFIG_FILES statements.
71768
71769 2006-01-11  Bruno Haible  <bruno@clisp.org>
71770
71771         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71772         Initialize also noinst_HEADERS to empty.
71773
71774 2006-01-11  Bruno Haible  <bruno@clisp.org>
71775
71776         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71777         variables.
71778         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71779         autoreconf.
71780
71781 2006-01-11  Bruno Haible  <bruno@clisp.org>
71782
71783         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71784         overridable by the user.
71785         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71786
71787 2006-01-10  Simon Josefsson  <jas@extundo.com>
71788
71789         * modules/sys_socket: New file.
71790
71791 2006-01-10  Simon Josefsson  <jas@extundo.com>
71792
71793         * m4/sys_socket_h.m4: New file.
71794
71795 2006-01-10  Simon Josefsson  <jas@extundo.com>
71796
71797         * lib/socket_.h: New file.
71798
71799 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * modules/readutmp (Maintainer): Add myself.
71802
71803 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71806         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71807         People who are still concerned with buggy memcmp implementations
71808         can invoke gl_FUNC_MEMCMP themselves.
71809
71810 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * lib/regex_internal.h (BITSET_WORD_BITS):
71813         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71814         preprocessor mishandles large unsigned values as if they were signed.
71815         Problem reported by Claudio Fontana in
71816         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71817
71818 2006-01-10  Jim Meyering  <jim@meyering.net>
71819
71820         Avoid the double-free (first in fts_read, second in fts_close) that
71821         would occur when an `active' directory is made inaccessible (e.g.,
71822         via chmod a-x) during a traversal.
71823         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71824         before returning.  Reproduce this failure by
71825         mkdir -p a/b; cd a; chmod a-x . b
71826         Reported by Stavros Passas.
71827
71828         Sync from coreutils.
71829         * lib/sha1.c: Tweak grammar in a comment.
71830
71831 2006-01-10  Jim Meyering  <jim@meyering.net>
71832
71833         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71834         Patch by Joerg Sonnenberger.
71835
71836 2006-01-10  Bruno Haible  <bruno@clisp.org>
71837
71838         * modules/readutmp: Depend on module free.
71839         * modules/strtok_r: Depend on module restrict.
71840
71841 2006-01-10  Bruno Haible  <bruno@clisp.org>
71842
71843         * modules/gettext (configure.ac): Add an invocation of
71844         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71845
71846 2006-01-10  Bruno Haible  <bruno@clisp.org>
71847
71848         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71849         Reported by Werner Lemberg <wl@gnu.org>.
71850
71851 2006-01-10  Bruno Haible  <bruno@clisp.org>
71852
71853         * lib/localcharset.c: Update from GNU gettext.
71854
71855 2006-01-10  Bruno Haible  <bruno@clisp.org>
71856
71857         * lib/argp.h (__const): Remove macro. Use const instead.
71858         * lib/argp-fmtstream.h (__const): Likewise.
71859         * lib/glob_.h (__const): Remove macro.
71860         * lib/glob-libc.h: Use const instead of __const.
71861
71862 2006-01-10  Bruno Haible  <bruno@clisp.org>
71863
71864         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71865         variable.
71866         Needed to avoid an automake error regarding the 'gettext' module.
71867
71868 2006-01-09  Simon Josefsson  <jas@extundo.com>
71869
71870         * modules/inet_ntop (Depends-on): Add restrict.
71871
71872 2006-01-09  Simon Josefsson  <jas@extundo.com>
71873
71874         * modules/gc-rijndael-tests (License): Put under LGPL.
71875
71876         * modules/gc-des-tests (License): Likewise.
71877
71878         * modules/gc-arcfour-tests (License): Likewise.
71879
71880         * modules/gc-arctwo-tests (License): Likewise.
71881
71882         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71883
71884         * modules/gc-hmac-sha1-tests (Files): Likewise.
71885
71886         * modules/gc-hmac-md5-tests (License): Likewise.
71887
71888         * modules/gc-sha1-tests (License): Likewise.
71889
71890         * modules/gc-md5-tests (License): Likewise.
71891
71892         * modules/gc-md4-tests (License): Likewise.
71893
71894         * modules/gc-md2-tests (License): Likewise.
71895
71896         * modules/gc-tests (License): Likewise.
71897
71898         * modules/des-tests (License): Likewise.
71899
71900         * modules/md4-tests (License): Likewise.
71901
71902         * modules/md2-tests (License): Likewise.
71903
71904 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71905
71906         Sync from coreutils:
71907
71908         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71909         * modules/lib-ignore: New file.
71910         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71911         chdir-safer.m4, lchmod.m4.
71912         * modules/openat: Add mkdirat.c, openat-priv.h.
71913
71914 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         Sync from coreutils.
71917         * m4/lib-ignore.m4: New file.
71918         * m4/lchmod.m4: New file.
71919
71920 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71921
71922         Sync from coreutils.
71923         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71924         for write access: POSIX says that must fail.
71925         * lib/fts.c (diropen): Likewise.
71926         * lib/save-cwd.c (save_cwd): Likewise.
71927         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71928         well, for minor improvements on hosts that lack O_DIRECTORY.
71929         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71930         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71931         Fall back on chown if open failed with EACCES.
71932
71933         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71934         Report an error at compile-time if only a 1-second nominal clock
71935         resolution is found.
71936
71937         * lib/lchmod.h: New file.
71938         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71939         (make_dir_parents): Use lchown rather than chown, and
71940         lchmod rather than chmod.
71941
71942         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71943         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71944         "proc" reported by n0dalus.
71945
71946         * lib/mountlist.c: Include <limits.h>.
71947         (dev_from_mount_options)
71948         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71949         New function.  It no longer assumes "dev=" has the System V meaning
71950         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71951         (read_file_system_list)
71952         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71953         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71954         dev= in that case.
71955
71956         * lib/posixtm.h (PDS_PRE_2000): New macro.
71957         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71958         allow_century.  All usages changed.  Reject dates outside the range
71959         1969-1999 if PDS_PRE_2000 is used.
71960
71961 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         Sync from coreutils.
71964         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71965         (Time of day items): Mention the possibility of leap seconds.
71966         Problem reported by Dr. David Alan Gilbert.
71967
71968 2006-01-09  Jim Meyering  <jim@meyering.net>
71969
71970         Sync from coreutils.
71971
71972         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71973
71974         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71975
71976         * lib/modechange.c (mode_compile): Reject an invalid mode string
71977         that starts with an octal digit.  From Andreas Gruenbacher.
71978
71979         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71980         and dup to open_safer and dup_safer, respectively.
71981         (openat_permissive): Fix typo in comment.
71982
71983         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71984         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71985         (_): Remove; no longer needed.
71986         (openat): Renamed from rpl_openat; no need for rpl_openat
71987         since openat.h renames openat for us.
71988         Replace most of the body with a call to openat_permissive,
71989         to avoid duplicate code.
71990         Port to (probably hypothetical) environments were mode_t is
71991         wider than int.
71992         (openat_permissive): Require mode arg, so that we can check
71993         types better.  Put it just after flags.  Change cwd failure
71994         indicator from pointer-to-bool to pointer-to-errno-value.
71995         All callers changed.
71996         Invoke openat_save_fail and/or openat_restore_fail if
71997         cwd_errno is null, so that openat can call us.
71998         (openat_permissive, fdopendir, fstatat, unlinkat):
71999         Simplify errno handling to avoid some duplicate code,
72000         as it's OK to set errno on success.
72001         * lib/openat.h: Revamp code so that function macros depend on
72002         __OPENAT_PREFIX only, not also on AT_FDCWD.
72003         (openat_ro): Remove.  Caller changed to use openat_permissive.
72004         (openat_permissive): Now a macro, if not a function.
72005         (openat_restore_fail, openat_save_fail): Now always functions,
72006         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72007
72008         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72009         and openat.c.
72010         * lib/mkdirat.c: Include openat-priv.h.
72011         Remove definitions of macros defined therein.
72012         * lib/openat.c: Likewise.
72013
72014         * lib/mkdirat.c (mkdirat): New file and function.
72015         * lib/openat.h (mkdirat): Declare.
72016
72017         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72018
72019         * lib/openat.h (openat_permissive): Declare.
72020         (openat_ro): Define.
72021
72022         * lib/openat.c (EXPECTED_ERRNO): New macro.
72023         (openat_permissive): New function -- used in remove.c rewrite.
72024         (all functions): Set errno just before returning, only if there
72025         was an actual failure.
72026         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72027
72028         Emulate openat-family functions using Linux's procfs, if possible.
72029         Idea and some code based on Ulrich Drepper's glibc changes.
72030
72031         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72032         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72033         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72034         before falling back on save_cwd and restore_cwd.
72035         (fdopendir, fstatat, unlinkat): Likewise.
72036
72037         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72038         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72039
72040         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72041         as second argument to va_arg.  Otherwise, some versions of gcc
72042         warn that `if this code is reached, the program will abort'.
72043
72044 2006-01-09  Jim Meyering  <jim@meyering.net>
72045
72046         Sync from coreutils.
72047         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72048         Require openat-priv.h.
72049
72050 2006-01-09  Bruno Haible  <bruno@clisp.org>
72051
72052         * modules/strnlen (Include): Use strnlen.h.
72053
72054 2006-01-09  Bruno Haible  <bruno@clisp.org>
72055
72056         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72057
72058 2006-01-09  Bruno Haible  <bruno@clisp.org>
72059
72060         * lib/sysexit_.h (EX_OK): New macro.
72061         Suggested by Martin Lambers <marlam@marlam.de>.
72062
72063 2006-01-09  Bruno Haible  <bruno@clisp.org>
72064
72065         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72066         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72067
72068 2006-01-09  Bruno Haible  <bruno@clisp.org>
72069
72070         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72071         numbers.
72072
72073 2006-01-09  Bruno Haible  <bruno@clisp.org>
72074
72075         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72076         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72077         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72078         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72079
72080 2006-01-09  Bruno Haible  <bruno@clisp.org>
72081
72082         * build-aux/javacomp.sh.in: New file, moved from lib/.
72083         * modules/javacomp-script (Files): Update.
72084         (configure.ac): Add AC_CONFIG_FILES invocation.
72085         (EXTRA_DIST): Remove variable.
72086
72087         * build-aux/javaexec.sh.in: New file, moved from lib/.
72088         * modules/javaexec (Files): Update.
72089         (configure.ac): Add AC_CONFIG_FILES invocation.
72090         (EXTRA_DIST): Remove javaexec.sh.in.
72091
72092         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72093         * modules/csharpcomp-script (Files): Update.
72094         (configure.ac): Add AC_CONFIG_FILES invocation.
72095         (EXTRA_DIST): Remove variable.
72096
72097         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72098         * modules/csharpexec (Files): Update.
72099         (configure.ac): Add AC_CONFIG_FILES invocation.
72100         (EXTRA_DIST): Remove csharpexec.sh.in.
72101
72102 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72103
72104         Sync from coreutils.
72105
72106         Add POSIX ACL support
72107         * lib/acl.h (copy_acl, set_acl): Add declarations.
72108         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72109         systems other than Linux.
72110         (chmod_or_fchmod): New function: use fchmod when possible,
72111         and chmod otherwise.
72112         (file_has_acl): Add a POSIX ACL implementation, with a
72113         Linux-specific subcase.
72114         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72115         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72116         acls are unsupported.
72117         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72118         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72119         are unsupported.
72120
72121 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72122
72123         Sync from coreutils.
72124         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72125
72126 2006-01-07  Bruno Haible  <bruno@clisp.org>
72127
72128         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72129         gl_EARLY.
72130
72131 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72132
72133         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72134         Problem reported for Mingw by Mark Junker.
72135
72136 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * README: Gnulib normally doesn't generate a tarball.
72139
72140 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72143         long int, not int, for nanosecond counts, so that people who are
72144         used to POSIX struct timespec won't be surprised.  Reported by Jim
72145         Meyering.
72146
72147 2005-12-28  Bruno Haible  <bruno@clisp.org>
72148
72149         * build-aux/config.rpath: Update from GNU gettext.
72150
72151 2005-12-16  Jim Meyering  <jim@meyering.net>
72152
72153         * modules/fprintftime: New module.
72154         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72155
72156 2005-12-16  Jim Meyering  <jim@meyering.net>
72157
72158         * m4/fprintftime.m4: New file.
72159
72160 2005-12-16  Jim Meyering  <jim@meyering.net>
72161
72162         * lib/fprintftime.c, lib/fprintftime.h: New files.
72163
72164 2005-12-15  Simon Josefsson  <jas@extundo.com>
72165
72166         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72167         new m4/socklen.m4.
72168
72169 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72170
72171         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72172         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72173
72174 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72175
72176         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72177         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72178         struct uparams is valid. Fall back to the default values if it is
72179         not.
72180
72181 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72182
72183         * modules/argp (Files): Add argp-pin.c
72184         (Depends-on): dirname
72185         (lib_SOURCES): Add argp-pin.c
72186
72187 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72188
72189         * m4/argp.m4:  Check if program_invocation_name and
72190         program_invocation_short_name are declared and define appropriate
72191         macros if they are not.
72192
72193 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72194
72195         * lib/argp-help.c (__argp_base_name): New function
72196         (__argp_short_program_name): Rewrite using __argp_base_name
72197         * lib/argp-namefrob.h: Define program_invocation_name and
72198         program_invocation_short_name if requested
72199         (__argp_base_name): Add prototype
72200         * lib/argp-parse.c (argp_def): Use gettext wrappers
72201         (argp_default_parser): Use __argp_base_name
72202         * lib/argp-pin.c: New file. Defines program_invocation_name and
72203         program_invocation_short_name on systems that lack them.
72204
72205 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72208         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72209         porting problem reported by Georg Schwarz in
72210         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72211
72212 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72215         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72216         porting problem reported by Georg Schwarz in
72217         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72218
72219 2005-12-05  Bruno Haible  <bruno@clisp.org>
72220
72221         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72222         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72223         Reported by Mark Junker <mjscod@gmx.de>.
72224
72225 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72228         Use implementation from Albert Chin, with some
72229         comments/corrections by Stepan Kasal and myself.
72230
72231 2005-12-02  Bruno Haible  <bruno@clisp.org>
72232
72233         * gnulib-tool (func_import): Accept GPLed build tool modules when
72234         --lgpl is given.
72235         * modules/csharpcomp-script: New file.
72236         * modules/csharpcomp: Depend on it.
72237         * modules/javacomp-script: New file.
72238         * modules/javacomp: Depend on it.
72239         Suggested by Simon Josefsson.
72240
72241 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72244         statement, to work around an HP-UX 10.20 compiler bug reported by
72245         Peter O'Gorman.
72246
72247 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72248
72249         * modules/savedir (Depends-on): Add openat.
72250
72251 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72254         (uintmax_t) [defined uintmax_t]: Do not declare.
72255         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72256         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72257         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72258         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72259         sake of portability to weird hosts that C allows (though we don't
72260         know of any practical examples).
72261
72262         * lib/savedir.h (fdsavedir): New decl.
72263         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72264         contains most of the former guts of savedir.
72265         (savedir): Use savedirstream.
72266         Include "openat.h".
72267
72268 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         * modules/obstack (Files): Add m4/ulonglong.m4.
72271         Problem reported by Davide Angelocola.
72272
72273 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72276         coreutils no longer futzes with rounding modes.
72277
72278 2005-11-14  Jim Meyering  <jim@meyering.net>
72279
72280         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72281         replacement of mkstemp.
72282
72283 2005-11-10  Simon Josefsson  <jas@extundo.com>
72284
72285         * lib/readline.c: Remove EOL.
72286
72287 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * modules/gethrxtime (Depends-on): Add gettime.
72290
72291 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72294         or gettimeofday; no longer needed.
72295
72296 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72299         time business.
72300         (gethrxtime) [! (HAVE_NANOUPTIME
72301         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72302         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72303         our own approximation.
72304
72305 2005-11-08  Eric Blake  <ebb9@byu.net>
72306
72307         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72308
72309 2005-11-08  Eric Blake  <ebb9@byu.net>
72310
72311         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72312
72313 2005-11-04  Bruno Haible  <bruno@clisp.org>
72314
72315         * gnulib-tool: Implement --update mode.
72316
72317 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72318
72319         Fix porting problem reported by Theodoros V. Kalamatianos.
72320         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72321         Don't assume that futimes failing means we must fail.
72322
72323 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72324
72325         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72326         variables to suggest the intended function of the PATH_MAX check.
72327
72328 2005-10-30  Kean Johnston  <jkj@sco.com>
72329
72330         Trivial changes to support SCO systems.
72331         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72332         as PATH_MAX.
72333         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72334         where __ptr is null when no I/O is pending.
72335
72336 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72337
72338         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72339         leave errno alone.  Problem reported by Dmitry V. Levin.
72340
72341 2005-10-28  Simon Josefsson  <jas@extundo.com>
72342
72343         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72344         Test more.
72345
72346         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72347
72348         * modules/md2, modules/md2-tests: New files.
72349
72350 2005-10-28  Simon Josefsson  <jas@extundo.com>
72351
72352         * m4/inet_ntop.m4: More tests.
72353
72354         * m4/gc-md2.m4, md2.m4: New file.
72355
72356 2005-10-28  Simon Josefsson  <jas@extundo.com>
72357
72358         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72359         "restrict" keywords, as per POSIX.  Protect the function
72360         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72361         Don't use K&R prototypes.  Check the sprintf return values.
72362         Re-define EAFNOSUPPORT if not present.  Indent.
72363
72364         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72365         suggested by Bruno Haible <bruno@clisp.org>.
72366
72367         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72368
72369         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72370
72371         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72372         libgcrypt).
72373
72374         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72375
72376         * lib/md2.h, lib/md2.c: New files.
72377
72378 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72379
72380         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72381         errno alone.  Problem reported by Frederic Jolliton.
72382
72383 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * modules/verify (License): Change from GPL to LGPL.  This is a
72386         tiny module and there are apparently near-equivalents that are
72387         under the BSD license.
72388
72389 2005-10-24  Simon Josefsson  <jas@extundo.com>
72390
72391         * modules/sha1: Relicense to LGPL.
72392
72393 2005-10-24  Simon Josefsson  <jas@extundo.com>
72394
72395         * lib/md4.h: Shrink buffer size, now that we changed the type.
72396
72397 2005-10-23  Simon Josefsson  <jas@extundo.com>
72398
72399         * gnulib-tool (func_import): Fix --tests-base.
72400
72401 2005-10-22  Simon Josefsson  <jas@extundo.com>
72402
72403         * modules/arcfour (Depends-on): Need stdint.
72404
72405 2005-10-22  Simon Josefsson  <jas@extundo.com>
72406
72407         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72408         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72409
72410 2005-10-22  Simon Josefsson  <jas@extundo.com>
72411
72412         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72413         suggested by Bruno Haible <bruno@clisp.org>.
72414
72415 2005-10-22  Simon Josefsson  <jas@extundo.com>
72416
72417         * lib/crc.h: Include stddef.h, for size_t.
72418
72419 2005-10-22  Simon Josefsson  <jas@extundo.com>
72420
72421         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72422         arcfour_context struct (simplify test vector testing in GNU
72423         Shishi).
72424
72425 2005-10-21  Simon Josefsson  <jas@extundo.com>
72426
72427         * modules/des, modules/des-tests: New files.
72428
72429         * modules/gc-des, modules/gc-des-tests: New files.
72430
72431         * tests/test-des.c, tests/test-gc-des.c: New file.
72432
72433 2005-10-21  Simon Josefsson  <jas@extundo.com>
72434
72435         * modules/arctwo, modules/arctwo-tests: New files.
72436
72437         * tests/test-arctwo.c: New file.
72438
72439         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72440
72441         * tests/test-gc-arctwo.c: New file.
72442
72443 2005-10-21  Simon Josefsson  <jas@extundo.com>
72444
72445         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72446         Bruno Haible <bruno@clisp.org>.
72447
72448         * m4/gc-des.m4: New file.
72449
72450 2005-10-21  Simon Josefsson  <jas@extundo.com>
72451
72452         * m4/arctwo.m4: New file.
72453
72454         * m4/gc-arctwo.m4: New file.
72455
72456 2005-10-21  Simon Josefsson  <jas@extundo.com>
72457
72458         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72459         block.
72460
72461 2005-10-21  Simon Josefsson  <jas@extundo.com>
72462
72463         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72464         <bruno@clisp.org>.
72465
72466         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72467
72468         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72469         Bruno Haible <bruno@clisp.org>.
72470
72471         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72472         <bruno@clisp.org>.
72473
72474 2005-10-21  Simon Josefsson  <jas@extundo.com>
72475
72476         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72477
72478 2005-10-21  Simon Josefsson  <jas@extundo.com>
72479
72480         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72481
72482 2005-10-21  Simon Josefsson  <jas@extundo.com>
72483
72484         * lib/des.h, lib/des.c: New files.
72485
72486         * lib/gc-gnulib.c: Support DES.c
72487
72488 2005-10-21  Simon Josefsson  <jas@extundo.com>
72489
72490         * lib/arctwo.h, lib/arctwo.c: New files.
72491
72492         * lib/gc-gnulib.c: Support ARCTWO.
72493
72494 2005-10-21  Simon Josefsson  <jas@extundo.com>
72495
72496         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72497         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72498
72499 2005-10-21  Simon Josefsson  <jas@extundo.com>
72500
72501         * gnulib-tool (func_import, func_create_testdir): Define automake
72502         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72503         Makefile.am snippet),
72504         suggested by Bruno Haible <bruno@clisp.org>.
72505
72506         * modules/gc (Makefile.am): Use it.
72507
72508 2005-10-21  Bruno Haible  <bruno@clisp.org>
72509
72510         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72511         patch.
72512
72513 2005-10-19  Simon Josefsson  <jas@extundo.com>
72514
72515         * tests/test-gc-rijndael.c: New file.
72516
72517         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72518
72519 2005-10-19  Simon Josefsson  <jas@extundo.com>
72520
72521         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72522         interface too.
72523
72524 2005-10-19  Simon Josefsson  <jas@extundo.com>
72525
72526         * tests/test-gc-arcfour.c: New file.
72527
72528         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72529
72530 2005-10-19  Simon Josefsson  <jas@extundo.com>
72531
72532         * modules/gc-md4, modules/gc-md4-tests: New file.
72533
72534         * tests/test-gc-md4.c: New file.
72535
72536 2005-10-19  Simon Josefsson  <jas@extundo.com>
72537
72538         * m4/gc-md4.m4: New file.
72539
72540 2005-10-19  Simon Josefsson  <jas@extundo.com>
72541
72542         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72543         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72544         <kasal@ucw.cz>.
72545
72546 2005-10-19  Simon Josefsson  <jas@extundo.com>
72547
72548         * m4/gc-arcfour.m4: New file.
72549
72550         * m4/gc-rijndael.m4: New file.
72551
72552 2005-10-19  Simon Josefsson  <jas@extundo.com>
72553
72554         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72555
72556 2005-10-19  Simon Josefsson  <jas@extundo.com>
72557
72558         * lib/gc-gnulib.c: Support ARCFOUR.
72559
72560 2005-10-19  Simon Josefsson  <jas@extundo.com>
72561
72562         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72563         support.
72564
72565         * lib/gc.h: Add ECB enum type.
72566
72567         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72568
72569 2005-10-18  Simon Josefsson  <jas@extundo.com>
72570
72571         * tests/test-md5.c: New file.
72572
72573         * modules/md5-tests: New file.
72574
72575 2005-10-18  Simon Josefsson  <jas@extundo.com>
72576
72577         * tests/test-md4.c: New file.
72578
72579         * modules/md4, modules/md4-tests: New files.
72580
72581 2005-10-18  Simon Josefsson  <jas@extundo.com>
72582
72583         * m4/md4.m4: New file.
72584
72585 2005-10-18  Simon Josefsson  <jas@extundo.com>
72586
72587         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72588
72589 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72590
72591         * gnulib-tool (func_create_testdir): Omit the second check whether
72592         BUILT_SOURCES in nonempty.
72593
72594 2005-10-17  Simon Josefsson  <jas@extundo.com>
72595
72596         * tests/test-rijndael.c: New file.
72597
72598 2005-10-17  Simon Josefsson  <jas@extundo.com>
72599
72600         * modules/sha1: Depend on stdint instead of md5.
72601
72602         * modules/md5: Depend on stdint, remove uint32_t.
72603
72604 2005-10-17  Simon Josefsson  <jas@extundo.com>
72605
72606         * modules/gc-sha1-tests: New file.
72607
72608         * tests/test-gc-sha1.c: New file.
72609
72610 2005-10-17  Simon Josefsson  <jas@extundo.com>
72611
72612         * m4/md5.m4: Remove call to uint32_t.m4.
72613
72614 2005-10-17  Simon Josefsson  <jas@extundo.com>
72615
72616         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72617
72618         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72619         md5.h.
72620
72621         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72622
72623         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72624
72625 2005-10-17  Simon Josefsson  <jas@extundo.com>
72626
72627         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72628
72629 2005-10-17  Simon Josefsson  <jas@extundo.com>
72630
72631         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72632
72633 2005-10-17  Simon Josefsson  <jas@extundo.com>
72634
72635         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72636
72637         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72638
72639 2005-10-17  Bruno Haible  <bruno@clisp.org>
72640
72641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72642         that it can also be used in a test.
72643
72644 2005-10-16  Bruno Haible  <bruno@clisp.org>
72645
72646         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72647         TESTS_ENVIRONMENT, so that individual tests can augment it.
72648
72649         * gnulib-tool (func_create_testdir): Use an intermediate target for
72650         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72651         macros, like $(ALLOCA_H), which cannot be passed through the command
72652         line.
72653
72654 2005-10-15  Simon Josefsson  <jas@extundo.com>
72655
72656         * modules/rijndael-tests: New file.
72657
72658         * modules/rijndael: New file.
72659
72660 2005-10-15  Simon Josefsson  <jas@extundo.com>
72661
72662         * m4/rijndael.m4: New file.
72663
72664 2005-10-15  Simon Josefsson  <jas@extundo.com>
72665
72666         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72667
72668         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72669
72670 2005-10-14  Simon Josefsson  <jas@extundo.com>
72671
72672         * tests/test-arcfour.c: New file.
72673
72674         * modules/arcfour, modules/arcfour-tests: New files.
72675
72676 2005-10-14  Simon Josefsson  <jas@extundo.com>
72677
72678         * m4/arcfour.m4: New file.
72679
72680 2005-10-14  Simon Josefsson  <jas@extundo.com>
72681
72682         * lib/arcfour.h, lib/arcfour.c: New files.
72683
72684 2005-10-14  Roland McGrath  <roland@redhat.com>
72685
72686         Import from libc.  [BZ #1331]
72687         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72688         macro argument.
72689         Reported by Matej Vela <vela@debian.org>.
72690
72691 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72694         include <wchar.h>; no longer needed.
72695
72696 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72697
72698         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72699
72700 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72701         and  Ulrich Drepper  <drepper@redhat.com>
72702
72703         Import from libc.
72704         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72705         instead of inline stream orientation test and two separate
72706         function calls.  Pay no attention to USE_IN_LIBIO.
72707
72708 2005-10-13  Simon Josefsson  <jas@extundo.com>
72709
72710         * modules/gc-hmac-md5-tests: New file.
72711
72712         * tests/test-gc-hmac-sha1.c: New file.
72713
72714         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72715
72716         * modules/gc-hmac-md5-tests: New file.
72717
72718         * tests/test-gc-md5.c: New file.
72719
72720         * modules/gc-md5-tests: New file.
72721
72722 2005-10-13  Simon Josefsson  <jas@extundo.com>
72723
72724         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72725         Move memory allocation outside of loop.
72726
72727 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72728
72729         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72730         intermediate directory is in a read-only file system.  Problem
72731         reported by Eric Blake.
72732
72733 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72734
72735         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72736
72737 2005-10-12  Simon Josefsson  <jas@extundo.com>
72738
72739         * tests/test-hmac-sha1.c: New file.
72740
72741         * modules/hmac-sha1-tests: New file.
72742
72743         * modules/hmac-sha1: New file.
72744
72745 2005-10-12  Simon Josefsson  <jas@extundo.com>
72746
72747         * modules/gc-sha1: New file.
72748
72749 2005-10-12  Simon Josefsson  <jas@extundo.com>
72750
72751         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72752
72753         * tests/test-gc-pbkdf2-sha1.c: New file.
72754
72755 2005-10-12  Simon Josefsson  <jas@extundo.com>
72756
72757         * modules/gc-md5, modules/gc-hmac-md5: New files.
72758
72759         * modules/gc (Files): Remove md5, memxor and hmac files.
72760
72761 2005-10-12  Simon Josefsson  <jas@extundo.com>
72762
72763         * m4/gc-pbkdf2-sha1.m4: New file.
72764
72765         * m4/gc-hmac-sha1.m4: New file.
72766
72767         * m4/gc-sha1: New file.
72768
72769         * m4/hmac-sha1.m4: New file.
72770
72771 2005-10-12  Simon Josefsson  <jas@extundo.com>
72772
72773         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72774
72775         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72776
72777 2005-10-12  Simon Josefsson  <jas@extundo.com>
72778
72779         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72780         suggested by Bruno Haible <bruno@clisp.org>.
72781
72782 2005-10-12  Simon Josefsson  <jas@extundo.com>
72783
72784         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72785
72786 2005-10-12  Simon Josefsson  <jas@extundo.com>
72787
72788         * lib/gc-pbkdf2-sha1.c: New file.
72789
72790         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72791
72792 2005-10-12  Simon Josefsson  <jas@extundo.com>
72793
72794         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72795
72796         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72797
72798 2005-10-12  Simon Josefsson  <jas@extundo.com>
72799
72800         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72801         GC_USE_HMAC_MD5, respectively.
72802
72803         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72804         (gc_md5): Fix typo.
72805
72806         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72807
72808         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72809
72810         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72811
72812 2005-10-12  Bruno Haible  <bruno@clisp.org>
72813
72814         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72815         Reported by Stepan Kasal <kasal@ucw.cz>.
72816
72817 2005-10-11  Simon Josefsson  <jas@extundo.com>
72818
72819         * tests/test-crc.c: New file.
72820
72821         * modules/crc, modules/crc-tests: New files.
72822
72823 2005-10-11  Simon Josefsson  <jas@extundo.com>
72824
72825         * m4/crc.m4: New file.
72826
72827 2005-10-11  Simon Josefsson  <jas@extundo.com>
72828
72829         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72830
72831         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72832
72833         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72834
72835 2005-10-11  Simon Josefsson  <jas@extundo.com>
72836
72837         * lib/crc.h, lib/crc.c: New files.
72838
72839         * lib/gc.h (gc_hash_buffer): Add doc.
72840
72841 2005-10-11  Bruno Haible  <bruno@clisp.org>
72842
72843         * modules/c-strcasestr: New file.
72844         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72845
72846 2005-10-11  Bruno Haible  <bruno@clisp.org>
72847
72848         * modules/c-strcase: New file.
72849         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72850
72851 2005-10-11  Bruno Haible  <bruno@clisp.org>
72852
72853         * lib/strcasecmp.c: Include limits.h.
72854         (strcasecmp): Avoid integer overflow on exotic platforms.
72855         * lib/strncasecmp.c: Include limits.h.
72856         (strncasecmp): Avoid integer overflow on exotic platforms.
72857         Reported by Paul Eggert.
72858
72859 2005-10-11  Bruno Haible  <bruno@clisp.org>
72860
72861         * lib/c-strcasestr.h: New file, from GNU gettext.
72862         * lib/c-strcasestr.c: New file, from GNU gettext.
72863
72864 2005-10-11  Bruno Haible  <bruno@clisp.org>
72865
72866         * lib/c-strcase.h: New file, from GNU gettext.
72867         * lib/c-strcasecmp.c: New file, from GNU gettext.
72868         * lib/c-strncasecmp.c: New file, from GNU gettext.
72869
72870 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * modules/mempcpy (License): GPL -> LGPL.
72873         * modules/strchrnul (License): Likewise.
72874         * modules/sysexits (License): Likewise.
72875
72876 2005-10-08  Simon Josefsson  <jas@extundo.com>
72877
72878         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72879
72880 2005-10-07  Simon Josefsson  <jas@extundo.com>
72881
72882         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72883
72884 2005-10-06  Simon Josefsson  <jas@extundo.com>
72885
72886         * tests/test-hmac-md5.c: New file.
72887
72888         * modules/hmac-md5-tests: New file.
72889
72890         * modules/hmac-md5: New file.
72891
72892 2005-10-06  Simon Josefsson  <jas@extundo.com>
72893
72894         * m4/hmac-md5.m4: New file.
72895
72896         * m4/memxor.m4: Require gl_C_RESTRICT.
72897
72898 2005-10-06  Simon Josefsson  <jas@extundo.com>
72899
72900         * lib/memxor.c (memxor): Avoid casts and warnings.
72901
72902 2005-10-06  Simon Josefsson  <jas@extundo.com>
72903
72904         * lib/hmac-md5.c: New file.
72905
72906         * lib/hmac.h: New file.
72907
72908 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72909
72910         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72911         promotes to int, not unsigned int, to catch the AIX 5.3
72912         compiler bug.
72913
72914 2005-10-05  Simon Josefsson  <jas@extundo.com>
72915
72916         * modules/memxor: New file.
72917
72918         * modules/iconv (Files): Move config.rpath to havelib, it is used
72919         there.
72920
72921         * modules/havelib (Files): Add config.rpath.
72922
72923 2005-10-05  Simon Josefsson  <jas@extundo.com>
72924
72925         * m4/memxor.m4: New file.
72926
72927 2005-10-05  Simon Josefsson  <jas@extundo.com>
72928
72929         * lib/memxor.c (memxor): Fix compiler error.
72930
72931         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72932         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72933
72934         * lib/memxor.h, lib/memxor.c: New files.
72935
72936         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72937         we assume all systems have it, suggested by Jim Meyering
72938         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72939         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72940         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72941         same reasons.
72942
72943 2005-10-05  Simon Josefsson  <jas@extundo.com>
72944
72945         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72946
72947 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72950         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72951         needed, since the source code now assumes these .h files.
72952
72953 2005-10-05  Derek Price  <derek@ximbiot.com>
72954
72955         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72956
72957 2005-10-05  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/stdint (License): Change to LGPL.
72960
72961 2005-10-04  Simon Josefsson  <jas@extundo.com>
72962
72963         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72964         D. Baushke" <mdb@gnu.org>.
72965
72966 2005-10-04  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/verify.h (verify_true): Provide alternative definition for C++.
72969
72970 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72973         (SSIZE_MAX): New macro, if not already defined.
72974         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72975         than 2 GiB.
72976
72977 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         Sync from coreutils.
72980         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72981         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72982         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72983         ULLONG_MAX doesn't work with 2.7.2.1.
72984
72985 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72986
72987         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72988         From Ben Pfaff.
72989
72990         * modules/exclude (Depends-on): Depend on verify.
72991         * modules/strtoimax (Depends-on): Likewise.
72992         * modules/utimecmp (Depends-on): Likewise.
72993
72994 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         * lib/exclude.c: Include verify.h.
72997         (verify): Remove.  All callers changed to use verify.h's version.
72998         * lib/strtoimax.c: Likewise.
72999         * lib/utimecmp.c: Likewis.e
73000
73001         Sync from coreutils.
73002         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73003         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73004         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73005         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73006         bother returning ENOSYS if settimeofday or stime fails; just let
73007         them return whatever errno they want to return.
73008         * lib/utimens.c: Include unistd.h, for dup2.
73009         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73010         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73011
73012 2005-10-02  Jim Meyering  <jim@meyering.net>
73013
73014         Sync from coreutils.
73015         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73016         from glibc-2.2.5 that fails for read-only files.
73017
73018 2005-10-02  Jim Meyering  <jim@meyering.net>
73019
73020         Sync from coreutils.
73021         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73022         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73023         `#if HAVE_CONFIG_H'.
73024         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73025         Remove AT_FDCWD test.
73026         Do not consume the fd unless successful.
73027         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73028         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73029         block, so that we don't even try to compile it if settimeofday is
73030         available.  This works around a compilation failure on OSF1 V5.1,
73031         due to stime requiring a `long int*' while tv_sec is `int'.
73032
73033 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73034
73035         Sync from coreutils.
73036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73037         against `yes', rather than just testing for nonempty.
73038
73039 2005-10-01  Simon Josefsson  <jas@extundo.com>
73040
73041         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73042         and Darwin.
73043
73044         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73045         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73046         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73047         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73048         Check if struct addrinfo is declared.
73049
73050 2005-10-01  Simon Josefsson  <jas@extundo.com>
73051
73052         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73053         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73054         AI_* and EAI_* definitions.  Protect function declarations.
73055
73056 2005-10-01  Jim Meyering  <jim@meyering.net>
73057
73058         Sync from coreutils.
73059
73060         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73061         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73062         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73064         in the inet and nsl libraries.  Required on Solaris 5.7.
73065
73066 2005-10-01  Jim Meyering  <jim@meyering.net>
73067
73068         Sync from coreutils.
73069         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73070         in the inet and nsl libraries.  Required on Solaris 5.7.
73071
73072 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73073
73074         * lib/getdelim.c (getdelim): Remove unused variables.
73075
73076 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73079         so that the code works even with ancient cpp.  Portability problem
73080         with GCC 2.7.2.1 reported by Thomas M.Ott.
73081
73082 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73083
73084         * modules/regex (Depends-on): Add strcase.
73085
73086         * modules/gethostname (Licence): Change from GPL to LGPL, since
73087         gethostname.c is a trivial implementation of a standard library
73088         function.
73089         * modules/poll (License): Change from GPL to LGPL, since it's
73090         derived from LGPL code.
73091
73092 2005-09-27  Jim Meyering  <jim@meyering.net>
73093
73094         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73095         HAVE_CONFIG_H.
73096
73097         * lib/intprops.h (signed_type_or_expr__): Define.
73098         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73099         for unsigned types.
73100
73101 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73102
73103         * lib/verify.h (verify_expr): Remove, replacing with:
73104         (verify_true): New macro that returns true instead of void.
73105         (verify_type__): Remove.
73106         (verify): Use verify_true rather than verify_type__.
73107
73108 2005-09-26  Bruno Haible  <bruno@clisp.org>
73109
73110         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73111         is necessary.
73112         (lib_SOURCES): Remove mbchar.c.
73113         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73114         (Files): Add m4/mbrtowc.m4.
73115         * modules/mbiter: Likewise.
73116         * modules/mbuiter: Likewise.
73117
73118 2005-09-26  Bruno Haible  <bruno@clisp.org>
73119
73120         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73121         compile mbchar.c if they are not both present.
73122         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73123         * m4/mbiter.m4 (gl_MBITER): Likewise.
73124         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73125         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73126         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73127
73128 2005-09-25  Jim Meyering  <jim@meyering.net>
73129
73130         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73131         also uses socklen_t.
73132
73133 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * lib/utimens.c (ENOSYS): Define if not already defined.
73136         (futimens): Support having a null PATH if the file descriptor
73137         is nonnegative.
73138
73139         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73140         Remove.
73141         (__attribute): Define to empty unless GCC 3.1 or later.
73142         This works around a core dump on OpenBSD 3.4, which has GCC
73143         2.95.3, which dumps core when given __attribute__(()).  It also
73144         simplifies other tests, since we really don't want to bother with
73145         worrying about which ancient version of GCC supported what.
73146         Original problem reported by Yoann Vandoorselaere, with part of
73147         the fix suggested by Derek Price.
73148
73149 2005-09-24  Jim Meyering  <jim@meyering.net>
73150
73151         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73152         so we can once again use a positive bitfield width of 1 -- now we
73153         don't have to explain why we were using a bitfield width of 2.
73154
73155 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73158         and similarly for the other external symbols.  Problem reported
73159         by James Gallager.
73160
73161         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73162         bug reported by Jim Meyering.
73163
73164         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73165         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73166         not needed, since socklen is a prerequisite module.
73167
73168 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73171         Problem reported by Eric Blake.
73172         (getaddrinfo): Initialize se so that it's not garbage.
73173         Redo internal storage allocation so that it doesn't make unportable
73174         assumptions about alignment.
73175         Fix a memory leak.
73176
73177         * lib/utimens.c (futimens): Use futimesat if available.
73178         Prefer it to futimes since it doesn't have the futimes bug.
73179
73180         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73181         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73182         Instead, declare a function that returns a pointer to an array,
73183         and use verify_type__ to declare the size of the array.
73184         Problem and germ of a solution reported by Bruno Haible.
73185         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73186         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73187
73188 2005-09-23  Jim Meyering  <jim@meyering.net>
73189
73190         Sync from coreutils.
73191         Correct build failure (socklen_t not defined) on at least
73192         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73194
73195 2005-09-23  Jim Meyering  <jim@meyering.net>
73196
73197         * modules/getaddrinfo (Depends-on): Add socklen.
73198
73199 2005-09-23  Bruno Haible  <bruno@clisp.org>
73200
73201         * tests/test-verify.c: New file.
73202
73203 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73204
73205         Sync from coreutils.
73206
73207         * modules/argmatch (Depends-on): Add verify.
73208         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73209         unistd-safer.
73210         * modules/save-cwd (Depends-on): Likewise.
73211
73212         * modules/openat (Files): Add lib/openat-die.c.
73213         (Depends-on): Remove error, exitfail.
73214         Add dirname.
73215
73216         * modules/verify: New file.
73217         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73218         with "verify" module.
73219
73220 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         Sync from coreutils.
73223
73224         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73225         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73226         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73227         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73228         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73229         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73230         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73231         Don't bother checking for string.h, stdlib.h, unistd.h.
73232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73233         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73234         module's job.
73235         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73236         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73237
73238         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73239         (gl_GETDATE): Use it.
73240
73241         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73242
73243 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         Sync from coreutils.
73246
73247         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73248         stat-time.h.
73249         * lib/argmatch.h: Include verify.h
73250         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73251         (ARGMATCH_ASSERT): Remove; unused.
73252         * lib/canonicalize.c: Assume STDC_HEADERS.
73253         * lib/exclude.c: Include "strcase.h".
73254         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73255         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73256         and stdio-safer.h.
73257         (getusershell): Call fopen, not fopen_safer.
73258         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73259         Do not include unistd-safer.h.
73260         (save_cwd): Don't call fd_safer; no longer needed
73261         now that we include fcntl--.h.
73262
73263         * lib/getdate.y (relative_time): New type.
73264         (RELATIVE_TIME_0): New constant.
73265         (parser_control): Use relative_time instead of doing it ourselves.
73266         (%union): Add new relative_time rel member.
73267         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73268         Now typeless.
73269         (relunit, relunit_snumber): Now of type rel.
73270         (zone, rel, relunit, get_date): Adjust to above changes.
73271
73272         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73273         Do not include unistd-safer.h.
73274         (getloadavg): Don't call fd_safer; no longer needed
73275         now that we include fcntl--.h.
73276
73277         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73278         (make_dir_parents): Treat ENOSYS like EEXIST.
73279
73280         Improve quality of diagnostics on restore_cwd failure.
73281         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73282         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73283         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73284         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73285         each time through the loop.  Do not diagnose restore_cwd failure;
73286         that is the caller's job (and perhaps the caller does not care).
73287
73288         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73289         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73290         If the file already exists but is not a directory, don't bother
73291         to try to make its parents.
73292         Close potential file descriptor leak if we can't chdir("/") (!).
73293         Don't always return true if chdir($PWD) fails; return true only
73294         if the requested action was done successfully (except for the
73295         chdir($PWD)).
73296         Don't log final directory unless we actually made it.
73297         Refactor to avoid duplicate code to fix up permissions.
73298         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73299
73300         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73301         to make it a bit faster and (I hope) clearer.
73302         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73303         Fix bug in formats like %2N.
73304
73305         * lib/verify.h: New file.
73306
73307 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         Sync from coreutils.
73310         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73311
73312 2005-09-22  Jim Meyering  <jim@meyering.net>
73313
73314         Sync from coreutils.
73315
73316         * m4/lstat.m4 (gl_FUNC_LSTAT):
73317         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73318         Remove obsolete comment.
73319         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73320         * m4/xstrtod.m4: Likewise.
73321
73322         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73323
73324 2005-09-22  Jim Meyering  <jim@meyering.net>
73325
73326         Sync from coreutils.
73327
73328         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73329
73330         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73331         the .tm_year member, since otherwise gcc-4.0 would now warn about
73332         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73333
73334         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73335         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73336
73337         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73338         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73339         when run in a time zone for which daylight savings time is in effect
73340         for the starting date.
73341
73342         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73343         stop us from restricting permissions of just-created absolute-named
73344         directories.
73345         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73346         to restore initial working directory.
73347         * lib/mkdir-p.c (make_dir_parents): New parameter:
73348         different_working_dir, to tell caller if/when we change the working
73349         directory and are unable to return to the initial one.
73350         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73351         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73352         `return false'.  This fixes a bug introduced on 2004-07-30.
73353
73354         * lib/openat.c (fdopendir): Be sure to close the supplied
73355         file descriptor before returning.  This makes our replacement
73356         implementation a little closer to Solaris's, where fdopendir
73357         ties the file descriptor to the returned DIR* pointer.
73358         * lib/openat.c (unlinkat): New function.
73359         * lib/openat.h (unlinkat): Add prototype.
73360         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73361         (openat_restore_fail): Rename from openat_restore_die.
73362         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73363
73364         Provide an alternative to exiting immediately upon save_cwd or
73365         restore_cwd failure.  Now, an application can arrange e.g.,
73366         to perform a longjump in that case.
73367         * lib/openat.c: Include dirname.h.
73368         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73369         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73370         and openat_restore_die rather than calling error directly.
73371         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73372
73373         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73374         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73375         define.
73376
73377         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73378         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73379                             int utc, int nanoseconds);
73380         Background:
73381         date should not have to allocate a megabyte of virtual memory to
73382         handle a format argument like +%1048575T.  When implemented with
73383         strftime, it must allocate such a buffer, use strftime to fill it
73384         in, print it, then free it.
73385         With fprintftime, it simply prints everything and exits.
73386         With no need for memory allocation, that's one fewer way to fail.
73387         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73388         optional field width, not before, so we accept %9:z, not %:9z.
73389         (my_strftime): Be sure to use L_('x') for literals.
73390
73391         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73392         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73393         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73394         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73395         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73396         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73397         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73398         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73399         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73400         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73401         * lib/xgethostname.c, lib/xreadlink.c:
73402         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73403
73404         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73405         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73406         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73407         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73408         and don't include <sys/file.h>).
73409
73410 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73411
73412         Sync from coreutils.
73413
73414         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73415         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73416         [!LDAV_DONE]: Avoid unused variable warning.
73417
73418 2005-09-21  Bruno Haible  <bruno@clisp.org>
73419
73420         * lib/unicodeio.h (unicode_to_mb): New declaration.
73421
73422 2005-09-20  Derek Price  <derek@ximbiot.com>
73423
73424         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73425         getaddrinfo.h.
73426
73427 2005-09-20  Bruno Haible  <bruno@clisp.org>
73428
73429         * gnulib-tool: Remove trailing slashes from the values specified for
73430         --source-base, --m4-base, --tests-base, --aux-dir.
73431         Suggested by Simon Josefsson <jas@extundo.com>.
73432
73433 2005-09-20  Bruno Haible  <bruno@clisp.org>
73434
73435         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73436         func_modules_to_filelist, func_import, func_create_testdir): Make all
73437         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73438         change when gnulib-tool is invoked in a different locale.
73439
73440 2005-09-19  Simon Josefsson  <jas@extundo.com>
73441
73442         * m4/socklen.m4: Fix typo.
73443
73444 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73445
73446         Use a consistent style for including <config.h>.
73447         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73448         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73449         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73450         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73451         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73452         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73453         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73454         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73455         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73456         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73457         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73458         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73459         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73460         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73461         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73462         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73463         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73464         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73465         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73466         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73467         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73468         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73469         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73470         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73471         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73472         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73473         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73474         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73475         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73476         lib/xstrtoumax.c, lib/yesno.c:
73477         Standardize inclusion of config.h.
73478         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73479         lib/inttostr.h:  Removed inclusion of config.h from header files.
73480         * lib/inttostr.c:  Adjusted in-tree users.
73481         * lib/timespec.h: Remove superfluous warning to include config.h.
73482         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73483         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73484         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73485         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73486         config.h with HAVE_CONFIG_H.
73487
73488 2005-09-19  Jim Meyering  <jim@meyering.net>
73489
73490         * modules/pathmax (License): Change to LGPL.
73491
73492 2005-09-19  Derek Price  <derek@ximbiot.com>
73493
73494         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73495
73496 2005-09-19  Bruno Haible  <bruno@clisp.org>
73497
73498         * gnulib-tool (import): Provide default for --tests-base.
73499
73500 2005-09-19  Bruno Haible  <bruno@clisp.org>
73501
73502         * doc/quote.texi: New file, extracted from gnulib.texi.
73503         * doc/ctime.texi: New file, extracted from gnulib.texi.
73504         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73505         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73506         * doc/gnulib.texi: Include them.
73507
73508 2005-09-18  Bruno Haible  <bruno@clisp.org>
73509
73510         Portability fix.
73511         * gnulib-tool (func_readlink): New function.
73512         (func_ln_if_changed): Use it.
73513
73514 2005-09-18  Bruno Haible  <bruno@clisp.org>
73515
73516         * gnulib-tool: Support --with-tests also with --import.
73517         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73518         (func_import): Use variables $testsbase and $inctests. Emit a
73519         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73520         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73521         SUBDIRS += $testsdir.
73522         (func_create_testdir): Update.
73523
73524 2005-09-18  Bruno Haible  <bruno@clisp.org>
73525
73526         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73527         instead of $dry_run.
73528         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73529         (func_ln_if_changed): Don't handle dry-run here.
73530         (func_import): In dry-run mode, detect more precisely which actions
73531         would be performed, and don't use "...ing" verbs.
73532
73533 2005-09-18  Bruno Haible  <bruno@clisp.org>
73534
73535         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73536         (func_import): Use join on two temporary files instead of three nested
73537         loops, in order to determine which files are new or old.
73538
73539 2005-09-18  Bruno Haible  <bruno@clisp.org>
73540
73541         * gnulib-tool (func_import): Comment out code that spits out the
73542         new files with --dry-run.
73543
73544 2005-09-18  Bruno Haible  <bruno@clisp.org>
73545
73546         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73547
73548 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73549
73550         * lib/stat-time.h: New file.
73551         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73552         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73553         in a different way.
73554         (timespec_cmp): New function.
73555         * lib/utimecmp.c: Include stat-time.h.
73556         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73557         members exist, not on the obsolescent ST_MTIM_NSEC.
73558         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73559
73560 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73561
73562         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73563
73564 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73565
73566         * MODULES.html.sh (File system functions): Add stat-time.
73567         * modules/stat-time: New file.
73568         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73569         is now done in a different way, by the stat-time module.
73570         * modules/utimecmp (Depends-on): Add stat-time.
73571
73572 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73573
73574         * m4/st_mtim.m4: Remove.  Superseded by...
73575         * m4/stat-time.m4: New file.
73576         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73577         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73578
73579 2005-09-15  Derek Price  <derek@ximbiot.com>
73580
73581         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73582
73583 2005-09-15  Derek Price  <derek@ximbiot.com>
73584
73585         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73586         * lib/regex_internal.c: Ditto, using this...
73587         (__GNUC_PREREQ): ...new macro.
73588         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73589         using...
73590         (__GNUC_PREREQ): ...this new macro.
73591
73592         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73593
73594 2005-09-15  Derek Price  <derek@ximbiot.com>
73595             Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73598         changes, consolidating in...
73599         * lib/regex_internal.h: ...this file.
73600
73601 2005-09-13  Jim Meyering  <jim@meyering.net>
73602
73603         * lib/canon-host.c: Filter through gnu indent and reword comments
73604         slightly.
73605         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73606
73607 2005-09-13  Derek Price  <derek@ximbiot.com>
73608
73609         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73610         failure.
73611         Reported by Jim Meyering  <jim@meyering.net>.
73612
73613 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73614
73615         * lib/base64.c: Typo.
73616         (base64_encode): Put b64str in initialized data section.
73617
73618 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         Merge glibc and coreutils changes into gnulib, plus a few
73621         extra fixes.
73622         * lib/md5.c: Use #error rather than a string.
73623         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73624         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73625         (__attribute__): Define to empty for non recent-GCC.
73626         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73627         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73628         Renamed from their non-__ counterparts, with new macros replacing
73629         them if not _LIBC.  Add __THROW attribute.
73630         (rol): Remove.
73631         (struct md5_ctx): Align buffer if using GCC.
73632         * lib/sha1.h (struct sha1_ctx): Likewise.
73633         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73634         The old name was backwards.
73635         (NOTSWAP): Remove; not used.
73636         (rol): New macro, moved here from md5.h.
73637         (sha1_process_block): Remove a FIXME that doesn't make sense.
73638
73639 2005-09-12  Derek Price  <derek@ximbiot.com>
73640
73641         Return usable errors from canon-host.
73642         * lib/canon-host.h: New file.
73643         * lib/canon-host.c (canon_host): Wrap...
73644         (canon_host_r): ...this new function, which now relies exclusively on
73645         getaddrinfo.
73646         (ch_strerror): New function.
73647         (last_cherror): New global.
73648         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73649         interface.
73650         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73651         void *.
73652         (freeaddrinfo): Free ai->ai_canonname when set.
73653
73654 2005-09-12  Derek Price  <derek@ximbiot.com>
73655
73656         Make canon-host require getaddrinfo.
73657         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73658         AC_LIBSOURCE canon-host.h.  Call...
73659         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73660         gl_GETADDRINFO.
73661         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73662
73663 2005-09-12  Derek Price  <derek@ximbiot.com>
73664
73665         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73666         LGPL.
73667         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73668
73669 2005-09-12  Derek Price  <derek@ximbiot.com>
73670
73671         * lib/gai_strerror.c: Include config.h when available.  Include
73672         getaddrinfo.h before other headers to test interface.
73673         Reported by Larry Jones <lawrence.jones@ugs.com>.
73674
73675 2005-09-12  Derek Price  <derek@ximbiot.com>
73676             Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * modules/glob (Files): Add glob-libc.h.
73679
73680 2005-09-12  Derek Price  <derek@ximbiot.com>
73681             Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73684         glob_.h, glob-libc.h.
73685         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73686
73687 2005-09-12  Derek Price  <derek@ximbiot.com>
73688             Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73691         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73692         protecting things that should be done only in gnulib contexts.
73693         * lib/glob_.h: New file, containing only the glob things needed for
73694         gnulib.
73695         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73696         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73697         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73698         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73699         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73700         and to respect the namespace rules better.
73701
73702 2005-09-08  Simon Josefsson  <jas@extundo.com>
73703
73704         * modules/socklen: New file.
73705
73706 2005-09-08  Simon Josefsson  <jas@extundo.com>
73707
73708         * m4/socklen.m4: New file.
73709
73710 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * modules/utimens (Files): Add m4/utimbuf.m4, since
73713         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73714         Reported by Sergey Poznyakoff.
73715
73716 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73717
73718         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73719         definitions, since that's the preferred style in glibc.
73720         Fix a minor spacing issue, and update copyright notice to match
73721         glibc's.
73722
73723 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73724
73725         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73726
73727 2005-09-06  Simon Josefsson  <jas@extundo.com>
73728
73729         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73730         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73731
73732 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73735         warning.
73736
73737 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * config/srclist.txt: Add glibc bug 1302.
73740
73741 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73742
73743         Change bitset word type from unsigned int to unsigned long int,
73744         as this has better performance on typical 64-bit hosts.
73745         Port bitset code to hosts with unusual word sizes.
73746         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73747         (build_collating_symbol):
73748         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73749         argument is a bitset.  This is merely a style issue, but it makes
73750         it clearer that an entire array is expected.
73751         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73752         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73753         Port to the case where bitset_word is not the same as unsigned int.
73754         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73755         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73756         Likewise.
73757         * lib/regexec.c (check_dst_limits_calc_pos_1,
73758         check_subexp_matching_top):
73759         (build_trtable, group_nodes_into_DFAstates):
73760         Likewise.
73761         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73762         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73763         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73764         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73765         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73766         * lib/regcomp.c (optimize_subexps, lower_subexp):
73767         Work even if bitset_word has holes in its bitwise representation.
73768         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73769         * lib/regexec.c (check_dst_limits_calc_pos_1,
73770         check_subexp_matching_top):
73771         Likewise.
73772         * lib/regex_internal.c (re_string_reconstruct):
73773         Don't assume UCHAR_MAX == 255.
73774         * lib/regex_internal.h (bitset_set_all): Likewise.
73775         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73776         All uses changed.
73777         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73778         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73779         All uses changed.
73780         (BITSET_WORD_MAX): New macro.
73781         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73782         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73783         (bitset_empty, bitset_copy):
73784         Prefer sizeof (bitset) to multiplying it out ourselves.
73785         (bitset_not_merge): Remove; unused.
73786         (bitset_contain): Return bool, not unsigned int with one bit on.
73787         All callers changed.
73788         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73789         alignment than re_node_set; do this by defining a new internal
73790         type struct dests_alloc and using it to allocate memory.
73791
73792 2005-09-05  Bruno Haible  <bruno@clisp.org>
73793
73794         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73795         links.
73796
73797 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73798
73799         * modules/size_max (Makefile.am): Add size_max.h
73800
73801 2005-09-04  Derek Price  <derek@ximbiot.com>
73802
73803         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73804
73805 2005-09-03  Simon Josefsson  <jas@extundo.com>
73806
73807         * gnulib-tool: Fix typo.
73808
73809 2005-09-03  Simon Josefsson  <jas@extundo.com>
73810
73811         * config/srclist.txt: Add glibc bug 1293.
73812
73813 2005-09-03  Derek Price  <derek@ximbiot.com>
73814
73815         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73816         From Larry Jones <lawrence.jones@ugs.com>.
73817
73818 2005-09-02  Simon Josefsson  <jas@extundo.com>
73819
73820         * modules/socklen: New file.
73821
73822 2005-09-02  Simon Josefsson  <jas@extundo.com>
73823
73824         * modules/havelib: New module.
73825
73826         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73827         Use havelib.
73828
73829 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         Check for arithmetic overflow when calculating sizes, to prevent
73832         some buffer-overflow issues.  These patches are conservative, in the
73833         sense that when I couldn't determine whether an overflow was possible,
73834         I inserted a run-time check.
73835         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73836         macros.
73837         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73838         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73839         (re_xnrealloc, re_x2nrealloc): New inline functions.
73840         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73841         parse_bracket_exp):
73842         (build_equiv_class, build_charclass): Check for arithmetic overflow
73843         in size expression calculations.
73844         * lib/regex_internal.c (re_string_realloc_buffers):
73845         (build_wcs_upper_buffer, re_node_set_add_intersect):
73846         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73847         (re_dfa_add_node, register_state): Likewise.
73848         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73849         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73850         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73851         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73852
73853 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73854
73855         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73856         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73857
73858 2005-09-02  Bruno Haible  <bruno@clisp.org>
73859
73860         Support for lib vs. lib64 distinction on biarch platforms.
73861         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73862         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73863         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73864
73865 2005-09-02  Bruno Haible  <bruno@clisp.org>
73866
73867         * gnulib-tool (import): In the other first-use case, provide defaults
73868         as well.
73869
73870 2005-09-02  Bruno Haible  <bruno@clisp.org>
73871
73872         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73873         patches not yet found in the latest gettext release.
73874
73875 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73878         to avoid a collision with bits/local_lim.h in glibc.
73879         All uses changed.  Problem reported by Dmitry V. Levin in
73880         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73881
73882         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73883         bugs in int versus size_t comparisons.
73884         (re_string_context_at): Fix bug where the code assumed that
73885         Idx is signed.
73886
73887         Use bool where appropriate.
73888         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73889         All callers changed.
73890         (calc_eclosure_iter): Likewise, for ROOT arg.
73891         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73892         (build_charclass_op): Likewise, for NON_MATCH arg.
73893         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73894         (re_string_construct_common): Likewise, for ICASE arg.
73895         * lib/regexec.c (re_search_2_stub, re_search_stub):
73896         Likewise, for RET_LEN arg.
73897         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73898         (set_regs): Likewise, for FL_BACKTRACK arg.
73899         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73900         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73901         (calc_eclosure_iter, parse_bracket_exp):
73902         Use bool for internal variables that are booleans.
73903         * lib/regexec.c (re_search_internal, check_matching,
73904         proceed_next_node):
73905         (set_regs, build_sifted_states, sift_states_bkref):
73906         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73907         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73908         (find_collation_sequence_value):
73909         Likewise.
73910         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73911         (re_node_set_compare):
73912         Return bool, not int. All callers changed.
73913         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73914         (build_trtable, check_node_accept): Likewise.
73915         * lib/regex_internal.h: Include stdbool.h.
73916
73917         Fix bugs uncovered when converting to bool.
73918         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73919         failure instead of charging ahead blindly.
73920         * lib/regex_internal.c (register_state): Likewise.
73921         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73922         for freeing internal storage.
73923         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73924         bitset pieces used as boolean, to avoid undefined behavior
73925         on hosts that do int overflow checking.
73926
73927 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * config/srclist.txt: Add glibc bugs 1285-1287.
73930
73931 2005-09-01  Jim Meyering  <jim@meyering.net>
73932
73933         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73934         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73935         Require gl_STAT_MACROS, too.
73936
73937 2005-09-01  Bruno Haible  <bruno@clisp.org>
73938
73939         * gnulib-tool (import): In the first-use case, provide defaults.
73940
73941 2005-09-01  Bruno Haible  <bruno@clisp.org>
73942
73943         * gnulib-tool (func_import): Remove the .tmp files.
73944
73945 2005-09-01  Bruno Haible  <bruno@clisp.org>
73946
73947         * gnulib-tool (func_import): Fix handling of symbolic links.
73948
73949 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73952         old glibc regex code mishandles strings longer than 2**31 bytes.
73953         This patch fixes this when the regex code is used in gnulib
73954         (i.e., outside glibc).
73955
73956         This patch should not affect the use of the regex code inside
73957         glibc.  No doubt this problem also needs to be handled for glibc
73958         as well, but the result will be an incompatible change to the
73959         glibc ABI, and the old ABI will have to be supported too.  That
73960         can be the the subject for another patch.
73961
73962         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73963         governing whether the rest of this patch is active.  By default,
73964         the macro is disabled and the patch has no effect.
73965         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73966         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73967         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73968         (re_match_2, re_set_registers): Use the new types.
73969         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73970         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73971         New macros.
73972         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73973         (re_string_context_at, bin_tree_t, re_dfastate_t):
73974         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73975         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73976         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73977         (re_string_char_size_at, re_string_wchar_at):
73978         (re_string_elem_size_at):
73979         Use the new types and macros to port to 64-bit hosts.
73980         Use unsigned types for internal values, so that the code
73981         mostly works even for arrays larger than SSIZE_MAX.
73982         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73983         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73984         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73985         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73986         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73987         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73988         (calc_inveclosure, parse_dup_op, build_range_exp):
73989         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73990         (fetch_number, create_token_tree, mark_opt_subexp):
73991         Likewise.
73992         * lib/regex_internal.c (re_string_construct_common,
73993         create_ci_newstate):
73994         (create_cd_newstate, re_string_allocate, re_string_construct):
73995         (re_string_realloc_buffers, build_wcs_upper_buffer):
73996         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73997         (re_string_reconstruct, re_string_peek_byte_case):
73998         (re_string_fetch_byte_case, re_string_context_at):
73999         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74000         (re_node_set_init_copy, re_node_set_add_intersect):
74001         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74002         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74003         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74004         (re_acquire_state, re_acquire_state_context, register_state):
74005         Likewise.
74006         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74007         search_cur_bkref_entry):
74008         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74009         (re_search_internal, re_search_2_stub, re_search_stub)
74010         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74011         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74012         (update_cur_sifted_state, check_dst_limits):
74013         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74014         (check_subexp_limits, sift_states_bkref, merge_state_array):
74015         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74016         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74017         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74018         (expand_bkref_cache, check_node_accept_bytes):
74019         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74020         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74021         (acquire_init_state_context, check_halt_node_context):
74022         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74023         (sift_states_backward, clean_state_log_if_needed):
74024         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74025         (find_recover_state, transit_state_sb, transit_state_mb):
74026         (transit_state_bkref, build_trtable, match_ctx_clean):
74027         Likewise.
74028         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74029         to work around an assumption that REG_MISSING is negative.
74030
74031         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74032         (seek_collating_symbol_entry) [defined _LIBC]:
74033         (lookup_collation_sequence_value) [defined _LIBC]:
74034         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74035         Use prototypes rather than old-style function definitions.
74036         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74037         (transit_state_sb) [0]:
74038         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74039
74040         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74041         rm_eo.
74042
74043         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74044         (optimize_subexps, lower_subexp):
74045         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74046         since the signed shift might overflow.  Use 1u<<31 instead.
74047         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74048         Likewise.
74049         * lib/regexec.c (check_dst_limits_calc_pos_1,
74050         check_subexp_matching_top): Likewise.
74051
74052         * lib/regcomp.c (optimize_subexps, lower_subexp):
74053         Use CHAR_BIT rather than 8, for clarity.
74054         * lib/regexec.c (check_dst_limits_calc_pos_1):
74055         (check_subexp_matching_top): Likewise.
74056         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74057         have to worry about portability issues when shifting it left.
74058         Remove no-longer-needed test for table_size > 0.
74059         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74060         in a word, as the resulting behavior is undefined.
74061         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74062         in one case, a <= should have been an <, and in another case the
74063         whole test was missing.
74064         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74065         the standard name CHAR_BIT.
74066         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74067         this is not true on one's complement and signed-magnitude hosts.
74068
74069         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74070         next_last_offset.
74071         (struct re_dfa_t): Remove unused member states_alloc.
74072         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74073
74074 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74077         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74078         and large-file glibc and in 32-bit large-file Solaris.
74079
74080 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74083         lengths fit in regoff_t; this isn't true if regoff_t is the same
74084         width as size_t.
74085         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74086         (= START + RANGE) instead of RANGE.  This avoids overflow
74087         problems when regoff_t is the same width as size_t.
74088         All callers changed.
74089         (re_search_2_stub): Check for overflow when adding the
74090         sizes of the two strings.
74091         (re_search_stub): Check for overflow when adding START
74092         to RANGE; if it occurs, substitute the extreme value.
74093
74094 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74097
74098 2005-08-31  Jim Meyering  <jim@meyering.net>
74099
74100         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74101         a pointer-to-const.
74102         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74103         (register_state): Likewise.
74104         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74105         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74106         (group_nodes_into_DFAstates): Likewise.
74107
74108 2005-08-31  Jim Meyering  <jim@meyering.net>
74109
74110         * check-module: Add a FIXME comment.
74111
74112 2005-08-31  Eric Blake  <ebb9@byu.net>
74113
74114         * modules/unistd-safer (Files): Add unistd--.h.
74115         * modules/stdio-safer (Files): Add stdio--.h.
74116
74117 2005-08-31  Derek Price  <derek@ximbiot.com>
74118
74119         * lib/getdelim.c (getdelim): Return EOF on EOF.
74120         Reported by Larry Jones <lawrence.jones@ugs.com>.
74121
74122 2005-08-31  Bruno Haible  <bruno@clisp.org>
74123
74124         Avoid unnecessary diffs in the generated lib/Makefile.am.
74125         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74126         the generated files.
74127         (func_import): Don't set cmd.
74128
74129 2005-08-31  Bruno Haible  <bruno@clisp.org>
74130
74131         * lib/strstr.c: Include <stddef.h>, for NULL.
74132         * lib/strcasestr.c: Likewise.
74133         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74134
74135 2005-08-31  Bruno Haible  <bruno@clisp.org>
74136
74137         * gnulib-tool: New option --macro-prefix.
74138         (func_import): Use macro_prefix.
74139         (import): Handle option --macro-prefix.
74140
74141 2005-08-31  Bruno Haible  <bruno@clisp.org>
74142
74143         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74144         Also use new variables cached_lgpl, cached_libtool.
74145
74146 2005-08-31  Bruno Haible  <bruno@clisp.org>
74147
74148         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74149         always instantiating them.
74150
74151 2005-08-31  Bruno Haible  <bruno@clisp.org>
74152
74153         * gnulib-tool (func_import): Read the previous cached settings
74154         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74155         earlier added by gnulib but are now dropped. Warn when a gnulib file
74156         overwrites a non-gnulib file.
74157
74158 2005-08-31  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74161         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74162         projects that don't keep autogenerated files in CVS. Put into
74163         actioncmd only the specified modules, not the transitive closure.
74164
74165 2005-08-31  Bruno Haible  <bruno@clisp.org>
74166
74167         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74168         Create directories that shall be filled.
74169         (import): Don't look for gl_* macros in configure.ac. Recurse across
74170         all directories containing a gnulib-cache.m4 files, if meaningful.
74171
74172 2005-08-31  Bruno Haible  <bruno@clisp.org>
74173
74174         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74175         (import): Set seen_libtool when we see gl_LIBTOOL.
74176
74177 2005-08-31  Bruno Haible  <bruno@clisp.org>
74178
74179         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74180         declaration macro definitions from generated gnulib.m4.
74181
74182 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74183
74184         * lib/iconvme.h: Add prototype for iconv_alloc.
74185
74186 2005-08-29  Simon Josefsson  <jas@extundo.com>
74187
74188         * lib/iconvme.c: Fix errno.
74189
74190 2005-08-29  Bruno Haible  <bruno@clisp.org>
74191
74192         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74193         that it works when the directory contains spaces.
74194
74195 2005-08-29  Bruno Haible  <bruno@clisp.org>
74196
74197         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74198
74199 2005-08-29  Bruno Haible  <bruno@clisp.org>
74200
74201         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74202         Emit more advice.
74203
74204 2005-08-29  Bruno Haible  <bruno@clisp.org>
74205         and Stepan Kasal  <kasal@ucw.cz>
74206
74207         * check-module: If more parameters are given, check each of them
74208         separately; add more exceptions, as noted by Jim Meyering.
74209         (check_module): New procedure.
74210         (%exempt_header): Now contains all exceptions.
74211
74212 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74213
74214         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74215
74216 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74217
74218         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74219
74220 2005-08-28  Bruno Haible  <bruno@clisp.org>
74221
74222         * m4/gnulib-tool.m4: New file.
74223
74224 2005-08-27  Jim Meyering  <jim@meyering.net>
74225
74226         * modules/unistd-safer (Files): Add pipe-safer.c.
74227         * modules/fcntl-safer (Files): Add creat-safer.c.
74228
74229 2005-08-27  Jim Meyering  <jim@meyering.net>
74230
74231         * m4/stdlib-safer.m4: New file.  From coreutils.
74232         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74233         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74234         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74235         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74236         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74237
74238 2005-08-27  Jim Meyering  <jim@meyering.net>
74239
74240         * lib/fopen-safer.c: Merge minor changes from coreutils.
74241         * lib/dup-safer.c: Likewise.
74242         * lib/fd-safer.c: Likewise.
74243
74244         Merge from coreutils.
74245         * lib/stdio--.h: New file.
74246         * lib/stdlib--.h: New file.
74247         * lib/mkstemp-safer.c: New file.
74248
74249         GNU tar needs these.
74250         * lib/pipe-safer.c: New file.
74251         * lib/creat-safer.c: New file.
74252         * lib/fcntl--.h (creat): Define to creat_safer.
74253         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74254         * lib/unistd--.h (pipe): Define to pipe_safer.
74255         * lib/unistd-safer.h: Declare pipe_safer.
74256
74257 2005-08-26  Simon Josefsson  <jas@extundo.com>
74258
74259         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74260         Haible <bruno@clisp.org>.
74261
74262 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         * lib/regex_internal.h: Remove all references to
74265         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74266         or better.
74267         (bitset_not, bitset_merge, bitset_not_merge):
74268         (bitset_mask, re_string_allocate, re_string_construct):
74269         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74270         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74271         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74272         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74273         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74274         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74275         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74276         (re_acquire_state_context):
74277         Remove unnecessary forward decls.
74278         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74279         Put __attribute at function definition,
74280         now that the function decl has been removed.
74281         * lib/regex_internal.c (re_string_peek_byte_case):
74282         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74283         Likewise.
74284
74285 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74286
74287         * m4/regex.m4: Add AC_PREREQ(2.50).
74288         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74289
74290 2005-08-25  Simon Josefsson  <jas@extundo.com>
74291
74292         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74293         __fsetlocking.
74294
74295 2005-08-25  Simon Josefsson  <jas@extundo.com>
74296
74297         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74298         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74299         GLIBC specific code.
74300
74301 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         Make regex safe for g++.  This fixes one real bug (an "err"
74304         that should have been "*err").  g++ problem reported by
74305         Sam Steingold.
74306         * lib/regex_internal.h (re_calloc): New macro, consistent with
74307         re_malloc etc.  All callers of calloc changed to use re_calloc.
74308         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74309         not int.  All callers changed.
74310         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74311         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74312         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74313         (find_recover_state): Change "err" to "*err"; this fixes what
74314         appears to be a real bug.
74315         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74316         versus int.
74317
74318 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74319
74320         * modules/regex (Depends-on): Add malloc, since the code
74321         assumes that !malloc(0) means failure.
74322
74323 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74326
74327         alloca modernization/simplification for regex.
74328         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74329         needs to be at the start of the file, and can be moved into
74330         regex_internal.h and simplified.
74331         * lib/regex_internal.h: Include <alloca.h>.
74332         (__libc_use_alloca) [!defined _LIBC]: New macro.
74333         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74334         now works outside glibc.
74335
74336 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74337
74338         * config/srclist.txt: Add glibc bugs 1241, 1245.
74339
74340 2005-08-25  Jim Meyering  <jim@meyering.net>
74341
74342         * lib/open-safer.c: Include <config.h>.
74343         Otherwise, we'd lose LARGEFILE support in any file using
74344         e.g. "fcntl--.h"
74345
74346 2005-08-25  Bruno Haible  <bruno@clisp.org>
74347
74348         * m4/minmax.m4: Require autoconf 2.52.
74349         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74350         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74351         alternatives of translit over the alphabet.
74352         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74353
74354 2005-08-24  Simon Josefsson  <jas@extundo.com>
74355
74356         * tests/test-getpass.c: New file.
74357
74358 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74361         for GNU regex features.
74362
74363 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74364
74365         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74366         * lib/regex.h (regerror): Likewise.
74367
74368         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74369         requires this.  (The code never needed it.)
74370
74371         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74372         All uses of recently-renamed identifiers changed to use the new,
74373         POSIX-compliant names.  The code will build and run just fine
74374         without these changes, but it's better to eat our own dog food
74375         and use the standard-conforming names.
74376
74377         * lib/regex.h: Fix a multitude of POSIX name space violations.
74378         These changes have an effect only for programs that define
74379         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74380         do not change anything for programs compiled in the normal way.
74381         Also, there is no effect on the ABI.
74382
74383         (_REGEX_SOURCE): New macro.
74384         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74385         defined and _GNU_SOURCE is not; this fixes a name space violation.
74386
74387         Rename the following macros to obey POSIX requirements.
74388         The old names are still visible as macros if _REGEX_SOURCE is defined.
74389         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74390         RE_BACKSLASH_ESCAPE_IN_LISTS.
74391         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74392         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74393         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74394         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74395         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74396         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74397         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74398         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74399         (REG_INTERVALS): renamed from RE_INTERVALS.
74400         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74401         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74402         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74403         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74404         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74405         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74406         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74407         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74408         RE_UNMATCHED_RIGHT_PAREN_ORD.
74409         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74410         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74411         (REG_DEBUG): renamed from RE_DEBUG.
74412         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74413         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74414         unusual, since we can't clash with the POSIX REG_ICASE.
74415         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74416         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74417         (REG_NO_SUB): renamed from RE_NO_SUB.
74418         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74419         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74420         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74421         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74422         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74423         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74424         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74425         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74426         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74427         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74428         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74429         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74430         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74431         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74432         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74433         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74434         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74435         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74436         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74437         (REG_FIXED): Renamed from REGS_FIXED.
74438         (REG_NREGS): Renamed from RE_NREGS.
74439
74440         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74441         of other REG_* macros, since POSIX says the user is allowed to
74442         #undef these macros selectively.
74443
74444         (reg_errcode_t): Update comment stating what other tables need
74445         to be consistent.
74446
74447         Rename the following enum values to obey POSIX requirements.
74448         The old names are still visible as macros.
74449         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74450         is not defined, since GNU is supposed to be a superset of POSIX as
74451         much as possible, and since we want reg_errcode_t to be a signed
74452         type for implementation consistency.
74453         (_REG_NOERROR): Renamed from REG_NOERROR.
74454         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74455         (_REG_BADPAT): Renamed from REG_BADPAT.
74456         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74457         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74458         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74459         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74460         (_REG_EBRACK): Renamed from REG_EBRACK.
74461         (_REG_EPAREN): Renamed from REG_EPAREN.
74462         (_REG_EBRACE): Renamed from REG_EBRACE.
74463         (_REG_BADBR): Renamed from REG_BADBR.
74464         (_REG_ERANGE): Renamed from REG_ERANGE.
74465         (_REG_ESPACE): Renamed from REG_ESPACE.
74466         (_REG_BADRPT): Renamed from REG_BADRPT.
74467         (_REG_EEND): Renamed from REG_EEND.
74468         (_REG_ESIZE): Renamed from REG_ESIZE.
74469         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74470         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74471         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74472         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74473         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74474
74475         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74476         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74477         changed.  But support the old name if the new one is not defined
74478         and if _REGEX_SOURCE.
74479
74480         Change the following member names in struct re_pattern_buffer.
74481         The old names are still supported if !_REGEX_SOURCE.
74482         The new names are always supported, regardless of _REGEX_SOURCE.
74483         (re_buffer): Renamed from buffer.
74484         (re_allocated): Renamed from allocated.
74485         (re_used): Renamed from used.
74486         (re_syntax): Renamed from syntax.
74487         (re_fastmap): Renamed from fastmap.
74488         (re_translate): Renamed from translate.
74489         (re_can_be_null): Renamed from can_be_null.
74490         (re_regs_allocated): Renamed from regs_allocated.
74491         (re_fastmap_accurate): Renamed from fastmap_accurate.
74492         (re_no_sub): Renamed from no_sub.
74493         (re_not_bol): Renamed from not_bol.
74494         (re_not_eol): Renamed from not_eol.
74495         (re_newline_anchor): Renamed from newline_anchor.
74496
74497         Change the following member names in struct re_registers.
74498         The old names are still supported if !_REGEX_SOURCE.
74499         The new names are always supported, regardless of _REGEX_SOURCE.
74500         (rm_num_regs): Renamed from num_regs.
74501         (rm_start): Renamed from start.
74502         (rm_end): Renamed from end.
74503
74504         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74505         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74506         Prepend __ to parameter names.
74507
74508         Undo yesterday's changes.
74509
74510 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74513         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74514         lib/regex.c.
74515
74516 2005-08-24  Jim Meyering  <jim@meyering.net>
74517
74518         Sync from coreutils.
74519         * m4/fcntl-safer.m4: New file.
74520
74521         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74522         and object files for this module.
74523
74524 2005-08-24  Jim Meyering  <jim@meyering.net>
74525
74526         Sync from coreutils.
74527         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74528
74529 2005-08-24  Jim Meyering  <jim@meyering.net>
74530
74531         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74532         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74533
74534 2005-08-24  Jim Meyering  <jim@meyering.net>
74535
74536         * modules/fcntl-safer: New module.
74537         * modules/fts (Depends-on): Add fcntl-safer.
74538         * MODULES.html.sh (File descriptor based Input/Output):
74539         Add fcntl-safer.
74540
74541 2005-08-24  Bruno Haible  <bruno@clisp.org>
74542
74543         Support for unit test modules.
74544         * modules/README: Mention tests modules.
74545         * modules/TEMPLATE-TESTS: New file.
74546         * gnulib-tool: New options --extract-tests-module, --with-tests and
74547         --tests-base (unused for the moment).
74548         (testsbase, inctests): New variables.
74549         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74550         (func_verify_module): Exclude TEMPLATE-TESTS.
74551         (func_verify_nontests_module, func_verify_tests_module): New functions.
74552         (func_get_dependencies): Add implicit dependency for tests modules.
74553         (func_get_tests_module): New function.
74554         (func_modules_transitive_closure): When --with-tests was specified,
74555         include the unit tests as well, unless explicitly avoided.
74556         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74557         (func_emit_tests_Makefile_am): New function.
74558         (func_create_testdir): When --with-tests was specified, emit a
74559         tests/ directory.
74560         * MODULES.html.sh (Future developments): Update.
74561
74562 2005-08-24  Bruno Haible  <bruno@clisp.org>
74563
74564         * modules/tls-tests: New file.
74565         * tests/test-tls.c: New file, from GNU gettext.
74566
74567 2005-08-24  Bruno Haible  <bruno@clisp.org>
74568
74569         * modules/lock-tests: New file.
74570         * tests/test-lock.c: New file, from GNU gettext.
74571
74572 2005-08-24  Bruno Haible  <bruno@clisp.org>
74573
74574         * lib/lock.h: Add multiple inclusion guard.
74575         * lib/tls.h: Add multiple inclusion guard.
74576
74577 2005-08-24  Bruno Haible  <bruno@clisp.org>
74578
74579         * gnulib-tool: Add support for the --aux-dir option to
74580         --create-testdir, --create-megatestdir, --test, --megatest.
74581         (func_create_testdir, func_create_megatestdir): Optionally emit a
74582         AC_CONFIG_AUX_DIR directive.
74583         (create-testdir, create-megatestdir, test, megatest): Provide a
74584         default value for $auxdir.
74585
74586 2005-08-24  Bruno Haible  <bruno@clisp.org>
74587
74588         * gnulib-tool (import): Use compound statement instead of subshell
74589         where possible.
74590
74591 2005-08-24  Bruno Haible  <bruno@clisp.org>
74592
74593         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74594
74595 2005-08-24  Bruno Haible  <bruno@clisp.org>
74596
74597         * gnulib-tool (func_version): Update.
74598
74599 2005-08-24  Bruno Haible  <bruno@clisp.org>
74600
74601         * gnulib-tool (func_import, func_create_testdir,
74602         func_create_megatestdir): Quote all autoconf macro arguments.
74603
74604 2005-08-24  Bruno Haible  <bruno@clisp.org>
74605
74606         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74607         option --force, because --force causes the aclocal.m4 of each
74608         subdirectory to be newer than the corresponding config.h.in.
74609
74610 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74611
74612         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74613         All contents moved to gl_REGEX.
74614         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74615         assume that it does.
74616
74617 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         * lib/regex.h (REG_NOSYS)
74620         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74621         Define, since POSIX requires it as of 2001.
74622         (_REG_ENOSYS)
74623         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74624         New private symbol, used to keep the enum signed in all cases.
74625         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74626         Youngman in
74627         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74628
74629         * lib/regex_internal.c (re_string_skip_chars, register_state):
74630         (calc_state_hash):
74631         Remove forward decls; no longer needed now that we use prototypes.
74632         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74633         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74634         (clean_state_log_if_needed): Likewise.
74635
74636 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74637
74638         * config/srclist.txt: Add glibc bugs 1231-1233.
74639
74640 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         Fix problems reported by Sam Steingold in
74643         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74644         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74645         assumed that reg_errcode_t is a signed type, which is not
74646         necessarily true if _XOPEN_SOURCE is not defined.
74647         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74648         since some compilers warn about it otherwise.
74649
74650 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74653         (init_word_char, create_initial_state, duplicate_node_closure):
74654         (fetch_token, peek_token_bracket, build_range_exp):
74655         (build_collating_symbol): Remove forward decls; no longer needed
74656         now that we use prototypes.
74657
74658         * lib/regcomp.c:
74659         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74660         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74661         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74662         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74663         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74664         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74665         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74666         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74667         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74668         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74669         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74670         (build_charclass, build_charclass_op, fetch_number, create_tree):
74671         (create_token_tree, mark_opt_subexp, duplicate_tree):
74672         Use prototypes rather than old-style definitions.
74673
74674         * lib/regex_internal.c:
74675         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74676         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74677         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74678         (re_string_reconstruct, re_string_peek_byte_case):
74679         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74680         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74681         (re_node_set_init_copy, re_node_set_add_intersect):
74682         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74683         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74684         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74685         (re_acquire_state, re_acquire_state_context, register_state):
74686         (create_ci_newstate, create_cd_newstate, free_state):
74687         Likewise.
74688         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74689         re_search_2):
74690         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74691         (re_search_internal, prune_impossible_nodes):
74692         (acquire_init_state_context, check_matching, static):
74693         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74694         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74695         (update_regs, sift_states_backward, build_sifted_states):
74696         (clean_state_log_if_needed, merge_state_array):
74697         (update_cur_sifted_state, add_epsilon_src_nodes):
74698         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74699         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74700         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74701         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74702         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74703         (check_arrival, check_arrival_add_next_nodes):
74704         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74705         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74706         (check_node_accept_bytes, check_node_accept, extend_buffers):
74707         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74708         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74709         (sift_ctx_init):
74710         Likewise.
74711
74712         * lib/regex_internal.h:
74713         (re_string_allocate, re_string_construct, re_string_reconstruct):
74714         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74715         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74716         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74717         (re_string_context_at, re_string_peek_byte_case):
74718         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74719         is defined, since we now use prototypes always.
74720
74721         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74722         C89 or better.  All uses removed.
74723
74724 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         * config/srclist.txt: Add glibc bugs 1220-1227.
74727
74728 2005-08-20  Jim Meyering  <jim@meyering.net>
74729
74730         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74731         of unused local, dfa.
74732
74733 2005-08-20  Bruno Haible  <bruno@clisp.org>
74734
74735         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74736
74737 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74740         (re_node_set_insert_last, re_dfa_add_node):
74741         Rename local variables to avoid GCC shadowing warnings.
74742
74743 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74744
74745         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74746         [defined lint]: Suppress bogus uninitialized-variable warnings.
74747
74748         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74749         and let the caller return REG_ESPACE if out of space.  This
74750         removes an uninitialied-variable warning with GCC 4.0.1, and also
74751         avoids taking the address of a local variable.  All callers
74752         changed.
74753
74754 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74757         $LIBCSRC/posix/regexec.c.
74758         Add glibc bug 1217 for regcomp.c.
74759
74760 2005-08-19  Jim Meyering  <jim@meyering.net>
74761
74762         * lib/regexec.c (proceed_next_node): Redo local variables to
74763         avoid GCC shadowing warnings.
74764
74765 2005-08-18  Bruno Haible  <bruno@clisp.org>
74766
74767         * lib/strstr.c (strstr): Fix return value in multibyte case.
74768         * lib/strcasestr.c (strcasestr): Likewise.
74769
74770 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74771
74772         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74773
74774 2005-08-17  Jim Meyering  <jim@meyering.net>
74775
74776         Make the %s format (seconds since the epoch) work for a negative
74777         number and when used with a zero-padded field width, e.g. %015s.
74778
74779         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74780         label so that it precedes the code to set `digits'.  Otherwise,
74781         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74782         print `00-22'.  Now, it prints `-0022', as it should.
74783
74784 2005-08-17  Bruno Haible  <bruno@clisp.org>
74785
74786         * modules/strstr (Files): Add m4/mbrtowc.m4.
74787         (Depends-on): Add mbuiter.
74788
74789 2005-08-17  Bruno Haible  <bruno@clisp.org>
74790
74791         * modules/strcasestr: New file.
74792         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74793         strcasestr.
74794
74795 2005-08-17  Bruno Haible  <bruno@clisp.org>
74796
74797         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74798
74799 2005-08-17  Bruno Haible  <bruno@clisp.org>
74800
74801         * modules/mbuiter: New file.
74802         * MODULES.html.sh (Extended multibyte and wide character utilities):
74803         Add mbuiter.
74804
74805 2005-08-17  Bruno Haible  <bruno@clisp.org>
74806
74807         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74808         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74809
74810 2005-08-17  Bruno Haible  <bruno@clisp.org>
74811
74812         * m4/strcasestr.m4: New file.
74813
74814 2005-08-17  Bruno Haible  <bruno@clisp.org>
74815
74816         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74817         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74818
74819 2005-08-17  Bruno Haible  <bruno@clisp.org>
74820
74821         * lib/strcasestr.h: New file.
74822         * lib/strcasestr.c: New file.
74823
74824 2005-08-17  Bruno Haible  <bruno@clisp.org>
74825
74826         * lib/strcasecmp.c: Use mbuiter.h.
74827
74828 2005-08-17  Bruno Haible  <bruno@clisp.org>
74829
74830         * lib/mbuiter.h: New file.
74831
74832 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74835         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74836         and gl_GETOPT are both invoked via different paths (as happens
74837         with GNU tar CVS because it uses both argp and getopt), the former
74838         wins.
74839
74840 2005-08-16  Bruno Haible  <bruno@clisp.org>
74841
74842         * modules/tls: New file.
74843         * MODULES.html.sh (Multithreading): Add tls.
74844
74845 2005-08-16  Bruno Haible  <bruno@clisp.org>
74846
74847         * modules/strnlen1: New file.
74848         * MODULES.html.sh (String handling): Add strnlen1.
74849
74850 2005-08-16  Bruno Haible  <bruno@clisp.org>
74851
74852         * modules/strcase (Files): Add m4/mbrtowc.m4.
74853         (Depends-on): Add strnlen1, mbchar.
74854
74855 2005-08-16  Bruno Haible  <bruno@clisp.org>
74856
74857         * modules/mbiter: New file.
74858         * MODULES.html.sh (Extended multibyte and wide character utilities):
74859         Add mbiter.
74860
74861 2005-08-16  Bruno Haible  <bruno@clisp.org>
74862
74863         * modules/mbfile: New file.
74864         * MODULES.html.sh (Extended multibyte and wide character utilities):
74865         Add mbfile.
74866
74867 2005-08-16  Bruno Haible  <bruno@clisp.org>
74868
74869         * modules/mbchar: New file.
74870         * MODULES.html.sh (Extended multibyte and wide character utilities):
74871         New section.
74872
74873 2005-08-16  Bruno Haible  <bruno@clisp.org>
74874
74875         * m4/tls.m4: New file, from GNU gettext.
74876
74877 2005-08-16  Bruno Haible  <bruno@clisp.org>
74878
74879         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74880         always.
74881         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74882
74883 2005-08-16  Bruno Haible  <bruno@clisp.org>
74884
74885         * m4/mbiter.m4: New file.
74886
74887 2005-08-16  Bruno Haible  <bruno@clisp.org>
74888
74889         * m4/mbfile.m4: New file.
74890
74891 2005-08-16  Bruno Haible  <bruno@clisp.org>
74892
74893         * m4/mbchar.m4: New file.
74894
74895 2005-08-16  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/tls.h: New file, from GNU gettext.
74898         * lib/tls.c: New file, from GNU gettext.
74899
74900 2005-08-16  Bruno Haible  <bruno@clisp.org>
74901
74902         * lib/strnlen1.h: New file.
74903         * lib/strnlen1.c: New file.
74904
74905 2005-08-16  Bruno Haible  <bruno@clisp.org>
74906
74907         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74908         (mbi_init): Update.
74909         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74910         NUL byte, not after it.
74911
74912 2005-08-16  Bruno Haible  <bruno@clisp.org>
74913
74914         * lib/strcase.h (strcasecmp): Add note in comments.
74915         * lib/strncasecmp.c: Use code from strcasecmp.c.
74916         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74917         (strcasecmp): Work correctly in multibyte locales.
74918
74919 2005-08-16  Bruno Haible  <bruno@clisp.org>
74920
74921         * lib/mbiter.h: New file.
74922
74923 2005-08-16  Bruno Haible  <bruno@clisp.org>
74924
74925         * lib/mbfile.h: New file.
74926
74927 2005-08-16  Bruno Haible  <bruno@clisp.org>
74928
74929         * lib/mbchar.h: New file.
74930         * lib/mbchar.c: New file.
74931
74932 2005-08-16  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74935         the valid ones. Makes the comparison operations transitive:
74936         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74937         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74938
74939 2005-08-15  Simon Josefsson  <jas@extundo.com>
74940
74941         * modules/ssize_t (License): Change to 'unlimited'.
74942
74943         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74944
74945 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74948         Add comments for each pending glibc patch.
74949
74950 2005-08-15  Bruno Haible  <bruno@clisp.org>
74951
74952         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74953         __cplusplus is defined.
74954
74955 2005-08-14  Jim Meyering  <jim@meyering.net>
74956
74957         Sync from coreutils.
74958
74959         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74960         Use the hash-table-based cycle-detection code not just when
74961         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74962         Reported by James Youngman in
74963         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74964         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74965         FTS_TIGHT_CYCLE_CHECK.
74966         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74967         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74968         once again.
74969         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74970         * lib/fts.c (fd_safer): Remove decl.
74971         Include fcntl--.h rather than unistd-safer.h
74972         (fts_safe_changedir): Don't call fd_safer; no longer needed
74973         now that we include fcntl--.h.
74974
74975 2005-08-12  Simon Josefsson  <jas@extundo.com>
74976
74977         * modules/getndelim2: Use ssize_t module.
74978         * modules/getnline: Likewise.
74979         * modules/safe-read: Likewise.
74980         * modules/xreadlink: Likewise.
74981
74982         * modules/ssize_t: New file.
74983
74984 2005-08-12  Simon Josefsson  <jas@extundo.com>
74985
74986         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74987
74988 2005-08-12  Simon Josefsson  <jas@extundo.com>
74989
74990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74991         ssize_t.
74992
74993 2005-08-12  Simon Josefsson  <jas@extundo.com>
74994
74995         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74996         readline, getdelim and check_version.
74997         (Support for systems lacking ISO C 99: Sizes of integer types):
74998         Add size_max.
74999
75000 2005-08-12  Bruno Haible  <bruno@clisp.org>
75001
75002         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75003
75004 2005-08-11  Simon Josefsson  <jas@extundo.com>
75005
75006         * modules/readline: New file.
75007
75008         * modules/strnlen (Files): Add strnlen.h.
75009
75010 2005-08-11  Simon Josefsson  <jas@extundo.com>
75011
75012         * m4/readline.m4: New file.
75013
75014 2005-08-11  Simon Josefsson  <jas@extundo.com>
75015
75016         * lib/readline.h, readline.c: New file.
75017
75018 2005-08-11  Simon Josefsson  <jas@extundo.com>
75019
75020         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75021         gl_AVOID.
75022
75023 2005-08-11  Bruno Haible  <bruno@clisp.org>
75024
75025         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75026
75027 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75028
75029         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75030
75031 2005-08-10  Simon Josefsson  <jas@extundo.com>
75032
75033         * tests/test-iconvme.c: New file.
75034
75035 2005-08-10  Simon Josefsson  <jas@extundo.com>
75036
75037         * m4/strnlen.m4: New file.
75038
75039         * m4/strndup.m4: Don't check for strnlen declaration, done in
75040         strnlen.m4.
75041
75042 2005-08-10  Simon Josefsson  <jas@extundo.com>
75043
75044         * lib/strndup.c: Use strnlen.h.
75045
75046         * lib/strnlen.h: New file.
75047
75048 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75049
75050         * README: Typos.
75051
75052 2005-08-02  Simon Josefsson  <jas@extundo.com>
75053
75054         * modules/readline: New file.
75055
75056 2005-08-02  Simon Josefsson  <jas@extundo.com>
75057
75058         * modules/getdelim: New file.
75059
75060         * modules/getline: Rewrite, don't use getndelim2.
75061
75062 2005-08-02  Simon Josefsson  <jas@extundo.com>
75063
75064         * m4/getline.m4: Separate out getdelim stuff into separate module.
75065
75066         * m4/getdelim.m4: New file.
75067
75068 2005-08-02  Simon Josefsson  <jas@extundo.com>
75069
75070         * lib/getline.h, getline.c: Rewrite.
75071
75072         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75073
75074 2005-07-31  Bruno Haible  <bruno@clisp.org>
75075
75076         * lib/lock.h (gl_lock_initializer): New macro.
75077         (gl_lock_define_initialized): Use it.
75078         (gl_rwlock_initializer): New macro.
75079         (gl_rwlock_define_initialized): Use it.
75080         (gl_recursive_lock_initializer): New macro.
75081         (gl_recursive_lock_define_initialized): Use it.
75082
75083 2005-07-30  Karl Berry  <karl@gnu.org>
75084
75085         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75086         Report from Ben Pfaff, regarding getopt.
75087
75088 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75091         normal way.
75092         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75093         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75094         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75095         (gl_GETOPT): Use the new macros.  Most of the implementation
75096         is moved to the new macros.  This is for programs like Emacs
75097         that don't want all the functionality of gl_GETOPT.
75098
75099 2005-07-26  Bruno Haible  <bruno@clisp.org>
75100
75101         * m4/lock.m4: Update from GNU gettext.
75102
75103 2005-07-26  Bruno Haible  <bruno@clisp.org>
75104
75105         * lib/lock.h: Update from GNU gettext.
75106         * lib/lock.c: Update from GNU gettext.
75107
75108 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75111         obsolescent AC_TRY_RUN.  Include the default includes files, for
75112         'exit'.
75113
75114 2005-07-24  Bruno Haible  <bruno@clisp.org>
75115
75116         * modules/visibility: New file.
75117         * MODULES.html.sh (Misc): Add visibility.
75118
75119 2005-07-24  Bruno Haible  <bruno@clisp.org>
75120
75121         * m4/visibility.m4: New file.
75122
75123 2005-07-24  Bruno Haible  <bruno@clisp.org>
75124
75125         * doc/visibility.texi: New file.
75126
75127 2005-07-22  Bruno Haible  <bruno@clisp.org>
75128
75129         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75130         $(ALLOCA_H), redundant through BUILT_SOURCES.
75131         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75132         redundant through BUILT_SOURCES.
75133         * modules/byteswap (Makefile.am): Remove explicit dependency on
75134         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75135         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75136         $(FNMATCH_H), redundant through BUILT_SOURCES.
75137         * modules/getopt (Makefile.am): Remove explicit dependency on
75138         $(GETOPT_H), redundant through BUILT_SOURCES.
75139         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75140         redundant through BUILT_SOURCES.
75141         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75142         redundant through BUILT_SOURCES.
75143         * modules/stdbool (Makefile.am): Remove explicit dependency on
75144         $(STDBOOL_H), redundant through BUILT_SOURCES.
75145         * modules/stdint (Makefile.am): Remove explicit dependency on
75146         $(STDINT_H), redundant through BUILT_SOURCES.
75147         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75148         Remove explicit dependency on $(SYSEXITS_H).
75149         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75150
75151 2005-07-18  Simon Josefsson  <jas@extundo.com>
75152
75153         * lib/check-version.c (check_version): Accept identical versions too.
75154
75155 2005-07-18  Bruno Haible  <bruno@clisp.org>
75156
75157         * modules/lock: New file.
75158         * MODULES.html.sh (Multithreading): New section.
75159
75160 2005-07-18  Bruno Haible  <bruno@clisp.org>
75161
75162         * m4/lock.m4: New file, from GNU gettext.
75163
75164 2005-07-18  Bruno Haible  <bruno@clisp.org>
75165
75166         * lib/lock.h: New file, from GNU gettext.
75167         * lib/lock.c: New file, from GNU gettext.
75168
75169 2005-07-18  Bruno Haible  <bruno@clisp.org>
75170
75171         * lib/lock.h (gl_once_t): New type.
75172         (gl_once_define, gl_once): New macros.
75173         * lib/lock.c (fresh_once): New variable.
75174         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75175         functions.
75176
75177 2005-07-16  Simon Josefsson  <jas@extundo.com>
75178
75179         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75180         workaround, suggested by Bruno.
75181
75182 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75183
75184         * modules/xalloc (Depends-on): Add xalloc-die.
75185         * modules/xvasprintf (Depends-on): Add xalloc-die.
75186
75187 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75190         with a minor change.
75191
75192 2005-07-15  Bruno Haible  <bruno@clisp.org>
75193
75194         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75195         When using lib/poll.c, define poll as rpl_poll.
75196
75197 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * modules/argp (Depends-on): Remove unlocked-io.
75200
75201 2005-07-14  Derek Price  <derek@ximbiot.com>
75202
75203         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75204         for glob symlink bug.
75205
75206 2005-07-14  Bruno Haible  <bruno@clisp.org>
75207
75208         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75209         Instead, test for *_unlocked function declarations directly.
75210
75211 2005-07-11  Simon Josefsson  <jas@extundo.com>
75212
75213         * modules/size_max: New file.
75214
75215         * modules/xsize: Depend on size_max module for size_max.m4.
75216
75217 2005-07-11  Simon Josefsson  <jas@extundo.com>
75218
75219         * lib/size_max.h: New file.
75220
75221 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75224         copyright symbol and the year.
75225         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75226         (version_etc_va): Use parameterized copyright notice.
75227         Reword to conform to the current GNU coding standards.
75228
75229 2005-07-11  Karl Berry  <karl@gnu.org>
75230
75231         * doc/gnulib.texi (Quoting): new node.
75232         (Initial import): more info, from Patrice.
75233
75234 2005-07-11  Bruno Haible  <bruno@clisp.org>
75235
75236         * gnulib-tool (func_usage): Document option --avoid.
75237         (Command line options): Handle --avoid.
75238         (func_acceptable): New function.
75239         (func_modules_transitive_closure): Use it.
75240
75241 2005-07-11  Bruno Haible  <bruno@clisp.org>
75242
75243         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75244         Reported by Jim Meyering.
75245
75246 2005-07-10  Bruno Haible  <bruno@clisp.org>
75247
75248         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75249         Needed when size_t is smaller than 'unsigned int'.
75250         Reported by Paul Eggert.
75251
75252 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75253
75254         * modules/argp (Depends-on): Add unlocked-io
75255
75256 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75257
75258         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75259         block of defines.
75260
75261 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75262
75263         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75264         fix now.
75265
75266 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75267         and Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75270         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75271
75272 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * modules/regex (Files): Add lib/regex_internal.c,
75275         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75276         (Depends-on): Add extensions.
75277         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75278
75279 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75280
75281         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75282         pathconf.
75283         * m4/same.m4 (gl_SAME): Likewise.
75284         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75285
75286         * m4/regex.m4: Adjust to new libc regex implementation.
75287         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75288         all the .c and .h parts of (the new) regex.
75289         Quote the m4 stuff better.
75290         Check for RE_ICASE bug of old gnulib.
75291         Check for REG_STARTEND of recent libc.
75292         Rename local variables from jm_* to gl_*.
75293         Quote operand of "test -f".
75294         Say "recent enough" version of libc, not "version 2".
75295         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75296         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75297         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75298         Remove check for btowc, isascii.
75299         Require AM_LANGINFO_CODESET.
75300
75301 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75302
75303         * lib/regex.c, regex.h: Sync from libc.
75304         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75305         * lib/regexec.c:
75306         New files, synced from libc, except that regex_internal.h
75307         currently has a small porting fix.
75308
75309 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75312         regex_internal.c, regexec.c.
75313         Add regex_internal.h too, but as a comment, since the libc version
75314         is currently broken in gnulib mode.
75315
75316 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         Support programs like Emacs that use gnulib but not gettext.
75319         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75320         * modules/gettext-h: New file.
75321         * modules/gettext (Files): Remove lib/gettext.h.
75322         (Depends-on): Add gettext-h.
75323         (Makefile.am): Remove lib_SOURCES.
75324         * modules/argmatch, modules/c-stack, modules/closeout:
75325         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75326         * modules/execute, modules/file-type, modules/getaddrinfo:
75327         * modules/getopt, modules/human, modules/javacomp:
75328         * modules/javaexec, modules/mkdir-p, modules/obstack:
75329         * modules/openat, modules/pagealign_alloc, modules/pipe:
75330         * modules/quotearg, modules/regex, modules/rpmatch:
75331         * modules/unicodeio, modules/userspec, modules/version-etc:
75332         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75333         * modules/xsetenv:
75334         Depend on gettext-h, not gettext.
75335
75336 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * gnulib-tool (func_import): Add support for 'public domain' license.
75339         * modules/alloca, modules/atexit, modules/memmove:
75340         Now public domain, not GPL.
75341         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75342         * modules/realloc, modules/strerror, modules/strtod:
75343         Now LGPL, not GPL.
75344
75345 2005-07-05  Bruno Haible  <bruno@clisp.org>
75346
75347         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75348         autoconf CVS. Needed for mingw.
75349
75350 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         Remove the dependency of the strftime module on the tzset module.
75353         * modules/strftime (Depends-on): Remove dependency on tzset.
75354
75355 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75356
75357         Remove the dependency of the strftime module on the tzset module.
75358         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75359         gl_FUNC_TZSET_CLOBBER.
75360
75361 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         Remove the dependency of the strftime module on the tzset module.
75364         * lib/strftime.c (my_strftime)
75365         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75366         Copy the input structure, to work around some of the bug with
75367         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75368         Solaris releases, you should also use the tzset module, but we won't
75369         require it as a dependency any more since we don't want LGPLed code
75370         to depend on GPLed code.
75371
75372 2005-07-02  Jim Meyering  <jim@meyering.net>
75373
75374         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75375         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75376         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75377         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75378
75379 2005-07-02  Jim Meyering  <jim@meyering.net>
75380
75381         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75382
75383 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75386         declares only 'struct timespec;' (!).
75387
75388 2005-07-01  Jim Meyering  <jim@meyering.net>
75389
75390         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75391         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75392         * lib/save-cwd.c, tempname.c:
75393         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75394         and don't include <sys/file.h>).
75395
75396 2005-06-29  Jim Meyering  <jim@meyering.net>
75397
75398         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75399         type name.  Use the variable name instead.
75400         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75401         Likewise.
75402
75403 2005-06-28  Simon Josefsson  <jas@extundo.com>
75404
75405         * modules/check-version (Files): Add check-version.m4.
75406
75407 2005-06-28  Simon Josefsson  <jas@extundo.com>
75408
75409         * m4/check-version.m4: New file, suggested by Jim Meyering
75410         <jim@meyering.net>.
75411
75412 2005-06-28  Simon Josefsson  <jas@extundo.com>
75413
75414         * lib/check-version.h, lib/check-version.c: New files.
75415
75416 2005-06-28  Simon Josefsson  <jas@extundo.com>
75417
75418         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75419         collision with global variable.  Better indentation.  Don't
75420         increment buffer pointer beyond buffer end.  Based on comments
75421         from Paul Eggert <eggert@cs.ucla.edu>.
75422
75423         * lib/base64.h: Indent.
75424
75425 2005-06-28  Simon Josefsson  <jas@extundo.com>
75426
75427         * doc/gnulib.texi (Library version handling): New section.
75428
75429 2005-06-28  Jim Meyering  <jim@meyering.net>
75430
75431         * check-module (find_included_lib_files): Hard-code another
75432         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75433         but modules/fts-lgpl (correctly) does not list those files.
75434
75435         * modules/canonicalize (Files): Add lib/pathmax.h.
75436
75437 2005-06-25  Simon Josefsson  <jas@extundo.com>
75438
75439         * modules/check-version: New file.
75440
75441 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75442
75443         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75444         initializer of struct addrinfo, as an indication that we don't
75445         care how many members the structure has.
75446
75447 2005-06-24  Derek Price  <derek@ximbiot.com>
75448         and Bruno Haible  <bruno@clisp.org>
75449
75450         Remove stat module & update lstat.
75451         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75452         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75453         * m4/stat.m4: Remove this file.
75454
75455 2005-06-24  Derek Price  <derek@ximbiot.com>
75456         and Bruno Haible  <bruno@clisp.org>
75457
75458         Remove stat module & update lstat.
75459         * lib/stat.c: Remove this file...
75460         (slash_aware_lstat): ...moving this content and its support...
75461         * lib/lstat.c (rpl_lstat): ...into here.
75462         * lib/lstat.h: New file.
75463
75464 2005-06-24  Derek Price  <derek@ximbiot.com>
75465         and Bruno Haible  <bruno@clisp.org>
75466
75467         Remove stat module & update lstat.
75468         * config/srclist.txt (libc sources): Remove stat.
75469
75470 2005-06-24  Derek Price  <derek@ximbiot.com>
75471         and Bruno Haible  <bruno@clisp.org>
75472
75473         Remove stat module & update lstat.
75474         * MODULES.html.sh (stat): Remove.
75475         * MODULES.html: Regenerated.
75476         * modules/lstat (Description): Correct function name.
75477         (Files): Add "lstat.h".
75478         (Depends-on): Remove stat, add xalloc, stat-macros.
75479         * modules/stat: Remove this file.
75480         (Include): Add "lstat.h", remove <sys/stat.h>.
75481
75482 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75485         (ranged_convert): Don't save conversion in a temporary struct.
75486         This causes a warning with GCC 4.0.0, and anyway in the typical
75487         case it's not worth the extra 100 bytes or so of code.
75488         (ranged_convert, __mktime_internal): When calling a function via a
75489         pointer P, use P () rather than (*P) (), as we now assume C89 or
75490         better.
75491
75492 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75495         "who -r" failed to give output.  Problem reported by Tim Waugh.
75496
75497         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75498         (xcalloc): Use it to avoid needless tests.
75499         Problem reported by Jim Meyering.
75500
75501 2005-06-20  Derek Price  <derek@ximbiot.com>
75502
75503         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75504         unnecessary for Autoconfs > 2.59c.
75505
75506 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75507
75508         * lib/argp.h (__option_is_short): Check upper limit of
75509         __key. Isprint() requires its argument to have the value
75510         of an unsigned char or EOF.
75511
75512 2005-06-16  Jim Meyering  <jim@meyering.net>
75513
75514         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75515         when either N or S is zero.
75516
75517 2005-06-16  Derek Price  <derek@ximbiot.com>
75518
75519         * m4/bison.m4: Declare YACC & YFLAGS precious.
75520
75521 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75524         multibyte string or pattern, fall back on unibyte matching.
75525         Problem reported by James Youngman.
75526
75527 2005-06-08  Bruno Haible  <bruno@clisp.org>
75528
75529         * modules/csharpcomp: New file.
75530         * MODULES.html.sh (C#): Add csharpcomp.
75531
75532 2005-06-08  Bruno Haible  <bruno@clisp.org>
75533
75534         * m4/csharpcomp.m4: New file, from GNU gettext.
75535
75536 2005-06-08  Bruno Haible  <bruno@clisp.org>
75537
75538         * lib/csharpcomp.h: New file, from GNU gettext.
75539         * lib/csharpcomp.c: New file, from GNU gettext.
75540         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75541
75542 2005-06-08  Bruno Haible  <bruno@clisp.org>
75543
75544         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75545         warning on mingw.
75546
75547 2005-06-07  Derek Price  <derek@ximbiot.com>
75548
75549         Sync from CVS.
75550         * lib/glob_.h: Indent nested #ifdef.
75551
75552 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75553
75554         Sync from coreutils.
75555         Use "file name" when talking about file names, instead of "filename"
75556         or "path", as per the GNU coding standards.
75557         * lib/mkdir-p.c: Renamed from makepath.c.
75558         (make_dir_parents): Renamed from make_path.  All callers changed.
75559         * lib/mkdir-p.h: Likewise.  All includers changed.
75560         * lib/filenamecat.c: Renamed from path-concat.c.
75561         (file_name_concat): Renamed from path_concat.  All callers changed.
75562         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75563         * lib/filenamecat.h: Likewise.  All includers changed.
75564         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75565         in comments or local variable names.
75566         * lib/basename.c: Likewise.
75567         * lib/canonicalize.c, canonicalize.h: Likewise.
75568         * lib/dirname.c, dirname.h: Likewise.
75569         * lib/euidaccess.c: Likewise.
75570         * lib/exclude.c: Likewise
75571         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75572         * lib/fsusage.c, fsuage.h: Likewise.
75573         * lib/fts.c, fts_.h: Likewise.
75574         * lib/getcwd.c: Likewise.
75575         * lib/getloadavg.c: Likewise.
75576         * lib/mkstemp.c: Likewise.
75577         * lib/mountlist.c, mountlist.h: Likewise.
75578         * lib/openat.c, openat.h: Likewise.
75579         * lib/readlink-stub.c: Likewise.
75580         * lib/readutmp.c, readutmp.h: Likewise.
75581         * lib/rename.c: Likewise.
75582         * lib/rmdir.c: Likewise.
75583         * lib/same.c: Likewise.
75584         * lib/savedir.c: Likewise.
75585         * lib/stripslash.c: Likewise.
75586         * lib/tempname.c: Likewise.
75587         * lib/xreadlink.c: Likewise.
75588         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75589         All uses changed.
75590         * lib/exclude.h: Likewise.
75591
75592         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75593         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75594         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75595         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75596         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75597         files have been getting away with it for years (MORE/BSD 4.3
75598         is extinct now).
75599         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75600         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75601
75602         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75603         Define to 256, not 255, as per modern POSIX.
75604
75605 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         Sync from coreutils.
75608         Use "file name" when talking about file names, instead of "filename"
75609         or "path", as per the GNU coding standards.
75610         * MODULES.html.sh: mkdir-p renamed from makepath.
75611         filenamecat renamed from path-concat.
75612         * modules/filenamecat: Renamed from modules/path-concat.
75613         (Files): filenamecat.h and filenamecat.c renamed from
75614         path-concat.h and path-concat.c.
75615         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75616         (Include): filenamecat.h, not path-concat.h.
75617         * modules/mkdir-p: Renamed from modules/makepath.
75618         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75619         makepath.c.
75620         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75621         (Include): mkdir-p.h, not makepath.h.
75622
75623 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         Sync from coreutils.
75626         * m4/mkdir-p.m4: Renamed from makepath.m4.
75627         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75628         Rename files from makepath.c to mkdir-p.c, and from
75629         makepath.h to mkdir-p.h.
75630         * m4/filenamecat.m4: Renamed from path-concat.m4.
75631         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75632         Rename files from path-concat.c to filenamecat.c,
75633         and from path-concat.h to filenamecat.h.
75634         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75635         "file name" in local variables or comments.
75636         * m4/rename.m4: Likewise.
75637
75638 2005-06-01  Bruno Haible  <bruno@clisp.org>
75639
75640         * modules/csharpexec: New file.
75641         * MODULES.html.sh (C#): New section.
75642
75643 2005-06-01  Bruno Haible  <bruno@clisp.org>
75644
75645         * m4/csharp.m4: New file, from GNU gettext.
75646         * m4/csharpexec.m4: New file, from GNU gettext.
75647
75648 2005-06-01  Bruno Haible  <bruno@clisp.org>
75649
75650         * lib/csharpexec.h: New file, from GNU gettext.
75651         * lib/csharpexec.c: New file, from GNU gettext.
75652         * lib/csharpexec.sh.in: New file, from GNU gettext.
75653
75654 2005-05-31  Derek Price  <derek@ximbiot.com>
75655             Paul Eggert  <eggert@cs.ucla.edu>
75656
75657         Sync from cvs.
75658         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75659
75660 2005-05-31  Derek Price  <derek@ximbiot.com>
75661             Paul Eggert  <eggert@cs.ucla.edu>
75662
75663         Sync from cvs.
75664         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75665
75666 2005-05-29  Derek Price  <derek@ximbiot.com>
75667
75668         * config/srclist.txt (glob_.h, glob.c): Add these files.
75669
75670 2005-05-29  Derek Price  <derek@ximbiot.com>
75671
75672         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75673         * modules/glob: New file.
75674         * modules/getlogin_r: Add link to POSIX spec in description.
75675
75676 2005-05-29  Derek Price  <derek@ximbiot.com>
75677             Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * m4/glob.m4: New file.
75680
75681 2005-05-29  Derek Price  <derek@ximbiot.com>
75682             Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         * lib/glob_.h, lib/glob.c: New files.
75685
75686 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75687
75688         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75689         * modules/fts-lgpl (Depends-on): Remove gettext.
75690
75691 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75694         and don't require gt_INTTYPES_PRI.
75695
75696 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75699
75700         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75701         the configuration hassle isn't worth it.
75702         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75703         (LONGEST_MODIFIER, PRIuMAX): Remove.
75704
75705 2005-05-27  Bruno Haible  <bruno@clisp.org>
75706
75707         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75708
75709 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75710
75711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75712         _POSIX_PTHREAD_SEMANTICS for Solaris.
75713
75714 2005-05-25  Derek Price  <derek@ximbiot.com>
75715
75716         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75717
75718 2005-05-25  Derek Price  <derek@ximbiot.com>
75719             Paul Eggert  <eggert@cs.ucla.edu>
75720
75721         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75722         * lib/getlogin_r.c, getlogin_r.h: New files.
75723
75724 2005-05-25  Bruno Haible  <bruno@clisp.org>
75725             Derek Price  <derek@ximbiot.com>
75726
75727         * lib/getlogin_r.h: Simplify API documentation.
75728
75729 2005-05-23  Derek Price  <derek@ximbiot.com>
75730
75731         * modules/minmax (Files): Add m4/minmax.m4.
75732         (configure.ac): Add gl_MINMAX.
75733
75734 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75737         so that unistd-safer.h (GPL'ed code) need not be included.
75738
75739 2005-05-22  Bruno Haible  <bruno@clisp.org>
75740
75741         * m4/minmax.m4: New file.
75742         Based on a patch by Derek Price <derek@ximbiot.com>.
75743
75744 2005-05-22  Bruno Haible  <bruno@clisp.org>
75745
75746         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75747         (INT64_MIN): Fix definition.
75748         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75749
75750         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75751         NEED_SIGNED_INT_TYPES.
75752
75753         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75754         HAVE_SYSTEM_INTTYPES.
75755
75756 2005-05-22  Bruno Haible  <bruno@clisp.org>
75757
75758         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75759         Also include <sys/param.h> if it defines MIN, MAX.
75760         Based on a patch by Derek Price <derek@ximbiot.com>.
75761
75762 2005-05-21  Jim Meyering  <jim@meyering.net>
75763
75764         * modules/fts (Files): Add m4/inttypes-pri.m4.
75765         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75766
75767 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         New fts module.
75770         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75771         (setup_dir, free_dir): New functions.
75772         (enter_dir, leave_dir): Define trivial
75773         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75774         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75775         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75776         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75777         Move to fts-cycle.c.
75778         (fts_open): Use setup_dir.
75779         (fts_close): Use free_dir.
75780         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75781         This adds a label and some gotos, but the alternatives were messier.
75782         Check for memory allocation failure when entering a dir.
75783         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75784         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75785         (FTS): New member fts_cycle, that is a union that contains the
75786         old active_dir_ht and cycle_state.  All uses changed to mention
75787         fts_cycle.ht and fts_cycle.state.
75788         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75789         fts.c, with the following changes:
75790         (setup_dir, free_dir): New functions.
75791         (enter_dir): Now returns bool.  Return true if successful, false
75792         if memory exhausted.  All callers changed.
75793         Do not bother partly cleaning up on
75794         memory allocation failure; that is free_dir's job.
75795         However, free ad if hash_insert fails, to avoid memory leak.
75796         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75797         fts->fts_options to see which union member to use.
75798
75799 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75800
75801         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75802         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75803
75804 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75807
75808 2005-05-20  Jim Meyering  <jim@meyering.net>
75809
75810         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75811         Now a macro, to pacify GCC.
75812
75813 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75814
75815         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75816         of -1.
75817
75818 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75819
75820         * lib/chown.c (rpl_chown): Return -1 on failure.
75821
75822 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75825         Don't check for stddef.h.
75826         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75827         don't use its results.
75828         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75829         since we include them unconditionally.  Don't require
75830         AM_STDBOOL_H, since stdbool is a prerequisite.
75831         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75832         since we assume C89 or better.
75833         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75834         as we don't use their results.
75835         Don't check for fchdir, memmove, memset, strrchr, as we use
75836         them unconditionally.
75837         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75838         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75839
75840 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75843         Include <stddef.h> unconditionally, since we assume C89 now.
75844         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75845         * lib/fts.c: Include fts_.h first, to check interface.
75846         Do not include intprops.h; no longer needed.
75847         Include cycle-check.h and hash.h, since fts_.h no longer does.
75848         Remove unnecessary casts of closedir to void.
75849         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75850         decide whether to decrement nlinks.
75851         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75852         (FTS): Use struct hash_table * instead of Hash_table, so that
75853         we no longer need to include hash.h here.
75854
75855 2005-05-18  Jim Meyering  <jim@meyering.net>
75856
75857         * modules/dirfd (License): Change to LGPL.  Most of the code
75858         is already in the public domain.
75859
75860 2005-05-18  Jim Meyering  <jim@meyering.net>
75861
75862         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75863         Reported by Yoann Vandoorselaere.
75864
75865 2005-05-17  Jim Meyering  <jim@meyering.net>
75866
75867         * m4/fts.m4: New file, from coreutils.
75868
75869 2005-05-17  Jim Meyering  <jim@meyering.net>
75870
75871         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75872
75873 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         Sync from coreutils.
75876         * m4/unlinkdir.m4: New file.
75877
75878 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         Sync from coreutils.
75881         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75882         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75883         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75884         White space changes only.
75885         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75886         special.
75887         * lib/yesno.c: Include getline.h, not ctype.h.
75888         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75889         Use getline to remove arbitrary restriction on response length.
75890
75891 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * config/srclist-update: Spell out "Street" in FSF postal
75894         mail address; this is the style the FSF seems to prefer.
75895
75896         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75897         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75898         this updates FSF postal mail address.
75899
75900         Sync from coreutils.
75901         * modules/unlinkdir: New file.
75902         * modules/yesno (Depends-on): Add getline.
75903         * MODULES.html.sh (File system functions): Add unlinkdir.
75904
75905 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75908         lib/strsep.h:
75909         Change the initial comment to refer to GPL, not LGPL.
75910         gnulib-tool will change it to LGPL as needed.
75911
75912         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75913         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75914         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75915         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75916         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75917         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75918         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75919         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75920         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75921         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75922         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75923         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75924         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75925         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75926         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75927         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75928         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75929         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75930         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75931         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75932         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75933         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75934         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75935         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75936         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75937         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75938         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75939         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75940         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75941         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75942         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75943         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75944         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75945         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75946         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75947         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75948         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75949         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75950         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75951         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75952         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75953         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75954         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75955         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75956         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75957         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75958         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75959         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75960         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75961         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75962         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75963         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75964         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75965         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75966         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75967         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75968         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75969         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75970         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75971         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75972         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75973         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75974         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75975         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75976         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75977         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75978         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75979         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75980         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75981         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75982         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75983         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75984         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75985         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75986         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75987         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75988         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75989         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75990         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75991         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75992         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75993         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75994         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75995         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75996         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75997         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75998         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75999         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76000         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76001         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76002         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76003         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76004         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76005         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76006         lib/yesno.c, lib/yesno.h:
76007         Update FSF postal mail address.
76008
76009 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76010
76011         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76012         tests/test-memmem.c, tests/test-stpncpy.c:
76013         Update FSF postal mail address.
76014
76015 2005-05-13  Bruno Haible  <bruno@clisp.org>
76016
76017         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76018         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76019         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76020         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76021         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76022         Add support for 64-bit integers in the MSVC compiler.
76023
76024 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76025
76026         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76027
76028 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76029
76030         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76031
76032 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * doc/getdate.texi (General date syntax): Don't say that date
76035         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76036         Problem reported by Nic Ferrier.
76037
76038 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76039
76040         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76041         specified in ai_socktype. Fix invalid ai_protocol
76042         check. ai_protocol is usually set to 0 or depending on
76043         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76044         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76045         ai_socktype / ai_protocol in the returned addrinfo structure.
76046
76047 2005-05-10  Simon Josefsson  <jas@extundo.com>
76048
76049         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76050         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76051
76052 2005-05-10  Karl Berry  <karl@gnu.org>
76053
76054         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76055         (from http://www.gnu.org/licenses).
76056         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76057         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76058         fdl.texi suffices.
76059
76060 2005-05-10  Karl Berry  <karl@gnu.org>
76061
76062         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76063         (COPYING.DOC): remove.
76064
76065         * config/srclist-update: new FSF address.
76066
76067 2005-05-10  Derek Price  <derek@ximbiot.com>
76068
76069         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76070         possible.
76071
76072 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76073             Bruno Haible  <bruno@clisp.org>
76074
76075         * modules/inet_ntop: New file.
76076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76077         inet_ntop.
76078
76079 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76080             Bruno Haible  <bruno@clisp.org>
76081
76082         * m4/inet_ntop.m4: New file.
76083
76084 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76085             Bruno Haible  <bruno@clisp.org>
76086
76087         * lib/inet_ntop.h: New file.
76088         * lib/inet_ntop.c: New file, from glibc with modifications.
76089
76090 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * modules/time_r (License): Change to LGPL.
76093         * modules/extensions (License): Change to LGPL.  Actually,
76094         the license is more permissive than that, but currently gnulib-tool
76095         doesn't know how to handle more-permissive licenses.
76096
76097         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76098         Problem reported by Dave Love.
76099
76100 2005-05-08  Jim Meyering  <jim@meyering.net>
76101
76102         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76103         blank.
76104
76105 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76106
76107         * modules/argmatch (Depends-on): Add stdbool.
76108         * modules/backupfile (Depends-on): Likewise.
76109         * modules/chdir-long (Depends-on): Likewise.
76110         * modules/closeout (Depends-on): Likewise.
76111         * modules/cycle-check (Depends-on): Likewise.
76112         * modules/dirname (Depends-on): Likewise.
76113         * modules/fnmatch (Depends-on): Likewise.
76114         * modules/fsusage (Depends-on): Likewise.
76115         * modules/fwriteerror (Depends-on): Likewise.
76116         * modules/getcwd (Depends-on): Likewise.
76117         * modules/getloadavg (Depends-on): Likewise.
76118         * modules/hard-locale (Depends-on): Likewise.
76119         * modules/makepath (Depends-on): Likewise.
76120         * modules/mountlist (Depends-on): Likewise.
76121         * modules/nanosleep (Depends-on): Likewise.
76122         * modules/posixtm (Depends-on): Likewise.
76123         * modules/quotearg (Depends-on): Likewise.
76124         * modules/readtokens (Depends-on): Likewise.
76125         * modules/readtokens0 (Depends-on): Likewise.
76126         * modules/readutmp (Depends-on): Likewise.
76127         * modules/save-cwd (Depends-on): Likewise.
76128         * modules/strftime (Depends-on): Likewise.
76129         * modules/userspec (Depends-on): Likewise.
76130         * modules/utimecmp (Depends-on): Likewise.
76131         * modules/xgetcwd (Depends-on): Likewise.
76132         * modules/xnanosleep (Depends-on): Likewise.
76133         * modules/xstrtod (Depends-on): Likewise.
76134         * modules/yesno (Depends-on): Likewise.
76135
76136 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76139         needless checks.
76140
76141 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         Merge from coreutils.  Among other things,
76144         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76145         * lib/fd-safer.c: New file.
76146         * lib/fcntl-safer.h, open-safer.c: Remove.
76147         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76148         * lib/dup-safer.c: Include unistd-safer.h first.
76149         Don't include errno.h.
76150         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76151         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76152         * lib/file-type.c: Rely on file-type.h change.
76153         * lib/getloadavg.c: Include unistd-safer.h.
76154         (getloadavg): Use safer open.
76155         * lib/getusershell.c: Include "stdio-safer.h".
76156         (getusershell): Use safer fopen.
76157         * lib/long-options.c (long_options): Use NULL rather than 0.
76158         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76159         'free'.
76160         * lib/modechange.c: Likewise.
76161         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76162         (MODE_DONE): New constant.
76163         (struct mode_change): Remove 'next' member.
76164         (make_node_op_equals): New function; like the old one of the
76165         same name, except it allocates an array.
76166         (mode_compile, mode_create_from_ref): Use it.
76167         (mode_compile): Allocate result as an array, not a linked list.
76168         Parse octal string ourself, so that we catch mistakes like "+0".
76169         (mode_adjust): Arg is an array, not a linked list.
76170         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76171         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76172         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76173         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76174         Remove.  This is now stat-macros.h's job.
76175         (talloc): Remove.  All callers replaced by xalloc, so that
76176         our invokers don't have to worry about reporting memory failures.
76177         (make_node_op_equals): Remove.
76178         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76179         New constants.
76180         (struct mode_change): Moved here from modechange.h.
76181         (mode_append_entry): Remove.
76182         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76183         apps to have incorrect behavior.  Use simpler algorithm for head
76184         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76185         Detect more invalid usages rather than having somewhat-random behavior.
76186         Don't insert an "a=" action, as that leads to incorrect behavior.
76187         (mode_compile, mode_create_from_ref): Return NULL on error instead
76188         of an enum, since now there's only one way to have an error.  All
76189         callers changed.
76190         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76191         at the correct time.  Simplify calculation of "+u" and its ilk.
76192         Don't mishandle "+X".
76193         (mode_free): Remove "register" and localize decls.
76194         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76195         (struct mode_change): Move to modechange.c; callers don't
76196         need to see this stuff.
76197         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76198         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76199         (mode_change, mode_adjust): Reflect the new signatures noted above.
76200         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76201         that might redefine system include files.
76202         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76203         (my_usleep): Use NULL rather than (void *) 0.
76204         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76205         Use siginterrupt to specify that system calls should be interrupted.
76206         (rpl_nanosleep): Move initialization of suspended closer to call of
76207         my_usleep.
76208         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76209         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76210         (desirable_utmp_entry): New function.
76211         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76212         using x2nrealloc, to simplify logic.
76213         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76214         size calculation.  Do not assume utmp file is a regular file.
76215         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76216         (READ_UTMP_CHECK_PIDS): New constant.
76217         * lib/save-cwd.c: Include unistd-safer.h.
76218         (save_cwd): Use fd_safer.
76219         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76220         [!_LIBC] Include "stat-macros.h" instead.
76221         * lib/unistd-safer.h (fd_safer): New decl.
76222
76223 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * modules/getloadavg (Depends-on): Add unistd-safer.
76226         * modules/getusershell (Depends-on): Add stdio-safer.
76227         * modules/lstat (Depends-on): Remove xalloc.
76228         * modules/mkstemp (Depends-on): Add stat-macros.
76229         * modules/modechange (Depends-on): Remove xstrtol.
76230         Add stat-macros, xalloc.
76231         * modules/save-cwd (Depends-on): Add unistd-safer.
76232         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76233         * modules/unistd-safer (Files): Add lib/fd-safer.c
76234         (Makefile.am): Remove lib_SOURCES.
76235
76236         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76237         Remove fcntl-safer; unistd-safer supersedes it.
76238
76239 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76240
76241         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76242         AC_HEADER_STAT.
76243         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76244         (gl_PREREQ_CHOWN): Remove.
76245         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76246         it.  Don't require AC_HEADER_STAT.
76247         (gl_PREREQ_LSTAT): Remove.
76248         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76249         Don't require AC_HEADER_STAT.
76250         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76251         (gl_PREREQ_RMDIR): Remove.
76252         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76253         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76254         the stat-macros module a prerequisite.
76255         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76256         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76257         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76258         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76259         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76260         variable names.
76261         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76262         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76263         variable prefixes.
76264         * m4/fcntl-safer.m4: Remove.
76265         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76266         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76267         Invoke gl_PREREQ_FD_SAFER.
76268         (gl_PREREQ_FD_SAFER): New macro.
76269         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76270         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76271         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76272         Remove duplicate call to AC_LIBOBJ(readutmp).
76273         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76274
76275         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76276         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76277
76278 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         * MODULES.html.sh (Misc): Add byteswap.
76281
76282 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76283
76284         * modules/getcwd (Depends-on): Add extensions.
76285         * modules/openat (Depends-on): Likewise.
76286
76287 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76288
76289         * modules/byteswap: New file.
76290
76291 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76292
76293         * m4/byteswap.m4: New file.
76294
76295 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76296
76297         * lib/byteswap_.h: New file.
76298
76299 2005-04-25  Karl Berry  <karl@gnu.org>
76300
76301         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76302
76303 2005-04-25  Albert Chin  <china@thewrittenword.com>
76304
76305         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76306         Toolkit C bug.
76307
76308 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76309
76310         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76311         (func_ln_if_changed): Remove forcibly for no error message
76312         in case file does not exist.
76313
76314 2005-04-19  Simon Josefsson  <jas@extundo.com>
76315
76316         * gnulib-tool (Options): Make --symlink mean --symbolic.
76317
76318 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76319
76320         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76321
76322 2005-04-16  Simon Josefsson  <jas@extundo.com>
76323
76324         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76325
76326 2005-04-15  Simon Josefsson  <jas@extundo.com>
76327
76328         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76329
76330 2005-04-15  Simon Josefsson  <jas@extundo.com>
76331
76332         * gnulib-tool: Rename --symlink to --symbolic.
76333
76334 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76335
76336         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76337         symbolic links to files instead of copying/moving.  Add --aux-dir,
76338         specifying directory relative --dir where auxiliary build tools
76339         are placed.
76340
76341 2005-04-14  Bruno Haible  <bruno@clisp.org>
76342
76343         * modules/allocsa (License): Change to LGPL.
76344         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76345
76346 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76347
76348         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76349         that "UTC +1 second" continues to work.  Problem reported
76350         by Dmitry V. Levin.
76351         (relunit_snumber): New rule.
76352         (relunit): Use it.
76353
76354 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * lib/getdate.y (universal_time_zone_table): New constant.
76357         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76358         universal_time_zone_table.
76359         (lookup_zone): Prefer universal_time_zone_table to
76360         local_time_zone_table, so that "GMT" time stamps are allowed in
76361         London during the summer.  Problem reported by Ian Abbott.
76362
76363 2005-04-12  Jim Meyering  <jim@meyering.net>
76364
76365         * lib/human.c (humblock): Set *options even when returning due to
76366         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76367         warning from gcc-4.
76368
76369 2005-04-09  Jim Meyering  <jim@meyering.net>
76370
76371         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76372         -Wuninitialized: initialize tm0.tm_year.
76373
76374 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76375
76376         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76377         count, since there's no maximum.  All uses changed.
76378         Add member dsts_seen.
76379         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76380         not being INT_MAX.
76381         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76382         Use pc_rels_seen to decide whther a date is absolute.
76383
76384         * lib/getdate.y (number): Don't overwrite year.
76385         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76386         check.
76387
76388 2005-04-02  Simon Josefsson  <jas@extundo.com>
76389
76390         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76391         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76392
76393 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76394
76395         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76396         where no absolute path name can be longer than PATH_MAX.
76397
76398 2005-03-27  Jim Meyering  <jim@meyering.net>
76399
76400         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76401
76402 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76405         "one's complement" -> "ones' complement" in comment, as per Knuth.
76406         "value of type" -> "type or expression" in comment.
76407         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76408
76409 2005-03-26  Jim Meyering  <jim@meyering.net>
76410
76411         Comment nits.
76412         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76413         Correct typos: s/or/of/.
76414
76415 2005-03-26  Jim Meyering  <jim@meyering.net>
76416
76417         * modules/check-include-files: Move to ../ and rename to...
76418         * check-module: ...this.
76419
76420 2005-03-25  Jim Meyering  <jim@meyering.net>
76421
76422         * modules/xvasprintf (Files): Add xalloc.h.
76423
76424 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         * modules/gettext (Files): config/config.rpath ->
76427         build-aux/config.rpath
76428         * modules/iconv (Files): Likewise.
76429         Problem reported by Oskar Liljeblad.
76430
76431 2005-03-23  Jim Meyering  <jim@meyering.net>
76432
76433         * modules/check-include-files: New script to check for
76434         missing dependencies, multiple includes, etc.
76435
76436         * modules/c-strtold (Depends-on): Add xalloc.
76437         * modules/c-strtod (Depends-on): Add xalloc.
76438         * modules/hash (Depends-on): Add xalloc.
76439         (Files): Remove lib/xalloc.h.
76440
76441         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76442         * modules/userspec (Files): Add lib/inttostr.h.
76443
76444 2005-03-23  Jim Meyering  <jim@meyering.net>
76445
76446         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76447
76448 2005-03-22  Jim Meyering  <jim@meyering.net>
76449
76450         * modules/stat-macros: New module.
76451         * modules/canonicalize, modules/euidaccess, modules/file-type,
76452         * modules/filemode, modules/lchown, modules/makepath,
76453         * modules/rmdir, modules/stat: Depend on new stat-macros module
76454         rather than listing lib/stat-macros.h manually.
76455         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76456
76457 2005-03-22  Jim Meyering  <jim@meyering.net>
76458
76459         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76460
76461 2005-03-22  Bruno Haible  <bruno@clisp.org>
76462
76463         * config/srclist.txt: Replace target directory 'config' with
76464         'build-aux'.
76465         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76466         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76467         ../build-aux/.
76468
76469 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * modules/chdir-long (Depends-on): Add mempcpy.
76472
76473         * modules/acl, modules/backupfile, modules/c-strtod,
76474         modules/c-strtold, modules/canon-host, modules/canonicalize,
76475         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76476         modules/exclude, modules/exitfail, modules/file-type,
76477         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76478         modules/getdate, modules/getline, modules/getpagesize,
76479         modules/getpass, modules/getugroups, modules/group-member,
76480         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76481         modules/inttostr, modules/long-options, modules/makepath,
76482         modules/md5, modules/memcasecmp, modules/memcoll,
76483         modules/modechange, modules/mountlist, modules/path-concat,
76484         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76485         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76486         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76487         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76488         modules/strftime, modules/strndup, modules/strverscmp,
76489         modules/timespec, modules/unlocked-io, modules/userspec,
76490         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76491         modules/yesno:
76492         Remove lib_SOURCES line from Makefile.am section, as this is now
76493         done automatically by the corresponding Autoconf macro.
76494
76495 2005-03-21  Jim Meyering  <jim@meyering.net>
76496
76497         Changes imported from coreutils.
76498
76499         * lib/cycle-check.c: Don't include xalloc.h.
76500
76501         * lib/path-concat.c: Don't include assert.h.
76502         (path_concat): Remove assertion that would have triggered
76503         for ABASE starting with more than one slash.
76504         Reported by Andreas Schwab.
76505
76506         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76507         properly when ABASE is an absolute file name.
76508         Correct the description of this function.
76509         Include <assert.h>.
76510         Add an assertion and a test driver.
76511         This fixes a bug introduced on 2004-07-02.
76512         Andreas Schwab reported the resulting failure of cp --parents:
76513         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76514
76515 2005-03-21  Jim Meyering  <jim@meyering.net>
76516
76517         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76518         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76519
76520 2005-03-21  Jim Meyering  <jim@meyering.net>
76521         and  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76524         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76525         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76526         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76527         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76528         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76529         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76530         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76531         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76532         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76533         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76534         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76535         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76536         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76537         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76538         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76539         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76540         for these modules.
76541
76542 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76545         (which shouldn't happen), generate nothing instead of returning 0
76546         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76547
76548 2005-03-16  Bruno Haible  <bruno@clisp.org>
76549
76550         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76551         HAVE_LONGLONG_64BIT.
76552
76553 2005-03-16  Bruno Haible  <bruno@clisp.org>
76554
76555         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76556         HAVE_LONGLONG_64BIT.
76557
76558 2005-03-16  Bruno Haible  <bruno@clisp.org>
76559
76560         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76561         HAVE_LONGLONG_64BIT.
76562
76563 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76566         reliably distinguish strftime failure from empty output on POSIX
76567         hosts.
76568
76569 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76572         (iconv_string): Don't guess a size-zero buffer, as that might cause
76573         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76574         result would be 'too large', where 'too large' is (heuristically)
76575         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76576         overflow concerns.  This will prevent some unwanted malloc failures
76577         when the inputs are very large.
76578
76579 2005-03-15  Karl Berry  <karl@gnu.org>
76580
76581         * config/srclist.txt (config.rpath): from gettext.
76582         * config/config.rpath: update.
76583
76584 2005-03-15  Bruno Haible  <bruno@clisp.org>
76585
76586         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76587         to 'negate'.
76588
76589         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76590         variable.
76591
76592         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76593         results.
76594
76595 2005-03-14  Simon Josefsson  <jas@extundo.com>
76596
76597         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76598         <fx@gnu.org>.
76599
76600 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76603         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76604         intprops.h.
76605         * lib/strtol.c: Likewise.
76606
76607 2005-03-14  Jim Meyering  <jim@meyering.net>
76608
76609         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76610         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76611         to be nonzero so that we (and caller) can detect the difference
76612         between a valid zero-length expansion and an error return, even
76613         when the underlying strftime fails before writing anything into
76614         that location.
76615
76616 2005-03-14  Bruno Haible  <bruno@clisp.org>
76617
76618         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76619         Update from GNU gettext 0.14.3.
76620
76621 2005-03-10  Jim Meyering  <jim@meyering.net>
76622
76623         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76624
76625 2005-03-10  Jim Meyering  <jim@meyering.net>
76626
76627         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76628         so that this module works on systems without fchdir.
76629
76630 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         Factor int-properties macros into a single file, except for
76633         glibc-related files.
76634         * lib/intprops.h: New file.
76635         * lib/getloadavg.c: Include it instead of limits.h.
76636         (INT_STRLEN_BOUND): Remove.
76637         * lib/human.c: Include intprops.h.
76638         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76639         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76640         302/1000.
76641         * lib/inttostr.h: Include intprops.h instead of limits.h.
76642         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76643         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76644         for consistency with intprops.h.
76645         (time_t_is_integer, twos_complement_arithmetic): Use them.
76646         * lib/sig2str.h: Include <signal.h>, intprops.h.
76647         (INT_STRLEN_BOUND): Remove.
76648         * lib/strftime.c (TYPE_SIGNED): Remove.
76649         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76650         * lib/strtol.c: Adjust comments to match intprops.h.
76651         * lib/userspec.c: Include intprops.h.
76652         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76653         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76654         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76655         instead of rolling our own expressions.
76656         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76657
76658         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76659         instead of int.
76660         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76661         the right thing even if adding 1900 would overflow.  Similarly
76662         for tm_mon + 1 and tm_yday + 1.
76663         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76664         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76665         (DO_SIGNED_NUMBER): New macro.
76666         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76667
76668 2005-03-07  Bruno Haible  <bruno@clisp.org>
76669
76670         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76671
76672 2005-03-07  Bruno Haible  <bruno@clisp.org>
76673
76674         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76675
76676 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76677
76678         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76679         (func_import): Only replace files via --import when they have actually
76680         changed.
76681
76682 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76683
76684         * m4/mmap-anon.m4: New file.
76685         * m4/pagealign_alloc.m4: New file.
76686
76687 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76688             Bruno Haible  <bruno@clisp.org>
76689
76690         * modules/pagealign_alloc: New file.
76691         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76692
76693 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76694             Bruno Haible  <bruno@clisp.org>
76695
76696         * lib/pagealign_alloc.h: New file.
76697         * lib/pagealign_alloc.c: New file.
76698
76699 2005-03-03  Bruno Haible  <bruno@clisp.org>
76700
76701         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76702         Use an all-permissive copyright notice, recommended by RMS.
76703
76704 2005-03-02  Bruno Haible  <bruno@clisp.org>
76705
76706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76707         of AIX, the replacement has to be done only after <string.h> is
76708         included, therefore not in config.h. stpncpy.h does the replacement,
76709         and stpncpy.c uses it.
76710
76711 2005-03-02  Bruno Haible  <bruno@clisp.org>
76712
76713         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76714         stpncpy.c uses it.
76715
76716 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76717
76718         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76719         The workaround isn't strictly needed for POSIX conformance, and
76720         it's too much of a pain to configure and maintain.  We'll ask
76721         people to fix their kernels instead.
76722         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76723         (NANOSLEEP_BUG_WORKAROUND): Remove.
76724         (xnanosleep): Remove the workaround.
76725
76726 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76729         Reported by Derek Price.
76730         (Include): Add "timespec.h".
76731
76732         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76733
76734 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76737         to detect nanosleep bug.
76738
76739 2005-03-01  Bruno Haible  <bruno@clisp.org>
76740
76741         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76742
76743 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * modules/gethrxtime: New file.
76746         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76747         (Depends-on): Add gethrxtime.
76748         (configure.ac): Add gl_XNANOSLEEP.
76749         (Makefile.am): Remove lib_SOURCES line.
76750
76751 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76752
76753         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76754         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76755
76756 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76757
76758         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76759         * lib/timespec.h (gettime): Return void, since it always
76760         succeeds now.  All uses changed.
76761         * lib/gettime.c (gettime): Likewise.
76762         [HAVE_NANOTIME]: Prefer nanotime.
76763         Assume gettimeofday succeeds, as POSIX requires.
76764         Assime time () succeeds, since other code already does.
76765         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76766         (timespec_subtract): Remove.
76767         (NANOSLEEP_BUG_WORKAROUND): New constant.
76768         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76769         things considerably.  Use it only on GNU/Linux hosts, since the
76770         workaround shouldn't be needed elsewhere.
76771
76772 2005-02-24  Bruno Haible  <bruno@clisp.org>
76773
76774         * modules/gettext (Files): Add m4/glibc2.m4.
76775
76776 2005-02-24  Bruno Haible  <bruno@clisp.org>
76777
76778         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76779         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76780         * m4/progtest.m4:
76781         Update from GNU gettext 0.14.2.
76782         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76783
76784 2005-02-24  Bruno Haible  <bruno@clisp.org>
76785
76786         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76787         * lib/config.charset: Update from GNU gettext 0.14.2.
76788
76789 2005-02-24  Bruno Haible  <bruno@clisp.org>
76790
76791         * lib/gettext.h: Update from GNU gettext 0.14.2.
76792
76793 2005-02-23  Simon Josefsson  <jas@extundo.com>
76794
76795         * m4/iconvme.m4: New file.
76796
76797 2005-02-23  Jim Meyering  <jim@meyering.net>
76798
76799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76800         change.
76801         Thanks to Bruno Haible for catching it.
76802
76803 2005-02-22  Simon Josefsson  <jas@extundo.com>
76804
76805         * modules/iconvme: New file.
76806
76807         * MODULES.html.sh: Add iconvme.
76808
76809 2005-02-22  Simon Josefsson  <jas@extundo.com>
76810
76811         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76812
76813 2005-02-22  Simon Josefsson  <jas@extundo.com>
76814
76815         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76816
76817 2005-02-22  Jim Meyering  <jim@meyering.net>
76818
76819         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76820         s/ifndef/ifdef/.
76821
76822 2005-02-20  Neil Conway  <neilc@samurai.com>
76823
76824         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76825         returned by OSX/Darwin if the specified buffer is not large
76826         enough for the hostname.
76827
76828 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76829
76830         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76831         pass it to _help, otherwise the latter coredumps trying to
76832         dereference state.root_argp.
76833
76834 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * modules/chdir-long (Depends-on): Add memrchr.
76837         * modules/memrchr (Files): Add lib/memrchr.h.
76838         (Include): "memrchr.h".
76839
76840 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76843
76844 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76845
76846         * lib/memrchr.h: New file.
76847         * lib/chdir-long.c: Include it.
76848         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76849         Don't bother including stddef.h.
76850
76851 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76854         inclusion.
76855         Include <sys/types.h>, for dev_t.
76856         (ME_DUMMY, ME_REMOTE): Move from here....
76857         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76858         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76859         Dmitry V. Levin.
76860         Include mountlist.h first, to test the interface.
76861
76862 2005-01-29  Bruno Haible  <bruno@clisp.org>
76863
76864         * lib/progname.c (program_name): Initialize.
76865         Needed when linking statically on MacOS X.
76866
76867 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         Sync from coreutils.
76870         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76871         (Depends-on): Add c-strtod.
76872         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76873
76874 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         Sync from coreutils.
76877         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76878
76879         Remove files that are specific to coreutils.
76880         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76881
76882 2005-01-28  Bruno Haible  <bruno@clisp.org>
76883
76884         * modules/javacomp: New file.
76885         * MODULES.html.sh (Java): Add javacomp.
76886
76887 2005-01-28  Bruno Haible  <bruno@clisp.org>
76888
76889         * m4/javacomp.m4: New file, from GNU gettext.
76890
76891 2005-01-28  Bruno Haible  <bruno@clisp.org>
76892
76893         * lib/javacomp.sh.in: New file, from GNU gettext.
76894         * lib/javacomp.h: New file, from GNU gettext.
76895         * lib/javacomp.c: New file, from GNU gettext.
76896
76897 2005-01-26  Simon Josefsson  <jas@extundo.com>
76898
76899         * lib/gai_strerror.c: Use GPL in header.
76900
76901 2005-01-26  Bruno Haible  <bruno@clisp.org>
76902
76903         * modules/javaexec: New file.
76904         * MODULES.html.sh (Java): Add javaexec.
76905
76906 2005-01-26  Bruno Haible  <bruno@clisp.org>
76907
76908         * m4/javaexec.m4: New file, from GNU gettext.
76909
76910 2005-01-26  Bruno Haible  <bruno@clisp.org>
76911
76912         * lib/javaexec.sh.in: New file, from GNU gettext.
76913         * lib/javaexec.h: New file, from GNU gettext.
76914         * lib/javaexec.c: New file, from GNU gettext.
76915
76916 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76917
76918         * modules/lchown (Depends-on): Remove lchown.h
76919
76920 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76921
76922         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76923         must be defined if the header file was not found, in order
76924         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76925
76926 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76927
76928         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76929         initializers for struct pentry_state.
76930         (__argp_error): Check return value of __asprintf
76931         (__argp_failure): Translate error message
76932
76933         * lib/argp-parse.c: Removed braces around the expansion of N_()
76934
76935 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76938         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76939         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76940         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76941         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76942         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76943         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76944         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76945         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76946         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76947         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76948         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76949         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76950         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76951         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76952         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76953         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76954         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76955         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76956         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76957         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76958         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76959         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76960         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76961         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76962         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76963         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76964         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76965         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76966         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76967         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76968         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76969         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76970         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76971         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76972         Use an all-permissive copyright notice, recommended by RMS.
76973
76974 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         * modules/chdir-long (Depends-on): Remove mempcpy.
76977
76978 2005-01-21  Jim Meyering  <jim@meyering.net>
76979
76980         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76981         same value as for Solaris 9.
76982
76983         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76984         component length.  This included changing the parameter to be
76985         of type `char *' rather than `char const *'.
76986         * lib/chdir-long.h (chdir_long): Update prototype.
76987
76988         * lib/openat.c (fdopendir, fstatat): New functions.
76989         * lib/openat.h: Include headers required for use of DIR and struct
76990         stat.
76991         [AT_SYMLINK_NOFOLLOW]: Define.
76992         (fdopendir, fstatat): Add prototypes.
76993
76994 2005-01-21  Bruno Haible  <bruno@clisp.org>
76995
76996         * modules/classpath: New file.
76997         * MODULES.html.sh (Java): Add classpath.
76998
76999 2005-01-21  Bruno Haible  <bruno@clisp.org>
77000
77001         * lib/classpath.h: New file, from GNU gettext.
77002         * lib/classpath.c: New file, from GNU gettext.
77003
77004 2005-01-20  Simon Josefsson  <jas@extundo.com>
77005
77006         * modules/version-etc-fsf: New file.
77007
77008 2005-01-20  Simon Josefsson  <jas@extundo.com>
77009
77010         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77011         * lib/version-etc.c: Remove version_etc_copyright.
77012         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77013         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77014
77015 2005-01-20  Simon Josefsson  <jas@extundo.com>
77016
77017         * lib/base64.h (isbase64): Add.
77018
77019         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77020         using a unsigned prototype, don't inline.
77021         (base64_decode): Use it.
77022
77023 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77026         it.
77027
77028 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         * lib/save-cwd.c (save_cwd): Remove code to support the case
77031         where fchdir is missing or flaky.
77032
77033 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77034
77035         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77036
77037 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77040         AC_LIBSOURCES now does this.
77041         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77042         with new ullong_max module.
77043
77044 2005-01-19  Bruno Haible  <bruno@clisp.org>
77045
77046         * modules/sh-quote: New file.
77047         * MODULES.html.sh (Executing programs): Add sh-quote.
77048
77049 2005-01-19  Bruno Haible  <bruno@clisp.org>
77050
77051         * lib/sh-quote.h: New file, from GNU gettext.
77052         * lib/sh-quote.c: New file, from GNU gettext.
77053
77054 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         Merge from coreutils.
77057         * m4/ullong_max.m4: New file.
77058         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77059         (gl_MACROS): Assume localeconv exists.
77060
77061 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         Merge changes from coreutils, as described below in several
77064         changelogs dated today.
77065
77066         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77067         (O_DIRECTORY): Remove; not needed here, since "." must be
77068         a directory.  All uses removed.
77069         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77070         universal on Suns, and we also need to test for IRIX.
77071         Revamp code to use 'if' rather than '#if'.
77072         Avoid unnecessary comparison of cwd->desc to 0.
77073
77074         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77075         for known valid error numbers rather than observed invalid ones.
77076
77077 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * modules/ullong_max: New file.
77080
77081         * modules/chdir-long, modules/openat: New files.
77082         * modules/save-cwd (Depends-on): Depend on chdir-long.
77083         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77084
77085 2005-01-18  Jim Meyering  <jim@meyering.net>
77086
77087         Merge from coreutils.
77088         * m4/chdir-long.m4, m4/openat.m4: New files.
77089         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77090         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77091         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77092         is sane and DOES follow symlinks.  Besides, testing 20 different
77093         systems found no broken chown implementations.
77094         Prompted by a change in rsync's copy of this macro.
77095         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77096
77097         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77098
77099         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77100         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77101         NULL-means-set-to-current-time semantics.
77102         Remove temporary file immediately, rather than waiting
77103         for configure's at-exit trap code to do it.
77104
77105 2005-01-18  Jim Meyering  <jim@meyering.net>
77106
77107         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77108
77109         * lib/utimens.c (futimens): Account for the fact that futimes
77110         can also fail with errno == ENOSYS or errno == ENOENT.
77111         Patch from Dmitry V. Levin.
77112
77113         Change the name of the robust chdir function from chdir to chdir_long.
77114         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77115         (restore_cwd): Use chdir_long, not chdir.
77116         * lib/chdir-long.c: Renamed from chdir.c.
77117         * lib/chdir-long.h: Renamed from chdir.h.
77118         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77119         Hurd.
77120
77121 2005-01-18  Bruno Haible  <bruno@clisp.org>
77122
77123         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77124         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77125         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77126         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77127         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77128         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77129         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77130         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77131         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77132         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77133         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77134         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77135         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77136         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77137         Use an all-permissive copyright notice, recommended by RMS.
77138
77139 2005-01-18  Bob Proulx  <bob@proulx.com>
77140
77141         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77142         simplify offsetof() macro construct to avoid compile failure with
77143         native HP-UX 11.0 ANSI C compiler.
77144
77145 2005-01-17  Bruno Haible  <bruno@clisp.org>
77146
77147         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77148         redundant because stpncpy.m4 takes care of it.
77149
77150 2005-01-17  Bruno Haible  <bruno@clisp.org>
77151
77152         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77153
77154 2005-01-17  Bruno Haible  <bruno@clisp.org>
77155
77156         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77157         used.
77158
77159 2005-01-17  Bruno Haible  <bruno@clisp.org>
77160
77161         * lib/fwriteerror.h (fwriteerror): Change specification to include
77162         fclose.
77163         * lib/fwriteerror.c: Include <stdbool.h>.
77164         (fwriteerror): At the end, close the file stream. Record whether
77165         stdout was already closed.
77166
77167 2005-01-17  Bruno Haible  <bruno@clisp.org>
77168
77169         * lib/execute.c (environ): Declare if needed.
77170         * lib/pipe.c (environ): Likewise.
77171         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77172
77173 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77174
77175         * modules/argp: Depend on vsnprintf
77176
77177 2005-01-10  Jim Meyering  <jim@meyering.net>
77178
77179         * modules/closeout (Depends-on): Add atexit.
77180
77181 2005-01-06  Bruno Haible  <bruno@clisp.org>
77182
77183         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77184
77185 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77188         definitions to be after all include files, to avoid collisions.
77189         Problem reported by Bob Proulx.
77190
77191 2005-01-04  Jim Meyering  <jim@meyering.net>
77192
77193         Changes imported from coreutils.
77194         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77195         as the mkstemp template, use a temporary directory and an
77196         8.3-friendly template to avoid trouble on systems like DJGPP.
77197         Reported by Juan M. Guerrero via Stepan Kasal.
77198         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77199         close. Remove the temporary directory right away, rather than waiting
77200         for configure's at-exit trap code to do it.
77201         Suggestion from Stepan Kasal.
77202
77203 2005-01-01  Simon Josefsson  <jas@extundo.com>
77204
77205         * gnulib-tool: Print #include directives when --import'ing.
77206
77207 2004-12-28  Simon Josefsson  <jas@extundo.com>
77208
77209         * tests/test-base64.c: Include required header files.  Remove
77210         unused variables.
77211
77212 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77213
77214         * modules/error (Depends-on): Remove gettext.
77215
77216 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77219         not needed.  This removes a dependency on the gettext module.
77220         [defined _LIBC]: Do not include <libintl.h>; not needed.
77221
77222 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77225         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77226
77227 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77230         HAVE_DECL_STRTOLD.
77231
77232 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * modules/getdate (Depends-on): Remove alloca-opt.
77235
77236 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77239
77240 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * lib/argp-parse.c: Include <stddef.h>.
77243         (alignof, alignto): New macros.
77244         (parser_init): Don't assume that void * is aligned sufficiently
77245         for struct option.
77246
77247         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77248         need to extend the stack.
77249         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77250         large.
77251
77252 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77253
77254         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77255
77256 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77257
77258         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77259         (2004-10-24) change.  Apparently this was a false alarm.
77260
77261         * modules/getdate: Depend on alloca-opt, not alloca.
77262
77263 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77266         Remove now-obsolete comment about AIX.
77267         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77268         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77269         (YYMAXDEPTH): New macro.
77270
77271 2004-12-18  Simon Josefsson  <jas@extundo.com>
77272
77273         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77274
77275 2004-12-18  Bruno Haible  <bruno@clisp.org>
77276
77277         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77278
77279 2004-12-18  Bruno Haible  <bruno@clisp.org>
77280
77281         * lib/fatal-signal.c (fatal_signals): Make non-const.
77282         (init_fatal_signals): New function.
77283         (uninstall_handlers, install_handlers): Ignore signals that were set to
77284         SIG_IGN.
77285         (at_fatal_signal): Call init_fatal_signals.
77286         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77287         SIG_IGN.
77288         Reported by Paul Eggert.
77289
77290 2004-12-18  Bruno Haible  <bruno@clisp.org>
77291
77292         * doc/alloca.texi: New file.
77293         * doc/alloca-opt.texi: New file.
77294
77295 2004-12-17  Jim Meyering  <jim@meyering.net>
77296
77297         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77298         Otherwise, install-sh could exit with improper exit status when
77299         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77300
77301 2004-12-16  Simon Josefsson  <jas@extundo.com>
77302
77303         * tests/test-base64.c: Add license.
77304
77305 2004-12-15  Stepan Kasal  <address@hidden>
77306
77307         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77308
77309 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77310
77311         * modules/getcwd (Files): Add m4/d-ino.m4.
77312         Suggested by Mark D. Baushke.
77313
77314 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         * lib/getdate.y (textint): New member "negative".
77317         (time_zone_hhmm): New function.
77318         Expect 14 shift-reduce conflicts, not 13.
77319         (o_colon_minutes): New rule.
77320         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77321         (yylex): Set the "negative" member of signed numbers.
77322
77323 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77324
77325         * doc/getdate.texi (Time of day items, Time zone items):
77326         Describe new formats +00:00, UTC+00:00.
77327
77328 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77329
77330         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77331         spurious "-l"s.  Problem reported by Stepan Kasal.
77332
77333 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77336         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77337
77338 2004-12-04  Simon Josefsson  <jas@extundo.com>
77339
77340         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77341         Vandoorselaere <yoann@prelude-ids.org>.
77342
77343 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         Changes imported from coreutils.
77346         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77347         exist.
77348         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77349
77350 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         Changes imported from coreutils.
77353         * lib/hard-locale.c: Assume <locale.h> exists.
77354         Include "strdup.h".
77355         (GLIBC_VERSION): New macro.
77356         (hard_locale): Assume setlocale exists.
77357         Rewrite to avoid #ifdef.
77358         Use strdup rather than malloc + strcpy.
77359         * lib/human.c: Assume <locale.h> exists.
77360         (human_readable): Assume localeconv exists.
77361
77362 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77363
77364         * modules/hard-locale (Depends-on): Add strdup.
77365
77366 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77367
77368         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77369         convert T2, not T.  (Imported from libc.)
77370
77371 2004-11-30  Simon Josefsson  <jas@extundo.com>
77372
77373         * modules/restrict (License): Change to LGPL.
77374
77375 2004-11-30  Simon Josefsson  <jas@extundo.com>
77376
77377         * m4/restrict.m4: Add copyright and copying conditions.
77378
77379 2004-11-30  Simon Josefsson  <jas@extundo.com>
77380
77381         * m4/base64.m4: New file.
77382
77383 2004-11-30  Simon Josefsson  <jas@extundo.com>
77384
77385         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77386         base64.
77387
77388         * tests/test-base64.c: New file.
77389
77390         * modules/base64: New file.
77391
77392 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77395         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77396
77397         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77398
77399 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77402         (__getcwd.c): Don't restore errno; glibc doesn't.
77403         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77404         first, falling back to our code only if its results look suspicious.
77405         Ensure that the resulting buffer is only as large as necessary.
77406
77407         * lib/readutmp.c: Include readutmp.h first.
77408         Include <errno.h>, since readutmp.h no longer does that.
77409         * lib/readutmp.h: Don't include <errno.h>,
77410         <sys/param.h>, <time.h>; not needed to establish interface.
77411         (errno): Remove decl.
77412         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77413         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77414         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77415
77416 2004-11-28  Simon Josefsson  <jas@extundo.com>
77417
77418         * lib/base64.h, base64.c: New file.
77419
77420 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77421
77422         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77423
77424 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77425
77426         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77427         (Depends-on): Remove pathmax, same.  Add mempcpy.
77428         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77429         (Makefile.am): Append getcwd.h to lib_SOURCES.
77430         (Include): Add getcwd.h.
77431         (Maintainer): Change from Jim Meyering to "all, glibc",
77432         since getdate now uses intended-for-glibc code.
77433         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77434         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77435
77436 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77437
77438         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77439         HP's ANSI C compiler.
77440         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77441         Declaring int functions causes warnings on some modern systems and
77442         shouldn't be needed to compile on ancient ones.
77443         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77444         defined.
77445
77446         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77447         with the following changes.
77448         (__set_errno): Parenthesize properly.
77449         Include <stdbool.h>.
77450         (MIN, MAX, MATCHING_INO): New macros.
77451         (__getcwd): Define with prototype, not K&R form.
77452         Use heuristics to allocate default buffer on stack if possible.
77453         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77454         behavior, and to avoid the PATH_MAX limit when computing
77455         ../../../../...
77456         Use MATCHING_INO to compare inode number to file.
77457         Check for arithmetic overflow in size calculations.
77458         Fix bug in reallocation of dot array that caused getcwd to fail
77459         on directories nested deeper than 75.
77460         Be more careful about saving errno on error.
77461         Do not use realloc; use only free+malloc, as this is a bit
77462         more flexible and avoids a needless copy operation.
77463         Do not inspect st_dev and st_ino for symbolic links; POSIX
77464         doesn't specify the latter.
77465         Check for closedir errors.
77466         Avoid needless casts.
77467         Use "#ifdef weak_alias" around weak_alias, to be like other
77468         glibc code.
77469         The following changes to getcwd.c have effect only when used in
77470         gnulib; they have no effect inside glibc proper.
77471         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77472         as alloca isn't used.
77473         (alloca, __alloca): Likewise.
77474         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77475         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77476         unconditionally, as gnulib assumes C89 or better.
77477         Do not include <sys/param.h>.
77478         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77479         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77480         better.
77481         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77482         Include <dirent.h> in a way that is compatible with modern Autoconf.
77483         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77484         New macros, if not already defined.
77485         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77486         Use "_LIBC", not "defined _LIBC", for consistency.
77487         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77488         a mempcpy module.
77489         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77490         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77491         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77492         credit only to Jim Meyering and adjust the copyright dates.
77493         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77494         <stdlib.h>, <unistd.h>, "pathmax.h".
77495         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77496         (INITIAL_BUFFER_SIZE): Remove.
77497         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77498
77499 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77502         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77503         Use the _ONCE methods, for efficiency.
77504         Check for fcntl.h.  In test program, include <errno.h>
77505         and <fcntl.h> if available.  Remove old K&R cruft from
77506         test program.  Check for common errors in GNU/Linux,
77507         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77508         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77509         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77510         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77511         name accordingly.
77512         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77513         accommodate new getcwd.c.
77514         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77515         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77516         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77517         that's all we need now.
77518
77519 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77520
77521         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77522         argp-parse.c depends on getopt internals, that means we should
77523         always use our getopt, to be on the safe side.
77524         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77525         order not to spoil the result of an eventual previous invocation
77526         of gl_GETOPT_SUBSTITUTE.
77527
77528 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77529
77530         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77531         redefinition warnings. To avoid them, include the defines
77532         in `#if !defined __need_getopt ... #endif'. The only place
77533         where __getopt_argv_const is used is in definitions
77534         of getopt_long and getopt_long_only below, which are as well
77535         protected by `#ifndef __need_getopt'.
77536         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77537         __need_getopt after including <stdio.h> and <unistd.h> These
77538         headers might have defined it.
77539
77540 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77543
77544 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77547         (futimens): New function, which uses futimes if available.
77548         (futimens, utimens): Support timespec==NULL, with same semantics
77549         as utime and utimens.
77550         * lib/utimens.h (futimens): New decl.
77551
77552 2004-11-23  Jim Meyering  <jim@meyering.net>
77553
77554         * lib/getopt_.h: Remove trailing blanks.
77555
77556 2004-11-23  Jim Meyering  <jim@meyering.net>
77557
77558         * lib/__fpending.c: Add comment.
77559
77560 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77561
77562         * modules/canonicalize (Depends-on): Add xreadlink.
77563         Problem reported by James Youngman.
77564
77565 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77568         New macros.
77569         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77570         optopt): Use them instead of invoking ## directly; otherwise, the
77571         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77572
77573 2004-11-19  Bruno Haible  <bruno@clisp.org>
77574
77575         * lib/strtok_r.c: Move comments from here...
77576         * lib/strtok_r.h: ... to here.
77577
77578 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77581         implementations that mishandle size_t overflow.
77582
77583 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77586         might fail.  Problem reported by Yoann Vandoorselaere.
77587         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77588         implementations that mishandle size_t overflow.
77589
77590 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         * modules/canon-host (Depends-on): Add strdup.
77593
77594 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77595
77596         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77597
77598 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         * lib/canon-host.c: Include "strdup.h".
77601         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77602         Use strdup instead of malloc/strcpy to duplicate strings.
77603
77604         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77605         (human_space_before_unit): New constant.
77606         * lib/human.c (human_readable): Support it.
77607
77608         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77609         (xgetcwd): Set errno correctly when failing.
77610         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77611         the failure is actually due to a PATH_MAX problem.
77612
77613         Further getopt changes to make it more likely that glibc will
77614         buy the changes back.
77615         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77616         (getopt): Use it, so to preserve glibc semantic
77617         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77618         when compiling for libc.
77619         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77620         (getopt_long, getopt_long_only): Use it.
77621
77622         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77623         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77624         (getopt): Argv is now char * const *, as per standard.
77625         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77626         not char *__getopt_argv_const *.
77627         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77628         _getopt_long_only_r): Likewise.
77629         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77630         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77631         _getopt_long_r, _getopt_long_only_r): Likewise.
77632         * lib/getopt_.h (__getopt_argv_const): Remove.
77633         (getopt): Argv is now char * const *, as per standard.
77634
77635         * lib/getdate.y (tORDINAL): New token.
77636         (day, relunit): Allow it for relative times.
77637         (relative_time_table): Use tORDINAL for ordinals.
77638
77639 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77640
77641         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77642         Document that "second" isn't allowed as an ordinal number.
77643
77644 2004-11-16  Jim Meyering  <jim@meyering.net>
77645
77646         * modules/closeout (Depends-on): Add fpending.
77647
77648 2004-11-15  Jim Meyering  <jim@meyering.net>
77649
77650         * lib/closeout.c: Include "__fpending.h" once again.
77651         Include <stdbool.h>.
77652         (close_stdout): Don't fail just because stdout was closed initially,
77653         since some programs don't write to stdout in the normal course of
77654         operation (other than --version and --help), and we don't want this
77655         function to make e.g. `touch file >&-' fail.
77656         But do fail if it was closed and someone has tried to write to it.
77657         E.g., `printf foo >&-' must fail.
77658
77659 2004-11-13  Jim Meyering  <jim@meyering.net>
77660
77661         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77662
77663 2004-11-12  Simon Josefsson  <jas@extundo.com>
77664
77665         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77666         small doc fix is still pending.
77667
77668 2004-11-11  Simon Josefsson  <jas@extundo.com>
77669
77670         * modules/strtok_r: New file.
77671
77672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77673         strtok_r.
77674
77675 2004-11-11  Simon Josefsson  <jas@extundo.com>
77676
77677         * m4/strtok_r.m4: New file.
77678
77679         * m4/getopt.m4: Replace opterr.
77680
77681 2004-11-11  Simon Josefsson  <jas@extundo.com>
77682
77683         * lib/strtok_r.h, strtok_r.c: New file.
77684
77685 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77688         of replacing opterr, getopt, etc.  This should handle the
77689         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77690
77691 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77694         we can stop lying to compilers about the constness of argv when we
77695         are compiled outside glibc.
77696         (getopt, getopt_long, getopt_long_only): Use it.
77697         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77698         _getopt_internal, getopt): Likewise.
77699         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77700         _getopt_long_only_r): Likewise.
77701         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77702         _getopt_long_r, _getopt_long_only_r): Likewise.
77703
77704         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77705         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77706         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77707         the other external symbols.
77708         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77709         declaration, since the above renaming now works around collisions.
77710
77711 2004-11-11  Jim Meyering  <jim@meyering.net>
77712
77713         * lib/linebreak.c: Remove trailing blanks.
77714         * lib/alloca_.h: Likewise.
77715         * lib/acosl.c: Likewise.
77716         * lib/euidaccess.c: Likewise.
77717         * lib/allocsa.h: Likewise.
77718
77719 2004-11-10  Simon Josefsson  <jas@extundo.com>
77720
77721         * m4/getaddrinfo.m4: New file.
77722
77723 2004-11-10  Simon Josefsson  <jas@extundo.com>
77724
77725         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77726
77727 2004-11-10  Simon Josefsson  <jas@extundo.com>
77728
77729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77730         getaddrinfo.
77731
77732         * modules/getaddrinfo: New file.
77733
77734 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77735
77736         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77737
77738 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * lib/mktime.c (SHR): New macro, which is a portable
77741         substitute for >> that should work even on Crays.
77742         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77743         Problem reported by Mark D. Baushke in
77744         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77745         * lib/getdate.y (SHR): Likewise.
77746         (tm_diff): Use it.
77747         * lib/strftime.c (SHR): Likewise.
77748         (tm_diff): Use it.
77749         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77750         quote_these_too, so that right shifts are well defined.  All uses
77751         changed.
77752
77753 2004-11-10  Jim Meyering  <jim@meyering.net>
77754
77755         Ensure that no close failure goes unreported.
77756         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77757         return early when it seems there's nothing to flush.
77758         Don't include __fpending.h.
77759
77760 2004-11-10  Jim Meyering  <jim@meyering.net>
77761
77762         * modules/closeout (Depends-on): Remove fpending.
77763
77764 2004-11-10  Jim Meyering  <jim@meyering.net>
77765
77766         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77767
77768 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77771         gl_FUNC_STRFTIME.
77772         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77773         and AC_REQUIRE when possible, to avoid duplicate checks.
77774         Check for <wchar.h>.
77775
77776 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77779
77780 2004-11-09  Bruno Haible  <bruno@clisp.org>
77781
77782         * m4/sockpfaf.m4: New file.
77783
77784 2004-11-05  Bruno Haible  <bruno@clisp.org>
77785
77786         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77787         Reported by Mark D. Baushke <mdb@cvshome.org>.
77788
77789 2004-11-04  Bruno Haible  <bruno@clisp.org>
77790
77791         2004-09-11  Bruno Haible  <bruno@clisp.org>
77792                 * allocsa.valgrind: New file.
77793         2004-02-06  Bruno Haible  <bruno@clisp.org>
77794                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77795                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77796                 Reported by Christopher Seip <chris.seip@hp.com>.
77797
77798 2004-11-04  Bruno Haible  <bruno@clisp.org>
77799
77800         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77801         (Makefile.am): Distribute it.
77802
77803 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77806         with errno == ERANGE if the buffer is too small.
77807         Problem reported by Mark D. Baushke.
77808
77809 2004-11-03  Albert Chin  <china@thewrittenword.com>
77810             Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77813         equivalent, substitute $ac_type for equivalent type rather than
77814         blindly using uint32_t *always* which won't work if uint32_t is not
77815         available.  Define _UINT32_T to work around typedef of uint32_t if
77816         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77817         2.5.1.
77818
77819 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77820
77821         * m4/jm-macros.m4: Sync from coreutils.
77822         (gl_MACROS): Check for mbrlen, for pathchk.
77823         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77824
77825 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77826
77827         * lib/xreadlink.c (MAXSIZE): New macro.
77828         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77829         size does not exceed MAXSIZE.  Avoid cast.
77830         As suggested by Mark D. Baushke in
77831         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77832         if readlink fails with buffer size just under MAXSIZE, try again
77833         with MAXSIZE.
77834
77835 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77838
77839 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77840         and  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77843         (get_date): Overparenthesize to avoid GCC warning.
77844
77845 2004-11-02  Bruno Haible  <bruno@clisp.org>
77846
77847         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77848         returns void.
77849
77850 2004-11-02  Bruno Haible  <bruno@clisp.org>
77851
77852         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77853         function returns void.
77854
77855 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77858         fflush_unlocked, flockfile, funlockfile, funlockfile,
77859         fputs_unlocked, putc_unlocked.
77860
77861 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77862
77863         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77864         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77865         already declared.
77866
77867 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * modules/getdate (Files): Add doc/getdate.texi.
77870         (Depends-on): Add setenv, xalloc.
77871
77872 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         * lib/getdate.y: Add support for TZ="foo" within a date string.
77875         Fix some bugs near time_t boundaries.  Reject dates with
77876         out-of-range components, e.g., "Sept 31".
77877         Include <stdlib.h>, "setenv.h", "xalloc.h".
77878         (ISDIGIT_LOCALE): Remove; unused.
77879         Note that the TZ and time functions used here are not reentrant.
77880         (mktime_ok, get_tz): New functions.
77881         (TZBUFSIZE): New constant.
77882         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77883         This requires that we sometimes generate our own TZ="XXX..." setting.
77884
77885 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77886
77887         * doc/getdate.texi: New file, from coreutils with modifications for
77888         the new TZ parsing.
77889
77890 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77891
77892         * lib/mktime.c (not_equal_tm): Remove redundant check.
77893
77894 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * modules/regex (lib_SOURCES): Add regex.c.
77897         Reported by James Youngman in
77898         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77899
77900 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77901
77902         * lib/getdate.y: Use Bison 1.875 features, and some minor
77903         code cleanups.  This change does not affect semantics.
77904         Don't include <stdlib.h>; no longer needed.
77905         Don't include unlocked-io.h; only the "#if TEST" code uses
77906         stdio, and performance isn't crucial there.
77907         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77908         Bison 1.875 features as described below.
77909         All uses of "PC." replaced by "pc->".
77910         (YYSTYPE): Add a forward declaration.
77911         (yylex, yyerror): Use full prototypes in forward decls.
77912         Use "%pure-parser" rather than obsolescent "%pure_parser".
77913         Use %parse-param and %lex-param instead of obsolescent
77914         YYPARSE_PARAM and YYLEX_PARAM.
77915         (meridian_table, month_and_day_table, time_units_table,
77916         relative_time_table, time_zone_table, military_table,
77917         lookup_zone, lookup_word, get_date):
77918         Use NULL instead of 0 where appropriate.
77919         (to_hour): Avoid abort (), to avoid a dependency on
77920         stdlib.h.
77921         (yyerror, yylex): Now accepts parser_control * arg.
77922         (main) [TEST]: Use '\0' rather than 0 for char.
77923
77924 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77925
77926         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77927
77928 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77931         It's now the caller's responsibility to handle the case where
77932         !HAVE_GETPAGESIZE && !defined getpagesize.
77933
77934         * lib/mktime.c (leapyear): Arg is long int, not int.
77935
77936 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77939
77940 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77943         missing.  Problem reported by James Youngman.
77944
77945 2004-10-16  Simon Josefsson  <jas@extundo.com>
77946
77947         * gnulib-tool: Fix comments.  Fix parse problem.
77948         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77949
77950 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77953         implementation of getopt_long.  Problem reported by Alexander Taler in:
77954         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77955
77956 2004-10-15  Bruno Haible  <bruno@clisp.org>
77957
77958         * gnulib-tool: Untabify. Initialize supplied_libname.
77959         (func_usage): More homogenous output.
77960         (func_modules_transitive_closure, func_modules_to_filelist,
77961         func_emit_lib_Makefile_am): New functions.
77962         (func_import): New function, extracted from big case statement. Use
77963         func_get_license, func_modules_transitive_closure,
77964         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77965         opt_lgpl. Don't use test -a, as it's not portable.
77966         (func_create_testdir): Use func_modules_transitive_closure,
77967         func_modules_to_filelist, func_emit_lib_Makefile_am.
77968
77969 2004-10-15  Bruno Haible  <bruno@clisp.org>
77970
77971         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77972
77973 2004-10-15  Bruno Haible  <bruno@clisp.org>
77974
77975         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77976         the portions belonging to each module.
77977         Suggested by Derek Robert Price <derek@ximbiot.com>.
77978
77979 2004-10-12  Simon Josefsson  <jas@extundo.com>
77980
77981         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77982         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77983         to real functions.
77984
77985 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77986
77987         * modules/vsnprintf: New file.
77988
77989 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77990
77991         * m4/vsnprintf.m4: New file.
77992
77993 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77994
77995         * lib/vsnprintf.h: New file.
77996         * lib/vsnprintf.c: New file.
77997
77998 2004-10-11  Bruno Haible  <bruno@clisp.org>
77999
78000         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78001         vsnprintf.
78002
78003 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78006
78007 2004-10-07  Bruno Haible  <bruno@clisp.org>
78008
78009         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78010         fits into the provided buffer.
78011
78012 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * lib/diacrit.c, diacrit.h: Add GPL notice.
78015
78016         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78017         notice.
78018         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78019         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78020         This avoids a potential constant-folding bug.
78021
78022 2004-10-05  Bruno Haible  <bruno@clisp.org>
78023
78024         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78025         for the declaration of strsep.
78026
78027 2004-10-05  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78030
78031 2004-10-04  Simon Josefsson  <jas@extundo.com>
78032
78033         * modules/memmem: New file.
78034         * tests/test-memmem.c: New file.
78035         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78036
78037 2004-10-04  Simon Josefsson  <jas@extundo.com>
78038
78039         * m4/memmem.m4: New file.
78040
78041 2004-10-04  Simon Josefsson  <jas@extundo.com>
78042
78043         * lib/memmem.h: New file.
78044         * lib/memmem.c: New file, taken from glibc.
78045
78046 2004-10-04  Simon Josefsson  <jas@extundo.com>
78047
78048         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78049         '#ifdef USE_UNLOCKED_IO'.
78050
78051 2004-10-04  Simon Josefsson  <jas@extundo.com>
78052
78053         * config/srclist.txt: Add memmem from glibc.
78054
78055 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78058
78059         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78060         modules/exclude, modules/getdate, modules/getline,
78061         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78062         modules/getusershell, modules/linebuffer, modules/md5,
78063         modules/mountlist, modules/posixtm, modules/readtokens,
78064         modules/readutmp, modules/regex, modules/sha1,
78065         modules/version-etc, modules/yesno:
78066         Remove dependency on unlocked-io.
78067
78068 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78069
78070         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78071
78072         * m4/unlocked-io.m4: Add copyright notice.
78073         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78074
78075 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78076
78077         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78078         * lib/xmalloc.c (xmemdup): Likewise.
78079         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78080         XFREE): Remove these long-obsolescent macros.
78081         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78082         * lib/xstrdup.c: Remove.
78083
78084         * lib/regex.c (re_comp): Cast gettext return value to char *,
78085         Problem reported by Martin Neitzel via Mark D. Baushke.
78086
78087 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78088
78089         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78090         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78091         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78092         regex.c, sha1.c, version-etc.c, yesno.c:
78093         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78094         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78095         the includer's responsibility.
78096
78097         Sync from coreutils.
78098
78099         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78100         points to the start of a string, as the C Standard says the
78101         resulting behavior is undefined.
78102
78103         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78104         simple -> simple_backups, numbered_existing ->
78105         numbered_existing_backups, numbered -> numbered_backups
78106         to avoid shadowing problems.  All uses changed.
78107         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78108         * lib/backupfile.c (check_extension, numbered_backup):
78109         Rename locals to avoid shadowing 'basename'.
78110         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78111         once.
78112
78113         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78114         * lib/.cvsignore: Add getopt.h.
78115
78116 2004-10-04  Bruno Haible  <bruno@clisp.org>
78117
78118         * modules/README: New file.
78119         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78120         not a module.
78121
78122 2004-10-02  Jim Meyering  <jim@meyering.net>
78123
78124         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78125
78126 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78127
78128         * modules/strsep: New file.
78129
78130 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78131
78132         * m4/strsep.m4: New file.
78133
78134 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78135
78136         * lib/strsep.h: New file.
78137         * lib/strsep.c: New file.
78138
78139 2004-10-01  Simon Josefsson  <jas@extundo.com>
78140
78141         * lib/snprintf.c (snprintf): Handle size==0.
78142
78143 2004-10-01  Simon Josefsson  <jas@extundo.com>
78144             Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78147         (snprintf): Declare 'args'.
78148
78149 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * lib/snprintf.c: Remove comments as to why each header is needed.
78152
78153 2004-10-01  Bruno Haible  <bruno@clisp.org>
78154
78155         * MODULES.html.sh: Add strsep.
78156
78157 2004-09-30  Simon Josefsson  <jas@extundo.com>
78158
78159         * modules/snprintf: New file.
78160
78161 2004-09-30  Simon Josefsson  <jas@extundo.com>
78162
78163         * m4/snprintf.m4: New file.
78164
78165 2004-09-30  Simon Josefsson  <jas@extundo.com>
78166
78167         * lib/snprintf.h, lib/snprintf.c: New files.
78168
78169 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78170
78171         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78172         (hol_entry_help): Never translate an empty string.
78173         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78174         * lib/argp.h (OPTION_NO_TRANS): New option.
78175
78176 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * modules/argp (Maintainer): Replace Simon Josefsson
78179         by Sergey Poznyakoff.
78180
78181 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78184         changes merged back into glibc.
78185
78186 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78187
78188         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78189
78190 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78191
78192         * lib/xvasprintf.c: Include xalloc.h.
78193         (xvasprintf): Use xalloc_die, not xmalloc_die.
78194
78195 2004-09-29  Bruno Haible  <bruno@clisp.org>
78196
78197         * modules/alloca-opt: New file, derived from modules/alloca.
78198         * modules/allocsa: Depend on alloca-opt instead of alloca.
78199         * modules/setenv: Likewise.
78200         * modules/vasnprintf: Likewise.
78201         * MODULES.html.sh: Add alloca-opt.
78202
78203 2004-09-28  Simon Josefsson  <jas@extundo.com>
78204
78205         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78206         LGPL, and to replace license template from GPL to LGPL.
78207
78208 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         * modules/dummy: Change license to LGPL.
78211
78212 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78215
78216 2004-09-24  Simon Josefsson  <jas@extundo.com>
78217
78218         * modules/minmax (License): Change from GPL to LGPL.
78219
78220 2004-09-23  Simon Josefsson  <jas@extundo.com>
78221
78222         * gnulib-tool (--import): Typo.
78223
78224 2004-09-23  Simon Josefsson  <jas@extundo.com>
78225
78226         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78227
78228 2004-09-22  Bruno Haible  <bruno@clisp.org>
78229
78230         * modules/*: Add 'License' field.
78231         * gnulib-tool: Accept --extract-license option.
78232         (func_get_license): New function.
78233
78234 2004-09-21  Bruno Haible  <bruno@clisp.org>
78235
78236         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78237         Reported by Simon Josefsson.
78238
78239 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78240
78241         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78242         gl_AC_TYPE_LONG_LONG.
78243
78244 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78245
78246         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78247
78248 2004-09-18  Simon Josefsson  <jas@extundo.com>
78249         and  Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78252         calls with autoreconf.  Define GL_LIB.
78253
78254 2004-09-14  Karl Berry  <karl@gnu.org>
78255
78256         * config/srclist.txt: unsync setenv.c, sigh.
78257
78258 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78261         Problem reported by Bruno Haible in:
78262         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78263
78264 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * config/srclist.txt: Comment out argp-pvh.c.
78267
78268 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78269
78270         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78271         in case some system header has #define'd it.  Problem reported by
78272         Soeren D. Schulze in
78273         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78274
78275 2004-09-09  Karl Berry  <karl@gnu.org>
78276
78277         * regex.[ch]: delete from the root.  These were supposed to be
78278                 synced with emacs cvs, but this has not happened for about
78279                 a year, and anyway nothing else uses emacs regex.[ch].
78280                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78281                 lib/regex[.ch] is untouched.
78282
78283 2004-09-09  Bruno Haible  <bruno@clisp.org>
78284
78285         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78286
78287 2004-09-09  Bruno Haible  <bruno@clisp.org>
78288
78289         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78290         modifications.
78291         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78292
78293 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78294
78295         * modules/xvasprintf: New file.
78296         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78297
78298 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78299
78300         * lib/xvasprintf.h: New file.
78301         * lib/xvasprintf.c: New file.
78302         * lib/xasprintf.c: New file.
78303
78304 2004-09-08  Bruno Haible  <bruno@clisp.org>
78305
78306         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78307
78308 2004-09-08  Bruno Haible  <bruno@clisp.org>
78309
78310         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78311         length is > INT_MAX.
78312         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78313         more.
78314
78315 2004-09-08  Bruno Haible  <bruno@clisp.org>
78316
78317         * lib/stdint_.h: New file, taken from GNU clisp.
78318
78319 2004-09-08  Bruno Haible  <bruno@clisp.org>
78320             Oskar Liljeblad  <oskar@osk.mine.nu>
78321
78322         * modules/stdint: New file.
78323         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78324
78325 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78326
78327         Import from coreutils.
78328         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78329         strings on unbounded length.  alloca's performance benefits aren't
78330         that important here.
78331         (V_STRDUP): Remove.
78332         (parse_with_separator): New function, with most of the internals
78333         of the old parse_user_spec.  Allow user to omit both user and group,
78334         for compatibility with FreeBSD.
78335         Clone only the user name, not the entire spec.
78336         Do not set *uid, *gid unless entirely successful.
78337         Avoid memory leak in some failing cases.
78338         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78339         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78340         (parse_user_spec): Rewrite to use parse_with_separator.
78341
78342 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78343
78344         * modules/userspec: Don't depend on alloca.
78345
78346 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78349
78350 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78353         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78354         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78355
78356 2004-08-16  Simon Josefsson  <jas@extundo.com>
78357
78358         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78359         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78360         Add --dry-run for --import.
78361         Let user provided command line parameters override configure.ac
78362         settings.
78363
78364 2004-08-12  Simon Josefsson  <jas@extundo.com>
78365
78366         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78367         as discussed with Paul Eggert in threads rooted at
78368         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78369         and
78370         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78371         Before, the test was empty, and relied on ELIDE_CODE in source
78372         code.)
78373         (gl_PREREQ_GETOPT): New macro.
78374         (gl_GETOPT): Use them.
78375
78376 2004-08-12  Simon Josefsson  <jas@extundo.com>
78377
78378         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78379         * lib/getopt_.h: Renamed from getopt.h.
78380
78381 2004-08-12  Simon Josefsson  <jas@extundo.com>
78382
78383         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78384         Change default library name from libfoo to libgnu.
78385         Now, if you have a configure.ac that says:
78386                 gl_SOURCE_BASE(gl)
78387                 gl_M4_BASE(gl/m4)
78388                 gl_MODULES(error getopt etcetera)
78389                 gl_INIT
78390         you can import all you need by running:
78391                 ../gnulib/gnulib-tool --import
78392
78393         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78394         (Makefile.am): Rewrite, use logic from argz.
78395         (Include): Use <getopt.h> instead of "getopt.h".
78396
78397 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * modules/argp (Files): Add m4/unlocked-io.m4.
78400         (Depends-on): Add extensions.
78401
78402 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78403
78404         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78405         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78406         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78407         Check for program_invocation_name, program_invocation_short_name,
78408         flockfile, funlockfile, features.h, _getopt_long_only_r.
78409
78410 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78413         its complicated substitute.
78414         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78415         and program_invocation_name.
78416         (__argp_basename) [!_LIBC]: Remove; the only use was
78417         replaced by its body.
78418         (__argp_short_program_name): Change condition from
78419         !defined __argp_short_program_name to
78420         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78421         to match argp-namefrob.h.
78422         (__argp_failure): Don't assume strerror_r returns char *.
78423         * lib/argp-parse.c (N_): Define unconditionally.
78424         (argp_default_options): Fill out initializers with 0 to avoid
78425         gcc warnings.
78426
78427 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78430         getopt1.c.
78431
78432 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         Merge from coreutils.
78435
78436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78437
78438         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78439         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78440
78441 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         Merge from coreutils.
78444
78445         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78446         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78447         for Reliant Unix 5.43.
78448
78449         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78450         (union fooround): Use uintmax_t, not long int.
78451         The rest is a merge from libc:
78452         [defined _LIBC]: Include <shlib-compat.h>.
78453         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78454
78455         * lib/settime.c (settime): Recode to avoid warning with
78456         Sun Forte C 6U2.
78457
78458         * lib/strverscmp.c: Convert to UTF-8.
78459
78460 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78463         m4/uintmax_t.m4.
78464
78465 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * modules/xalloc-die: New file.
78468         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78469
78470         * modules/md5 (Files): Add m4/uint32_t.m4.
78471         * modules/sha1: Renamed from modules/sha.
78472         (Files):
78473         Rename lib/sha.h to lib/sha1.h.
78474         Rename lib/sha.c to lib/sha1.c.
78475         Rename m4/sha.m4 to m4/sha1.m4.
78476         (lib_SOURCES): Likewise.
78477         (configure.ac): Rename gl_SHA to gl_SHA1.
78478         (Include): sha.h -> sha1.h.
78479
78480 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78481
78482         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78483         * m4/sha1.m4: Renamed from sha.m4.
78484         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78485
78486 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * lib/obstack.h (obstack_empty_p):
78489         Don't assume that chunk->contents is suitably aligned.
78490         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78491         Likewise. Problem reported by Benno in
78492         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78493
78494         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78495         readable.  This could be improved further but it'd take some work.
78496
78497 2004-08-08  Simon Josefsson  <jas@extundo.com>
78498
78499         * modules/xgethostname (Depends-on): Remove exit and error (not
78500         used).
78501
78502         * modules/getpass-gnu: Add getpass.h.
78503         (Depends-on): Add stdbool.
78504         * modules/getpass: Add getpass.h.
78505
78506 2004-08-08  Simon Josefsson  <jas@extundo.com>
78507
78508         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78509         Check getpass declaration.
78510
78511 2004-08-08  Simon Josefsson  <jas@extundo.com>
78512
78513         * lib/xgethostname.c: Don't include error.h (not used).
78514
78515         * lib/getpass.h: Add.
78516         * lib/getpass.c: Include getpass.h first.
78517
78518 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         * lib/xalloc-die.c: New file.
78521         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78522         All uses removed.
78523         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78524         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78525         xalloc-die.c.
78526         (_, N_, xalloc_die): Move to xalloc-die.c.
78527         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78528         so that we needn't mess with xalloc_msg_memory_exhausted.
78529
78530         * lib/sha1.h: Renamed from sha.h.
78531         (SHA1_H): Renamed from _SHA_H.
78532         (sha1_ctx): Renamed from sha_ctx.
78533         (sha1_init_ctx): Renamed from sha_init_ctx.
78534         (sha1_process_block): Renamed from sha_process_block.
78535         (sha1_process_bytes): Renamed from sha_process_bytes.
78536         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78537         (sha1_read_ctx): Renamed from sha_read_ctx.
78538         (sha1_stream): Renamed from sha_stream.
78539         (sha1_buffer): Renamed from sha_buffer.
78540         * lib/sha1.c: Likewise; renamed from sha.c.
78541         Do not include <sys/types.h>.
78542         Include <stddef.h> rather than <stdlib.h>.
78543
78544 2004-08-08  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78547         FILESYSTEM_PREFIX_LEN.
78548         * lib/progreloc.c: Likewise.
78549         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78550
78551 2004-08-06  Simon Josefsson  <jas@extundo.com>
78552
78553         * modules/progname (Depends-on): Don't depend on stdbool.
78554
78555 2004-08-06  Simon Josefsson  <jas@extundo.com>
78556
78557         * modules/getsubopt: New file.
78558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78559         getsubopt.
78560
78561 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78562
78563         More merge from coreutils.
78564
78565         * m4/utimens.m4, m4/utimecmp.m4: New files.
78566         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78567         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78568         prereq.m4, sha.m4: Import changes from coreutils.
78569
78570 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         More merge from coreutils.
78573         * modules/raise, modules/readtokens0, modules/utimens:
78574         * modules/utimecmp, module/xnanosleep: New files.
78575         * modules/strftime: Add lib/strftime.h.
78576         Change include from <time.h> to "strftime.h".
78577         * modules/yesno: Add lib/yesno.h.
78578         * modules/backupfile: Remove lib/addext.c.
78579         * modules/euidaccess: Add stat-macros.h.
78580         * modules/canonicalize, modules/euidaccess,
78581         modules/filemode, modules/lchown, modules/makepath,
78582         modules/rmdir, modules/stat: Likewise.
78583
78584 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         Merge from tar.
78587         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78588         SIZE_MAX is a valid preprocessor constant.
78589         (__argp_basename): Change from "#ifndef _LIBC"
78590         to "#ifndef __argp_short_program_name", so that
78591         we don't compile these functions for tar.
78592
78593         More merges from coreutils.
78594         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78595         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78596         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78597         * lib/addext.c: Remove; no longer needed.
78598         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78599         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78600         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78601         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78602         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78603         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78604         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78605         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78606         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78607         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78608         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78609         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78610         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78611         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78612         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78613         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78614         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78615         Import changes from coreutils.
78616
78617 2004-08-05  Simon Josefsson  <jas@extundo.com>
78618
78619         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78620
78621 2004-08-05  Simon Josefsson  <jas@extundo.com>
78622
78623         * m4/getsubopt.m4: New file.
78624
78625 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78626
78627         Merge from coreutils.
78628
78629         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78630         * m4/getcwd-path-max.m4: New files.
78631
78632         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78633         FILESYSTEM_PREFIX_LEN ->
78634         FILE_SYSTEM_PREFIX_LEN.
78635         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78636         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78637         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78638         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78639
78640         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78641         prerequisite modules now handle the DOS stuff.
78642         Don't check for unistd.h.
78643
78644 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78645
78646         Merge from coreutils.
78647
78648         * lib/.gdb-history: Remove; this doesn't belong here.
78649
78650         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78651         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78652         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78653         * lib/getcwd.c: New files.
78654
78655         * lib/dirname.h: Include <stdbool.h>.
78656         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78657         for consistency with POSIX terminology.  All uses changed.
78658         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78659         (strip_trailing_slashes): Use bool for booleans.
78660         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78661
78662         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78663         sometimes returns a positive errno value even when it succeeds.
78664         (print_errno_message) [!LIBC]: Fall back on strerror if
78665         __strerror_r fails.
78666
78667         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78668         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78669         (longest_relative_suffix): New function.
78670         (path_concat): Use it.  Assume first argument is not NULL.
78671         Port to DOS.  Omit redundant separators.
78672         Report an error instead of returning NULL.
78673         Use mempcpy instead of memcpy.
78674         (xpath_concat): Remove: not declared or used.
78675
78676         * lib/same.h: Include <stdbool.h>
78677         (same_name): Return bool, not int.
78678         * lib/same.c (same_name): Likewise.
78679         (errno): Don't declare; we assume C89 or better now.
78680
78681         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78682         if not already defined.
78683
78684         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78685         * lib/dup-safer.c (errno): Likewise.
78686
78687 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78688
78689         Merge from coreutils.
78690         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78691         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78692         * modules/path-concat: Don't depend on strdup.
78693
78694 2004-08-03  Simon Josefsson  <jas@extundo.com>
78695
78696         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78697         * lib/progname.h: Don't include stdbool.h.
78698
78699 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78702         * MODULES.html.sh (func_all_modules): Remove fatal.
78703
78704 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78707
78708 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78711         working.
78712
78713 2004-08-02  Simon Josefsson  <jas@extundo.com>
78714
78715         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78716         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78717         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78718
78719 2004-08-01  Simon Josefsson  <jas@extundo.com>
78720
78721         * lib/xgetdomainname.c: Include stdlib.h, for free().
78722
78723 2004-07-19  Bruno Haible  <bruno@clisp.org>
78724
78725         * MODULES.html.sh (func_all_modules): Add dummy.
78726
78727 2004-07-16  Simon Josefsson  <jas@extundo.com>
78728
78729         * modules/dummy: New file.
78730
78731 2004-07-16  Simon Josefsson  <jas@extundo.com>
78732
78733         * lib/dummy.c: New file.
78734
78735 2004-07-16  Bruno Haible  <bruno@clisp.org>
78736
78737         * lib/backupfile.h: Add extern "C" for C++.
78738         * lib/closeout.h: Likewise.
78739         * lib/copy-file.h: Likewise.
78740         * lib/findprog.h: Likewise.
78741         * lib/full-write.h: Likewise.
78742         * lib/pathname.h: Likewise.
78743         * lib/progname.h: Likewise.
78744         * lib/stpcpy.h: Likewise.
78745         * lib/stpncpy.h: Likewise.
78746         * lib/strcase.h: Likewise.
78747         * lib/strstr.h: Likewise.
78748         * lib/xalloc.h: Likewise.
78749
78750         * lib/mbswidth.h: Add extern "C" for C++.
78751         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78752
78753 2004-07-13  Robert Millan  <robertmh@gnu.org>
78754
78755         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78756
78757 2004-07-09  Simon Josefsson  <jas@extundo.com>
78758
78759         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78760         failed without this.)
78761
78762 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         * modules/chown (Files): Add lib/fchown-stub.c, since
78765         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78766
78767 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * lib/fchown-stub.c: New file.
78770
78771 2004-06-24  Jim Meyering  <jim@meyering.net>
78772
78773         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78774
78775 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * modules/argz: Omit "#include".
78778
78779         * MODULES.html.sh (func_all_modules): Add calloc, to match
78780         2004-06-01 addition of calloc module.
78781
78782 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * m4/argz.m4: New file, which is autoupdated from libtool.
78785
78786 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78789         libtool.
78790
78791 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * config/srclist-update: Don't insist on "USA." before the
78794         close-comment, as libtool omits the period and puts the */ on a
78795         separate line.
78796         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78797         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78798
78799 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78800
78801         * modules/argz: New file.
78802         * MODULES.html.sh (func_all_modules): Add argz.
78803
78804 2004-06-12  Jim Meyering  <jim@meyering.net>
78805         and  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * modules/hash (Files): Add lib/xalloc.h.
78808         * modules/pipe (Depends-on): Add wait-process.
78809         * modules/stat (Depends-on): Add xalloc.
78810         * modules/userspec (Files): Add lib/userspec.h.
78811         * modules/xstrto
78812
78813         Upgrade from gettext-0.13.
78814         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78815         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78816         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78817
78818 2004-06-10  Jim Meyering  <jim@meyering.net>
78819
78820         * lib/calloc.c: New file.
78821
78822 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78823
78824         * lib/getdate.y (yylex): Allow space between sign and number.
78825         Problem reported by Dan Jacobson.
78826
78827 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78828
78829         Merge from coreutils CVS.
78830
78831         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78832         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78833         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78834         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78835         xstrtol.m4: Fix copyright date and/or serial number.
78836
78837         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78838         See if we need an fchown replacement.
78839         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78840         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78841         and use the replacement function if we detect either defect.
78842
78843         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78844         gl_UTIMECMP.
78845
78846 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78847         and  Jim Meyering  <jim@meyering.net>
78848
78849         Merge from coreutils CVS.
78850
78851         * lib/stat-macros.h: New file, with contents from file-type.h
78852         and coreutils' system.h.
78853         * lib/file-type.c: Include "stat-macros.h".
78854         * lib/file-type.h (file_type): Move all macro definitions to new file,
78855         stat-macros.h.
78856
78857         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78858         Wrap old code with this conditional.
78859         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78860         function that does not dereference symlinks.
78861         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78862
78863         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78864         dependency problems.
78865         (xreadlink): Accept new arg SIZE, for efficiency.
78866         All decls and uses changed.
78867         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78868
78869         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78870         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78871
78872         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78873         sysexits.h.
78874
78875 2004-06-01  Jim Meyering  <jim@meyering.net>
78876
78877         * m4/calloc.m4: New file.
78878
78879 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78880
78881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78882         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78883         Also, fix a typo in a diagnostic.
78884
78885 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78888         or AC_FUNC_REALLOC.
78889
78890 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78893         macros to be defined.
78894         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78895         the allocator returns NULL because the requested size is zero.
78896
78897 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78898
78899         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78900         var.  Add comment explaining why libc still defines it.  This
78901         merges the following patch from glibc:
78902         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78903
78904 2004-05-20  Andreas Schwab  <schwab@suse.de>
78905
78906         * m4/free.m4: Replace free if it not known to work, not the other
78907         way round.
78908
78909 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78912         present in glibc since revision 1.1 of this file.
78913         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78914         obstack_alignment_mask, obstack_alloc, obstack_base,
78915         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78916         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78917         obstack_grow0, obstack_init, obstack_int_grow,
78918         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78919         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78920         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78921         nonexistent functions.
78922
78923 2004-05-18  Karl Berry  <karl@gnu.org>
78924
78925         * config/srclist.txt: break link for vasnprintf.c.
78926
78927 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         Port obstack to the AS/400, where pointers are 16 bytes wide and
78930         you cannot cast an integer to a valid pointer.  This patch is
78931         currently waiting to be integrated into glibc; see
78932         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78933
78934         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78935         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78936         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78937         (struct obstack): temp member is now a union of a pointer and
78938         an integer, instead of an integer.  All integer uses changed.
78939         This does not affect the physical layout of struct obstack,
78940         except on hosts (like the AS/400) where the size or alignment of
78941         void * is greater than that of ptrdiff_t.
78942         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78943         __STDC__)]: Store temporary in pointer member of union, not
78944         integer member.
78945         * lib/obstack.c: Include <stddef.h>, for offsetof.
78946         (struct fooalign): Remove; it doesn't need a name.
78947         (union fooround): Change double to long double, and add void *.
78948         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78949         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78950         not a macro.  Hence the values are always int; so remove all
78951         casts-to-int in uses.
78952
78953 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78954
78955         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78956         we can get this patch merged into glibc.
78957
78958 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78959             Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * m4/argp: Depend on alloca.
78962
78963 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78964             Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78967         freecoding.
78968
78969 2004-05-17  Bruno Haible  <bruno@clisp.org>
78970
78971         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78972         precision that consists of a '.' followed by an empty digit string.
78973         Patch by Tor Lillqvist <tml@iki.fi>.
78974
78975 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78978         for backward compatibility with older code.  We need our own
78979         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78980         it under some other name, and our alloca.h will define it.
78981
78982 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78983             Derek Price  <derek@ximbiot.com>
78984
78985         * lib/alloca.c: Include <alloca.h>, to get our interface.
78986         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78987         include <alloca.h> first.  Use C89 prototype for alloca; this
78988         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78989         Use #elif for simplicity, since we can assume C89 now.
78990         Don't try to source the system alloca.h since it will not be found
78991         and to prevent recursively including its replacement.
78992         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78993         * lib/regex.c: Likewise.
78994
78995 2004-05-16  Derek Price  <derek@ximbiot.com>
78996             Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         getline cleanup.  This changes the getndelim2 API: both order of
78999         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79000         no delimiter).
79001
79002         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79003         interface does that.
79004         (getline): Always use getdelim, so that we don't have two
79005         copies of this code.
79006         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79007         if available.
79008         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79009         (GETNDELIM2_MAXIMUM): New macro.
79010         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79011         instead of the old practice of delim2==0.  All callers changed.
79012         Return -1 on overflow, instead of returning junk.
79013         Do not set *linesize unless allocation succeeds.
79014         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79015         that we include sys/types.h.
79016         * lib/getnline.h: Likewise.
79017         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79018         (getndelim2): Reorder arguments.
79019         * lib/getnline.c (getnline, getndelim):
79020         Don't discard the NMAX argument.
79021         (getnline): Invoke getndelim, to avoid code duplication.
79022         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79023         of (size_t) -1 by callers of the getnline family.
79024
79025 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79028         Check for gettimeofday.
79029         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79030         Check for settimeofday, stime.
79031
79032 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         * lib/nanosleep.c (suspended): Change its type from int to
79035         sig_atomic_t volatile.
79036         (first_call): Make it private to rpl_nanosleep, and have it
79037         be zero initially as that's a bit faster.
79038         (my_usleep): Round up fractional times instead of truncating them,
79039         as this is the usual meaning for 'sleep'.
79040
79041         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79042         doesn't work.
79043         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79044         (ENOSYS): Define if not defined.
79045         (settime): Fall back on stime if it exists and settimeofday fails.
79046         But don't bother with fallbacks if a method fails with errno == EPERM.
79047
79048 2004-05-11  Jim Meyering  <jim@meyering.net>
79049
79050         Prior to this change, the save_cwd caller required read access to the
79051         current directory on most systems (ones with the fchdir function).
79052
79053         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79054         fails, try write-only, and finally, resort to using xgetcwd.
79055
79056 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * lib/obstack.c, obstack.h: Import changes from libc.
79059
79060 2004-04-28  Bruno Haible  <bruno@clisp.org>
79061
79062         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79063         also implicitly appends .exe to executables.
79064         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79065         accepts Windows pathnames.
79066         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79067         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79068         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79069         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79070         Reported by Derek Robert Price <derek@ximbiot.com>.
79071
79072 2004-04-21  Karl Berry  <karl@gnu.org>
79073
79074         * config/srclist.txt (localcharset.c): break sync.
79075
79076 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79077
79078         * m4/host-os.m4: Add a copyright notice.
79079
79080 2004-04-20  Jim Meyering  <jim@meyering.net>
79081
79082         Change UTILS_ to gl_ in AC_DEFINE'd names.
79083         Change utils_- and jm_-prefixed variables, too.
79084         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79085         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79086         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79087
79088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79089         Don't emit trailing blanks.
79090         Also rename jm_-prefixed variables to have gl_ prefix.
79091
79092         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79093         Also rename jm_-prefixed variables to have gl_ prefix.
79094
79095         * m4/jm-macros.m4: Reflect the renamings.
79096         * m4/prereq.m4: Likewise.
79097
79098 2004-04-20  Jim Meyering  <jim@meyering.net>
79099
79100         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79101         memory.
79102
79103 2004-04-20  Jim Meyering  <jim@meyering.net>
79104             Bruno Haible  <bruno@clisp.org>
79105
79106         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79107         memory when realloc fails.
79108
79109 2004-04-19  Jim Meyering  <jim@meyering.net>
79110
79111         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79112         now that readutmp.c may call `free (0)'.
79113
79114 2004-04-19  Bruno Haible  <bruno@clisp.org>
79115
79116         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79117         * m4/inttypes_h.m4: Likewise.
79118         * m4/stdint_h.m4: Likewise.
79119         * m4/intmax_t.m4: Likewise.
79120         * m4/uintmax_t.m4: Likewise.
79121
79122 2004-04-18  Jim Meyering  <jim@meyering.net>
79123
79124         * m4/prereq.m4: Don't forbid jm_ prefix.
79125
79126         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79127         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79128         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79129         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79130         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79131         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79132         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79133         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79134         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79135         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79136         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79137         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79138         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79139         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79140         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79141         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79142         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79143         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79144         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79145
79146 2004-04-18  Jim Meyering  <jim@meyering.net>
79147
79148         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79149         failure, don't leak memory and do call END_UTMP_ENT.
79150
79151 2004-04-16  Jim Meyering  <jim@meyering.net>
79152
79153         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79154         coreutils' stat program.
79155         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79156
79157 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79158
79159         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79160         C89.
79161         (CHAR_BIT): Remove, since we assume C89.
79162         Include <stdint.h> if available, as per current Autoconf CVS advice.
79163
79164 2004-03-31  Jim Meyering  <jim@meyering.net>
79165
79166         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79167         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79168         * m4/xalloc.m4: Likewise.
79169
79170 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79171
79172         Merge from coreutils.
79173
79174         * m4/inttostr.m4: New file.
79175         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79176         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79177         Require gl_CLOCK_TIME.
79178         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79179
79180 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79181
79182         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79183         not bool, to be more consistent with Unix conventions.
79184         Suggested by Bruno Haible.
79185
79186         Merge from coreutils.
79187
79188         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79189         * lib/umaxtostr.c: New files.
79190
79191         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79192         the usual <time.h> dance.
79193         (get_date): Change signature to support fractional time stamps.
79194         All callers changed.
79195         * lib/getdate.y: Include "getdate.h" first, as we can now
79196         assume C89 and don't need to worry about 'const'.
79197         Similarly, include "unlocked-io.h" near start, not in middle.
79198         Include <limits.h>.
79199         (textint.value): Use long int rather than int.
79200         (textint.digits): Use size_t rather than int.
79201         (BILLION, LOG10_BILLION): New constants.
79202         (parser_control): New member rel_ns.  Members day_ordinal,
79203         time_zone, month, day, hour, minutes, rel_year, rel_month,
79204         rel_day, rel_hour, rel_minutes, rel_seconds
79205         are now long int, not int.  Member seconds is now struct timespec,
79206         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79207         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79208         not int.
79209         (%union.intval): Now long int, not int.
79210         New member timespec.
79211         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79212         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79213         (spec): Now is a timespec or an item list.
79214         (timespec, items): New nonterminals.
79215         (time, rel, relunit, number, get_date):
79216         Add support for fractional seconds.
79217         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79218         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79219         (to_hour): First arg is now long int, not int.
79220         (to_year): Returns long int, not int.
79221         Don't treat year -70 like 70.
79222         (tm_diff): Returns long int, not int.
79223         (lookup_word): Use bool instead of int when appropriate.
79224         (yylex): Use size_t for count, not int.
79225         Detect overflow when parsing large integer constants.
79226         Add support for fractions.
79227         (get_date): Make pointers 'const' if possible.
79228         Use more-portable code to detect integer overflow.
79229         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79230         Don't use ctime; it's not reliable if the year has >4 digits.
79231
79232         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79233         This is for compatibility with BSD.
79234
79235         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79236         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79237         From coreutils' system.h.
79238
79239         * lib/userspec.c: Don't include "posixver.h".
79240         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79241         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79242         compatible extension.  Simplify code by removing a boolean int
79243         that was always nonzero if a string was nonnull.
79244
79245 2004-03-30  Jim Meyering  <jim@meyering.net>
79246
79247         Merge from coreutils.
79248
79249         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79250         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79251         on some systems one must include <grp.h> before it.
79252         Reported by Christian Krackowizer.
79253
79254 2004-03-30  Jim Meyering  <jim@meyering.net>
79255
79256         Merge from coreutils.
79257
79258         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79259
79260         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79261         an empty input stream.
79262
79263         * lib/readtokens.c: Include <stdbool.h>.
79264         (readtoken): Use `size_t' rather than int/long.
79265         All callers adjusted.
79266         Use `bool' rather than `int' where appropriate.
79267         Use memset rather than an explicit loop.
79268         Use x2nrealloc rather than xrealloc.
79269         Allow the use of `\0' as a delimiter.
79270         (readtokens): Likewise.
79271         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79272
79273 2004-03-30  Jim Meyering  <jim@meyering.net>
79274
79275         * m4/realloc.m4: Remove file, since now it does no more than
79276         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79277         the `configure.ac' section of module/realloc.
79278         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79279
79280 2004-03-30  Bruno Haible  <bruno@clisp.org>
79281
79282         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79283         nonnull.
79284
79285 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79286
79287         Merge changes to getloadavg.c from coreutils and Emacs.
79288
79289         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79290         Define to an expression, not to the empty string.
79291         Include cloexec.h and xalloc.h.
79292         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79293         Use set_cloexec_flag rather than rolling our own.
79294         * lib/cloexec.c, lib/cloexec.h: New files.
79295
79296 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79297
79298         * m4/cloexec.m4: New file.
79299
79300 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79301
79302         * lib/getopt.h: Sync with libc CVS.
79303
79304 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79305             Bruno Haible  <bruno@clisp.org>
79306
79307         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79308         mbswidth.
79309
79310 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79311             Bruno Haible  <bruno@clisp.org>
79312
79313         * lib/mbswidth.h: Include <wchar.h> only if
79314         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79315         <wchar.h>.
79316         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79317
79318 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79319
79320         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79321         Sync with libc CVS.
79322         * lib/getopt_int.h: New file, also synced from libc.
79323
79324 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79325
79326         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79327         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79328         Bring back getopt.c, getopt.h, getopt1.c.
79329
79330 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79331
79332         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79333         All uses changed.  Check for sa_sigaction member; this fixes
79334         a bug first reported by Jason Andrade in
79335         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79336
79337 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79338
79339         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79340         '#if' expressions.  Unlike the code it replaces, it does not
79341         depend on (defined _SC_PAGESIZE).  However, it does depend on
79342         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79343         first reported by Jason Andrade in
79344         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79345
79346 2004-02-25  Simon Josefsson  <jas@extundo.com>
79347
79348         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79349
79350 2004-02-25  Simon Josefsson  <jas@extundo.com>
79351
79352         * lib/strdup.h: New file.
79353         * lib/strdup.c: Include it.
79354         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79355         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79356
79357 2004-02-23  Karl Berry  <karl@gnu.org>
79358
79359         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79360         (from fencepost.gnu.org:/gd/gnuorg).
79361
79362 2004-02-23  Karl Berry  <karl@gnu.org>
79363
79364         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79365         * config/srclist.txt: add maintain/standards documents.
79366
79367 2004-02-18  Bruno Haible  <bruno@clisp.org>
79368
79369         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79370         Reported by Derek Robert Price <derek@ximbiot.com>.
79371
79372 2004-02-16  Karl Berry  <karl@gnu.org>
79373
79374         * config/mkinstalldirs, install-sh: update from automake.
79375
79376 2004-02-06  Karl Berry  <karl@gnu.org>
79377
79378         * m4/po.m4: update from gettext 0.14.1.
79379
79380 2004-02-06  Karl Berry  <karl@gnu.org>
79381
79382         * lib/config.charset: update from gettext 0.14.1.
79383
79384 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79385
79386         Add comments and code, prompted by suggestions from Bruno Haible
79387         for sh-quote.
79388         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79389         describing the enum quoting_style values.
79390         * lib/quotearg.c (quotearg_alloc): New function.
79391         (quotearg_buffer_restyled): Treat lone { and } as special.
79392         Treat = as special.  Work around bug with older shells
79393         that "see" a '\' that is really the 2nd byte of a multibyte char.
79394         Quote empty string with shell_quoting_style.
79395
79396 2004-02-03  Bruno Haible  <bruno@clisp.org>
79397
79398         * m4/pipe.m4: New file, from GNU gettext.
79399
79400 2004-02-03  Bruno Haible  <bruno@clisp.org>
79401
79402         * lib/pipe.h: New file, from GNU gettext.
79403         * lib/pipe.c: New file, from GNU gettext.
79404
79405 2004-01-27  Bruno Haible  <bruno@clisp.org>
79406
79407         * m4/execute.m4: New file, from GNU gettext.
79408
79409 2004-01-27  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/execute.h: New file, from GNU gettext.
79412         * lib/execute.c: New file, from GNU gettext.
79413         * lib/w32spawn.h: New file, from GNU gettext.
79414
79415 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79416
79417         Merge from diffutils.
79418
79419         * lib/file-type.c (file_type): Add typed memory objects.
79420         * lib/file-type.h (S_TYPEISTMO): New macro.
79421
79422         * lib/c-stack.h (c_stack_action): Remove argv argument.
79423         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79424         (die): Don't calculate message unless segv_action returns.
79425         (get_stack_location, min_address_from_argv, max_address_from_argv,
79426         volatile stack_base, volatile_stack_size): Remove.
79427         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79428         that every segmentation violation is a stack overflow.  (Ouch!)
79429         See Debian bug 136249 (still outstanding) for more info about why
79430         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79431
79432 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79433
79434         Exit-status fix from coreutils.
79435
79436         Use exit_failure consistently in place of EXIT_FAILURE,
79437         so that program exit statuses are consistent on failure.
79438
79439         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79440         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79441         * lib/argmatch.h: Comment fix to match the above.
79442         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79443         Now a macro referring to exit_failure, instead of a separate
79444         variable.  Include "exitfail.h" to get it.
79445         * lib/xstrtol.h: Include "exitfail.h".
79446         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79447
79448         * lib/long-options.c (parse_long_options): Use prototype
79449         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79450         for clarity.
79451
79452 2004-01-21  Jim Meyering  <jim@meyering.net>
79453
79454         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79455         so as not to conflict with a different-sized __mktime_internal
79456         function in GNU libc.
79457         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79458         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79459
79460 2004-01-20  Karl Berry  <karl@gnu.org>
79461
79462         * config/config.guess: update from config.
79463
79464         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79465
79466 2004-01-20  Bruno Haible  <bruno@clisp.org>
79467
79468         Safer stack allocation.
79469         * lib/setenv.c: Include allocsa.h.
79470         (alloca): Remove fallback definition.
79471         (freea): Remove macro.
79472         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79473         instead of freea.
79474
79475 2004-01-20  Bruno Haible  <bruno@clisp.org>
79476
79477         * m4/eealloc.m4: New file, from GNU gettext.
79478
79479 2004-01-20  Bruno Haible  <bruno@clisp.org>
79480
79481         * m4/allocsa.m4: New file, from GNU gettext.
79482
79483 2004-01-20  Bruno Haible  <bruno@clisp.org>
79484
79485         * lib/xallocsa.h: New file, from GNU gettext.
79486         * lib/xallocsa.c: New file, from GNU gettext.
79487
79488 2004-01-20  Bruno Haible  <bruno@clisp.org>
79489
79490         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79491
79492 2004-01-20  Bruno Haible  <bruno@clisp.org>
79493
79494         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79495         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79496         specially.
79497
79498 2004-01-20  Bruno Haible  <bruno@clisp.org>
79499
79500         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79501         patch.
79502
79503 2004-01-20  Bruno Haible  <bruno@clisp.org>
79504
79505         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79506
79507 2004-01-20  Bruno Haible  <bruno@clisp.org>
79508
79509         * lib/eealloc.h: New file.
79510
79511 2004-01-20  Bruno Haible  <bruno@clisp.org>
79512
79513         * lib/binary-io.h: Avoid warnings on Cygwin.
79514
79515 2004-01-20  Bruno Haible  <bruno@clisp.org>
79516
79517         * lib/allocsa.h: New file, from GNU gettext.
79518         * lib/allocsa.c: New file, from GNU gettext.
79519
79520 2004-01-18  Karl Berry  <karl@gnu.org>
79521
79522         * doc/gpl.texi, doc/lgpl.texi: new files.
79523
79524 2004-01-18  Karl Berry  <karl@gnu.org>
79525
79526         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79527         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79528
79529 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79530
79531         Merge from coreutils.
79532
79533         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79534         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79535         (gl_DEFAULT_POSIX2_VERSION): Move
79536         the documentation from 'configure' into 'config.hin',
79537         so that 'configure --help' isn't burdened by it and
79538         we don't have to worry about its formatting there.
79539         Reword the documentation so that it's more succinct
79540         and can be run together into a single paragraph.
79541         * m4/same.m4 (gl_SAME): Check for pathconf.
79542
79543 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79544
79545         Merge from coreutils.
79546
79547         * lib/posixver.c: Include posixver.h.
79548
79549         * lib/same.c: Include <stdbool.h>, <limits.h>.
79550         (_POSIX_NAME_MAX): Define if not defined.
79551         (MIN): New macro.
79552         (same_name): If file names are silently truncated, report
79553         that the file names are the same if they are the same after
79554         the silent truncation.
79555
79556         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79557         conversion function.
79558         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79559         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79560         longer needed.
79561
79562 2004-01-15  Jim Meyering  <jim@meyering.net>
79563
79564         Merge from coreutils.
79565
79566         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79567         if no library is required.
79568         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79569         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79570         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79571         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79572         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79573         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79574         value, $ac_cv_search_crypt, if it's "none required".
79575         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79576         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79577         not gl_FUNC_GETLOADAVG.
79578         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79579         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79580
79581 2004-01-15  Jim Meyering  <jim@meyering.net>
79582
79583         Merge from coreutils.
79584
79585         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79586         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79587         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79588
79589         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79590         optional configure-time default.
79591
79592         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79593
79594         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79595
79596 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79597
79598         Merge from coreutils.
79599
79600         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79601         value, $ac_cv_search_nanosleep, if it's "none required".
79602
79603 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79604
79605         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79606         with like-named macro in fnmatch.c.
79607         (EXT): Use an internal constant instead.
79608
79609         Merge fnmatch patches from glibc.
79610         * lib/fnmatch.c (mbsinit): Remove define.
79611         Add libc_hidden_ver (__fnmatch, fnmatch).
79612         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79613         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79614
79615 2004-01-14  Karl Berry  <karl@gnu.org>
79616
79617         * config/install-sh: update from automake.
79618
79619 2004-01-13  Karl Berry  <karl@gnu.org>
79620
79621         * config/install-sh: update from automake.
79622
79623 2004-01-09  Karl Berry  <karl@gnu.org>
79624
79625         * config/install-sh: update from automake.
79626
79627 2004-01-05  Karl Berry  <karl@gnu.org>
79628
79629         * config/config.{sub,guess}: update from config.
79630
79631 2003-12-31  Karl Berry  <karl@gnu.org>
79632
79633         * config/depcomp: update from automake.
79634
79635 2003-12-14  Karl Berry  <karl@gnu.org>
79636
79637         * lib/config.charset: update from gettext-runtime.
79638
79639 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79640
79641         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79642         Bug reported by Alfred M. Szmidt.
79643
79644 2003-12-03  Bruno Haible  <bruno@clisp.org>
79645
79646         * m4/gettext.m4: Upgrade from gettext-0.13.
79647         * m4/po.m4: Upgrade from gettext-0.13.
79648         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79649         * m4/intmax.m4: New file, from gettext-0.13.
79650         * m4/printf-posix.m4: New file, from gettext-0.13.
79651
79652 2003-11-29  Karl Berry  <karl@gnu.org>
79653
79654         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79655
79656 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79657             Bruno Haible  <bruno@clisp.org>
79658
79659         * lib/printf-parse.h: Don't include sys/types.h.
79660         (ARG_NONE): New macro.
79661         (char_directive): Change type of *arg_index fields to size_t.
79662         * lib/printf-parse.c: Don't include sys/types.h.
79663         (SSIZE_MAX): Remove macro.
79664         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79665         Remove unnecessary overflow check.
79666         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79667         fields.
79668
79669 2003-11-25  Bruno Haible  <bruno@clisp.org>
79670
79671         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79672
79673 2003-11-25  Bruno Haible  <bruno@clisp.org>
79674
79675         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79676         gt_TYPE_SSIZE_T.
79677
79678 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79679
79680         * modules/alloca: Remove dependency on xalloc.
79681
79682 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79683
79684         * lib/alloca.c: Remove dependency on xalloc module.
79685         (xalloc_die): Remove.
79686         (memory_full) [!defined emacs]: New macro.
79687         [!defined emacs]: Don't include xalloc.h.
79688         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79689         address arithmetic overflows.  Change datatypes a bit to avoid
79690         unnecessary casts.
79691
79692 2003-11-22  Jim Meyering  <jim@meyering.net>
79693
79694         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79695         s/size/size_t/.
79696
79697 2003-11-21  Karl Berry  <karl@gnu.org>
79698
79699         * config/config.{sub,guess}: update from config.
79700
79701 2003-11-18  Karl Berry  <karl@gnu.org>
79702
79703         * config/config.{sub,guess}: update from config.
79704
79705         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79706
79707 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79708
79709         * README: Mention that S+T cannot overflow if S is the size of
79710         an existing object and T is sufficiently small.
79711
79712 2003-11-17  Jim Meyering  <jim@meyering.net>
79713
79714         On systems without utime and without a utimes function capable of
79715         dealing with a NULL struct utimbuf* argument, this utime replacement
79716         could -- in unusual circumstances -- leak a file descriptor.
79717         * lib/utime.c: Include <unistd.h> and <errno.h>.
79718         (utime_null): Be sure to close `fd' and to preserve errno.
79719         Reported by Geoff Collyer via Arnold Robbins.
79720
79721 2003-11-17  Bruno Haible  <bruno@clisp.org>
79722
79723         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79724         (Depends-on): Add xsize.
79725
79726 2003-11-17  Bruno Haible  <bruno@clisp.org>
79727
79728         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79729
79730 2003-11-17  Bruno Haible  <bruno@clisp.org>
79731
79732         * lib/vasnprintf.c (alloca): Remove fallback definition.
79733         (freea): Remove definition.
79734         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79735         Reported by Paul Eggert.
79736
79737 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79738             Bruno Haible  <bruno@clisp.org>
79739
79740         Protect against address arithmetic overflow.
79741         * lib/printf-args.h: Include stddef.h.
79742         (arguments): Change type of field 'count' to size_t.
79743         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79744         'unsigned int' where appropriate.
79745         * lib/printf-parse.h: Include sys/types.h.
79746         (char_directive): Change type of *arg_index fields to ssize_t.
79747         (char_directives): Change type of fields 'count', max_*_length to
79748         size_t.
79749         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79750         (SSIZE_MAX): Define fallback value.
79751         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79752         instead of 'int' where appropriate. Check a_allocated, d_allocated
79753         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79754         * lib/vasnprintf.c: Include xsize.h.
79755         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79756         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79757         overflow. Avoid wraparound when converting a width or precision from
79758         decimal to binary.
79759
79760 2003-11-16  Bruno Haible  <bruno@clisp.org>
79761
79762         Update from GNU gettext.
79763         * lib/printf-parse.c: Generalize to it can be compiled for wide
79764         strings.
79765         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79766         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79767         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79768         SNPRINTF): New macros.
79769         Don't include <alloca.h> if the file is used inside libintl.
79770         (local_wcslen): New function, for Solaris 2.5.1.
79771         (VASNPRINTF): Use it instead of wcslen.
79772
79773 2003-11-16  Bruno Haible  <bruno@clisp.org>
79774
79775         * lib/xsize.h (xmax): New function.
79776         (xsum, xsum3, xsum4): Declare as "pure" functions.
79777
79778 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79779
79780         * modules/xalloc (Files): Undo latest change, since xalloc.h
79781         no longer needs SIZE_MAX or PTRDIFF_MAX.
79782
79783 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79784
79785         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79786         gl_PTRDIFF_MAX.
79787
79788 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79789
79790         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79791         "return", to pacify some unknown compiler.  Problem reported
79792         by Joerg Schilling.
79793
79794 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79795
79796         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79797         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79798         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79799         heuristic is just as accurate as far as we know, and it removes a
79800         dependency on size_max.m4 and ptrdiff_max.m4.
79801
79802 2003-11-11  Bruno Haible  <bruno@clisp.org>
79803
79804         * modules/xsize (Files): Add m4/size_max.m4.
79805         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79806
79807 2003-11-11  Bruno Haible  <bruno@clisp.org>
79808
79809         * m4/size_max.m4: New file.
79810         * m4/ptrdiff_max.m4: New file.
79811         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79812         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79813         (gl_XALLOC): Invoke it.
79814
79815 2003-11-11  Bruno Haible  <bruno@clisp.org>
79816
79817         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79818         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79819         defined.
79820
79821 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79822
79823         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79824         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79825         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79826         From Bruno Haible.
79827         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79828         not (size_t) -1, since it's defined here.
79829
79830 2003-11-09  Karl Berry  <karl@gnu.org>
79831
79832         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79833
79834 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79835
79836         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79837         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79838         Reject sizes of exactly SIZE_MAX bytes.
79839         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79840         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79841
79842 2003-11-05  Bruno Haible  <bruno@clisp.org>
79843
79844         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79845         SIZE_MAX defined in <limits.h> on Solaris.
79846
79847 2003-11-04  Jim Meyering  <jim@meyering.net>
79848
79849         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79850         variable names, rather than @VAR@.
79851         * modules/poll: Likewise.
79852
79853 2003-11-04  Bruno Haible  <bruno@clisp.org>
79854
79855         * modules/xsize: New file.
79856         * modules/linebreak: Depend on xsize.
79857         * MODULES.html.sh (func_all_modules): Add xsize.
79858
79859 2003-11-04  Bruno Haible  <bruno@clisp.org>
79860
79861         * m4/xsize.m4: New file.
79862
79863 2003-11-04  Bruno Haible  <bruno@clisp.org>
79864
79865         * lib/xsize.h: New file.
79866         * lib/linebreak.c: Include xsize.h.
79867         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79868         argument for overflow.
79869         Suggested by Paul Eggert.
79870
79871 2003-11-03  Karl Berry  <karl@gnu.org>
79872
79873         * config/config.{guess,sub}: update from config.
79874
79875 2003-11-03  Jim Meyering  <jim@meyering.net>
79876
79877         * modules/userspec (lib_SOURCES): Add userspec.h.
79878         (Include): Add "userspec.h".
79879         Improve description.
79880
79881 2003-11-03  Jim Meyering  <jim@meyering.net>
79882
79883         * lib/userspec.c: Include "userspec.h".
79884         * lib/userspec.h: New file.
79885
79886 2003-11-03  Bruno Haible  <bruno@clisp.org>
79887
79888         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79889
79890 2003-11-03  Bruno Haible  <bruno@clisp.org>
79891
79892         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79893         available, to avoid (extremely rare) race condition.
79894         Suggested by Paul Eggert.
79895
79896 2003-11-02  Karl Berry  <karl@gnu.org>
79897
79898         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79899
79900 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79901
79902         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79903         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79904         (read_filesystem_list): Set and use me_type_malloced.
79905         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79906         whatever the type happens to be), for brevity and consistency.
79907         Check for size calculation overflow on Alphas running OSF/1.
79908
79909 2003-10-31  Jim Meyering  <jim@meyering.net>
79910
79911         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79912
79913         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79914
79915 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79916             Bruno Haible  <bruno@clisp.org>
79917
79918         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79919         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79920
79921 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79924         netbsd*-gnu*.  Suggested by Robert Millan.
79925
79926 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79927
79928         * modules/group-member: Depend on stdbool.
79929
79930 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79931
79932         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79933
79934 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79935
79936         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79937         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79938         after the 'gnu' in these cases.  This fixes some bugs in the
79939         previous change, and is based on suggestions by Robert Millan.
79940
79941 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79942
79943         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79944         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79945         no longer needed.
79946         * lib/quotearg.c (quotearg_n_options): Use it.
79947         * lib/group-member.c: Include <stdbool.h>.
79948         (free_group_info): Arg is now const *; don't free arg.
79949         (get_group_info): Now returns bool and accepts struct group_info *,
79950         rather than returning a malloc'ed struct group_info *.
79951         All uses changed.  Check for overflow in internal size calculation.
79952
79953         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79954         rather than xmalloc/xrealloc.
79955         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79956         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79957         conformance bug: the old code used a pointer after freeing the
79958         storage that it addressed.
79959         * lib/hash.c (hash_initialize): Simplify the code by using
79960         xalloc_oversized rather than doing it by hand.
79961         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79962         the buffer preserved.  Use free and xmalloc instead.
79963         * lib/quotearg.c (quotearg_n_options): Likewise.
79964         Use a simpler test for size overflow.  Don't use xalloc_oversized
79965         because unsigned int might be wider than size_t (!); this suggests
79966         that we should switch from unsigned int to size_t for slot numbers.
79967
79968 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79969
79970         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79971         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79972         NetBSD kernels.  Requested by Richard Stallman.
79973
79974 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79975
79976         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79977         to allocate the returned structure.  Do not allocate a subarray,
79978         as x2nrealloc will do that.
79979         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79980         instead of xnrealloc.
79981         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79982
79983 2003-10-27  Bruno Haible  <bruno@clisp.org>
79984
79985         * lib/stdbool_.h: Better support for BeOS.
79986
79987 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79988
79989         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79990         now uses inline.
79991
79992 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79993
79994         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79995         callers that want to do their own size-overflow checking.  Include
79996         <stdbool.h>, since xalloc_oversized returns bool.
79997         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79998         to use xalloc_oversized.
79999
80000         Add two functions x2realloc, x2nrealloc, for programs that grow
80001         arrays dynamically by doubling their sizes.
80002         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80003         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80004         New functions.
80005
80006         Port to C99 semantics for 'inline' of external functions.
80007         Bug reported by Bruno Haible.
80008         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80009         with the old contents of xnmalloc.
80010         (xnmalloc, xmalloc): Use it.
80011         (xnrealloc_inline): New static inline function,
80012         with the old contents of xnrealloc.
80013         (xnrealloc, xrealloc): Use it.
80014
80015         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80016         that.
80017
80018 2003-10-26  Karl Berry  <karl@gnu.org>
80019
80020         * config/srclist.txt (COPYING.DOC): no longer available from
80021         /gd/gnuorg; don't know where the ultimate source is.
80022
80023 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80024
80025         Fix several address-calculation bugs in the hash modules,
80026         plus some minor code cleanup.
80027
80028         * lib/hash.h: Include <stdbool.h>, for bool.
80029         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80030         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80031         hash_get_n_entries, hash_get_max_bucket_length,
80032         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80033         hash_rehash): Use size_t rather than unsigned.
80034         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80035         hash_get_n_buckets_used, hash_get_n_entries,
80036         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80037         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80038         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80039         Likewise.
80040         (SIZE_MAX): Define if not defined.
80041         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80042         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80043         hash_print):
80044         Use const * when possible.
80045         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80046         (check_tuning): Fix bug: if tuning parameters were very close to
80047         0 or 1, rounding errors could have caused subscript violations.
80048         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80049         (hash_initialize): Add 'fail:' label
80050         to free table and return NULL, and use it to simplify code.
80051         Use calloc rather than clearing the storage ourself.
80052         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80053         buffer size calculations.
80054         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80055         Include <stddef.h>, for size_t.
80056         * lib/hash-pjw.c (hash_pjw): Likewise.
80057         Switch to method described by Bruno Haible.
80058         Include <limits.h>, for CHAR_BIT.
80059         (SIZE_BITS): New macro.
80060
80061 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80062
80063         * m4/getline.m4 (AM_FUNC_GETLINE):
80064         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80065         hosts.  Problem reported by Derek Robert Price in
80066         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80067         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80068         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80069
80070 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80071
80072         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80073         ceiling the allocation at NMAX bytes rather than silently
80074         discarding input bytes before NMAX is reached.  This makes
80075         a difference only if NMAX exceeds SIZE_MAX / 2.
80076
80077         * lib/obstack.c: Merge from glibc.
80078         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80079         Add libc_hidden_def (_obstack_newchunk).
80080         (_obstack_free) [! defined _LIBC]: Remove.
80081         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80082         a clone of the function body.
80083         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80084         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80085
80086         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80087         glibc.
80088         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80089         arg to memcpy.
80090
80091         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80092         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80093         Don't use lvalue casts, as GCC plans to remove support for them
80094         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80095         was also present in the non-GCC version, indicating that this
80096         code had always been buggy and had never been widely used.
80097         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80098         Use the fast variant of each macro, rather than copying the
80099         definiens of the fast variant; that way, we'll be more likely to
80100         catch future bugs in the fast variants.
80101
80102 2003-10-20  Bruno Haible  <bruno@clisp.org>
80103
80104         * modules/wait-process: New file.
80105         * MODULES.html.sh (func_all_modules): Add wait-process.
80106
80107 2003-10-20  Bruno Haible  <bruno@clisp.org>
80108
80109         * m4/wait-process.m4: New file.
80110
80111 2003-10-20  Bruno Haible  <bruno@clisp.org>
80112
80113         * lib/wait-process.h: New file, from GNU gettext.
80114         * lib/wait-process.c: New file, from GNU gettext.
80115
80116 2003-10-19  Jim Meyering  <jim@meyering.net>
80117
80118         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80119         HPUX 10.20.
80120
80121 2003-10-18  Karl Berry  <karl@gnu.org>
80122
80123         * config/config.guess: update from config.
80124
80125 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80126
80127         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80128         (getgroups): First arg is int, not size_t.
80129         Don't let 'free' mangle errno.
80130
80131 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80132
80133         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80134
80135 2003-10-16  Karl Berry  <karl@gnu.org>
80136
80137         * config/config.{guess,sub}: update from config.
80138
80139 2003-10-16  Jim Meyering  <jim@meyering.net>
80140
80141         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80142         memcpy.
80143
80144 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80145
80146         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80147         (SIZE_MAX): Remove.
80148         (new_exclude, add_exclude_file): Initial size no longer needs to
80149         be a power of 2.
80150         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80151         our own address arithmetic overflow checking.
80152
80153         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80154         (fnmatch): Do not alloca more than 2000 wide characters;
80155         instead, use malloc for large buffers.
80156         Check for address arithmetic overflow, and return -1
80157         with errno set to ENOMEM in that case.
80158         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80159         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80160         instead, return -1.  Check for address arithmetic overflow.
80161
80162 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80163
80164         Handle invalid suffixes and overflow independently, so that
80165         callers can treat them independently as needed.  Fix some bugs in
80166         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80167         suffix for a human-readable blocksize.  The major caller-visible
80168         change is the addition of a new
80169         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80170         that both overflow and suffix chars were found.
80171
80172         * lib/human.c (humblock): Don't check separately for invalid suffix
80173         char; that is xstrtoumax's job (now that its bug is fixed).
80174         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80175         INTMAX_MAX]: New macros.
80176         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80177         TYPE_MAXIMUM): New macros.
80178         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80179         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80180         if overflow occurs, as it's what __strtol does and it's more useful
80181         in practice.
80182         (__xstrtol): If __strtol reports some error other than ERANGE,
80183         reflect it to the caller as LONGINT_INVALID.  If it reports
80184         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80185         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80186         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80187         value.
80188         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80189         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80190         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80191         [defined UINTMAX_MAX]: New macros.
80192
80193 2003-10-14  Bruno Haible  <bruno@clisp.org>
80194
80195         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80196
80197 2003-10-14  Bruno Haible  <bruno@clisp.org>
80198
80199         * m4/sig_atomic_t: New file, from GNU gettext.
80200         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80201
80202 2003-10-14  Bruno Haible  <bruno@clisp.org>
80203
80204         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80205         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80206         Also use volatile where needed.
80207
80208 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80209
80210         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80211         Change maintainer from Bruno Haible to 'all'.
80212
80213 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80214
80215         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80216
80217 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80218
80219         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80220         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80221         and define in terms of the other primitives.
80222         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80223         (SIZE_MAX): Define if not already defined.
80224         (array_size_overflow): New function.
80225         (xalloc_die): Abort instead of exiting if 'error' returns.
80226         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80227         (xmalloc, xrealloc): Use them.
80228         (xcalloc): Check for address arithmetic overflow.
80229         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80230         a bit faster than strcpy.
80231
80232 2003-10-10  Simon Josefsson  <jas@extundo.com>
80233
80234         * modules/argp (Depends-on): Add restrict and strcase.
80235
80236 2003-10-10  Simon Josefsson  <jas@extundo.com>
80237
80238         * m4/argp.m4: Add AC_C_INLINE.
80239
80240 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80241
80242         Merge getpass from libc, plus a few fixes.
80243
80244         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80245         Include <stdbool.h>.
80246         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80247         __fsetlocking to empty.
80248         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80249         do include <bits/libc-lock.h>.
80250         Do not include <fcntl.h>; not needed.
80251         [_LIBC]: Include <wchar.h>.
80252         (NOTCANCEL_MODE): New macro.
80253         (flockfile, funlockfile) [_LIBC]: New macros.
80254         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80255         [!_LIBC]: New macros.
80256         (call_fclose): New function.
80257         (getpass): Use it.  Save tty stream separately; this simplifies the
80258         code and makes it more reliable if stdin happens to equal stdout.
80259         Invoke __fsetlocking on tty.
80260         Handle thread cancellation if needed.
80261         Namespace cleanup (use __tcgetattr, __getline).
80262         Use bool for Booleans.
80263         [USE_IN_LIBIO]: Handle wide streams.
80264         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80265         stream might go where.
80266
80267         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80268         doesn't have to include <stdio.h> before us.
80269         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80270         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80271         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80272         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80273         if not declared, so that we can use getpass.c code from libc without
80274         rewriting it.
80275         (flockfile, ftrylockfile, funlockfile): New macros.
80276
80277 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80278
80279         * modules/getpass: Depend on stdbool.
80280
80281 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80282
80283         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80284
80285 2003-10-07  Karl Berry  <karl@gnu.org>
80286
80287         * config/config.{guess,sub}: update from config.
80288
80289 2003-10-06  Jim Meyering  <jim@meyering.net>
80290             Bruno Haible  <bruno@clisp.org>
80291
80292         This lets translators provide better translations for the
80293         "Written by ..." part of --version output.
80294         * lib/version-etc.h: Include stdarg.h.
80295         (version_etc_copyright): Declare as readonly.
80296         (version_etc): Make this function variadic with a NULL-terminated list
80297         of author name strings.
80298         (version_etc_va): New declaration.
80299         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80300         (version_etc_copyright): Declare as readonly.
80301         (version_etc_va): New function. Provide a different translatable string
80302         for each possible number of authors < 10. Abbreviate when there are 10
80303         authors or more.
80304         (version_etc): Make this function variadic. Call version_etc_va.
80305         Suggestion from Gary V. Vaughan.
80306
80307         * lib/long-options.h (parse_long_options): Change prototype: the
80308         authors string is moved to the end and becomes variadic.
80309         * lib/long-options.c: Include stdarg.h.
80310         (parse_long_options): Make this function variadic, too.
80311         Call version_etc_va, not version_etc.
80312
80313 2003-10-06  Bruno Haible  <bruno@clisp.org>
80314
80315         * modules/version-etc-2: Remove file.
80316         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80317
80318 2003-10-06  Bruno Haible  <bruno@clisp.org>
80319
80320         * modules/fatal-signal: New file.
80321         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80322
80323 2003-10-06  Bruno Haible  <bruno@clisp.org>
80324
80325         * m4/fatal-signal.m4: New file.
80326         * m4/signalblocking.m4: New file, from GNU gettext.
80327
80328 2003-10-06  Bruno Haible  <bruno@clisp.org>
80329
80330         * lib/version-etc-2.h: Remove file.
80331         * lib/version-etc-2.c: Remove file.
80332
80333 2003-10-06  Bruno Haible  <bruno@clisp.org>
80334
80335         * lib/fatal-signal.h: New file, from GNU gettext.
80336         * lib/fatal-signal.c: New file, from GNU gettext.
80337
80338 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80339
80340         * README: Rework advice for preventing empty .o files.
80341         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80342         not <sys/types.h>.
80343
80344 2003-10-04  Karl Berry  <karl@gnu.org>
80345
80346         * lib/argp*: update from libc.
80347
80348 2003-10-04  Karl Berry  <karl@gnu.org>
80349
80350         * config/config.{guess,sub}: update from config.
80351
80352 2003-10-02  Bruno Haible  <bruno@clisp.org>
80353
80354         * modules/lchown (Include): Add lchown.h.
80355         * modules/time_r (Include): Use "..." syntax.
80356         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80357
80358 2003-10-01  Simon Josefsson  <jas@extundo.com>
80359
80360         * MODULES.html.sh (func_all_modules): Move gethostname from section
80361         'based on' to section 'lacking' POSIX:2001.
80362
80363 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80364
80365         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80366         to output mode on the same stream.
80367
80368 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80369
80370         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80371         Fix arg typo in previous patch.
80372
80373 2003-09-28  Jim Meyering  <jim@meyering.net>
80374
80375         * lib/error.c: Correct cpp indentation.
80376
80377 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80378
80379         * modules/free: New file.
80380
80381 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80382
80383         * m4/free.m4: New file.
80384
80385 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80386
80387         * lib/minmax.h (MIN, MAX)
80388         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80389         Omit the special code that used __typeof__, since we worry that
80390         it could be more trouble than it's worth.  See:
80391         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80392         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80393
80394         * lib/free.c: New file.
80395
80396 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80397
80398         Trivial fixes to Makefile.am parts of module listings.
80399         * modules/strstr: Append strstr.h to lib_SOURCES.
80400         * modules/strcase: Likewise, for strcase.h.
80401
80402 2003-09-27  Karl Berry  <karl@gnu.org>
80403
80404         * config/mkinstalldirs: update from automake.
80405
80406 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80407
80408         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80409         (error_tail): Do not loop, reallocating temporary buffer, since
80410         the output cannot contain more wide characters than the input
80411         contains bytes, the size must be big enough already.  This avoids
80412         one potential size overflow calculation.  Check for size overflow
80413         when calculating temporary buffer size.  Free temporary buffer
80414         when done, if it was allocated with malloc; this plugs a memory
80415         leak.  Remove casts from void * to pointers, that are no longer
80416         needed now that we're assuming C89 or better.
80417
80418         Merge error changes from glibc.
80419
80420         * lib/error.c, error.h: Update copyright notice header to match glibc.
80421         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80422         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80423         Disable cancellation while printing error.
80424         * lib/error.h: Prepend __ to parameter names.
80425
80426 2003-09-26  Jim Meyering  <jim@meyering.net>
80427
80428         * lib/error.c (error_tail): Move some declarations
80429         into inner scope where the local variables are used.
80430
80431 2003-09-26  Bruno Haible  <bruno@clisp.org>
80432
80433         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80434         stpncpy().
80435         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80436
80437 2003-09-26  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80440         (stpncpy): Define as alias for gnu_stpncpy.
80441         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80442
80443 2003-09-25  Simon Josefsson  <jas@extundo.com>
80444
80445         * lib/xgetdomainname.h: New file.
80446         * lib/xgetdomainname.c: New file.
80447
80448 2003-09-25  Simon Josefsson  <jas@extundo.com>
80449             Bruno Haible  <bruno@clisp.org>
80450
80451         * modules/getdomainname: New file.
80452         * modules/xgetdomainname: New file.
80453         * MODULES.html.sh (func_all_modules): Add getdomainname,
80454         xgetdomainname.
80455
80456 2003-09-25  Simon Josefsson  <jas@extundo.com>
80457             Bruno Haible  <bruno@clisp.org>
80458
80459         * m4/getdomainname.m4: New file.
80460
80461 2003-09-25  Simon Josefsson  <jas@extundo.com>
80462             Bruno Haible  <bruno@clisp.org>
80463
80464         * lib/getdomainname.h: New file.
80465         * lib/getdomainname.c: New file.
80466
80467 2003-09-25  Karl Berry  <karl@gnu.org>
80468
80469         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80470
80471 2003-09-25  Karl Berry  <karl@gnu.org>
80472
80473         * config/install-sh: update from automake.
80474
80475 2003-09-25  Bruno Haible  <bruno@clisp.org>
80476
80477         * modules/version-etc-2: New file, from modules/version-etc with
80478         modifications.
80479         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80480
80481 2003-09-25  Bruno Haible  <bruno@clisp.org>
80482
80483         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80484         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80485
80486 2003-09-24  Simon Josefsson  <jas@extundo.com>
80487
80488         * modules/xgethostname: Add xgethostname.h.
80489
80490 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80491
80492         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80493         the buffer associated with the argument.  Bug reported by
80494         Simon Josefsson.
80495
80496 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80497
80498         * README: Document assumptions that 'int' is at least 32 bits
80499         wide, that integer arithmetic is 2's complement without overflow,
80500         that there are no holes in integer values, that adding sizes of
80501         two nonoverlapping objects can't overflow, and that all-bits-zero
80502         yields scalar zero.  Fix spelling and capitalization typos.
80503
80504 2003-09-19  Karl Berry  <karl@gnu.org>
80505
80506         * lib/argp.h: update from libc.
80507
80508 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80509
80510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80511         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80512         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80513
80514 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80515
80516         * gnulib-tool: Use "test -h", not "test -L", for portability
80517         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80518         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80519         (sed_extract_prog): Issue s commands one-by-one, rather than
80520         using \| in one s command.
80521
80522 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80523
80524         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80525         input error, instead of returning NULL the next time we are called
80526         (and therefore losing track of errno).
80527
80528 2003-09-16  Bruno Haible  <bruno@clisp.org>
80529
80530         * gnulib-tool (func_create_testdir): Warn about duplicated
80531         dependencies.
80532
80533 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80534
80535         * modules/argmatch, modules/fatal, modules/obstack,
80536         modules/xalloc, modules/xgethostname: Sort dependencies by
80537         importance, not alphabetically.
80538
80539 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80540
80541         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80542         fails, so that the caller gets the proper errno.
80543
80544         * lib/readutmp.c (read_utmp): Likewise.
80545         Check for fstat error.  Close stream and free storage
80546         when failing.
80547
80548 2003-09-14  Karl Berry  <karl@gnu.org>
80549
80550         * config/srclist.txt (strdup.c): disable for c89 changes.
80551
80552 2003-09-14  Jim Meyering  <jim@meyering.net>
80553
80554         * lib/getloadavg.c: Correct cpp indentation.
80555         * lib/strdup.c: Likewise.
80556         * lib/vasnprintf.c: Likewise.
80557
80558 2003-09-14  Bruno Haible  <bruno@clisp.org>
80559
80560         * modules/fwriteerror: New file.
80561         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80562
80563 2003-09-14  Bruno Haible  <bruno@clisp.org>
80564
80565         * lib/fwriteerror.h: New file.
80566         * lib/fwriteerror.c: New file.
80567
80568 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80569
80570         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80571         modules/xgethostname, modules/xalloc: Depend on exit.
80572
80573 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80574
80575         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80576
80577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80578         and AC_MINIX, too, so that their extensions are available.
80579
80580         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80581         This macro has been superseded by gl_BACKUPFILE.
80582
80583         More patches to assume C89 or better.
80584
80585         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80586
80587         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80588         unconditionally.
80589         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80590         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80591         Include <string.h>, <stdlib.h> unconditionally.
80592         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80593         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80594         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80595         headers or for string.h.
80596         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80597         or strtoul.
80598
80599         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80600         headers.
80601         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80602         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80603         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80604         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80605         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80606         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80607         memcpy, memset.
80608         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80609         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80610         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80611         strtol.
80612         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80613         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80614         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80615         strtoul.
80616
80617 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80618
80619         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80620         * lib/obstack.c [!defined _LIBC]: Likewise.
80621         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80622         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80623         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80624
80625         More changes to assume C89 or better.
80626
80627         * lib/error.c (error_tail): Assume vprintf.
80628
80629         * lib/argmatch.c (getenv): Remove decl.
80630         * lib/progreloc.c (get_full_program_name): Define via prototype.
80631         * lib/setenv.c (clearenv): Likewise.
80632         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80633         needed.
80634         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80635         (malloc, memcpy): Remove decls.
80636         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80637         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80638         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80639         (memcpy): Remove macro.
80640         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80641         (__P): Remove.  All uses removed.
80642         (PTR): Remove.  All uses changed to void *.
80643         (CHAR_BIT, NULL): Remove.
80644         (spaces, zeros, memset_space, memset_zero)
80645         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80646         Remove.
80647         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80648         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80649         Define with prototype.
80650         Remove now-unnecessary prototype decl.
80651         (extra_args_spec): Assume ANSI C.  All uses changed.
80652         (extra_args_spec_iso): Remove.
80653         (my_strftime, emacs_strftimeu): Define via prototype.
80654         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80655         unconditionally.
80656         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80657         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80658         (strtoul, strtol): Remove decls.
80659         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80660         LONG_MAX): Remove.
80661         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80662         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80663         (LOCALE_PARAM_PROTO): New macro.
80664         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80665         (INTERNAL (strtol), strtol): Define with a prototype.
80666         (PARAMS): Remove.  All uses removed.
80667         * lib/tempname.c: Include <string.h> unconditionally.
80668         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80669         * lib/xgethostname.c (main): Define with a prototype.
80670         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80671         Include <stdlib.h> unconditionally.
80672         (calloc, malloc, realloc, free): Remove decls.
80673         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80674         Include <stdlib.h> unconditionally.  Sort include file names.
80675         (strtod): Remove.
80676         (xstrtod): Define with a prototype.
80677         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80678         (strtol, strtoul): Remove decls.
80679
80680 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80681
80682         More patches to assume C89 or better.
80683         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80684         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80685         string.h, memchr, STDC_HEADERS.
80686
80687 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80688
80689         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80690         Include <stdlib.h>, <string.h> unconditionally.
80691         Remove now-unnecessary cast to char *.
80692         * lib/strnlen.c: Include <string.h> unconditionally.
80693         * lib/yesno.c (yesno): Define with a prototype.
80694
80695 2003-09-11  Bruno Haible  <bruno@clisp.org>
80696
80697         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80698
80699 2003-09-10  Jim Meyering  <jim@meyering.net>
80700
80701         * lib/error.c: Correct indentation of cpp directives.
80702
80703 2003-09-10  Bruno Haible  <bruno@clisp.org>
80704
80705         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80706         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80707         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80708         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80709         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80710         <stdlib.h> and <string.h> checks.
80711         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80712         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80713
80714 2003-09-10  Bruno Haible  <bruno@clisp.org>
80715
80716         * lib/strcspn.c: Include <string.h> unconditionally.
80717         * lib/strpbrk.c: Include <string.h> unconditionally.
80718         * lib/strstr.c: Include <string.h> unconditionally.
80719         * lib/unicodeio.c: Include <string.h> unconditionally.
80720         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80721         * lib/unsetenv.c: Likewise.
80722         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80723         * lib/yesno.c: Include <stdlib.h> unconditionally.
80724         (rpmatch): Add prototype.
80725
80726 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80727
80728         More patches to assume C89 or better.
80729         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80730         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80731         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80732         or for string.h.
80733         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80734         stdlib.h.
80735         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80736         C headers.
80737         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80738         string.h.
80739         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80740         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80741         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80742         or for string.h.
80743         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80744         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80745         C headers.
80746         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80747         memcpy.
80748         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80749         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80750         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80751         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80752         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80753         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80754         string.h, free.
80755         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80756         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80757         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80758         C headers, or for string.h.
80759         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80760         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80761         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80762         headers, memory.h, stdlib.h, string.h, strings.h.
80763         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80764         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80765         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80766         strchr.
80767         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80768         headers, memory.h, string.h.
80769         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80770         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80771         free.
80772         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80773         headers.
80774         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80775         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80776         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80777         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80778         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80779
80780 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80781
80782         More K&R removal.
80783
80784         * lib/acosl.c (main): Use a prototype.
80785         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80786         tanl.c: Likewise.
80787
80788         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80789
80790         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80791         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80792         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80793         with a prototype.
80794         * lib/getopt.c (const): Remove macro.
80795         Include <string.h> unconditionally.
80796         (my_index): Remove; all uses changed to strchr.
80797         (strlen): Remove decl.
80798         (exchange): Remove forward decl; no longer needed.
80799         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80800         Define with prototype.
80801         * lib/getopt1.c (const): Remove macro.
80802         (getopt_long, getopt_long_only, main): Define with prototype.
80803
80804         * lib/getugroups.c: Include <string.h> unconditionally.
80805
80806         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80807         (getusershell, setusershell, endusershell, readname, main):
80808         Define with prototypes.
80809
80810         * lib/group-member.c: Include group-member.h first.
80811         Include <stdlib.h> unconditionally.
80812
80813         * lib/hard-locale.c: Include hard-locale.h first.
80814         Include <stdlib.h>, <string.h> unconditionally.
80815
80816         * lib/hash.c (free, malloc): Remove decls.
80817         Include <stdlib.h> unconditionally.
80818
80819         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80820         (getenv): Do not declare.
80821
80822         * lib/idcache.c: Include <string.h> unconditionally.
80823
80824         * lib/long-options.c: Include long-options.h first, to test interface.
80825         Include <stdlib.h> unconditionally.
80826
80827         * lib/makepath.c: Include makepath.h first, to test interface.
80828         Include <stdlib.h> and <string.h> unconditionally.
80829
80830         * lib/linebuffer.c: Include <stdlib.h>.
80831         (free): Remove decl.
80832
80833         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80834         stddef.h. rpl_malloc returns void *, not char *.
80835         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80836         prototype.
80837
80838         * lib/md5.h: Include <limits.h> unconditionally.
80839         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80840         (__P): Remove; all uses removed.
80841         * lib/md5.c: Include "md5.h" first.
80842         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80843         md5_buffer, md5_process_bytes, md5_process_block):
80844         Define with prototypes.
80845         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80846         * lib/sha.c: Include "sha.h" first.
80847         Include <stdlib.h>, <string.h> unconditionally.
80848
80849         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80850         * lib/memcmp.c (__ptr_t): Likewise.
80851         * lib/memrchr.c (__ptr_t): Likewise.
80852         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80853         Include <string.h> unconditionally.
80854         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80855         * lib/memchr.c: Include <stdlib.h> unconditionally.
80856         * lib/memchr.c (LONG_MAX): Remove.
80857         * lib/memrchr.c (LONG_MAX): Likewise.
80858         * lib/memchr.c (__memchr): Define via a prototype.
80859         * lib/memrchr.c (__memrchr): Likewise.
80860         * lib/memcmp.c (__P): Remove, and remove all uses.
80861         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80862         Remove forward decls; no longer needed.
80863         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80864         Use types required by C89 in prototype.
80865
80866         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80867         * lib/savedir.c: Likewise.
80868         * lib/mkdir.c (free): Remove decl.
80869         * lib/rmdir.c (rmdir): Define with a prototype.
80870         * lib/savedir.c: Include savedir.h first, to test interface.
80871
80872         * lib/mktime.c (STDC_HEADERS): Remove.
80873         Include <stdlib.h>, <string.h> unconditionally.
80874
80875         * lib/modechange.c: Include <stdlib.h> unconditionally.
80876         (malloc): Remove decl.
80877
80878         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80879         (free): Remove decl.
80880
80881         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80882         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80883         (This type really should be intptr_t, but that's a C99ism.)
80884         (_obstack_memcpy): Remove: all uses changed to memcpy.
80885         Include <string.h> unconditionally.
80886         (struct obstack): Assume __STDC__ for types of members
80887         chunkfun, freefun, extra_arg.
80888         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80889         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80890         obstack_begin, obstack_specify_allocation,
80891         obstack_specify_allocation_with_arg, obstack_chunkfun,
80892         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80893         Remove unprototyped decls and the macros that use them.
80894         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80895         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80896         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80897         (defined __STDC__ && __STDC__)]:
80898         Remove nonprototyped code.
80899         Include <stdlib.h> unconditionally.
80900         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80901         _obstack_allocated_p, _obstack_free, obstack_free,
80902         _obstack_memory_used, print_and_abort):
80903         Define using prototypes.
80904         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80905         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80906         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80907         obstack_next_free, obstack_object_size, obstack_room) [0]:
80908         Remove unused, unprototyped code.
80909
80910         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80911
80912         * lib/physmem.c (physmem_total, physmem_available, main): Define
80913         with prototypes.
80914
80915         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80916         (main): Define with a prototype.
80917
80918         * lib/posixver.c (getenv): Remove decl.
80919
80920         * lib/putenv.c (malloc): Returns void *, not char *.
80921         Include <string.h> unconditionally.
80922         (strchr, memcpy, NULL): Do not define.
80923
80924         * lib/readtokens.c: Include readtokens.h first, to test interface.
80925         Include <stdlib.h>, <string.h> unconditionally.
80926         (init_tokenbuffer): Define with a prototype.
80927
80928         * lib/regex.c (PARAMS): Remove.  All uses removed.
80929         All uses of _RE_ARGS removed, too.
80930         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80931         unconditionally.
80932         (bzero): Assume memset exists.
80933         (memcmp, memcpy, NULL): Remove.
80934         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80935         char, or assignments to local vars of type signed char.
80936         (init_syntax_once, PREFIX(extract_number_and_incr),
80937         PREFIX(print_partial_compiled_pattern),
80938         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80939         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80940         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80941         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80942         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80943         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80944         wcs_compile_range, byte_compile_range, truncate_wchar,
80945         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80946         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80947         count_mbs_length, wcs_re_match_2_internal,
80948         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80949         PREFIX(alt_match_null_string_p),
80950         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80951         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80952         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80953         now-unnecessary declaration, if any.
80954         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80955         regcomp, regexec):
80956         Remove now-unnecessary casts among pointer types.
80957         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80958
80959         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80960         (free): Remove decl.
80961
80962         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80963
80964         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80965         (free): Remove decl.
80966
80967         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80968         * lib/xgetcwd.c: Likewise.
80969
80970         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80971         (free): Remove decl.
80972
80973         * lib/strchrnul.c (strchrnul): Define with a prototype.
80974         Fix bug: c_in was not converted to char before searching.
80975
80976         The following changes are not K&R related:
80977
80978         * lib/group-member.h: Include <sys/types.h>, so that this file is
80979         self-contained.
80980         * lib/makepath.h: Likewise.
80981
80982         * lib/getusershell.c (readname, default_index, line_size, readname):
80983         Use size_t, not int, for sizes.
80984         (readname): If the size overflows, report an error instead of
80985         looping forever.
80986
80987 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80988
80989         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80990         libc.
80991
80992 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80993
80994         * README: New section: portability guidelines.
80995
80996 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80997
80998         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80999         C89 spec.
81000
81001 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81002
81003         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81004
81005 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81006
81007         Assume C89 or better; remove K&R cruft.
81008         A few of these changes were first proposed by Derek Robert Price
81009         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81010
81011         * lib/addext.c: Include <string.h> unconditionally.
81012         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81013         Don't declare getenv or malloc.
81014
81015         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81016         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81017         (NULL): Remove.
81018         (find_stack_direction, alloca): Use prototypes.
81019
81020         * lib/atexit.c (atexit): Define using a prototype.
81021
81022         * lib/basename.c, dirname.c, stripslash.c:
81023         Include <string.h> unconditionally.
81024
81025         * lib/bcopy.c: Include <stddef.h>.
81026         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81027
81028         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81029
81030         * lib/error.h (error, error_at_line, error_print_progname)
81031         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81032         * lib/error.c: Include error.h first, to check interface.
81033         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81034         (VA_START): Remove; all uses changeed to va_start.
81035         (exit, strerror): Remove decls.
81036         (error_print_progname): Prototype uncondionally.
81037         Don't include <errno.h>; no longer needed.
81038         (private_strerror): Remove.
81039         (error_tail): Always define.
81040         (error, error_at_line): Assume C89 or better; always use prototypes.
81041         * lib/fatal.c: Include "fatal.h" first, to test interface.
81042         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81043         (VA_START): Remove; all uses changed to va_start.
81044         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81045         this case.
81046         (exit): Remove decl.
81047         (fatal): Prototype unconditionally.  Assume va_start works.
81048         Abort at end, to pacify gcc.
81049
81050         * lib/euidaccess.c (main): Define with a prototype.
81051
81052         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81053
81054         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81055
81056         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81057         prototypes.
81058         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81059         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81060         (getenv): Remove decl.
81061         (fnmatch): Define using a prototype.
81062         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81063         (FCT): Define using a prototype.
81064
81065         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81066
81067         * lib/gethostname.c: Include <stddef.h>.
81068         (gethostname): Define with prototype.  Length is size_t, not int.
81069
81070 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81071
81072         Assume C89 or better; remove K&R cruft.
81073         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81074         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81075         string.h, getenv, malloc.
81076         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81077         headers.
81078         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81079         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81080         do not check for strerror.
81081         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81082         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81083         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81084         do not check for doprnt or vprintf.
81085         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81086         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81087
81088 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81089
81090         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81091         getversion.c should have been removed then, but was accidentally
81092         preserved.
81093
81094         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81095         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81096
81097 2003-09-08  Karl Berry  <karl@gnu.org>
81098
81099         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81100                 config, forget about prep.
81101
81102         * config/depcomp, missing: update from automake.
81103
81104 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81105
81106         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81107         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81108
81109 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81110
81111         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81112         copy_tm_result.  Bug reported by Simon Josefsson in
81113         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81114
81115 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81116
81117         * m4/time_r.m4: New file.
81118         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81119         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81120         is. Check for timegm declaration.
81121         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81122         Do not check for gmtime_r.
81123         Replace mktime if __mktime_internal does not exist and if mktime
81124         hasn't been replaced already.
81125
81126 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81127
81128         * lib/time_r.c, lib/time_r.h: New files.
81129
81130         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81131         __localtime_r.
81132         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81133         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81134
81135         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81136         __gmtime_r.
81137         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81138         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81139         Include <time_r.h>.
81140
81141         * lib/timegm.c: Switch to glibc implementation, with the following
81142         changes:
81143         [defined HAVE_CONFIG_H]: Include <config.h>.
81144         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81145         (__mktime_internal) [!defined _LIBC]: New decl.
81146         (__gmtime_r) [!defined _LIBC]: New macro and function.
81147         (timegm): Use a prototype, since gnulib assumes C89.
81148         Do not bother declaring tmp to be const, as it's not really usefu.
81149         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81150         (timegm): Declare only if HAVE_DECL_TIMEGM.
81151
81152 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81153
81154         * MODULES.html.sh (func_all_modules): Add time_r.
81155         * modules/time_r: New file.
81156         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81157         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81158
81159 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81160
81161         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81162         Bug reported by Lute Kamstra in
81163         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81164
81165         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81166         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81167         course with correspondingly smaller numbers for tomorrow and
81168         yesterday.  From Tadayoshi Funaba.  Originally installed into
81169         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81170         coreutils merge?).
81171
81172 2003-08-31  Simon Josefsson  <jas@extundo.com>
81173
81174         * modules/timegm: New file.
81175         * MODULES.html.sh (func_all_modules): Add timegm.
81176
81177 2003-08-31  Simon Josefsson  <jas@extundo.com>
81178
81179         * m4/timegm.m4: New file.
81180
81181 2003-08-31  Simon Josefsson  <jas@extundo.com>
81182
81183         * lib/timegm.h: New file.
81184         * lib/timegm.c: New file.  Based on
81185         wget-1.8.2/src/http.c:mktime_from_utc.
81186
81187 2003-08-31  Karl Berry  <karl@gnu.org>
81188
81189         * lib/argp.h: update from libc.
81190
81191 2003-08-28  Bruno Haible  <bruno@clisp.org>
81192
81193         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81194         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81195         followed by '#define fnmatch fnmatch_posix' gives an error.
81196
81197 2003-08-28  Bruno Haible  <bruno@clisp.org>
81198
81199         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81200         warning on QNX, which defines O_BINARY to 000000.
81201
81202 2003-08-27  Jim Meyering  <jim@meyering.net>
81203
81204         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81205         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81206         would fail after 32.  Reported by Danny Levinson.  Details here:
81207         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81208
81209 2003-08-24  Bruno Haible  <bruno@clisp.org>
81210
81211         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81212         MSVC7 <stdio.h> is included later.
81213
81214 2003-08-22  Simon Josefsson  <jas@extundo.com>
81215
81216         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81217
81218 2003-08-20  Karl Berry  <karl@gnu.org>
81219
81220         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81221
81222 2003-08-20  Bruno Haible  <bruno@clisp.org>
81223
81224         * modules/progname: New file.
81225         * MODULES.html.sh (func_all_modules): Add progname.
81226
81227 2003-08-20  Bruno Haible  <bruno@clisp.org>
81228
81229         * lib/progname.h: New file, from GNU gettext.
81230         * lib/progname.c: New file, from GNU gettext.
81231         * lib/progreloc.c: New file, from GNU gettext.
81232
81233 2003-08-19  Jim Meyering  <jim@meyering.net>
81234
81235         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81236         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81237
81238 2003-08-19  Bruno Haible  <bruno@clisp.org>
81239
81240         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81241         more.
81242
81243 2003-08-19  Bruno Haible  <bruno@clisp.org>
81244
81245         * lib/xstrdup.c: Assume <string.h> exists.
81246
81247 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81248
81249         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81250         in makefile rules.
81251
81252 2003-08-18  Jim Meyering  <jim@meyering.net>
81253
81254         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81255         * m4/lib-ld.m4: Likewise.
81256
81257 2003-08-18  Jim Meyering  <jim@meyering.net>
81258
81259         * lib/setenv.h: Indent nested cpp directive.
81260         * lib/vasnprintf.c: Remove trailing blanks.
81261
81262 2003-08-17  Simon Josefsson  <jas@extundo.com>
81263
81264         * modules/xstrndup: New file.
81265         * MODULES.html.sh (func_all_modules): Add xstrndup.
81266
81267 2003-08-17  Simon Josefsson  <jas@extundo.com>
81268
81269         * modules/argp: Fix autoconf macro name. Add more dependencies.
81270
81271 2003-08-17  Simon Josefsson  <jas@extundo.com>
81272
81273         * m4/xstrndup.m4: New file.
81274
81275 2003-08-17  Simon Josefsson  <jas@extundo.com>
81276
81277         * m4/argp.m4: New file.
81278
81279 2003-08-17  Simon Josefsson  <jas@extundo.com>
81280             Bruno Haible  <bruno@clisp.org>
81281
81282         * lib/xstrndup.h: New file.
81283         * lib/xstrndup.c: New file.
81284
81285 2003-08-17  Bruno Haible  <bruno@clisp.org>
81286
81287         * modules/strndup (Files, Include): Add lib/strndup.h.
81288
81289 2003-08-17  Bruno Haible  <bruno@clisp.org>
81290
81291         * modules/euidaccess (Files): Add lib/euidaccess.h.
81292
81293 2003-08-17  Bruno Haible  <bruno@clisp.org>
81294
81295         * lib/strndup.h: New file.
81296
81297 2003-08-17  Bruno Haible  <bruno@clisp.org>
81298
81299         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81300         like AC_GNU_SOURCE.
81301         * modules/extensions (configure.ac): Comment out the invocation of
81302         gl_USE_SYSTEM_EXTENSIONS.
81303
81304 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81305
81306         Merges from coreutils, etc.
81307         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81308         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81309         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81310         fixing a typo.
81311         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81312         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81313
81314 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81315
81316         Document merge from coreutils.
81317         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81318         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81319         * modules/utime: Add m4/utimes-null.m4.
81320
81321 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81322
81323         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81324         space, undoing this 2003-08-12 change:
81325         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81326
81327 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81328
81329         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81330         strtoul.c from libc, undoing this 2003-08-12 change:
81331         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81332
81333 2003-08-16  Jim Meyering  <jim@meyering.net>
81334
81335         Merges from coreutils.
81336         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81337         prefix.  Adjust cache variables similarly.  Create 500 rather than
81338         just 300 files, to exercise bug on Darwin6.5, too.
81339         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81340         $missing_dir.
81341         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81342         AM_SYS_POSIX_TERMIOS.
81343         Reported by mkc@mathdogs.com.
81344         Also change use of $am_cv_sys_posix_termios
81345         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81346         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81347         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81348         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81349         in /proc/mounts until it finds one with matching device number.  This
81350         is unnecessary when the FILE argument *is* a mount point.  No stat call
81351         is necessary in that case.  So, disable the statvfs-testing code on
81352         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81353         as RedHat bug# 84846.
81354         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81355         to 1MB, so as not to render systems with no stack size limit (e.g.,
81356         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81357         Include <unistd.h>.  On some systems,
81358         it is required for the definition of _SC_PAGESIZE.
81359
81360 2003-08-16  Jim Meyering  <jim@meyering.net>
81361
81362         Merge from coreutils.
81363         * lib/xstrtoimax.c: #else #if -> #elif.
81364         * lib/xstrtoumax.c: Likewise.
81365
81366 2003-08-16  Jim Meyering  <jim@meyering.net>
81367
81368         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81369         * m4/utimes.m4: Removed.
81370         * m4/utimes-null.m4: Renamed from utimes.m4.
81371
81372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81373         to 1MB, so as not to render systems with no stack size limit (e.g.,
81374         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81375         Include <unistd.h>.  On some systems,
81376         it is required for the definition of _SC_PAGESIZE.
81377
81378 2003-08-16  Jim Meyering  <jim@meyering.net>
81379         and Paul Eggert  <eggert@cs.ucla.edu>
81380
81381         Merges from coreutils, etc.
81382
81383         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81384         using the latest version from cvs.  This avoids problems with #line
81385         directives using a vendor (Sun) compiler.
81386         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81387         Don't set GETGROUPS_LIB here; now it's
81388         done via getgroups.m4's wrapper function.
81389         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81390         rather than just in sh-util/configure.in, so that the
81391         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81392         same.
81393         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81394         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81395         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81396         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81397         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81398         Remove code that is now done by the newly-required macros.
81399         Append $(EXEEXT) to DF_PROG.
81400         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81401         Do not invoke or require the following here,
81402         since prereq.m4 or some gnulib .m4 now does this for us:
81403         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81404         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81405         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81406         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81407         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81408         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81409         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81410         AC_FUNC_OBSTACK.
81411         Do not replace the following functions, as this is now the job
81412         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81413         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81414         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81415         atexit getpass, strdup, getpagesize.
81416         Replace 'raise'.
81417         Do not check for the following functions, as this is now the job
81418         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81419         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81420         setregid.
81421         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81422         Check for sys/sysctl.h.
81423         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81424         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81425         of checking for ssize_t ourselves.
81426
81427         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81428         Require every macro that gnulib/modules/* suggests for us.
81429         (jm_PREREQ_ADDEXT): New macro.
81430         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81431         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81432
81433         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81434         (gl_PHYSMEM): Use it.
81435         Also check for `table' function.
81436         Check for new headers and functions.
81437         Add check for sys/sysmp.h.
81438         With suggestions from Kaveh Ghazi.
81439         Ignore headers that are present but cannot be compiled.  This
81440         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81441         C 5.4.
81442
81443 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81444
81445         Document merge from coreutils.
81446         * modules/userspec: Depend on posixver.
81447         * modules/strftime: Depend on tzset.
81448
81449 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81450
81451         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81452         rather than tab, after '#' in shell-script copyright notices.
81453         Suggested by Bruno Haible.
81454
81455 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81456
81457         * config/srclist-update: Use three spaces, rather than tab, after '#'
81458         in shell-script copyright notices.  Suggested by Bruno Haible.
81459         Remove unnecessary parenthesization in regular expression.
81460
81461 2003-08-15  Jim Meyering  <jim@meyering.net>
81462
81463         Merge from coreutils.
81464         * lib/xgethostname.c: Include <stdlib.h>.
81465         (xghostname): Don't exit for anything other than memory-related
81466         failure; just return NULL.
81467         * lib/userspec.c: Include "posixver.h".
81468         (parse_user_spec): Accept `.' as a separator only
81469         in pre-POSIX-200112 mode.
81470         * lib/strtoimax.c: Use #elif rather than #else #if.
81471         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81472         Remove function, now that we can rely on a working tzset function.
81473         [!_LIBC]: Ensure that the required autoconf test has been run.
81474         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81475         Use underlying_strftime for %r.
81476         * lib/sha.c: Merge in some clean-up and optimization changes from
81477         glibc.
81478         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81479         Ensure that it is a multiple of 64.
81480         Rearrange loop exit tests so as to avoid performing an
81481         additional fread after encountering an error or EOF.
81482         * lib/realloc.c: Update copyright date.
81483
81484 2003-08-15  Jim Meyering  <jim@meyering.net>
81485         and Paul Eggert  <eggert@twinsun.com>
81486
81487         Merge from coreutils.
81488         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81489         member but strut utmpx does not.  Needed for AIX 4.3.3.
81490         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81491
81492 2003-08-15  Jim Meyering  <jim@meyering.net>
81493         and Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         Merges from coreutils, etc.
81496         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81497         Require gl_FUNC_TZSET_CLOBBER.
81498         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81499         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81500         members.
81501
81502 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81503
81504         Help the merge from coreutils.
81505         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81506         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81507         * m4/tzset.m4: Use it too.
81508
81509 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81510
81511         * modules/tzset: New file.
81512
81513 2003-08-14  Jim Meyering  <jim@meyering.net>
81514
81515         Merges from coreutils.
81516         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81517         variable names, rather than @FNMATCH_H@.
81518         * modules/alloca: Likewise for $(ALLOCA_H).
81519
81520         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81521         the three copies of the literal target, `fnmatch.h'.
81522         * modules/alloca (alloca.h): Likewise.
81523
81524 2003-08-14  Jim Meyering  <jim@meyering.net>
81525
81526         Merge from coreutils.
81527         * m4/tzset.m4: New file.
81528         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81529         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81530         otherwise, AIX 5.1 systems would end up using the latter.
81531         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81532         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81533         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81534         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81535
81536 2003-08-14  Jim Meyering  <jim@meyering.net>
81537
81538         Merge from coreutils.
81539         * lib/obstack.h: Whitespace changes.
81540         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81541         and xcalloc return values.
81542         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81543         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81544         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81545         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81546         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81547         error from mntctl.
81548         Use mntctl's return value to drive the entry-processing loop, since
81549         we can't rely on the value of the vmt_length member in the last
81550         entry.  On some systems doing so could result in exhausting
81551         virtual memory.  Based in part on a patch from Mike Jetzer.
81552
81553 2003-08-14  Jim Meyering  <jim@meyering.net>
81554         and Paul Eggert  <eggert@twinsun.com>
81555
81556         Merges from coreutils, plus other fixes.
81557         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81558         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81559         for credits and details.  Thanks to Kaveh Ghazi for helping
81560         to keep these files in sync.
81561         (ARRAY_SIZE): Define it.
81562         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81563         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81564         (memcasecmp): Don't assume size_t fits in unsigned int.
81565         Remove casts and duplicate code.
81566         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81567         (memcpy): Remove definition.
81568         Merge in some clean-up and optimization changes from glibc.
81569         [BLOCKSIZE]: Move definition to top of file.
81570         Ensure that it is a multiple of 64.
81571         Rearrange loop exit tests so as to avoid performing an
81572         additional fread after encountering an error or EOF.
81573         * lib/md5.h (md5_uintptr): Define.
81574         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81575         return to the initial working directory.  Preserve errno
81576         for caller.
81577         * lib/idcache.c: Include "xalloc.h".
81578         (xmalloc, xrealloc): Remove decls.
81579         (getuser): Remove casts no longer required in C89.
81580         * lib/human.c: Include stdio.h, for sprintf.
81581         * lib/group-member.c: Include "xalloc.h".
81582         (xmalloc, xrealloc): Remove decls.
81583         (get_group_info): Remove casts no longer required in C89.
81584         * lib/getusershell.c (readname): Remove casts no longer required in
81585         C89.
81586         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81587         * lib/getline.c: Whitespace fix, from coreutils.
81588
81589 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81590
81591         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81592         Check for isascii.
81593
81594         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81595         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81596         Undo previous (whitespace-only) change.
81597
81598 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81599
81600         * lib/exclude.c: Include <ctype.h>
81601         (IN_CTYPE_DOMAIN): New macro.
81602         (is_space): New fn.
81603         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81604         and empty lines.
81605
81606         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81607         Undo previous (whitespace-only) change.
81608
81609 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81610
81611         * config/srclist-update: Change update back to the old behavior,
81612         leaving whitespace alone.  Use one 'sed' command rather than a
81613         pipeline.
81614         (fixlicense): Now a variable, not a function.
81615         (remove_trailing_blanks): Remove.
81616         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81617         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81618         Undo previous (whitespace-only) change.
81619
81620 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81621
81622         Merge from coreutils.
81623         * modules/euidaccess: Add lib_SOURCES, include for new
81624         file euidaccess.h
81625
81626 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81627
81628         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81629         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81630         Normalize leading white space and remove trailing white space.
81631
81632         Merge from coreutils
81633         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81634
81635         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81636         0.12.1.  These files are now being upgraded automatically by
81637         ../config/srclist-update.
81638
81639 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81640
81641         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81642         Normalize leading white space and remove trailing white space.
81643         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81644         notice, as per ../config/srclist-update.
81645
81646         Merge from coreutils.
81647         * lib/euidaccess.h: New file.
81648         * lib/euidaccess.c: Include it.
81649         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81650         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81651         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81652
81653 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81654
81655         * config/srclist-update: Add copyright notice.
81656         (remove_id_lines, remove_trailing_blanks): New constants.
81657         (fixfile): Use them to normalize spacing a bit in copied files.
81658         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81659         Normalize leading white space and remove trailing white space.
81660
81661         * config/texinfo.tex: Sync with texinfo.
81662
81663         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81664         strtoul.c from libc, to merge coreutils whitespace changes.
81665
81666         * config/srclist.txt: Get the following m4 files from gettext:
81667         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81668         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81669         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81670         wint_t.m4.
81671
81672 2003-08-12  Karl Berry  <karl@gnu.org>
81673
81674         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81675         been made.
81676
81677 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81678
81679         * modules/gnu-source, m4/gnu-source.m4:
81680         Remove; we're assuming Autoconf 2.54 or later now.
81681         Suggested by Bruno Haible.
81682         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81683
81684 2003-08-11  Bruno Haible  <bruno@clisp.org>
81685
81686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81687
81688 2003-08-11  Bruno Haible  <bruno@clisp.org>
81689
81690         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81691         (vasnprintf): Use it instead of wcslen.
81692
81693 2003-08-11  Bruno Haible  <bruno@clisp.org>
81694
81695         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81696         value to ensure that _Bool promotes to int. Use #define for _Bool when
81697         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81698
81699 2003-08-10  Karl Berry  <karl@gnu.org>
81700
81701         * lib/regex.h: update from libc (whitespace fix).
81702
81703 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81704
81705         Merge some files from coreutils.  These changes were
81706         originally made by Jim Meyering.
81707         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81708         many older Unixes require this.
81709         * lib/alloca.c (alloca): Remove cast to argument of free;
81710         no longer needed in C89.
81711         * lib/alloca_.h, regex.h: Fix white space to match
81712         what GNU indent does.
81713
81714 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81715
81716         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81717         apparently Emacs's Unicode mode got confused before my 2003-08-05
81718         checkin.
81719
81720 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81721
81722         * m4/extensions.m4: New file.
81723         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81724         Require gl_USE_SYSTEM_EXTENSIONS.
81725         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81726         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81727
81728 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81729
81730         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81731         * modules/extensions, modules/gnu-source: New files.
81732         * modules/timespec, modules/unlocked-io: Depend on extensions.
81733
81734 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81735
81736         * modules/restrict: New file.
81737         * MODULES.html.sh (func_all_modules): Add restrict.
81738         * modules/regex: Depend on restrict.
81739
81740 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81741
81742         * m4/restrict.m4: New file.
81743         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81744
81745 2003-08-07  Bruno Haible  <bruno@clisp.org>
81746
81747         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81748         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81749
81750 2003-08-07  Bruno Haible  <bruno@clisp.org>
81751
81752         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81753         makes the module 'getndelim2' compatible with the module 'getline'.
81754
81755 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81756
81757         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81758         byte with "\201" to avoid glitches when editing that source file
81759         with multi-gnome-terminal.
81760
81761 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81762
81763         * lib/bumpalloc.h: Remove.
81764
81765 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81766
81767         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81768         * modules/bumpalloc: Remove.
81769
81770 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81771
81772         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81773         GNU coding style.
81774
81775         Merge from coreutils.
81776         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81777         1. From glibc.
81778         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81779         from Karl Berry, implemented by Jim Meyering.
81780         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81781         from Dmitry V. Levin.
81782         Remove anachronistic cast of xrealloc.
81783         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81784         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81785         type. Otherwise, it wouldn't compile with at least /bin/cc on
81786         ymp-cray-unicos9.0.2.X.
81787         Combine two mostly-identical uses of alloca into one.
81788         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81789
81790 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81791
81792         [From Emacs.]
81793
81794         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81795         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81796         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81797         obsolete NLIST_NAME_UNION.
81798         [__GNU__]: Undef BSD and FSCALE.
81799         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81800
81801 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81802
81803         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81804         an enum type, so that it's guaranteed to promote to int.  See:
81805         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81806
81807 2003-08-03  Karl Berry  <karl@gnu.org>
81808
81809         * config/depcomp: update from automake.
81810
81811 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81812
81813         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81814         (strerror): Don't assume that a printable int fits in 14 bytes.
81815
81816 2003-07-31  Bruno Haible  <bruno@clisp.org>
81817
81818         * modules/getpass-gnu: New file.
81819         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81820
81821 2003-07-31  Bruno Haible  <bruno@clisp.org>
81822
81823         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81824
81825 2003-07-24  Karl Berry  <karl@gnu.org>
81826
81827         * config/missing: update from automake.
81828
81829 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81830             Bruno Haible  <bruno@clisp.org>
81831
81832         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81833         * lib/getline.c (getline, getdelim): Likewise.
81834         Remove _GNU_SOURCE define; now it's defined in config.h through
81835         m4/getline.m4.
81836
81837 2003-07-23  Karl Berry  <karl@gnu.org>
81838
81839         * config/config.sub: update from prep.
81840
81841 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81842
81843         * modules/xalloc (Depends-on): Add exitfail.
81844         * modules/xmemcoll: Likewise.
81845
81846 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81847
81848         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81849         over-parenthesization in macros.
81850
81851         Sync with coreutils.
81852
81853         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81854         required by C99.
81855
81856         Use `exit_failure' for xalloc and xmemcoll instead of their own
81857         private exit-failure variables.
81858         * lib/xalloc.h (xalloc_exit_failure): Remove.
81859         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81860         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81861         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81862         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81863         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81864
81865 2003-07-20  Jim Meyering  <jim@meyering.net>
81866
81867         * modules/closeout (Depends-on): Add exitfail.
81868         Suggestion from Bruno Haible.
81869
81870 2003-07-19  Karl Berry  <karl@gnu.org>
81871
81872         * config/config.sub: update from prep.
81873
81874 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81875
81876         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81877         Remove.
81878         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81879         to test that it can stand by itself.  Include "exitfail.h".
81880         Clients should set exit_failure instead.
81881         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81882
81883 2003-07-18  Bruno Haible  <bruno@clisp.org>
81884
81885         * modules/getndelim2: New file.
81886         * modules/getline: Share files with module getndelim2.
81887         * modules/getnline: Depend on getndelim2 instead of sharing files with
81888         it. Add getnline.c to lib_SOURCES.
81889         * MODULES.html.sh (func_all_modules): Add getndelim2.
81890
81891 2003-07-18  Bruno Haible  <bruno@clisp.org>
81892
81893         * m4/getndelim2.m4: New file.
81894         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81895         invoke gl_PREREQ_GETNDELIM2.
81896         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81897         gl_PREREQ_GETNDELIM2.
81898         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81899         gl_GETNDELIM2.
81900
81901 2003-07-18  Bruno Haible  <bruno@clisp.org>
81902
81903         * lib/getndelim2.h: New file.
81904         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81905         getndelim2.h.
81906         (getndelim2): Make non-static. Change return type to ssize_t.
81907         * lib/getline.h: Change argument names.
81908         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81909         * lib/getnline.c: Include getndelim2.h.
81910
81911 2003-07-18  Andreas Schwab  <schwab@suse.de>
81912
81913         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81914
81915 2003-07-17  Karl Berry  <karl@gnu.org>
81916
81917         * config/config.sub: update from prep.
81918
81919 2003-07-17  Bruno Haible  <bruno@clisp.org>
81920
81921         * modules/getnline: New file.
81922         * modules/getline: Add lib/getndelim2.c to source file list.
81923         * MODULES.html.sh (func_all_modules): Add getnline.
81924
81925 2003-07-17  Bruno Haible  <bruno@clisp.org>
81926
81927         * m4/getnline.m4: New file.
81928
81929 2003-07-17  Bruno Haible  <bruno@clisp.org>
81930
81931         * m4/Makefile.am.in: Remove file.
81932         * m4/Makefile.am: Remove file.
81933         * m4/Makefile.in: Remove file.
81934
81935 2003-07-17  Bruno Haible  <bruno@clisp.org>
81936
81937         * lib/getnline.h: New file.
81938         * lib/getnline.c: New file.
81939         * lib/getndelim2.c: New file, extracted from getline.c.
81940         (getndelim2): Renamed from getdelim2, with added nmax argument.
81941         * lib/getline.c: Include getndelim2.c.
81942         (getdelim2): Moved out to getndelim2.c.
81943         (getline, getdelim): Update.
81944
81945 2003-07-17  Bruno Haible  <bruno@clisp.org>
81946
81947         * lib/Makefile.am: Remove file.
81948         * lib/Makefile.in: Remove file.
81949
81950 2003-07-17  Bruno Haible  <bruno@clisp.org>
81951
81952         * configure.in: Remove file.
81953         * Makefile.in: Remove file.
81954
81955 2003-07-17  Bruno Haible  <bruno@clisp.org>
81956
81957         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81958
81959 2003-07-16  Karl Berry  <karl@gnu.org>
81960
81961         * config/srclist-update: was running fixlicense twice, which caused
81962                 texinfo.tex to be nullified for some reason.  Simplify,
81963                 $gplsrc is no longer needed as far as I can see?
81964
81965 2003-07-16  Jim Meyering  <jim@meyering.net>
81966
81967         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81968
81969 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81970
81971         * config/srclist.txt: Get the following files from gettext-runtime/intl
81972         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81973         ref-del.sin.  From Bruno Haible.
81974         * config/srclist-update (fixfile): Change grep pattern again, since the
81975         previous fix didn't work (there was another trailing $).  Use
81976         '[$]' to escape the $s.
81977
81978 2003-07-15  Karl Berry  <karl@gnu.org>
81979
81980         * lib/vasnprintf.c: update from gettext.
81981
81982 2003-07-15  Karl Berry  <karl@gnu.org>
81983
81984         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81985         gets expanded when surrounded by '$'.
81986
81987 2003-07-15  Jim Meyering  <jim@meyering.net>
81988
81989         * modules/save-cwd: Don't depend on error.  From Derek Price.
81990
81991 2003-07-15  Jim Meyering  <jim@meyering.net>
81992
81993         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81994
81995 2003-07-14  Simon Josefsson  <jas@extundo.com>
81996
81997         * modules/mempcpy: New file.
81998         * MODULES.html.sh (func_all_modules): Add mempcpy.
81999
82000 2003-07-14  Simon Josefsson  <jas@extundo.com>
82001
82002         * m4/mempcpy.m4: New file.
82003
82004 2003-07-14  Simon Josefsson  <jas@extundo.com>
82005
82006         * lib/mempcpy.h: New file.
82007         * lib/mempcpy.c: New file.
82008
82009 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82010
82011         * modules/getdate, modules/posixtm: Depend on mktime.
82012
82013 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82014
82015         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82016         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82017         unicodeio.c, unicodeio.h, unlocked-io.h:
82018         Switch from LGPL to GPL.
82019
82020 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82021
82022         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82023         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82024         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82025         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82026         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82027         updated automatically by ../config/srclist-update.  This changes
82028         their license from LPGL to GPL.
82029
82030 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82031
82032         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82033         assumed to refer to the root of the most recent stable gettext version.
82034         * config/srclistvars.sh: Add defaults for eggert.
82035         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82036         Match "This program" as well as "The program".  This is needed
82037         for gettext.
82038
82039 2003-07-14  Jim Meyering  <jim@meyering.net>
82040
82041         Don't emit diagnostics.  Let callers do that.
82042         * lib/save-cwd.c: Don't include "error.h".
82043         (save_cwd): Don't call error.  Ensure that errno is valid
82044         when returning nonzero.
82045
82046         * lib/save-cwd.h (restore_cwd): Update prototype.
82047         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82048         Simplify.  Don't call error upon failure.  Let callers do that.
82049         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82050         when auditing is enabled.  But don't bother updating the #if.
82051
82052 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82053
82054         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82055         it breaks C++ compilation.
82056         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82057
82058 2003-07-10  Simon Josefsson  <jas@extundo.com>
82059
82060         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82061
82062 2003-07-10  Jim Meyering  <jim@meyering.net>
82063
82064         * m4/clock_time.m4: Remove trailing blank.
82065         * m4/intmax_t.m4: Likewise.
82066
82067 2003-07-10  Jim Meyering  <jim@meyering.net>
82068
82069         * lib/vasnprintf.c: Remove trailing blanks.
82070         Make cpp indentation consistent.
82071
82072 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82073
82074         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82075         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82076         Switch from LGPL to GPL.
82077
82078 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82079
82080         * config/srclist.txt: Sort sublists.  Add
82081         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82082         that differ from gnulib for one reason or another; we'd like this list
82083         to be smaller but for now let's document what we have.
82084
82085 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82086
82087         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82088         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82089         and sweeter "eval x=$x".
82090         * config/srclist.txt: Get lib/argp* from glibc.
82091
82092 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82093
82094         * lib/mktime.c: Fix some boundary cases and remove need for floating
82095         point.
82096
82097         Issue a compile-time diagnostic if time_t is floating point, or if
82098         two's complement arithmetic is not in effect, or if arithmetic
82099         right shift does not propagate the sign.  These assumptions were
82100         all in the original code but they weren't checked.
82101
82102         (TIME_T_MIDPOINT, verify): New macros.
82103         (__isleap): Remove; it has integer overflow problems.
82104         (leapyear): New function, without those problems.
82105         (ydhms_tm_diff): Remove; splitting into two parts.
82106         (ydhms_diff): New function, containing the arithmetic part of
82107         the old ydhms_tm_diff function.  Issue a compile-time
82108         diagnostic if we are not using C99 integer division.
82109         Avoid casts when possible.
82110         (guess_time_tm): New function, containing the checking part of
82111         the old ydhms_tm_diff function.  Return the new value, rather than
82112         the difference between it and the old.  Accept a new argument T
82113         so that *T specifies the old value.  Check for overflow in the result.
82114
82115         (__mktime_internal): Use a time_t offset, not a long int offset.
82116         This undoes the 2003-06-04 change, which is no longer needed now
82117         that we have better overflow checking.
82118         (localtime_offset): Likewise.
82119
82120         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82121         and long are 64-bit but int is only 32-bit.
82122         (ydhms_diff): Use long int to store year1 and yday1.
82123         Issue a compile-time diagnostic if long int is not wide enough.
82124
82125         (__mktime_internal): Use long int to store adjusted year and yday.
82126         Use plain C rather than preprocessor commands, if that doesn't
82127         affect efficiency.
82128         Check for overflow (and try to repair) after each probe
82129         rather than checking only at the very end.  This avoids some bugs
82130         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82131         does not equal GMT offset at maximum time).
82132         Use integer to check for overflow rather than floating point; this
82133         is more portable to non-IEEE hosts, and is a tad faster.
82134         When we detect that we are oscillating between two values,
82135         don't check whether tm_isdst has the requested value, since
82136         we already know the answer.  When tm_isdst has the wrong value,
82137         use a different heuristic to find the right one, based on the
82138         extreme values actually observed in practice in tz2003a,
82139         rather than the (overly optimistic) "previous 3 calendar quarters".
82140
82141         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82142         "T const" to accommodate glibc style.
82143         (check_result): Use less-confusing report format.  "long" -> "long int.
82144         (main): Likewise.
82145         Don't loop if the iteration overflows time_t.
82146         Allow a negative step in the iteration.
82147
82148 2003-07-06  Karl Berry  <karl@gnu.org>
82149
82150         * config/depcomp: update from automake.
82151         * config/config.sub: update from prep.
82152
82153 2003-07-03  Karl Berry  <karl@gnu.org>
82154
82155         * config/config.guess: update from prep.
82156
82157 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82158
82159         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82160         xreadlink.c now includes it unconditionally.
82161
82162 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82163
82164         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82165         having it depend on HAVE_SYS_TYPES_H.
82166
82167 2003-07-01  Bruno Haible  <bruno@clisp.org>
82168
82169         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82170         <sys/types.h> should be sufficient.
82171         Reported by Paul Eggert.
82172
82173 2003-06-26  Karl Berry  <karl@gnu.org>
82174
82175         * config/depcomp: update from automake.
82176
82177 2003-06-26  Bruno Haible  <bruno@clisp.org>
82178
82179         * modules/human: Depend on module stdbool.
82180
82181 2003-06-25  Bruno Haible  <bruno@clisp.org>
82182
82183         * modules/readlink: New file.
82184         * modules/xreadlink: Depend on it.
82185         * MODULES.html.sh (func_all_modules): Add readlink.
82186
82187 2003-06-25  Bruno Haible  <bruno@clisp.org>
82188
82189         * m4/readlink.m4: New file.
82190
82191 2003-06-25  Bruno Haible  <bruno@clisp.org>
82192
82193         * lib/readlink.c: New file.
82194
82195 2003-06-22  Karl Berry  <karl@gnu.org>
82196
82197         * config/srclist.txt: update mkinstalldirs from automake.
82198         * config/mkinstalldirs: update.
82199
82200 2003-06-22  Bruno Haible  <bruno@clisp.org>
82201
82202         Portability to mingw32.
82203         * m4/ssize_t.m4: New file, from GNU gettext.
82204         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82205         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82206
82207 2003-06-22  Bruno Haible  <bruno@clisp.org>
82208
82209         * modules/safe-read: Add m4/ssize_t.m4.
82210         * modules/xreadlink: Add m4/ssize_t.m4.
82211
82212 2003-06-20  Bruno Haible  <bruno@clisp.org>
82213
82214         Assume C89, so PARAMS isn't needed.
82215         * lib/unicodeio.h (PARAMS): Remove.
82216         * lib/unicodeio.c: Don't use PARAMS.
82217
82218 2003-06-18  Karl Berry  <karl@gnu.org>
82219
82220         * config/config.{guess,sub}: update from prep.
82221
82222 2003-06-18  Jim Meyering  <jim@meyering.net>
82223
82224         Merge changes from coreutils.
82225         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82226         Remove explicit declarations of xmalloc and realloc.
82227         Include xalloc.h.
82228         (read_utmp): Remove anachronistic cast of xmalloc.
82229
82230 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82231
82232         Assume C89, so PARAMS isn't needed.
82233         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82234         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82235         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82236         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82237         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82238         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82239         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82240         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82241         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82242         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82243         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82244         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82245         no longer needed. Anyway, config.h should always be included before any
82246         other file.
82247
82248 2003-06-11  Simon Josefsson  <jas@extundo.com>
82249
82250         * modules/sysexits: New file.
82251         * MODULES.html.sh (func_all_modules): Add sysexits.
82252
82253 2003-06-11  Simon Josefsson  <jas@extundo.com>
82254
82255         * lib/sysexit_.h: New file.
82256
82257 2003-06-11  Derek Price  <derek@ximbiot.com>
82258
82259         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82260         necessary.
82261
82262 2003-06-11  Bruno Haible  <bruno@clisp.org>
82263
82264         * m4/sysexits.m4: New file.
82265
82266 2003-06-10  Simon Josefsson  <jas@extundo.com>
82267
82268         * lib/argp.h: New file, from glibc.
82269         * lib/argp-ba.c: New file, from glibc.
82270         * lib/argp-eexst.c: New file, from glibc.
82271         * lib/argp-fmtstream.c: New file, from glibc.
82272         * lib/argp-fmtstream.h: New file, from glibc.
82273         * lib/argp-fs-xinl.c: New file, from glibc.
82274         * lib/argp-help.c: New file, from glibc.
82275         * lib/argp-namefrob.h: New file, from glibc.
82276         * lib/argp-parse.c: New file, from glibc.
82277         * lib/argp-pv.c: New file, from glibc.
82278         * lib/argp-pvh.c: New file, from glibc.
82279         * lib/argp-xinl.c: New file, from glibc.
82280
82281 2003-06-10  Simon Josefsson  <jas@extundo.com>
82282
82283         * modules/strchrnul: New file.
82284
82285 2003-06-10  Simon Josefsson  <jas@extundo.com>
82286
82287         * modules/argp: New file.
82288
82289 2003-06-10  Simon Josefsson  <jas@extundo.com>
82290
82291         * m4/strchrnul.m4: New file.
82292
82293 2003-06-10  Simon Josefsson  <jas@extundo.com>
82294
82295         * lib/strchrnul.h: New file.
82296         * lib/strchrnul.c: New file.
82297
82298 2003-06-10  Bruno Haible  <bruno@clisp.org>
82299
82300         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82301
82302 2003-06-07  Karl Berry  <karl@gnu.org>
82303
82304         * config/config.{guess,sub}: update from prep.
82305
82306 2003-06-07  Jim Meyering  <jim@meyering.net>
82307
82308         * modules/strtod: Use $(...) notation, not @...@ for
82309         AC_REPLACE'd variables.
82310         * modules/localcharset: Likewise.
82311
82312 2003-06-07  Jim Meyering  <jim@meyering.net>
82313
82314         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82315         in place of my name in the copyright comment.
82316         Remove definition and uses of __P.
82317
82318         From coreutils.
82319         * lib/stat.c: Don't declare xmalloc explicitly.
82320         Instead, include "xalloc.h".
82321         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82322         xrealloc, and xcalloc return values.
82323         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82324         Improve comment.
82325         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82326
82327 2003-06-07  Bruno Haible  <bruno@clisp.org>
82328
82329         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82330         avoid AC_CONFIG_LINKS.
82331         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82332         fnmatch.h, to avoid AC_CONFIG_LINKS.
82333         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82334
82335 2003-06-07  Bruno Haible  <bruno@clisp.org>
82336
82337         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82338         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82339         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82340         directory.
82341         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82342         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82343         directory.
82344
82345 2003-06-06  Jim Meyering  <jim@meyering.net>
82346
82347         Merge from coreutils.
82348         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82349         Consolidate declarations and initializations of *_base* locals.
82350
82351         Merge from coreutils.
82352         This avoids a core dump on systems without GNU putenv,
82353         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82354         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82355         (unsetenv): New static function, from GNU libc.
82356         (rpl_putenv): Use it.
82357
82358         * lib/modechange.c: Remove trailing blanks.
82359
82360         Merge from coreutils.
82361         * lib/fsusage.c: Remove declaration of statfs.
82362         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82363
82364         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82365
82366 2003-06-06  Jim Meyering  <jim@meyering.net>
82367
82368         * lib/stdbool_.h: Renamed from stdbool.h.in.
82369
82370 2003-06-06  Jim Meyering  <jim@meyering.net>
82371             Bruno Haible  <bruno@clisp.org>
82372
82373         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82374         Adjust Makefile.am snippet not to redirect directly to target.
82375         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82376
82377 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82378
82379         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82380         mismatch, look in future quarters as well as past.  This fixes a
82381         bug when processing fall-backwards gaps immediately after a long
82382         period of daylight-saving time.
82383
82384         * lib/mktime.c: Assume freestanding C89 or better.
82385         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82386         (__P): Remove; not used.
82387         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82388         (mktime, not_equal_tm, print_tm, check_result,
82389         main): Use prototypes.  Use const * where appropriate.
82390         (main): Fix typo in testing code that uncovered by above changes.
82391         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82392
82393 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82394
82395         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82396         locale.h, localeconv.  This merges changes from coreutils.
82397
82398         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82399         It can be removed after the next Autoconf is released.
82400         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82401         needed.
82402
82403 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82404
82405         * lib/mktime.c: Fix Debian bug 177940
82406         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82407         (localtime_offset): Now long int, not time_t, because we want it
82408         to be guaranteed to be signed.  All uses changed.
82409         (__mktime_internal): If overflow would occur when adding offset,
82410         don't add it.
82411
82412         Merge 'human' changes from coreutils.  Rewrite to support
82413         locale-specific notations like thousands separators.
82414         * lib/human.c: Simplify authorship notice.
82415         Include human.h immediately after config.h.
82416         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82417         <limits.h>: Do not include, since human.h does.
82418         (SIZE_MAX, UINTMAX_MAX): New macros.
82419         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82420         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82421         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82422         (power_letter): Renamed from suffixes.
82423         (generate_suffix_backwards): Remove.
82424         (adjust_value): Now takes int style (because of human.h changes)
82425         and long double value (for greater precision on some platforms).
82426         (group_number): New function.
82427         (human_readable): Use it.  Use integer options, not enum.
82428         Put the options before the sizes in the arg list.
82429         Support all the new options.
82430         The old human_readable function has been removed;
82431         use inttostr.h instead.
82432         (human_readable, default_block_size, humblock):
82433         Use uintmax_t, not int, for block sizes.
82434         (human_readable_inexact, block_size_types): Remove.
82435         (block_size_opts): New constant.
82436         (human_options): Renamed from human_block_size, with new signature
82437         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82438         * lib/human.h: Add copyright and authorship notice.
82439         Include <limits.h> and <stdbool.h> unconditionally.
82440         (PARAMS): Remove.  All uses removed.
82441         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82442         (enum human_inexact_style): Remove tag; now a nameless enum.
82443         (human_floor, human_ceiling, human_round_to_even): Now have
82444         values 2, 0, 1 rather than -1, 1, 0.
82445         (human_group_digits, human_suppress_point_zero, human_autoscale,
82446         human_base_1024, human_SI, human_B): New constants.
82447         (human_readable_inexact, human_block_size): Remove.
82448         (human_readable): Size args are now uintmax_t, not int.
82449         (human_options): New decl.
82450
82451         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82452         unnecessary now that we assume C89 or better.  This change
82453         imported from coreutils.
82454
82455         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82456         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82457         in the 2003-05-30 sync from glibc.
82458
82459         .h files should stand alone, but we shouldn't include <sys/types.h>
82460         if we can get away with just <stddef.h>.
82461
82462         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82463         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82464         rather than <sys/types.h>, as we merely need size_t.
82465         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82466         to get size_t.
82467         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82468         Include <stdio.h>, to get FILE.
82469         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82470         memcasecmp.h has included <stddef.h> and all we need is size_t.
82471         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82472         our interface, instead of including <sys/types.h>
82473
82474 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82475
82476         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82477         now, as glibc mktime is buggy on non-glibc systems.
82478
82479 2003-06-03  Karl Berry  <karl@gnu.org>
82480
82481         * config/config.sub: update from prep.
82482
82483 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82484
82485         [from coreutils]
82486         Fix some minor time-related bugs with POSIX time arguments.
82487         Some valid time stamps were being rejected (notably -1, and
82488         time stamps before 1900 on 64-bit hosts).  And some invalid
82489         time stamps were being accepted, e.g. September 31.
82490
82491         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82492         that we can return (time_t) -1 successfully.
82493         * lib/posixtm.c: Likewise.
82494         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82495         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82496         (t): Remove static var.
82497         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82498         of static var.  All uses changed.
82499         (year): Do not reject years before 1900; they can occur with
82500         64-bit time_t.
82501         (posix_time_parse): Do not check for out-of-range components;
82502         that is now the caller's responsibility, since our checks were
82503         only approximations.
82504         (posixtime): Use mktime to check for out-of-range components,
82505         since it knows them exactly.
82506         If mktime returns (time_t) -1, check whether an error actually occurred
82507         by invoking localtime on -1.
82508         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82509         posixtime failures better.
82510         Improve the test data (in comments only).
82511
82512 2003-06-02  Karl Berry  <karl@gnu.org>
82513
82514         * config/mkinstalldirs (version): new variable.
82515         (--version): new option.
82516         (usage): improve message.
82517
82518 2003-05-30  Karl Berry  <karl@gnu.org>
82519
82520         * lib/mktime.c: update from libc.
82521
82522 2003-05-30  Bruno Haible  <bruno@clisp.org>
82523
82524         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82525         * config/config.rpath: Upgrade to gettext-0.12.1.
82526
82527 2003-05-30  Bruno Haible  <bruno@clisp.org>
82528
82529         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82530         * m4/nls.m4: New file, from gettext-0.12.1.
82531         * m4/po.m4: New file, from gettext-0.12.1.
82532         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82533
82534 2003-05-30  Bruno Haible  <bruno@clisp.org>
82535
82536         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82537         * lib/localcharset.h: Likewise.
82538         * lib/localcharset.c: Likewise.
82539
82540 2003-05-29  Karl Berry  <karl@gnu.org>
82541
82542         * config/config.rpath: update from gettext.
82543
82544 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82545
82546         Assume the headers required for C89 freestanding compilers.
82547         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82548         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82549         * m4/human.m4 (gl_HUMAN): Likewise.
82550         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82551         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82552         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82553         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82554         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82555         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82556
82557 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82558
82559         Assume the headers required for C89 freestanding compilers.
82560         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82561         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82562         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82563         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82564         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82565         define, since <limits.h> is guaranteed to do that.
82566         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82567         * lib/exclude.c: Include <stdbool.h> unconditionally.
82568         * lib/tempname.c: Include <stddef.h> unconditionally.
82569         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82570         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82571         <stddef.h> does that.
82572         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82573         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82574         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82575         needed.
82576         * lib/xstrtol.c: Likewise.
82577         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82578         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82579
82580         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82581         warnings on some platforms.
82582
82583         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82584         arbitrarily.
82585
82586 2003-05-26  Jim Meyering  <jim@meyering.net>
82587
82588         Merge in a change from coreutils:
82589         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82590         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82591         that condition, rather than `-1' which is slightly misleading.
82592         Change the name of the cache variable to have the gl_ prefix.
82593         Prompted by a patch from Richard Dawe for DJGPP.
82594
82595 2003-05-24  Karl Berry  <karl@gnu.org>
82596
82597         * config/config.guess: update from prep.
82598
82599 2003-05-22  Karl Berry  <karl@gnu.org>
82600
82601         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82602
82603 2003-05-20  Karl Berry  <karl@gnu.org>
82604
82605         * config/config.guess: update from prep.
82606
82607 2003-05-18  Karl Berry  <karl@gnu.org>
82608
82609         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82610         might actually be set by the user.
82611
82612         * config/depcomp, install-sh, mdate-sh: update from automake.
82613
82614 2003-05-17  Bruno Haible  <bruno@clisp.org>
82615
82616         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82617         invalid expansion for AC_EGREP_CPP.
82618         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82619         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82620         Suggested by Akim Demaille <akim@epita.fr> in
82621         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82622
82623 2003-05-12  Jim Meyering  <jim@meyering.net>
82624
82625         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82626         the space-padded-by-default conversion specifiers, %e, %k, %l.
82627
82628 2003-05-12  Bruno Haible  <bruno@clisp.org>
82629
82630         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82631         the string is longer than 4 KB.
82632
82633 2003-05-11  Karl Berry  <karl@gnu.org>
82634
82635         * config/config.{guess,sub}: update from prep.
82636
82637 2003-05-09  Bruno Haible  <bruno@clisp.org>
82638
82639         * modules/error: Add m4/strerror_r.m4 to file list.
82640
82641 2003-05-03  Bruno Haible  <bruno@clisp.org>
82642
82643         Upgrade to Unicode-4.0.
82644         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82645         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82646         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82647         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82648         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82649         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82650         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82651         Change width of U+E0100..U+E01EF from 1 to 0.
82652
82653 2003-04-25  Jim Meyering  <jim@meyering.net>
82654
82655         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82656         of type size_t, not int.
82657
82658 2003-04-25  Bruno Haible  <bruno@clisp.org>
82659
82660         * lib/copy-file.c: Include <stddef.h>, for size_t.
82661
82662 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82663
82664         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82665         code which expansion is under static control.  Patch imported from
82666         Akim Demaille's patch to Bison; see
82667         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82668
82669 2003-04-14  Bruno Haible  <bruno@clisp.org>
82670
82671         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82672
82673 2003-04-11  Jim Meyering  <jim@meyering.net>
82674
82675         Merge changes from Coreutils.
82676
82677         2003-03-22  Jim Meyering  <jim@meyering.net>
82678
82679         * lib/strftime.c (widen): Cast alloca return value to proper type.
82680
82681         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82682
82683         From GNU libc.
82684         * lib/strftime.c (my_strftime): Handle very large width
82685         specifications for numeric values correctly.  Improve checks for
82686         overflow.
82687
82688         2003-01-19  Jim Meyering  <jim@meyering.net>
82689
82690         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82691         definitions.
82692         (nl_get_alt_digit) [! defined my_strftime]: Define.
82693         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82694         _nl_get_alt_digit and _nl_get_walt_digit.
82695
82696         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82697         libc. These changes have no effect outside of _LIBC.
82698
82699 2003-04-10  Bruno Haible  <bruno@clisp.org>
82700
82701         * modules/findprog: New file.
82702         * MODULES.html.sh (func_all_modules): Add it.
82703
82704 2003-04-10  Bruno Haible  <bruno@clisp.org>
82705
82706         * m4/findprog.m4: New file.
82707         * m4/eaccess.m4: New file.
82708
82709 2003-04-10  Bruno Haible  <bruno@clisp.org>
82710
82711         * lib/findprog.h: New file, from GNU gettext.
82712         * lib/findprog.c: New file, from GNU gettext.
82713
82714 2003-04-05  Jim Meyering  <jim@meyering.net>
82715
82716         Merge changes from Coreutils.
82717
82718         * lib/exclude.h (PARAMS): Remove definition and uses.
82719         * lib/exclude.c: Remove uses of `PARAMS'.
82720
82721         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82722         Add test-cases for DOS filenames. Declare program_name.
82723         (main): Set up program_name.  Patch by Rich Dawe.
82724
82725         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82726         error from mntctl.
82727         Use mntctl's return value to drive the entry-processing loop, since
82728         we can't rely on the value of the vmt_length member in the last
82729         entry.  On some systems doing so could result in exhausting
82730         virtual memory.  Based in part on a patch from Mike Jetzer.
82731
82732 2003-04-04  Bruno Haible  <bruno@clisp.org>
82733
82734         * modules/linebreak: New file.
82735         * MODULES.html.sh (func_all_modules): Add it.
82736
82737 2003-04-04  Bruno Haible  <bruno@clisp.org>
82738
82739         * m4/linebreak.m4: New file.
82740
82741 2003-04-04  Bruno Haible  <bruno@clisp.org>
82742
82743         * lib/linebreak.h: New file, from GNU gettext.
82744         * lib/linebreak.c: New file, from GNU gettext with slight
82745         modifications.
82746         * lib/lbrkprop.h: New file, from GNU gettext.
82747
82748 2003-04-03  Bruno Haible  <bruno@clisp.org>
82749
82750         * modules/utf8-ucs4: New file.
82751         * modules/utf16-ucs4: New file.
82752         * modules/ucs4-utf8: New file.
82753         * modules/ucs4-utf16: New file.
82754         * MODULES.html.sh (func_all_modules): Add them.
82755
82756 2003-04-03  Bruno Haible  <bruno@clisp.org>
82757
82758         * m4/utf-ucs4.m4: New file.
82759         * m4/ucs4-utf.m4: New file.
82760
82761 2003-04-03  Bruno Haible  <bruno@clisp.org>
82762
82763         * lib/utf8-ucs4.h: New file, from GNU gettext.
82764         * lib/utf16-ucs4.h: New file, from GNU gettext.
82765         * lib/ucs4-utf8.h: New file, from GNU gettext.
82766         * lib/ucs4-utf16.h: New file, from GNU gettext.
82767
82768 2003-04-02  Bruno Haible  <bruno@clisp.org>
82769
82770         * modules/binary-io: New file.
82771         * MODULES.html.sh (func_all_modules): Add it.
82772
82773 2003-04-02  Bruno Haible  <bruno@clisp.org>
82774
82775         * lib/binary-io.h: New file, from GNU gettext.
82776
82777 2003-04-01  Bruno Haible  <bruno@clisp.org>
82778
82779         * modules/pathname: New file.
82780         * MODULES.html.sh (func_all_modules): Add it.
82781
82782 2003-04-01  Bruno Haible  <bruno@clisp.org>
82783
82784         * lib/pathname.h: New file, from GNU gettext.
82785         * lib/concatpath.c: New file, from GNU gettext.
82786
82787 2003-03-30  Bruno Haible  <bruno@clisp.org>
82788
82789         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82790
82791 2003-03-30  Bruno Haible  <bruno@clisp.org>
82792
82793         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82794         function chown() doesn't exist.
82795
82796 2003-03-28  Bruno Haible  <bruno@clisp.org>
82797
82798         * modules/copy-file: New file.
82799         * MODULES.html.sh (func_all_modules): Add it.
82800
82801 2003-03-28  Bruno Haible  <bruno@clisp.org>
82802
82803         * m4/copy-file.m4: New file.
82804
82805 2003-03-28  Bruno Haible  <bruno@clisp.org>
82806
82807         * lib/copy-file.h: New file, from GNU gettext.
82808         * lib/copy-file.c: New file, from GNU gettext.
82809
82810 2003-03-18  Jim Meyering  <jim@meyering.net>
82811
82812         * lib/quote.c (quote_n): Fix typo in comment.
82813
82814 2003-03-18  Bruno Haible  <bruno@clisp.org>
82815
82816         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82817         checking.
82818         * m4/onceonly_2_57.m4: Likewise.
82819
82820 2003-03-17  Bruno Haible  <bruno@clisp.org>
82821
82822         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82823         (m4_quote): Remove macro.
82824         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82825
82826 2003-03-14  Jim Meyering  <jim@meyering.net>
82827
82828         Merge changes from Coreutils.
82829         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82830         to be const, in order to avoid warnings.
82831         (obstack_room): Likewise.
82832         (obstack_empty_p): Likewise.
82833
82834 2003-03-14  Bruno Haible  <bruno@clisp.org>
82835
82836         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82837         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82838
82839 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82840
82841         Merge changes from Bison.
82842         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82843         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82844         when compiling Bison 1.875's `bitset bset = obstack_alloc
82845         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82846         * lib/hash.c: Include <stdbool.h> unconditionally.
82847
82848 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82849
82850         * m4/onceonly.m4 (m4_quote): New macro.
82851         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82852         Quote AC_FOREACH variable-expansions properly.
82853
82854 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82855
82856         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82857
82858 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82859
82860         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82861         Reported by Bruce Becker; see:
82862         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82863
82864 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82865             Bruno Haible  <bruno@clisp.org>
82866
82867         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82868         Reported by John Hughes, see
82869         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82870
82871 2003-02-20  Bruno Haible  <bruno@clisp.org>
82872
82873         * MODULES.html.sh (func_all_modules): Add poll.
82874
82875 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82876
82877         * modules/poll: New file.
82878
82879 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82880
82881         * lib/poll_.h: New file.
82882         * lib/poll.c: New file.
82883
82884 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82885
82886         * m4/poll.m4: New file.
82887
82888 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82889
82890         * modules/mathl: New file.
82891
82892 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82893
82894         * lib/mathl.h: New file.
82895         * lib/acosl.c: New file.
82896         * lib/asinl.c: New file.
82897         * lib/atanl.c: New file.
82898         * lib/ceill.c: New file.
82899         * lib/cosl.c: New file.
82900         * lib/expl.c: New file.
82901         * lib/floorl.c: New file.
82902         * lib/frexpl.c: New file.
82903         * lib/ldexpl.c: New file.
82904         * lib/logl.c: New file.
82905         * lib/sincosl.c: New file.
82906         * lib/sinl.c: New file.
82907         * lib/sqrtl.c: New file.
82908         * lib/tanl.c: New file.
82909         * lib/trigl.c: New file.
82910         * lib/trigl.h: New file.
82911
82912 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82913
82914         * m4/mathl.m4: New file.
82915
82916 2003-02-18  Bruno Haible  <bruno@clisp.org>
82917
82918         * MODULES.html.sh (func_all_modules): Add mathl.
82919
82920 2003-02-17  Bruno Haible  <bruno@clisp.org>
82921
82922         * modules/mkdtemp: New module.
82923         * MODULES.html.sh (func_all_modules): Add it.
82924
82925 2003-02-17  Bruno Haible  <bruno@clisp.org>
82926
82927         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82928
82929 2003-02-17  Bruno Haible  <bruno@clisp.org>
82930
82931         * lib/mkdtemp.h: New file, from GNU gettext.
82932         * lib/mkdtemp.c: New file, from GNU gettext.
82933
82934 2003-02-02  Jim Meyering  <jim@meyering.net>
82935
82936         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82937         e.g. glibc-2.2.93.
82938
82939 2003-01-31  Bruno Haible  <bruno@clisp.org>
82940
82941         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82942         'rpl_rename'.
82943         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82944         'rpl_strnlen'.
82945         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82946         'rpl_strtod'.
82947         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82948         'rpl_utime'.
82949
82950 2003-01-31  Bruno Haible  <bruno@clisp.org>
82951
82952         * lib/rename.c: #undef rename before defining rpl_rename.
82953         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82954
82955 2003-01-30  Bruno Haible  <bruno@clisp.org>
82956
82957         * modules/vasnprintf, modules/vasprintf: New modules.
82958         * MODULES.html.sh (func_all_modules): Add them.
82959
82960 2003-01-30  Bruno Haible  <bruno@clisp.org>
82961
82962         * m4/signed.m4: New file, from GNU gettext.
82963         * m4/longdouble.m4: New file, from GNU gettext.
82964         * m4/wchar_t.m4: New file, from GNU gettext.
82965         * m4/wint_t.m4: New file, from GNU gettext.
82966         * m4/vasnprintf.m4: New file.
82967         * m4/vasprintf.m4: New file.
82968
82969 2003-01-30  Bruno Haible  <bruno@clisp.org>
82970
82971         * lib/printf-args.h: New file, from GNU gettext.
82972         * lib/printf-args.c: New file, from GNU gettext.
82973         * lib/printf-parse.h: New file, from GNU gettext.
82974         * lib/printf-parse.c: New file, from GNU gettext.
82975         * lib/vasnprintf.h: New file, from GNU gettext.
82976         * lib/vasnprintf.c: New file, from GNU gettext.
82977         * lib/asnprintf.c: New file, from GNU gettext.
82978         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82979         * lib/vasprintf.c: New file, from GNU gettext.
82980         * lib/asprintf.c: New file, from GNU gettext.
82981
82982 2003-01-29  Bruno Haible  <bruno@clisp.org>
82983
82984         * modules/stpncpy: New module.
82985         * MODULES.html.sh (func_all_modules): Add it.
82986
82987 2003-01-29  Bruno Haible  <bruno@clisp.org>
82988
82989         * m4/stpncpy.m4: New file.
82990
82991 2003-01-29  Bruno Haible  <bruno@clisp.org>
82992
82993         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82994         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82995
82996 2003-01-28  Bruno Haible  <bruno@clisp.org>
82997
82998         * modules/c-ctype: New module.
82999         * MODULES.html.sh (func_all_modules): Add it.
83000
83001 2003-01-28  Bruno Haible  <bruno@clisp.org>
83002
83003         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83004         Paul Eggert.
83005         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83006         Paul Eggert.
83007
83008 2003-01-27  Bruno Haible  <bruno@clisp.org>
83009
83010         * modules/xsetenv: New module.
83011         * MODULES.html.sh (func_all_modules): Add it.
83012
83013 2003-01-27  Bruno Haible  <bruno@clisp.org>
83014
83015         * lib/xsetenv.h: New file, from GNU gettext.
83016         * lib/xsetenv.c: New file, from GNU gettext.
83017
83018 2003-01-23  Jim Meyering  <jim@meyering.net>
83019
83020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83021         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83022
83023 2003-01-23  Bruno Haible  <bruno@clisp.org>
83024
83025         * modules/minmax: New module.
83026         * MODULES.html.sh (func_all_modules): Add it.
83027
83028 2003-01-23  Bruno Haible  <bruno@clisp.org>
83029
83030         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83031         Eggert.
83032
83033 2003-01-22  Bruno Haible  <bruno@clisp.org>
83034
83035         * modules/exit: New module.
83036         * MODULES.html.sh (func_all_modules): Add it.
83037
83038 2003-01-22  Bruno Haible  <bruno@clisp.org>
83039
83040         * lib/exit.h: New file, from GNU gettext.
83041
83042 2003-01-19  Bruno Haible  <bruno@clisp.org>
83043
83044         * gnulib-tool: Recognize option --extract-maintainer.
83045         (func_get_maintainer): New function.
83046         * modules/*: Add Maintainer entry.
83047
83048 2003-01-16  Jim Meyering  <jim@meyering.net>
83049
83050         * m4/regex.m4: The `regex' struct is both input and output.
83051         Initialize it before each use.  Patch by Tim Waugh.
83052
83053 2003-01-16  Bruno Haible  <bruno@clisp.org>
83054
83055         * MODULES.html.sh: Add a table of contents. Add the module name as
83056         leftmost column. Add hyperlinks.
83057
83058 2003-01-15  Bruno Haible  <bruno@clisp.org>
83059
83060         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83061
83062 2003-01-15  Bruno Haible  <bruno@clisp.org>
83063
83064         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83065         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83066         suffix.
83067
83068 2003-01-15  Bruno Haible  <bruno@clisp.org>
83069
83070         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83071
83072 2003-01-15  Bruno Haible  <bruno@clisp.org>
83073
83074         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83075         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83076
83077 2003-01-14  Jim Meyering  <jim@meyering.net>
83078
83079         * lib/same.c (same_name): Tweak a comment.
83080
83081 2003-01-14  Bruno Haible  <bruno@clisp.org>
83082
83083         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83084         when a string comparison is sufficient.
83085
83086 2003-01-14  Bruno Haible  <bruno@clisp.org>
83087
83088         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83089         'unsigned int'.
83090
83091 2003-01-14  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/hash-pjw.c: Add comment about low quality of this function.
83094
83095 2003-01-13  Bruno Haible  <bruno@clisp.org>
83096
83097         * modules/stpcpy: Distribute lib/stpcpy.h.
83098         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83099
83100 2003-01-13  Bruno Haible  <bruno@clisp.org>
83101
83102         * modules/*: Add a description.
83103         * modules/strpbrk: Fix Makefile.am snippet.
83104         * modules/strtoimax: Fix dependencies.
83105         * modules/strtoumax: Likewise.
83106
83107 2003-01-13  Bruno Haible  <bruno@clisp.org>
83108
83109         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83110         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83111         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83112
83113 2003-01-13  Bruno Haible  <bruno@clisp.org>
83114
83115         * gnulib-tool (func_create_testdir): Store config/* files in the main
83116         directory.
83117         * config.rpath: Move to ...
83118         * config/config.rpath: ... here.
83119         * modules/gettext: Contains config/config.rpath, not config.rpath.
83120         * modules/iconv: Likewise.
83121
83122 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83123
83124         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83125         to avoid collisions with libcurses and libreadline.
83126
83127         * m4/getstr.m4: Remove.
83128         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83129
83130 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83131
83132         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83133         to avoid collisions with libcurses and libreadline.
83134
83135         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83136         * lib/getstr.h, getstr.c: Remove.
83137         * lib/getline.c: Include "getline.h", to check interface.
83138         Move body of old getstr.c here: this defines MIN_CHUNK and
83139         declares getdelim2, which is renamed from getstr.
83140         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83141
83142         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83143         All uses changed.
83144         * lib/linebuffer.h: Likewise.
83145         (readline): Remove backward-compatibility macro.
83146
83147 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83148
83149         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83150         to avoid collisions with libcurses and libreadline.
83151         * getstr: Remove.
83152         * MODULES.html.sh: Remove getstr.
83153         * modules/getline: Depend on unlocked-io, not getstr.
83154
83155 2003-01-12  Jim Meyering  <jim@meyering.net>
83156
83157         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83158
83159 2003-01-10  Bruno Haible  <bruno@clisp.org>
83160
83161         * modules/alloca: Change Makefile.am requirements. Simplify Include
83162         requirements. Add lib/alloca_.h to file list.
83163
83164 2003-01-10  Bruno Haible  <bruno@clisp.org>
83165
83166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83167
83168 2003-01-10  Bruno Haible  <bruno@clisp.org>
83169
83170         * lib/alloca_.h: New file.
83171         * lib/getdate.y: Unconditionally include alloca.h.
83172         * lib/makepath.c: Likewise.
83173         * lib/setenv.c: Likewise.
83174         * lib/userspec.c: Likewise.
83175
83176 2003-01-09  Karl Berry  <karl@gnu.org>
83177
83178         * MODULES.html.sh: include `dirname $0` in PATH, to find
83179         gnulib-tool.
83180
83181 2003-01-09  Bruno Haible  <bruno@clisp.org>
83182
83183         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83184         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83185
83186 2003-01-09  Bruno Haible  <bruno@clisp.org>
83187
83188         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83189
83190 2003-01-09  Bruno Haible  <bruno@clisp.org>
83191
83192         * lib/stdbool.h.in: New file.
83193
83194 2003-01-09  Bruno Haible  <bruno@clisp.org>
83195
83196         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83197         * MODULES.html.sh: Likewise.
83198
83199 2003-01-08  Jim Meyering  <jim@meyering.net>
83200
83201         * lib/full-write.c: Undefine and define-away `const' after inclusion
83202         of errno.h, not before.  Suggestion from Bruno Haible.
83203
83204 2003-01-08  Bruno Haible  <bruno@clisp.org>
83205
83206         * modules/full-read: Depend on full-write.
83207
83208 2003-01-08  Bruno Haible  <bruno@clisp.org>
83209
83210         * lib/safe-read.c: Include specification header first, to ensure its
83211         selfcontainedness.
83212         * lib/full-write.c: Likewise.
83213
83214 2003-01-07  Jim Meyering  <jim@meyering.net>
83215
83216         * lib/full-write.c: Rework so that it may serve to define full_read,
83217         too.
83218         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83219
83220 2003-01-07  Bruno Haible  <bruno@clisp.org>
83221
83222         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83223         <inttypes.h>.
83224         * lib/xstrtol.h: Likewise.
83225         * lib/xstrtoimax.c: Likewise.
83226         * lib/xstrtoumax.c: Likewise.
83227         * lib/human.h: Likewise.
83228
83229         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83230         on systems that have <inttypes.h> but not <stdint.h>.
83231
83232 2003-01-07  Bruno Haible  <bruno@clisp.org>
83233
83234         * MODULES.html.sh: Add copyright notice.
83235         (missed_files): Omit CVS directory entries.
83236         (func_module): Make it work with sed-3.02.
83237         * MODULES.txt: Remove file.
83238
83239 2003-01-06  Jim Meyering  <jim@meyering.net>
83240
83241         * lib/version-etc.c: Update year in translatable copyright string.
83242
83243 2003-01-03  Karl Berry  <karl@gnu.org>
83244
83245         * config/config.{guess,sub}: update from prep.
83246
83247 2003-01-02  Karl Berry  <karl@gnu.org>
83248
83249         * doc/COPYING.DOC: belatedly updated to 1.2.
83250
83251 2003-01-01  Karl Berry  <karl@gnu.org>
83252
83253         * gnulib-tool (func_verify_module): report module name $module in
83254         error message, not $1.
83255         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83256         be created, only if it doesn't exist.
83257         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83258
83259 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83260
83261         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83262
83263 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83264
83265         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83266         memcmp if strcoll doesn't work.
83267
83268 2002-12-31  Bruno Haible  <bruno@clisp.org>
83269
83270         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83271         nonempty.
83272
83273 2002-12-31  Bruno Haible  <bruno@clisp.org>
83274
83275         * lib/memcoll.c (STRCOLL): New macro.
83276         (memcoll): Use it.
83277
83278 2002-12-31  Bruno Haible  <bruno@clisp.org>
83279
83280         * lib/localcharset.h: New file.
83281         * lib/localcharset.c: Include it.
83282         * lib/unicodeio.c: Likewise.
83283
83284 2002-12-31  Bruno Haible  <bruno@clisp.org>
83285
83286         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83287         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83288
83289 2002-12-31  Bruno Haible  <bruno@clisp.org>
83290
83291         * lib/getline.h: Include <stddef.h>, for size_t.
83292
83293         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83294         * lib/unicodeio.c: Don't include <stddef.h>.
83295
83296 2002-12-31  Bruno Haible  <bruno@clisp.org>
83297
83298         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83299         HAVE_TM_ZONE.
83300
83301 2002-12-24  Karl Berry  <karl@gnu.org>
83302
83303         * config/config.guess: update from prep.
83304
83305 2002-12-24  Bruno Haible  <bruno@clisp.org>
83306
83307         General infrasructure.
83308         * m4/README: Rewritten.
83309         * m4/onceonly.m4: New file.
83310         * m4/onceonly_2_57.m4: New file.
83311
83312         Module atexit.
83313         * m4/atexit.m4: New file.
83314
83315         Module strtod.
83316         * m4/strtod.m4: New file.
83317
83318         Module strtol.
83319         * m4/strtol.m4: New file.
83320
83321         Module strtoul.
83322         * m4/strtoul.m4: New file.
83323
83324         Module memchr.
83325         * m4/memchr.m4: New file.
83326
83327         Module memcmp.
83328         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83329         (jm_FUNC_MEMCMP): Invoke it.
83330
83331         Module memcpy.
83332         * m4/memcpy.m4: New file.
83333
83334         Module memmove.
83335         * m4/memmove.m4: New file.
83336
83337         Module memset.
83338         * m4/memset.m4: New file.
83339
83340         Module strcspn.
83341         * m4/strcspn.m4: New file.
83342
83343         Module strpbrk.
83344         * m4/strpbrk.m4: New file.
83345
83346         Module strstr.
83347         * m4/strstr.m4: New file.
83348
83349         Module strerror.
83350         * m4/strerror.m4: New file.
83351
83352         Module mktime.
83353         * m4/mktime.m4: Renamed from jm-mktime.m4.
83354         (gl_PREREQ_MKTIME): New macro.
83355         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83356
83357         Module malloc.
83358         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83359         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83360         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83361
83362         Module realloc.
83363         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83364         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83365         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83366
83367         Module strftime.
83368         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83369         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83370         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83371         gl_TM_GMTOFF.
83372         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83373
83374         Module xalloc.
83375         * m4/xalloc.m4: New file.
83376
83377         Module alloca.
83378         * m4/alloca.m4: New file.
83379
83380         Module putenv.
83381         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83382         (jm_FUNC_PUTENV): Invoke it.
83383
83384         Module setenv.
83385         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83386         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83387         when invoked twice.
83388         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83389         gt_FUNC_SETENV.
83390
83391         Module memrchr.
83392         * m4/memrchr.m4: New file.
83393
83394         Module stpcpy.
83395         * m4/stpcpy.m4: New file.
83396
83397         Module strcase.
83398         * m4/strcase.m4: New file.
83399
83400         Module strdup.
83401         * m4/strdup.m4: New file.
83402
83403         Module strnlen.
83404         * m4/strnlen.m4: New file.
83405
83406         Module strndup.
83407         * m4/strndup.m4: New file.
83408
83409         Module xstrtod.
83410         * m4/xstrtod.m4: New file.
83411
83412         Module xstrtol.
83413         * m4/xstrtol.m4: New file.
83414
83415         Module getdate.
83416         * m4/getdate.m4: New file.
83417
83418         Module unlocked-io.
83419         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83420         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83421         * m4/jm-glibc-io.m4n: Remove file.
83422
83423         Module long-options.
83424         * m4/long-options.m4: New file.
83425
83426         Module md5.
83427         * m4/md5.m4: New file.
83428
83429         Module sha.
83430         * m4/sha.m4: New file.
83431
83432         Module getstr.
83433         * m4/getstr.m4: New file.
83434
83435         Module getline.
83436         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83437         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83438         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83439         simply getline. Infoke gl_PREREQ_GETLINE.
83440
83441         Module obstack.
83442         * m4/obstack.m4: New file.
83443
83444         Module hash.
83445         * m4/hash.m4: New file.
83446
83447         Module readtokens.
83448         * m4/readtokens.m4: New file.
83449
83450         Module strverscmp.
83451         * m4/strverscmp.m4: New file.
83452
83453         Module stdbool.
83454         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83455         OSF/1.
83456
83457         Module strtoll.
83458         * m4/strtoll.m4: New file.
83459
83460         Module strtoull.
83461         * m4/strtoull.m4: New file.
83462
83463         Module strtoimax.
83464         * m4/strtoimax.m4: New file.
83465
83466         Module strtoumax.
83467         * m4/strtoumax.m4: New file.
83468
83469         Module xstrtoimax.
83470         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83471         jm_AC_PREREQ_XSTRTOIMAX.
83472         Moved the strtol prerequisites to strtol.m4.
83473         Moved the strtoll prerequisites to strtoll.m4.
83474         Moved the strtoimax prerequisites to strtoimax.m4.
83475
83476         Module xstrtoumax.
83477         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83478         jm_AC_PREREQ_XSTRTOUMAX.
83479         Moved the strtoul prerequisites to strtoul.m4.
83480         Moved the strtoull prerequisites to strtoull.m4.
83481         Moved the strtoumax prerequisites to strtoumax.m4.
83482
83483         Module chown.
83484         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83485         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83486
83487         Module dup2.
83488         * m4/dup2.m4: New file.
83489
83490         Module ftruncate.
83491         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83492         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83493
83494         Module getgroups.
83495         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83496         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83497
83498         Module gettimeofday.
83499         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83500         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83501         gl_PREREQ_GETTIMEOFDAY.
83502
83503         Module mkdir.
83504         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83505         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83506
83507         Module mkstemp.
83508         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83509         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83510         jm_AC_TYPE_UINTMAX_T.
83511         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83512
83513         Module stat.
83514         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83515         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83516
83517         Module lstat.
83518         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83519         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83520
83521         Module timespec.
83522         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83523         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83524         * m4/st_mtim.m4: Indentation.
83525
83526         Module nanosleep.
83527         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83528         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83529         gl_PREREQ_NANOSLEEP.
83530
83531         Module regex.
83532         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83533         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83534         (gl_REGEX): New macro.
83535
83536         Module rename.
83537         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83538         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83539
83540         Module rmdir.
83541         * m4/rmdir.m4: New file.
83542
83543         Module utime.
83544         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83545         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83546         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83547
83548         Module dirname.
83549         * m4/dirname.m4: New file.
83550
83551         Module getopt.
83552         * m4/getopt.m4: New file.
83553
83554         Module unistd-safer.
83555         * m4/unistd-safer.m4: New file.
83556
83557         Module fnmatch.
83558         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83559         declaration.
83560         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83561         (gl_FUNC_FNMATCH_POSIX): New macro.
83562         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83563         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83564         simply fnmatch.
83565
83566         Module exclude.
83567         * m4/exclude.m4: New file.
83568
83569         Module human.
83570         * m4/human.m4: New file.
83571
83572         Module acl.
83573         * m4/acl.m4: Nop.
83574
83575         Module backupfile.
83576         * m4/backupfile.m4: New file.
83577         * m4/d-ino.m4: Indentation.
83578
83579         Module fsusage.
83580         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83581         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83582         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83583
83584         Module dirfd.
83585         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83586         requirements.
83587
83588         Module euidaccess.
83589         * m4/euidaccess.m4: New file.
83590
83591         Module file-type.
83592         * m4/file-type.m4: New file.
83593
83594         Module fileblocks.
83595         * m4/fileblocks.m4: New file.
83596
83597         Module filemode.
83598         * m4/filemode.m4: New file.
83599
83600         Module isdir.
83601         * m4/isdir.m4: New file.
83602
83603         Module lchown.
83604         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83605         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83606
83607         Module makepath.
83608         * m4/makepath.m4: New file.
83609
83610         Module modechange.
83611         * m4/modechange.m4: New file.
83612
83613         Module mountlist.
83614         * m4/mountlist.m4: New file.
83615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83616         Indentation.
83617
83618         Module path-concat.
83619         * m4/path-concat.m4: New file.
83620
83621         Module pathmax.
83622         * m4/pathmax.m4: New file.
83623
83624         Module same.
83625         * m4/same.m4: New file.
83626
83627         Module save-cwd.
83628         * m4/save-cwd.m4: New file.
83629
83630         Module savedir.
83631         * m4/savedir.m4: New file.
83632
83633         Module xgetcwd.
83634         * m4/xgetcwd.m4: New file.
83635         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83636
83637         Module xreadlink.
83638         * m4/xreadlink.m4: New file.
83639
83640         Module safe-read.
83641         * m4/safe-read.m4: New file.
83642
83643         Module safe-write.
83644         * m4/safe-write.m4: New file.
83645
83646         Module closeout.
83647         * m4/closeout.m4: New file.
83648
83649         Module stdio-safer.
83650         * m4/stdio-safer.m4: New file.
83651
83652         Module getpass.
83653         * m4/getpass.m4: New file.
83654
83655         Module getugroups.
83656         * m4/getugroups.m4: New file.
83657
83658         Module group-member.
83659         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83660         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83661
83662         Module idcache.
83663         * m4/idcache.m4: New file.
83664
83665         Module userspec.
83666         * m4/userspec.m4: New file.
83667
83668         Module gettime.
83669         * m4/clock_time.m4: New file.
83670         * m4/gettime.m4: New file.
83671
83672         Module settime.
83673         * m4/settime.m4: New file.
83674
83675         Module posixtm.
83676         * m4/posixtm.m4: New file.
83677
83678         Module gethostname.
83679         * m4/gethostname.m4: New file.
83680
83681         Module canon-host.
83682         * m4/canon-host.m4: New file.
83683
83684         Module gettext.
83685         * m4/codeset.m4: New file, from gettext-0.11.5.
83686         * m4/gettext.m4: New file, from gettext-0.11.5.
83687         * m4/glibc21.m4: New file, from gettext-0.11.5.
83688         * m4/iconv.m4: New file, from gettext-0.11.5.
83689         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83690         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83691         * m4/inttypes.m4: New file, from gettext-0.11.5.
83692         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83693         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83694         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83695         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83696         * m4/lib-link.m4: New file, from gettext-0.11.5.
83697         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83698         * m4/progtest.m4: New file, from gettext-0.11.5.
83699         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83700         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83701         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83702
83703         Module localcharset.
83704         * m4/localcharset.m4: New file.
83705
83706         Module hard-locale.
83707         * m4/hard-locale.m4: New file.
83708
83709         Module mbswidth.
83710         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83711         onceonly macros.
83712         * m4/mbrtowc.m4: Add comment.
83713
83714         Module memcasecmp.
83715         * m4/memcasecmp.m4: New file.
83716
83717         Module memcoll.
83718         * m4/memcoll.m4: New file.
83719
83720         Module unicodeio.
83721         * m4/unicodeio.m4: New file.
83722
83723         Module rpmatch.
83724         * m4/rpmatch.m4: New file.
83725
83726         Module yesno.
83727         * m4/yesno.m4: New file.
83728
83729         Module exitfail.
83730         * m4/exitfail.m4: New file.
83731
83732         Module c-stack.
83733         * m4/c-stack.m4 (gl_C_STACK): New macro.
83734         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83735
83736         Module error.
83737         * m4/error.m4 (gl_ERROR): New macro.
83738         (jm_PREREQ_ERROR): Use onceonly macros.
83739
83740         Module fatal.
83741         * m4/fatal.m4: New file.
83742
83743         Module getloadavg.
83744         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83745         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83746
83747         Module getpagesize.
83748         * m4/getpagesize.m4: New file.
83749
83750         Module getusershell.
83751         * m4/getusershell.m4: New file.
83752
83753         Module physmem.
83754         * m4/physmem.m4: New file.
83755
83756         Module posixver.
83757         * m4/posixver.m4: New file.
83758
83759         Module quotearg.
83760         * m4/quotearg.m4: New file.
83761
83762         Module quote.
83763         * m4/quote.m4: New file.
83764
83765         Module readutmp.
83766         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83767
83768         Module sig2str.
83769         * m4/sig2str.m4: New file.
83770
83771         Other.
83772         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83773         ulonglong.m4.
83774         * m4/intmax_t.m4: New file.
83775         * m4/d-type.m4: Indentation.
83776         * m4/jm-macros.m4: Update.
83777         * m4/prereq.m4 (jm_PREREQ): Update.
83778         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83779         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83780         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83781         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83782         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83783         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83784         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83785         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83786         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83787         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83788         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83789         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83790         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83791         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83792         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83793         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83794         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83795         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83796         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83797
83798 2002-12-24  Bruno Haible  <bruno@clisp.org>
83799
83800         * MODULES.txt: Update according to m4/ changes.
83801
83802         Module gettext.
83803         * config.rpath: New file, from gettext-0.11.5.
83804
83805         * modules/*: New module descriptions.
83806         * gnulib-tool: New file.
83807         * MODULES.html.sh: New file.
83808
83809 2002-12-21  Karl Berry  <karl@gnu.org>
83810
83811         * doc/fdl.texi: update to version 1.2.
83812
83813 2002-12-19  Karl Berry  <karl@gnu.org>
83814
83815         * config/config.guess: update from prep.
83816
83817 2002-12-18  Bruno Haible  <bruno@clisp.org>
83818
83819         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83820         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83821
83822 2002-12-17  Bruno Haible  <bruno@clisp.org>
83823
83824         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83825         stdlib.h, string.h.
83826
83827 2002-12-17  Bruno Haible  <bruno@clisp.org>
83828
83829         * lib/canon-host.c (strdup): Remove unused declaration.
83830
83831         * lib/fsusage.c: Include full_read.h.
83832         (get_fs_usage): Use full_read instead of safe_read.
83833
83834         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83835
83836 2002-12-12  Karl Berry  <karl@gnu.org>
83837
83838         * config/config.guess: update from prep.
83839
83840 2002-12-11  Bruno Haible  <bruno@clisp.org>
83841
83842         * m4/setenv.m4: New file, from gettext-0.11.5.
83843
83844 2002-12-11  Bruno Haible  <bruno@clisp.org>
83845
83846         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83847         not unsetenv().
83848         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83849         modifications:
83850
83851         2002-12-11  Bruno Haible  <bruno@clisp.org>
83852
83853                 * setenv.c (alloca): Fall back to malloc.
83854                 (freea): New macro.
83855                 (setenv): Use freea() to free memory allocated with alloca().
83856
83857         2002-11-13  Bruno Haible  <bruno@clisp.org>
83858
83859                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83860                 function declarations.
83861                 * unsetenv.c (unsetenv): Likewise.
83862
83863         2002-03-04  Bruno Haible  <bruno@clisp.org>
83864
83865                 Portability to AIX 4.3.3.
83866                 * unsetenv.c: New file, extracted from setenv.c.
83867                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83868
83869         2001-12-20  Bruno Haible  <bruno@clisp.org>
83870
83871                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83872                 use malloc instead. For SunOS 4.
83873
83874         2001-12-11  Bruno Haible  <bruno@clisp.org>
83875
83876                 * setenv.c: Declare alloca.
83877                 (compar_fn_t): New typedef.
83878                 (KNOWN_VALUE, STORE_VALUE): Use it.
83879
83880         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83881         setenv.h.
83882
83883 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83884
83885         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83886         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83887         Choose values that are less likely to collide with system fnmatch
83888         options.
83889         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83890         defined (e.g., a pure POSIX system).
83891         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83892         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83893
83894 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83895
83896         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83897         a pain in practice to deal with generated m4 files.  This change
83898         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83899
83900         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83901         and jm-glibc-io.m4, as they are no longer a special case.
83902         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83903         kludge and the auto-generation stuff.  Check only whether the
83904         functions are declared, not whether they exist, since older hosts
83905         that don't declare the functions can't use the optimization anyway.
83906
83907 2002-12-06  Jim Meyering  <jim@meyering.net>
83908
83909         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83910
83911         Merge in changes from libc's misc/error.c, in preparation
83912         for the merge of gnulib's changes back into libc.
83913
83914         * lib/error.c (_): Define only if not already defined.
83915         Move definition to follow all #include directives.
83916         Include unlocked-io.h only if !_LIBC.
83917         [_LIBC]: Include <libio/libioP.h>.
83918         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83919         (fflush): Tweak definition to use INTUSE.
83920         (putc): Define.
83921
83922 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83923
83924         * lib/alloca.c [defined emacs]: Include "lisp.h".
83925         (xalloc_die) [defined emacs]: New macro.
83926         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83927         [! defined emacs]: Include <xalloc.h>.
83928         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83929         (pointer): Typedef to POINTER_TYPE *.
83930         (malloc): Remove decl; we now always use xmalloc.
83931         (alloca): Use old-style definition, since Emacs needs this.
83932         Check for arithmetic overflow when computing combined size.
83933
83934 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83935
83936         Do not generate unlocked-io.h automatically, since it's easier to
83937         maintain it by hand.
83938
83939         * lib/unlocked-io.h: New file, from GNU diffutils,
83940         but with proper copyright notice and attribution.
83941         * lib/gen-uio: Remove.
83942         * lib/Makefile.am: Add copyright notice.
83943         (libfetish_a_SOURCES): Add unlocked-io.h.
83944         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83945         (DISTCLEANFILES, io_functions): Remove macros.
83946         (EXTRA_DIST): Remove gen_uio.
83947         (unlocked-io.h): Remove rule.
83948
83949 2002-12-04  Jim Meyering  <jim@meyering.net>
83950
83951         Reflect the fact that stat.c and lstat.c are no longer generated.
83952         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83953         (DISTCLEANFILES): Likewise.
83954         (EXTRA_DIST): Likewise.
83955         (all_local): Don't depend on stat.c or lstat.c.
83956         (stat.c, lstat.c): Remove rules.
83957         (EXTRA_DIST): Remove xstat.in.
83958
83959         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83960         * lib/stat.c: New file.  Contents mostly from xstat.in.
83961         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83962         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83963
83964         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83965         too.
83966         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83967
83968 2002-12-03  Jim Meyering  <jim@meyering.net>
83969
83970         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83971         but not semantics, to minimize the differences between these two files.
83972         (safe_read): Change comment to mention SAFE_READ_ERROR.
83973
83974         * lib/safe-read.c (IS_EINTR): Define.
83975         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83976
83977 2002-12-02  Jim Meyering  <jim@meyering.net>
83978
83979         * lib/safe-read.c (EINTR): Define.
83980         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83981         (INT_MAX): Provide fallback.
83982         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83983
83984         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83985
83986 2002-12-02  Bruno Haible  <bruno@clisp.org>
83987
83988         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83989         Define, taken from safe-read.c.
83990         (INT_MAX): Provide fallback.
83991         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83992         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83993
83994         * lib/safe-read.c (EINTR): Remove definition.
83995         (safe_read): Don't use EINTR if it is absent.
83996
83997 2002-12-01  Jim Meyering  <jim@meyering.net>
83998
83999         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84000         zero.
84001         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84002
84003 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84004
84005         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84006         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84007         with `if (! (value < limit)) abort ();', for readability.
84008
84009 2002-11-26  Karl Berry  <karl@gnu.org>
84010
84011         * lib/strdup.c: copy from libc again, with jim's ok.
84012         * lib/.cppi-disable: re-add strdup.c
84013
84014 2002-11-25  Karl Berry  <karl@gnu.org>
84015
84016         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84017         instead of "strtol.c".
84018
84019 2002-11-25  Karl Berry  <karl@gnu.org>
84020
84021         * config/install-sh: update from automake for variable quoting, $0 in
84022         error msgs, etc.
84023
84024         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84025         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84026         entry.
84027
84028 2002-11-25  Jim Meyering  <jim@meyering.net>
84029
84030         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84031
84032 2002-11-24  Karl Berry  <karl@gnu.org>
84033
84034         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84035         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84036
84037 2002-11-24  Jim Meyering  <jim@meyering.net>
84038
84039         Update from coreutils:
84040
84041         * lib/mktime.c: Merge in changes from libc.
84042
84043         Avoid a link-time failure on some Linux systems.
84044         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84045         (otherwise).
84046         (__mon_yday): Declare with the STATIC attribute.
84047         (__mktime_internal): Likewise.
84048         Based on a report from Greg Schafer.
84049
84050 2002-11-23  Jim Meyering  <jim@meyering.net>
84051
84052         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84053         Use `unsigned', not `int', as type of index.
84054
84055         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84056
84057         * lib/fsusage.c: Remove unneeded parentheses around operands of
84058         `defined'.
84059
84060 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84061
84062         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84063         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84064         so that we can be included first.
84065         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84066         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84067         No need to include stddef.h or sys/types.h any more.
84068         Surround local include files with "", not "<>".
84069         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84070         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84071         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84072         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84073         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84074         (ISPRINT): Remove; no longer needed now that we assume C89.
84075
84076         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84077         Preserve errno.
84078
84079         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84080         quotearg_char): Use SIZE_MAX rather than
84081         (size_t) -1 when we are talking about "infinity".
84082
84083         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84084
84085 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84086
84087         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84088         hint that one should use `if (! x) abort ();' rather than `assert
84089         (x);', and anyway it's one less thing to worry about configuring.
84090         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84091         hash_rehash, hash_insert): Use abort rather than assert.
84092
84093 2002-11-22  Bruno Haible  <bruno@clisp.org>
84094
84095         * lib/safe-read.h: Assume C89. Add comments.
84096         (safe_read): Change return type to size_t.
84097         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84098         byte counts > SSIZE_MAX correctly.
84099         * lib/safe-write.h: New file.
84100         * lib/safe-write.c: New file.
84101         * lib/full-read.h: New file.
84102         * lib/full-read.c: New file.
84103         * lib/full-write.h: Assume C89. Add comments.
84104         * lib/full-write.c: Include safe-write.h.
84105         (full_write): Rewritten to use safe_write.
84106         Suggested by Jim Meyering and Paul Eggert.
84107
84108 2002-11-21  Jim Meyering  <jim@meyering.net>
84109
84110         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84111
84112         Merge in changes from the coreutils.
84113
84114         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84115         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84116         <stdint.h>.
84117         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84118         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84119         int.  Work more efficiently if X is the same width as uintmax_t.
84120         Do not compare X to -1, to avoid bogus compiler warning.
84121         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84122         Don't assume that f_frsize and f_bsize are the same type.
84123
84124         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84125         warning on FreeBSD.
84126
84127         * lib/makepath.c (make_path): Restore umask *before* creating the final
84128         component.
84129         (make_path): Minor reformatting.
84130
84131         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84132         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84133         HAVE_MALLOC/HAVE_REALLOC.
84134
84135         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84136         dummy ones.  At least on GNU/Linux systems, `auto' means something
84137         else.
84138         From Michael Stone.
84139
84140 2002-11-21  Bruno Haible  <bruno@clisp.org>
84141
84142         Remove case insensitive option matching.
84143         * lib/argmatch.h (argcasematch): Remove declaration.
84144         (ARGCASEMATCH): Remove macro.
84145         (__xargmatch_internal): Remove case_sensitive argument.
84146         (XARGMATCH): Update.
84147         (XARGCASEMATCH): Remove macro.
84148         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84149         case_sensitive argument.
84150         (argcasematch): Remove function.
84151         (__xargmatch_internal): Remove case_sensitive argument.
84152         (main): Use XARGMATCH instead of XARGCASEMATCH.
84153
84154         * lib/xmalloc.c: Change compile-time error message. Add comment about
84155         required autoconf version.
84156
84157 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84158
84159         Merge argmatch cleanups from Bison.  Assume C89.
84160
84161         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84162         Include stdlib.h, for EXIT_FAILURE.
84163         Always include <string.h>, since we assume C89.
84164         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84165         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84166         Include <stddef.h> instead, since it's all we need for size_t.
84167         (PARAMS): Remove.  All uses removed.
84168         (ARRAY_CARDINALITY): Do not bother to #undef.
84169         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84170         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84171         Remove unnecessary parentheses.
84172         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84173         Insert necessary parentheses.
84174         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84175         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84176
84177 2002-11-19  Bruno Haible  <bruno@clisp.org>
84178
84179         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84180         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84181
84182         * lib/mbswidth.h (PARAMS): Remove macro.
84183         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84184         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84185
84186         * lib/gcd.h (PARAMS): Remove macro.
84187         (gcd): Use ANSI C function declarations.
84188         * lib/gcd.c (gcd): Likewise.
84189
84190 2002-11-15  Bruno Haible  <bruno@clisp.org>
84191
84192         * lib/strcspn.c: Include <stddef.h>.
84193         (strcspn): Use ANSI C function declaration. Change return type to
84194         size_t. Use NULL.
84195         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84196         (strpbrk): Use NULL.
84197         * lib/strpbrk.h (PARAMS): Remove macro.
84198         (strpbrk): Use ANSI C function declaration.
84199         * lib/strstr.c: Don't include <sys/types.h>.
84200         * lib/strstr.h (PARAMS): Remove macro.
84201         (strstr): Use ANSI C function declarations.
84202
84203 2002-11-14  Karl Berry  <karl@gnu.org>
84204
84205         * config/mkinstalldirs: `do' on separate line, instead of
84206         `for var; do'.
84207
84208 2002-11-06  Bruno Haible  <bruno@clisp.org>
84209
84210         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84211         * lib/gcd.c (gcd): Likewise.
84212
84213 2002-11-05  Bruno Haible  <bruno@clisp.org>
84214
84215         * lib/gcd.h: New file, from gettext-0.11.5.
84216         * lib/gcd.c: New file, from gettext-0.11.5.
84217
84218 2002-11-05  Bruno Haible  <bruno@clisp.org>
84219
84220         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84221         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84222         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84223         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84224
84225         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84226         <libintl.h>.
84227         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84228         <libintl.h>.
84229
84230         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84231         * lib/human.c: Include gettext.h instead of <libintl.h>.
84232         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84233         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84234         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84235         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84236         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84237         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84238         (textdomain): Remove definition.
84239         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84240
84241         * lib/long-options.c: Remove include of <libintl.h> and definition of
84242         _.
84243         * lib/same.c: Remove include of <libintl.h> and definition of _.
84244
84245 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84246
84247         * lib/config.charset: A few additions for Solaris.
84248
84249 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84250
84251         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84252         * lib/localcharset.c (locale_charset): Declare as extern "C".
84253
84254 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84255
84256         * lib/config.charset: msdos in uk_UA uses CP1125.
84257
84258 2002-11-04  Bruno Haible  <bruno@clisp.org>
84259
84260         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84261         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84262         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84263         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84264         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84265
84266 2002-11-04  Bruno Haible  <bruno@clisp.org>
84267
84268         * lib/localcharset.c (locale_charset): Don't return an empty string.
84269
84270 2002-11-04  Bruno Haible  <bruno@clisp.org>
84271
84272         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84273         aliases.
84274
84275 2002-11-04  Bruno Haible  <bruno@clisp.org>
84276
84277         * lib/config.charset: Update for newest glibc. Add canonical names
84278         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84279
84280 2002-11-04  Bruno Haible  <bruno@clisp.org>
84281
84282         * lib/config.charset: Add support for NetBSD.
84283
84284 2002-11-04  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84287
84288 2002-11-01  Bruno Haible  <bruno@clisp.org>
84289
84290         * configure.in: Add AC_CONFIG_AUX_DIR call.
84291         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84292         test/Makefile.
84293         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84294
84295 2002-09-28  Karl Berry  <karl@gnu.org>
84296
84297         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84298         installed automake until the next release, since changes have been
84299         made.
84300
84301 2002-09-25  Karl Berry  <karl@gnu.org>
84302
84303         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84304         * lib/getopt*: copy from libc/posix.
84305         * lib/gettext.h: copy from gettext.
84306         * lib/.cppi-disable: add strdup.c, gettext.h.
84307
84308 2002-09-25  Karl Berry  <karl@gnu.org>
84309
84310         * config/srclist.txt: enable gettext.h check.
84311         * config/config.{guess,sub}: update from prep.
84312         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84313                 from automake 1.6.3.
84314         See srclist*.
84315
84316 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84317
84318         * regex.c (PATFETCH): Remove the translating fetch.
84319         (PATFETCH_RAW): Rename to PATFETCH.
84320         (set_image_of_range): New fun.
84321         (SET_RANGE_TABLE_WORK_AREA): Use it.
84322         (regex_compile): Don't translate the pattern chars so eagerly.
84323         Only do it when inserting an `exactn' bytecode or when handling
84324         a char-range.
84325         (mutually_exclusive_p): Avoid empty statement.
84326
84327 2002-07-06  Jim Meyering  <meyering@lucent.com>
84328
84329         * m4/README: Don't mention Makefile.am.in.
84330         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84331
84332 2002-07-01  Jim Meyering  <meyering@lucent.com>
84333
84334         * lib/c-stack.c: Include sys/time.h.
84335         From Volker Borchert.
84336
84337 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84338
84339         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84340
84341 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84342
84343         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84344         New macro.  Use it uniformly instead of
84345         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84346         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84347         reported by Vin Shelton.
84348
84349 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84350
84351         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84352         Do not assume SA_SIGINFO behavior.
84353         Bug reported by Jim Meyering on NetBSD 1.5.2.
84354
84355 2002-06-22  Jim Meyering  <meyering@lucent.com>
84356
84357         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84358         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84359
84360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84361         now that configure.ac uses AC_GNU_SOURCE.
84362         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84363         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84364
84365         Update to latest tools.  Suggestions from Paul Eggert.
84366         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84367         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84368         * m4/fnmatch.m4: Likewise.
84369         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84370         to AC_HEADER_STDBOOL
84371
84372 2002-06-22  Jim Meyering  <meyering@lucent.com>
84373
84374         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84375         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84376
84377 2002-06-22  Jim Meyering  <meyering@lucent.com>
84378
84379         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84380
84381         * lib/exitfail.c, exitfail.h: Likewise.
84382         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84383
84384         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84385         of fnmatch.h.
84386         (EXTRA_DIST): Add fnmatch_loop.c.
84387         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84388
84389         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84390         * lib/fnmatch.c: Update from diffutils-2.8.2.
84391         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84392         * lib/fnmatch.h: Remove file.
84393
84394 2002-06-21  Jim Meyering  <meyering@lucent.com>
84395
84396         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84397         * m4/mbrtowc.m4: Likewise.
84398
84399         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84400         * m4/mbswidth.m4: Reflect name change:
84401         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84402         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84403
84404         * m4/lib-link.m4: Update from gettext-0.11.2.
84405         * m4/gettext.m4: Likewise.
84406
84407         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84408         From Alfred M. Szmidt.
84409
84410 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84411
84412         * lib/file-type.h: Report an error if neither S_ISREG nor
84413         S_IFREG is defined, instead of using a test specific to glibc
84414         2.2.  This should be safe, since POSIX requires S_ISREG and
84415         Unix Version 7 had S_IFREG.  We don't need to check for
84416         <sys/types.h> since we don't use any symbols that it defines.
84417
84418 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84419
84420         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84421         $@-t, so that each temporary file name is unique and valid in the first
84422         8 characters, for operation under DOS.
84423
84424 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84425
84426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84427
84428 2002-06-15  Jim Meyering  <meyering@lucent.com>
84429
84430         Work even with DJGPP 2.03, which lacks support for symlinks.
84431         From Richard Dawe.
84432         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84433         is defined.
84434         * lib/lchown.c (S_ISLNK): Likewise.
84435
84436 2002-06-15  Jim Meyering  <meyering@lucent.com>
84437
84438         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84439         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84440         have been included before this file.
84441
84442 2002-06-14  Jim Meyering  <meyering@lucent.com>
84443
84444         * lib/file-type.h: Use the version from diffutils-2.8.2.
84445         * lib/file-type.c: Likewise.
84446
84447 2002-06-07  Jim Meyering  <meyering@lucent.com>
84448
84449         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84450         They're needed at least for NetBSD 1.5.2.
84451         ($statxfs_includes): Include those same headers.
84452         ($statxfs_includes): Include sys/vfs.h if available.
84453         ($statxfs_includes): Likewise for sys/statvfs.h.
84454         Check for the following members in both structs statfs and statvfs:
84455         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84456
84457 2002-06-01  Jim Meyering  <meyering@lucent.com>
84458
84459         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84460         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84461
84462 2002-05-28  Jim Meyering  <meyering@lucent.com>
84463
84464         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84465         Reported by Volker Borchert.
84466
84467 2002-05-27  Jim Meyering  <meyering@lucent.com>
84468
84469         Fix a problem seen only on nonconforming systems whereby ls.c's
84470         use of localtime, and then of gettimeofday would cause trouble:
84471         the localtime call used to initialize rpl_gettimeofday's save
84472         mechanism would clobber ls's current local time information so
84473         that in any long listing the first file would always be listed
84474         with date 1970-01-01.  Analysis by Volker Borchert.
84475
84476         * lib/gettimeofday.c (localtime): Undefine.
84477         (rpl_localtime): New function.
84478
84479 2002-05-27  Jim Meyering  <meyering@lucent.com>
84480
84481         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84482         localtime.
84483
84484         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84485         use the replacement function; it wouldn't resolve at link time.
84486         Reported by Volker Borchert.
84487
84488 2002-05-22  Jim Meyering  <meyering@lucent.com>
84489
84490         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84491         file-type.h.
84492         * lib/file-type.h: New file.
84493         * lib/file-type.c (file_type): New file/function.  Extracted from
84494         diffutils.
84495
84496 2002-04-30  Jim Meyering  <meyering@lucent.com>
84497
84498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84499
84500 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84501
84502         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84503
84504 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84505
84506         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84507         Do not check for alloca.h (no longer used) or stdbool.h (was never
84508         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84509
84510 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84511
84512         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84513
84514 2002-04-29  Jim Meyering  <meyering@lucent.com>
84515
84516         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84517         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84518         Use AC_FUNC_STRNLEN here instead.
84519
84520         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84521         With autoconf-2.53a, it's part of AC_PROG_CC.
84522
84523 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84524
84525         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84527
84528 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84529
84530         * lib/sig2str.h, lib/sig2str.c: New files.
84531         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84532
84533 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84534
84535         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84536         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84537         of 127, since 64 is the largest conceivable number for ancient
84538         nonstandard hosts.
84539         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84540
84541 2002-04-28  Jim Meyering  <meyering@lucent.com>
84542
84543         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84544
84545 2002-04-24  Jim Meyering  <meyering@lucent.com>
84546
84547         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84548         (jm_PREREQ): Use it.
84549
84550         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84551         mach/mach.h fcntl.h.
84552         Check for this function: setlocale.
84553
84554 2002-04-24  Jim Meyering  <meyering@lucent.com>
84555
84556         * lib/gettext.h: New file, from Gettext.
84557         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84558         (libfetish_a_SOURCES): Add gettext.h.
84559
84560 2002-04-16  Jim Meyering  <meyering@lucent.com>
84561
84562         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84563         ut_pid, ut_id, ut_exit.
84564
84565 2002-04-16  Jim Meyering  <meyering@lucent.com>
84566
84567         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84568         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84569         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84570
84571 2002-04-12  Jim Meyering  <meyering@lucent.com>
84572
84573         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84574         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84575         existence of the getmntinfo function.  Needed for Darwin 5.3.
84576
84577         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84578         This is necessary at least on Darwin 5.3.
84579
84580         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84581         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84582         strnlen.o in the library, and that makes some versions of ranlib
84583         object.
84584
84585 2002-04-12  Jim Meyering  <meyering@lucent.com>
84586
84587         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84588
84589 2002-04-09  Jim Meyering  <meyering@lucent.com>
84590
84591         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84592         to be more precise.  Rather than saying we're checking whether the
84593         function `works', say what we're testing.
84594         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84595         Reported by Bruno Haible.
84596
84597 2002-03-10  Jim Meyering  <meyering@lucent.com>
84598
84599         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84600         Suggestion from Santiago Vila.
84601
84602 2002-03-08  Jim Meyering  <meyering@lucent.com>
84603
84604         * lib/rename.c: Mention that this wrapper is needed also on
84605         mips-dec-ultrix4.4 systems.
84606
84607 2002-03-02  Jim Meyering  <meyering@lucent.com>
84608
84609         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84610         not HAVE_CLOCK_SETTIME.
84611
84612 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84613
84614         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84615         Check for clock_settime.
84616
84617 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84618
84619         * lib/nanosleep.h: Rename to....
84620         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84621
84622         * lib/gettime.c: New file.
84623         * lib/settime.c: New file.
84624         * lib/stime.c: Remove.
84625
84626         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84627         timespec.h.  Remove nanosleep.h.
84628
84629 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84630
84631         * m4/acl.m4: New file.
84632         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84633         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84634
84635 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84636
84637         * lib/acl.c, lib/acl.h: New files.
84638         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84639
84640 2002-02-24  Jim Meyering  <meyering@lucent.com>
84641
84642         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84643         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84644         cause trouble.  Reported by Nelson Beebe.
84645
84646 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84647
84648         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84649         compilers that don't know that xalloc_die never returns.
84650
84651 2002-02-20  Jim Meyering  <meyering@lucent.com>
84652
84653         * lib/getdate.c: Regenerate using bison-1.33.
84654
84655 2002-02-17  Jim Meyering  <meyering@lucent.com>
84656
84657         * config/config.guess (main): Don't use `head -1'; it's no longer
84658         portable. Use `sed 1q' instead.
84659
84660 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84661
84662         * m4/codeset.m4: Upgrade to gettext-0.11.
84663         * m4/gettext.m4: Upgrade to gettext-0.11.
84664         * m4/glibc21.m4: Upgrade to gettext-0.11.
84665         * m4/iconv.m4: Upgrade to gettext-0.11.
84666         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84667         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84668         * m4/lib-ld.m4: New file, from gettext-0.11.
84669         * m4/lib-link.m4: New file, from gettext-0.11.
84670         * m4/lib-prefix.m4: New file, from gettext-0.11.
84671         * m4/progtest.m4: Upgrade to gettext-0.11.
84672
84673 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84674
84675         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84676         (jm_PREREQ): Use it.
84677
84678 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84679
84680         * lib/posixver.c, lib/posixver.h: New files.
84681         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84682
84683 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84684             Bruno Haible  <bruno@clisp.org>
84685
84686         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84687         (fwrite_success_callback): New declaration.
84688         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84689         print_unicode_char. Call failure callback instead of error.
84690         (fwrite_success_callback): New function.
84691         (exit_failure_callback): New function.
84692         (fallback_failure_callback): New function.
84693         (print_unicode_char): Call unicode_to_mb.
84694
84695 2002-01-26  Jim Meyering  <meyering@lucent.com>
84696
84697         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84698         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84699
84700 2002-01-26  Jim Meyering  <meyering@lucent.com>
84701
84702         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84703
84704 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84705
84706         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84707
84708 2002-01-22  Jim Meyering  <meyering@lucent.com>
84709
84710         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84711         Otherwise, some versions of automake would omit the rule that makes
84712         Makefile from Makefile.in.
84713
84714 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84715
84716         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84717         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84718         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84719         (memcoll): Set errno to zero if there is no error.
84720
84721         * lib/quotearg.c (quotearg_buffer_restyled):
84722         Fix bug with quoting buffers containing NUL when backslashing escapes.
84723         This bug was exposed by the other changes in this patch.
84724         (quotearg_n_options): New arg ARGSIZE.
84725         All callers changed.
84726         (quoting_options_from_style): New function.
84727         (quotearg_n_style): Use it.
84728         (quotearg_n_style_mem): New function.
84729
84730         * lib/quotearg.h (quotearg_n_style_mem): New function.
84731
84732 2002-01-19  Jim Meyering  <meyering@lucent.com>
84733
84734         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84735         Remove useless quotes: DF_PROG="df".
84736         * m4/strnlen.m4: New file.
84737
84738 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84739
84740         * lib/backupfile.c (ISDIGIT): Comment fix.
84741         * lib/getdate.y (ISDIGIT): Likewise.
84742         * lib/posixtm.c (ISDIGIT, year): Likewise.
84743         * lib/strverscmp.c (ISDIGIT): Likewise.
84744         * lib/userspec.c (ISDIGIT): Likewise.
84745
84746 2002-01-16  Jim Meyering  <meyering@lucent.com>
84747
84748         * lib/getdate.y: Add three semicolons, each just before a closing
84749         brace. Bison (as of version 1.31) no longer papers over that mistake.
84750
84751 2002-01-05  Jim Meyering  <meyering@lucent.com>
84752
84753         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84754
84755 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84756
84757         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84758         not silently exit merely because the output buffer happens to
84759         have nothing pending.
84760
84761 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84762
84763         See the big note in ../ChangeLog.
84764         * lib/human.c (suffixes): Prefer K to k for 1024.
84765         (generate_suffix_backwards): New function.
84766         (human_readable_inexact): Use it.
84767         * lib/xstrtol.c (__xstrtol): If there is no number but there
84768         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84769         Accept 'K' as well as 'k'.
84770
84771 2001-12-15  Jim Meyering  <meyering@lucent.com>
84772
84773         * lib/regex.h (__restrict_arr): Update from libc.
84774
84775         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84776         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84777         (STREQ): Define.
84778
84779 2001-12-14  Jim Meyering  <meyering@lucent.com>
84780
84781         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84782         Suggestion from Bruno Haible.
84783
84784 2001-12-10  Jim Meyering  <meyering@lucent.com>
84785
84786         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84787         xrealloc, Instead, include "xalloc.h".
84788         (initbuffer): Don't cast xmalloc return value to char*.
84789         (readline): Reword comment.
84790         Don't cast xrealloc return value to char*
84791         Return NULL, not 0.
84792
84793 2001-12-09  Jim Meyering  <meyering@lucent.com>
84794
84795         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84796         about `signed and unsigned type in conditional expression'.
84797         * lib/posixtm.c (posix_time_parse): Likewise.
84798
84799         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84800
84801         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84802         to avoid a pedantic warning.
84803
84804         * lib/getstr.c: Don't include assert.h.
84805         (getstr): Remove warning-evoking assertions.
84806         Return -1 if offset parameter is out of bounds.
84807         Change the type of a local from int to size_t.
84808
84809         * lib/strftime.c (my_strftime_localtime_r): Include this function
84810         definition in the `#if ! HAVE_TM_GMTOFF' block.
84811
84812         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84813         Include xalloc.h instead.
84814
84815 2001-12-02  Jim Meyering  <meyering@lucent.com>
84816
84817         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84818         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84819         included.
84820
84821         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84822         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84823
84824 2001-11-30  Akim Demaille  <akim@epita.fr>
84825
84826         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84827         before being defined.
84828
84829 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84830
84831         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84832         First arg is int, not unsigned.
84833         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84834         (SIZE_MAX, UINT_MAX): New macros.
84835         (quotearg_n_options): Abort if N is negative.
84836         Avoid overflow check on hosts where size_t is 64 bits and int
84837         is 32 bits, as overflow is impossible there.
84838         Fix off-by-one typo that caused unnecessary reallocation.
84839
84840 2001-11-27  Jim Meyering  <meyering@lucent.com>
84841
84842         * lib/tempname.c: Merge with version from libc.
84843         * lib/regex.c: Likewise.
84844
84845         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84846         systems for which STDC_HEADERS is 0, it was not included, resulting in
84847         a warning about an integer-to-pointer conversion problem with getenv.
84848         Reported by Volker Borchert.
84849
84850 2001-11-26  Jim Meyering  <meyering@lucent.com>
84851
84852         * lib/gtod.h: Remove file.
84853         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84854         * lib/gettimeofday.c: Don't include gtod.h.
84855         (GTOD_init): Remove function.
84856         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84857         Suggestion from Volker Borchert.
84858
84859 2001-11-23  Jim Meyering  <meyering@lucent.com>
84860
84861         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84862         it.
84863         * lib/hash.c (struct hash_table): Define it here instead.
84864
84865 2001-11-22  Jim Meyering  <meyering@lucent.com>
84866
84867         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84868
84869 2001-11-20  Jim Meyering  <meyering@lucent.com>
84870
84871         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84872         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84873
84874 2001-11-19  Jim Meyering  <meyering@lucent.com>
84875
84876         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84877         directory.  Use "conftestXXXXXX" as the template.
84878         Suggestion from Paul Eggert.
84879
84880         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84881         immediately, so the test doesn't mistakenly hit the max-open-files
84882         limit.
84883
84884 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84885
84886         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84887         (TEMPORARIES): New macro.
84888         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84889         removes an artificial limitation (e.g. HP-UX 10.20, where
84890         TMP_MAX is 17576).
84891
84892 2001-11-18  Jim Meyering  <meyering@lucent.com>
84893
84894         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84895
84896 2001-11-18  Jim Meyering  <meyering@lucent.com>
84897
84898         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84899         on SunOS 4.
84900
84901         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84902         files will be created before anything else.
84903
84904 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84905
84906         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84907         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84908
84909 2001-11-17  Jim Meyering  <meyering@lucent.com>
84910
84911         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84912         Prompted by a report from Bob Proulx.
84913
84914         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84915         Instead, require UTILS_FUNC_MKSTEMP.
84916
84917 2001-11-17  Jim Meyering  <meyering@lucent.com>
84918
84919         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84920         Now, that's done as part of AC_FUNC_STRTOD.
84921
84922 2001-11-17  Jim Meyering  <meyering@lucent.com>
84923
84924         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84925         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84926         rather than group writable.  Patch by Juan F. Codagnone.
84927
84928         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84929         xrealloc, Instead, include "xalloc.h".
84930
84931         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84932         Remove explicit declarations of xmalloc, xrealloc,
84933         and xstrdup.  Instead, include "xalloc.h".
84934
84935         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84936         unlocked-io.h.
84937         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84938         Likewise.
84939         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84940
84941         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84942         Reported by Padraig Brady.
84943
84944         * lib/mkstemp.c: #undef mkstemp.
84945         Include config.h.
84946         (rpl_mkstemp): Rename from mkstemp.
84947         Protoize.
84948
84949 2001-11-16  Jim Meyering  <meyering@lucent.com>
84950
84951         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84952         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84953         determine the amount of total physical memory, use pstat_getstatic.
84954         HPUX-11 doesn't define _SC_PHYS_PAGES.
84955         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84956         If sysconf couldn't be used to determine the amount of available
84957         physical memory, use both pstat_getstatic and pstat_getdynamic.
84958         Based on a patch from Bob Proulx.
84959
84960 2001-11-10  Jim Meyering  <meyering@lucent.com>
84961
84962         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84963         (jm_PREREQ): Use it.
84964
84965 2001-11-09  Jim Meyering  <meyering@lucent.com>
84966
84967         * m4/jm-macros.m4: Require autoconf-2.52f.
84968         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84969         Use these AC_-prefixed names, not the AM_-prefixed ones.
84970
84971         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84972
84973 2001-11-05  Jim Meyering  <meyering@lucent.com>
84974
84975         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84976
84977 2001-11-04  Jim Meyering  <meyering@lucent.com>
84978
84979         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84980         $DEFS.
84981
84982 2001-11-03  Jim Meyering  <meyering@lucent.com>
84983
84984         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84985         of AC_DEFUN.
84986
84987         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84988         know the name of the variable in the macro definition.
84989
84990 2001-11-03  Jim Meyering  <meyering@lucent.com>
84991
84992         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84993         in argmatch_to_argument call.
84994
84995         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84996         argument.
84997
84998         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84999         e.g., a fault due to an attempt to free a NULL pointer.
85000
85001 2001-11-01  Jim Meyering  <meyering@lucent.com>
85002
85003         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85004         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85005
85006 2001-11-01  Jim Meyering  <meyering@lucent.com>
85007
85008         * lib/dirfd.c, lib/dirfd.h: New files.
85009         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85010
85011         * lib/hash.c (hash_print) [TESTING]: Clean up.
85012
85013 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85014
85015         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85016         to avoid a warning if -Wall.
85017
85018 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85019
85020         * README: New file
85021         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85022         (per RMS's instructions, this is now the canonical source)
85023         * lgpl/, gpl/: New directories.
85024
85025 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85026
85027         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85028
85029 2001-10-21  Jim Meyering  <meyering@lucent.com>
85030
85031         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85032         this code would end up calling gettext even in packages built
85033         with --disable-nls.
85034         * lib/getopt.c (_): Likewise.
85035         * lib/regex.c (_): Likewise.
85036
85037 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85038
85039         * m4/error.m4 (jm_PREREQ_ERROR):
85040         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85041         AC_FUNC_STRERROR_R does that.
85042         Check for strerror declaration.
85043
85044         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85045         are supposed to have them these days.
85046         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85047         Merge changes from latest Autoconf CVS.
85048         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85049         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85050         POSIX decided to standardize on the int flavor of strerror_r.
85051
85052 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85053
85054         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85055         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85056         Use strerror_r that is only a macro, even if it is not a function.
85057         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85058         (private_strerror): Use prototypes, not old-style function definition.
85059         (print_errno_message): New function.
85060         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85061         char*-flavored one.
85062         (error_tail, error, error_at_line): Use it.
85063
85064 2001-10-11  Jim Meyering  <meyering@lucent.com>
85065
85066         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85067         and quote_n (1, ... to avoid clobbering a buffer.
85068
85069 2001-10-05  Jim Meyering  <meyering@lucent.com>
85070
85071         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85072         hash-pjw.h.
85073         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85074         * lib/hash-pjw.h: New file.
85075
85076 2001-09-30  Jim Meyering  <meyering@lucent.com>
85077
85078         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85079         `struct fsstat' has the `f_fstypename' member.
85080         Use that to define FS_TYPE, which is now used to make
85081         the getfsstat link test tighter.
85082
85083 2001-09-30  Jim Meyering  <meyering@lucent.com>
85084
85085         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85086         Include <sys/ucred.h>, for Apple Darwin.
85087         Include sys/mount.h and sys/fs_types.h only if available.
85088         (FS_TYPE): Define.
85089         (read_filesystem_list): Use FS_TYPE.
85090
85091 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85092
85093         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85094         a boolean context.
85095
85096 2001-09-29  Jim Meyering  <meyering@lucent.com>
85097
85098         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85099         [one-argument getmntent function]): Include stdio.h before mntent.h.
85100         SunOS 4.1.x needs it for the declaration of `FILE'.
85101         Patch by Volker Borchert.
85102
85103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85104         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85105         sys/fs_types.h, and make the link-test for getfsstat guard #include
85106         directives with appropriate #if HAVE_*_H tests so that we can
85107         detect getfsstat on Apple Darwin1.3.7 systems.
85108         Reported by Nelson Beebe.
85109         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85110
85111 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85112
85113         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85114         #defines strtoimax.  Also treat the other strto* functions
85115         like strtoimax.
85116
85117         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85118         Check for strtoul and strtoumax,
85119         as those declarations are made even in the signed case.
85120         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85121         Likewise, for strtol and strtoimax.
85122
85123 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85124
85125         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85126         #defines strtoimax.  Also treat the other strto* functions
85127         like strtoimax.
85128
85129         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85130         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85131         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85132
85133 2001-09-26  Jim Meyering  <meyering@lucent.com>
85134
85135         Most macros in unlocked-io.h had the wrong number of arguments.
85136         * lib/gen-uio: New script.
85137         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85138         * lib/unlocked-io.hin: Remove file.
85139         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85140         rather than trying to embed it here.
85141         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85142         Reported by Padraig Brady.
85143
85144 2001-09-25  Volker Borchert  <bt@teknon.de>
85145
85146         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85147         `result'.
85148
85149 2001-09-24  Jim Meyering  <meyering@lucent.com>
85150
85151         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85152
85153 2001-09-23  Jim Meyering  <meyering@lucent.com>
85154
85155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85156         instead of the mere test for existence of mntent.h.  The latter
85157         would get a false-positive on AIX 3.4 systems.
85158         In the outer getmntent if-block, don't die if neither of the getmntent
85159         tests succeeds.  Instead, just fall through and continue with the
85160         remaining tests.
85161
85162 2001-09-23  Jim Meyering  <meyering@lucent.com>
85163
85164         * lib/mountlist.c: Remove useless parentheses in #if directives.
85165         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85166         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85167
85168 2001-09-22  Jim Meyering  <meyering@lucent.com>
85169
85170         * m4/gettext.m4: New file.  From gettext.
85171         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85172         * m4/progtest.m4: Likewise
85173         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85174         * m4/glibc21.m4: Likewise.
85175
85176         * m4/libintl.m4: Remove.  No longer used.
85177
85178 2001-09-22  Jim Meyering  <meyering@lucent.com>
85179
85180         * lib/localcharset.c: Update from latest gettext.
85181         * lib/config.charset: Likewise.
85182
85183 2001-09-20  Jim Meyering  <meyering@lucent.com>
85184
85185         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85186         strtoimax.
85187         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85188         strtoumax.
85189
85190 2001-09-20  Jim Meyering  <meyering@lucent.com>
85191
85192         * lib/xstrtol.c (strtoimax): Guard declaration with
85193         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85194         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85195         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85196         (strtoumax): Likewise, for completeness (it wasn't necessary).
85197
85198 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85199
85200         * lib/strtoimax.c (HAVE_LONG_LONG):
85201         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85202         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85203         to work around bug in IBM C compiler.
85204
85205 2001-09-17  Jim Meyering  <meyering@lucent.com>
85206
85207         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85208         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85209         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85210         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85211         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85212         whenever the right hand side need not be expanded by the shell.
85213
85214 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85215
85216         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85217         library.  It's not correct, as some older glibcs are buggy.
85218         fnmatch wasn't fixed until glibc 2.2.
85219
85220         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85221         special shell magic here.
85222
85223 2001-09-16  Jim Meyering  <meyering@lucent.com>
85224
85225         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85226         * m4/jm-macros.m4: Require it.
85227
85228 2001-09-16  Jim Meyering  <meyering@lucent.com>
85229
85230         * lib/mkdir.c: New file.
85231
85232 2001-09-15  Jim Meyering  <meyering@lucent.com>
85233
85234         * m4/jm-macros.m4: Check for help2man.
85235
85236 2001-09-11  Jim Meyering  <meyering@lucent.com>
85237
85238         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85239         The body, by Paul Eggert, was moved here from configure.in.
85240         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85241
85242 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85243
85244         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85245         (jm_PREREQ): Use it.
85246
85247 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85248
85249         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85250         Use ssize_t, not int, to store result of readlink.
85251         Check for ssize_t overflow as well as size_t overflow,
85252         as POSIX says the result of readlink is implementation-defined
85253         when ssize_t overflows.
85254         Remove unnecessary cast to char*.
85255         Use free+malloc instead of realloc, as the storage doesn't need
85256         to be preserved and it's clearer and can be more efficient that way.
85257         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85258         * lib/xreadlink.h (xreadlink): Update prototype.
85259
85260 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85261
85262         * lib/xgetcwd.c: Revert some of the previous change; intead,
85263         fix the HAVE_GETCWD_NULL code to behave more like the
85264         !HAVE_GETCWD_NULL code used to.
85265
85266         Include "xalloc.h".
85267         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85268         invoke xalloc_die.
85269
85270 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85271
85272         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85273         sys/param.h, as pathmax.h includes them.
85274
85275 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85276
85277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85278         (jm_PREREQ_XGETCWD): New macro.
85279
85280         * m4/getcwd.m4: New file.
85281
85282 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85283
85284         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85285         like the HAVE_GETCWD_NULL code.
85286         Include pathmax.h if not HAVE_GETCWD.
85287         Do not include xalloc.h.
85288         (INITIAL_BUFFER_SIZE): New symbol.
85289         Do not use xmalloc / xrealloc, since the caller is responsible for
85290         handling errors.  Preserve errno around `free' during failure.
85291         Do not overrun buffer when using getwd.
85292
85293 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85294
85295         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85296         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85297         getcwd (NULL, 0).
85298
85299 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85300
85301         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85302         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85303         spotted by Jim Meyering.
85304
85305 2001-09-03  Jim Meyering  <meyering@lucent.com>
85306
85307         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85308         failure.
85309
85310 2001-09-02  Jim Meyering  <meyering@lucent.com>
85311
85312         * lib/error.c: Update from GNU libc.
85313
85314 2001-09-01  Jim Meyering  <meyering@lucent.com>
85315
85316         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85317         Used by df.
85318
85319 2001-09-01  Jim Meyering  <meyering@lucent.com>
85320
85321         * lib/xreadlink.c: New file.
85322         * lib/xreadlink.h: New file.
85323         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85324         xreadlink.h.
85325
85326         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85327         doesn't conflict with sparc Solaris 7's definition in
85328         /usr/include/sys/int_types.h.
85329
85330         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85331         files.
85332         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85333         and strncasecmp as r-values.  Unixware didn't have declarations.
85334
85335 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85336
85337         * lib/xstrtol.h: Add copyright notice.
85338         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85339         LONGINT_INVALID_SUFFIX_CHAR.
85340
85341 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85342
85343         * lib/xstrtol.c (strtoimax): New decl.
85344
85345 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85346
85347         * lib/xgetcwd.c: Don't include pathmax.h.
85348         Include stdlib.h and unistd.h if available.
85349         Include xalloc.h.
85350         (xmalloc, xstrdup, free): Remove decls.
85351         (xgetcwd): Don't assume sizes fit in unsigned.
85352         Check for overflow when computing sizes.
85353         Simplify reallocation code.
85354
85355 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85356
85357         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85358         a directory's st_size can have an arbitrary value, so the old
85359         usage could waste an arbitrary amount of memory.  All uses
85360         changed.
85361         * lib/savedir.h: Update prototype.
85362
85363 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85364
85365         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85366
85367         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85368         old strtoimax.c.
85369
85370         Also, make the following further changes to make this file's
85371         configuration more similar to that of strtol.c:
85372         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85373         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85374         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85375         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85376         changed to signed values.
85377
85378         And make the following changes as well:
85379         Fix copyright notice, as 1999 was missing.
85380         (verify): New macro.
85381         (strtoimax): Check sizes at compile-time, not run-time.
85382         Prefer strtol to strtoll if both work.
85383         (main): Remove; it was not that useful and was a pain to maintain.
85384
85385         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85386
85387 2001-08-31  Jim Meyering  <meyering@lucent.com>
85388
85389         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85390         Use an initial, malloc'd, buffer of length 128 rather than
85391         a statically allocated one of length 1024.
85392
85393 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85394
85395         Simplify code, partly by assuming autoconf 2.52 semantics.
85396
85397         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85398
85399         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85400         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85401         All uses removed.
85402         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85403         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85404         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85405         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85406         jm_AC_HEADER_INTTYPES_H.
85407         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85408
85409         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85410
85411         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85412         Quote first arg of AC_DEFUN.
85413         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85414         since they are needed to parse the include file even if we need
85415         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85417         but with opposite signedness.
85418
85419 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85420
85421         Merge 'exclude' changes from tar 1.13.22.
85422         This fixes one or two unlikely storage allocation overflow bugs,
85423         but doesn't change user-visible behavior otherwise.
85424
85425 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85426
85427         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85428         (jm_PREREQ_EXCLUDE): New macro.
85429
85430 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85431
85432         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85433         tm to be declared.
85434
85435 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85436
85437         * lib/hash.c: Remove '2001' from copyright notice.
85438
85439 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85440
85441         * lib/full-write.h: New file.
85442         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85443         * lib/full-write.c: Correct credits, as cccp.c no longer
85444         exists and anyway it was so heavily changed from the old cccp
85445         code as to be unrecognizable.  Include full-write.h.
85446         (full_write): Return size_t, with short writes meaning failure.
85447         All callers changed.  This fixes a bug with large buffers
85448         on 64-bit hosts.
85449         * lib/utime.c: Include full-write.h.
85450
85451 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85452
85453         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85454         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85455         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85456         Include if available.
85457         (<xalloc.h>): Include
85458         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85459         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85460         collide with FNM macros.
85461         (struct patopts): New struct.
85462         (struct exclude): Use it, as exclude patterns now come with options.
85463         (new_exclude): Support above changes.
85464         (new_exclude, add_exclude_file):
85465         Initial size must now be a power of two to simplify overflow checking.
85466         (free_exclude, fnmatch_no_wildcards): New function.
85467         (excluded_filename): No longer requires options arg, as the options
85468         are determined by add_exclude.  Now returns bool, not int.
85469         (excluded_filename, add_exclude):
85470         Add support for the fancy new exclusion options.
85471         (add_exclude, add_exclude_file): Now takes int options arg.
85472         Check for arithmetic overflow when computing sizes.
85473         (add_exclude_file): xrealloc might modify errno, so don't
85474         realloc until after errno might be used.
85475
85476         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85477         New macros.
85478         (free_exclude): New decl.
85479         (add_exclude, add_exclude_file): Now takes int options arg.
85480         (excluded_filename): No longer requires options arg, as the options
85481         are determined by add_exclude.  Now returns bool, not int.
85482
85483 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85484
85485         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85486
85487 2001-08-27  Jim Meyering  <meyering@lucent.com>
85488
85489         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85490
85491         * lib/version-etc.c (N_): Remove definition.
85492         Revert most of last change.
85493         Instead, simply don't mark the `Copyright...' string for translation.
85494         Based on advice from Paul Eggert.
85495
85496         * lib/strtoxmax.c: Tweak comment.
85497
85498 2001-08-26  Jim Meyering  <meyering@lucent.com>
85499
85500         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85501
85502         * m4/xstrtoimax.m4: New file.
85503         * m4/xstrtoumax.m4: Add comments explaining why we
85504         AC_REPLACE_FUNCS(strtol).
85505
85506 2001-08-26  Jim Meyering  <meyering@lucent.com>
85507
85508         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85509         of copyright with `%s' so translators don't get an untranslated
85510         message in 2002.
85511         (COPYRIGHT_YEAR): Define.
85512         (version_etc): Use fprintf rather than fputs.
85513         Suggestion from Ulrich Drepper.
85514
85515         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85516
85517         * lib/strtoll.c: New file, from GNU libc.
85518         * lib/xstrtoimax.c: New file.
85519
85520         * lib/xstrtol.h: Add xstrtoimax.
85521         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85522         * lib/strtoimax.c: New file.  Likewise, but first define
85523         STRTOUXMAX_SIGNED.
85524
85525         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85526         ...
85527         * lib/strtoxmax.c: ... then renamed to this.
85528
85529 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85530
85531         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85532         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85533         (jm_AC_TYPE_INTMAX_T): New macro.
85534         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85535
85536         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85537
85538         * m4/longlong.m4: Renamed from ulonglong.m4.
85539         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85540         * m4/uintmax_t.m4: Removed.
85541
85542 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85543
85544         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85545         Port to Solaris 8, where 'sed' requires a space after the 'r'
85546         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85547         Redirect output to $tmp just once.
85548
85549 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85550
85551         * lib/addext.c (<errno.h>): Include.
85552         (errno): Declare if not defined.
85553         (addext): Work correctly when pathconf returns -1 and leaves
85554         errno alone because there is no limit.  Also, work even if
85555         pathconf returns a value greater than SIZE_MAX.
85556
85557 2001-08-12  Jim Meyering  <meyering@lucent.com>
85558
85559         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85560         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85561         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85562         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85563         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85564         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85565         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85566         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85567         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85568         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85569         utime.m4, utimes.m4, xstrtoumax.m4:
85570         Quote the first argument in each use of AC_DEFUN.
85571
85572 2001-08-12  Jim Meyering  <meyering@lucent.com>
85573
85574         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85575         Simply `return getcwd (NULL, 0);'.
85576         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85577         Use 1300 as initial value for length, not PATH_MAX.
85578
85579         * lib/pathmax.h: Clean up cpp syntax.
85580
85581 2001-08-12  Jim Meyering  <meyering@lucent.com>
85582
85583         * lib/gettimeofday.c: New file.
85584         * lib/gtod.h: New file.
85585         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85586
85587 2001-08-05  Jim Meyering  <meyering@lucent.com>
85588
85589         * m4/jm-macros.m4: Require autoconf-2.52.
85590
85591 2001-08-04  Jim Meyering  <meyering@lucent.com>
85592
85593         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85594         stmt, to get in sync with glibc.
85595
85596 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85597
85598         The following changes are from gettext 0.10.39 as maintained by
85599         Bruno Haible.
85600
85601         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85602         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85603         with inverted sense.  All uses changed.
85604
85605         * lib/mbswidth.c: Don't include <limits.h>.
85606         Include <stdlib.h> and <string.h> unconditionally.
85607         (iswcntrl, mbsinit, ISCNTRL): New macros.
85608         (mbsnwidth): Use K&R style function declarations.
85609         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85610         can optimize it when MB_CUR_MAX == 1.
85611         The width of control characters is zero, not 1.
85612
85613 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85614
85615         The following changes are from gettext 0.10.39 as maintained by
85616         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85617
85618         * m4/codeset.m4: Upgrade to serial AM1.
85619         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85620         all uses changed.  Quote first arg of AC_DEFUN.
85621         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85622
85623         * m4/iconv.m4: Upgrade to serial AM2.
85624         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85625         Add --with-libconv-prefix.
85626         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85627         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85628         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85629         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85630         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85631
85632         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85633         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85634         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85635         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85636         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85637         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85638         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85639         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85640         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85641
85642         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85643         string.h any more.
85644
85645         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85646         not the default value.
85647
85648         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85649         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85650         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85651         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85652         Also check for iswcntrl, used for wcwidth fallback.
85653         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85654         to Autoconf 2.13.
85655
85656 2001-08-03  Jim Meyering  <meyering@lucent.com>
85657
85658         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85659         as it was in the original.  Reported by Paul Eggert.
85660
85661 2001-07-16  Jim Meyering  <meyering@lucent.com>
85662
85663         * m4/gettimeofday.m4: New file.
85664         Prompted by a report from Bernhard Baehr.
85665
85666 2001-07-15  Jim Meyering  <meyering@lucent.com>
85667
85668         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85669         stuff. Now it's in ../Makefile.cfg.
85670
85671 2001-07-15  Jim Meyering  <meyering@lucent.com>
85672
85673         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85674         (BUILT_SOURCES): Add unlocked-io.h.
85675         (io_functions): Define.
85676         (unlocked-io.h): New rule.
85677         (DISTCLEANFILES): Add unlocked-io.h.
85678         (all-local): Depend on unlocked-io.h, to ensure it is created.
85679
85680         * lib/unlocked-io.hin: New file
85681
85682         * lib/regex.c: Update from glibc.
85683
85684 2001-07-05  Jim Meyering  <meyering@lucent.com>
85685
85686         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85687         recommendation.
85688         (libfetish_a_SOURCES): Put all .h files here instead.
85689         Remove a thus-exposed (better checks in automake) duplicate and
85690         two unnecessary .h files.
85691
85692 2001-07-04  Jim Meyering  <meyering@lucent.com>
85693
85694         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85695         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85696         distcheck failure.
85697
85698 2001-07-02  Jim Meyering  <meyering@lucent.com>
85699
85700         The following changes were prompted by suggestions from Bruno Haible.
85701
85702         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85703         is now generated.
85704         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85705         definition of EXTRA_DIST.
85706         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85707         ensure that the generated file is created/updated whenever the list
85708         of $(unlocked_functions) is changed.
85709         (jm-glibc-io.m4): New rule.
85710         (unlocked-io.h): New rule -- currently unused.
85711
85712 2001-06-24  Jim Meyering  <meyering@lucent.com>
85713
85714         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85715         unmatched right bracket, rather than kludging it with an extra,
85716         falsely-matching quote in a comment.  Patch by Akim Demaille.
85717
85718 2001-06-11  Jim Meyering  <meyering@lucent.com>
85719
85720         * lib/regex.c: Update from GNU libc.
85721
85722 2001-05-27  Jim Meyering  <meyering@lucent.com>
85723
85724         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85725         Check for ut_type in struct utmp.
85726
85727 2001-05-27  Jim Meyering  <meyering@lucent.com>
85728
85729         * lib/readutmp.h (UT_TYPE): Define.
85730
85731 2001-05-24  Jim Meyering  <meyering@lucent.com>
85732
85733         * lib/argmatch.c: Include "quote.h".
85734         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85735         quote function.  Reported by Göran Uddeborg.
85736
85737 2001-05-22  Jim Meyering  <meyering@lucent.com>
85738
85739         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85740         now that we use the package-supplied version unconditionally.
85741         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85742
85743 2001-05-21  Jim Meyering  <meyering@lucent.com>
85744
85745         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85746         shell syntax errors.
85747
85748 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85749
85750         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85751
85752 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85753
85754         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85755         Don't bother to check library strftime, since
85756         we'll be using our own my_strftime function anyway.
85757         Define my_strftime instead of strftime.
85758
85759 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85760
85761         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85762         which is not yet declared.
85763
85764 2001-05-15  Jim Meyering  <meyering@lucent.com>
85765
85766         * m4/regex.m4: Use proper quoting so brackets appear in the test
85767         program.
85768         Reported by, and with help from, Bruno Haible.
85769
85770 2001-05-13  Jim Meyering  <meyering@lucent.com>
85771
85772         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85773         undefined.
85774
85775 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85776
85777         dirname code cleanup.  base_name now behaves more compatibly
85778         with POSIX basename when given file names that have trailing
85779         slashes, and similarly for dir_name.  Add new primitives
85780         base_len and dir_len.  Put the directory-name-related decls
85781         into dirname.h.
85782
85783         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85784         * lib/backupfile.c (base_name): Likewise.
85785         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85786         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85787         * lib/makepath.c (strip_trailing_slashes): Likewise.
85788         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85789         ISSLASH): Likewise.
85790         * lib/rename.c (strip_trailing_slashes): Likewise.
85791         * lib/same.c (base_name): Likewise.
85792         * lib/stripslash.c (ISSLASH): Likewise.
85793
85794         * lib/addext.c: Include <dirname.h> after size_t is defined.
85795         * lib/backupfile.c: Likewise.
85796
85797         * lib/addext.c (addext): Use base_len to trim redundant
85798         trailing slashes instead of doing it ourselves.
85799         But do not trim the last slash if it is not redundant.
85800
85801         * lib/backupfile.c (find_backup_file_name,
85802         max_backup_version): Use base_len instead of rolling it ourselves.
85803         Handle the case of "" and (on DOS) "C:" correctly.
85804
85805         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85806         needed. Include <string.h>, <dirname.h>.
85807         (base_name): Allow file names ending in slashes, other than names
85808         that are all slashes.  In this case, return the basename followed
85809         by the slashes.  This is more general, and can be used in places
85810         where the original base_name purposely had an assertion failure.
85811         (base_len): New function.
85812
85813         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85814         Do not include <assert.h>; no longer needed.
85815         Include xalloc.h.
85816         (memrchr): Remove decl.
85817         (dir_name_r): Remove.
85818         (dir_len): Renamed from dirlen.  All callers changed.
85819         Rewrite in terms of base_name, for simplicity and consistency.
85820         (dir_name): Never return NULL.  All callers changed.
85821         Do not include <stdlib.h> in test program; no longer needed.
85822         return 0; is fine for test program.
85823
85824         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85825         New macros.
85826         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85827
85828         * lib/path-concat.c (path_concat): Use base_len to compute
85829         base length, not strlen; this means we cannot rely on memcpy
85830         to null-terminate.
85831
85832         * lib/same.c (STREQ): Remove.
85833         (same_name): Handle the case where the basename ends in trailing '/'.
85834
85835         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85836         a slash was stripped.  Do not strip the last slash after a
85837         file system prefix.
85838
85839 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85840
85841         * lib/Makefile.am (libfetish_a_SOURCES):
85842         Add strftime.c, since we now compile it on all hosts.
85843
85844         * lib/strftime.c (my_strftime):
85845         Define to nstrftime if emacs, but only if my_strftime is not defined.
85846         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85847         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85848         Add one more extra argument: a nanoseconds value.
85849         All uses changed.
85850         (ns): New macro.
85851         (my_strftime function): Add %N format.
85852         (emacs_strftimeu): Renamed from emacs_strftime,
85853         with extra ut argument.
85854
85855 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85856
85857         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85858
85859 2001-04-21  Jim Meyering  <meyering@lucent.com>
85860
85861         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85862         doesn't interfere.
85863
85864 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85865
85866         * m4/ftruncate.m4: Check for chsize.
85867         Link with ftruncate.o unconditionally if ftruncate is missing.
85868         This was required when cross-compiling to i586-mingw32msvc.
85869
85870 2001-04-08  Jim Meyering  <meyering@lucent.com>
85871
85872         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85873         recomputed; that's necessary when the offset spans a DST transition.
85874         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85875
85876 2001-04-02  Jim Meyering  <meyering@lucent.com>
85877
85878         * lib/regex.h, regex.c: Update from GNU libc.
85879
85880 2001-03-24  Jim Meyering  <meyering@lucent.com>
85881
85882         * m4/jm-macros.m4: Require autoconf-2.49d.
85883
85884 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85885
85886         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85887
85888 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85889
85890         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85891
85892 2001-03-17  Jim Meyering  <meyering@lucent.com>
85893
85894         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85895         now that the version in autoconf is equivalent.
85896         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85897
85898         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85899         Suggestion from Akim Demaille.
85900
85901         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85902         (jm_PREREQ_TEMPNAME): New function.
85903
85904 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85905
85906         * lib/tempname.c (uint64_t): Define to uintmax_t if
85907         not defined, and if UINT64_MAX is not defined.
85908         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85909         Reported by John David Anglin.
85910
85911 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85912
85913         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85914         resolve alias if codeset is empty.
85915         * lib/config.charset (BeOS): Use wildcard syntax.
85916
85917 2001-03-13  Jim Meyering  <meyering@lucent.com>
85918
85919         * lib/path-concat.c (path_concat)
85920         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85921         concatenating e.g., `C:' and `foo'.
85922         From Bruno Haible.
85923
85924 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85925
85926         * lib/localcharset.c (locale_charset): Don't use
85927         setlocale(LC_CTYPE,NULL). Don't return NULL.
85928         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85929
85930 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85931
85932         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85933         support for DOS/DJGPP.
85934
85935 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85936
85937         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85938         lacks mkstemp.  Compile our own tempname.c if we compile our own
85939         mkstemp.c, as mkstemp relies on tempname.
85940
85941 2001-03-01  Jim Meyering  <meyering@lucent.com>
85942
85943         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85944         AH_VERBATIM really does output its argument verbatim.
85945
85946 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85947
85948         * lib/Makefile.am (libfetish_a_SOURCES):
85949         Add dup-safer.c, fopen-safer.c.
85950         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85951
85952         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85953         * lib/unistd-safer.h: New files.
85954
85955 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85956
85957         The mkstemp replacement is taken from glibc 2.2.2, with some
85958         portability fixes for use outside glibc, as follows:
85959
85960         * lib/tempname.c (struct_stat64): New macro.
85961         (direxists, __gen_tempname): Use it.
85962         This avoids a portability problem with Solaris 8.
85963
85964         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85965         (<stddef.h>, <stdint.h>, <string.h>):
85966         Include only if STDC_HEADERS || _LIBC.
85967         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85968         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85969         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85970         (__set_errno): Define this macro if <errno.h> doesn't.
85971         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85972         Define these macros if <stdio.h> doesn't.
85973         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85974         Define these macros if <sys/stat.h>
85975         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85976         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85977         __xstat64): Define if not _LIBC.
85978         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85979         (__gen_tempname): Invoke gettimeofday only if
85980         HAVE_GETTIMEOFDAY || _LIBC;
85981         otherwise, fall back on plain "time".
85982         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85983
85984         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85985
85986         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85987
85988 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85989
85990         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85991
85992 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85993
85994         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85995         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85996         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85997         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85998
85999 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86000
86001         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86002         Remove workaround macros for hosts that have mbrtowc but not
86003         mbstate_t, as we now insist on proper declarations for both
86004         before using mbrtowc.
86005
86006 2001-02-17  Jim Meyering  <meyering@lucent.com>
86007
86008         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86009         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86010         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86011         UnixWare 7.1.1.
86012
86013         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86014         rather than AC_CACHE_VAL.
86015
86016 2001-02-17  Jim Meyering  <meyering@lucent.com>
86017
86018         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86019         around included file name.
86020
86021         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86022
86023         * lib/strftime.c: Update from GNU libc (the only changes were to
86024         comments).
86025
86026 2001-02-17  Jim Meyering  <meyering@lucent.com>
86027
86028         * lib/regex.c: Update from libc.
86029
86030 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86031
86032         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86033         clash.
86034
86035 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86036
86037         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86038         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86039         Reported by Mark Hounschell via Paul Eggert.
86040
86041 2001-02-07  Jim Meyering  <meyering@lucent.com>
86042
86043         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86044
86045 2001-02-05  Jim Meyering  <meyering@lucent.com>
86046
86047         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86048         it includes the patch required for `large file' support with at least
86049         HP-UX's 10.20 /bin/cc.
86050
86051 2001-02-03  Jim Meyering  <meyering@lucent.com>
86052
86053         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86054         AS_IF, now that it works once again (mysteriously).
86055         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86056
86057 2001-01-30  Jim Meyering  <meyering@lucent.com>
86058
86059         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86060         * m4/chown.m4: Rename conftestchown to conftest.chown.
86061         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86062         s/conftestdir2/conftest.d2/.
86063         * m4/utimes.m4: s/conftestdata/conftest.data/
86064         Inspired by Pavel Roskin's change in autoconf.
86065
86066 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86067
86068         * lib/config.charset: Update for FreeBSD 4.2.
86069
86070 2001-01-27  Jim Meyering  <meyering@lucent.com>
86071
86072         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86073         a use of AS_IF.
86074         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86075
86076 2001-01-26  Jim Meyering  <meyering@lucent.com>
86077
86078         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86079         quotearg.c includes it.
86080
86081 2001-01-26  Jim Meyering  <meyering@lucent.com>
86082
86083         * lib/quotearg.c: Include stddef.h.
86084         * lib/quote.c: Include stddef.h.
86085         Reported by Axel Kittenberger.
86086
86087         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86088         line in double quotes so that it evokes a better diagnostic.
86089         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86090         Reported by Axel Kittenberger.
86091
86092 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86093
86094         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86095         as if it was a `charset'.
86096
86097 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86098
86099         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86100         has const.
86101
86102 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86103
86104         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86105         to avoid a warning.  Add back 'const' to inptr.
86106
86107 2001-01-20  Jim Meyering  <meyering@lucent.com>
86108
86109         Be sure that headers are checked before used in code compiled
86110         for the type checks.
86111         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86112         In place of that, invoke jm_CHECK_ALL_TYPES.
86113         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86114         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86115         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86116         The check for ssize_t was mistakenly run before the test for unistd.h.
86117
86118         The configure-time check for stdbool.h was missing.
86119         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86120         (jm_PREREQ_HASH): New function.
86121
86122 2001-01-17  Jim Meyering  <meyering@lucent.com>
86123
86124         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86125         for autoconf-2.49c.
86126         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86127
86128 2001-01-16  Jim Meyering  <meyering@lucent.com>
86129
86130         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86131         From Bruno Haible.
86132
86133 2001-01-14  Jim Meyering  <meyering@lucent.com>
86134
86135         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86136         foo and bar.  Create conftestdir/ in the script, not in the C code.
86137         Remove directories in the script, not in the C code.
86138         Remove conftestdir{,2} before trying to create the directory.
86139         Make the entire configure script fail if the mkdir fails.
86140
86141 2001-01-14  Jim Meyering  <meyering@lucent.com>
86142
86143         * lib/rename.c: New file.  From Volker Borchert.
86144         Include stdlib.h, string.h or strings.h, and xalloc.h.
86145         Use strip_trailing_slashes rather than open-coding it.
86146
86147 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86148
86149         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86150
86151 2001-01-03  Jim Meyering  <meyering@lucent.com>
86152
86153         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86154         of local `inptr' to avoid warning with some system declarations of
86155         iconv.
86156
86157 2001-01-02  Volker Borchert  <bt@teknon.de>
86158
86159         * m4/rename.m4: New file.
86160         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86161
86162 2001-01-01  Jim Meyering  <meyering@lucent.com>
86163
86164         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86165         even on systems with utmpx.h.  It's necessary for the declaration of
86166         utmp's ut_user member.  Reported by Andreas Jaeger.
86167
86168         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86169         available. They are required for the declarations of getgrgid and
86170         getpwuid resp.
86171         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86172         Reported by Andreas Jaeger.
86173
86174 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86175
86176         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86177         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86178         so `make install' also works in VPATH builds.
86179
86180 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86181
86182         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86183         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86184         can be used in subdirectories.
86185
86186 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86187
86188         * lib/modechange.c: Do not assume that mode_t uses the
86189         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86190         the other-execute bit of FOO even if S_IXOTH != 1.
86191
86192         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86193         WOTH, XOTH, ALLM): New macros.
86194         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86195          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86196         Use them.
86197         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86198         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86199         (mode_compile):
86200         No need to use uintmax_t; unsigned long is long enough.
86201         Don't bother to get suffix since we don't use it.
86202
86203 2000-12-26  Jim Meyering  <meyering@lucent.com>
86204
86205         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86206         better with autoheader.
86207
86208 2000-12-24  Jim Meyering  <meyering@lucent.com>
86209
86210         * lib/hash.c (is_prime): Return explicit boolean values.
86211         (hash_get_first): Return NULL to appease Irix5.6's 89.
86212         Reported by Nelson Beebe.
86213
86214 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86215
86216         * lib/localcharset.c (locale_charset): Add support for Win32.
86217
86218 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86219
86220         * lib/physmem.h, lib/physmem.c: New files.
86221
86222         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86223         (noinst_HEADERS): Add physmem.h.
86224
86225         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86226         't' for compatibility with Solaris 8 sort.
86227
86228 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86229
86230         * lib/config.charset: Add support for BeOS.
86231
86232 2000-12-17  Jim Meyering  <meyering@lucent.com>
86233
86234         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86235         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86236
86237 2000-12-16  Jim Meyering  <meyering@lucent.com>
86238
86239         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86240         N and M) would have treated it like `chown N:N FILE'.
86241
86242         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86243
86244 2000-12-16  Jim Meyering  <meyering@lucent.com>
86245
86246         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86247         SHELLS_FILE to a file name that's useful on djgpp systems.
86248         Include stdlib.h.
86249         (ADDITIONAL_DEFAULT_SHELLS): Define.
86250         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86251         Based mostly on a patch from Prashant TR.
86252
86253 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86254
86255         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86256         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86257         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86258
86259 2000-12-08  Andreas Schwab  <schwab@suse.de>
86260
86261         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86262         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86263
86264 2000-12-07  Jim Meyering  <meyering@lucent.com>
86265
86266         * lib/stripslash.c (ISSLASH): Define.
86267         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86268         `/'.
86269         From Prashant TR.
86270
86271         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86272         (dir_name_r): Declare this function as static.
86273         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86274         manifest itself on a name containing a mix of slashes and
86275         backslashes.
86276         Make this function work with names starting with a DOS-style
86277         drive letter and colon prefix.
86278         (dir_name): Append `.' if necessary.
86279         Based mostly on patches from Prashant TR and Eli Zaretskii.
86280
86281         * lib/dirname.h (dir_name_r): Remove prototype.
86282
86283 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86284
86285         * m4/off_t-format.m4: Remove this file.
86286         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86287
86288 2000-12-06  Jim Meyering  <meyering@lucent.com>
86289
86290         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86291         replacement strtoull, we may well need the replacement strtoul, too.
86292         Check for declarations of strtoul and strtoull.
86293         Check for strtol.  Mainly as a cue to cause automake to include
86294         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86295         Check for limits.h -- strtol.c needs it.
86296
86297 2000-12-05  Jim Meyering  <meyering@lucent.com>
86298
86299         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86300
86301 2000-12-04  Jim Meyering  <meyering@lucent.com>
86302
86303         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86304         Also include memory.h, stdlib.h, unistd.h if appropriate.
86305         Reported by Andreas Jaeger (conflicting declaration of malloc).
86306
86307 2000-12-02  Jim Meyering  <meyering@lucent.com>
86308
86309         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86310         * m4/jm-macros.m4 (jm_MACROS): require it.
86311
86312 2000-12-02  Jim Meyering  <meyering@lucent.com>
86313
86314         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86315
86316 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86317
86318         * lib/memrchr.c: Include <config.h> before any system include file.
86319
86320 2000-11-30  Jim Meyering  <meyering@lucent.com>
86321
86322         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86323
86324 2000-11-30  Jim Meyering  <meyering@lucent.com>
86325
86326         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86327
86328 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86329
86330         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86331
86332 2000-11-26  Jim Meyering  <meyering@lucent.com>
86333
86334         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86335
86336 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86337
86338         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86339         size of (size_t) -1; it's not portable.
86340
86341 2000-11-17  Jim Meyering  <meyering@lucent.com>
86342
86343         * lib/strstr.c: Update from GNU libc.
86344
86345 2000-11-17  Akim Demaille  <akim@epita.fr>
86346
86347         * lib/obstack.h: Formatting changes.
86348         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86349         prevent type checking.
86350         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86351         cast the value to (void *): assigning a `foo *' to a `void *'
86352         variable is valid.
86353         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86354
86355 2000-11-16  Jim Meyering  <meyering@lucent.com>
86356
86357         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86358
86359 2000-11-11  Jim Meyering  <meyering@lucent.com>
86360
86361         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86362
86363 2000-11-10  Jim Meyering  <meyering@lucent.com>
86364
86365         * lib/obstack.h: Update from GNU libc.
86366         * lib/obstack.c: Likewise.
86367
86368 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86369
86370         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86371
86372 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86373
86374         * lib/getusershell.c (setusershell): Use rewind rather than
86375         fseek/fseeko, to avoid configuration hassles with fseeko.
86376         Don't bother opening SHELLS_FILE if shellstream is NULL;
86377         it's not necessary.
86378
86379 2000-11-05  Jim Meyering  <meyering@lucent.com>
86380
86381         * lib/makepath.h (make_dir): Declare.
86382         * lib/makepath.c (make_dir): Remove `static' attribute.
86383         Tweak a comment.
86384
86385 2000-11-04  Jim Meyering  <meyering@lucent.com>
86386
86387         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86388
86389 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86390
86391         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86392         last one in a bucket, advance to the next bucket.
86393
86394 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86395
86396         * lib/fnmatch.c: Do not comment out all the code if we are using
86397         the GNU C library, because in some cases we are replacing buggy
86398         code in the GNU C library itself.
86399
86400 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86401
86402         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86403         (regex_compile): Catch bogus \(\1\).
86404
86405 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86406
86407         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86408         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86409         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86410
86411 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86412
86413         * lib/error.h, getline.h, modechange.h:
86414         Remove "2000" from Copyright line, as the file hasn't been
86415         changed this year other than in the copyright notice.
86416
86417         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86418         was changed this year.
86419
86420 2000-10-29  Jim Meyering  <meyering@lucent.com>
86421
86422         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86423         renaming.
86424         * m4/ls-mntd-fs.m4: Likewise
86425
86426 2000-10-29  Jim Meyering  <meyering@lucent.com>
86427
86428         * lib/xstat.in: Fix grammar in comment.
86429
86430 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86431
86432         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86433         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86434         doesn't define __restrict_arr.
86435
86436 2000-10-28  Jim Meyering  <meyering@lucent.com>
86437
86438         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86439         (jm_PREREQ_MEMCHR): New function.
86440
86441 2000-10-28  Jim Meyering  <meyering@lucent.com>
86442
86443         * lib/memchr.c: Update from libc.
86444         Adjust for portability:
86445         [HAVE_STDLIB_H]: Include stdlib.h.
86446         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86447         Undef __memchr, too.
86448         [!weak_alias]: Define __memchr to memchr.
86449
86450         * lib/regex.c: Update from libc.
86451         * lib/regex.h: Likewise.
86452         * lib/getopt1.c: Likewise.
86453         * lib/memcmp.c: Likewise.
86454
86455         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86456         Avoid using fseek, when possible -- it's broken by design.
86457         Patch by Ulrich Drepper.
86458
86459 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86460
86461         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86462         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86463         Giving in to popular pressure to shut up the compiler with casts.
86464
86465 2000-10-26  Jim Meyering  <meyering@lucent.com>
86466
86467         * lib/strftime.c: Update from libc.
86468
86469 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86470
86471         * regex.c: More `unsigned char' -> `re_char' changes.
86472         Also change several `int' into `re_wchar_t'.
86473         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86474         (PUSH_FAILURE_POINTER): Don't cast any more.
86475         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86476         We want GCC to complain, since this piece of code makes
86477         re_match non-reentrant, which *should* be fixed.
86478         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86479         (EXTEND_BUFFER): Use RETALLOC.
86480         (SET_LIST_BIT): Don't cast.
86481         (re_wchar_t): New type.
86482         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86483         that those two functions will always properly return.
86484         (IMMEDIATE_QUIT_CHECK): Cast to void.
86485         (analyse_first): Use recursion rather than an explicit stack.
86486         (re_compile_fastmap): Can't fail anymore.
86487         (re_search_2): Don't check re_compile_fastmap for failure.
86488         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86489         Now also sets the new value (passed in a new argument).
86490         (re_match_2_internal): Use it.
86491         Also, use a new var `reg' of type size_t when looping through regs
86492         rather than reuse the inappropriate `mcnt'.
86493
86494 2000-10-25  Jim Meyering  <meyering@lucent.com>
86495
86496         * lib/obstack.c: Update from libc.
86497
86498 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86499
86500         * regex.c (regex_compile): Change the way of handling a range from
86501         a char less than 256 to a char not less than 256.
86502
86503 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86504
86505         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86506         NT-Emacs only.
86507         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86508         so that re_search functions only quit when callers expect them to.
86509
86510 2000-10-23  Jim Meyering  <meyering@lucent.com>
86511
86512         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86513         wrong.  That set_locale call must not have any side effects.
86514         From Paul Eggert.
86515
86516 2000-10-22  Jim Meyering  <meyering@lucent.com>
86517
86518         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86519         [CYCLIC]: Remove now-unused definition.
86520
86521         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86522         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86523         Suggestion from Ulrich Drepper.
86524
86525 2000-10-21  Jim Meyering  <meyering@lucent.com>
86526
86527         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86528         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86529         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86530
86531 2000-10-21  Jim Meyering  <meyering@lucent.com>
86532
86533         * lib/dirname.c (memrchr): Declare if necessary.
86534         (dir_name): Remove the restriction that there be no
86535         trailing slashes.  Now, this code skips past them, effectively
86536         ignoring them.
86537         [TEST_DIRNAME] (main): New unit tests.
86538
86539         * lib/memrchr.c: New file from GNU libc.
86540         Undef __memrchr, too.
86541         [!weak_alias]: Define __memrchr to memrchr.
86542         Guard weak_alias use with `#ifdef weak_alias'.
86543
86544 2000-10-21  Jim Meyering  <meyering@lucent.com>
86545
86546         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86547         (dir_name): Use dir_name_r.
86548         * lib/dirname.h (dir_name_r): Declare it.
86549
86550 2000-10-17  Jim Meyering  <meyering@lucent.com>
86551
86552         * lib/quote.h (PARAMS): Define and use.
86553         Reported by Akim Demaille.
86554
86555         * lib/getopt.c: Update from libc.
86556
86557 2000-10-16  Jim Meyering  <meyering@lucent.com>
86558
86559         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86560         setlocale.
86561         From Jan Fedak.
86562
86563 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86564
86565         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86566
86567 2000-09-25  Jim Meyering  <meyering@lucent.com>
86568
86569         * lib/md5.h (rol): Define (from GnuPG).
86570
86571         * lib/sha.c: Give credit (GnuPG) where due.
86572         (M): Use rol rather than open-coding it.
86573         Add a FIXME comment.
86574
86575 2000-09-21  Jim Meyering  <meyering@lucent.com>
86576
86577         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86578         Reported by Michael Stone.
86579
86580 2000-09-20  Jim Meyering  <meyering@lucent.com>
86581
86582         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86583         (noinst_HEADERS): Add sha.h.
86584         Based on code from Scott G. Miller and from GnuPG.
86585
86586 2000-09-18  Jim Meyering  <meyering@lucent.com>
86587
86588         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86589         LIBS. Otherwise, everyone ends up linking with -lelf for some
86590         configurations.
86591         Reported by Mike Stone.
86592
86593 2000-09-15  Jim Meyering  <meyering@lucent.com>
86594
86595         * lib/regex.c: Update from libc.
86596
86597 2000-09-10  Jim Meyering  <meyering@lucent.com>
86598
86599         * lib/getopt.c (_getopt_internal): Update from glibc.
86600
86601 2000-09-09  Jim Meyering  <meyering@lucent.com>
86602
86603         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86604         think it should be used as a general replacement for isascii.
86605         * lib/fnmatch.c: Likewise.
86606         * lib/mbswidth.c: Likewise
86607         * lib/regex.c: Likewise.
86608
86609         Don't use atoi.
86610         * lib/userspec.c: Include sys/param.h and limits.h.
86611         Include xstrtol.h.
86612         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86613         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86614         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86615         UID, GID.  Check range.
86616
86617 2000-09-06  Jim Meyering  <meyering@lucent.com>
86618
86619         * lib/getopt.c (_getopt_internal): Update from glibc.
86620
86621 2000-08-30  Jim Meyering  <meyering@lucent.com>
86622
86623         * lib/strftime.c: Merge in changes from GNU libc.
86624
86625 2000-08-26  Jim Meyering  <meyering@lucent.com>
86626
86627         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86628         * m4/fpending.m4: New file.
86629
86630 2000-08-26  Jim Meyering  <meyering@lucent.com>
86631
86632         * lib/closeout.c: Include "__fpending.h".
86633         (close_stdout_status): Return right away if there's nothing to flush.
86634
86635         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86636         * lib/__fpending.c: New file.
86637         * lib/__fpending.h: New file.
86638
86639 2000-08-20  Jim Meyering  <meyering@lucent.com>
86640
86641         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86642         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86643         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86644
86645 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86646
86647         Improve fileutils installation on systems where running
86648         programs (like install) can't be unlinked.
86649         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86650         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86651
86652 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86653
86654         Standardize on "memory exhausted" instead of "Memory exhausted"
86655         or "virtual memory exhausted".
86656         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86657         "virtual memory exhausted".
86658         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86659         our own message.
86660         * lib/userspec.c (parse_user_spec): Likewise.
86661         * lib/bumpalloc.h: comment fix
86662         * lib/same.c, userspec.c: Include xalloc.h.
86663
86664         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86665         not char *const and pointing to a constant array.
86666         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86667         (xrealloc): Comment fix.
86668
86669         * lib/userspec.c (parse_user_spec):
86670         Don't translate a message until just before returning,
86671         to avoid unnecessary translation.
86672
86673 2000-08-07  Jim Meyering  <meyering@lucent.com>
86674
86675         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86676         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86677         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86678         getgroups.c, gethostname.c, getopt.h, group-member.c,
86679         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86680         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86681         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86682         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86683         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86684         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86685         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86686         yesno.c: Back out Copyright date changes for each file with no change
86687         this year.  This eases coordination with other programs using the same
86688         source code modules.  From Paul Eggert.
86689
86690 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86691
86692         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86693         not char, for compatibility with glibc 2.1.3 strftime.c.
86694
86695 2000-08-03  Greg McGary  <greg@mcgary.org>
86696
86697         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86698         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86699         (EXTEND_BUFFER): Use them.
86700
86701 2000-08-01  Jim Meyering  <meyering@lucent.com>
86702
86703         * lib/dirname.c (ISSLASH): Define.
86704         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86705         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86706         both `\' and `/' may be use as path separators.
86707         Based on a patch from Prashant TR.
86708
86709 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86710
86711         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86712         slot vector a constant, since it might get modified.
86713
86714 2000-07-31  Jim Meyering  <meyering@lucent.com>
86715
86716         * lib/xmalloc.c: Use `virtual memory exhausted', not
86717         `Memory exhausted'.
86718         * lib/obstack.c (print_and_abort): Likewise.
86719
86720 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86721
86722         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86723         buffer, so that the caller can always quote one small
86724         component of a "memory exhausted" message in slot 0.
86725         From a suggestion by Jim Meyering.
86726
86727 2000-07-30  Jim Meyering  <meyering@lucent.com>
86728
86729         * lib/makepath.c (make_path): Quote the other instance, too.
86730
86731         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86732         (STATIC_BUF_SIZE): Define.
86733         (quotearg_n_options): Use only statically allocated storage when
86734         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86735         than STATIC_BUF_SIZE.
86736
86737 2000-07-29  Jim Meyering  <meyering@lucent.com>
86738
86739         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86740         * lib/dirname.c (dir_name): Likewise.
86741
86742         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86743         `/'.
86744
86745         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86746         (dir_name): Assert that there are no trailing slashes.
86747
86748 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86749
86750         * lib/mbswidth.h (mbswidth): Add a flags argument.
86751         (mbswidth): New declaration.
86752         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86753         * lib/mbswidth.c (mbswidth): Add a flags argument.
86754         (mbsnwidth): New function.
86755
86756 2000-07-24  Jim Meyering  <meyering@lucent.com>
86757
86758         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86759
86760 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86761
86762         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86763
86764 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86765
86766         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86767         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86768         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86769         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86770         invoke multibyte primitives.
86771
86772 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86773
86774         * lib/quotearg.c:
86775         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86776         so that mbstate_t is always defined.
86777
86778         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86779         be 1 in at least one GCC installation, and this configuration
86780         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86781         performance on hosts that have mbrtowc but have only unibyte
86782         locales, but I assume these hosts are rare.
86783
86784 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86785
86786         * lib/mbswidth.c (_XOPEN_SOURCE):
86787         Don't define; this causes problems on Solaris 7.
86788         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86789
86790 2000-07-23  Jim Meyering  <meyering@lucent.com>
86791
86792         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86793         too: getgrgid, getpwuid, getuid.
86794
86795 2000-07-23  Jim Meyering  <meyering@lucent.com>
86796
86797         * lib/basename.c (base_name): Add an assertion.
86798
86799 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86800
86801         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86802         shadow its mbsinit function.
86803
86804 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86805
86806         * lib/mbswidth.h: New file.
86807         * lib/mbswidth.c: New file.
86808         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86809         (noinst_HEADERS): Add mbswidth.h.
86810
86811 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86812
86813         * lib/config.charset: Add support for FreeBSD. Improve support for
86814         HP-UX and IRIX 6.
86815
86816 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86817
86818         * m4/mbswidth.m4: New file.
86819         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86820
86821 2000-07-15  Jim Meyering  <meyering@lucent.com>
86822
86823         * lib/makepath.c: Include quote.h.
86824         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86825         corresponding argument in a `quote (...)' call.
86826         Give better diagnostics.
86827
86828         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86829         (noinst_HEADERS): Add quote.h.
86830
86831         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86832         from tar's src/misc.c.
86833         * lib/quote.h: New file.  Prototypes for same.
86834
86835 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86836
86837         From a suggestion by Bruno Haible.
86838         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86839         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86840         to decide whether to define the BeOS workaround macro;
86841         this adjusts to the change to AC_MBSTATE_T.
86842
86843 2000-07-14  Jim Meyering  <meyering@lucent.com>
86844
86845         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86846         jm_AC_TYPE_UINTMAX_T.
86847
86848 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86849
86850         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86851
86852         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86853         quotearg_buffer_restyled): Add support for
86854         clocale_quoting_style.  Undo previous change to
86855         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86856         and "{RIGHT QUOTATION MARK}" msgids.
86857
86858 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86859
86860         From a suggestion by Bruno Haible.
86861         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86862         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86863         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86864         and mbstate_t, to a single-part test that simply defines mbstate_t.
86865         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86866         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86867
86868 2000-07-10  Jim Meyering  <meyering@lucent.com>
86869
86870         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86871
86872         * m4/gnu-source.m4: Output to confdefs.h directly.
86873         Suggestion from Akim Demaille.
86874
86875 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86876
86877         The old behavior of quoting `like this' doesn't look good with
86878         newer, ISO-style fonts.  See:
86879         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86880
86881         Instead, quote "like this" by default.  Let the translator
86882         tailor the locale-specific quoting behavior by providing
86883         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86884
86885         * lib/quotearg.c (N_): New macro.
86886         (gettext_default): New function.
86887         (quotearg_buffer_restyled): Use
86888         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86889         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86890
86891 2000-07-09  Jim Meyering  <meyering@lucent.com>
86892
86893         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86894         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86895
86896         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86898
86899 2000-07-09  Jim Meyering  <meyering@lucent.com>
86900
86901         * lib/Most files: Update copyright dates to include 2000.
86902
86903 2000-07-08  Jim Meyering  <meyering@lucent.com>
86904
86905         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86906         if not defined.
86907         (xgethostname): Remove now-unnecessary #ifdef.
86908         Move declaration of `err' into loop where it's used.
86909
86910 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86911         and Bruno Haible  <haible@clisp.cons.org>
86912
86913         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86914         only if the test for an object-type mbstate_t fails.  This
86915         prevents us from mistakenly reporting that mbstate_t is a
86916         system object type after we "#define mbstate_t int" to work
86917         around its lack.
86918
86919 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86920         and Bruno Haible  <haible@clisp.cons.org>
86921
86922         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86923
86924 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86925
86926         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86927         to strerror_r.
86928         Include <ctype.h> for use of isalpha.
86929
86930 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86931
86932         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86933         by allocating a larger buffer. Test the gethostname return value for
86934         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86935         returns an error and ENAMETOOLONG isn't defined.
86936
86937 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86938
86939         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86940         dimension.
86941
86942 2000-07-04  Jim Meyering  <meyering@lucent.com>
86943
86944         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86945         of the deprecated AC_CHECKING.
86946
86947 2000-07-04  Jim Meyering  <meyering@lucent.com>
86948
86949         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86950         Reported by Bruno Haible.
86951
86952 2000-07-04  Jim Meyering  <meyering@lucent.com>
86953
86954         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86955         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86956         lacks mbrtowc.
86957
86958 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86959
86960         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86961         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86962
86963 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86964         and Bruno Haible  <haible@clisp.cons.org>
86965
86966         * lib/quotearg.c (mbrtowc):
86967         Assign to *pwc, and return 1 only if result is nonzero.
86968         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86969
86970 2000-07-03  Jim Meyering  <meyering@lucent.com>
86971
86972         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86973
86974 2000-07-03  Jim Meyering  <meyering@lucent.com>
86975
86976         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86977         This is necessary to get a definition of e.g., UTMP_FILE on
86978         HP-UX 10.20.
86979         From Bob Proulx.
86980
86981 2000-07-02  Jim Meyering  <meyering@lucent.com>
86982
86983         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86984
86985         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86986         AC_LIBOBJ(function_name).
86987         * m4/chown.m4: Likewise.
86988         * m4/fnmatch.m4: Likewise.
86989         * m4/ftruncate.m4: Likewise.
86990         * m4/getgroups.m4: Likewise.
86991         * m4/getline.m4: Likewise.
86992         * m4/group-member.m4: Likewise.
86993         * m4/jm-macros.m4: Likewise.
86994         * m4/lstat.m4: Likewise.
86995         * m4/malloc.m4: Likewise.
86996         * m4/memcmp.m4: Likewise.
86997         * m4/nanosleep.m4: Likewise.
86998         * m4/putenv.m4: Likewise.
86999         * m4/realloc.m4: Likewise.
87000         * m4/regex.m4: Likewise.
87001         * m4/stat.m4: Likewise.
87002         * m4/strftime.m4: Likewise.
87003
87004 2000-07-02  Jim Meyering  <meyering@lucent.com>
87005
87006         * lib/quotearg.c (mbstate_t): Don't define here.
87007
87008 2000-07-02  Jim Meyering  <meyering@lucent.com>
87009
87010         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87011
87012 2000-07-01  Jim Meyering  <meyering@lucent.com>
87013
87014         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87015
87016 2000-07-01  Jim Meyering  <meyering@lucent.com>
87017
87018         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87019         problem.
87020
87021 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87022
87023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87024         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87025
87026 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87027
87028         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87029         per change in ../m4/ls-mntd-fs.m4.
87030         (read_filesystem_list): Ignore symbolic links.
87031
87032 2000-06-29  Jim Meyering  <meyering@lucent.com>
87033
87034         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87035         for declaration of strcmp.
87036
87037         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87038
87039         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87040         Avoid warning by casting result to `char *' to remove `const'.
87041
87042 2000-06-28  Jim Meyering  <meyering@lucent.com>
87043
87044         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87045         included by quotearg.c, for which we perform this test.  From
87046         Bruno Haible.
87047
87048 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87049
87050         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87051         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87052         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87053
87054 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87055
87056         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87057
87058 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87059
87060         savedir now sets errno on failure and invokes xmalloc to get memory.
87061         Fix a couple of other minor bugs while we're at it.
87062
87063         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87064         (NAMLEN): Remove macro.
87065         (malloc, realloc): Remove decls.
87066         (stpcpy): Likewise.
87067         ("xalloc.h"): Include.
87068         (NAME_SIZE_DEFAULT): New macro.
87069         (savedir): Use xmalloc / xrealloc to allocate memory.
87070         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87071         Skip "" directory entries.
87072         Use strlen to calculate directory entry length, since the old method
87073         is rarely used these days and isn't worth supporting.
87074         Don't use a pointer after freeing it.
87075         Check for integer overflow when calculating allocation size.
87076         Use memcpy to copy entries, instead of stpcpy.
87077         Set errno properly when returning NULL.
87078         Check for readdir error.
87079
87080 2000-06-26  Jim Meyering  <meyering@lucent.com>
87081
87082         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87083
87084 2000-06-25  Jim Meyering  <meyering@lucent.com>
87085
87086         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87087         Linux header bug when _XOPEN_SOURCE is defined to 500.
87088
87089 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87090
87091         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87092         deficiency.
87093
87094 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87095
87096         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87097         Include xalloc.h.
87098         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87099
87100 2000-06-24  Jim Meyering  <meyering@lucent.com>
87101
87102         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87103         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87104         for which strerror does return char*, but which lacks a conveniently
87105         accessible declaration of the function.  If the compile-test says
87106         strerror_r doesn't work, then resort to a `run'-test that works on
87107         BeOS and segfaults on DEC Unix.
87108
87109 2000-06-24  Jim Meyering  <meyering@lucent.com>
87110
87111         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87112
87113 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87114
87115         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87116         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87117
87118 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87119
87120         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87121         (mbrtowc, mbstate_t): Define substitutes if
87122         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87123         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87124         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87125
87126 2000-06-23  Jim Meyering  <meyering@lucent.com>
87127
87128         * m4/afs.m4: Add missing AC_MSG_RESULT.
87129         Reported by Bruno Haible.
87130
87131         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87132         Suggestion from Bruno Haible.
87133
87134 2000-06-23  Jim Meyering  <meyering@lucent.com>
87135
87136         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87137
87138 2000-06-21  Jim Meyering  <meyering@lucent.com>
87139
87140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87141
87142 2000-06-21  Jim Meyering  <meyering@lucent.com>
87143
87144         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87145         (noinst_HEADERS): Add getstr.h.
87146
87147         * lib/getline.c (getstr): Move into a separate file.
87148         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87149         the following changes: new parameter, delim2; both delim[12]
87150         parameters have type `int', not `char'.  The latter would lose
87151         with 8-bit delimiters.
87152         * lib/getstr.h: New file.
87153
87154 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87155
87156         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87157         than 1024, return a memory chunk of least possible size, instead
87158         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87159         Use free/xmalloc instead of xrealloc to avoid copying for very long
87160         paths.
87161
87162 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87163
87164         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87165         the empty string.
87166
87167 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87168
87169         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87170         address, not strdup.  Include <stdlib.h> and don't declare free().
87171
87172 2000-06-19  Jim Meyering  <meyering@lucent.com>
87173
87174         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87175
87176 2000-06-18  Jim Meyering  <meyering@lucent.com>
87177
87178         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87179
87180         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87181         `checking whether...' message to be consistent with that of the
87182         lstat test.
87183
87184 2000-06-18  Jim Meyering  <meyering@lucent.com>
87185
87186         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87187         Besides, these days every porting target provides a mkdir function.
87188
87189         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87190         needed. (this snippet comes from src/system.h).
87191
87192 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87193
87194         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87195
87196 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87197
87198         * lib/human.c (adjust_value): New function.
87199         (human_readable_inexact): Apply rounding style even when
87200         printing approximate values.
87201
87202 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87203
87204         * lib/human.c (human_readable_inexact): Allow an input block
87205         size that is not a multiple of the output block size, and vice versa.
87206         Reported by Piergiorgio Sartor.
87207
87208 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87209
87210         * lib/getdate.y (get_date): Apply relative times after time
87211         zone indicator, not before.  Reported by Todd A. Jacobs.
87212
87213 2000-06-13  Jim Meyering  <meyering@lucent.com>
87214
87215         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87216
87217         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87218
87219 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87220
87221         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87222
87223 2000-06-12  Jim Meyering  <meyering@lucent.com>
87224
87225         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87226         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87227         optional argument.
87228         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87229         the optional argument, `lib'.
87230
87231 2000-06-08  Jim Meyering  <meyering@lucent.com>
87232
87233         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87234
87235 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87236
87237         Rewrite largefile configuration so that we don't need to run
87238         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87239         AC_CANONICAL_HOST in configure.in -- jmm]
87240
87241         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87242         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87243         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87244         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87245         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87246         All uses changed.
87247         Instead of inspecting the output of getconf, try to compile the
87248         test program without and with the macro definition.
87249         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87250         for getconf.  Instead, check for the needed flags by compiling
87251         test programs.
87252
87253 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87254
87255         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87256
87257 2000-06-04  Jim Meyering  <meyering@lucent.com>
87258
87259         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87260         SunOS 4.1.4 for which gid_t is an unsigned type.
87261
87262 2000-06-03  Jim Meyering  <meyering@lucent.com>
87263
87264         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87265         now that autoconf requires that.
87266
87267         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87268         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87269         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87270
87271 2000-06-03  Jim Meyering  <meyering@lucent.com>
87272
87273         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87274
87275 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87276
87277         * m4/glibc21.m4: New file.
87278         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87279
87280 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87281
87282         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87283         newer, don't install charset.alias.
87284         * lib/config.charset: Change the Linux/glibc rules so they become empty
87285         on glibc-2.1 or newer.
87286
87287 2000-06-02  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/mountlist.c: Back out last change.  Instead, do this...
87290         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87291         me_dummy member using the same `ignore'-testing code.
87292         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87293         fs_type strings.
87294         From Mark D. Roth.
87295
87296 2000-05-29  Jim Meyering  <meyering@lucent.com>
87297
87298         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87299         mounts with the `ignore' attribute.  Based on a patch from
87300         Mark D. Roth.
87301
87302 2000-05-28  Jim Meyering  <meyering@lucent.com>
87303
87304         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87305         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87306         * m4/stat.m4: Likewise.
87307         * m4/lstat.m4: Likewise.
87308         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87309
87310         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87311         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87312
87313 2000-05-26  Jim Meyering  <meyering@lucent.com>
87314
87315         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87316
87317 2000-05-24  Jim Meyering  <meyering@lucent.com>
87318
87319         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87320         autoconf requires that.
87321         * m4/lib-check.m4: Likewise.
87322         * m4/jm-macros.m4: Likewise.
87323         * m4/strftime.m4: Likewise.
87324
87325         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87326         AC_CHECK_DECLS, now that autoconf requires that.
87327
87328 2000-05-22  Jim Meyering  <meyering@lucent.com>
87329
87330         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87331         * m4/lstat.m4: Likewise.
87332
87333 2000-05-22  Jim Meyering  <meyering@lucent.com>
87334
87335         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87336
87337 2000-05-20  Jim Meyering  <meyering@lucent.com>
87338
87339         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87340         (jm_PREREQ): Use it.
87341
87342 2000-05-18  Jim Meyering  <meyering@lucent.com>
87343
87344         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87345         back, too, since it may have been modified by allocate_entry.
87346         (hash_delete): Rewrite to use neither the assignment operator
87347         nor the comma operator in an if-expression.
87348
87349 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87350
87351         * lib/closeout.c:
87352         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87353         Remove; no longer needed.
87354         "quotearg.h": Add include.
87355         (file_name): Do not bother to explicitly initialize to NULL; it's less
87356         efficient on some hosts.
87357         (close_stdout_status): Remove test as to whether stdout was already
87358         closed; it breaks for the case "echo x | sort >&-".
87359         Quote file name colons.
87360         Do not assume that _("write error") lacks format strings.
87361
87362 2000-05-15  Jim Meyering  <meyering@lucent.com>
87363
87364         * lib/version-etc.c (version_etc_copyright): Update the copyright
87365         string used in all --version output.
87366
87367 2000-05-14  Jim Meyering  <meyering@lucent.com>
87368
87369         * lib/closeout.c (close_stdout_set_file_name): New function.
87370         (close_stdout_status): Use new file-scoped global.
87371         Return right away if fstat says the stdout file descriptor is invalid.
87372         * lib/closeout.h (close_stdout_set_file_name): Declare.
87373
87374 2000-05-10  Jim Meyering  <meyering@lucent.com>
87375
87376         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87377         (close_stdout_set_status): New function.
87378         * lib/closeout.h (close_stdout_set_status): Declare.
87379
87380 2000-05-09  Jim Meyering  <meyering@lucent.com>
87381
87382         * m4/gettext.m4: Rename this...
87383         * m4/libintl.m4: ...to this.
87384
87385 2000-05-08  Jim Meyering  <meyering@lucent.com>
87386
87387         * lib/long-options.c: Don't include closeout.h.
87388         (parse_long_options): Don't call close_stdout for --version.
87389
87390 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87391
87392         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87393         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87394         2.1.3 bug.  This avoids a clash when files like regex.c define
87395         _GNU_SOURCE.
87396
87397 2000-05-06  Jim Meyering  <meyering@lucent.com>
87398
87399         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87400         (AC_REPLACE_FUNCS): Add strnlen.
87401
87402         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87403         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87404
87405         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87406         AC_SEARCH_LIBS call for nanosleep.
87407         (LIB_NANOSLEEP): Set and AC_SUBST.
87408
87409 2000-05-06  Jim Meyering  <meyering@lucent.com>
87410
87411         * lib/strnlen.c: Undefine __strnlen and strnlen.
87412         [!weak_alias]: Define __strnlen to strnlen.
87413
87414         * lib/atexit.c: New file, from libiberty.
87415
87416 2000-05-06  Jim Meyering  <meyering@lucent.com>
87417
87418         * lib/closeout.c (close_stdout_status): Also check for errors on the
87419         stderr stream.
87420
87421 2000-05-05  Jim Meyering  <meyering@lucent.com>
87422
87423         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87424         AC_SEARCH_LIBS call for clock_gettime.
87425         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87426
87427         * m4/search-libs.m4: Update from autoconf.
87428
87429         su doesn't work on Solaris 2.6.
87430         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87431         <shadow.h>.  Reported by Dragos Harabor.
87432
87433 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87434
87435         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87436         memcpy instead of xmalloc, xrealloc, path_concat.
87437         (locale_charset): Treat empty environment variables as absent.
87438         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87439
87440 2000-05-04  Jim Meyering  <meyering@lucent.com>
87441
87442         * lib/getopt.c: Update from glibc.
87443         * lib/obstack.c: Likewise.
87444         * lib/obstack.h: Likewise.
87445         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87446         file
87447
87448         * lib/regex.h: Likewise.
87449         * lib/strndup.c: Likewise.
87450         * lib/strnlen.c: New file, from glibc.
87451
87452 2000-05-03  Jim Meyering  <meyering@lucent.com>
87453
87454         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87455
87456 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87457
87458         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87459         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87460         compile-time test, rather than inspecting host and OS, to
87461         decide whether to define _LARGEFILE_SOURCE.
87462
87463 2000-05-01  Jim Meyering  <meyering@lucent.com>
87464
87465         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87466
87467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87468         Based on a patch from Bruno Haible.
87469
87470 2000-05-01  Jim Meyering  <meyering@lucent.com>
87471
87472         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87473
87474 2000-04-29  Jim Meyering  <meyering@lucent.com>
87475
87476         * lib/path-concat.c: Declare strdup only if it's not defined.
87477         * lib/canon-host.c: Likewise.
87478
87479 2000-04-28  Jim Meyering  <meyering@lucent.com>
87480
87481         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87482         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87483         is included first, then limits.h is included by locale.h by libintl.h.
87484         From John David Anglin.
87485
87486 2000-04-25  Jim Meyering  <meyering@lucent.com>
87487
87488         * lib/makepath.c (S_IRWXUGO): Define.
87489         (make_path): Always perform explicit chmod if MODE specifies any
87490         of the `special' permission bits.  Prompted by a bug report against
87491         install from Mate Wierdl and Joost van Baal.
87492
87493 2000-04-18  Jim Meyering  <meyering@lucent.com>
87494
87495         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87496         (jm_PREREQ): Use it.
87497
87498 2000-04-18  Jim Meyering  <meyering@lucent.com>
87499
87500         * lib/README: New file.
87501
87502         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87503         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87504
87505 2000-04-17  Jim Meyering  <meyering@lucent.com>
87506
87507         Get it right :-)
87508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87509         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87510         Suggestion from Akim Demaille.
87511
87512 2000-04-17  Jim Meyering  <meyering@lucent.com>
87513
87514         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87515         the definition of it to rpl_strftime also defined-away the system's
87516         declaration.
87517
87518 2000-04-15  Jim Meyering  <meyering@lucent.com>
87519
87520         Use `C' to denote so-called `contiguous' files, the same way
87521         that tar does.
87522         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87523         (ftypelet): Use S_ISCTG.
87524         From Michael Deutschmann.
87525
87526 2000-04-14  Jim Meyering  <meyering@lucent.com>
87527
87528         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87529         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87530         clobbered.
87531
87532 2000-04-14  Jim Meyering  <meyering@lucent.com>
87533
87534         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87535
87536 2000-04-13  Jim Meyering  <meyering@lucent.com>
87537
87538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87539         AH_VERBATIM to insert required #ifndef into config.h.in.
87540         Suggestion from Akim Demaille.
87541
87542 2000-04-12  Jim Meyering  <meyering@lucent.com>
87543
87544         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87545         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87546         Christian Krackowizer.
87547
87548         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87549         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87550         (AC_SYS_LARGEFILE): Require.
87551         (AM_C_PROTOTYPES): Require.
87552
87553 2000-04-08  Jim Meyering  <meyering@lucent.com>
87554
87555         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87556         names don't conflict.  Reported by Eli Zaretskii.
87557
87558 2000-04-07  Jim Meyering  <meyering@lucent.com>
87559
87560         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87561         sys/types.h, to work around system header problems on AIX 3.2.5.
87562         From Bruno Haible.
87563
87564 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87565
87566         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87567         bug.  Deal with the different error behavior of Irix iconv.
87568
87569 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87570
87571         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87572         IRIX if the installer said otherwise.
87573
87574 2000-04-05  Jim Meyering  <meyering@lucent.com>
87575
87576         Portability tweaks required for ultrix4.3.
87577         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87578         (jm_CHECK_DECLS): Add getutent to the list of functions.
87579         (_jm_DECL_HEADERS): Add utmpx.h.
87580         From John David Anglin.
87581
87582         * m4/strftime.m4: Back out the 2000-04-02 change.
87583         Instead of that change, simply undefine putenv in the test program.
87584
87585 2000-04-05  Jim Meyering  <meyering@lucent.com>
87586
87587         Portability tweaks required for ultrix4.3.
87588         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87589         getutent.
87590         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87591         * lib/canon-host.c: Declare strdup.
87592         * lib/path-concat.c: Likewise.
87593         From John David Anglin.
87594
87595 2000-04-04  Jim Meyering  <meyering@lucent.com>
87596
87597         Be more DOS 8.3-friendly.
87598         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87599         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87600         * lib/Makefile.am: Reflect renaming.
87601         Reported by Eli Zaretskii.
87602
87603         Use a temporary file name that won't clash with `charset.alias'
87604         in the DOS 8.3 name space.
87605         * lib/Makefile.am (charset_tmp): Define.
87606         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87607         (uninstall-local): Likewise.
87608         Reported by Eli Zaretskii.
87609
87610 2000-04-03  Jim Meyering  <meyering@lucent.com>
87611
87612         * m4/gettext.m4: Fix typo in comment.
87613
87614         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87615         textutils/configure.in).  Suggestion from Paul Eggert.
87616         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87617
87618 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87619
87620         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87621         variable in the shell rather than using putenv, which isn't
87622         portable.  This avoids the configure-time inter-test dependency
87623         on the potentially-renamed putenv function.
87624
87625 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87626
87627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87628         before checking struct stat.st_blksize, so that
87629         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87630
87631 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87632
87633         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87634         since strftime.c uses HAVE_STRFTIME to decide whether to use
87635         the underlying strftime.
87636
87637 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87638
87639         * lib/time/strftime.c (my_strftime): Make sure we call the system
87640         strftime, not ourselves, when invoking the underlying strftime.
87641
87642 2000-03-24  Jim Meyering  <meyering@lucent.com>
87643
87644         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87645         (charset_alias): Define.
87646         (install-exec-local): Factor out common code.
87647         (uninstall-local): Split lines longer than 80.
87648         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87649         (SUFFIXES): Define.
87650         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87651         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87652
87653 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87654
87655         * lib/config.charset: Output a line containing "Packages using this
87656         file".
87657         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87658         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87659         ref-del.sed): New rules.
87660
87661 2000-03-17  Jim Meyering  <meyering@lucent.com>
87662
87663         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87664         Otherwise, include <strings.h>
87665
87666 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87667
87668         * lib/unicodeio.c (utf8_wctomb): New function.
87669         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87670         format instead of in UCS-4 with platform dependent endianness.
87671
87672 2000-03-10  Jim Meyering  <meyering@lucent.com>
87673
87674         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87675         From Marco Franzen.
87676
87677 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87678
87679         * lib/savedir.c (savedir): Work even if directory size is
87680         negative; this can happen with some screwy NFS configurations.
87681
87682 2000-03-06  Jim Meyering  <meyering@lucent.com>
87683
87684         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87685         if it's NULL (because we ran out of memory).  From Bruno Haible.
87686
87687 2000-03-05  Jim Meyering  <meyering@lucent.com>
87688
87689         * lib/localcharset.c ("path-concat.h"): Include.
87690         (get_charset_aliases): Use path_concat instead of ANSI string
87691         concatenation.
87692
87693         * lib/unicodeio.h (PARAMS): Define.
87694         Use it to guard prototype.
87695
87696 2000-03-04  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87699         for lib/localcharset.c.
87700
87701 2000-03-04  Jim Meyering  <meyering@lucent.com>
87702
87703         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87704         installing into it.
87705         (uninstall-local): Uncomment this rule so `make distcheck' works
87706         once again.
87707
87708         * lib/unicodeio.c (<errno.h>): Include it.
87709         (errno): Declare if not defined.
87710
87711         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87712
87713         * lib/config.charset: New version, incorporating remarks from a linux
87714         i18n mailing list.  From Bruno Haible.
87715
87716 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87717
87718         * m4/codeset.m4: New file.
87719         * m4/iconv.m4: New file.
87720         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87721
87722 2000-03-03  Jim Meyering  <meyering@lucent.com>
87723
87724         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87725
87726 2000-03-02  Jim Meyering  <meyering@lucent.com>
87727
87728         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87729         the messages come out on separate lines.
87730
87731         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87732         rather than jm_CHECK_DECLARATIONS.
87733         * m4/decl.m4: Remove now-unused file.
87734
87735         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87736         geteuid.
87737
87738 2000-03-02  Jim Meyering  <meyering@lucent.com>
87739
87740         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87741
87742 2000-03-01  Jim Meyering  <meyering@lucent.com>
87743
87744         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87745         * lib/unicodeio.c: Likewise.
87746
87747 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87748
87749         * lib/config.charset: New file.
87750         * lib/localcharset.c: New file.
87751         * lib/unicodeio.h, lib/unicodeio.c: New files.
87752         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87753         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87754         (noinst_HEADERS): Add unicodeio.h.
87755         (all-local, install-exec-local, charset.alias): New targets.
87756
87757 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87758
87759         * lib/quotearg.c (ALERT_CHAR): New macro.
87760         (quotearg_buffer_restyled): Use it.
87761
87762 2000-02-27  Jim Meyering  <meyering@lucent.com>
87763
87764         * m4/check-decl.m4: Add getenv to the list.
87765
87766 2000-02-27  Jim Meyering  <meyering@lucent.com>
87767
87768         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87769         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87770
87771         * lib/backupfile.c: Guard inclusion of stdlib.h with
87772         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87773         Declare malloc if needed.
87774
87775         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87776         `#ifndef HAVE_DECL..'
87777         now that autoconf always defines the HAVE_DECL_ symbols.
87778         * lib/human.c: Likewise.
87779         * lib/same.c: Likewise.
87780         * lib/strtoumax.c: Likewise.
87781
87782         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87783         declaration check was not run.
87784         * lib/hash.c: Likewise.
87785         * lib/human.c: Likewise.
87786         * lib/same.c: Likewise.
87787         * lib/strtoumax.c: Likewise.
87788
87789         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87790         `.', then first look up the entire `.'-containing string as a login
87791         name.
87792
87793 2000-02-23  Jim Meyering  <meyering@lucent.com>
87794
87795         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87796         in place of my hack.
87797
87798 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87799
87800         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87801         (textint): New typedef.
87802         (parser_control): Member year changed from int to textint.
87803         All uses changed.
87804         (YYSTYPE): Removed; replaced by %union with int and textint members.
87805         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87806         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87807         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87808         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87809         (date, number, to_year): Use width of number in digits, not its value,
87810         to determine whether it's a 2-digit year, or a 2-digit time.
87811         (yylex): Store number of digits of numeric tokens.
87812         Reported by John Kendall.
87813
87814         (parser_control): Changed from struct parser_control to typedef (for
87815         consistency).  All uses changed.
87816
87817         (tID): Removed; not used.
87818         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87819
87820 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87821
87822         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87823         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87824
87825 2000-02-12  Jim Meyering  <meyering@lucent.com>
87826
87827         * lib/userspec.c (ISDIGIT): Define it.
87828         (isdigit): Remove definition.
87829         (is_number): Use ISDIGIT, not isdigit.
87830         <libintl.h>: Include.
87831         (_ and N_): Define.
87832         (parse_user_spec): Mark translatable strings.
87833
87834 2000-02-10  Jim Meyering  <meyering@lucent.com>
87835
87836         With these changes, nanosleep.[ch] are finally enough like the other
87837         lib/* replacement files to compile on a few more losing systems.
87838
87839         * lib/nanosleep.h: Don't include config.h.
87840         Remove prototype from declaration of nanosleep.
87841         (PARAMS): Remove now-unneeded definition.
87842         * lib/nanosleep.c: #undef nanosleep.
87843         (rpl_nanosleep): Rename from nanosleep.
87844
87845 2000-02-10  Jim Meyering  <meyering@lucent.com>
87846
87847         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87848         gnu_nanosleep to rpl_nanosleep.
87849
87850 2000-02-09  Jim Meyering  <meyering@lucent.com>
87851
87852         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87853         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87854
87855 2000-02-08  Akim Demaille  <akim@epita.fr>
87856
87857         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87858         `[' and `]' and remove uses of `changequote'.
87859         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87860         (AC_SYS_LARGEFILE): Likewise.
87861         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87862         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87863         of changequote.
87864         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87865         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87866         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87867         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87868
87869 2000-02-05  Jim Meyering  <meyering@lucent.com>
87870
87871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87872         Remove explicit use of AC_HEADER_TIME.  It is required by
87873         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87874         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87875         in autoconf whereby the expansion of the latter ended up preceding
87876         the expansion of its prerequisite, AC_HEADER_TIME.
87877         Reported by Volker Borchert.
87878
87879 2000-02-03  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87882
87883 2000-02-03  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87886         rather than with `#if HAVE_UTMPNAME'.
87887
87888 2000-02-02  Jim Meyering  <meyering@lucent.com>
87889
87890         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87891         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87892         Reported by Eli Zaretskii.
87893
87894 2000-02-01  Jim Meyering  <meyering@lucent.com>
87895
87896         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87897
87898 2000-01-31  Jim Meyering  <meyering@lucent.com>
87899
87900         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87901         functions.  Add the time.h and sys/time.h headers along with the
87902         AC_REQUIRE'ment of AC_HEADER_TIME.
87903
87904 2000-01-31  Jim Meyering  <meyering@lucent.com>
87905
87906         * lib/nanosleep.h (nanosleep): Guard declaration with
87907         `#if ! HAVE_DECL_NANOSLEEP'.
87908         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87909         the declaration in that vendor's sys/timers.h.
87910         Reported by Christian Krackowizer.
87911
87912         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87913         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87914         (ISPRINT): Likewise.
87915         Reported by Tom Tromey.
87916
87917 2000-01-30  Jim Meyering  <meyering@lucent.com>
87918
87919         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87920
87921         * m4/prereq.m4 (utmp_includes): Define.
87922         Check for ut_user and ut_name members in both struct utmpx
87923         and struct utmp.
87924
87925 2000-01-30  Jim Meyering  <meyering@lucent.com>
87926
87927         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87928         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87929         header files where only utmpx.ut_user is declared.
87930
87931         * lib/readutmp.h (UT_USER): Define.
87932
87933 2000-01-29  Jim Meyering  <meyering@lucent.com>
87934
87935         * m4/lib-check.m4: New file containing library-related checks from
87936         fileutils and sh-utils (textutils had none).
87937
87938 2000-01-28  Jim Meyering  <meyering@lucent.com>
87939
87940         * m4/perl.m4: Change format of warning message to look more like that
87941         from the missing script.  Suggestion from François Pinard.
87942
87943 2000-01-25  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87946         well as time.h in the compile check.
87947         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87948         Fix typo in cross-compiling case: s/yes/no/.
87949
87950 2000-01-23  Jim Meyering  <meyering@lucent.com>
87951
87952         * m4/jm-macros.m4: Move df-related tests here from
87953         fileutils/configure.in
87954
87955         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87956         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87957
87958         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87959         s/space/ac_fsusage_space/.
87960         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87961
87962         * m4/ftruncate.m4: New file (derived from part of
87963         fileutils/configure.in).
87964         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87965         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87966
87967         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87968         AC_SUBST these here, rather than just in sh-util/configure.in, so
87969         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87970         all the same.
87971         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87972         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87973         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87974         (AC_SUBST(POW_LIBM)): Likewise.
87975         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87976
87977 2000-01-23  Jim Meyering  <meyering@lucent.com>
87978
87979         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87980         obstack.c.
87981
87982 2000-01-22  Jim Meyering  <meyering@lucent.com>
87983
87984         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87985
87986         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87987
87988         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87989         configure.in
87990         (AC_CHECK_HEADERS): Likewise for sh-utils.
87991         (AC_CHECK_HEADERS): Likewise for textutils.
87992         Merge the three lists of headers.
87993
87994         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87995         from fileutils' configure.in.
87996
87997         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87998         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87999         check-decl.m4.
88000
88001         * m4/check-decl.m4: Use #if rather than #ifdef.
88002         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88003         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88004         (_jm_DECL_HEADERS): Define new function.
88005         (jm_CHECK_DECLARATIONS): Require it.
88006
88007 2000-01-22  Jim Meyering  <meyering@lucent.com>
88008
88009         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88010         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88011         Required for some AIX systems.  Reported by Christian Krackowizer.
88012         [TESTING] (main): New function.
88013
88014         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88015         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88016         letters.
88017
88018         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88019         iswprint.
88020
88021         * lib/strverscmp.c (ISDIGIT): Define.
88022         (strverscmp): Use ISDIGIT, not isdigit.
88023
88024 2000-01-19  Jim Meyering  <meyering@lucent.com>
88025
88026         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88027         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88028         defines `struct timespec' in <sys/time.h>
88029
88030         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88031         Thanks to Akim for explaining.
88032
88033 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88034
88035         * lib/nanosleep.c (nanosleep):
88036         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88037         POSIX.1 doesn't require SA_INTERRUPT and some systems
88038         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88039         it's been part of POSIX.1 since day 1 (in 1988).
88040
88041 2000-01-17  Jim Meyering  <meyering@lucent.com>
88042
88043         * lib/interlock: Remove unused file.  Reported by François Pinard.
88044
88045 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88046
88047         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88048         alert, backslash, formfeed, and vertical tab unnecessarily in
88049         shell quoting style.
88050
88051 2000-01-16  Jim Meyering  <meyering@lucent.com>
88052
88053         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88054         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88055         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88056         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88057
88058 2000-01-16  Jim Meyering  <meyering@lucent.com>
88059
88060         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88061         because the latter didn't work.
88062
88063 2000-01-15  Jim Meyering  <meyering@lucent.com>
88064
88065         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88066         (AC_REPLACE_FUNCS): Add memcpy and memset.
88067         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88068         Add strpbrk.
88069         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88070
88071 2000-01-12  Jim Meyering  <meyering@lucent.com>
88072
88073         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88074         (jm_PREREQ): Use it.
88075         (jm_PREREQ_READUTMP): New macro.
88076         (jm_PREREQ): Use it.
88077
88078 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88079
88080         Quote multibyte characters correctly.
88081         * m4/c-bs-a.m4: New file.
88082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88083         (jm_PREREQ): Use it.
88084
88085 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88086
88087         * m4/uintmax_t.m4: Port to autoconf 2.13.
88088
88089 2000-01-08  Jim Meyering  <meyering@ascend.com>
88090
88091         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88092         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88093
88094 2000-01-04  Jim Meyering  <meyering@ascend.com>
88095
88096         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88097         jm_STRUCT_DIRENT_D_TYPE.
88098         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88099         jm_STRUCT_DIRENT_D_INO.
88100         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88101         jm_STRUCT_UTIMBUF.
88102         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88103         renamings.
88104         * m4/utime.m4: Likewise.
88105
88106         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88107         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88108
88109 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88110
88111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88112         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88113
88114 2000-01-02  Jim Meyering  <meyering@ascend.com>
88115
88116         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88117         remember if this is necessary.
88118
88119 1999-12-26  Jim Meyering  <meyering@ascend.com>
88120
88121         * m4/jm-macros.m4: Use it here.
88122         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88123
88124 1999-12-23  Jim Meyering  <meyering@ascend.com>
88125
88126         * m4/jm-macros.m4: Check for clock_gettime (moved from
88127         fileutils/configure.in)
88128         Check for gettimeofday.
88129
88130 1999-12-20  Jim Meyering  <meyering@ascend.com>
88131
88132         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88133         autoconf-2.14a-1999-12-20.
88134
88135 1999-12-19  Jim Meyering  <meyering@ascend.com>
88136
88137         * m4/lstat-slash.m4: New file.
88138         * m4/jm-macros.m4: Use the new macro:
88139         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88140
88141 1999-12-07  Jim Meyering  <meyering@ascend.com>
88142
88143         * m4/perl.m4: Require that File::Compare be available, too.
88144         Too many systems seem to lack it.
88145
88146         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88147         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88148
88149 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88150
88151         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88152         problem with the QNX 4.25 shell, which doesn't propagate exit
88153         status of failed commands inside shell assignments.
88154
88155 1999-11-17  Jim Meyering  <meyering@ascend.com>
88156
88157         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88158
88159 1999-11-07  Jim Meyering  <meyering@ascend.com>
88160
88161         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88162
88163 1999-11-06  Jim Meyering  <meyering@ascend.com>
88164
88165         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88166         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88167
88168 1999-11-05  Jim Meyering  <meyering@ascend.com>
88169
88170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88171         configure.in of textutils, fileutils, and sh-utils into this one
88172         (shared between those packages) file.
88173         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88174         AC_STRUCT_ST_BLKSIZE.
88175
88176 1999-11-03  Jim Meyering  <meyering@ascend.com>
88177
88178         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88179         of AC_CHECK_TYPE checks includes unistd.h.
88180         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88181         Suggestion from Akim Demaille.
88182
88183 1999-10-30  Jim Meyering  <meyering@ascend.com>
88184
88185         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88186         m4-quoted string.
88187         * m4/ls-mntd-fs.m4: Likewise.
88188         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88189         * m4/jm-winsz1.m4: Likewise.
88190
88191         * m4/const.m4: Remove file, since the fix made it into the experimental
88192         version of autoconf.
88193         * m4/mktime.m4: Likewise.
88194
88195         * m4/check-type.m4: Remove file, now that the latest version of
88196         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88197
88198         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88199         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88200         AC_CHECK_TYPE.
88201
88202 1999-10-04  Jim Meyering  <meyering@ascend.com>
88203
88204         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88205
88206 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88207
88208         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88209         2.95.1 bug with HP-UX 10.20.
88210
88211 1999-09-17  Jim Meyering  <meyering@ascend.com>
88212
88213         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88214         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88215         due to missing strdup (against sh-utils-2.0).
88216
88217 1999-08-29  Jim Meyering  <meyering@ascend.com>
88218
88219         * m4/jm-macros.m4: Require jm_BISON.
88220         * m4/bison.m4: New file.
88221
88222 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88223
88224         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88225         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88226
88227 1999-08-05  Jim Meyering  <meyering@ascend.com>
88228
88229         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88230         to avoid conflicts with `conftest' on 8+3 filesystems.
88231         Suggestion from Eli Zaretskii.
88232
88233 1999-08-04  Jim Meyering  <meyering@ascend.com>
88234
88235         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88236         fileutils and sh-utils (textutils's getline test was inadequate).
88237         (AM_FUNC_GETLINE): Run this test.
88238         (AC_CHECK_FUNCS): Check for getdelim.
88239         Reported by Bob Proulx.
88240
88241 1999-08-02  Jim Meyering  <meyering@ascend.com>
88242
88243         * m4/jm-macros.m4: Add a comment.
88244
88245 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88246
88247         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88248         <inttypes.h> defines strtoumax as a macro (and not as a
88249         function).
88250
88251 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88252
88253         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88254         that we can shift, multiply and divide unsigned long long
88255         values; Ultrix cc can't do it.
88256
88257 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88258
88259         * m4/mktime.m4: New file, which is a preview of what should appear
88260         in the next public autoconf release.
88261
88262 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88263
88264         * m4/lfs.m4: Remove this file.
88265         * m4/largefile.m4: New file.  It contains the old contents of
88266         lfs.m4, except that all names with prefix AC_LFS have been
88267         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88268         compatible with future autoconf versions.  Also, some minor m4
88269         quoting problems have been fixed.
88270
88271 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88272
88273         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88274         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88275         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88276         and simplify the shell code.
88277
88278 1999-08-01  Jim Meyering  <meyering@ascend.com>
88279
88280         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88281         m4.
88282
88283 1999-07-20  Jim Meyering  <meyering@ascend.com>
88284
88285         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88286
88287 1999-07-15  Jim Meyering  <meyering@ascend.com>
88288
88289         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88290
88291 1999-05-22  Jim Meyering  <meyering@ascend.com>
88292
88293         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88294
88295 1999-05-20  Jim Meyering  <meyering@ascend.com>
88296
88297         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88298         Add a colon after each `then' in case $4 is empty.
88299
88300 1999-05-16  Jim Meyering  <meyering@ascend.com>
88301
88302         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88303
88304 1999-05-10  Jim Meyering  <meyering@ascend.com>
88305
88306         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88307
88308         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88309         AC_FUNC_MKTIME.
88310
88311 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88312
88313         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88314
88315 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88316
88317         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88318         not CPPFLAGS, so that linking works correctly in IRIX.
88319
88320 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88321
88322         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88323
88324 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88325
88326         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88327         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88329         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88330         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88331
88332         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88333
88334 1999-04-20  Jim Meyering  <meyering@ascend.com>
88335
88336         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88337         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88338         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88339
88340 1999-04-18  Jim Meyering  <meyering@ascend.com>
88341
88342         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88343         * m4/jm-macros.m4: Use it.
88344
88345 1999-04-06  Jim Meyering  <meyering@ascend.com>
88346
88347         * m4/strftime.m4: Remove test for %f.
88348
88349 1999-03-29  Jim Meyering  <meyering@ascend.com>
88350
88351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88352         superset of the AC_TYPE_* checks in the textutils, fileutils,
88353         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88354         AC_TYPE_PID_T.
88355
88356 1999-03-28  Jim Meyering  <meyering@ascend.com>
88357
88358         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88359         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88360         replaced e.g., in the *.sh files of the sh-utils.
88361
88362 1999-03-20  Jim Meyering  <meyering@ascend.com>
88363
88364         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88365         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88366         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88367
88368 1999-03-19  Jim Meyering  <meyering@ascend.com>
88369
88370         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88371
88372 1999-03-12  Jim Meyering  <meyering@ascend.com>
88373
88374         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88375
88376 1999-03-07  Jim Meyering  <meyering@ascend.com>
88377
88378         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88379         declared.
88380
88381 1999-02-17  Jim Meyering  <meyering@ascend.com>
88382
88383         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88384         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88385
88386 1999-02-07  Jim Meyering  <meyering@ascend.com>
88387
88388         * m4/group-member.m4: New file -- extracted from sh-utils'
88389         configure.in.
88390
88391         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88392         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88393
88394 1999-02-06  Jim Meyering  <meyering@ascend.com>
88395
88396         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88397         * m4/fnmatch.m4: Likewise.
88398         * m4/getgroups.m4: Likewise.
88399         * m4/lstat.m4: Likewise.
88400         * m4/malloc.m4: Likewise.
88401         * m4/putenv.m4: Likewise.
88402         * m4/realloc.m4: Likewise.
88403         * m4/regex.m4: Likewise.
88404         * m4/stat.m4: Likewise.
88405         * m4/strftime.m4: Likewise.
88406         Suggestion from Alain Magloire.
88407
88408         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88409         * m4/fnmatch.m4: Likewise.
88410         * m4/getgroups.m4: Likewise.
88411         * m4/getline.m4: Likewise.
88412         * m4/lstat.m4: Likewise.
88413         * m4/malloc.m4: Likewise.
88414         * m4/memcmp.m4: Likewise.
88415         * m4/putenv.m4: Likewise.
88416         * m4/realloc.m4: Likewise.
88417         * m4/regex.m4: Likewise.
88418         * m4/stat.m4: Likewise.
88419         * m4/strftime.m4: Likewise.
88420         Suggestion from Alain Magloire.
88421
88422         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88423         an argument.
88424
88425         * m4/regex.m4: Add a run-time Test for proper operation of
88426         re_compile_pattern.
88427
88428 1999-01-31  Jim Meyering  <meyering@ascend.com>
88429
88430         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88431
88432 1999-01-30  Jim Meyering  <meyering@ascend.com>
88433
88434         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88435
88436         * m4/jm-mktime.m4: Make this a wrapper around the official
88437         AM_FUNC_MKTIME rather than my private copy, now that the official one
88438         is up to date.
88439         * m4/mktime.m4: Remove file.
88440
88441         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88442         * m4/uptime.m4: Likewise.
88443         * m4/uintmax_t.m4: Likewise.
88444
88445 1999-01-28  Jim Meyering  <meyering@ascend.com>
88446
88447         * m4/jm-macros.m4: Use jm_AFS.
88448         * m4/afs.m4: New file (from fileutils' configure.in).
88449
88450         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88451         * m4/chown.m4: Likewise.
88452         * m4/d-ino.m4: Likewise.
88453         * m4/d-type.m4: Likewise.
88454         * m4/fnmatch.m4: Likewise.
88455         * m4/getgroups.m4: Likewise.
88456         * m4/gettext.m4: Likewise.
88457         * m4/jm-mktime.m4: Likewise.
88458         * m4/jm-winsz2.m4: Likewise.
88459         * m4/lcmessage.m4: Likewise.
88460         * m4/ls-mntd-fs.m4: Likewise.
88461         * m4/malloc.m4: Likewise.
88462         * m4/memcmp.m4: Likewise.
88463         * m4/putenv.m4: Likewise.
88464         * m4/realloc.m4: Likewise.
88465         * m4/st_mtim.m4: Likewise.
88466         * m4/strftime.m4: Likewise.
88467
88468 1999-01-16  Jim Meyering  <meyering@ascend.com>
88469
88470         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88471         (ARGMATCH_DIE_DECL): Define.
88472
88473 1999-01-12  Jim Meyering  <meyering@ascend.com>
88474
88475         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88476         Reported by Lars Hecking.
88477
88478 1999-01-10  Jim Meyering  <meyering@ascend.com>
88479
88480         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88481         gross kludge.
88482         * m4/inttypes_h.m4: Likewise.
88483         * m4/lstat.m4: Likewise.
88484         * m4/malloc.m4: Likewise.
88485         * m4/readdir.m4: Likewise.
88486         * m4/realloc.m4: Likewise.
88487         * m4/st_dm_mode.m4: Likewise.
88488         * m4/stat.m4: Likewise.
88489         * m4/utimbuf.m4: Likewise.
88490         * m4/utimes.m4: Likewise.
88491
88492         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88493         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88494         comments in config.h.in are meaningful.
88495
88496         * m4/jm-macros.m4: Require autoconf-2.13 here.
88497
88498         * m4/regex.m4: By default, don't use the included regex.c on systems
88499         with glibc 2.  Suggestion from Uli Drepper.
88500
88501 1999-01-02  Jim Meyering  <meyering@ascend.com>
88502
88503         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88504
88505 1998-12-18  Jim Meyering  <meyering@ascend.com>
88506
88507         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88508         Based on a suggestion from Lars Hecking.
88509
88510 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88511
88512         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88513
88514 1998-11-16  Jim Meyering  <meyering@ascend.com>
88515
88516         * m4/lfs.m4: Double-quote the `uname...` expression.
88517
88518 1998-11-14  Jim Meyering  <meyering@ascend.com>
88519
88520         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88521         * m4/stat.m4: Likewise.
88522
88523 1998-11-03  Jim Meyering  <meyering@ascend.com>
88524
88525         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88526         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88527
88528 1998-10-18  Jim Meyering  <meyering@ascend.com>
88529
88530         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88531
88532 1998-10-17  Jim Meyering  <meyering@ascend.com>
88533
88534         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88535         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88536         calls for those previously hard-coded headers.  Instead, take a new
88537         parameter.
88538         (jm_CHECK_DECLARATIONS): Reflect interface change.
88539         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88540         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88541
88542         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88543
88544 1998-10-14  Jim Meyering  <meyering@ascend.com>
88545
88546         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88547         instead of "TZ=America/Vancouver".  From Paul Eggert.
88548
88549 1998-10-11  Jim Meyering  <meyering@ascend.com>
88550
88551         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88552         This adds a test for a recently added compatibility fix for mktime.c.
88553         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88554
88555 1998-09-27  Jim Meyering  <meyering@ascend.com>
88556
88557         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88558
88559         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88560         ../configure.in, including a change from Gordon Matzigkeit to allow
88561         cross-compiling for the Hurd.
88562
88563         * m4/glibc.m4: New file/macro to test for the GNU C Library
88564         versions 1 and 2.  From Gordon Matzigkeit.
88565         Indent.
88566
88567 1998-09-21  Jim Meyering  <meyering@ascend.com>
88568
88569         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88570
88571 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88572
88573         Port nanosecond-resolution times to UnixWare 2.1.2 and
88574         pedantic Solaris 2.6.
88575
88576         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88577         AC_STRUCT_ST_MTIM.
88578         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88579         Generate name of ns member, instead of just 1 or undef.
88580         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88581
88582 1998-08-15  Jim Meyering  <meyering@ascend.com>
88583
88584         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88585         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88586         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88587         instead of jm_TYPE_SSIZE_T.
88588
88589 1998-08-12  Jim Meyering  <meyering@ascend.com>
88590
88591         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88592
88593 1998-08-02  Jim Meyering  <meyering@ascend.com>
88594
88595         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88596         in acconfig.h manually.
88597
88598 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88599
88600         * m4/st_mtim.m4: New file.
88601
88602 1998-07-28  Jim Meyering  <meyering@ascend.com>
88603
88604         * m4/utimes.m4: Undef stat.
88605
88606 1998-07-25  Jim Meyering  <meyering@ascend.com>
88607
88608         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88609         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88610
88611 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88612
88613         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88614         uid and gid actually remain unchanged.
88615
88616 1998-07-07  Jim Meyering  <meyering@ascend.com>
88617
88618         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88619
88620 1998-07-04  Jim Meyering  <meyering@ascend.com>
88621
88622         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88623         to prove that this macro can be used in packages without regex.c.
88624
88625 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88626
88627         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88628         is to be used.
88629
88630 1998-07-03  Jim Meyering  <meyering@ascend.com>
88631
88632         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88633
88634         * m4/gettext.m4: New file -- from gettext-0.10.35.
88635         * m4/lcmessage.m4: Likewise.
88636         * m4/progtest.m4: Likewise.
88637
88638         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88639         * m4/jm-macros.m4: Require the new macro.
88640
88641 1998-06-29  Jim Meyering  <meyering@ascend.com>
88642
88643         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88644         for the definition of NGROUPS (used in a system header included
88645         by sys/mount.h).
88646
88647 1998-06-28  Jim Meyering  <meyering@ascend.com>
88648
88649         * m4/ls-mntd-fs.m4: New file.
88650         * m4/fstypename.m4: New file.
88651
88652         * m4/jm-macros.m4: Require the new macro.
88653         * m4/jm-glibc-io.m4: New file.
88654
88655 1998-05-19  Jim Meyering  <meyering@ascend.com>
88656
88657         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88658         * m4/lchown.m4: New file.
88659
88660         * m4/Makefile.am.in: New file.
88661         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88662
88663 1998-05-14  Jim Meyering  <meyering@ascend.com>
88664
88665         * m4/Makefile.am (EXTRA_DIST): Add them.
88666         * m4/jm-macros.m4: New file.
88667         * m4/utimbuf.m4: New file.
88668
88669 1998-05-12  Jim Meyering  <meyering@ascend.com>
88670
88671         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88672
88673 1998-05-11  Jim Meyering  <meyering@ascend.com>
88674
88675         * m4/isc-posix.m4: New file.
88676
88677 1998-05-10  Jim Meyering  <meyering@ascend.com>
88678
88679         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88680
88681 1998-05-09  Jim Meyering  <meyering@ascend.com>
88682
88683         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88684         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88685         with automake.
88686
88687         * m4/ssize_t.m4: New file.
88688         * m4/mktime.m4: Remove file -- the new automake has this now.
88689
88690 1998-04-26  Jim Meyering  <meyering@ascend.com>
88691
88692         * m4/assert.m4: New file.
88693         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88694
88695 1998-04-05  Jim Meyering  <meyering@ascend.com>
88696
88697         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88698         (jm_PREREQ): Use it here.
88699
88700 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88701
88702         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88703         in acconfig.h.
88704
88705 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88706
88707         * m4/prereq.m4: New file.
88708         * m4/error.m4: New file.
88709         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88710
88711 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88712
88713         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88714         cache-check for the same variable -- that defeated the purpose of
88715         the test; the test program was never run.  This was a problem only
88716         on systems with losing getline functions -- HP-UX 10.20 is one.
88717         Reported by Bjorn Helgaas.
88718
88719 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88720
88721         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88722
88723 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88724
88725         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88726
88727         * m4/const.m4: New file.  Use an initializer in this declaration
88728         typedef int charset[2]; const charset x;
88729         Reported by Bob Glickstein.
88730
88731 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88732
88733         * m4/chown.m4: Fix reversed types on -1 args to chown.
88734         From Kaveh Ghazi.
88735
88736 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88737
88738         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88739         Add lseek and memchr.
88740
88741         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88742         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88743         have a 20-character limit on names.
88744
88745 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88746
88747         * m4/inttypes_h.m4: New file.
88748         * m4/uintmax_t.m4: New file.
88749         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88750
88751
88752         -----
88753
88754         Local Variables:
88755         coding: utf-8
88756         End:
88757
88758         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88759
88760         Copying and distribution of this file, with or without
88761         modification, are permitted provided the copyright notice
88762         and this notice are preserved.